:root {
  --bg: #080b18;
  --gold: #facc15;
  --gold-dim: #a16207;
  --card: #111827;
  --card2: #0b1220;
  --ok: #22c55e;
  --err: #ef4444;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: #1f2937;
  --a: #e21b3c;
  --b: #1368ce;
  --c: #d89e00;
  --d: #26890c;
  --glow: 0 0 40px rgba(250, 204, 21, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Nunito, system-ui, sans-serif;
  /* Keep the TV backdrop on the viewport, not inside the centered content column. */
  background:
    radial-gradient(900px 620px at 84% 10%, rgba(250, 204, 21, 0.22), transparent 68%),
    radial-gradient(760px 640px at 10% 88%, rgba(30, 64, 175, 0.18), transparent 72%),
    linear-gradient(135deg, #060a18 0%, #0b1530 54%, #15110a 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}
h1, h2, h3, .brand-mini, .title-hero, .title-end, .code-huge, .q-giant {
  font-family: Outfit, Nunito, sans-serif;
}

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hidden { display: none !important; }

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid transparent;
}
.brand-mini {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-family: inherit;
  background: transparent;
  border: none;
  padding: 4px 2px;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1.2;
  transition: color .15s, opacity .15s;
}
.brand-mini:hover { color: var(--text); }
.brand-mini:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.brand-mini span { color: var(--gold); }
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-sep {
  width: 1px;
  height: 18px;
  background: rgba(250, 204, 21, 0.35);
  flex-shrink: 0;
}
.brand-presents {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.95;
}
.landing-nav-wrap {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  margin: 0 16px;
  min-width: 0;
  position: relative;
}
body.is-home .landing-nav-wrap { display: flex; }
body:not(.is-home) .landing-nav-wrap { display: none !important; }

.landing-nav-toggle {
  display: none;
  appearance: none;
  background: rgba(250, 204, 21, 0.08);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.landing-nav-toggle:hover {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.7);
}
.landing-nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.landing-nav-toggle-bars {
  display: block;
  font-weight: 700;
  transform: translateY(-1px);
}

.landing-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.landing-nav-link {
  appearance: none;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  position: relative;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.landing-nav-link:hover { color: #fff; }
.landing-nav-link.is-active { color: #fff; }
.landing-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
body.is-home .landing-nav { display: flex; }
body.is-home .topbar {
  border-bottom-color: rgba(31, 41, 55, 0.65);
  background: rgba(8, 11, 24, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
body.is-home .brand-mini {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
body.is-home .conn { display: none; }
body:not(.is-home) .brand-presents,
body:not(.is-home) .brand-sep { display: none; }

/* Desktop / large tablets: horizontal nav, no hamburger.
   Order: brand | nav links | mute + fullscreen (far right corner) */
@media (min-width: 861px) {
  .landing-nav-toggle { display: none !important; }
  body.is-home .topbar-right {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    gap: 12px;
  }
  body.is-home .landing-nav-wrap {
    flex: 1;
    order: -1; /* nav before mute/fullscreen so expand stays top-right */
    margin: 0 12px 0 0;
    justify-content: flex-end;
    min-width: 0;
  }
  body.is-home .btn-mute { order: 1; }
  body.is-home .btn-fullscreen { order: 2; }
  body.is-home .conn { order: 3; }
  body.is-home .landing-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .landing-nav-link { font-size: 0.84rem; padding: 8px 9px; }
}
@media (max-width: 980px) and (min-width: 861px) {
  .brand-presents { font-size: 0.7rem; letter-spacing: 0.1em; }
  .landing-nav-wrap { margin: 0 8px; }
}

/* Narrow screens: hamburger + dropdown panel */
@media (max-width: 860px) {
  /* Logo left; fullscreen then menu clustered at the right */
  body.is-home .topbar {
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  body.is-home .landing-nav-wrap {
    flex: 0 0 auto;
    margin: 0;
  }
  body.is-home .topbar-right {
    gap: 6px;
    margin-left: auto; /* push control cluster to the right */
  }
  body.is-home .landing-nav-toggle { display: inline-flex; }
  /* Match fullscreen to the same tap target as hamburger */
  body.is-home .btn-fullscreen {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid rgba(250, 204, 21, 0.35);
    background: rgba(250, 204, 21, 0.06);
    color: var(--gold);
  }
  body.is-home .btn-fullscreen:hover {
    background: rgba(250, 204, 21, 0.14);
    border-color: rgba(250, 204, 21, 0.6);
    color: #fff;
  }
  body.is-home .btn-mute {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  body.is-home .landing-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 24px));
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: rgba(8, 11, 24, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    z-index: 50;
  }
  body.is-home .landing-nav.is-open { display: flex; }
  .landing-nav-link {
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 14px;
    text-align: left;
    white-space: normal;
    line-height: 1.25;
    border-radius: 12px;
  }
  .landing-nav-link:hover,
  .landing-nav-link:focus-visible {
    background: rgba(250, 204, 21, 0.1);
    color: #fff;
  }
  .landing-nav-link.is-active::after {
    left: 14px;
    right: auto;
    width: 28px;
    bottom: 8px;
  }
}
@media (max-width: 560px) {
  .brand-presents, .brand-sep { display: none !important; }
}

.conn { font-size: 0.8rem; color: #e5e7eb; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--err); display: inline-block;
  box-shadow: 0 0 8px var(--err);
}
.status-dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 28px;
  width: 100%;
  /* The backdrop belongs to body/#app; views span the complete TV viewport. */
  max-width: none;
  margin: 0 auto;
}

/* Landing (mock cinematic navy/gold) */
.eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  margin-bottom: 12px;
}
.title-hero {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 40px rgba(250, 204, 21, 0.18);
}
.title-hero em {
  font-style: normal;
  color: var(--gold);
}
.subtitle {
  color: var(--muted);
  margin: 12px 0 36px;
  font-size: 1.05rem;
}

body.is-home {
  overflow-y: auto;
}
body.is-home #app {
  min-height: 100dvh;
}
.view-home {
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  overflow: visible;
  padding: 0 0 40px;
  max-width: none;
}
.landing-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 24px 0;
  position: relative;
  z-index: 1;
}
.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: start;
  min-height: min(70dvh, 560px);
  padding: 28px 0 16px;
}
.landing-hero-copy {
  text-align: left;
  max-width: 640px;
  width: 100%;
}
.landing-kicker {
  color: #e5e7eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.9;
}
.landing-slogan {
  color: #f3f4f6;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 700;
  margin: 14px 0 12px;
}
.landing-desc {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 28px;
}
.landing-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
}
.landing-ctas .btn {
  width: 100%;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.whatsapp-channel-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.whatsapp-channel-cta:hover,
.whatsapp-channel-cta:focus-visible {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.55);
  transform: translateY(-1px);
  outline: none;
}
.whatsapp-channel-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
}
.btn-landing-primary {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-shadow: 0 10px 36px rgba(250, 204, 21, 0.42);
}
.btn.btn-outline-gold,
button.btn.btn-outline-gold {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(250, 204, 21, 0.9) !important;
  border-radius: 18px;
  font-weight: 800;
  padding: 14px 22px;
  max-width: none;
  box-shadow: none;
}
.btn.btn-outline-gold:hover,
button.btn.btn-outline-gold:hover {
  border-color: var(--gold) !important;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.14);
}
.btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-ico-end { margin-left: auto; opacity: 0.85; }
.btn-landing-primary .btn-ico-end { color: #111; }

.landing-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 22px;
  margin: 28px 0 18px;
  padding: 22px 8px 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
}
.landing-feature {
  text-align: left;
  padding: 6px 4px 10px;
}
.feature-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid rgba(250, 204, 21, 0.7);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(250, 204, 21, 0.04);
}
.landing-feature h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.landing-feature p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-section {
  margin: 42px 0 8px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  scroll-margin-top: 78px;
}
.landing-section-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.landing-section h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  color: #fff;
  margin-bottom: 10px;
}
.landing-section-lead {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 22px;
}
.landing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.landing-card {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(55, 65, 81, 0.85);
  border-radius: 20px;
  padding: 20px 18px 18px;
}
.landing-card h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.landing-steps {
  margin: 0;
  padding-left: 1.2em;
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.55;
}
.landing-steps li { margin-bottom: 10px; }
.landing-steps strong { color: #fff; }
.landing-tip {
  margin-top: 18px;
  color: #cbd5e1;
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.98rem;
  line-height: 1.5;
}
.landing-about {
  max-width: 68ch;
  color: #e5e7eb;
  font-size: 1.05rem;
  line-height: 1.6;
}
.landing-about p { margin-bottom: 12px; }
.landing-bullets {
  margin: 14px 0 0;
  padding-left: 1.2em;
  color: #cbd5e1;
}
.landing-bullets li { margin-bottom: 8px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}
.faq-item {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(55, 65, 81, 0.85);
  border-radius: 16px;
  padding: 4px 16px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  padding: 14px 4px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.55;
  padding: 0 4px 16px;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding: 18px 0 12px;
  }
  .landing-hero-copy {
    max-width: none;
    text-align: left;
  }
  .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .landing-page { padding: 4px 16px 0; }
  .landing-features { grid-template-columns: 1fr; gap: 14px; }
  .landing-ctas { max-width: none; width: 100%; }
  .landing-desc { font-size: 0.98rem; }
  .landing-hero { min-height: 0; padding: 12px 0 8px; }
}

