/* ─────────────────────────────────────────────
   player-timeline.css
   Desktop timeline (today column), card stack (mobile swipe),
   peek cards (stack background layers).
   Note: .p-timeline-compact-title and .p-peek-title share a truncation
   rule defined in player-atoms.css — only unique properties appear here.
   ───────────────────────────────────────────── */

/* Timeline layout (desktop today) */
.p-timeline {
  position: relative;
  padding-left: 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-timeline-rail {
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-light);
}

.p-timeline-item {
  position: relative;
  margin-bottom: 14px;
}

.p-timeline-item:last-child {
  margin-bottom: 0;
}

.p-timeline-tick {
  position: absolute;
  left: -47px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: all 200ms ease;
}

.p-timeline-item.active .p-timeline-tick {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.p-timeline-time {
  position: absolute;
  left: -66px;
  top: 35px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  text-transform: uppercase;
  width: 44px;
  text-align: right;
}

.p-timeline-item.active .p-timeline-time {
  color: var(--accent);
}

.p-timeline-compact {
  width: 100%;
  cursor: pointer;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 140ms ease;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.p-timeline-compact:hover {
  border-color: var(--border-strong);
}

.p-timeline-compact-body {
  flex: 1;
  min-width: 0;
}

/* white-space / overflow / text-overflow factored into shared group in player-atoms.css */
.p-timeline-compact-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.p-timeline-compact-venue {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* Card stack (mobile today) */
.p-card-stack-wrap {
  position: relative;
}

.p-card-stack {
  position: relative;
  touch-action: pan-y;
  user-select: none;
}

.p-stack-layer {
  transform-origin: bottom center;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.p-stack-top {
  cursor: grab;
}

.p-stack-peek {
  pointer-events: auto;
  filter: saturate(0.9);
  position: absolute;
  left: 0;
  right: 0;
}

.p-stack-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--d3);
  margin-bottom: var(--d3);
  padding: 0 4px;
}

.p-stack-dots-inner {
  display: inline-flex;
  gap: 6px;
}

.p-stack-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 220ms ease, background 220ms ease;
}

.p-stack-dot.active {
  width: 22px;
  background: var(--accent);
}

.p-stack-counter {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Peek card (stack background cards) */
.p-peek-card {
  background: var(--accent);
  border-radius: 16px;
  padding: 2px;
  box-shadow: 0 -6px 16px -10px rgba(15, 15, 30, 0.12);
}

.p-peek-header {
  padding: 10px 20px 6px;
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}

.p-peek-header .tnum {
  margin-left: auto;
  letter-spacing: -0.01em;
  font-size: 14px;
}

.p-peek-content {
  background: var(--bg-elev);
  border-radius: 14px;
  padding: 10px 18px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* white-space / overflow / text-overflow factored into shared group in player-atoms.css */
.p-peek-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

/* ─────────────────────────────────────────────
   player-week.css
   Week strip, language filter pills, language cards (desktop grid),
   see-all button, upcoming list, no-results state.
   ───────────────────────────────────────────── */

/* Week strip */
.p-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 20px;
  min-width: 356px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .p-week-strip {
    margin-bottom: 12px;
    min-width: 100%;
  }
}

.p-week-day {
  padding: 8px 0;
  text-align: center;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: all 120ms ease;
}

.p-week-day:hover {
  background: var(--bg-soft);
}

.p-week-day.has-game {
  border-color: var(--border);
}

.p-week-day.today {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.p-week-day-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
  text-transform: uppercase;
}

.p-week-day-num {
  font-size: 16px;
  font-weight: 600;
  margin-top: 3px;
}

.p-week-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 4px auto 0;
}

.p-week-day.today .p-week-day-dot {
  background: var(--accent-fg);
}

.p-week-day-spacer {
  height: 4px;
}

/* Lang filter pills */
.p-lang-pills {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--bg-soft);
}

.p-lang-pill {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 120ms ease;
}

.p-lang-pill.active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* See-all link */
.p-see-all {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Upcoming rows list */
.p-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

@media (max-width: 600px) {
  .p-upcoming-list {
    justify-content: flex-start;
  }
}

/* No results (empty filter) */
.p-no-results {
  padding: 24px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  color: var(--fg-muted);
  font-size: 13px;
  text-align: center;
}

/* Language cards (desktop grid) */
.p-lang-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.p-lang-card {
  background: var(--bg-elev);
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 120ms ease;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.p-lang-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.p-lang-flag {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.p-lang-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.p-lang-count {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ─────────────────────────────────────────────
   player-mobile.css
   Mobile header, mobile scroll area, mobile stats grid,
   tab bar, language strip cards.
   Breakpoint media queries consolidated at bottom.
   ───────────────────────────────────────────── */

/* Mobile header */
.p-mobile-header {
  padding: 4px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}

.p-mobile-header .p-logo {
  font-size: 20px;
}

.p-mobile-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Mobile scroll area */
.p-mobile-scroll {
  flex: 1 1 0%;
  overflow-y: auto;
  padding: 10px 30px 100px;
  -webkit-overflow-scrolling: touch;
}

/* Mobile greeting adjustments */
.p-mobile-scroll .p-date-label {
  font-size: 11px;
  margin-bottom: 6px;
}

.p-mobile-scroll .p-greet-name {
  font-size: 30px;
  line-height: 1.05;
}

.p-mobile-scroll .p-greet-sub {
  font-size: 14px;
  margin-top: 6px;
}

/* Mobile stats grid */
.p-stats-mobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: var(--d5);
  background: var(--bg-elev);
  border-radius: 14px;
  padding: 14px 4px;
  border: 1px solid var(--border);
}

.p-stats-mobile .p-stat {
  padding: 0;
  border-left: none;
  min-width: auto;
}

.p-stats-mobile .p-stat:not(:first-child) {
  border-left: 1px solid var(--border);
}

.p-stats-mobile .p-stat-num {
  font-size: 22px;
}

/* Mobile tab bar */
.p-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 20px 28px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 4px;
  z-index: 20;
}

.p-tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--fg-subtle);
  padding: 6px 0;
  font-family: inherit;
}

.p-tab.active {
  color: var(--fg);
}

.p-tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.p-tab.active .p-tab-label {
  font-weight: 700;
}

/* Mobile language strip */
.p-lang-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -20px;
  padding: 2px 20px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.p-lang-strip::-webkit-scrollbar {
  display: none;
}

.p-lang-strip-card {
  flex: 0 0 auto;
  min-width: 140px;
  background: var(--bg-elev);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-lang-strip-flag {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.p-lang-strip-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 4px;
}

.p-lang-strip-count {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── Responsive — consolidated ── */

/* Mobile breakpoint — hide desktop-only elements */
@media (max-width: 767px) {
  .p-nav {
    display: none;
  }

  .p-content {
    padding: 0;
  }

  .p-home-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Desktop breakpoint — hide mobile-only elements */
@media (min-width: 768px) {
  .p-mobile-header {
    display: none;
  }

  .p-tabbar {
    display: none;
  }

  .p-mobile-scroll {
    overflow: visible;
    padding: 0;
  }
}

/* ─────────────────────────────────────────────
   player-game-screen.css
   Quiz game: join screen, game header, round tabs, timer, quiz rows,
   answer inputs, save/confirm buttons, verdict badges, single-question wrap,
   submission history, success screen, score breakdown, answer history screen,
   waiting screen, agenda screen.
   ───────────────────────────────────────────── */

/* ═══ screens/game.js — Game Screen ═══ */

/* ─── JOIN SCREEN ─── */
.join-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.join-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 8px 24px var(--primary-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  animation: logoPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoPop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.join-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.join-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.join-form {
  width: 100%;
  max-width: 280px;
}

.join-input {
  width: 100%;
  height: 46px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--card);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.join-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.12);
}

.join-input::placeholder {
  color: var(--text-disabled);
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: none;
}

.join-btn {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 14px var(--primary-shadow), 0 1px 3px rgba(91, 95, 199, 0.20);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.join-btn:active {
  transform: scale(0.97);
}

.join-btn:disabled {
  background: var(--text-disabled);
  box-shadow: none;
  cursor: default;
}

.join-error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--red);
  animation: shake 0.35s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

/* ─── HEADER ─── */

.game-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-info h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-info .progress-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ─── HEADER TEAM NAME ─── */

.header-team-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.header-team-name .icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.header-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.header-menu-btn:active {
  transform: scale(0.90);
}

/* ─── ROUND TABS ─── */

.round-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.round-tabs::-webkit-scrollbar {
  display: none;
}

.round-tab {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.round-tab:active {
  transform: scale(0.95);
}

.round-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(91, 95, 199, 0.25);
}

.round-tab .tab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.round-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* ─── TIMER BAR ─── */

.timer-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.timer-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 0 2px 2px 0;
  transition: width 0.9s linear;
  will-change: width;
}

.timer-bar.urgent {
  background: linear-gradient(90deg, var(--danger), var(--red));
}

.timer-display {
  text-align: right;
  padding: 4px 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  z-index: 5;
  animation: timerPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timer-display.urgent {
  color: var(--red);
}

@keyframes timerPop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Paused timer state ── */

.timer-bar-container.timer-paused .timer-bar {
  opacity: 0.45;
  animation: timerPulse 1.8s ease-in-out infinite;
}

.game-header:has(.timer-bar-container.timer-paused)+.timer-display,
.answers-header:has(.timer-bar-container.timer-paused)+.timer-display,
.timer-display.timer-paused {
  color: var(--fg-subtle);
  opacity: 0.7;
}

@keyframes timerPulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.2;
  }
}

/* ── Floating timer (visible on non-game screens) ── */

#timer-float {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

#timer-float .timer-bar-container {
  position: relative;
}

#timer-float .timer-display {
  pointer-events: auto;
}

/* ─── ROUND CONTENT ─── */

