:root {
  --ink: #211a38;
  --ink-soft: #342b4f;
  --muted: #746d82;
  --surface: #ffffff;
  --surface-soft: #f6f3ff;
  --primary: #6d47e5;
  --primary-dark: #5732c8;
  --primary-pale: #eae3ff;
  --accent: #ffca5d;
  --accent-dark: #e7a91f;
  --success: #27a96f;
  --success-pale: #e8f8f1;
  --danger: #cd3f5a;
  --danger-pale: #fff0f3;
  --border: #e8e2f2;
  --shadow: 0 24px 70px rgba(57, 38, 100, 0.14);
  --shadow-soft: 0 12px 34px rgba(57, 38, 100, 0.09);
  --radius-large: 28px;
  --radius-medium: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8f6fc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 202, 93, 0.3), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(109, 71, 229, 0.16), transparent 30rem),
    #f8f6fc;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px 13px 13px 5px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--primary);
  box-shadow: 0 9px 22px rgba(109, 71, 229, 0.3);
  font-weight: 950;
  transform: rotate(-4deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge,
.mini-session {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  font-weight: 850;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #c2b1f7;
}

.lead {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
.vote-option:focus-visible {
  outline: 4px solid rgba(109, 71, 229, 0.2);
  outline-offset: 3px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(109, 71, 229, 0.26);
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 16px 32px rgba(109, 71, 229, 0.33);
}

.button-accent {
  color: #362500;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(255, 202, 93, 0.22);
}

.button-accent:hover:not(:disabled) {
  background: #ffd372;
}

.button-light {
  color: var(--primary);
  background: white;
}

.button-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
}

.button-large {
  min-height: 62px;
  padding: 17px 28px;
  border-radius: 17px;
  font-size: 1.05rem;
}

.button-small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.84rem;
}

.button-full {
  width: 100%;
}

.message {
  min-height: 1.35em;
  margin: 13px 0 0;
  font-size: 0.92rem;
  font-weight: 750;
}

.error-message {
  color: var(--danger);
}

.success-message {
  color: #6ff0ae;
}

.on-dark {
  color: #ff9eb0;
  text-align: center;
}

.connection-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  padding: 11px 17px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.admin-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 4vh auto 72px;
}