/* Buttons */
.btn, button.btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 16px;
  padding: 16px 22px;
  width: 100%;
  cursor: pointer;
  margin-top: 12px;
  transition: transform .1s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn.primary {
  background: linear-gradient(180deg, #fde047, var(--gold));
  color: #111;
  box-shadow: 0 8px 28px rgba(250, 204, 21, 0.35);
}
.btn.btn-hero {
  font-size: 1.25rem;
  padding: 20px 28px;
  border-radius: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid #374151;
}
.btn.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.btn.btn-ghost:hover { color: var(--text); }

/* Panels / forms */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.panel-narrow { max-width: 420px; width: 100%; margin: 0 auto; }
.panel-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--gold);
}
.field-label {
  display: block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.optional { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: 0.7; }
input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid #374151;
  background: var(--card2);
  color: var(--text);
  font-size: 1.25rem;
  font-family: inherit;
  margin-top: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250,204,21,0.15); }
input.name { text-transform: none; letter-spacing: normal; font-weight: 700; }
.msg { text-align: center; color: var(--muted); margin-top: 12px; font-size: 0.95rem; }
.err-msg { color: var(--err); font-weight: 700; min-height: 1.2em; }
.calm { font-size: 1.05rem; }

/* Emoji picker */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.emoji-btn {
  aspect-ratio: 1;
  font-size: 1.5rem;
  background: var(--card2);
  border: 2px solid #1f2937;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .1s, transform .1s;
}
.emoji-btn:hover { border-color: #4b5563; }
.emoji-btn.selected {
  border-color: var(--gold);
  background: #292410;
  box-shadow: 0 0 12px rgba(250,204,21,0.3);
  transform: scale(1.05);
}

/* Host lobby */
.lobby-host {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  flex: 1;
  padding-top: 8px;
}
@media (max-width: 800px) {
  .lobby-host { grid-template-columns: 1fr; }
}
.lobby-left { text-align: center; }
.badge-host {
  display: inline-block;
  background: #1f2937;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.lobby-hint { color: var(--muted); margin: 12px 0 4px; }
.code-huge {
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 800;
  text-shadow: var(--glow);
  margin: 8px 0 4px;
  padding-left: 0.28em; /* optical center with letter-spacing */
}
.theme-line { color: var(--muted); margin-bottom: 16px; }
.qr-wrap {
  display: inline-block;
  background: #fff;
  padding: 14px;
  border-radius: 20px;
  margin: 8px auto 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.qr-wrap img { display: block; width: min(260px, 50vw); height: auto; }
.lobby-players-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}
.lobby-players-title span {
  color: var(--gold);
  font-weight: 800;
}
.players-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.players-grid li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  font-weight: 800;
  animation: popIn .25s ease;
}
.players-grid .av {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 6px;
}
.players-grid .player-card {
  position: relative;
  padding-top: 22px;
}
.players-grid .pname {
  display: block;
  word-break: break-word;
  line-height: 1.2;
}
.player-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0.5;
  transition: opacity .15s;
}
.player-card:hover .player-actions,
.player-card:focus-within .player-actions {
  opacity: 0.95;
}
.pact {
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, transform .1s;
}
.pact svg { display: block; pointer-events: none; }
.pact:hover,
.pact:focus-visible {
  background: rgba(31, 41, 55, 0.95);
  color: var(--text);
  outline: none;
}
.pact:focus-visible {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.45);
}
.pact-edit:hover,
.pact-edit:focus-visible { color: var(--gold); }
.pact-kick:hover,
.pact-kick:focus-visible {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.55);
}
.pact:active { transform: scale(0.94); }
/* TV / no-hover: keep icons faintly visible */
@media (hover: none) {
  .player-actions { opacity: 0.65; }
}

.players-grid .empty {
  color: var(--muted);
  grid-column: 1 / -1;
  background: transparent;
  border-style: dashed;
  font-weight: 600;
}
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Player wait */
.player-wait { text-align: center; padding: 40px 24px; margin-top: 24px; }
.wait-emoji { font-size: 4.5rem; margin-bottom: 8px; filter: drop-shadow(0 8px 20px rgba(250,204,21,0.3)); }
.wait-name { font-size: 1.75rem; color: #fff; margin-bottom: 8px; }
.pulse-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pulse-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
.pulse-dots span:nth-child(2) { animation-delay: .2s; }
.pulse-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Badges */
.badge {
  display: inline-block;
  background: #1f2937;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}
.badge.gold { color: var(--gold); background: #292410; }

/* Host game TV */
.host-game {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hg-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.hg-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-self: start;
  min-width: 0;
}
.hg-top .timer-ring-wrap {
  justify-self: center;
  grid-column: 2;
}
.hg-top .ans-pill {
  justify-self: end;
  text-align: right;
}
.timer-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}
.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #1f2937; stroke-width: 8; }
.ring-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.2s linear, stroke 0.3s;
}
.timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold);
}
.ans-pill {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted);
  font-size: 0.9rem;
}
.q-giant {
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  margin: 8px 0 6px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.verse {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Kahoot-style tiles */
.tiles {
  display: grid;
  gap: 12px;
}
.tiles-host {
  grid-template-columns: 1fr 1fr;
}
.tiles-player {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  border: none;
  border-radius: 16px;
  padding: 22px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  text-align: left;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
  transition: transform .1s, filter .2s, opacity .2s;
  position: relative;
}
.tile .letter {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-family: Outfit, sans-serif;
  font-weight: 800;
}
.tile .label { flex: 1; line-height: 1.25; }
.tile.c0 { background: var(--a); }
.tile.c1 { background: var(--b); }
.tile.c2 { background: var(--c); }
.tile.c3 { background: var(--d); }
.tiles-player .tile {
  cursor: pointer;
  min-height: 78px;
  font-size: 1.02rem;
  padding: 14px 12px;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.tiles-player .tile .letter {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  border-radius: 10px;
}
.tiles-player:not(.vf-mode) {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tiles-player .tile:active:not(:disabled) { transform: scale(0.97); }
.tiles-player .tile:disabled { cursor: not-allowed; }
.tile.selected {
  outline: 3px solid #fff;
  outline-offset: 2px;
  filter: brightness(1.1);
}
.tile.correct {
  background: var(--ok) !important;
  box-shadow: 0 0 24px rgba(34,197,94,0.5);
  outline: 3px solid #fff;
}
.tile.wrong {
  background: #7f1d1d !important;
  opacity: 0.7;
}
.tile.dim { opacity: 0.35; filter: grayscale(0.4); }
.tiles.vf-mode {
  grid-template-columns: 1fr 1fr;
}
.tiles.vf-mode .tile { min-height: 110px; justify-content: center; text-align: center; }
.tiles.vf-mode .tile .label { font-size: 1.4rem; }
/* Phone V/F: stacked, equal width + height */
.tiles-player.vf-mode {
  grid-template-columns: 1fr;
  gap: 12px;
}
.tiles-player.vf-mode .tile {
  width: 100%;
  min-height: 64px;
  height: 64px;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  box-sizing: border-box;
}
.tiles-player.vf-mode .tile .label {
  font-size: 1.22rem;
}

.reveal-banner {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
  color: var(--ok);
  font-size: 1.05rem;
}
.reveal-banner.miss {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}

.live-rank { margin-top: 20px; }
.live-rank h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* Player game — clean phone remote */
.view-player-game {
  padding-top: 4px;
  padding-bottom: 8px;
  max-width: 480px;
}
.player-game {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pg-top {
  flex-shrink: 0;
  margin-bottom: 2px;
}
.pg-type-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  width: 100%;
}
.pg-type-row .q-type-badge {
  text-align: center;
}
.pg-timer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.pg-progress {
  flex-shrink: 0;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  min-width: 2.4em;
}
.timer-bar-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
.timer-bar {
  flex: 1;
  height: 12px;
  background: #1f2937;
  border-radius: 999px;
  overflow: hidden;
}
.timer-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), #fde047);
  border-radius: 999px;
  transition: width 0.2s linear;
}
.timer-sec {
  font-weight: 800;
  color: var(--gold);
  font-family: Outfit, sans-serif;
  font-size: 1.55rem;
  min-width: 1.5em;
  text-align: right;
  line-height: 1;
}
.pg-middle {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 6px 2px 8px;
}
.q-phone {
  font-size: clamp(1.38rem, 5.8vw, 1.72rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 8px;
  text-align: center;
  text-wrap: balance;
  max-width: 100%;
}
.verse-phone {
  font-size: 0.78rem;
  margin-bottom: 0;
  color: #6b7280;
  text-wrap: balance;
}
.pg-bottom {
  flex-shrink: 0;
  /* Baseline safe-area. Fullscreen adds a much larger lift (see html.is-fs). */
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
/* Chrome mobile fullscreen draws "Sair da tela cheia" over the bottom.
   Keep answer tiles AND the correct/wrong line above that banner. */
html.is-fs .view-player-game .pg-bottom {
  padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px));
}
.status-locked {
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 1.35em;
  color: var(--gold);
  margin-top: 8px;
  margin-bottom: 2px;
}

/* Ranking */
.rank { list-style: none; }
.rank li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 8px;
  font-weight: 800;
}
.rank li .place { width: 2em; color: var(--muted); }
.rank li .who { flex: 1; display: flex; align-items: center; gap: 8px; }
.rank li .pts { color: var(--gold); }
.rank li.top {
  border-color: var(--gold);
  background: linear-gradient(90deg, #292410, var(--card));
  box-shadow: 0 0 20px rgba(250,204,21,0.15);
}
.rank li.top .place { color: var(--gold); }
.podium-mini li { padding: 10px 14px; font-size: 0.95rem; }

/* End screen */
.end-screen {
  text-align: center;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 32px;
}
.title-end {
  font-size: clamp(2rem, 6vw, 3.1rem);
  color: var(--gold);
  text-shadow: var(--glow);
  margin-bottom: 10px;
}
.end-empate-badge {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: #fef3c7;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.4);
  letter-spacing: 0.02em;
}
.end-empate-badge.hidden { display: none; }

/* Classic podium: 2nd | 1st | 3rd */
.podium-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 22px);
  margin: 8px auto 28px;
  min-height: 280px;
  padding: 8px 4px 0;
}
.podium-col {
  flex: 1 1 0;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(28px);
}
.podium-stage.is-revealed .podium-col-3 {
  animation: podiumRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}