.round-content {
  flex: 1;
  max-width: 1200px;
  place-self: center;
  width: -webkit-fill-available;
  padding: 12px 24px 24px;
  animation: contentSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes contentSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── CATEGORY BLOCK (matrix / standard / media round) ─── */

.cat-block {
  margin-bottom: 8px;
  animation: cardIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.cat-block:nth-child(1) {
  animation-delay: 0s;
}

.cat-block:nth-child(2) {
  animation-delay: 0.07s;
}

.cat-block:nth-child(3) {
  animation-delay: 0.14s;
}

.cat-block:nth-child(4) {
  animation-delay: 0.21s;
}

.cat-block:nth-child(5) {
  animation-delay: 0.28s;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-header {
  padding: 16px 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cat-name {
  font-family: var(--f);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.cat-progress {
  font-size: 12px;
  color: var(--fg-subtle);
  font-weight: 600;
}

/* ─── QUIZ ROW ─── */

.quiz-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  margin-bottom: 14px;
}

.quiz-row:last-child {
  border-bottom: none;
}

.quiz-row.locked {
  opacity: 0.7;
}

.answer-input-group {
  display: flex;
  gap: 2px;
}

.price-badge {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-strong);
}

.price-circle-badge {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent-fg);
  font-size: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.price-badge.bet {
  background: rgba(233, 170, 60, 0.12);
  color: #C68B2C;
}

.answer-input-group.bonus .price-badge {
  position: relative;
  z-index: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  border-style: solid;
  border-color: var(--pink, #DB7093);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.35);
  paint-order: stroke fill;
}

.answer-input-group.bonus .price-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--pink-tint, rgba(219, 112, 147, 0.2));
}

.answer-input-group.bonus .price-badge::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--pink, #DB7093);
  opacity: 0.45;
  mask-image: url('/static/img/icons/project/star.svg');
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('/static/img/icons/project/star.svg');
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
  -webkit-filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}

.answer-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  gap: 8px;
}

.answer-input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.answer-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2.5px rgba(91, 95, 199, 0.10);
}

.answer-input.saved {
  border-color: rgba(80, 180, 120, 0.45);
  padding-right: 28px;
}

.answer-input::placeholder {
  color: var(--text-disabled);
}

.saved-dot {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dotPop {
  from {
    transform: translateY(-50%) scale(0);
  }

  to {
    transform: translateY(-50%) scale(1);
  }
}

/* Saved answer indicator (US-330) */
.saved-answer-indicator {
  position: absolute;
  left: 0;
  top: 100%;
  font-size: 11px;
  line-height: 1.3;
  padding-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  pointer-events: none;
  display: flex;
  gap: 5px;
}

.sai--saved {
  color: var(--green);
}

.sai--none {
  color: var(--fg-subtle);
}

/* Save button */
.save-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.save-btn:active {
  transform: scale(0.88);
}

.save-btn.can-save {
  background: rgba(91, 95, 199, 0.10);
  border-color: var(--primary-border);
}

.save-btn.is-saved {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.save-btn .save-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  stroke: var(--text-disabled);
  fill: none;
}

.save-btn.can-save .save-icon {
  stroke: var(--primary);
}

.save-btn.is-saved .save-icon {
  stroke: var(--green);
}

.save-btn .spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 95, 199, 0.25);
  border-top-color: var(--primary);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Confirm checkbox */
.confirm-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.confirm-btn:active {
  transform: scale(0.84);
}

.confirm-btn.disabled,
.confirm-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.confirm-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(91, 95, 199, 0.28);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.confirm-box.checked {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 1px 6px rgba(91, 95, 199, 0.25);
}

.confirm-box .check-icon {
  width: 11px;
  height: 11px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-box.checked .check-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── Answer verdict badge (US-327) ── */
.verdict-badge {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: verdictPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verdict-badge--correct {
  background: var(--green-soft);
  color: var(--green);
}

.verdict-badge--wrong {
  background: var(--danger-soft);
  color: var(--danger);
}

@keyframes verdictPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ─── STANDARD / MEDIA ROUND — (now uses quiz-row layout via createQuizRow) ─── */

/* ─── INPUT LOCK STATE (host-driven games) ─── */
.answer-input.locked {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--bg-soft);
}

.save-btn.locked {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.locked-message {
  text-align: center;
  padding: 12px;
  color: var(--fg-subtle);
  font-size: 14px;
  font-style: italic;
}

/* ─── SINGLE QUESTION WRAP (after_each mode — US-334) ─── */
.single-question-wrap {
  max-width: 480px;
  margin: 20px auto;
  padding: 0 4px;
}

.single-question-wrap .sq-question-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 12px;
}

.single-question-wrap .quiz-row {
  align-items: center;
  border-bottom: none;
  margin-bottom: 0;
}

.single-question-wrap .save-btn {
  margin-top: 2px;
  /* (32px input − 28px btn) / 2 — keeps btn centered with input */
}

.single-question-wrap .locked-message {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--fg-subtle);
  font-style: italic;
  padding: 0;
}

.single-question-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ─── SUBMISSION HISTORY (US-337) ─── */
.submission-history {
  margin-top: 10px;
}

.sh-latest {
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-muted);
}

.sh-answer {
  color: var(--fg);
}

.sh-older {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sh-entry {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-subtle);
}

.media-round-header {
  text-align: center;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

.media-round-title {
  font-size: 15px;
  font-weight: 600;
}

.media-round-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══ screens/success.js — Grand Finale: End-of-game results ═══ */

/* ─── Keyframes ─── */

@keyframes gfHeroIn {
  0% {
    transform: scale(0.3) rotate(-8deg);
    opacity: 0;
  }

  50% {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
  }

  75% {
    transform: scale(0.95) rotate(-0.5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes gfGlowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes gfSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gfBarFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes gfSkeletonPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes gfConfettiFall {
  from {
    transform: translateY(-10px);
    opacity: 1;
  }

  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ─── Staggered entrance ─── */

.gf-stagger-1 {
  animation: gfSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.gf-stagger-2 {
  animation: gfSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.gf-stagger-3 {
  animation: gfSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.gf-stagger-4 {
  animation: gfSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.gf-stagger-5 {
  animation: gfSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

/* ─── Hero ─── */

.gf-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 32px;
  text-align: center;
}

.gf-hero-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 8px 32px oklch(0.42 0.09 330 / 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: gfHeroIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gf-hero-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.42 0.09 330 / 0.15), transparent 70%);
  animation: gfGlowPulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.gf-hero-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-fg);
}

.gf-hero-icon svg.icon {
  stroke: var(--accent-fg);
}

.gf-hero-title {
  font-family: var(--fd);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 6px;
}

.gf-hero-subtitle {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ─── My Results card ─── */

.gf-my-results {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 28px 24px;
  background: var(--bg-elev);
  border-radius: var(--r);
  box-shadow: var(--shadow-m);
  text-align: center;
}

.gf-my-results-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.gf-my-results-score-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.gf-my-results-score {
  font-family: var(--fm);
  font-size: 56px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.03em;
}

.gf-my-results-score-label {
  font-size: 16px;
  color: var(--fg-muted);
  font-weight: 500;
}

.gf-my-results-detail {
  font-size: 14px;
  color: var(--fg-subtle);
}

/* Per-bucket scores (multi-bucket games) */
.gf-my-results-buckets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.gf-my-results-bucket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.gf-my-results-bucket--primary .gf-my-results-bucket-score {
  font-family: var(--fm);
  font-size: 48px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.03em;
}

.gf-my-results-bucket-score {
  font-family: var(--fm);
  font-size: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  line-height: 1;
  letter-spacing: -0.02em;
}

.gf-my-results-bucket-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-subtle);
}

.gf-my-results-bucket--primary .gf-my-results-bucket-label {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Round Journey ─── */

.gf-journey {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 24px;
  background: var(--bg-elev);
  border-radius: var(--r);
  box-shadow: var(--shadow-m);
}

.gf-journey-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.gf-journey-round {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gf-journey-round-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 120px;
  flex-shrink: 0;
}

.gf-journey-round-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-journey-round-meta {
  font-size: 11px;
  color: var(--fg-subtle);
}

.gf-journey-bucket-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: oklch(0.42 0.09 330 / 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
  display: inline-block;
  width: fit-content;
}

.gf-journey-round-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-soft);
  overflow: hidden;
}

.gf-journey-round-fill {
  height: 100%;
  width: var(--gf-bar-width, 0%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--success), oklch(0.56 0.11 155 / 0.7));
  transform-origin: left;
  animation: gfBarFill 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.gf-journey-round-score {
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  min-width: 52px;
  text-align: right;
  flex-shrink: 0;
}

.gf-journey-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid var(--border);
}

.gf-journey-total+.gf-journey-total {
  padding-top: 6px;
  margin-top: 0;
  border-top: none;
}

.gf-journey-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.gf-journey-total-score {
  font-family: var(--fm);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ─── Podium ─── */

.gf-standings-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
}

.gf-podium {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 24px 16px;
  background: var(--bg-elev);
  border-radius: var(--r);
  box-shadow: var(--shadow-m);
}

.gf-podium-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 20px;
  text-align: center;
}

.gf-podium-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
  align-items: end;
}

.gf-podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px 20px;
  border-radius: var(--rs);
  text-align: center;
  position: relative;
}

.gf-podium-card--gold {
  background: linear-gradient(180deg, oklch(0.74 0.15 60 / 0.18), oklch(0.74 0.15 60 / 0.04));
  border: 1px solid oklch(0.74 0.15 60 / 0.3);
  box-shadow: 0 4px 24px oklch(0.74 0.15 60 / 0.18);
  padding: 32px 16px 24px;
}

.gf-podium-card--silver {
  background: linear-gradient(180deg, oklch(0.62 0.02 340 / 0.12), oklch(0.62 0.02 340 / 0.02));
  border: 1px solid oklch(0.62 0.02 340 / 0.2);
}

.gf-podium-card--bronze {
  background: linear-gradient(180deg, oklch(0.66 0.18 40 / 0.14), oklch(0.66 0.18 40 / 0.03));
  border: 1px solid oklch(0.66 0.18 40 / 0.25);
}

