:root {
  color-scheme: light;
  --ink: #193b48;
  --muted: #344f5c;
  --primary: #205967;
  --line: #b4cfd1;
  --surface: linear-gradient(140deg, #f2f9f7 0%, #dfeeed 38%, #d9e5ee 78%, #d3ebe6 100%);
  --edge: inset 0 2px 1px #fff, inset 1px 0 1px #f5ffff, inset 0 -2px 3px #527d8638, 0 12px 25px -16px #021921cc, 0 0 16px -12px #7be1d9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #162f3d; font: 15px/1.5 'Segoe UI', Arial, sans-serif; }
a { color: #24596a; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -1.6px; font-weight: 500; margin-bottom: 18px; }
h2 { font-size: 21px; letter-spacing: -.5px; line-height: 1.25; margin-bottom: 12px; font-weight: 500; }
h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
button, .button, .choice-tile { transition: background-color .16s, border-color .16s, box-shadow .16s; }
:where(a, button, input, select):focus-visible { outline: 3px solid #1b4b5c; outline-offset: 4px; box-shadow: 0 0 0 6px #effff8; }
.app {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh;
  background: radial-gradient(ellipse at 95% 5%, #3b697c66 0%, transparent 42%), linear-gradient(140deg, #1a3541, #182b3a 52%, #302934);
}
.app::before {
  content: ''; position: absolute; inset: 42% -10% -100px; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, #f0c378 0%, #f08d92 53%, #bd79b9 100%);
  opacity: .22; filter: blur(72px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 65%);
  mask-image: linear-gradient(180deg, transparent, #000 65%);
}
.content { max-width: 1280px; margin: 0 auto; padding: 28px 48px 48px; }
.top { display: flex; align-items: center; gap: 30px; min-height: 86px; padding: 16px 48px; background: linear-gradient(100deg,#f1f8f4,#d8e9e9); border-bottom: 1px solid #c6ebea; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #203f49; text-decoration: none; white-space: nowrap; font-size: 22px; font-weight: 650; letter-spacing: -.7px; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a { padding: 9px 18px; min-height: 42px; border: 1px solid transparent; border-radius: 999px; color: #405a54; text-decoration: none; font-size: 13px; }
.top nav a:hover { background: #cde4de; }
.top nav a[aria-current=page] { color: #fff; background: linear-gradient(135deg,#236d70,#284b68); border-color: #286572; box-shadow: inset 0 1px 1px #93d4ce66; font-weight: 650; }
.account { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
.account form, .inline-form { margin: 0; }
.account-link { display: inline-flex; gap: 9px; align-items: center; color: #294d54; text-decoration: none; min-width: 0; }
.who { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ui-icon { display: inline-block; width: 36px; height: 36px; flex-shrink: 0; background: url('../images/design/silver-icons-v5.png') no-repeat 0 0 / 300% 200%; vertical-align: middle; filter: brightness(.3) sepia(.3) saturate(.5); }
.i-book { background-position: 0% 0%; }
.i-play { background-position: 50% 0%; }
.i-trophy { background-position: 100% 0%; }
.i-people { background-position: 0% 100%; }
.i-home { background-position: 50% 100%; }
.i-profile { background-position: 100% 100%; }
.glass-icon { background-image: url('../images/design/liquid-glass-icons-v4.png'); filter: none; }
.brand .ui-icon { width: 40px; height: 40px; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 23px;
  border: 2px solid #b9eee5; border-radius: 999px; color: #fff;
  background: linear-gradient(155deg,#27666b 0%,#205563 52%,#28466c 100%);
  box-shadow: inset 0 2px 1px #b9f5ea77, inset 0 -2px 2px #092d4680, 0 5px 12px -7px #071c2bcc;
  font-weight: 650; font-size: 14px; text-decoration: none;
}
button:hover:not(:disabled), .button:hover { color: #fff; background: linear-gradient(145deg,#2d6e72,#245c6c 55%,#304d72); border-color: #e4fff6; box-shadow: inset 0 2px 1px #d0fff899, 0 0 0 2px #83d7d636; }
button:active:not(:disabled), .button:active { background: #244c61; }
button .ui-icon, .button .ui-icon { width: 25px; height: 25px; margin: -4px 0; filter: brightness(0) invert(1); }
button.secondary, .button.secondary { color: #204854; border-color: #718f9c; background: linear-gradient(145deg,#f5fcfa,#d4e4ed); box-shadow: inset 0 2px 1px #fff, inset 0 -1px 2px #587d8544; }
button.secondary:hover:not(:disabled), .button.secondary:hover { color: #1b4554; background: linear-gradient(145deg,#fff,#ddf4f0); border-color: #426e7d; }
.secondary .ui-icon { filter: brightness(.3) sepia(.3) saturate(.5); }
button:disabled { cursor: default; color: #435b64; background: #ccd9dc; border: 2px dashed #81989f; box-shadow: none; }
button.compact, .button.compact { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.full { width: 100%; }
.actions, .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.card, .feature, .player-card, .reading { background: var(--surface); border: 1px solid #c0e5e3; border-radius: 26px; box-shadow: var(--edge); }
.card { padding: 28px; }
.card, button, .button, .choice-tile, input, select { backdrop-filter: none; -webkit-backdrop-filter: none; }
.eyebrow { margin: 0 0 15px; color: #365967; font-size: 11px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; }
.note { color: var(--muted); }
.small { font-size: 13px; }
.hero { min-height: 550px; display: flex; align-items: center; padding: 48px 40px; background: url('../images/design/chapter-landscape-v3.png') center 57% / cover; border-radius: 30px; box-shadow: 0 14px 35px -20px #000c, 0 0 0 1px #cbe9dc44; }
.hero-copy { width: 100%; max-width: 535px; padding: 29px 30px; background: #f3f8f2; border: 1px solid #b3cebf; border-radius: 25px; box-shadow: inset 0 2px 1px #fff, 0 10px 25px -16px #082d3299; }
.hero h1 { color: #24473f; font-size: 57px; font-weight: 500; letter-spacing: -2px; line-height: 1.12; }
.hero .eyebrow { color: #41655e; }
.hero .lede { color: #3c5b52; max-width: 420px; margin-bottom: 0; }
.hero .actions { margin-top: 28px; }
.hero .button { min-width: 168px; }
.hero .small { color: #3c5b52; margin: 20px 0 10px; font-size: 12px; }
.features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.feature { padding: 23px; }
.feature .ui-icon { display: block; width: 56px; height: 56px; margin-bottom: 12px; }
.feature h2 { font-size: 17px; color: #234651; margin-bottom: 8px; }
.feature p { color: #3d5f67; font-size: 13px; margin-bottom: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 145px; margin-bottom: 24px; padding: 27px 30px; border-radius: 26px; background: linear-gradient(120deg,#e8f2ef,#cfdee9 72%,#c7e3e1); border: 1px solid #c4e5e6; box-shadow: var(--edge); }
.page-heading h1 { color: #214651; font-size: 37px; margin: 0; letter-spacing: -1px; }
.page-heading .eyebrow { color: #3e6069; margin-bottom: 12px; }
.page-heading p:not(.eyebrow) { margin: 12px 0 0; color: #3e6069; }
.page-heading form { flex-shrink: 0; }
.column-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.column-title h2 { margin: 0; }
.split { display: grid; grid-template-columns: 345px minmax(0,1fr); gap: 24px; align-items: start; }
.split>*, .board>*, .account-grid>* { min-width: 0; }
.split form>.actions+p, .split form>.row+p { margin-top: 18px; }
label, legend { display: block; color: #294956; font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
label:first-child { margin-top: 0; }
input:not([type=radio]):not([type=checkbox]), select { width: 100%; min-height: 49px; padding: 12px; color: #214552; border: 2px solid #78959e; background: #f5faf7; border-radius: 14px; box-shadow: inset 0 2px 4px #244e5a12, 0 1px 0 #fff; }
input[type=hidden] { display: none; }
input::placeholder { color: #4b626c; opacity: 1; }
select option { background: #eff7f5; color: #1d4550; }
input[type=file]::file-selector-button { color: #315461; border: 1px solid #91a9aa; background: #e1eeeb; border-radius: 999px; padding: 6px 10px; margin-right: 10px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #245e69; }
label:has(input[type=checkbox]) { display: flex; gap: 9px; align-items: center; }
.difficulty { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.difficulty legend { margin: 0 0 9px; padding: 0; }
.segments { display: flex; gap: 8px; }
.segments label { position: relative; margin: 0; flex: 1; min-width: 0; font-weight: 500; }
.segments input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segments span { display: flex; align-items: center; justify-content: center; cursor: pointer; min-height: 44px; padding: 9px 6px; border: 2px solid #829fa8; border-radius: 999px; color: #315866; background: linear-gradient(145deg,#f6fcf8,#dbe8ee); box-shadow: inset 0 1px 1px #fff; font-size: 12px; }
.segments input:checked+span { color: white; border-color: #296978; background: linear-gradient(135deg,#2a7578,#304b70); box-shadow: inset 0 1px 1px #9bd8d655, 0 0 0 2px #a8dad366; font-weight: 650; }
.segments input:focus-visible+span { outline: 3px solid #1b4b5c; outline-offset: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #2a5b57; background: #d5eae2; border: 1px solid #86b3a6; box-shadow: inset 0 1px 1px #fff; white-space: nowrap; }
.pill.beginner { color: #5d542c; background: #efe6cc; border-color: #b2aa86; }
.pill.intermediate { color: #3b6269; background: #d5e8ea; border-color: #8cafb9; }
.pill.scholar { color: #585374; background: #e4e1ef; border-color: #b4adc9; }
.pill.wait { color: #685528; background: #efe5c9; border-color: #bbad86; }
.pill.neutral { color: #4c626c; background: #d6e0e5; border-color: #8ca2ad; }
.pill.live::before, .pill.wait::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.game-row { display: flex; align-items: center; gap: 13px; padding: 21px 0; border-bottom: 1px solid #b5cdcf; }
.game-row:last-child { border-bottom: 0; }
.room-art { width: 60px; height: 49px; flex-shrink: 0; object-fit: cover; border: 1px solid #b0c6bd; border-radius: 14px; }
.game-meta { flex: 1; min-width: 0; }
.game-meta strong { font-size: 14px; overflow-wrap: anywhere; }
.game-meta .note { font-size: 12px; margin-top: 4px; }
.game-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.game-actions form { margin: 0; }
.empty-state { padding: 30px 14px; text-align: center; }
.empty-state .ui-icon { width: 72px; height: 72px; margin-bottom: 18px; }
.empty-state p { max-width: 400px; margin: 10px auto 0; }
.connection-status { color: #eef8f5; font-size: 12px; margin: -6px 3px 18px; }
.card .connection-status { color: #345966; margin: 10px 0; }
.loading-state { text-align: center; padding: 45px; }
.loading-state .ui-icon { width: 70px; height: 70px; margin-bottom: 10px; }
.board { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 24px; align-items: start; }
.play { padding: 30px 32px; }
.seats { padding: 24px 18px; background: linear-gradient(145deg,#e4f1ec,#c6dae7); }
.seats h2 { font-size: 17px; margin: 0 6px 14px; }
.seats h2 .note { display: block; font-size: 11px; font-weight: 400; margin-top: 6px; }
.seat { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px 8px; border-radius: 15px; border: 2px solid transparent; font-size: 13px; }
.seat.current { background: #c6e7dd; border-color: #659d98; box-shadow: inset 0 1px 1px #fff; }
.seat.off { background: #d4e0e2; }
.seat strong { font-weight: 550; overflow-wrap: anywhere; }
.seat .note { font-size: 12px; color: #365563; }
.score { color: #285d70; font-size: 24px; font-weight: 500; }
.avatar { width: 40px; height: 40px; display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden; border-radius: 50%; color: #2b5763; background: #d5e9e7; border: 1px solid #8dafb1; box-shadow: inset 0 1px 1px #fff9; font-size: 13px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seat .avatar { width: 34px; height: 34px; font-size: 12px; }
.avatar.lg { width: 68px; height: 68px; font-size: 24px; }
.avatar.tone-1 { color: #5b5274; background: #e1dfed; border-color: #b0a9c8; }
.avatar.tone-2 { color: #3b6b63; background: #d4eae1; border-color: #98b7aa; }
.avatar.tone-3 { color: #405e7a; background: #dae4ef; border-color: #a1b3c8; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #3d5b68; font-size: 12px; }
.progress { height: 7px; background: #a5c5cb; box-shadow: inset 0 2px 3px #264e5a33, 0 1px 1px #fff; border-radius: 999px; margin: 18px 0 28px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4fbbad,#326f90); box-shadow: inset 0 1px 1px #c8ffed80; }
.turn { display: flex; gap: 9px; align-items: center; color: #285968; margin-bottom: 24px; font-size: 13px; }
.turn .avatar { width: 28px; height: 28px; font-size: 11px; }
.question { color: #214650; font-size: 35px; font-weight: 500; line-height: 1.24; letter-spacing: -.6px; margin-bottom: 30px; overflow-wrap: anywhere; }
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.choice-grid.wide { grid-template-columns: repeat(2,minmax(0,1fr)); }
.choice-tile, button.choice-tile {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 66px; padding: 16px;
  color: #274f5b; background: linear-gradient(145deg,#f9fcf6,#e4edf0); border: 2px solid #76949b; border-radius: 19px;
  box-shadow: inset 0 2px 1px #fff, 0 2px 3px #2144541a; text-align: left; font-size: 15px; font-weight: 550;
}
button.choice-tile:hover { color: #204a56; background: #d9f1eb; border-color: #3b747a; box-shadow: inset 0 2px 1px #fff; }
.choice-tile>span:not(.letter) { min-width: 0; overflow-wrap: anywhere; }
.letter { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #2b6170; background: #cfe5e4; box-shadow: inset 0 1px 2px #fff9; font-size: 12px; font-weight: 700; }
.choice-tile.picked { color: white; background: linear-gradient(135deg,#27777a,#244f70); border-color: #c5fff1; box-shadow: inset 0 2px 2px #b7f8ed55, 0 0 0 3px #477e8766; }
button.choice-tile.picked:hover { color: white; background: linear-gradient(135deg,#24676c,#244f70); border-color: #e4fff6; box-shadow: inset 0 2px 2px #b7f8ed55, 0 0 0 3px #477e8766; }
.choice-tile.picked .letter { color: #245d67; background: #edfdf5; }
.choice-tile.picked::after { content: '\2713'; margin-left: auto; font-size: 18px; font-weight: 750; }
div.choice-tile { cursor: default; }
.choices { padding: 16px; background: #f4faf6; border: 1px solid #9db7b8; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 18px; }
.answer-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.answer-actions>p { margin: 0; font-size: 12px; color: #3d5b68; }
.answer-actions .actions { margin: 0; }
.hint { color: #f3f8f6; background: #203541; border: 1px solid #647780; border-radius: 14px; padding: 12px 16px; font-size: 13px; margin: 18px 2px 0; }
.card .hint { color: #34545f; background: none; border: 0; border-radius: 0; padding: 0; }
.banner { border: 1px solid #91afb1; border-radius: 18px; background: #e3edec; color: #284e5a; padding: 17px 20px; margin: 18px 0; overflow-wrap: anywhere; }
.banner strong { display: block; margin-bottom: 5px; }
.banner p:last-child { margin-bottom: 0; }
.banner.correct { color: #245a48; background: #dbeee1; border-color: #81aa96; }
.banner.wrong, .error { color: #783d43; background: #f9e6e6; border: 1px solid #c89ca1; border-radius: 16px; padding: 13px 17px; }
.error { margin: 18px 0 0; }
.error:empty { display: none; }
.verse { font-size: 13px; margin: 8px 0 0; }
.waiting-intro { color: #effaf5; margin: 28px 4px; max-width: 730px; }
.waiting-intro h2 { font-size: 36px; line-height: 1.15; font-weight: 500; letter-spacing: -1px; }
.waiting-intro .eyebrow { color: #c6e8e0; }
.waiting-intro .note { color: #e2eeec; }
.player-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.player-card { text-align: center; padding: 28px 12px; border-radius: 24px; }
.player-card strong { display: block; font-size: 14px; margin-top: 10px; overflow-wrap: anywhere; }
.player-card .note { font-size: 12px; }
.player-card.empty { color: #d4e6e6; background: #274752; border: 1px dashed #739d9f; box-shadow: inset 0 1px 2px #b8e3e522; }
.player-card.empty .note, .player-card.empty .small { color: #e2eeec; }
.player-card.empty .avatar { color: #d4ece9; background: #365f68; border-color: #739b9f; font-size: 12px; }
.waiting-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; background: #203541; border: 1px solid #647780; border-radius: 22px; }
.waiting-foot p { margin: 0; color: #eef8f5; }
.result-heading { padding: 30px; margin-bottom: 24px; }
.result-heading h2 { font-size: 44px; letter-spacing: -1.5px; margin-bottom: 15px; }
.result-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; align-items: start; }
.ranking { padding: 22px; }
.ranking h2 { font-size: 19px; margin: 2px 13px 14px; }
.result-row { display: grid; grid-template-columns: 26px 40px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 16px 10px; border-bottom: 1px solid #b9ced1; }
.result-row:last-child { border-bottom: 0; }
.result-row.winner { background: #c6e7dd; border: 2px solid #659d98; border-radius: 15px; }
.result-row strong { font-weight: 550; overflow-wrap: anywhere; }
.result-row small { display: block; color: #365563; font-size: 12px; }
.rank { font-size: 12px; color: #365563; }
.result-row .score { font-size: 23px; }
.result-art { min-height: 237px; padding: 25px; display: flex; align-items: flex-end; background: url('../images/design/chapter-landscape-v3.png') center 66% / cover; border: 1px solid #bfc2a6; border-radius: 26px; }
.result-art p { color: #274e48; background: #f1faf2; padding: 12px 18px; border: 1px solid #a4c2b1; border-radius: 15px; margin: 0; font-size: 19px; }
.result-next .actions { margin-top: 18px; }
.result-next .button { flex: 1; }
.results .last-answer { margin-bottom: 0; }
.filters { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(110px,.7fr); gap: 14px; align-items: end; margin-bottom: 25px; }
.filters label { margin: 0; }
.filters select { display: block; margin-top: 8px; }
.reading { max-width: 800px; margin: auto; padding: 42px 55px; }
.reading h2 { color: #234651; font-size: 38px; font-weight: 500; margin-bottom: 25px; }
.reading p { color: #35545c; font: 20px/1.9 Georgia, serif; }
.reading p strong { display: inline-block; min-width: 20px; margin-right: 6px; color: #285c64; vertical-align: super; font: 12px 'Segoe UI', sans-serif; }
.account-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; max-width: 1060px; margin: 20px auto 0; align-items: center; }
.profile-story h1 { color: #effaf5; font-size: 48px; line-height: 1.1; }
.profile-story .eyebrow { color: #c6e8e0; }
.profile-story .note { color: #e2eeec; max-width: 450px; }
.profile-art { width: 100%; height: 210px; object-fit: cover; object-position: center 66%; border: 1px solid #c2c3aa; border-radius: 24px; margin-bottom: 25px; }
.profile-head { display: flex; gap: 17px; align-items: center; margin: 25px 0; min-width: 0; }
.profile-head>div:last-child { min-width: 0; }
.profile-head strong { overflow-wrap: anywhere; }
.profile-head p { margin: 7px 0 0; font-size: 13px; }
.message-card { max-width: 800px; margin: 30px auto; }
.site-footer { max-width: 1280px; margin: 0 auto; display: flex; gap: 20px; justify-content: space-between; color: #f3f8f6; background: #242a36; border-top: 1px solid #65707b; padding: 20px 48px 30px; font-size: 13px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 5; border-radius: 12px; background: #fff; padding: 12px 18px; color: #194957; }
@media(max-width:1100px) {
  .top { padding: 15px 28px; gap: 18px; flex-wrap: wrap; }
  .brand { font-size: 21px; }
  .who { max-width: 110px; }
  .content { padding: 28px 28px 40px; }
  .hero { padding: 36px; }
  .hero h1 { font-size: 51px; }
  .board { grid-template-columns: minmax(0,1fr) 220px; gap: 18px; }
  .play { padding: 26px; }
  .question { font-size: 31px; }
  .split { grid-template-columns: 310px minmax(0,1fr); gap: 18px; }
  .game-row { flex-wrap: wrap; }
  .game-actions { width: 100%; justify-content: flex-end; }
}
@media(max-width:760px) {
  .top { padding: 13px 18px 0; gap: 8px 12px; }
  .brand { font-size: 20px; gap: 4px; }
  .brand .ui-icon { width: 36px; height: 36px; }
  .top nav { order: 3; width: 100%; margin: 4px 0 10px; }
  .top nav a { min-height: 38px; padding: 8px 17px; font-size: 12px; }
  .account { gap: 7px; }
  .account .who { display: none; }
  .account .avatar { width: 32px; height: 32px; font-size: 11px; }
  .account button.compact, .account .button.compact { min-height: 36px; padding: 7px 11px; font-size: 11px; }
  .account-link { gap: 0; }
  .content { padding: 20px 18px 34px; }
  .hero { min-height: 650px; padding: 20px 16px 210px; background-position: 64% center; border-radius: 25px; align-items: flex-start; }
  .hero-copy { padding: 24px 20px; border-radius: 22px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.4px; }
  .hero .eyebrow { font-size: 10px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .button { width: 100%; }
  .hero .small { font-size: 11px; }
  .features, .split, .account-grid { grid-template-columns: minmax(0,1fr); }
  .features { gap: 13px; }
  .feature { padding: 21px; }
  .feature .ui-icon { width: 48px; height: 48px; float: left; margin: 0 14px 24px 0; }
  .feature p { margin-left: 62px; }
  .page-heading { min-height: 151px; padding: 22px; align-items: flex-start; gap: 12px; border-radius: 24px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .page-heading form button { min-height: 42px; padding: 9px 13px; font-size: 11px; }
  .card { padding: 24px; }
  .game-row { gap: 10px; }
  .room-art { width: 46px; height: 46px; }
  .game-actions { justify-content: flex-start; gap: 8px; }
  .game-actions form, .game-actions>.button { margin-left: auto; }
  .board { grid-template-columns: minmax(0,1fr); }
  .seats { order: -1; padding: 11px; border-radius: 22px; }
  .seats h2 { font-size: 12px; margin: 2px 7px 9px; }
  .seats h2 .note { display: inline; margin-left: 5px; }
  .seats-list { display: flex; gap: 4px; overflow-x: auto; padding: 3px 1px 6px; }
  .seat { flex-shrink: 0; grid-template-columns: 25px minmax(0,1fr) auto; gap: 7px; padding: 8px; }
  .seat .avatar { width: 25px; height: 25px; font-size: 10px; }
  .seat strong { display: block; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .seat .note { font-size: 11px; }
  .seat .score { font-size: 18px; }
  .play { padding: 24px 20px; }
  .question { font-size: 29px; }
  .choice-grid.wide { grid-template-columns: minmax(0,1fr); }
  .choice-tile, button.choice-tile { min-height: 63px; padding: 13px; }
  .answer-actions { align-items: stretch; }
  .answer-actions>p { width: 100%; }
  .answer-actions .actions { width: 100%; justify-content: space-between; gap: 12px; }
  .answer-actions button { padding: 12px 17px; }
  .waiting-intro h2 { font-size: 30px; }
  .player-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-card { padding: 22px 10px; }
  .waiting-foot { flex-direction: column; align-items: stretch; }
  .result-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .result-heading h2 { font-size: 35px; }
  .ranking { padding: 14px; }
  .result-row { padding: 15px 8px; gap: 8px; }
  .result-next .actions { flex-direction: column; align-items: stretch; }
  .result-art { min-height: 210px; }
  .filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .filters label:first-child { grid-column: 1/-1; }
  .reading { padding: 28px 23px; }
  .reading h2 { font-size: 32px; }
  .reading p { font-size: 18px; }
  .profile-story h1 { font-size: 40px; }
  .profile-art { height: 190px; }
  .site-footer { padding: 15px 18px 25px; }
}
@media(max-width:420px) {
  .top .brand { font-size: 18px; }
  .top .brand .ui-icon { width: 30px; height: 30px; }
  .account>.button:last-child { display: none; }
  .hero h1 { font-size: 35px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
