:root {
  --sky-top: #4e9cff;
  --sky-bottom: #3d79eb;
  --sky-glow: rgba(255, 255, 255, 0.38);
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(79, 119, 214, 0.18);
  --line-strong: rgba(63, 107, 212, 0.28);
  --ink: #16213d;
  --ink-soft: #5f6f98;
  --pink: #ff6e97;
  --pink-soft: #ffa3bf;
  --cyan: #23b7ff;
  --violet: #8a7dff;
  --peach: #ffa26d;
  --yellow: #ffd447;
  --mint: #b9f4d0;
  --shadow-lg: 0 32px 80px rgba(30, 57, 128, 0.22);
  --shadow-md: 0 18px 44px rgba(36, 63, 146, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --phone-width: 328px;
  font-family: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.28), transparent 0, transparent 24%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.1), transparent 46%);
  pointer-events: none;
}

body.is-player-dragging,
body.is-player-dragging * {
  user-select: none;
}

#app,
#app * {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
  -webkit-user-select: text;
  user-select: text;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 22px 0 48px;
}

.phone-brand,
.screen-title,
.hero-wordmark {
  font-family: "Baloo 2", system-ui, sans-serif;
}

.stage {
  display: grid;
  gap: 26px;
}

.screen-stage {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
}

.player-stage {
  align-items: stretch;
}

.play-app-frame {
  width: min(100%, 560px);
  height: calc(100dvh - 70px);
  display: grid;
  grid-template-rows: auto 214px minmax(0, 1fr) auto;
  gap: 14px;
  align-self: stretch;
}

.play-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.play-topline-slot {
  display: flex;
  min-width: 0;
}

.play-topline-slot.align-start {
  justify-content: flex-start;
}

.play-topline-slot.align-center {
  justify-content: center;
}

.play-topline-slot.align-end {
  justify-content: flex-end;
}

.play-progress {
  font-size: 1.55rem;
  font-weight: 800;
  color: #15325f;
}

.play-session-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #3554b5;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(49, 85, 177, 0.12);
}

.text-nav-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0e5c5b;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
}

.play-question-stack {
  position: relative;
  padding-top: 34px;
}

.play-timer-ring {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 56%, transparent 58%),
    conic-gradient(#0e5c5b 0 34%, #9fd6cc 34% 100%);
  box-shadow: 0 16px 36px rgba(27, 70, 115, 0.16);
  z-index: 2;
}

.play-timer-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #ffffff;
}

.play-timer-ring span {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0e5c5b;
}

.play-question-card {
  height: 100%;
  padding: 58px 26px 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.96));
  box-shadow: 0 28px 54px rgba(42, 74, 154, 0.16);
  display: grid;
  align-items: center;
  justify-items: center;
}

.play-question-card h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  line-height: 1.04;
  color: #16213d;
  text-align: center;
  text-wrap: balance;
  width: 100%;
  max-width: 100%;
}

.play-question-card h1.is-compact {
  font-size: clamp(1.28rem, 3vw, 1.76rem);
  line-height: 1.06;
}

.play-question-card h1.is-dense {
  font-size: clamp(1.08rem, 2.5vw, 1.42rem);
  line-height: 1.08;
}

.play-question-card h1.is-tight {
  font-size: clamp(0.96rem, 2.1vw, 1.22rem);
  line-height: 1.1;
}

.play-answer-zone {
  min-height: 0;
  overflow: hidden;
}

.play-answer-scroll {
  height: 100%;
  overflow: hidden;
  padding-right: 0;
}

.player-short-answer,
.player-choice-list,
.player-match-grid,
.player-bucket-layout {
  height: 100%;
}

.player-bucket-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.player-source-tray {
  display: grid;
  gap: 8px;
}

.player-source-tray header {
  font-size: 0.86rem;
  font-weight: 800;
  color: #3554b5;
}

.player-source-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-source-item {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c2a50;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(58, 91, 173, 0.08);
  cursor: pointer;
  touch-action: none;
}

.player-source-item.is-selected {
  background: #0b5a58;
  color: #ffffff;
}

.player-sortable-list {
  height: 100%;
  gap: 10px;
  grid-template-rows: repeat(var(--answer-count, 6), minmax(0, 1fr));
}

.player-choice-list {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(var(--answer-count, 4), minmax(0, 1fr));
}

.player-choice-row {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(58, 91, 173, 0.1);
  text-align: left;
  cursor: pointer;
}

.player-choice-row strong {
  font-size: 1.12rem;
}