.gf-podium-card--self {
  box-shadow: 0 0 0 2px var(--accent), 0 4px 16px oklch(0.42 0.09 330 / 0.2);
}

.gf-podium-rank {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.gf-podium-card--gold .gf-podium-rank {
  color: oklch(0.6 0.14 60);
}

.gf-podium-card--silver .gf-podium-rank {
  color: var(--fg-muted);
}

.gf-podium-card--bronze .gf-podium-rank {
  color: var(--live);
}

.gf-podium-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
  word-break: break-word;
}

.gf-podium-card--gold .gf-podium-name {
  font-size: 16px;
  font-weight: 700;
}

.gf-podium-score {
  font-family: var(--fm);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.gf-podium-card--gold .gf-podium-score {
  font-size: 26px;
  color: var(--accent);
}

/* ─── Podium bucket pills ─── */

.gf-podium-buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}

.gf-podium-bucket {
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--fg-muted);
}

.gf-podium-bucket--primary {
  background: color-mix(in oklch, var(--accent) 15%, var(--bg-elev));
  color: var(--accent);
}

/* ─── Standings table ─── */

.gf-standings {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 24px;
  background: var(--bg-elev);
  border-radius: var(--r);
  box-shadow: var(--shadow-m);
}

.gf-standings-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.gf-standings-list {
  display: flex;
  flex-direction: column;
}

.gf-standings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--rx);
  transition: background 0.15s;
}

.gf-standings-row+.gf-standings-row {
  border-top: 1px solid var(--border-light);
}

.gf-standings-winner {
  background: oklch(0.74 0.15 60 / 0.08);
  border-radius: var(--rx);
  border-top: none !important;
}

.gf-standings-self {
  border-left: 3px solid var(--accent);
  padding-left: 9px;
  background: oklch(0.42 0.09 330 / 0.05);
  border-radius: 0 var(--rx) var(--rx) 0;
}

.gf-standings-rank {
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.gf-standings-winner .gf-standings-rank {
  color: oklch(0.6 0.14 60);
  font-size: 16px;
  font-weight: 700;
}

.gf-standings-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.gf-standings-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-standings-self .gf-standings-name {
  font-weight: 700;
}

.gf-standings-self-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-fg);
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.gf-standings-score {
  font-family: var(--fm);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}

.gf-standings-winner .gf-standings-score {
  font-size: 16px;
}

.gf-standings-buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.gf-standings-bucket {
  font-size: 11px;
  color: var(--fg-muted);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-soft);
}

.gf-standings-bucket--main {
  font-weight: 600;
  color: var(--accent);
  background: oklch(0.42 0.09 330 / 0.08);
}

/* ─── Loading / Error / Empty states ─── */

.gf-standings-skeleton {
  display: flex;
  align-items: center;
  padding: 10px 12px;
}

.gf-standings-skeleton-bar {
  width: 100%;
  height: 14px;
  border-radius: 4px;
  background: var(--bg-soft);
  animation: gfSkeletonPulse 1.4s ease-in-out infinite;
}

.gf-standings-error {
  font-size: 14px;
  color: var(--danger);
  padding: 16px 0;
  text-align: center;
}

.gf-standings-empty {
  font-size: 14px;
  color: var(--fg-subtle);
  padding: 24px 0;
  text-align: center;
}

/* ─── Footer / Home button ─── */

.gf-footer {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 24px 40px;
  text-align: center;
}

.gf-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 12px;
  border: 1px solid oklch(0.42 0.09 330 / 0.22);
  background: oklch(0.42 0.09 330 / 0.08);
  color: var(--accent);
  font-family: var(--f);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gf-home-btn:hover {
  background: oklch(0.42 0.09 330 / 0.14);
  border-color: oklch(0.42 0.09 330 / 0.35);
}

.gf-home-btn:active {
  transform: scale(0.96);
  background: oklch(0.42 0.09 330 / 0.18);
}

/* ─── Confetti canvas ─── */

.gf-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ─── Reduced motion ─── */

@media (prefers-reduced-motion: reduce) {
  .gf-hero-icon {
    animation: none;
  }

  .gf-hero-icon::before {
    animation: none;
    display: none;
  }

  .gf-stagger-1,
  .gf-stagger-2,
  .gf-stagger-3,
  .gf-stagger-4,
  .gf-stagger-5 {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .gf-journey-round-fill {
    animation: none;
  }

  .gf-confetti-canvas {
    display: none;
  }
}

/* ═══ screens/answers.js — Answer History Screen ═══ */

.answers-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--bg);
}

.answers-header {
  position: -webkit-sticky;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 48px 16px 12px;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.answers-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.answers-back-btn:active {
  transform: scale(0.90);
}

.answers-back-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.answers-back-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--fg-muted);
}

.answers-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.answers-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 32px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  animation: contentSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tweak score summary card spacing inside answers screen */
.answers-content .drawer-progress {
  margin: 0 0 16px;
}

/* Tweak history spacing inside answers screen */
.answers-content .drawer-history {
  padding: 0;
  overflow: visible;
}

/* ─── WAITING SCREEN ─── */

.waiting-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.waiting-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(91, 95, 199, 0.15);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

.waiting-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.waiting-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.waiting-code {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--card);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ── Agenda screen ── */
.agenda-screen {
  padding: 32px 20px;
}

.agenda-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  margin: 16px auto 0;
  padding: 0;
}

.agenda-round {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--rx);
}

.agenda-round-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.agenda-round-title {
  font-size: 0.95rem;
  color: var(--fg);
  font-weight: 500;
}

.agenda-footer {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--fg-subtle);
}

/* ── Responsive — consolidated ── */

@media (max-width: 420px) {
  .answers-header {
    padding: 44px 14px 10px;
    gap: 10px;
  }

  .answers-title {
    font-size: 15px;
  }

  .answers-content {
    padding: 12px 10px 24px;
  }
}

@media (min-width: 768px) {
  .answers-content {
    margin: 0 auto;
    padding: 20px 20px 40px;
  }
}

/* ─── Scoreboard Overlay (host-triggered) ─── */
.player-sb-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--d4) 0;
}

.player-sb-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--d4);
  color: var(--fg);
}

.player-sb-empty {
  color: var(--fg-subtle);
  font-size: 14px;
  text-align: center;
  padding: var(--d6) var(--d4);
}

/* ── Card wrapper ── */
.player-sb-table-wrap {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  box-shadow: var(--shadow-s);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Table core ── */
.player-sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ── Headers ── */
.player-sb-table thead th {
  background: var(--bg-soft);
  color: var(--fg-subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 14px;
  border-bottom: 1.5px solid var(--border);
  text-align: center;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ── Body cells ── */
.player-sb-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--fg);
  vertical-align: middle;
}

.player-sb-table tbody tr:last-child td {
  border-bottom: none;
}

.player-sb-table tbody tr:hover {
  background: var(--bg-soft);
}

/* ── Alternating row tint ── */
.player-sb-row-alt {
  background: color-mix(in oklab, var(--bg-soft) 60%, transparent);
}

/* ── Rank column ── */
.player-sb-table td:first-child,
.player-sb-table th:first-child {
  text-align: center;
  width: 36px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
}

/* ── Name column ── */
.player-sb-table td:nth-child(2),
.player-sb-table th:nth-child(2) {
  text-align: left;
  font-weight: 500;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Score cells ── */
.player-sb-table td.player-sb-score {
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-family: var(--fm);
}

/* ── Gold rank (1st place) ── */
.player-sb-gold {
  background: var(--amber-soft);
}

.player-sb-gold td:first-child {
  color: var(--amber);
  font-weight: 700;
}

/* ── "Mine" row highlight ── */
.player-sb-table tbody tr.player-sb-mine td {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

/* ── Bucket-active column highlight ── */
.player-sb-bucket-active {
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  font-weight: 600;
  color: var(--fg);
}

/* ─── Scoreboard toggle bar ─── */
.player-sb-toggle {
  display: flex;
  margin-bottom: var(--d3);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
}

.player-sb-toggle-btn {
  flex: 1;
  padding: 7px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s, color 0.15s;
  outline: none;
}

.player-sb-toggle-btn:not(.active):hover {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  color: var(--fg);
}

.player-sb-toggle-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  box-shadow: var(--shadow-s);
}

/* ─── Two-row table header for detailed view ─── */
.player-sb-table th.player-sb-bucket-header {
  text-align: center;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

.player-sb-table th.player-sb-round-header {
  text-align: center;
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
  color: var(--fg-muted);
  text-transform: none;
  min-width: 36px;
}

/* ── Scoreboard responsive ── */
@media (max-width: 767px) {
  .player-sb-overlay {
    padding: var(--d2) 0;
  }

  .player-sb-title {
    font-size: 16px;
    margin-bottom: var(--d3);
  }

  .player-sb-table thead th {
    padding: 8px 10px;
    font-size: 9px;
  }

  .player-sb-table tbody td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .player-sb-table td:first-child,
  .player-sb-table th:first-child {
    width: 28px;
  }

  .player-sb-table td.player-sb-score {
    font-size: 12px;
  }

  .player-sb-toggle {
    width: 100%;
  }

  .player-sb-toggle-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .player-sb-table thead th {
    padding: 6px 8px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .player-sb-table tbody td {
    padding: 6px 8px;
    font-size: 11px;
  }

  .player-sb-table td:first-child,
  .player-sb-table th:first-child {
    width: 24px;
  }

  .player-sb-table td.player-sb-score {
    font-size: 11px;
  }

  .player-sb-toggle-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ─────────────────────────────────────────────
   player-drawer.css
   Side drawer panel, lobby waiting, admitted screen, prelobby / team selection,
   team search drawer, status banners, active game banner.
   ───────────────────────────────────────────── */

/* ═══ screens/drawers.js — Side Drawer ═══ */

/* ─── SIDE DRAWER ─── */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--fg) 25%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: fadeIn 0.2s ease forwards;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 268px;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-l);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  animation: drawerIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerIn {
  to {
    transform: translateX(0);
  }
}

.drawer-backdrop.closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drawer-panel.closing {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}

.drawer-close:hover {
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  color: var(--fg);
}

/* Progress card in drawer (kept for answer history screen) */
.drawer-progress {
  margin: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: var(--shadow-m);
  color: var(--accent-fg);
}

.drawer-progress-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.65;
}

.drawer-progress-numbers {
  margin-top: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.drawer-progress-big {
  font-size: 22px;
  font-weight: 700;
}

.drawer-progress-big span {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.55;
  margin-left: 2px;
}

.drawer-progress-pct {
  font-size: 12px;
  opacity: 0.65;
}

.drawer-progress-bucket-label {
  font-size: 12px;
  opacity: 0.65;
  margin-top: 2px;
}

.drawer-progress-secondary {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 8px;
}

.drawer-progress-track {
  height: 4px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--accent-fg) 22%, transparent);
  margin-top: 12px;
  overflow: hidden;
}

.drawer-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-fg);
  transition: width 0.5s ease-out;
}