.podium-stage.is-revealed .podium-col-2 {
  animation: podiumRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}
.podium-stage.is-revealed .podium-col-1 {
  animation: podiumRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
@keyframes podiumRise {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.podium-players {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  min-height: 4px;
}
.podium-player {
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.podium-player .pp-emoji {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 2px;
}
.podium-player .pp-name {
  display: block;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  color: var(--text);
  word-break: break-word;
}
.podium-player .pp-score {
  display: block;
  margin-top: 2px;
  font-weight: 800;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: var(--gold);
}
.podium-player.tie-tag::after {
  content: "Empate";
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fef3c7;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.3);
}
.podium-empty {
  width: 100%;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(156, 163, 175, 0.55);
  font-weight: 700;
  font-size: 0.9rem;
}
.podium-block {
  width: 100%;
  border-radius: 18px 18px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14px;
  gap: 4px;
  border: 1px solid transparent;
  position: relative;
}
.podium-medal { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; }
.podium-place {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.02em;
}
.podium-col-1 .podium-block {
  height: clamp(150px, 22vh, 210px);
  background: linear-gradient(180deg, #facc15 0%, #a16207 55%, #713f12 100%);
  border-color: rgba(254, 243, 199, 0.55);
  box-shadow: 0 0 36px rgba(250, 204, 21, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  color: #1c1404;
}
.podium-col-2 .podium-block {
  height: clamp(110px, 16vh, 155px);
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 50%, #64748b 100%);
  border-color: rgba(226, 232, 240, 0.45);
  box-shadow: 0 0 24px rgba(148, 163, 184, 0.18), inset 0 1px 0 rgba(255,255,255,0.3);
  color: #0f172a;
}
.podium-col-3 .podium-block {
  height: clamp(88px, 13vh, 125px);
  background: linear-gradient(180deg, #fdba74 0%, #b45309 55%, #7c2d12 100%);
  border-color: rgba(253, 186, 116, 0.4);
  box-shadow: 0 0 22px rgba(180, 83, 9, 0.22), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #1c0a04;
}
.podium-col.is-empty .podium-block {
  opacity: 0.38;
  filter: saturate(0.55);
  box-shadow: none;
}
.podium-col.is-empty .podium-medal { opacity: 0.55; }
.podium-col-1.has-tie .podium-block {
  box-shadow: 0 0 48px rgba(250, 204, 21, 0.42), inset 0 1px 0 rgba(255,255,255,0.3);
}
.podium-col-1 .podium-player {
  border-color: rgba(250, 204, 21, 0.45);
  background: linear-gradient(160deg, #292410, #111827);
}
.podium-col-2 .podium-player {
  border-color: rgba(148, 163, 184, 0.45);
}
.podium-col-3 .podium-player {
  border-color: rgba(180, 83, 9, 0.45);
}

/* 4º+ below podium */
.podium-rest {
  list-style: none;
  max-width: 520px;
  margin: 0 auto 28px;
  text-align: left;
}
.podium-rest:empty { display: none; margin: 0; }
.podium-rest li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 8px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
}
.podium-stage.is-revealed ~ .podium-rest li {
  animation: restFade 0.4s ease forwards;
}
.podium-stage.is-revealed ~ .podium-rest li:nth-child(1) { animation-delay: 0.7s; }
.podium-stage.is-revealed ~ .podium-rest li:nth-child(2) { animation-delay: 0.8s; }
.podium-stage.is-revealed ~ .podium-rest li:nth-child(3) { animation-delay: 0.9s; }
.podium-stage.is-revealed ~ .podium-rest li:nth-child(n+4) { animation-delay: 1s; }
@keyframes restFade {
  to { opacity: 1; transform: translateY(0); }
}
.podium-rest li .place { width: 2.4em; color: var(--muted); }
.podium-rest li .who { flex: 1; display: flex; align-items: center; gap: 8px; }
.podium-rest li .pts { color: var(--gold); }
.medal { font-size: 1.5rem; }

.end-reveal #btn-home {
  margin-top: 8px;
  min-width: min(320px, 86vw);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

@media (max-width: 640px) {
  .podium-stage { gap: 6px; min-height: 240px; }
  .podium-player { padding: 8px 8px; border-radius: 12px; }
  .podium-empty { padding: 10px 6px; font-size: 0.78rem; }
  .podium-block { border-radius: 14px 14px 8px 8px; padding-top: 10px; }
}

/* Large TV tweaks */
@media (min-width: 900px) {
  .view-home .title-hero { margin-bottom: 8px; }
  .tiles-host .tile { min-height: 110px; font-size: 1.3rem; padding: 26px 22px; }
  .tiles-host .tile .letter { width: 52px; height: 52px; font-size: 1.5rem; }
  .q-giant { margin-top: 12px; margin-bottom: 12px; }
  .host-game { padding: 0 12px; }
}

@media (max-width: 480px) {
  .emoji-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .emoji-btn { font-size: 1.25rem; }
  .tiles-player { gap: 8px; }
  .tiles-player .tile { min-height: 70px; padding: 12px 12px; font-size: 0.98rem; }
  .tiles-player .tile .letter { width: 34px; height: 34px; font-size: 1.05rem; }
  .tiles-player.vf-mode .tile { min-height: 60px; height: 60px; padding: 12px 14px; }
  .tiles-player.vf-mode .tile .label { font-size: 1.18rem; }
  .timer-sec { font-size: 1.7rem; }
  .q-phone { font-size: clamp(1.42rem, 6.2vw, 1.62rem); line-height: 1.26; }
  .pg-middle { padding-top: 4px; padding-bottom: 6px; }
}

/* Fullscreen button — always findable in topbar */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 2px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #fef3c7;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
  z-index: 50;
}
.btn-fullscreen:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-fullscreen:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-fullscreen:active { transform: scale(0.97); }
.btn-fullscreen .fs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}
.btn-fullscreen .fs-icon svg { display: block; }
.btn-fullscreen .fs-icon svg[hidden] { display: none; }
/* Keep fullscreen state neutral; the icon itself communicates exit. */
.btn-fullscreen.is-fullscreen {
  color: #e5e7eb;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn-fullscreen .fs-label { display: none !important; }

/* Mute / unmute — same discreet topbar style as fullscreen */
.btn-mute {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 2px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #fef3c7;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
  z-index: 50;
}
.btn-mute[hidden] { display: none !important; }
.btn-mute:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-mute:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-mute:active { transform: scale(0.97); }
.btn-mute .mute-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}
.btn-mute .mute-icon svg { display: block; }
.btn-mute .mute-icon svg[hidden] { display: none; }
.btn-mute.is-muted {
  color: #e5e7eb;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn-mute.needs-gesture {
  color: var(--gold);
  animation: mutePulse 1.4s ease-in-out infinite;
}
@keyframes mutePulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@media (max-width: 420px) {
  .btn-fullscreen { padding: 8px 10px; }
  .btn-mute { padding: 8px 10px; }
  .brand-mini { font-size: 0.82rem; }
  .topbar-right { gap: 8px; }
}

/* Question type badge / pill */
.q-type-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}
.q-type-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #1f2937;
  color: var(--muted);
  border: 1px solid #374151;
}
.q-type-badge.tipo-quiz {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}
.q-type-badge.tipo-vf {
  color: #fde047;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.4);
}
.q-type-badge.tipo-cv {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Blank for "complete the verse" — short underline, word-sized */
.blank {
  display: inline-block;
  width: 3.5em;
  max-width: 4em;
  min-width: 2.8em;
  height: 0.95em;
  border-bottom: 2px solid var(--gold);
  margin: 0 0.12em;
  vertical-align: baseline;
  color: transparent;
  overflow: hidden;
  font-weight: 800;
  line-height: 1;
}
.q-giant .blank {
  width: 3.75em;
  max-width: 4em;
  border-bottom-width: 2.5px;
  margin: 0 0.15em;
}
.q-phone .blank {
  width: 3.15em;
  max-width: 3.5em;
  min-width: 2.8em;
  border-bottom-width: 2px;
}

/* True/False: green True, red False */
.tiles.vf-mode .tile.c0 {
  background: #16a34a !important; /* green */
  background: linear-gradient(180deg, #22c55e, #16a34a) !important;
  box-shadow: 0 6px 0 #14532d;
}
.tiles.vf-mode .tile.c1 {
  background: #dc2626 !important; /* red */
  background: linear-gradient(180deg, #ef4444, #dc2626) !important;
  box-shadow: 0 6px 0 #7f1d1d;
}
.tiles.vf-mode .tile.c0 .letter,
.tiles.vf-mode .tile.c1 .letter {
  background: rgba(0, 0, 0, 0.28);
}
.tiles.vf-mode .tile .label {
  font-size: 1.45rem;
}
.tiles-host.vf-mode .tile .label {
  font-size: 1.6rem;
}

/* Player lobby tips */
.theme-badge-line { margin-top: 10px; margin-bottom: 4px; }
.wait-tips {
  margin-top: 28px;
  text-align: left;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px 14px;
}
.tips-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tips-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 600;
}
.tips-list li strong { color: var(--text); font-weight: 800; }
.tip-ico {
  flex-shrink: 0;
  width: 1.6em;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.3;
}
.player-wait {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ── Host options (pre-lobby) ── */
/* Lock page scroll on options so Confirmar/Voltar stay pinned.
   Flex chain uses flex-basis:0 so nested .theme-col-scroll gets a definite
   height and owns wheel/touch scroll (PC + phone). */
html.is-host-options,
body.is-host-options {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  /* Do NOT set touch-action:none here — it intersects with descendants and
     would cancel .theme-col-scroll { touch-action: pan-y }. Page pan is
     blocked via overflow:hidden + JS touchmove guard. */
}
body.is-host-options #app {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.is-host-options .topbar {
  flex-shrink: 0;
}
body.is-host-options #view-host-options {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
}

#view-host-options {
  padding: 8px 16px 0;
  min-height: 0;
  flex: 1 1 0;
  /* Constrained by body.is-host-options #app (100dvh); keep overflow on theme list only */
  height: auto;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.options-screen {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
}
.options-header {
  flex-shrink: 0;
  line-height: 1.15;
}
#view-host-options .badge-host {
  padding: 4px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin: 0;
}
.options-title {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--gold);
  margin: 4px 0 8px;
  text-shadow: var(--glow);
  line-height: 1.15;
}
.options-sub { display: none; }