.player-choice-row.is-selected {
  background: linear-gradient(135deg, rgba(163, 223, 206, 0.96), rgba(149, 213, 195, 0.96));
}

.player-choice-indicator {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #15325f;
  flex: 0 0 auto;
}

.player-choice-row.is-selected .player-choice-indicator {
  background: #0b5a58;
  border-color: #0b5a58;
  box-shadow: inset 0 0 0 5px #ffffff;
}

.player-choice-row:disabled,
.player-source-item:disabled,
.player-bucket-item:disabled,
.player-match-pill:disabled,
.player-answer-input:disabled,
.player-sortable-item.is-locked,
.player-bucket-card.is-locked {
  opacity: 0.5;
  filter: grayscale(0.28);
  box-shadow: none;
  color: #8f9bb9;
}

.player-choice-row:disabled.is-selected,
.player-match-pill:disabled {
  opacity: 0.72;
}

.player-choice-row:disabled strong,
.player-source-item:disabled,
.player-bucket-item:disabled,
.player-match-pill:disabled strong,
.player-answer-input:disabled,
.player-sortable-item.is-locked strong,
.player-bucket-card.is-locked header,
.player-bucket-card.is-locked .player-bucket-item,
.player-sortable-item.is-locked .sortable-grip {
  color: #8f9bb9;
}

.player-choice-row:disabled .player-choice-indicator,
.player-match-pill:disabled .player-match-index,
.player-sortable-item.is-locked .sortable-rank {
  opacity: 0.62;
}

.player-short-answer {
  display: grid;
  align-items: center;
}

.player-answer-input {
  width: 100%;
  min-height: 78px;
  padding: 0 24px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 28px rgba(58, 91, 173, 0.1);
}

.player-bucket-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.player-bucket-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(58, 91, 173, 0.08);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, outline-color 120ms ease;
}

.player-bucket-card header {
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
  color: #3554b5;
}

.player-bucket-items {
  display: grid;
  align-content: start;
  gap: 8px;
}

.player-bucket-item {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: grab;
  touch-action: none;
}

.player-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.player-match-column {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(var(--answer-count, 4), minmax(0, 1fr));
}

.player-match-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(58, 91, 173, 0.1);
  text-align: left;
  cursor: grab;
  transition: transform 180ms ease, box-shadow 160ms ease;
}

.player-sortable-item.is-locked,
.player-bucket-card.is-locked {
  opacity: 0.9;
}

.player-sortable-item.is-locked .sortable-grip,
.player-bucket-card.is-locked,
.player-match-pill:disabled,
.player-source-item:disabled,
.player-bucket-item:disabled,
.player-choice-row:disabled,
.player-answer-input:disabled {
  cursor: default;
}

.play-app-frame.is-submitted .player-source-item:disabled,
.play-app-frame.is-submitted .player-bucket-item:disabled,
.play-app-frame.is-submitted .player-match-pill:disabled,
.play-app-frame.is-submitted .player-choice-row:disabled,
.play-app-frame.is-submitted .player-sortable-item.is-locked {
  transform: none !important;
}

.player-match-pill.is-active {
  outline: 3px solid rgba(11, 90, 88, 0.28);
}

.player-match-pill.is-linked {
  background: linear-gradient(135deg, rgba(163, 223, 206, 0.96), rgba(149, 213, 195, 0.96));
}

.player-match-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #8da8ff, #5de0ff);
  color: #ffffff;
  font-weight: 800;
  flex: 0 0 auto;
}

.player-match-link {
  margin-left: auto;
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  color: #0b5a58;
}

.player-sortable-list .sortable-row {
  min-height: 0;
  height: 100%;
  padding: 0 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  box-shadow: 0 14px 28px rgba(58, 91, 173, 0.1);
  cursor: grab;
  touch-action: none;
  transition: transform 180ms ease, box-shadow 160ms ease;
}

.player-sortable-list .sortable-rank {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.player-sortable-list .sortable-row strong {
  font-size: 1.18rem;
}

.player-sortable-list .sortable-grip {
  min-width: 60px;
}

.ranking-controls {
  display: flex;
  gap: 8px;
}

.ranking-move-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #edf3ff;
  color: #3554b5;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.ranking-move-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.play-submit-dock {
  display: grid;
}

.player-interstitial-frame {
  grid-template-rows: auto minmax(0, 1fr);
}

.player-interstitial-card {
  display: grid;
  gap: 18px;
  align-content: start;
  overflow: auto;
}

.play-submit-cta {
  width: 100%;
  min-height: 56px;
  border-radius: 22px;
  background: #0b5a58;
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(11, 90, 88, 0.24);
}