/* ── Drawer body (scrollable content) ── */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

/* ── Team section ── */
.drawer-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.drawer-team-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-team-icon svg {
  width: 20px;
  height: 20px;
}

.drawer-team-info {
  min-width: 0;
}

.drawer-team-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-team-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Score display ── */
.drawer-score {
  padding: 12px 20px 16px;
  text-align: center;
}

.drawer-score-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-score-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-top: 4px;
}

.drawer-score-detail {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* ── Divider ── */
.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 20px;
}

/* ── Drawer row (answers link + nav items) ── */
.drawer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--f);
  text-align: left;
  color: var(--fg);
}

.drawer-row:hover {
  background: color-mix(in oklab, var(--fg) 6%, transparent);
}

.drawer-row:active {
  background: color-mix(in oklab, var(--fg) 10%, transparent);
}

.drawer-row-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-row-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--fg-muted);
}

.drawer-row-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.drawer-row-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.drawer-row-chevron svg {
  stroke: var(--fg-subtle);
}

/* ── Theme toggle ── */
.drawer-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
}

.drawer-theme-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.drawer-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.drawer-theme-icon.active {
  opacity: 1;
}

.drawer-theme-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--fg-muted);
}

.drawer-theme-switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s;
}

.drawer-theme-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-elev);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s;
}

.drawer-theme-switch.is-dark {
  background: var(--accent);
}

.drawer-theme-switch.is-dark::after {
  transform: translateX(18px);
}

/* ── Nav links section ── */
.drawer-navlinks {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

/* ── Section history + section cards (kept for answer history screen) ── */
.drawer-history {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-section-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.drawer-section-header {
  padding: 10px 12px 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.drawer-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-section-round {
  font-size: 11px;
  color: var(--fg-subtle);
  font-weight: 500;
  flex-shrink: 0;
}

.drawer-section-rows {
  padding: 0 12px;
}

.drawer-block-title {
  padding: 8px 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.drawer-answer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.drawer-answer-row:last-child {
  border-bottom: none;
}

.drawer-answer-price {
  width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}

.drawer-answer-text {
  flex: 1;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.drawer-answer-text.empty {
  color: var(--fg-subtle);
  font-style: italic;
}

.drawer-verdict {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.drawer-verdict--correct {
  background: var(--green-soft);
  color: var(--green);
}

.drawer-verdict--wrong {
  background: var(--danger-soft);
  color: var(--danger);
}

.drawer-verdict--pending {
  background: var(--border);
  color: var(--fg-subtle);
}

.drawer-answer-num {
  width: 18px;
  text-align: right;
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

.drawer-answer-bet {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.drawer-answer-bet.empty {
  background: transparent;
  color: transparent;
}

.drawer-answer-score {
  width: 28px;
  text-align: right;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.drawer-score-value--positive {
  color: var(--green);
}

.drawer-score-value--negative {
  color: var(--danger);
}

.drawer-section-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-subtle);
  font-weight: 600;
}

.drawer-section-score-value {
  color: var(--accent);
}

.drawer-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--fg-subtle);
  font-size: 13px;
}

/* Leave game button at drawer bottom */
.drawer-leave-wrap {
  flex-shrink: 0;
  padding: 12px 12px 20px;
  border-top: 1px solid var(--border);
}

.drawer-leave-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}

.drawer-leave-btn:hover {
  background: var(--danger);
  color: var(--accent-fg);
}

.drawer-leave-btn:active {
  transform: scale(0.97);
}

/* ═══ screens/prelobby.js — Team Selection ═══ */

.screen-prelobby {
  padding-top: 16px;
}

/* ── Layout container ── */
.pick-layout {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Back button ── */
.back-link.prelobby-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--f);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 20px;
  border-radius: var(--rx);
  transition: color 0.15s;
}

.back-link.prelobby-back:hover {
  color: var(--fg);
}

.back-link.prelobby-back .p-icon {
  flex-shrink: 0;
}

.p-prelobby {
  display: flex;
  justify-content: space-around;
  gap: 32px;
  padding: 0px 22px 0 22px;
}

.p-prelobby-left {
  flex: 1;
  min-width: 0;
}

.p-prelobby-right {
  flex: 1;
  min-width: 0;
}

/* ── Waiting-for-host state ── */
.prelobby-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 16px 32px;
  gap: 12px;
}

.prelobby-waiting__icon {
  color: var(--fg-subtle);
  margin-bottom: 8px;
}

.prelobby-waiting .pick-title {
  color: var(--fg-muted);
}

.prelobby-waiting .pick-sub {
  max-width: 280px;
}

/* ── Loading / empty states ── */
.ph-msg {
  text-align: center;
  padding: 24px 16px;
  font-size: 14px;
  color: var(--fg-subtle);
}

.prelobby-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  color: var(--fg-subtle);
}

.prelobby-empty__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
}

.prelobby-empty__hint {
  font-size: 13px;
  color: var(--fg-subtle);
}

/* ═══ PICK TEAM ═══ */

.pick-title {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.pick-sub {
  font-size: 14px;
  color: var(--fg-subtle);
  line-height: 1.55;
  margin-bottom: 24px;
}

.team-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--f);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.team-opt:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-s);
}

.team-opt:active {
  transform: scale(0.99);
}

.team-opt.rec {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elev) 60%);
  position: relative;
}

.team-opt.rec::before {
  content: attr(data-badge);
  position: absolute;
  top: -8px;
  right: 14px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 3px 9px;
  border-radius: 20px;
}

/* Team avatar circle (shared between .p-avatar overrides and legacy .tm) */
.tm {
  width: 42px;
  height: 42px;
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--accent-fg);
}

.ti {
  flex: 1;
  min-width: 0;
}

.ti-n {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--fg);
}

.ti-s {
  font-size: 12px;
  color: var(--fg-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-arr {
  color: var(--fg-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Secondary option icon circle ── */
.sec-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--rs);
  background: var(--bg-soft);
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--fg-subtle);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sec-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--rs);
  margin-bottom: 8px;
  cursor: pointer;
  font-family: var(--f);
  width: 100%;
  text-align: left;
  color: var(--fg-muted);
  transition: border-color 0.15s, color 0.15s;
}

.sec-opt:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sec-opt:hover .sec-icon {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ═══ screens/lobby.js — Lobby Waiting ═══ */

.lobby-waiting {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px;
}

.lobby-waiting-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 8px;
}

.pulse-orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.pulse-orb::before,
.pulse-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}

.pulse-orb::after {
  animation-delay: 1.2s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.pulse-core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  z-index: 1;
}

.lobby-waiting-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}

.lobby-waiting-sub {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto 20px;
}

.presence-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-flow);
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
}

.presence-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.presence-dot.here {
  background: var(--success);
}

.presence-dot.you {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.presence-dot.expected {
  background: transparent;
  border: 1.5px solid var(--ink-muted);
}

.member-name {
  font-weight: 500;
  color: var(--ink);
}

.member-badge {
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.lobby-waiting-bottom {
  padding: 0 4px;
  margin-bottom: 70px;
}

/* ═══ screens/lobby.js — Admitted ═══ */

.screen-admitted {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.check-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.check-circle svg {
  width: 44px;
  height: 44px;
}

.admitted-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}

.admitted-sub {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto 32px;
}

.countdown-time {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ═══ screens/drawers.js — Team Search Drawer ═══ */

.team-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-elev);
  border-radius: 16px 16px 0 0;
  max-height: 80svh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  animation: sheetUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: var(--shadow-l);
}

.team-drawer.closing {
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.team-drawer__handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
}

.team-drawer__handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.team-drawer__title {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  padding: 4px 20px 12px;
  margin: 0;
  letter-spacing: -0.3px;
}

.team-drawer__input {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 12px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.team-drawer__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.team-drawer__input::placeholder {
  color: var(--fg-subtle);
}

.team-drawer__results {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.team-drawer__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  margin-bottom: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.team-drawer__item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-s);
}

.team-drawer__item:active {
  transform: scale(0.99);
}

.team-drawer__item--create {
  border-style: dashed;
  color: var(--accent);
}

.team-drawer__item--create .sec-icon {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.team-drawer__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--fg-subtle);
  font-size: 12px;
}

.team-drawer__divider::before,
.team-drawer__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.team-drawer__guest-warn {
  text-align: center;
  padding: 16px;
  color: var(--fg-muted);
  font-size: 13px;
  font-style: italic;
}

/* ─── STATUS BANNER ─── */

.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-flow);
  margin-bottom: 12px;
  animation: bannerIn 0.3s ease;
}

.status-banner--warn {
  background: color-mix(in srgb, var(--warn) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  color: var(--ink);
}

.status-banner--danger {
  background: color-mix(in srgb, var(--danger) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--ink);
}

.status-banner__text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

.status-banner__close {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  font-family: inherit;
}

.status-banner__close:hover {
  color: var(--ink);
  background: var(--line-soft);
}

@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bannerOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ─── ACTIVE GAME BANNER (US-322) ─── */

.active-game-banner {
  position: sticky;
  max-width: 1200px;
  width: 100%;
  top: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--rx);
  margin: 0 auto;
  animation: bannerIn 0.3s ease;
  z-index: 1;
}