/* Tabs: Temas | Configurações */
.options-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin: 0 auto 10px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.options-tab {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(0.88rem, 2vw, 1rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  transition: color .15s, background .15s, box-shadow .15s;
}
.options-tab .tab-ico {
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.85;
}
.options-tab:hover {
  color: var(--text);
}
.options-tab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.options-tab.active {
  color: #111;
  background: linear-gradient(180deg, #fde047, var(--gold));
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.28);
}
.options-tab.active .tab-ico { opacity: 1; }

.options-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}
.options-panel {
  display: none;
  flex: 1 1 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.options-panel.active {
  display: flex;
}
.opt-block {
  text-align: left;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
.opt-themes {
  gap: 8px;
}
.opt-config-hint {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px 0 6px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.opt-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0;
}

/* Theme picker: search + AT | NT columns (fill height to confirm; scroll on overflow) */
.theme-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.theme-head .opt-label { margin-bottom: 0; }
.theme-count {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  margin-left: 6px;
}
.theme-search {
  flex: 1 1 180px;
  max-width: 320px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
}
.theme-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

/* Mobile-only AT | NT switcher (hidden on desktop/TV) */
.theme-testament-tabs {
  display: none;
  flex-shrink: 0;
  gap: 4px;
  margin: 0;
  padding: 3px;
  width: 100%;
  max-width: 100%;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  box-sizing: border-box;
}
.theme-testament-tab {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  flex: 1 1 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color .15s, background .15s, box-shadow .15s;
}
.theme-testament-tab:hover { color: var(--text); }
.theme-testament-tab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.theme-testament-tab.active {
  color: #111;
  background: linear-gradient(180deg, #fde047, var(--gold));
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.28);
}

.theme-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
.theme-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 8px 8px 6px;
}
.theme-col-title {
  flex-shrink: 0;
  margin: 0 0 8px;
  padding: 2px 6px 6px;
  font-family: Outfit, Nunito, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(250, 204, 21, 0.18);
}
.theme-col-ico {
  font-size: 1rem;
  line-height: 1;
  filter: none;
}
.theme-col-scroll,
.theme-cards,
.theme-cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: start;
  align-items: stretch;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 10px 4px 14px;
  scroll-padding-top: 12px;
  scroll-padding-bottom: 16px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  position: relative;
  /* Fill column down to Confirmar; THIS box owns wheel/touch scroll */
  max-height: none;
  /* Avoid scroll chaining / "lifted" rubber-band on iOS */
  -ms-scroll-chaining: none;
}
.theme-col-scroll .theme-card,
.theme-cards .theme-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  /* Keep card chrome fully visible while scrolling */
  scroll-margin-top: 8px;
  scroll-margin-bottom: 8px;
}

.theme-card {
  font-family: inherit;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s, opacity .15s;
  /* Never collapse below content — min-height:0 in this flex/grid chain
     was shrinking cards to ~padding height and letting rows paint over each other. */
  min-height: min-content;
  height: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  position: relative;
  z-index: 0;
  overflow: visible;
  align-self: start;
  appearance: none;
  -webkit-appearance: none;
}
.theme-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.theme-card .tc-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  position: static;
}
.theme-card .tc-title,
.theme-card .tc-ref,
.theme-card .tc-count {
  display: block;
  position: static;
  float: none;
  clear: both;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transform: none;
}
.theme-card .tc-title {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
  margin: 0;
  padding: 0;
}
.theme-card .tc-ref {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  margin: 0;
  padding: 0;
}
.theme-card .tc-count {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin: 2px 0 0;
  padding: 0;
}
.theme-card.selected {
  border-color: var(--gold);
  background: linear-gradient(160deg, #1f1a0c, var(--card));
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35), 0 8px 24px rgba(250, 204, 21, 0.12);
  z-index: 1;
}
.theme-card.selected .tc-count {
  color: rgba(250, 204, 21, 0.75);
}
.theme-card:disabled,
.theme-card.locked {
  opacity: 0.45;
  cursor: not-allowed;
}
.theme-card .tc-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  max-width: 100%;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #fbbf24;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
}
.theme-card .tc-lock-ico {
  font-size: 0.85em;
  line-height: 1;
}

/* Compact readable cards — vertical stack: title → ref → count */
.theme-card.compact {
  min-height: min-content;
  padding: 12px 14px 12px;
  border-radius: 14px;
  gap: 4px;
  position: relative;
  margin: 0;
  overflow: hidden;
}
.theme-card.compact .tc-title {
  font-size: 0.95rem;
  line-height: 1.35;
  padding-right: 0;
}
.theme-card.compact .tc-ref {
  font-size: 0.8rem;
  line-height: 1.4;
}
.theme-card.compact .tc-count {
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 2px;
}
.theme-empty {
  color: var(--muted);
  font-weight: 700;
  padding: 12px 4px;
  margin: 0;
  font-size: 0.85rem;
}

.opt-toggles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  padding: 8px 4px 16px;
}
.opt-toggle {
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s, background .15s, box-shadow .15s;
  min-height: 0;
  flex-shrink: 0;
}
.opt-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.opt-toggle.on {
  border-color: rgba(250, 204, 21, 0.55);
  background: linear-gradient(90deg, #1a1608, var(--card));
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.12);
}
.opt-toggle.is-locked,
.opt-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.opt-toggle.is-locked:not(.on) {
  border-color: var(--border);
  background: var(--card);
}
.opt-toggle.is-locked .opt-switch {
  opacity: 0.45;
}