.play-submit-cta:disabled {
  background: rgba(255, 255, 255, 0.78);
  color: #6d7ea8;
  box-shadow: none;
  cursor: default;
}

.play-app-frame.is-submitted .play-answer-zone,
.play-app-frame.is-submitted .play-answer-zone * {
  cursor: default !important;
}

.play-app-frame.is-submitted .sortable-grip {
  color: #9aa7c8;
}

.player-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.94;
  transform: translate3d(0, 0, 0) scale(1.02);
  box-shadow: 0 22px 44px rgba(33, 60, 138, 0.22);
}

.is-dragging-live {
  z-index: 9999;
  pointer-events: none;
  opacity: 0.98;
  transform: scale(1.02);
  box-shadow: 0 22px 44px rgba(33, 60, 138, 0.22);
}

.player-drag-placeholder {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.24);
  border: 2px dashed rgba(11, 90, 88, 0.18);
}

.player-sortable-placeholder {
  height: 100%;
}

.player-match-placeholder {
  min-height: 0;
}

.player-sortable-item.is-drop-target,
.player-bucket-card.is-drop-target,
.player-source-items.is-drop-target,
.player-match-pill.is-drop-target {
  outline: 3px solid rgba(11, 90, 88, 0.24);
  outline-offset: -3px;
}

.player-match-pill.is-drop-target {
  background: linear-gradient(135deg, rgba(217, 243, 236, 0.98), rgba(201, 236, 227, 0.98));
}

.single-phone-wrap {
  width: min(100%, var(--phone-width));
}

.game-board {
  width: min(100%, 1180px);
  display: grid;
  gap: 22px;
}

.timed-play-shell {
  width: min(100%, 1180px);
  height: calc(100dvh - 70px);
  display: grid;
  gap: 18px;
  align-content: stretch;
  align-self: stretch;
}

.timed-play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
}

.timed-play-brand {
  display: grid;
  gap: 4px;
}

.timed-play-brand .screen-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.timed-play-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.timed-play-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
}

.timed-main-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(160px, 0.34fr) minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
}

.timed-side-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.timed-question-panel,
.timed-answer-panel {
  min-height: 0;
  display: grid;
  gap: 12px;
}

.timed-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7ea8;
}

.timed-question-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 3.4rem);
  line-height: 0.98;
}

.timed-answer-scroll {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-right: 6px;
}

.timed-answer-scroll::-webkit-scrollbar {
  width: 10px;
}

.timed-answer-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(74, 112, 209, 0.26);
}

.timed-submit-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: stretch;
}

.timed-submit-button {
  min-width: 0;
}

.player-board {
  grid-template-columns: minmax(0, 1.12fr) 320px;
}

.leaderboard-board {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.phone-card {
  position: relative;
  min-height: 690px;
  padding: 18px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-lg);
}

.phone-card.light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
  border-color: rgba(255, 255, 255, 0.75);
}

.phone-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.phone-inner {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 100%;
  z-index: 1;
}

.auth-stage {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.7), transparent 0, transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.hero-wordmark {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.84;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 3px 0 #1e2d7e,
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.hero-wordmark span {
  display: block;
  font-size: 0.76em;
}

.auth-copy {
  text-align: center;
}

.auth-copy h1 {
  margin: 0;
  font-size: 1.45rem;
  color: #ffffff;
}

.auth-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.auth-copy .screen-kicker {
  color: rgba(255, 255, 255, 0.84);
}

.stack {
  display: grid;
  gap: 12px;
}

.status-banner,
.status-panel {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #2a49af;
  font-weight: 700;
  text-align: center;
}

.status-banner.is-error {
  background: rgba(255, 235, 240, 0.96);
  color: #b1335f;
}

.status-panel {
  min-height: 160px;
  align-self: center;
}

.player-alert-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 18, 43, 0.32);
  backdrop-filter: blur(8px);
}

.player-alert-modal {
  width: min(100%, 360px);
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 54px rgba(25, 45, 104, 0.22);
  text-align: center;
}

.player-alert-modal p {
  margin: 0;
  color: #b1335f;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.player-alert-button {
  min-width: 0;
}

.social-button,
.soft-button,
.ghost-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.social-button:hover,
.soft-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.social-button {
  justify-content: flex-start;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(17, 41, 110, 0.16);
}

.social-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  background: #f0f4ff;
  color: #2a49af;
}

.social-button span:last-child {
  font-weight: 600;
}