.agb-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  min-width: 0;
}

.agb-text>span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: agbPulse 2s ease-in-out infinite;
}

.agb-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--f);
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--rx);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.agb-btn:hover {
  opacity: 0.85;
}

@keyframes agbPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.active-game-banner+.timer-display,
.answers-header+.timer-display {
  text-align: right;
  margin: 0 16px;
}

/* ── Responsive — consolidated ── */
@media (max-width: 768px) {
  .p-prelobby {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .landing-hero .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .landing h1 {
    font-size: 28px;
  }

  .detail-title {
    font-size: 24px;
  }

  .greeting {
    font-size: 22px;
  }

  .lobby-waiting-title {
    font-size: 22px;
  }

  .admitted-title {
    font-size: 26px;
  }

  .countdown-time {
    font-size: 40px;
  }
}

/* ─────────────────────────────────────────────
   player-utils.css
   Utilities, old-style shared components, city picker, toast,
   auth/landing screens, navigation chrome (topnav/bnav), old game cards,
   play tab, profile, week list, nav pill tray, guest upgrade.
   Responsive breakpoints consolidated at bottom.
   ───────────────────────────────────────────── */

/* ═══ SHARED COMPONENTS ═══ */

.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 12px;
  gap: 10px;
}

.sh h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--fg-subtle);
}

.sh-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.today-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.week-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.greet-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 0 4px;
  gap: 16px;
  flex-wrap: wrap;
}

.greet-row h1 {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.greet-row p {
  font-size: 15px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.greet-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.greet-dot {
  color: var(--fg-subtle);
}

.city-selector--inline {
  display: inline-flex;
}

.greet-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.gs-item {
  text-align: center;
}

.gs-item .gn {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.gs-item .gl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--fg-subtle);
  margin-top: 2px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  font-family: var(--f);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--fg);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--rx);
  border: none;
  font-family: var(--f);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ac {
  background: var(--accent);
  color: #fff;
}

.btn-ac:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--fg);
  color: #fff;
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--fg);
}

.btn-outline {
  background: none;
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-block;
}

.tag-chgk {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-svoyak {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag-party {
  background: var(--green-soft);
  color: var(--green-t);
}

.tag-rating {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-team {
  background: #EEF2FF;
  color: #4338CA;
}

.view {
  display: none;
  animation: fu 0.3s ease;
}

.view.on {
  display: block;
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── UTILITIES ─── */

.hidden {
  display: none !important;
}

/* SVG icon inline */
svg.icon {
  display: inline-block;
  vertical-align: middle;
}

/* ── Screen fade-in ── */

@keyframes flowFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.screen-flow {
  animation: flowFade 0.25s ease;
}

/* ── Shared: logo mark ── */

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #7c5cfc);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
}

/* ── Shared: buttons ── */

.btn-flow {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
  text-align: center;
}

.btn-flow:active {
  transform: scale(0.98);
}

.btn-flow--accent {
  background: var(--accent);
  color: #fff;
}

.btn-flow--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ── Shared: auth buttons ── */

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--rx);
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  font-family: var(--f);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
}

.auth-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-s);
}

.auth-btn.primary {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

.auth-btn.primary:hover {
  background: #2A2520;
}

.auth-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-div {
  text-align: center;
  font-size: 12px;
  color: var(--fg-subtle);
  position: relative;
  padding: 4px 0;
}

.auth-div::before,
.auth-div::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--border);
}

.auth-div::before {
  left: 10%;
}

.auth-div::after {
  right: 10%;
}

.guest-input-row {
  display: flex;
  gap: 8px;
}

.guest-input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--rx);
  border: 1.5px solid var(--border);
  font-family: var(--f);
  font-size: 15px;
  color: var(--fg);
  background: var(--bg-elev);
  outline: none;
  transition: border-color 0.15s;
}

.guest-input:focus {
  border-color: var(--accent);
}

.guest-input::placeholder {
  color: var(--fg-subtle);
}

.guest-go {
  padding: 14px 24px;
  border-radius: var(--rx);
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--f);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.guest-go:hover {
  background: var(--accent-hover);
}

/* ── Email auth form ── */

.auth-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.12);
}

.auth-input::placeholder {
  color: var(--ink-muted);
}

.auth-email-actions {
  display: flex;
  gap: 10px;
}

.auth-email-actions .auth-btn {
  flex: 1;
}

.auth-error {
  font-size: 13px;
  color: var(--danger);
  text-align: center;
  min-height: 18px;
  margin-top: 4px;
}

/* ── Shared: section label ── */

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
  margin: 20px 0 10px;
}

.section-label:first-child {
  margin-top: 0;
}

/* ═══ screens/landing.js — Landing / Auth ═══ */

.landing-page {
  max-width: 440px;
  margin: 0 auto;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 24px;
}

.landing-hero {
  text-align: center;
  padding: 80px 8px 32px;
}

.landing-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 26px;
  margin: 0 auto 24px;
}

.landing-page h1 {
  font-family: var(--fd);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.landing-page h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.landing-sub {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 300px;
  margin: 0 auto;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px 40px;
}

/* ═══ screens/home.js — Home Screen ═══ */

.screen-home {
  padding: 16px 20px 24px;
  min-height: 100svh;
}

.home-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.home-head .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.greeting {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.region-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

/* ═══ screens/home.js — Navigation ═══ */

/* ═══ TOP NAV (desktop) ═══ */
.topnav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.topnav-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tn-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tn-l {
  padding: 7px 14px;
  border-radius: var(--rx);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--f);
  transition: all 0.15s;
}

.tn-l:hover {
  color: var(--fg);
  background: var(--bg-soft);
}

.tn-l.act {
  color: var(--accent);
  background: var(--accent-soft);
}

.tn-l.tn-play {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
  padding: 7px 18px;
  border-radius: 20px;
}

.tn-l.tn-play:hover {
  background: var(--accent-hover);
}

.tn-l.tn-play.act {
  background: var(--accent-hover);
}

.tn-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tn-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg-muted);
  transition: background 0.15s;
}

.tn-ic:hover {
  background: var(--bg-soft);
}

.tn-ic svg {
  width: 20px;
  height: 20px;
}

.tn-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══ MOBILE TOP ═══ */
.mtop {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
}

.mt-r {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mt-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg-muted);
  position: relative;
}

.mt-ic svg {
  width: 22px;
  height: 22px;
}

.mt-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ndot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--bg);
}

/* ═══ GAME CARD (redesigned — flat surface, left accent border) ═══ */
.game-card {
  background: var(--bg-elev);
  border-radius: var(--rs);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.game-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-1px);
}

/* Color accent variants via left border */
.gc-purple {
  border-left-color: #6D5AE6;
}

.gc-teal {
  border-left-color: #0D9488;
}

.gc-coral {
  border-left-color: #E57A44;
}

.gc-slate {
  border-left-color: #64748B;
}

.gc-rose {
  border-left-color: #DB2777;
}

.gc-emerald {
  border-left-color: #059669;
}

.gc-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.gc-time-badge {
  flex-shrink: 0;
  text-align: center;
  min-width: 52px;
}

.gc-time-val {
  display: block;
  font-family: var(--f);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.5px;
}

.gc-rel {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.gc-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.gc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.gc-info {
  flex: 1;
  min-width: 0;
}

.gc-title {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.gc-project {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-top: 2px;
}

.gc-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.gc-mi {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

.gc-mi svg {
  width: 15px;
  height: 15px;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

.gc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-lobby {
  padding: 9px 18px;
  border-radius: var(--rx);
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}

.btn-lobby:hover {
  background: var(--accent-hover);
}

/* Going toggle (hero card) */
.going-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--rx);
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--f);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.going-toggle svg {
  width: 20px;
  height: 20px;
  transition: all 0.2s;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.going-toggle.is-going {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-t);
}

.going-toggle.is-going svg {
  fill: var(--green);
  stroke: var(--green);
}

/* ═══ WEEK LIST ═══ */
.wk-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wk-item {
  border-radius: var(--rs);
  cursor: pointer;
  transition: background .15s;
}

.wk-item:hover {
  background: var(--bg-elev);
}

.wk-item.expanded {
  background: var(--bg-elev);
  box-shadow: var(--shadow-m);
  cursor: default;
}

.wk-item.expanded:hover {
  background: var(--bg-elev);
}

.wk-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.wk-dt {
  width: 46px;
  text-align: center;
  flex-shrink: 0;
}

.wk-dt .wd {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fg-subtle);
  line-height: 1;
}

.wk-dt .wn {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -.5px;
}

.wk-bd {
  flex: 1;
  min-width: 0;
}

.wk-bd h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.wk-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-muted);
}

.wk-sub .d {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-subtle);
  flex-shrink: 0;
}

/* Format badge */
.fc {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.fc.chgk {
  background: var(--accent-soft);
  color: var(--accent);
}

.fc.svoyak {
  background: var(--amber-soft);
  color: var(--amber);
}

.fc.party {
  background: var(--green-soft);
  color: var(--green-t);
}

.fc.mixed {
  background: var(--orange-soft);
  color: var(--orange);
}

.wk-chev {
  width: 20px;
  height: 20px;
  color: var(--fg-subtle);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.wk-item.expanded .wk-chev {
  transform: rotate(180deg);
}

/* Expanded detail */
.wk-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), padding .35s cubic-bezier(.4, 0, .2, 1);
  padding: 0 16px;
}

.wk-item.expanded .wk-detail {
  max-height: 320px;
  padding: 0 16px 14px;
}

.wk-detail-inner {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
}

.wkd-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.wkd-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wkd-mi {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

.wkd-mi svg {
  width: 15px;
  height: 15px;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

.wkd-actions {
  padding-top: 12px;
  display: flex;
  gap: 8px;
}

/* Going toggle — inline (week items) */
.going-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-left: auto;
}

.going-inline svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: all 0.2s;
}