.opt-toggle-ico {
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 1.5em;
  text-align: center;
  opacity: 0.9;
}
.opt-toggle-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.opt-toggle-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  font-family: Outfit, Nunito, sans-serif;
}
.opt-toggle-text small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.9;
}
.opt-switch {
  flex-shrink: 0;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: #374151;
  position: relative;
  transition: background .2s;
}
.opt-switch i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9ca3af;
  transition: transform .2s, background .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.opt-toggle.on .opt-switch {
  background: linear-gradient(180deg, #fde047, var(--gold));
}
.opt-toggle.on .opt-switch i {
  transform: translateX(24px);
  background: #111;
}

/* Footer — pinned in flex column (not sticky); opaque navy so body blue glow never bleeds under Voltar.
   Sticky + unlocked body scroll made the whole options UI lift; page scroll is locked via is-host-options. */
.options-actions {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  margin-top: 8px;
  /* Full-bleed under parent side padding so no side/bottom blue band */
  margin-left: -16px;
  margin-right: -16px;
  align-self: stretch;
  padding: 14px 24px max(22px, calc(18px + env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid rgba(250, 204, 21, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background-color: #14122d;
  background-image: linear-gradient(180deg, #1a1638 0%, #14122d 40%, #100e24 100%);
  box-shadow: 0 -10px 28px rgba(16, 12, 36, 0.85);
  /* No blur/translucency — avoids blue radial from body showing as a strip */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 8;
}
.options-actions .btn {
  margin-top: 0;
}
.options-actions .btn-hero {
  max-width: 420px;
  width: 100%;
  margin-top: 0;
  padding: 14px 22px;
  font-size: 1.05rem;
}
.options-actions .btn-ghost {
  margin-top: 0;
  padding: 10px 16px;
  min-height: 42px;
  opacity: 0.92;
  color: rgba(243, 244, 246, 0.78);
}
.options-summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin: -8px 0 14px;
  min-height: 0;
  letter-spacing: 0.02em;
  opacity: 0.85;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.options-summary:empty { display: none; }
.options-summary .opts-quiet {
  color: var(--muted);
  font-weight: 600;
}
.options-summary .pill {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 2px 9px;
  margin: 0 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.9;
}
.options-summary .pill.on,
.options-summary .pill.off {
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.28);
  background: transparent;
  opacity: 0.9;
}

/* Ranking hidden / surprise blur on host TV */
.live-rank.is-off { display: none; }
.live-rank.is-hidden-surprise .podium-mini {
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.live-rank.is-hidden-surprise #host-rank-title {
  color: var(--muted);
}
.rank-hidden-msg {
  margin-top: 10px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed rgba(250, 204, 21, 0.35);
  border-radius: 14px;
  letter-spacing: 0.02em;
}

/* End suspense */
.end-suspense {
  padding: 48px 12px 24px;
}
.suspense-title {
  animation: suspensePulse 1.2s ease-in-out infinite;
}
@keyframes suspensePulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); text-shadow: 0 0 48px rgba(250,204,21,0.55); }
}
.suspense-pulse {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 16px;
}
.suspense-pulse span {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1s ease-in-out infinite;
}
.suspense-pulse span:nth-child(2) { animation-delay: .15s; }
.suspense-pulse span:nth-child(3) { animation-delay: .3s; }
.end-reveal.reveal-pop .title-end {
  animation: popIn .45s ease;
}

@media (max-width: 560px) {
  .options-tab { padding: 8px 14px; font-size: 0.88rem; min-height: 38px; }
  .opt-toggle { padding: 12px 10px; gap: 10px; min-height: 72px; }
  .opt-toggle-text strong { font-size: 1rem; }
  .opt-toggle-text small { font-size: 0.8rem; }
  .opt-switch { width: 48px; height: 28px; }
  .opt-switch i { width: 20px; height: 20px; top: 4px; left: 4px; }
  .opt-toggle.on .opt-switch i { transform: translateX(20px); }

  /* Mobile theme picker: AT | NT tabs — one testament fills height + scrolls */
  .theme-testament-tabs {
    display: flex;
  }
  .theme-columns {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    flex: 1 1 0;
    min-height: 0;
  }
  .theme-col {
    display: none;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 6px 6px 4px;
  }
  .theme-col.is-active-testament {
    display: flex;
    flex-direction: column;
  }
  /* Title lives in the tab; hide duplicate column heading on phone */
  .theme-col-title {
    display: none;
  }
  .theme-col-scroll,
  .theme-cards,
  .theme-cards-scroll {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    max-height: none;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding: 10px 4px 16px;
    scroll-padding-top: 12px;
    scroll-padding-bottom: 16px;
  }
  .theme-card.compact {
    padding: 14px 14px;
    min-height: 64px;
  }
  .theme-card.compact .tc-title { font-size: 0.98rem; }
  .theme-card.compact .tc-ref { font-size: 0.82rem; }
  .options-actions {
    margin-left: -16px;
    margin-right: -16px;
    border-top-color: rgba(250, 204, 21, 0.14);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: max(24px, calc(18px + env(safe-area-inset-bottom, 0px)));
    gap: 8px;
    background-color: #14122d;
    background-image: linear-gradient(180deg, #1a1638 0%, #14122d 40%, #100e24 100%);
    box-shadow: 0 -10px 28px rgba(16, 12, 36, 0.85);
  }
  .options-actions .btn-ghost {
    min-height: 44px;
    padding: 11px 16px;
    opacity: 0.95;
  }
}

/* Short viewports (tablet/phone landscape ~800px tall and below).
   Do NOT reset .options-screen height — that broke the flex scroll chain
   and made theme lists feel stuck/lifted on phones + many PC windows. */
@media (max-height: 820px) {
  #view-host-options { padding: 4px 12px 0; }
  body.is-host-options .options-screen {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  .options-title { font-size: 1.12rem; margin: 2px 0 6px; }
  #view-host-options .badge-host { padding: 3px 8px; font-size: 0.62rem; }
  .options-tabs { margin-bottom: 8px; padding: 3px; }
  .options-tab { padding: 6px 14px; min-height: 34px; font-size: 0.88rem; }
  .theme-head { gap: 6px; }
  .theme-search { padding: 6px 10px; font-size: 0.85rem; }
  .theme-testament-tab { padding: 6px 10px; min-height: 36px; font-size: 0.82rem; }
  .theme-col-scroll,
  .theme-cards,
  .theme-cards-scroll {
    gap: 8px;
  }
  .theme-card.compact {
    padding: 12px 14px;
  }
  .options-actions {
    margin-top: 6px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 10px 20px max(20px, calc(14px + env(safe-area-inset-bottom, 0px)));
    gap: 6px;
    background-color: #14122d;
  }
  .options-actions .btn-hero { padding-top: 12px; padding-bottom: 12px; }
}

@media (max-height: 640px) {
  .options-title { font-size: 1rem; margin: 0 0 4px; }
  .options-tabs { margin-bottom: 6px; }
  .options-tab { padding: 5px 12px; min-height: 30px; font-size: 0.82rem; }
  .theme-testament-tab { padding: 5px 8px; min-height: 32px; font-size: 0.78rem; }
  .theme-card.compact { padding: 10px 12px; gap: 4px; min-height: 56px; }
  .theme-card.compact .tc-title { font-size: 0.9rem; }
  .theme-card.compact .tc-ref { font-size: 0.76rem; }
  .theme-col-title { font-size: 0.72rem; margin-bottom: 6px; }
  .theme-col-scroll,
  .theme-cards,
  .theme-cards-scroll {
    gap: 8px;
  }
  .options-actions {
    margin-top: 4px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 8px 16px max(18px, calc(12px + env(safe-area-inset-bottom, 0px)));
    gap: 6px;
    background-color: #14122d;
  }
}

/* ===== Legal pages + landing footer ===== */

/* Landing discreet legal links */
.home-legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.72;
}
.home-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.home-legal a {
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s, opacity .15s;
}
.home-legal a:hover,
.home-legal a:focus-visible {
  color: var(--gold);
  outline: none;
}
.home-legal-sep { color: #475569; user-select: none; }
.home-credit {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
  opacity: 0.9;
}

/* Desktop home: fill the viewport so the legal footer sits at the bottom
   and the hero reads larger on wide screens. Mobile rules above stay put. */
@media (min-width: 901px) {
  body.is-home #app {
    min-height: 100dvh;
    height: 100dvh;
  }
  body.is-home .view-home {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0;
  }
  body.is-home .landing-page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: min(1180px, 100%);
    padding-bottom: 8px;
  }
  body.is-home .landing-hero {
    flex: 1 1 auto;
    min-height: 0;
    align-items: center;
    padding: clamp(20px, 4vh, 56px) 0 clamp(12px, 2vh, 28px);
  }
  body.is-home .landing-hero-copy {
    max-width: 760px;
  }
  body.is-home .landing-kicker {
    font-size: 0.92rem;
    letter-spacing: 0.26em;
    margin-bottom: 18px;
  }
  body.is-home .view-home .title-hero {
    font-size: clamp(3.45rem, 5vw, 5.6rem);
    margin-bottom: 6px;
  }
  body.is-home .landing-slogan {
    font-size: clamp(1.28rem, 1.7vw, 1.6rem);
    margin: 16px 0 14px;
  }
  body.is-home .landing-desc {
    font-size: 1.18rem;
    line-height: 1.6;
    max-width: 46ch;
    margin-bottom: 34px;
  }
  body.is-home .landing-ctas {
    max-width: 460px;
    gap: 16px;
  }
  body.is-home .landing-ctas .btn {
    font-size: 1.28rem;
    padding: 20px 28px;
    border-radius: 20px;
  }
  body.is-home .home-legal {
    margin-top: auto;
    margin-bottom: 10px;
    padding-top: 14px;
    flex-shrink: 0;
  }
}

/* Standalone legal documents */
body.legal-page {
  overflow-y: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.legal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(8, 11, 24, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.legal-brand {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #cbd5e1;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.legal-brand span { color: var(--gold); }
.legal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}
.legal-nav a {
  color: #94a3b8;
  text-decoration: none;
}
.legal-nav a[aria-current="page"],
.legal-nav a:hover {
  color: var(--gold);
}
.legal-sep { color: #475569; user-select: none; }

.legal-wrap {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}
.legal-eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  margin-bottom: 10px;
}
.legal-title {
  font-family: Outfit, Nunito, sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}
.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.legal-disclaimer {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 28px;
  color: #e5e7eb;
  font-size: 0.92rem;
  line-height: 1.55;
}
.legal-disclaimer strong { color: var(--gold); }
.legal-disclaimer em { font-style: italic; color: #fde68a; }

.legal-section {
  margin-bottom: 26px;
}
.legal-section h2 {
  font-family: Outfit, Nunito, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}
.legal-section h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f0;
  margin: 16px 0 8px;
}
.legal-section p,
.legal-section li {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal-section p { margin-bottom: 10px; }
.legal-section ul {
  margin: 0 0 10px 1.15rem;
  padding: 0;
}
.legal-section li { margin-bottom: 6px; }
.legal-section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-back {
  margin-top: 32px;
  font-weight: 800;
}
.legal-back a {
  color: #94a3b8;
  text-decoration: none;
}
.legal-back a:hover { color: var(--gold); }

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 28px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  border-top: 1px solid rgba(31, 41, 55, 0.85);
}
.legal-foot a {
  color: #94a3b8;
  text-decoration: none;
}
.legal-foot a:hover { color: var(--gold); }

@media (max-width: 520px) {
  .legal-top { padding: 12px 14px; }
  .legal-wrap { padding: 22px 16px 40px; }
  .home-legal { margin-top: 22px; font-size: 0.74rem; }
}


/* —— Exit / leave (discreet) —— */
.btn.btn-exit {
  max-width: 280px;
  width: auto;
  min-width: 140px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  opacity: 0.9;
}
.btn.btn-exit:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.45);
  opacity: 1;
}
.btn.btn-exit-inline {
  margin-top: 16px;
  font-size: 0.85rem;
  padding: 8px 14px;
  min-width: 0;
  max-width: 200px;
  opacity: 0.75;
}
.lobby-left .btn-exit {
  display: block;
}
.player-wait .btn-exit {
  margin-top: 18px;
  margin-bottom: 4px;
}

/* —— Confirm modal (TV-readable) —— */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.confirm-modal.hidden,
.confirm-modal[hidden] {
  display: none !important;
}
.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(4px);
}
.confirm-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  text-align: center;
}
.confirm-msg {
  color: var(--text);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 22px;
}
.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.confirm-actions .btn {
  margin-top: 0;
  width: 100%;
  max-width: none;
}
.confirm-actions .btn.secondary {
  font-weight: 700;
}
@media (min-width: 520px) {
  .confirm-actions {
    flex-direction: row-reverse;
    gap: 10px;
  }
  .confirm-actions .btn {
    flex: 1;
  }
}