.phone-footnote {
  margin-top: auto;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.screen-title {
  margin: 0;
  font-size: 2rem;
  line-height: 0.95;
}

.screen-kicker {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.icon-pill-row {
  display: flex;
  gap: 10px;
}

.circle-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #4677ef;
  box-shadow: 0 10px 18px rgba(78, 114, 204, 0.14);
  border: 1px solid rgba(70, 119, 239, 0.14);
}

.segment-row {
  display: flex;
  gap: 10px;
}

.segment {
  flex: 1;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f5f7ff;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.segment.is-active {
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  color: #ffffff;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.podium-slot {
  text-align: center;
}

.avatar-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  padding: 4px;
  box-shadow: 0 14px 30px rgba(255, 110, 151, 0.2);
}

.avatar-ring .avatar-fill {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: linear-gradient(180deg, #fff7f9, #ffe0e8);
  color: #cc4d79;
  font-weight: 700;
  font-size: 1.35rem;
}

.avatar-ring.gold {
  width: 112px;
  height: 112px;
}

.podium-slot strong {
  display: block;
  font-size: 0.98rem;
}

.podium-slot small {
  color: var(--ink-soft);
}

.leaderboard-list {
  display: grid;
  gap: 12px;
}

.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f4fbff, #ebf7ff);
  box-shadow: 0 10px 24px rgba(110, 161, 219, 0.12);
}

.board-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-mini {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4f73eb, #2bbaff);
}

.rank-chip {
  min-width: 60px;
  padding: 8px 10px;
  text-align: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.mobile-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: #b4bdd6;
}

.mobile-nav .nav-dot {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f5f6fd;
}

.mobile-nav .nav-dot.is-active {
  background: linear-gradient(135deg, #8f9dff, #ff87a4);
  color: #ffffff;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
}

.dashboard-copy h1 {
  margin: 0;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  line-height: 0.9;
}

.dashboard-copy p {
  margin: 10px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.dashboard-actions,
.control-actions,
.inline-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.soft-button,
.ghost-button {
  min-width: 150px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #2943a1;
  box-shadow: 0 14px 28px rgba(36, 58, 136, 0.16);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.96fr;
  gap: 22px;
}

.surface-card,
.score-card,
.editor-card,
.overlay-frame {
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.surface-card,
.score-card,
.editor-card {
  padding: 22px;
  background: linear-gradient(180deg, var(--surface-strong), #f7f9ff);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.player-main,
.leaderboard-main,
.player-sidebar,
.leaderboard-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.score-card strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1;
  margin-bottom: 8px;
}

.score-card span,
.label,
.muted {
  color: var(--ink-soft);
}

.soft-button.secondary {
  background: linear-gradient(180deg, #eef4ff, #e5eeff);
  color: #2943a1;
  box-shadow: none;
}

.question-shell {
  display: grid;
  gap: 18px;
}

.question-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #3450ad;
  font-size: 0.92rem;
  font-weight: 700;
}

.tag.accent {
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  color: #ffffff;
}

.question-shell h2,
.panel-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.06;
}

.question-shell p {
  margin: 0;
}

.sortable-list {
  display: grid;
  gap: 12px;
}

.timed-answer-panel .sortable-list {
  gap: 10px;
}

.sortable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fcff, #edf4ff);
  border: 1px solid rgba(99, 132, 212, 0.16);
}

.timed-answer-panel .sortable-row {
  min-height: 72px;
  padding: 14px 16px;
}

.sortable-rank {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #8da8ff, #5de0ff);
  color: #ffffff;
  font-weight: 700;
}

.timed-answer-panel .sortable-rank {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.sortable-grip {
  min-width: 54px;
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.queue-card,
.creator-list {
  display: grid;
  gap: 14px;
}

.field,
.field-inline {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.queue-list {
  display: grid;
  gap: 12px;
}

.queue-row {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7fb, #fff0f6);
  border: 1px solid rgba(255, 123, 170, 0.18);
}

.queue-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.queue-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.config-grid,
.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.config-row,
.creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.creator-row strong,
.config-row strong {
  font-size: 1rem;
}

.overlay-frame {
  min-height: 76vh;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 252, 255, 0.88));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.overlay-stage {
  display: grid;
  gap: 18px;
}

.front-sidecard {
  align-content: start;
  gap: 14px;
}

.front-code-card,
.front-stat-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  display: grid;
  gap: 6px;
}

.front-code-card strong,
.front-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.front-code-card strong {
  font-size: 2.7rem;
  letter-spacing: 0.04em;
}

.overlay-board {
  display: grid;
  gap: 12px;
}

.side-stat {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  display: grid;
  gap: 6px;
}

.side-stat strong {
  font-size: 1.6rem;
  line-height: 1;
}

.side-stat.primary {
  background: linear-gradient(135deg, #ff7ea4, #ffb181);
  color: #ffffff;
}

.side-stat.primary .tiny {
  color: rgba(255, 255, 255, 0.82);
}

.leader-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff, #edf4ff);
}

.overlay-title {
  font-family: "Baloo 2", system-ui, sans-serif;
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.9;
}

.front-answer-hint,
.front-choice-row,
.front-bucket-head,
.front-match-row {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(60, 92, 170, 0.08);
}

.front-answer-hint {
  font-size: 1.15rem;
  font-weight: 700;
  color: #3554b5;
  text-align: center;
}

.front-choice-list,
.front-bucket-layout {
  display: grid;
  gap: 12px;
}

.front-choice-row,
.front-match-row {
  font-size: 1.1rem;
  font-weight: 700;
}

.front-bucket-layout,
.front-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tiny {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

@media (max-width: 1120px) {
  .dashboard-grid,
  .config-grid,
  .creator-grid,
  .overlay-frame,
  .score-grid,
  .game-board {
    grid-template-columns: 1fr;
  }

  .timed-play-grid {
    grid-template-columns: 1fr;
  }

  .timed-side-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phone-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 18px, 1320px);
    padding-top: 16px;
  }

  .play-app-frame {
    height: calc(100dvh - 34px);
    grid-template-rows: auto 194px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .play-topline {
    padding-top: 0;
  }

  .play-progress {
    font-size: 1.32rem;
  }

  .play-session-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .play-question-stack {
    padding-top: 28px;
  }

  .play-timer-ring {
    width: 84px;
    height: 84px;
  }

  .play-timer-ring span {
    font-size: 1.52rem;
  }

  .play-question-card {
    padding: 48px 20px 18px;
    border-radius: 26px;
  }

  .play-question-card h1 {
    font-size: clamp(1.28rem, 6.1vw, 1.82rem);
  }

  .play-question-card h1.is-compact {
    font-size: clamp(1.04rem, 4.9vw, 1.38rem);
  }

  .play-question-card h1.is-dense {
    font-size: clamp(0.92rem, 4.2vw, 1.14rem);
  }

  .play-question-card h1.is-tight {
    font-size: clamp(0.84rem, 3.8vw, 1rem);
  }

  .player-sortable-list {
    gap: 8px;
  }

  .player-sortable-list .sortable-row {
    padding: 0 16px;
    border-radius: 20px;
  }

  .player-sortable-list .sortable-rank {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .player-sortable-list .sortable-row strong {
    font-size: 1.02rem;
  }

  .player-choice-row {
    padding: 0 16px;
    border-radius: 20px;
  }

  .player-choice-row strong {
    font-size: 1rem;
  }

  .player-answer-input {
    min-height: 64px;
    padding: 0 18px;
    border-radius: 20px;
    font-size: 1.14rem;
  }

  .player-bucket-layout,
  .player-match-grid,
  .front-bucket-layout,
  .front-match-grid {
    grid-template-columns: 1fr;
  }

  .player-bucket-card {
    padding: 12px;
    border-radius: 20px;
  }

  .player-bucket-item,
  .front-choice-row,
  .front-bucket-head,
  .front-match-row,
  .front-answer-hint {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .play-submit-cta {
    min-height: 52px;
    border-radius: 20px;
  }

  .dashboard-grid,
  .overlay-frame,
  .config-grid,
  .creator-grid,
  .game-board,
  .timed-play-shell,
  .timed-play-grid {
    gap: 16px;
  }

  .phone-card,
  .surface-card,
  .score-card,
  .editor-card,
  .overlay-frame {
    border-radius: 26px;
    padding: 18px;
  }

  .score-grid,
  .podium {
    grid-template-columns: 1fr;
  }

  .screen-stage {
    min-height: calc(100dvh - 34px);
    place-items: stretch;
  }

  .timed-play-shell {
    height: calc(100dvh - 34px);
  }

  .timed-play-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .timed-play-meta {
    justify-content: flex-start;
  }

  .timed-side-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timed-main-card {
    grid-template-rows: minmax(118px, auto) minmax(0, 1fr) auto;
  }

  .timed-question-panel h2 {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .timed-submit-bar {
    grid-template-columns: 1fr;
  }

  .timed-submit-bar .soft-button {
    width: 100%;
  }
}