.going-inline.is-going {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-t);
}

.going-inline.is-going svg {
  fill: var(--green);
  stroke: var(--green);
}

/* ═══ LANG CONTROLS (US-313) ═══ */
.lang-pills {
  display: none;
  align-items: center;
  gap: 3px;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 3px;
}

.lp {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  font-family: var(--f);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
  cursor: pointer;
  background: none;
  transition: all 0.15s;
}

.lp.active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-s);
}

.lang-card {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--rs);
  background: var(--bg-elev);
  border: 1.5px dashed rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-card:hover {
  border-color: var(--accent);
}

.lang-icon {
  font-size: 18px;
}

.lang-body {
  flex: 1;
}

.lang-body h4 {
  font-size: 13px;
  font-weight: 600;
}

.lang-body p {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 1px;
}

.lang-toggle-btn {
  padding: 6px 12px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: none;
  font-family: var(--f);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.lang-toggle-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══ PLAY TAB ═══ */
.play-top {
  text-align: center;
  padding: 32px 0 8px;
}

.play-top h1 {
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.play-top p {
  font-size: 15px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.play-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.po {
  background: var(--bg-elev);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-s);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1.5px solid transparent;
  margin-bottom: 12px;
}

.po:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-1px);
}

.po.host:hover {
  border-color: var(--accent);
}

.po.join:hover {
  border-color: var(--green);
}

.poi {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.poi svg {
  width: 24px;
  height: 24px;
}

.poi.h {
  background: var(--accent-soft);
}

.poi.h svg {
  color: var(--accent);
}

.poi.j {
  background: var(--green-soft);
}

.poi.j svg {
  color: var(--green);
}

.pot h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pot p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ═══ PLACEHOLDER TAB ═══ */
.ph-msg {
  text-align: center;
  padding: 48px 20px;
  color: var(--fg-subtle);
  font-size: 14px;
}

/* ═══ MY GAMES ═══ */
.mg-chips {
  display: flex;
  gap: 6px;
  margin: 12px 0 20px;
}

.mg-c {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.mg-c.on {
  background: var(--accent);
  color: #fff;
}

.mg-c:not(.on) {
  background: var(--bg-soft);
  color: var(--fg-muted);
}

.mg-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 16px 18px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.mg-card:hover {
  background: var(--bg);
}

.mg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mg-top h4 {
  font-size: 15px;
  font-weight: 600;
}

.mg-top span {
  font-size: 12px;
  color: var(--fg-subtle);
}

.mg-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mg-bot p {
  font-size: 13px;
  color: var(--fg-muted);
}

.mg-res {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.mg-res.w {
  background: var(--green-soft);
  color: var(--green-t);
}

.mg-res.m {
  background: var(--amber-soft);
  color: var(--amber);
}

.mg-res.l {
  background: var(--orange-soft);
  color: var(--orange);
}

/* ═══ PROFILE ═══ */
.prof-header {
  text-align: center;
  padding: 36px 0 28px;
}

.prof-av {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 20px rgba(109, 90, 230, 0.2);
}

.prof-name {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
}

.prof-loc {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.prof-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.ps {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--rx);
  padding: 16px 12px;
  text-align: center;
}

.ps .pn2 {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 700;
}

.ps .pl {
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.prof-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--rx);
  padding: 16px 18px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--f);
  color: var(--fg);
  text-align: left;
  width: 100%;
}

.prof-item:hover {
  background: var(--bg);
}

.prof-item-l {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.prof-item-l svg {
  width: 20px;
  height: 20px;
  color: var(--fg-muted);
}

.prof-chev {
  width: 16px;
  height: 16px;
  color: var(--fg-subtle);
}

.prof-signout {
  background: none;
  border: none;
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 20px 0;
}

/* ═══ BOTTOM NAV ═══ */
.bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.bnav-in {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 480px;
  padding: 0 4px;
}

.bn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  border: none;
  background: none;
  font-family: var(--f);
}

.bn svg {
  width: 24px;
  height: 24px;
  color: var(--fg-subtle);
  transition: color 0.15s;
}

.bn span {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  transition: color 0.15s;
}

.bn.on svg {
  color: var(--accent);
}

.bn.on span {
  color: var(--accent);
}

.bn.bnp .ppill {
  width: 48px;
  height: 44px;
  border-radius: 16px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(109, 90, 230, 0.3);
  transition: transform 0.15s;
}

.bn.bnp:hover .ppill {
  transform: scale(1.06);
}

.bn.bnp svg {
  color: #fff;
}

/* Hide chrome on landing */
body.landing-mode .topnav,
body.landing-mode .mtop,
body.landing-mode .bnav {
  display: none !important;
}

body.landing-mode .page {
  padding-bottom: 40px;
}

/* ═══ Nav Pill Trays (US-325) ═══ */

.nav-pill-tray {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  gap: 6px;
  padding: 6px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.nav-pill-tray::-webkit-scrollbar {
  display: none;
}

.nav-pill-tray.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-pill-tray--top {
  top: 60px;
  /* below sticky game-header */
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  padding-bottom: 12px;
}

.nav-pill-tray--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  padding-top: 12px;
}

.nav-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-family: var(--f);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-s);
  transition: all 0.15s;
}

.nav-pill:active {
  transform: scale(0.95);
}

.nav-pill-label {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-pill-count {
  font-size: 10px;
  color: var(--fg-subtle);
  font-weight: 700;
}

/* ═══ CITY SELECTOR & PICKER (US-361, US-362) ═══ */

/* City selector button in home header */
.city-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--f);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

.city-selector:hover {
  color: var(--fg);
}

.city-icon {
  display: inline-flex;
  align-items: center;
}

.city-icon svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.city-chev {
  font-size: 0.7rem;
  margin-left: 0.125rem;
}

/* City picker overlay (bottom sheet style) */
.city-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.city-picker-sheet {
  background: var(--bg-elev);
  border-radius: var(--r) var(--r) 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  max-height: 60vh;
  overflow-y: auto;
  animation: sheetUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.city-picker-sheet h3 {
  margin: 0 0 1rem;
  font-family: var(--fd);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.city-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.75rem 0.75rem;
  font-family: var(--f);
  font-size: 0.95rem;
  color: var(--fg);
  cursor: pointer;
  border-radius: var(--rx);
  transition: background 0.15s;
}

.city-item:hover {
  background: var(--bg-soft);
}

.city-item.active {
  color: var(--accent);
  font-weight: 600;
}

/* ═══ US-364: GUEST UPGRADE BANNER (compact) ═══ */

.guest-upgrade-card,
.guest-upgrade-section {
  background: var(--accent-soft);
  border: 1px solid rgba(109, 90, 230, 0.15);
  border-radius: var(--rx);
  padding: 0;
  animation: fu 0.3s ease;
}

.gu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.gu-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.gu-text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-width: 0;
}

.gu-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.gu-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(109, 90, 230, 0.2);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--f);
  font-weight: 700;
  color: var(--fg);
}

.gu-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.08);
}

.gu-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.gu-close:hover {
  opacity: 1;
}

.guest-upgrade-form {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.guest-upgrade-form.open {
  max-height: 260px;
  opacity: 1;
  padding: 0 14px 14px;
}

.guest-upgrade-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--rx);
  background: var(--bg-elev);
  font-family: var(--f);
  font-size: 14px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.guest-upgrade-input:focus {
  border-color: var(--accent);
}

.guest-upgrade-input::placeholder {
  color: var(--fg-subtle);
}

.guest-upgrade-submit {
  margin-top: 2px;
}

/* ═══ TOAST (player) ═══ */

#toast.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--rx);
  font-family: var(--f);
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 1;
  max-width: calc(100vw - 40px);
  text-align: center;
  box-shadow: var(--shadow-m);
}

#toast.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

#toast.toast.error {
  background: var(--rose);
}

/* ═══ RESPONSIVE — consolidated ═══ */

@media (max-width: 767px) {
  .topnav-in {
    padding: 0 16px;
    height: 48px;
  }

  .tn-links {
    display: none;
  }

  .tn-l {
    display: none;
  }
}

@media (min-width: 768px) {
  .greet-row h1 {
    font-size: 30px;
  }

  .bnav {
    display: none;
  }

  #toast.toast {
    bottom: 32px;
  }

  .home-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
  }
}

@media (min-width: 1024px) {

  .home-grid .today-col .sh {
    padding-top: 22px;
  }

  .home-grid .week-col .sh {
    padding-top: 22px;
  }

  .gc-title {
    font-size: 20px;
  }

  .lang-pills {
    display: flex;
  }

  .lang-card {
    display: none;
  }

  .play-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (min-width: 1280px) {
  .home-grid {
    gap: 28px;
  }
}

/* ═══ PROFILE SCREEN ═══
   static/css/player-screens.css
   Styles for the player Profile tab screen.
   Uses design tokens from player-tokens.css — no raw colours.
   ══════════════════════════════════════════ */

/* ── Nav spacer — pushes right-side nav items to the far end ── */
.p-nav-spacer {
  flex: 1 0 0;
}

/* ── Logo-as-button: reset browser button styles ── */
button.p-logo,
.ps-logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--land-font-display);
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* ══════════════════════════════════════════════
   PROFILE CONTENT WRAPPER
   ══════════════════════════════════════════════ */

.ps-profile {
  margin: 0 auto;
  padding: 32px 0 64px;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════
   SECTION 1 — AVATAR + PROFILE FIELDS
   ══════════════════════════════════════════════ */

.ps-avatar-section {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0 20px;
}

.ps-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.ps-profile-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* ── Field row: label stacked above input ── */
.ps-field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ── Text input ── */
.ps-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--rs);
  background: var(--bg-elev);
  color: var(--fg);
  font-family: var(--f);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.ps-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent);
}

.ps-input::placeholder {
  color: var(--fg-subtle);
  font-weight: 400;
}