.hero-panel {
  min-height: 510px;
  padding: clamp(40px, 8vw, 92px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "?!";
  position: absolute;
  right: 5%;
  bottom: -21%;
  color: rgba(109, 71, 229, 0.07);
  font-size: clamp(13rem, 26vw, 23rem);
  font-weight: 950;
  letter-spacing: -0.16em;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-panel > * {
  max-width: 690px;
  position: relative;
  z-index: 1;
}

.hero-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.panel,
.panel-dark {
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.95);
}

.panel-dark {
  color: white;
  background:
    radial-gradient(circle at 90% 8%, rgba(109, 71, 229, 0.55), transparent 21rem),
    var(--ink);
}

.session-strip {
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.strip-label {
  margin-right: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.strip-code {
  color: var(--primary);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.strip-question {
  color: var(--ink);
  font-weight: 850;
}

.strip-players {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.strip-players strong {
  color: var(--ink);
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(39, 169, 111, 0.12);
}

.lobby-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.invite-panel {
  padding: clamp(30px, 5vw, 48px);
}

.invite-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.055em;
}

.giant-code {
  margin: 22px 0 30px;
  color: white;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.1em;
}

.share-box {
  margin-bottom: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.share-box a {
  padding-left: 8px;
  color: #ddd5f4;
  font-size: 0.87rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-panel > .button-full {
  margin-top: 20px;
}

.players-panel,
.roster-panel {
  min-height: 540px;
  padding: 34px;
}

.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.05em;
}

.count-bubble {
  min-width: 56px;
  height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--surface-soft);
  font-size: 1.25rem;
  font-weight: 950;
}

.empty-state {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.pulse-dot {
  width: 18px;
  height: 18px;
  margin-bottom: 18px;
  border: 5px solid #d8cdf9;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(109, 71, 229, 0.35);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 18px rgba(109, 71, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 71, 229, 0); }
}

.player-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  list-style: none;
}

.player-list.single-column {
  grid-template-columns: 1fr;
}

.player-item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fdfcff;
  animation: player-in 220ms ease-out;
}

.player-item.is-offline {
  opacity: 0.5;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--surface-soft);
  font-weight: 950;
}

.player-details {
  min-width: 0;
  display: grid;
}

.player-details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-details small {
  color: var(--success);
  font-size: 0.72rem;
}

.is-offline .player-details small {
  color: var(--muted);
}

@keyframes player-in {
  from { opacity: 0; transform: translateY(7px); }
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.game-panel {
  min-height: 660px;
  padding: clamp(30px, 5vw, 55px);
}

.roster-panel {
  min-height: 420px;
  padding: 24px;
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: 1.7rem;
}

.compact-heading .count-bubble {
  min-width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1rem;
}

.game-topline {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.question-number {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
}

.timer {
  width: 112px;
  height: 88px;
  border-radius: 24px;
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--primary);
  background: var(--surface-soft);
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.timer.is-urgent {
  color: var(--danger);
  background: var(--danger-pale);
  animation: urgent 900ms infinite alternate;
}

@keyframes urgent {
  to { transform: scale(1.05); }
}

.timer-value {
  font-size: 3.1rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.07em;
}

.timer-unit {
  font-size: 0.74rem;
  font-weight: 850;
}

.question-text {
  max-width: 920px;
  margin-bottom: 32px;
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.062em;
}

.progress-card {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 24px;
  align-items: center;
  background: #fdfcff;
}

.progress-card > div:first-child {
  display: grid;
}

.progress-card strong {
  font-size: 1.2rem;
}

.progress-card > div:first-child span {
  color: var(--muted);
  font-size: 0.8rem;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--primary-pale);
  overflow: hidden;
}

.progress-track span {
  width: 0;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: var(--primary);
  transition: width 250ms ease;
}

.phase-content {
  margin-top: 12px;
}

.content-title {
  margin-bottom: 18px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.inline-empty {
  padding: 22px;
  border: 1px dashed #d9d0e8;
  border-radius: 18px;
  color: var(--muted);
  background: #fbfaff;
  line-height: 1.5;
  text-align: center;
}

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

.answer-card {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fdfcff;
}

.answer-card p {
  margin-bottom: 16px;
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.4;
}

.answer-card small {
  color: var(--muted);
}

.phase-action {
  margin-top: 22px;
}

.results-list {
  display: grid;
  gap: 10px;
}

.result-countdown {
  margin: 18px 0 0;
  color: var(--primary);
  font-weight: 850;
  text-align: center;
}

.result-item {
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #fdfcff;
}

.result-item:first-child {
  border-color: #f0ce72;
  background: #fffaf0;
}

.result-rank {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--surface-soft);
  font-weight: 950;
}

.result-item p {
  margin-bottom: 3px;
  font-weight: 750;
  line-height: 1.35;
}

.result-item small {
  color: var(--muted);
}

.vote-count {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-pale);
  font-size: 0.82rem;
  white-space: nowrap;
}

.leaderboard {
  max-width: 880px;
  margin: 0 auto;
}

.final-title {
  margin-bottom: 32px;
  text-align: center;
}

.final-title > span {
  display: block;
  margin-bottom: 10px;
  font-size: 3.8rem;
}

.final-title h2 {
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
}

.final-title p {
  color: var(--muted);
}

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

.podium-card {
  min-width: 0;
  min-height: 150px;
  padding: 24px 15px;
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #faf8ff;
  text-align: center;
}

.podium-card.place-1 {
  min-height: 190px;
  border-color: #edc962;
  background: linear-gradient(145deg, #fff8df, #fffdf8);
  order: 2;
}

.podium-card.place-2 {
  order: 1;
}

.podium-card.place-3 {
  order: 3;
}

.podium-place {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: white;
  box-shadow: var(--shadow-soft);
  font-weight: 950;
}

.place-1 .podium-place {
  color: #876008;
  background: var(--accent);
}

.podium-card strong {
  max-width: 100%;
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-card > span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-list > div {
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 10px;
  background: #fdfcff;
}

.ranking-list > div > span:first-child {
  color: var(--muted);
  font-weight: 850;
}

.ranking-list > div > span:last-child {
  color: var(--primary);
  font-weight: 850;
}

/* Player / mobile */
.play-page {
  padding: 24px 18px 50px;
}

.play-shell {
  width: min(100%, 520px);
  margin: 0 auto;
}

.play-header {
  margin: 0 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-toast {
  width: max-content;
  max-width: calc(100% - 36px);
  text-align: center;
}

.join-card,
.mobile-game-card {
  padding: clamp(27px, 7vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.join-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 10vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

form {
  display: grid;
}

label {
  margin: 0 0 8px 3px;
  font-size: 0.9rem;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  background: #fdfcff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  min-height: 60px;
  margin-bottom: 20px;
  padding: 14px 17px;
  font-size: 1.05rem;
}

textarea {
  min-height: 138px;
  padding: 16px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #aaa3b6;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 71, 229, 0.1);
}

.code-input {
  font-size: 1.65rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.player-statusbar {
  margin-bottom: 12px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.player-statusbar strong {
  max-width: 50%;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-game-card {
  min-height: 540px;
}

.mobile-question-meta {
  min-height: 58px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-timer {
  width: 76px;
  height: 60px;
  border-radius: 18px;
}

.mobile-timer .timer-value {
  font-size: 2.2rem;
}

.mobile-question {
  margin-bottom: 28px;
  font-size: clamp(2rem, 8.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.player-phase-content {
  margin-top: 12px;
}

.player-notice {
  padding: 25px 20px;
  border: 1px solid var(--border);
  border-radius: 19px;
  color: var(--muted);
  background: #faf8ff;
  text-align: center;
}

.player-notice strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.08rem;
}

.player-notice p {
  margin-bottom: 0;
  line-height: 1.5;
}

.success-notice {
  border-color: #cbeedd;
  background: var(--success-pale);
}

.success-notice strong {
  color: var(--success);
}

.answer-form label {
  margin-bottom: 9px;
}

.answer-footer {
  min-height: 30px;
  padding: 6px 3px 8px;
  display: flex;
  justify-content: flex-end;
}

.answer-footer small {
  color: var(--muted);
}

.vote-intro {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.vote-list {
  display: grid;
  gap: 10px;
}

.vote-option {
  width: 100%;
  min-height: 72px;
  padding: 13px;
  border: 2px solid var(--border);
  border-radius: 17px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  color: var(--ink);
  background: #fdfcff;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.vote-option:hover:not(:disabled) {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.vote-option.is-own {
  border-style: dashed;
  color: var(--muted);
  background: #f6f4f8;
}

.vote-option.is-selected {
  border-color: var(--primary);
  background: var(--surface-soft);
}

.vote-option small {
  grid-column: 2;
  color: var(--primary);
  font-size: 0.72rem;
}

.vote-number {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--surface-soft);
  font-weight: 950;
}

.mobile-results .result-item {
  padding: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
}

.mobile-results .result-rank {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.mobile-results + .player-notice {
  margin-top: 14px;
}

.mobile-trophy {
  margin-bottom: 18px;
  font-size: 3.8rem;
  text-align: center;
}

.mobile-podium {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.mobile-podium .podium-card {
  min-height: 100px;
  order: initial;
}

.mobile-podium .podium-card.place-1 {
  min-height: 120px;
  order: -1;
}

@media (max-width: 960px) {
  .site-header,
  .admin-shell {
    width: min(100% - 30px, 760px);
  }

  .lobby-layout,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .roster-panel {
    min-height: auto;
  }

  .roster-panel .player-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px 0;
  }

  .header-actions .status-badge {
    display: none;
  }

  .admin-shell {
    margin-top: 1vh;
  }

  .hero-panel {
    min-height: 540px;
    padding: 38px 27px;
    border-radius: 28px;
  }

  .session-strip {
    grid-template-columns: 1fr auto;
  }

  .strip-question {
    display: none;
  }

  .giant-code {
    font-size: 4rem;
  }

  .share-box,
  .progress-card {
    grid-template-columns: 1fr;
  }

  .share-box .button {
    width: 100%;
  }

  .players-panel,
  .game-panel {
    padding: 25px;
  }

  .player-list,
  .roster-panel .player-list,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .game-topline {
    align-items: center;
  }

  .question-text {
    font-size: 2.25rem;
  }
}

@media (max-width: 440px) {
  .play-page {
    padding: 18px 13px 36px;
  }

  .play-header {
    margin-bottom: 18px;
  }

  .join-card,
  .mobile-game-card {
    padding: 27px 22px;
    border-radius: 25px;
  }

  .mobile-game-card {
    min-height: 510px;
  }

  .result-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .result-item .vote-count {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