/* —— Name prompt modal (in-app; replaces window.prompt) —— */
.name-prompt-card {
  text-align: left;
}
.name-prompt-title {
  margin: 0 0 16px;
  text-align: center;
  color: var(--gold);
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.name-prompt-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.name-prompt-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
}
.name-prompt-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}
.name-prompt-actions {
  margin-top: 0;
}


/* ===== Mode picker (didactic cards) ===== */
.mode-picker {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100dvh - 72px);
  justify-content: center;
}
.mode-picker-header {
  text-align: center;
}
.mode-picker-title {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  color: var(--text);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}
.mode-picker-sub {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.mode-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .mode-cards {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}
.mode-card {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  background: linear-gradient(180deg, #0c1428 0%, #0b1220 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.22);
  border-radius: 22px;
  padding: 0;
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.mode-card:hover,
.mode-card:focus-visible,
.mode-card:active {
  border-color: var(--gold);
  filter: brightness(1.12);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.65),
    0 0 32px rgba(250, 204, 21, 0.38),
    0 18px 44px rgba(0, 0, 0, 0.38);
  outline: none;
}
.mode-card:hover,
.mode-card:focus-visible {
  transform: translateY(-4px);
}
.mode-card:active {
  transform: translateY(-1px);
}
.mode-illu {
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  background: #070b16;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(250, 204, 21, 0.2);
}
.mode-illu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.mode-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
}
.mode-card-title {
  font-family: Outfit, Nunito, sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 800;
  margin: 0;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.mode-card-desc {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
  font-weight: 600;
  line-height: 1.4;
}

/* Discreet solo option on mode picker (under TV / Online) */
.mode-solo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, rgba(12, 18, 36, 0.96), rgba(10, 14, 28, 0.98));
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.mode-solo-card:hover,
.mode-solo-card:focus-visible {
  border-color: rgba(250, 204, 21, 0.5);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.32);
  outline: none;
  transform: translateY(-2px);
}
.mode-solo-card:active {
  transform: translateY(0);
}
.mode-solo-badge {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1220;
  background: linear-gradient(135deg, #facc15, #eab308);
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1;
}
.mode-solo-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mode-solo-title {
  font-family: Outfit, Nunito, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.mode-solo-desc {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #94a3b8;
}
.mode-solo-desc strong {
  color: var(--gold);
  font-weight: 700;
}
.mode-solo-cta {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.mode-solo-cta::after { content: " →"; }
@media (max-width: 420px) {
  .mode-solo-card {
    align-items: flex-start;
    gap: 10px;
  }
  .mode-solo-cta {
    align-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mode-solo-card,
  .mode-solo-card:hover,
  .mode-solo-card:focus-visible,
  .mode-solo-card:active {
    transition: none;
    transform: none;
  }
}

.mode-picker-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .mode-card,
  .mode-card:hover,
  .mode-card:focus-visible,
  .mode-card:active {
    transition: none;
    transform: none;
  }
}

/* ===== Online lobby (creator plays) ===== */
.badge-online {
  background: rgba(19, 104, 206, 0.25) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(147, 197, 253, 0.35);
}
.online-lobby {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.online-lobby-header {
  text-align: center;
}
.online-lobby-title {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  margin: 8px 0 4px;
  color: var(--text);
}
.online-lobby-hint {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}
.online-code-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 16px 14px;
  text-align: center;
}
.code-online {
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  letter-spacing: 0.18em;
  margin: 4px 0 14px;
}
.online-share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.online-share-row .btn-share {
  flex: 1 1 140px;
  margin-top: 0;
  min-height: 48px;
  font-size: 1rem;
}
.online-share-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.3em;
}
.online-share-hint.is-flash {
  color: var(--gold);
}
.online-me {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
}
.online-me-emoji {
  font-size: 1.6rem;
  line-height: 1;
}
.online-me-name {
  font-weight: 800;
  font-size: 1.1rem;
  flex: 1;
}
.online-me-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
}
.online-players-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}
.players-grid-online {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.players-grid-online .player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}
.players-grid-online .player-chip.is-me {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.25);
}
.players-grid-online .p-emoji {
  font-size: 1.15rem;
}
.players-grid-online .p-name {
  font-size: 0.95rem;
}
.online-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.online-actions .btn-hero {
  width: 100%;
  max-width: none;
}