/* Compact variant — used inside settings rows */
.ps-input--compact {
  padding: 8px 12px;
  font-size: 13px;
  width: auto;
  min-width: 140px;
  max-width: 200px;
}

/* ── Auth provider badge ── */
.ps-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   SECTION GAP — vertical spacer between sections
   ══════════════════════════════════════════════ */

.ps-section-gap {
  height: 24px;
}

/* ══════════════════════════════════════════════
   SECTION 2 — SETTINGS CARD
   ══════════════════════════════════════════════ */

.ps-settings-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

/* Settings row: label on left, control on right */
.ps-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.ps-settings-row+.ps-settings-row {
  border-top: 1px solid var(--border);
}

.ps-settings-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  flex-shrink: 0;
  user-select: none;
}

/* ── Language & Theme button groups ── */
.ps-lang-btns,
.ps-theme-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ps-lang-btn,
.ps-theme-btn {
  padding: 6px 14px;
  border-radius: var(--rx);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
  line-height: 1;
}

.ps-lang-btn:hover,
.ps-theme-btn:hover {
  background: var(--bg-soft);
  color: var(--fg);
}

.ps-lang-btn.active,
.ps-theme-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

/* ── Settings row variant: stacked (label above control) ── */
.ps-settings-row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ── Checkbox group (game languages) ── */
.ps-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ps-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--rx);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}

.ps-check-item:hover {
  background: var(--bg-soft);
  color: var(--fg);
}

.ps-check-item.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

/* ── City tag chips ── */
.ps-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px 5px 10px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

.ps-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--fg-subtle);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  transition: color 120ms ease, background 120ms ease;
}

.ps-chip-remove:hover {
  color: var(--fg);
  background: var(--border);
}

.ps-chip-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1.5px dashed var(--border-strong);
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--f);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
  white-space: nowrap;
  line-height: 1;
}

.ps-chip-add:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--bg-soft);
}

/* ══════════════════════════════════════════════
   SECTION 3 — ACTIONS
   ══════════════════════════════════════════════ */

.ps-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
  .ps-profile {
    padding: 20px 0 40px;
  }

  .ps-settings-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px 16px;
  }

  .ps-input--compact {
    max-width: 100%;
    width: 100%;
  }
}

/* ── Narrow desktop / tablet (768–1024px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .ps-profile {
    padding: 28px 0 56px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MY GAMES SCREEN
   Styles for the player My Games tab screen.
   Uses player design tokens — no raw colours.
   ═══════════════════════════════════════════════════════════════ */

/* ── Main content wrapper ── */
.ps-mygames {
  margin: 0 auto;
  padding: 32px 0 64px;
  display: flex;
  flex-direction: column;
}

/* ── Loading placeholder ── */
.ps-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
  color: var(--fg-subtle);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════ */

.ps-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px 56px;
  margin: 12px 0 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
}

/* Icon container */
.ps-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-subtle);
  margin-bottom: 22px;
  opacity: 0.55;
}

/* Title */
.ps-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.3;
}

/* Subtitle */
.ps-empty-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
  max-width: 260px;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════
   HOME EMPTY STATE — Atmospheric stage visual
   ══════════════════════════════════════════════ */

.ph-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--d5);
  animation: ph-stage-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  height: 100%;
  box-sizing: border-box;
}

@keyframes ph-stage-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spotlight beam */
.ph-stage-spotlight {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 320px;
  background: radial-gradient(ellipse at 50% 25%,
      color-mix(in oklab, var(--accent) 15%, transparent) 0%,
      transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* Stage curve at bottom */
.ph-stage-curve {
  display: none;
}

/* Text overlay */
.ph-stage-text {
  position: relative;
  text-align: center;
  z-index: 1;
}

.ph-stage-title {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.ph-stage-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .ph-stage {
    padding: 56px 24px 80px;
    min-height: 280px;
    margin: 12px 0 0;
  }

  .ph-stage-title {
    font-size: 26px;
  }

  .ph-stage-sub {
    font-size: 14px;
  }

  .ph-stage-spotlight {
    width: 320px;
    height: 220px;
  }

  .ph-stage-lights {
    gap: 36px;
    bottom: 52px;
  }
}

/* ══════════════════════════════════════════════
   GAMES LIST (card-based accordion)
   ══════════════════════════════════════════════ */

.ps-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* ── Game card ── */
.ps-game-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ps-game-card.is-expanded {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-s), 0 0 0 1px color-mix(in oklab, var(--accent) 15%, transparent);
}

/* ── Card header (clickable) ── */
.ps-game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 120ms ease;
}

.ps-game-card-header:hover {
  background: var(--bg-soft);
}

.ps-game-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 0;
}

.ps-game-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ps-game-project {
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ps-game-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ps-game-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-subtle);
  white-space: nowrap;
}

.ps-game-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Place indicator badge ── */
.ps-place-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* ── Score pills (compact bucket scores) ── */
.ps-score-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-score-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
}

.ps-score-pill:first-child {
  color: var(--accent);
  font-weight: 700;
}

/* ── Chevron ── */
.ps-game-chevron {
  display: flex;
  align-items: center;
  color: var(--fg-subtle);
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.ps-game-card.is-expanded .ps-game-chevron {
  transform: rotate(180deg);
}

/* ── Card body (expandable detail area) ── */
.ps-game-card-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 16px 16px;
}

.ps-game-card.is-expanded .ps-game-card-body {
  display: block;
}

.ps-mg-loading {
  text-align: center;
  padding: 24px 0;
  color: var(--fg-subtle);
  font-size: 13px;
}

/* ── Section grouping ── */
.ps-mg-section {
  margin-bottom: 12px;
}

.ps-mg-section:last-child {
  margin-bottom: 0;
}

.ps-mg-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0 6px;
}

.ps-mg-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-mg-section-bucket {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

/* ── Answer rows ── */
.ps-mg-answer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.ps-mg-answer-row:last-child {
  border-bottom: none;
}

.ps-mg-q-num {
  width: 22px;
  text-align: right;
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

.ps-mg-answer-text {
  flex: 1;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ps-mg-answer-text.empty {
  color: var(--fg-subtle);
  font-style: italic;
}

.ps-mg-correct-answer {
  flex: 1;
  font-size: 11px;
  color: var(--fg-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ps-mg-verdict {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.ps-mg-verdict--correct {
  background: var(--green-soft);
  color: var(--green);
}

.ps-mg-verdict--wrong {
  background: var(--danger-soft);
  color: var(--danger);
}

.ps-mg-points {
  width: 28px;
  text-align: right;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.ps-mg-points--positive {
  color: var(--green);
}

.ps-mg-points--negative {
  color: var(--danger);
}

.ps-mg-section-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-subtle);
  font-weight: 600;
}

.ps-mg-section-score {
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
  .ps-mygames {
    padding: 20px 0 40px;
  }

  .ps-empty-state {
    padding: 48px 24px 44px;
    margin: 8px 0 0;
  }

  .ps-empty-title {
    font-size: 17px;
  }

  .ps-game-card-header {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .ps-game-card-right {
    gap: 6px;
  }

  .ps-game-title {
    font-size: 13px;
  }

  .ps-game-card-body {
    padding: 10px 12px 14px;
  }
}

/* ── Narrow desktop / tablet (768–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .ps-mygames {
    padding: 28px 0 56px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LEADERBOARD SCREEN
   Styles for the player Leaderboard tab screen.
   Uses player design tokens — no raw colours.
   ═══════════════════════════════════════════════════════════════ */

/* ── Main content wrapper ── */
.ps-leaderboard {
  margin: 0 auto;
  padding: 32px 0 72px;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════
   SECTION 1 — CONTROLS
   ══════════════════════════════════════════════ */

.ps-lb-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 24px;
}

/* Label + select stacked vertically */
.ps-lb-select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 200px;
  min-width: 160px;
}

/* Small uppercase label above each selector */
.ps-lb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* Styled <select> element */
.ps-lb-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-elev);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  color: var(--fg);
  cursor: pointer;
  font-family: var(--f);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  outline: none;
  padding: 10px 36px 10px 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  width: 100%;
}

.ps-lb-select:hover:not(:disabled) {
  border-color: var(--border-strong);
}

.ps-lb-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent);
}

.ps-lb-select:disabled {
  color: var(--fg-subtle);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════
   SECTION 2 — BODY AREA
   ══════════════════════════════════════════════ */

.ps-lb-body {
  flex: 1;
}

/* ── Empty state ── */

.ps-lb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px 60px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
}

.ps-lb-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.45;
}

.ps-lb-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.3;
}

.ps-lb-empty-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
  max-width: 280px;
  line-height: 1.6;
}

/* ── Loading skeleton ── */

.ps-lb-loading {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.ps-lb-skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  animation: ps-lb-pulse 1.5s ease-in-out infinite;
}

.ps-lb-skeleton-row:last-child {
  border-bottom: none;
}

.ps-lb-skeleton-cell {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-soft);
}

.ps-lb-skeleton-rank {
  width: 24px;
  flex-shrink: 0;
}

.ps-lb-skeleton-name {
  flex: 1;
  max-width: 180px;
  opacity: 0.85;
}

.ps-lb-skeleton-score {
  width: 48px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Stagger the pulse for visual variety */
.ps-lb-skeleton-row:nth-child(2) {
  animation-delay: 0.1s;
}

.ps-lb-skeleton-row:nth-child(3) {
  animation-delay: 0.2s;
}

.ps-lb-skeleton-row:nth-child(4) {
  animation-delay: 0.3s;
}

.ps-lb-skeleton-row:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes ps-lb-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ══════════════════════════════════════════════
   SECTION 3 — LEADERBOARD TABLE
   ══════════════════════════════════════════════ */

/* Card-style wrapper for the table */
.ps-lb-table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ps-lb-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 360px;
  font-size: 13px;
  table-layout: auto;
}

/* ── Header ── */
.ps-lb-table thead {
  background: var(--bg-soft);
}

