:root {
  --sky: #7dd3fc;
  --ink: #3b2a20;
  --purple: #7c3aed;
  --purple-2: #8b5cf6;
  --sun: #facc15;
  --muted: #57534e;
  --white: #ffffff;
  --err: #b91c1c;
  --font:
    "Baloo 2",
    "Arial Rounded MT Bold",
    system-ui,
    -apple-system,
    sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
html {
  font-size: 16px;
  font-size: clamp(16px, 1.25vw, 26px);
}
body {
  background: var(--sky);
  color: var(--ink);
  font: 1.125rem/1.45 var(--font);
}
h1,
h2 {
  margin: 0;
  line-height: 1;
}
p {
  margin: 0;
}
a {
  color: var(--purple);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
#scene {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  font-size: 0.95rem;
}
.note {
  color: var(--muted);
  font-size: 1rem;
}
#home-msg.err,
.note.err {
  color: var(--err);
}
.btn {
  font: 800 1.15rem/1 var(--font);
  cursor: pointer;
  color: var(--purple);
  background: var(--white);
  border: 3px solid var(--purple);
  border-radius: 999px;
  padding: 0.75em 1.4em;
}
.btn.primary {
  background: var(--purple);
  color: var(--white);
}
.btn.small {
  padding: 0.55em 1em;
  font-size: 0.95rem;
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.corner:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 3px;
}
.screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}
.home {
  background: rgba(224, 242, 254, 0.82);
  padding: 32px 16px 32px 16px;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-content: start;
  justify-items: center;
}
.home > * {
  max-width: 61rem;
  width: 100%;
}
.head {
  display: grid;
  gap: 10px;
}
.home h1 {
  font-size: 3.2rem;
  font-size: clamp(3.2rem, 10vw, 6rem);
  color: var(--purple);
}
.lede {
  font-size: 1.2rem;
  max-width: 56ch;
}
body:not(.mobile) .mode.cam {
  display: none;
}
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 6px 0 rgba(124, 58, 237, 0.18);
  min-width: 0;
}
.mode.main {
  box-shadow: 0 6px 0 var(--purple);
}
.mode h2 {
  font-size: 1.7rem;
  color: var(--purple);
}
.mode p {
  flex: 1;
}
.code-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.code-form input {
  flex: 1 1 110px;
  min-width: 0;
  font: 800 1.5rem/1 var(--font);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  background: #f5f3ff;
  border: 3px solid #ddd6fe;
  border-radius: 999px;
  padding: 0.35em;
}
.settings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.settings summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--purple);
}
.settings select {
  font: inherit;
  border: 2px solid #ddd6fe;
  border-radius: 10px;
  padding: 0.3em;
  background: var(--white);
  color: var(--ink);
}
.pair {
  display: grid;
  place-items: center;
  background: rgba(224, 242, 254, 0.92);
  padding: 24px 16px;
}
.pair-box {
  display: grid;
  gap: 18px;
  max-width: 980px;
}
.pair-box h1 {
  font-size: 2.4rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--purple);
}
.pair-row {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.qr {
  width: 300px;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  background: var(--white);
  border-radius: 22px;
  padding: 12px;
  max-width: 100%;
  box-shadow: 0 6px 0 var(--purple);
}
.qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pair-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.pair-info p {
  font-size: 1.25rem;
}
.big-code {
  font: 800 3.5rem/1 var(--font) !important;
  font: 800 clamp(3.5rem, 10vw, 7rem)/1 var(--font) !important;
  letter-spacing: 0.12em;
  color: var(--purple);
}
.small {
  font-size: 0.95rem !important;
  word-break: break-all;
  color: var(--muted);
}
.sender {
  background: #000;
  overflow: hidden;
  color: var(--white);
}
.sender canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.sender-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 16px 16px calc(16px + 0px) 16px;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 35%);
}
.sender-hud .note {
  color: #d6d3d1;
}
.sender-hud .btn {
  justify-self: start;
}
.sender-status {
  font-weight: 800;
  font-size: 1.6rem;
}
.dim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000;
  display: grid;
  place-items: center;
  text-align: center;
  color: #555;
  z-index: 5;
}
.corner {
  position: fixed;
  top: calc(14px + 0px);
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 14px;
  left: max(14px, env(safe-area-inset-left, 0px));
  font: 800 1rem/1 var(--font);
  color: var(--purple);
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--purple);
  border-radius: 999px;
  padding: 0.5em 1em;
  cursor: pointer;
}
.corner-right {
  left: auto;
  right: 14px;
  right: max(14px, env(safe-area-inset-right, 0px));
}
.caption {
  position: fixed;
  left: 50%;
  bottom: calc(14px + 0px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: 760px;
  max-width: min(760px, calc(100% - 32px));
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  color: #5b21b6;
  border-radius: 18px;
  padding: 6px 18px;
  font-weight: 800;
  font-size: 1rem;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.2;
  box-shadow: 0 6px 0 rgba(124, 58, 237, 0.25);
  pointer-events: none;
}
.chip {
  position: fixed;
  right: 10px;
  right: max(10px, env(safe-area-inset-right, 0px));
  top: calc(10px + 0px);
  top: calc(10px + env(safe-area-inset-top, 0px));
  font-size: 0.8rem;
  color: rgba(59, 42, 32, 0.55);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.caption.top {
  bottom: auto;
  top: calc(96px + 0px);
  top: calc(96px + env(safe-area-inset-top, 0px));
  font-size: 1.1rem;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
}
.players {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: var(--purple);
  font-size: 1.15rem;
}
.np-hint {
  margin: -10px 0 0;
  font-weight: 600;
  color: var(--ink);
}
.players select {
  font: 800 1.05rem var(--font);
  color: var(--ink);
  background: var(--white);
  border: 3px solid #ddd6fe;
  border-radius: 999px;
  padding: 0.4em 0.9em;
}
.logo {
  letter-spacing: -0.01em;
}
.logo span {
  color: #f97316;
}
.unlock {
  background: var(--white);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 6px 0 rgba(249, 115, 22, 0.35);
  display: grid;
  gap: 10px;
}
.unlock > div {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}
.unlock {
  grid-template-columns: minmax(0, 1fr);
}
.code-form input {
  width: 100%;
}
.unlock h2 {
  font-size: 1.5rem;
  color: #c2410c;
}
.unlock .code-form input {
  letter-spacing: 0.12em;
}
.unlocked {
  font-weight: 800;
  color: #15803d;
  font-size: 1.2rem;
}
.voice-test {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.players .pick[aria-pressed=true] {
  background: var(--purple);
  color: var(--white);
}
.mode .tv-steps {
  display: none;
}
body.mobile .mode.main {
  display: none;
}
body.mobile .mode.local {
  order: -1;
  box-shadow: 0 6px 0 var(--purple);
}
body.mobile .mode.local .btn {
  background: var(--purple);
  color: var(--white);
  font-size: 1.3rem;
  padding: 0.9em 1.4em;
}
body.mobile .mode.cam .tv-steps {
  display: block;
}
body.mobile .mode.cam .cam-hint {
  display: none;
}
.mode .tv-steps-title {
  display: none;
}
body.mobile .mode.cam .tv-steps-title {
  display: inline;
}
.inapp {
  background: #fff7ed;
  border: 3px solid #fb923c;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.inapp p {
  margin: 0;
}
.inapp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-height: 500px) {
  .caption {
    font-size: 0.8rem;
    padding: 3px 12px;
    bottom: calc(6px + 0px);
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 24px);
    box-shadow: none;
  }
  .caption.top {
    top: calc(8px + 0px);
    top: calc(8px + env(safe-area-inset-top, 0px));
    font-size: 0.85rem;
    max-width: 50%;
    left: 62%;
  }
}
.offer-line .btn {
  display: inline-block;
  text-decoration: none;
}
.mode-art {
  display: block;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1;
  align-self: center;
  border-radius: 18px;
  background: #fde5c0;
}
.mode.cam .mode-art {
  display: none;
}
body.mobile .mode.cam .mode-art {
  display: block;
}
.tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tips li {
  background: var(--white);
  border-radius: 16px;
  padding: 12px 8px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--ink);
}
.tips svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-box {
  display: grid;
  gap: 10px;
}
.lg-title {
  margin: 0;
}
.lg-limit ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lg-limit li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f5f3ff;
  border-radius: 14px;
  padding: 10px 12px;
}
.lg-limit small {
  color: #6b7280;
  font-weight: 600;
  margin-left: 6px;
}
.lg-gift summary {
  cursor: pointer;
  color: var(--purple);
  font-weight: 700;
}
.lg-gift .code-form {
  margin-top: 8px;
}
.note.err,
.lg-msg.err {
  color: #b91c1c;
  font-weight: 700;
}
.lg-email input {
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
  font-weight: 600;
  flex: 2 1 220px;
}
.adult-offer {
  position: fixed;
  top: 14px;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 4;
  width: min(340px, calc(100% - 28px));
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 12px 14px 14px;
  box-shadow: 0 8px 24px rgba(43, 31, 24, 0.25);
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
}
.adult-offer p {
  margin: 0;
}
.adult-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
}
.adult-x {
  position: absolute;
  top: 4px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
}
.adult-tv {
  font-size: 0.85rem;
  color: #4b5563;
}
.adult-offer .btn {
  text-decoration: none;
  justify-self: start;
}
@media (max-width: 700px) {
  .adult-offer {
    top: auto;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 10px 12px 12px;
    font-size: 0.88rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 28px);
  }
}