/* Shared start / rematch countdown — navy/gold, TV-readable */
.countdown-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(70vh, 640px);
  padding: 24px 16px;
  gap: 8px;
}
.countdown-eyebrow {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow);
}
.countdown-sub {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fef3c7;
  margin-bottom: 8px;
}
.countdown-num {
  font-family: Outfit, Nunito, sans-serif;
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(250, 204, 21, 0.35), 0 8px 0 rgba(0, 0, 0, 0.35);
  animation: countdown-pop 0.45s ease;
}
.countdown-theme {
  margin-top: 18px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--muted);
  font-weight: 700;
}
@keyframes countdown-pop {
  0% { transform: scale(0.72); opacity: 0.35; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* End-of-match host / guest actions */
.end-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.end-actions .btn {
  width: 100%;
}
.end-actions-guest {
  gap: 14px;
}
.end-guest-wait {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 700;
  color: #fef3c7;
}


/* —— Presence strip (live answered vs thinking) —— */
.presence-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 0;
  margin: 0 0 8px;
  opacity: 0.92;
}
.presence-strip.is-empty {
  display: none;
}
.presence-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0 4px;
}
.presence-chips::-webkit-scrollbar { display: none; }
.presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 6px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.15;
  max-width: 7.2rem;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
}
.presence-chip .pc-emoji {
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.72;
  filter: grayscale(0.35);
  transition: opacity 0.25s, filter 0.25s;
}
.presence-chip .pc-name {
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: 0.01em;
  max-width: 5.2rem;
  font-size: 0.66rem;
  line-height: 1.15;
}
.presence-chip .pc-mark,
.presence-chip .pc-pts {
  display: none;
}
.presence-chip.is-thinking {
  color: #64748b;
}
.presence-chip.is-answered {
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.12);
}
.presence-chip.is-answered .pc-emoji {
  opacity: 1;
  filter: none;
}
.presence-chip.is-answered::after {
  content: "respondeu";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) scale(0.92);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: presence-tip 1.1s ease forwards;
}
.presence-chip.is-me {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28);
}
/* Score ✓/✗/+pts live in ephemeral toasts — chips stay thinking/answered only */
.presence-count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #1e293b;
}
.presence-strip-phone {
  margin: 8px 0 2px;
  justify-content: center;
}
.presence-strip-phone .presence-chips {
  justify-content: center;
}
.presence-strip-phone .presence-chip {
  font-size: 0.68rem;
  padding: 3px 8px 3px 5px;
  max-width: 7.2rem;
}
.presence-strip-phone .presence-chip::after {
  display: none; /* tip too noisy on phone */
}
.presence-strip-tv {
  margin: 2px 0 10px;
  justify-content: center;
}
.presence-strip-tv .presence-chip {
  font-size: 0.8rem;
  padding: 5px 11px 5px 7px;
}
.presence-strip-tv .pc-emoji {
  font-size: 1.05rem;
}
@keyframes presence-tip {
  0% { opacity: 0; transform: translateX(-50%) translateY(4px) scale(0.9); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-2px) scale(0.96); }
}
@keyframes presence-pts-pop {
  0% { opacity: 0; transform: translateY(6px) scale(0.85); }
  20% { opacity: 1; transform: translateY(0) scale(1.08); }
  55% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.85; transform: translateY(0) scale(1); }
}
@media (max-width: 520px) {
  .presence-strip-tv .presence-chip::after { display: none; }
}

/* —— Score toasts (ephemeral, no layout strip) —— */
.score-toasts {
  position: fixed;
  left: 50%;
  top: max(12px, env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  max-width: min(96vw, 720px);
  pointer-events: none;
  padding: 0 8px;
}
.score-toasts:empty {
  display: none;
}
.score-toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.94);
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 11.5rem;
  animation: score-toast-life 2.6s ease forwards;
}
.score-toast.is-ok {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(6, 40, 28, 0.94);
}
.score-toast.is-miss {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(40, 12, 16, 0.94);
}
.score-toast.is-me {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(250, 204, 21, 0.35);
}
.score-toast .st-emoji {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}
.score-toast .st-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 5.5rem;
  color: #f8fafc;
}
.score-toast .st-pts {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  margin-left: 2px;
  flex-shrink: 0;
}
.score-toast .st-miss {
  color: #f87171;
  font-size: 0.9rem;
  font-weight: 900;
  margin-left: 2px;
  flex-shrink: 0;
}
@keyframes score-toast-life {
  0% { opacity: 0; transform: translateY(-10px) scale(0.92); }
  12% { opacity: 1; transform: translateY(0) scale(1); }
  72% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(0.96); }
}
@media (max-width: 520px) {
  .score-toasts { gap: 6px; }
  .score-toast {
    padding: 7px 10px;
    font-size: 0.72rem;
    max-width: 9.8rem;
  }
  .score-toast .st-name { max-width: 4.4rem; }
}



/* Host distinct in online lobby */
.players-grid-online .player-chip.is-host {
  border-color: var(--gold);
  background: rgba(250, 204, 21, 0.1);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28);
}
.players-grid-online .player-chip .chip-act {
  margin-left: 2px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
}
.players-grid-online .player-chip .chip-act:hover {
  color: var(--gold);
}
.players-grid-online .player-chip .pact-kick:hover {
  color: #f87171;
}
.online-me.is-editable {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.online-me.is-editable:hover,
.online-me.is-editable:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35);
  outline: none;
}
.online-me.is-editable::after {
  content: "✎";
  margin-left: 6px;
  font-size: 0.75rem;
  opacity: 0.55;
}
.player-card.is-host {
  border-color: rgba(250, 204, 21, 0.45);
}
.audio-tip {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fef3c7;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: audio-tip-in 0.35s ease;
}
.audio-tip.hidden { display: none !important; }
@keyframes audio-tip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 420px) {
  .audio-tip { max-width: 7.5rem; font-size: 0.62rem; }
}



/* —— Info panel (nav: Como jogar / Sobre / FAQ) —— */
.info-panel {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.info-panel.hidden,
.info-panel[hidden] {
  display: none !important;
}
.info-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(4px);
}
.info-panel-sheet {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(88dvh, 720px);
  background: #0c1224;
  border: 1px solid rgba(55, 65, 81, 0.95);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 60px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  padding: 0;
  animation: infoSheetIn .22s ease-out;
}
@keyframes infoSheetIn {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 720px) {
  .info-panel {
    align-items: center;
    padding: 24px;
  }
  .info-panel-sheet {
    border-radius: 22px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.95);
    max-height: min(80dvh, 640px);
  }
}
.info-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  flex-shrink: 0;
}
.info-panel-title {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 800;
  color: #fff;
}
.info-panel-close {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.info-panel-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.info-panel-body {
  overflow-y: auto;
  padding: 16px 18px 8px;
  color: #e5e7eb;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}
.info-panel-body h3 {
  color: var(--gold);
  font-size: 1.12rem;
  margin: 14px 0 8px;
}
.info-panel-body h3:first-child { margin-top: 0; }
.info-panel-body p { margin: 0 0 12px; color: #cbd5e1; }
.info-panel-body ol,
.info-panel-body ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
  color: #e5e7eb;
}
.info-panel-body li { margin-bottom: 8px; }
.info-panel-body strong { color: #fff; }
.info-panel-body .info-tip {
  margin-top: 8px;
  color: #cbd5e1;
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.98rem;
}
/* Discreet solo promo (Como jogar) */
.info-solo-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(12, 18, 36, 0.98));
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: border-color .15s ease, background .15s ease;
}
.info-solo-card:hover,
.info-solo-card:focus-visible {
  border-color: rgba(250, 204, 21, 0.45);
  background: linear-gradient(165deg, rgba(20, 30, 52, 0.98), rgba(12, 18, 36, 1));
  outline: none;
}
.info-solo-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.72);
}
.info-solo-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}
.info-solo-copy {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #94a3b8;
  margin: 2px 0 4px;
}
.info-solo-copy strong { color: var(--gold); font-weight: 700; }
.info-solo-cta {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
}
.info-solo-cta::after { content: " →"; }

.info-faq-q {
  font-weight: 800;
  color: #fff;
  margin: 14px 0 4px;
}
.info-faq-q:first-child { margin-top: 0; }
.info-panel-foot {
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  flex-shrink: 0;
}
.info-panel-foot .btn {
  margin-top: 0;
  width: 100%;
  max-width: none;
}

/* Home declutter: no always-visible feature dump */
.landing-features,
.landing-section { display: none !important; }
.home-legal { margin-top: 8px; padding-bottom: 8px; }


/* —— Notice modal (in-app; replaces window.alert) —— */
.notice-card {
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(250, 204, 21, 0.12);
}
.notice-msg {
  color: var(--text);
  margin-bottom: 20px;
}
.notice-actions {
  /* single OK — keep primary gold styling from .btn.primary */
}
.notice-actions .btn.primary {
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 520px) {
  .notice-actions {
    flex-direction: row;
    justify-content: center;
  }
  .notice-actions .btn {
    flex: 0 1 220px;
  }
}