.ps-lb-table th {
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  text-align: center;
}

.ps-lb-col-team {
  text-align: left;
}

/* ── Body cells ── */
.ps-lb-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.35;
}

.ps-lb-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Hover & alternating rows ── */
.ps-lb-table tbody tr:nth-child(even) {
  background: color-mix(in oklab, var(--bg-soft) 50%, transparent);
}

.ps-lb-table tbody tr:hover {
  background: var(--bg-soft);
}

/* ── Rank cell ── */
.ps-lb-rank {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  width: 40px;
  color: var(--accent);
}

/* ── Team name cell ── */
.ps-lb-team {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Per-game score cells ── */
.ps-lb-score {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-align: center;
  font-family: var(--fm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Total column ── */
.ps-lb-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  font-family: var(--fm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Empty row ── */
.ps-lb-empty-row {
  text-align: center;
  color: var(--fg-subtle);
  font-size: 13px;
  padding: 36px 20px;
  font-style: italic;
}

/* ══════════════════════════════════════════════
   SECTION 4 — BUCKET PILL SWITCH
   ══════════════════════════════════════════════ */

.ps-lb-bucket-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ps-lb-bucket-pill {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
  line-height: 1;
  white-space: nowrap;
}

.ps-lb-bucket-pill:hover {
  border-color: var(--border-strong);
  color: var(--fg);
}

.ps-lb-bucket-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ps-lb-bucket-pill--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
  .ps-leaderboard {
    padding: 20px 0 48px;
  }

  .ps-lb-controls {
    gap: 12px;
    margin-bottom: 18px;
  }

  .ps-lb-select-group {
    flex: 1 1 100%;
  }

  .ps-lb-empty {
    padding: 48px 24px 44px;
  }

  .ps-lb-empty-title {
    font-size: 16px;
  }

  .ps-lb-table th,
  .ps-lb-table td {
    padding: 10px 12px;
  }

  .ps-lb-team {
    font-size: 13px;
  }
}

/* ── Narrow desktop / tablet (768–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .ps-leaderboard {
    padding: 28px 0 64px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PLAY SCREEN
   "Coming Soon" hero + feature-preview cards for self-hosted games.
   Uses player design tokens — no raw colours.
   ═══════════════════════════════════════════════════════════════ */

/* ── Main content wrapper ── */
.ps-play {
  margin: 0 auto;
  padding: 56px 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */

.ps-play-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 52px;
  gap: 14px;
}

/* Large icon in an accent-soft circle */
.ps-play-hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
  /* Subtle inner ring */
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent),
    var(--shadow-s);
}

.ps-play-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.ps-play-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 340px;
}

/* ══════════════════════════════════════════════
   FEATURE CARDS GRID
   2 columns on ≥ 480px, 1 column on mobile
   ══════════════════════════════════════════════ */

.ps-feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

/* ── Individual feature card ── */
.ps-feature-card {
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-s);
  transition: box-shadow 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.ps-feature-card:hover {
  box-shadow: var(--shadow-m);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ── Card icon circle ── */
.ps-feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* Warm tone — Svoyak / Russian Jeopardy */
.ps-feature-card-icon--warm {
  background: var(--orange-soft);
  color: var(--live);
}

/* Cool tone — Private Quiz */
.ps-feature-card-icon--cool {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* ── Card title ── */
.ps-feature-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  margin: 0;
}

/* ── Card description ── */
.ps-feature-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* ── Card footer: badge + disabled CTA ── */
.ps-feature-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

/* ── "Coming soon" badge ── */
.ps-coming-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Disabled button inside feature card ── */
.ps-feature-card .p-btn:disabled,
.ps-feature-card .p-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — PLAY SCREEN
   ══════════════════════════════════════════════ */

/* ── Mobile (≤ 479px): single-column cards ── */
@media (max-width: 479px) {
  .ps-play {
    padding: 32px 0 72px;
  }

  .ps-play-hero {
    padding-bottom: 36px;
    gap: 12px;
  }

  .ps-play-hero-icon {
    width: 72px;
    height: 72px;
  }

  /* Adjust icon size via CSS custom property isn't possible here,
     but the 48px SVG still renders correctly inside the smaller circle */

  .ps-play-title {
    font-size: 20px;
  }

  .ps-play-sub {
    font-size: 14px;
  }

  .ps-feature-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ps-feature-card {
    padding: 20px 18px 18px;
  }

  .ps-feature-card-footer {
    flex-wrap: wrap;
  }
}

/* ── Tablet / small desktop (480–767px): two columns still fit ── */
@media (min-width: 480px) and (max-width: 767px) {
  .ps-play {
    padding: 40px 0 80px;
  }

  .ps-play-hero {
    padding-bottom: 40px;
  }
}

/* ── Guest Welcome Popup ── */
.guest-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--d4);
}

.guest-welcome-card {
  background: var(--bg-elev);
  border-radius: var(--r);
  padding: var(--d6);
  max-width: 24rem;
  width: 100%;
  box-shadow: var(--shadow-l);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.guest-welcome-title {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--d2);
}

.guest-welcome-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: var(--d2);
  line-height: 1.5;
}

.guest-welcome-desc {
  font-size: 0.9rem;
  color: var(--fg-subtle);
  margin-bottom: var(--d5);
  line-height: 1.4;
}

.guest-welcome-input {
  width: 100%;
  padding: 14px;
  border-radius: var(--rx);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: var(--f);
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
  text-align: center;
  margin-bottom: var(--d3);
}

.guest-welcome-input:focus {
  border-color: var(--accent);
}

.guest-welcome-btn {
  margin-top: var(--d1);
}

.guest-welcome-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guest-welcome-skip {
  display: inline-block;
  margin-top: var(--d4);
  background: none;
  border: none;
  font-family: var(--f);
  font-size: 0.85rem;
  color: var(--fg-subtle);
  cursor: pointer;
  padding: var(--d1);
  transition: color 0.15s;
}

.guest-welcome-skip:hover {
  color: var(--fg-muted);
}

/* ── Buzz screen full-viewport overlay ── */
.buzz-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px;
  background: var(--bg);
}

/* ── Buzzer base (bezel housing) ── */
.buzz-base {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
}

.buzz-base::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 38%,
      oklch(0.03 0.025 340) 0%,
      oklch(0.025 0.025 340) 80%,
      oklch(0.034 0.025 340) 100%);
  z-index: 0;
}

/* ── Dome buzzer button ── */
.buzz-button {
  position: relative;
  z-index: 1;
  width: 198px;
  height: 198px;
  border-radius: 50%;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(ellipse 32px 20px at 35% 25%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%),
    radial-gradient(ellipse 80px 45px at 62% 68%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
    radial-gradient(circle at 42% 35%,
      oklch(0.5 0.1 300) 0%,
      oklch(0.22 0.085 300) 30%,
      oklch(0.35 0.065 300) 62%,
      oklch(0.06 0.045 300) 100%);
  color: #fff;
  box-shadow:
    5px 7px 22px rgba(0, 0, 0, 0.18),
    -1px -2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -4px 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    inset 0 0 0 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  flex-shrink: 0;
}

.buzz-button:hover:not(.locked):not(.buzz-sent) {
  transform: scale(1.03);
  box-shadow:
    7px 10px 28px rgba(0, 0, 0, 0.22),
    -2px -3px 6px rgba(255, 255, 255, 0.2),
    inset 0 -4px 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.buzz-button:active:not(.locked):not(.buzz-sent) {
  transform: scale(0.94) translateY(3px);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.2),
    inset 6px 8px 20px rgba(0, 0, 0, 0.35),
    inset -2px -3px 8px rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.buzz-button .buzz-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.buzz-button .buzz-label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.buzz-button.locked,
.buzz-button.buzz-sent {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  filter: grayscale(0.7);
}

/* ── Idle glint animation — light catching the dome ── */
.buzz-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse 55px 32px at 35% 23%, rgba(255, 255, 255, 0.28) 0%, transparent 55%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.buzz-button:not(.locked):not(.buzz-sent)::after {
  animation: buzzerGlint 3.5s ease-in-out infinite;
}

@keyframes buzzerGlint {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion) {
  .buzz-button:not(.locked):not(.buzz-sent)::after {
    animation: none;
  }
}

/* ── Buzzer activation pulse ── */
.buzz-button.buzz-ready {
  animation: buzzerActivate 0.5s ease-out;
}

@keyframes buzzerActivate {
  0% {
    transform: scale(0.92);
    opacity: 0.5;
    box-shadow: 0 0 0 0 oklch(0.5 0.1 330 / 0.6);
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
    box-shadow: 0 0 0 18px oklch(0.5 0.1 330 / 0);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 5px 7px 22px rgba(0, 0, 0, 0.18), -1px -2px 4px rgba(255, 255, 255, 0.15), inset 0 -4px 8px rgba(0, 0, 0, 0.28), inset 0 1px 2px rgba(255, 255, 255, 0.18), inset 0 0 0 2px rgba(0, 0, 0, 0.08);
  }
}

@media (prefers-reduced-motion) {
  .buzz-button.buzz-ready {
    animation: none;
  }
}

/* ── Buzz overlay text states (judgment / steal) ── */
.buzz-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.buzz-overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.buzz-overlay-title.buzz-steal {
  color: var(--danger);
  animation: buzzPulse 0.8s ease-in-out infinite alternate;
}

@keyframes buzzPulse {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.buzz-overlay-title.buzz-wrong {
  color: var(--danger);
}

.buzz-wrong-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buzz-wrong-icon .icon {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.buzz-score-chip {
  padding: 8px 24px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.buzz-screen-overlay .buzz-score-chip {
  margin-top: auto;
  position: absolute;
  bottom: 32px;
}

.single-question-wrap .buzz-score-chip {
  margin-top: 16px;
}

.buzz-overlay-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.buzz-overlay-question {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  text-align: center;
  max-width: 500px;
  padding: 16px 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Narrow desktop (768–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .ps-play {
    padding: 48px 0 84px;
  }
}