.game-slide {
  background: radial-gradient(circle at 86% 16%, #d6b6f666 0 9%, transparent 30%), radial-gradient(circle at 8% 90%, #dcecfa 0 8%, transparent 28%), #fafaf9;
  padding: 42px 7.4vw 30px;
}
.game-slide::after { color: #787671; }
.game-shell { width: min(1180px, 100%); height: 100%; margin: auto; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.game-header { display: flex; align-items: flex-start; justify-content: space-between; padding-right: 90px; }
.game-header .eyebrow { margin: 0 0 6px; }
.game-header h1 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: .94; letter-spacing: -.07em; }
.game-header h1 em { color: var(--purple); font-style: normal; }
.connection-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 13px; color: var(--muted); font-size: 12px; }
.connection-pill i { width: 8px; height: 8px; border-radius: 50%; background: #e6a23c; }
.connection-pill.connected i { background: #28a745; box-shadow: 0 0 0 4px #28a7451f; }
.connection-pill.offline i { background: #db4b4b; }
.game-app { min-height: 0; display: grid; align-items: center; overflow: auto; scrollbar-width: thin; }
.game-panel { width: min(900px, 100%); margin: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 38px); box-shadow: 0 18px 55px #0a15300d; }
.game-panel.wide { width: min(1050px, 100%); }
.game-step { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.game-step span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e6e0f5; color: var(--purple); }
.game-panel h2 { margin: 0 0 10px; font-size: clamp(24px, 2.7vw, 36px); letter-spacing: -.045em; }
.game-panel .lead { color: #5d5b54; line-height: 1.65; margin-bottom: 22px; }
.question-list { display: grid; gap: 10px; }
.question-option { position: relative; display: block; }
.question-option input { position: absolute; opacity: 0; pointer-events: none; }
.question-option span { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; line-height: 1.5; transition: .18s; }
.question-option span::before { content: ''; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid #c8c4be; border-radius: 50%; }
.question-option input:checked + span { border-color: var(--purple); background: #f5f2ff; }
.question-option input:checked + span::before { border: 5px solid var(--purple); }
.question-option input:focus-visible + span { outline: 3px solid #5645d433; outline-offset: 2px; }
.answer-field { margin-top: 20px; }
.answer-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.answer-field textarea { width: 100%; min-height: 98px; resize: vertical; border: 1px solid #c8c4be; border-radius: 10px; padding: 15px; font: inherit; line-height: 1.55; color: var(--ink); }
.answer-field textarea:focus { outline: 3px solid #5645d426; border-color: var(--purple); }
.answer-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.char-count.valid { color: #21833d; font-weight: 700; }
.char-count.invalid { color: #c03d3d; font-weight: 700; }
.game-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.game-button { appearance: none; border: 0; border-radius: 9px; padding: 13px 20px; background: var(--purple); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: .18s; }
.game-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 18px #5645d433; }
.game-button:disabled { opacity: .42; cursor: not-allowed; }
.game-button.secondary { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.game-button.danger { background: #b93131; }
.prompt-box { margin: 22px 0; padding: 20px; border-radius: 12px; background: var(--navy); color: #fff; }
.prompt-box code { display: block; white-space: pre-wrap; font-family: inherit; line-height: 1.65; font-size: 16px; }
.prompt-copy-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.prompt-copy-row .game-button { background: #fff; color: var(--navy); padding: 9px 14px; font-size: 12px; }
.waiting-panel { text-align: center; }
.waiting-orbit { position: relative; width: 112px; height: 112px; margin: 4px auto 26px; border: 1px solid #d6b6f6; border-radius: 50%; animation: game-spin 7s linear infinite; }
.waiting-orbit::before, .waiting-orbit::after { content: ''; position: absolute; border-radius: 50%; }
.waiting-orbit::before { width: 28px; height: 28px; background: var(--purple); top: -8px; left: 42px; }
.waiting-orbit::after { inset: 22px; border: 1px solid #e5e3df; }
.submission-count { display: inline-flex; align-items: baseline; gap: 7px; margin: 12px 0; padding: 12px 22px; border-radius: 999px; background: #f5f2ff; color: var(--purple); }
.submission-count strong { font-size: 30px; }
.round-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.round-progress { color: var(--purple); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.round-question { padding: 16px 19px; border-left: 4px solid var(--purple); background: #f7f6f3; border-radius: 0 9px 9px 0; font-size: clamp(16px, 2vw, 22px); font-weight: 700; line-height: 1.45; }
.answer-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.answer-card { appearance: none; min-height: 150px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 20px; text-align: left; color: var(--ink); font: inherit; cursor: pointer; transition: .18s; }
.answer-card:hover:not(:disabled) { border-color: var(--purple); transform: translateY(-2px); }
.answer-card.selected { border: 2px solid var(--purple); background: #f5f2ff; }
.answer-card:disabled { cursor: default; }
.answer-label { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 13px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
.answer-card.selected .answer-label { background: var(--purple); }
.answer-text { display: block; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.vote-note { min-height: 22px; margin: 13px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.self-round-note { border-radius: 9px; background: #fff4d5; padding: 10px 13px; color: #6d5200; font-size: 12px; line-height: 1.5; }
.leaderboard { width: 100%; border-collapse: collapse; margin-top: 18px; }
.leaderboard th, .leaderboard td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.leaderboard th { color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.leaderboard tr.is-me td { background: #f5f2ff; color: var(--purple); font-weight: 700; }
.rank-badge { display: inline-grid; place-items: center; min-width: 31px; height: 31px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.leaderboard tr:first-child .rank-badge { background: var(--purple); }
.game-error { margin: 14px 0 0; color: #b93131; font-size: 13px; line-height: 1.5; }
.game-toast { position: absolute; left: 50%; bottom: 52px; z-index: 20; transform: translateX(-50%); border-radius: 8px; background: var(--navy); color: #fff; padding: 10px 15px; font-size: 12px; box-shadow: 0 8px 30px #0003; }
.game-loading, .game-unavailable { text-align: center; color: var(--muted); }
.game-spinner { display: block; width: 30px; height: 30px; margin: 0 auto 15px; border: 3px solid #e6e0f5; border-top-color: var(--purple); border-radius: 50%; animation: game-spin .9s linear infinite; }
.game-privacy { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.host-body { min-height: 100vh; margin: 0; background: #fafaf9; overflow: auto; }
.host-wrap { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 38px 0 60px; }
.host-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.host-top h1 { margin: 0; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.06em; }
.host-top h1 em { color: var(--purple); font-style: normal; }
.host-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.host-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 24px; }
.host-card h2 { margin: 0 0 16px; font-size: 20px; }
.host-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.host-stat { border-radius: 10px; background: #f5f2ff; padding: 16px; }
.host-stat span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.host-stat strong { color: var(--purple); font-size: 25px; }
.host-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.host-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.vote-tally { padding: 17px; border: 1px solid var(--line); border-radius: 10px; }
.vote-tally strong { display: block; font-size: 29px; margin-top: 4px; }
.vote-bar { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 10px; background: #eceae5; }
.vote-bar i { display: block; height: 100%; background: var(--purple); transition: width .3s; }
.host-login { width: min(480px, calc(100% - 40px)); margin: 15vh auto; }
.host-login h1 em { color: var(--purple); font-style: normal; }
.host-login input { width: 100%; border: 1px solid #c8c4be; border-radius: 9px; padding: 13px; font: inherit; }
.host-login input:focus { outline: 3px solid #5645d426; border-color: var(--purple); }
.host-login .game-button { width: 100%; margin-top: 12px; }
.host-answer { border-left: 4px solid var(--purple); padding: 12px 15px; background: #f7f6f3; line-height: 1.5; }
.host-answer.correct { border-color: #21833d; background: #eef9f1; }
@keyframes game-spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .game-slide { padding: 26px 7vw 18px; }
  .game-shell { gap: 9px; }
  .game-header { padding-right: 42px; }
  .game-header h1 { font-size: 32px; }
  .connection-pill { padding: 6px 9px; }
  .game-app { align-items: start; padding: 4px 0; }
  .game-panel { padding: 20px; border-radius: 13px; }
  .game-panel h2 { font-size: 24px; }
  .question-list { gap: 7px; }
  .question-option span { min-height: 50px; padding: 10px 12px; font-size: 13px; }
  .answer-field { margin-top: 13px; }
  .answer-field textarea { min-height: 80px; }
  .answer-cards { grid-template-columns: 1fr; gap: 9px; }
  .answer-card { min-height: 105px; padding: 14px; }
  .answer-label { float: left; margin: 0 12px 6px 0; }
  .game-actions { margin-top: 15px; }
  .host-grid { grid-template-columns: 1fr; }
}
@media (max-height: 720px) {
  .game-slide { padding-top: 24px; }
  .game-header h1 { font-size: 32px; }
  .game-panel { padding-top: 18px; padding-bottom: 18px; }
  .game-panel .lead { margin-bottom: 12px; }
  .question-option span { min-height: 46px; padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-spinner, .waiting-orbit { animation: none; }
  .answer-card, .game-button { transition: none; }
}