/* ===== Session length picker (navy/gold) ===== */
.session-length-picker .session-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .session-length-picker .session-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.session-card {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  background: linear-gradient(180deg, #0c1428 0%, #0b1220 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.22);
  border-radius: 22px;
  padding: 22px 18px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 168px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.session-card:hover,
.session-card:focus-visible {
  border-color: var(--gold);
  filter: brightness(1.12);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.65),
    0 0 32px rgba(250, 204, 21, 0.38),
    0 18px 44px rgba(0, 0, 0, 0.38);
  outline: none;
}
.session-card:active {
  transform: translateY(-1px);
}
.session-card.selected {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.65),
    0 0 28px rgba(250, 204, 21, 0.32),
    0 14px 36px rgba(0, 0, 0, 0.36);
}
.session-card-ico {
  font-size: 2rem;
  line-height: 1;
}
.session-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session-card-title {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.session-card-time {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
}
.session-card-desc {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 4px;
}
.opt-label em {
  font-style: normal;
  color: var(--gold);
}

/* Theme picker: clear multi-theme hint */
.theme-pick-hint {
  margin: 8px 0 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  color: #e8d5a3;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(15, 23, 42, 0.35));
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

/* Next theme interstitial — minimalist navy/gold countdown */
.countdown-screen.is-next-theme {
  gap: 6px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(250, 204, 21, 0.07), transparent 70%),
    transparent;
}
.countdown-screen.is-next-theme .countdown-eyebrow {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  opacity: 0.95;
}
.countdown-screen.is-next-theme .countdown-num {
  display: block;
  font-size: clamp(5rem, 18vw, 9rem);
  color: var(--gold);
  text-shadow: 0 0 48px rgba(250, 204, 21, 0.28), 0 6px 0 rgba(0, 0, 0, 0.3);
  margin: 4px 0 2px;
}
.countdown-screen.is-next-theme .countdown-sub {
  font-size: clamp(1.45rem, 4.2vw, 2.5rem);
  font-weight: 800;
  color: #fef3c7;
  margin: 10px 0 0;
  max-width: 18ch;
  line-height: 1.2;
}
.countdown-screen.is-next-theme .countdown-theme {
  margin-top: 8px;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: rgba(212, 175, 55, 0.72);
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* ============================================================
   PREVIEW: toque leve — subtle Instagram purple/magenta accents
   Visual only. Keeps the production look and gameplay unchanged.
   ============================================================ */
:root {
  --preview-purple: #8b5cf6;
  --preview-purple-soft: rgba(139, 92, 246, 0.16);
  --preview-magenta: #d946ef;
}
body {
  background:
    radial-gradient(760px 500px at 86% 4%, rgba(217, 70, 239, 0.10), transparent 70%),
    radial-gradient(680px 520px at 8% 92%, rgba(139, 92, 246, 0.09), transparent 72%),
    radial-gradient(900px 620px at 84% 10%, rgba(250, 204, 21, 0.18), transparent 70%),
    radial-gradient(760px 640px at 10% 88%, rgba(30, 64, 175, 0.15), transparent 74%),
    linear-gradient(135deg, #070a18 0%, #0b1530 54%, #15110a 100%);
}
body.is-home .topbar {
  border-bottom-color: rgba(139, 92, 246, 0.18);
  background: rgba(8, 11, 24, 0.76);
}
.title-hero em {
  background: linear-gradient(90deg, #facc15 0%, #f0abfc 58%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.landing-kicker,
.landing-section-kicker {
  color: #d8b4fe;
}
.btn.primary {
  background: linear-gradient(180deg, #fde68a 0%, #facc15 72%, #eab308 100%);
  box-shadow: 0 8px 28px rgba(250, 204, 21, 0.28), 0 0 0 1px rgba(217, 70, 239, 0.16);
}
.btn.primary:hover {
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.34), 0 0 0 3px rgba(217, 70, 239, 0.12);
}
.btn.btn-outline-gold,
button.btn.btn-outline-gold {
  border-color: rgba(192, 132, 252, 0.74) !important;
}
.btn.btn-outline-gold:hover,
button.btn.btn-outline-gold:hover {
  border-color: #d8b4fe !important;
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.11);
}
.landing-tip {
  border-color: rgba(139, 92, 246, 0.24);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.07), rgba(15, 23, 42, 0.28));
}
.feature-ico {
  border-color: rgba(192, 132, 252, 0.48);
  color: #d8b4fe;
  background: rgba(139, 92, 246, 0.07);
}
body.is-home .landing-nav-link.is-active::after {
  background: linear-gradient(90deg, var(--gold), var(--preview-magenta));
}
input:focus {
  border-color: var(--preview-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}


/* ============================================================
   PREVIEW: centralised landing polish — purple gradient retained
   Visual-only pass. Gameplay/layout outside home remain unchanged.
   ============================================================ */
:root {
  --preview-lilac: #c4b5fd;
  --preview-lilac-bright: #e9d5ff;
  --preview-violet: #8b5cf6;
  --preview-plum: #24153f;
}

/* Softer indigo/plum canvas keeps the preview's purple identity without
   changing the content or any game interaction. */
body {
  background:
    radial-gradient(820px 560px at 50% 34%, rgba(139, 92, 246, 0.18), transparent 72%),
    radial-gradient(620px 440px at 88% 2%, rgba(217, 70, 239, 0.13), transparent 72%),
    radial-gradient(680px 520px at 5% 96%, rgba(99, 102, 241, 0.16), transparent 74%),
    linear-gradient(145deg, #0a0b1b 0%, #14122d 48%, #1c1232 100%);
}

/* Keep the header on one clean visual rail; the inner brand never touches
   the viewport edge, which removes the clipped/crooked look on narrow widths. */
body.is-home .topbar {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 68px;
  padding: 12px clamp(18px, 3.8vw, 48px);
  border-bottom-color: rgba(196, 181, 253, 0.2);
  background: linear-gradient(180deg, rgba(12, 10, 29, 0.94), rgba(18, 14, 40, 0.88));
  box-shadow: 0 1px 0 rgba(255,255,255,0.025);
}
body.is-home .topbar-brand {
  align-items: center;
  min-height: 44px;
  gap: 11px;
  flex-shrink: 0;
}
body.is-home .brand-mini {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 2px;
  color: #f8fafc;
  font-size: 1.02rem;
  line-height: 1;
  white-space: nowrap;
}
body.is-home .brand-mini span {
  background: linear-gradient(90deg, #fef3c7 0%, #f0abfc 62%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.is-home .brand-sep {
  height: 22px;
  background: linear-gradient(180deg, rgba(250,204,21,.75), rgba(196,181,253,.45));
}
body.is-home .brand-presents {
  color: var(--preview-lilac-bright);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
body.is-home .topbar-right {
  align-items: center;
}
body.is-home .landing-nav-wrap,
body.is-home .landing-nav {
  align-items: center;
}
body.is-home .landing-nav-link {
  color: rgba(237,233,254,.82);
  line-height: 1.2;
}
body.is-home .landing-nav-link:hover,
body.is-home .landing-nav-link.is-active {
  color: #fff;
}
body.is-home .landing-nav-link.is-active::after {
  background: linear-gradient(90deg, #facc15, #d8b4fe);
}

/* The home hero is deliberately centred as a single column on every screen. */
body.is-home .landing-page {
  width: min(1120px, 100%);
  padding-inline: clamp(18px, 4vw, 48px);
}
body.is-home .landing-hero {
  justify-items: center;
  text-align: center;
}
body.is-home .landing-hero-copy {
  width: min(100%, 760px);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
body.is-home .landing-kicker {
  color: var(--preview-lilac-bright);
  text-shadow: 0 0 24px rgba(196,181,253,.2);
}
body.is-home .title-hero {
  color: #fff;
  text-shadow: 0 0 44px rgba(139,92,246,.22);
}
body.is-home .title-hero em {
  background: linear-gradient(90deg, #fde68a 0%, #f9a8d4 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.is-home .landing-slogan,
body.is-home .landing-desc {
  margin-inline: auto;
}
body.is-home .landing-desc {
  color: #ddd6fe;
}
body.is-home .landing-ctas {
  width: min(100%, 400px);
  max-width: 400px;
  margin-inline: auto;
  align-items: stretch;
  gap: 12px;
}
body.is-home .landing-ctas .btn,
body.is-home .landing-ctas .btn.btn-hero,
body.is-home .landing-ctas .btn.btn-outline-gold {
  width: 100%;
  max-width: none;
  min-height: 60px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
}
body.is-home .landing-ctas .btn.btn-hero {
  box-shadow: 0 12px 34px rgba(250,204,21,.22), 0 0 0 1px rgba(216,180,254,.12);
}
body.is-home .landing-ctas .btn.btn-outline-gold {
  border-color: rgba(196,181,253,.88) !important;
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(217,70,239,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
body.is-home .whatsapp-channel-cta {
  align-self: center;
  margin-inline: auto;
  color: #bbf7d0;
  background: rgba(16,185,129,.08);
  border-color: rgba(110,231,183,.34);
}
body.is-home .home-legal {
  text-align: center;
}

/* Small screens: maintain a tidy brand/control rail while preserving the
   hamburger behaviour already wired in app.js. */
@media (max-width: 860px) {
  body.is-home .topbar {
    min-height: 64px;
    padding-inline: 16px;
  }
  body.is-home .topbar-brand {
    gap: 8px;
  }
  body.is-home .landing-page {
    padding-inline: 18px;
  }
  body.is-home .landing-hero-copy {
    max-width: 620px;
  }
}
@media (max-width: 560px) {
  body.is-home .topbar {
    padding-inline: 14px;
  }
  body.is-home .brand-mini {
    font-size: .94rem;
  }
  body.is-home .landing-hero {
    padding-top: 22px;
  }
  body.is-home .landing-ctas {
    width: min(100%, 360px);
  }
  body.is-home .landing-ctas .btn,
  body.is-home .landing-ctas .btn.btn-hero,
  body.is-home .landing-ctas .btn.btn-outline-gold {
    min-height: 56px;
  }
}


/* ============================================================
   PREVIEW: edge-to-edge header + purple options footer match
   ============================================================ */
body.is-home .topbar {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  left: 0;
  right: 0;
}
body.is-host-options {
  background-color: #14122d;
}
.options-actions {
  background-color: #14122d !important;
  background-image: linear-gradient(180deg, #1a1638 0%, #14122d 42%, #100e24 100%) !important;
  box-shadow: 0 -10px 28px rgba(16, 12, 36, 0.88) !important;
  border-top-color: rgba(196, 181, 253, 0.16) !important;
}
