:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0f0b0b;
  color: #f5efe0;
  --ink: #0f0b0b;
  --panel: #181212;
  --border: #302425;
  --gold: #f5cf76;
  --muted: #c4beb4;
  --green: #eed596;
  --red: #ffa1ae;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button, input, select, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
h1, h2, strong { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { font-size: clamp(1.22rem, 3vw, 1.55rem); line-height: 1.15; letter-spacing: -.035em; }
.muted { color: var(--muted); line-height: 1.55; }
.small { font-size: .86rem; }
.topbar { border-bottom: 1px solid #231a1b; background: #0f0b0b; }
.topinner, .footer { width: min(100% - 44px, 1180px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.topinner { min-height: 76px; gap: 18px; }
.brand { border: 0; background: transparent; color: #fbf0d8; display: inline-flex; align-items: center; gap: 11px; font-size: .77rem; font-weight: 850; text-align: left; padding: 0; letter-spacing: .14em; }
.brand-sub { display: block; color: var(--gold); font-size: .59rem; letter-spacing: .24em; margin-top: 3px; }
.brand-mark { display: grid; place-items: center; width: 39px; aspect-ratio: 1; background: #191314; border: 1px solid #7d6837; color: var(--gold); font: 900 1.45rem Georgia, serif; border-radius: 8px; }
nav { display: flex; gap: 15px; }
.link-button { background: transparent; border: 0; color: var(--muted); min-height: 44px; padding: 0 8px; font-size: .88rem; }
.link-button:hover { color: var(--gold); }
main { flex: 1; outline: none; }
.footer { min-height: 68px; gap: 14px; margin-top: 26px; border-top: 1px solid #231a1b; color: #b1a99b; font-size: .73rem; }
.footer span:first-child { font-weight: 700; letter-spacing: .13em; }
.home-wrap, .game-wrap { width: min(100% - 44px, 1180px); margin: 34px auto 44px; }
.hero { min-height: 535px; isolation: isolate; display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; position: relative; overflow: hidden; padding: clamp(32px, 6.4vw, 86px); border: 1px solid #3e2f30; border-radius: 24px; background: radial-gradient(ellipse at 78% 55%, #685529 0%, #241c1c 36%, #171112 70%, #151010 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .37; background: repeating-linear-gradient(0deg, transparent 0 3px, #100c0c 3px 4px); mask-image: linear-gradient(to right, transparent, black); }
.hero-text { z-index: 1; position: relative; }
.eyebrow { color: var(--gold); letter-spacing: .24em; font-weight: 800; font-size: .72rem; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 23px; border-top: 1px solid var(--gold); }
.hero h1 { margin: 19px 0 22px; font-family: "Arial Narrow", Impact, Haettenschweiler, sans-serif; font-size: clamp(3.3rem, 7.3vw, 7.15rem); font-weight: 900; font-stretch: condensed; line-height: .97; letter-spacing: -.025em; white-space: nowrap; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 430px; color: #dbd8d1; line-height: 1.65; font-size: clamp(.97rem, 1.36vw, 1.12rem); }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions { margin-top: 30px; }
.join-line { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; }
.icon { flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.btn { border: 1px solid transparent; border-radius: 9px; min-height: 46px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; color: #f6edd9; transition: background .18s, border-color .18s, box-shadow .18s; }
.primary { background: var(--gold); color: #241d0c; border-color: #f7d88e; box-shadow: 0 4px 20px #d9a42826; }
.primary:hover:not(:disabled) { background: #ffe099; box-shadow: 0 4px 26px #d9a42855; }
.secondary { background: #1e1717; border-color: #463536; }
.secondary:hover:not(:disabled), .hint-btn:hover:not(:disabled) { border-color: #a08a56; background: #271d1e; }
.plain { background: transparent; color: var(--gold); padding-inline: 0; }
.plain:hover { color: #ffebbc; }
.danger { color: var(--red); }
.full { width: 100%; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 330px; perspective: 1200px; }
.projector-orbit { position: absolute; width: 114%; aspect-ratio: 1; border: 1px solid #ac8e4960; border-radius: 50%; pointer-events: none; }
.orbit-two { width: 143%; border-style: dashed; opacity: .5; }
.clap { width: min(108%, 430px); transform: rotate(-9deg) rotateY(-8deg); filter: drop-shadow(18px 32px 29px #080607bc); position: relative; }
.clap-top { height: 38px; width: 100%; transform: rotate(-10deg); transform-origin: left bottom; border-radius: 8px 8px 3px 3px; background: repeating-linear-gradient(133deg, #bd9e56 0 40px, #251c1d 40px 76px); border: 1px solid #b59854; }
.clap-base { border: 1px solid #9d844b; border-top: 11px solid #a88e52; background: linear-gradient(150deg, #2c2222, #181212 73%); border-radius: 5px 5px 15px 15px; padding: 22px; box-shadow: inset 0 0 0 3px #1d1617; }
.clap-label { color: #dfc076; letter-spacing: .26em; font-size: clamp(.5rem, 1vw, .72rem); font-weight: 800; }
.clap-type { margin: 13px 0 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.clap-type span { aspect-ratio: .95; display: grid; place-items: center; position: relative; border: 1px solid #403132; border-radius: 5px; background: #140f10; font-family: Georgia, serif; font-size: clamp(1.05rem, 3.3vw, 3rem); color: var(--gold); }
.clap-type span:not(:first-child)::after { content: ""; position: absolute; width: 47%; top: 63%; border-bottom: 2px solid #ccb27675; }
.clap-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; border-top: 1px solid #483738; padding-top: 13px; }
.clap-categories div { display: grid; place-items: center; gap: 4px; color: #cfbf9b; font-size: .67rem; }
.clap-categories .icon { color: var(--gold); width: 18px; height: 18px; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 25px 0 2px; }
.feature-strip > div { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 10px 12px; }
.feature-strip > div + div { border-left: 1px solid #302425; }
.feature-strip .icon { color: var(--gold); width: 24px; height: 24px; }
.feature-strip strong, .feature-strip small { display: block; }
.feature-strip small { color: var(--muted); margin-top: 4px; line-height: 1.35; }
.panel, .answer-card, .feedback { background: linear-gradient(150deg, #1c1516, #171112 75%); border: 1px solid var(--border); border-radius: 15px; padding: clamp(17px, 3.5vw, 34px); }
.narrow { max-width: 540px; margin: 46px auto; width: calc(100% - 36px); }
.narrow h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 10px 0; }
.narrow form { margin-top: 24px; display: grid; gap: 17px; }
.back { margin-top: -8px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field span { font-weight: 700; color: #e6e3df; font-size: .87rem; }
input, select { min-height: 46px; width: 100%; border: 1px solid #433334; border-radius: 8px; background: #130e0f; color: #fff4dc; padding: 10px 12px; font-size: 1rem; }
input::placeholder { color: #aaa293; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-wrap { width: min(100% - 44px, 1010px); }
.room-top, .section-top, .round-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.room-top { margin-bottom: 19px; }
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: .8rem; font-weight: 700; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.connection.offline { color: var(--red); }
.lobby-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.invite-panel h1 { font-size: clamp(2rem, 5vw, 3.7rem); }
.invite-panel p { margin-top: 10px; }
.room-code { color: var(--gold); font: 850 clamp(2.15rem, 7vw, 4.3rem)/1.1 ui-monospace, Consolas, monospace; letter-spacing: .10em; margin: 20px 0 15px; }
.invite-panel .settings-grid { margin-top: 25px; }
.room-settings { margin-top: 22px; color: var(--muted); }
.section-top > span { color: var(--muted); }
.player-list, .answer-list { list-style: none; padding: 0; margin: 17px 0; }
.player-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #302526; }
.avatar { display: grid; place-items: center; flex: 0 0 33px; min-height: 33px; font-weight: 800; border-radius: 8px; background: #423822; color: var(--gold); }
.player-name { flex: 1; font-weight: 700; overflow-wrap: anywhere; }
.player-name small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.ready { color: var(--muted); font-size: .77rem; }
.ready.yes { color: var(--green); }
.roster p { margin-top: 12px; }
.bottom-actions { display: flex; gap: 19px; flex-wrap: wrap; margin-top: 14px; }
.round-header h1 { margin-top: 9px; }
.round-header p { margin-top: 9px; }
.round-meta { color: var(--gold); font-weight: 850; letter-spacing: .12em; font-size: .77rem; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.level { border: 1px solid #503d3e; padding: 4px 7px; border-radius: 5px; color: #ffe4a5; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.level.easy { border-color: #594345; color: #f1dda9; }
.level.hard { border-color: #634b4d; color: #ffc1c9; }
.score-tile { display: grid; gap: 3px; align-self: center; min-width: max-content; border: 1px solid #403132; padding: 13px; border-radius: 11px; background: #1d1617; color: var(--gold); }
.score-tile > span { font-size: .65rem; letter-spacing: .11em; font-weight: 800; }
.score-tile strong { font-size: 1.85rem; line-height: 1; }
.score-tile small, .board-points small { color: var(--muted); font-size: .8rem; }
.progress { margin: 21px 0; height: 5px; background: #2c2222; border-radius: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold); }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.answer-card { padding: clamp(15px, 2.35vw, 24px); }
.answer-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.answer-header small { color: var(--muted); font-size: .77rem; }
.category { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.category .icon { color: var(--gold); }
.clue { display: flex; align-items: center; min-height: 2em; margin: 7px 0 10px; color: var(--gold); font: 850 clamp(1.04rem, 3.2vw, 1.7rem) ui-monospace, Consolas, monospace; letter-spacing: .07em; white-space: pre-wrap; overflow-wrap: anywhere; }
.hint-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hint-btn { border-color: #443335; background: #201819; font-size: .81rem; min-height: 44px; padding: 7px 10px; }
.hint-list, .how-list { color: #dad7d0; line-height: 1.48; padding-left: 22px; }
.hint-list { font-size: .87rem; margin: 12px 0 4px; }
.hint-list li + li, .how-list li + li { margin-top: 8px; }
.submit-row { margin-top: 16px; display: flex; justify-content: flex-end; align-items: center; }
.error { color: #ffccd3; background: #2f2324; border: 1px solid #554042; padding: 10px 13px; border-radius: 9px; margin: 8px 0; font-size: .9rem; }
.answer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 0; }
.answer-list li { display: flex; align-items: flex-start; gap: 9px; padding: 10px; background: #161011; border-radius: 8px; }
.answer-list small, .board small { display: block; color: var(--muted); }
.answer-indicator { min-width: 24px; text-align: center; border-radius: 50%; font-weight: 900; }
.answer-indicator.correct { color: var(--green); background: #503d0d; }
.answer-indicator.missed { color: var(--red); background: #2c2122; }
.round-board { margin-top: 15px; }
.board { list-style: none; padding: 0; margin: 13px 0 0; }
.board li { display: flex; align-items: center; gap: 12px; padding: 11px; border-bottom: 1px solid #302526; }
.board li:last-child { border-bottom: 0; }
.board li.winner { background: #261d1d; border: 1px solid #766439; border-radius: 8px; }
.place { color: var(--gold); font-weight: 850; flex: 0 0 21px; }
.rank-label { color: var(--gold); font-weight: 650; font-size: .71rem; }
.board-points { margin-left: auto; white-space: nowrap; font-size: 1.34rem; color: var(--gold); font-weight: 850; }
.board-points small { display: inline; }
.final-head { text-align: center; padding: 23px 0 33px; }
.final-head .eyebrow { justify-content: center; margin: 13px 0 8px; }
.final-head p { margin-top: 10px; }
.trophy { display: inline-grid; place-items: center; color: var(--gold); width: 70px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #9b7e3a; background: #362d18; box-shadow: 0 0 37px #a584382e; }
.trophy .icon { width: 35px; height: 35px; }
.final-actions { margin-top: 19px; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: .86rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #342829; }
td { color: var(--muted); }
.loading { text-align: center; padding: 60px 18px; color: var(--muted); }
dialog { width: min(100% - 28px, 570px); max-height: min(85vh, 730px); overflow: auto; color: #fff5dd; background: #1c1516; border: 1px solid #574143; border-radius: 15px; padding: 21px; }
dialog::backdrop { background: #0a0708d9; }
dialog .section-top { margin-bottom: 12px; }
dialog .actions { margin-top: 13px; }
dialog input { margin-top: 12px; }
.close { padding: 0 12px; font-size: 1.7rem; }
details { border-top: 1px solid #342829; padding: 8px 0; }
summary { color: #f3d899; cursor: pointer; min-height: 44px; align-content: center; }
#toast { position: fixed; z-index: 4; left: 50%; bottom: 25px; max-width: calc(100% - 30px); transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: .18s; border: 1px solid #6b5a32; border-radius: 10px; padding: 11px 18px; background: #312a19; color: #ffe7ae; font-weight: 650; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
  .hero { padding: 35px; min-height: 485px; }
  .hero h1 { font-size: clamp(3.35rem, 8.1vw, 6.28rem); }
  .hero-art { min-height: 260px; }
  .clap-base { padding: 16px; }
  .clap-top { height: 30px; }
}
@media (max-width: 630px) {
  .topinner, .footer, .home-wrap, .game-wrap { width: calc(100% - 28px); }
  .topinner { min-height: 65px; gap: 7px; }
  nav { gap: 4px; }
  .link-button { padding-inline: 5px; font-size: .77rem; }
  .brand { gap: 7px; font-size: .62rem; }
  .brand-mark { width: 33px; }
  .brand-sub { font-size: .5rem; }
  .home-wrap, .game-wrap { margin-top: 19px; }
  .hero { display: block; padding: 30px 19px 20px; border-radius: 17px; }
  .hero h1 { font-size: clamp(2.55rem, 11.2vw, 4.95rem); margin: 15px 0; }
  .hero-art { min-height: 180px; margin-top: 22px; }
  .clap { width: min(72%, 320px); }
  .clap-top { height: 22px; }
  .clap-base { padding: 12px; border-top-width: 6px; }
  .clap-type { margin: 8px 0; }
  .clap-categories { padding-top: 7px; }
  .clap-categories div { font-size: .53rem; }
  .clap-categories .icon { width: 14px; height: 14px; }
  .projector-orbit { max-width: 290px; max-height: 200px; }
  .orbit-two { max-width: 350px; max-height: 230px; }
  .hero-actions { margin-top: 18px; gap: 8px; }
  .hero-actions .btn { padding-inline: 10px; }
  .feature-strip { display: grid; grid-template-columns: 1fr; gap: 0; padding-top: 14px; }
  .feature-strip > div { justify-content: flex-start; padding: 11px 7px; }
  .feature-strip > div + div { border-left: 0; border-top: 1px solid #2c2122; }
  .lobby-grid, .card-grid { grid-template-columns: 1fr; }
  .score-tile { padding: 9px; }
  .score-tile strong { font-size: 1.5rem; }
  .answer-list { grid-template-columns: 1fr; }
  .footer { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Result of a turn: poster and congratulations, or a consolation. */
.verdict { display: grid; justify-items: center; gap: 8px; margin-bottom: 22px; text-align: center; animation: verdict-in .55s ease both; }
.verdict strong { font-size: clamp(1.4rem, 5vw, 2.1rem); }
.verdict.won strong { color: var(--gold); }
.verdict.lost strong { color: #ff9daa; }
.poster { width: min(240px, 70vw); max-height: 360px; object-fit: contain; border-radius: 12px; border: 1px solid #503d3e; box-shadow: 0 18px 45px #000000aa; }
@keyframes verdict-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .verdict { animation: none; } }

.timer { margin-left: auto; align-self: center; min-width: 4.4ch; padding: 10px 14px; border: 1px solid #503d3e; border-radius: 12px; color: var(--gold); font: 850 1.9rem ui-monospace, Consolas, monospace; text-align: center; }
.timer.urgent { color: #ff9daa; border-color: #ff9daa; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .timer.urgent { animation: none; } }

/* Theme: black ground, red for action, gold for emphasis, white for reading. */
:root { --ink: #070405; --panel: #120c0d; --border: #3a2a1a; --gold: #e9c46a; --gold-deep: #b8862f; --crimson: #c4102b; --white: #fffaf2; --muted: #c9bdb6; --green: #f0d283; --red: #ff6b78; background: var(--ink); color: var(--white); }
.topbar { background: #070405; border-bottom: 1px solid #b8862f66; }
.brand, .brand:hover { color: var(--white); }
.brand-mark { background: linear-gradient(150deg, #d11631, #6d0715); border-color: var(--gold); color: #ffe7ac; }
.hero { border-color: #b8862f8c; background: radial-gradient(ellipse at 80% 52%, #8e0b1f 0%, #43060f 34%, #11080a 68%, #070405 100%); box-shadow: 0 30px 80px #0009, inset 0 1px 0 #ffe7ac22; }
.hero h1 { color: var(--white); }
.hero h1 em { background: linear-gradient(180deg, #fff0c4 5%, #e9c46a 50%, #a8741f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #f2e6df; }
.primary { background: linear-gradient(180deg, #d9142f, #9c0a1f); color: var(--white); border-color: var(--gold); box-shadow: 0 6px 24px #c4102b4d; }
.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ee1c39, #b20d25); box-shadow: 0 8px 30px #c4102b80; }
.secondary { background: #120c0d; border-color: #b8862f80; color: var(--white); }
.secondary:hover:not(:disabled), .hint-btn:hover:not(:disabled) { background: #1f1013; border-color: var(--gold); }
.panel, .answer-card, .feedback { background: linear-gradient(155deg, #171011, #0d0909 72%); border: 1px solid #b8862f4d; border-top-color: #e9c46a99; box-shadow: 0 18px 45px #0007; }
.hint-btn { background: #170e10; border-color: #b8862f59; }
input, select { background: #0a0607; border-color: #5a4326; color: var(--white); }
input:focus, select:focus { border-color: var(--gold); }
.progress span { background: linear-gradient(90deg, var(--crimson), var(--gold)); }
.level.easy { border-color: #fffaf266; color: var(--white); }
.level.hard { border-color: var(--crimson); color: #ff8d97; }
.score-tile { background: #140d0e; border-color: #b8862f80; }
.verdict.lost strong, .timer.urgent, .danger { color: var(--red); }
.timer.urgent { border-color: var(--crimson); background: #2a070d; }

/* Creator credit on the home screen. */
.creator { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; padding: 18px; border-top: 1px solid #b8862f59; border-bottom: 1px solid #b8862f59; }
.creator img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 0 0 4px #070405, 0 0 0 5px #c4102b, 0 12px 30px #0009; }
.creator small { display: block; color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.creator strong { display: block; margin-top: 6px; color: var(--white); font: 700 clamp(1.35rem, 4.5vw, 1.8rem) Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.timer { min-width: max-content; }
@media (max-width: 630px) {
  .hero h1 { font-size: clamp(2.2rem, 9.8vw, 4.4rem); }
  .round-header { flex-wrap: wrap; }
  .round-header > div:first-child { flex-basis: 100%; }
  .timer { margin-left: 0; font-size: 1.6rem; }
}

/* ===== Cinema theatre: red curtain, ivory tickets, gold print. No ruled lines. ===== */
:root { --ivory: #fbf1d9; --stub: #a90e24; --print: #26090d; }
body { background: radial-gradient(ellipse at 50% -10%, #3a0710 0, transparent 55%),
  repeating-linear-gradient(90deg, #0b0405 0, #170609 38px, #070304 76px); background-attachment: fixed; }
.topbar, .footer { border: 0; background: transparent; }
.eyebrow { font-size: .95rem; letter-spacing: .04em; }

/* Velvet curtain behind the title */
.hero { border: 2px solid var(--gold); border-radius: 18px; outline: 1px solid #e9c46a66; outline-offset: 6px;
  background: radial-gradient(ellipse at 40% 40%, #b0122b00 0, #14020599 75%),
    repeating-linear-gradient(90deg, #35030a 0, #8f0c20 30px, #5a0715 52px, #26020a 74px); }
.hero::before { display: none; }

/* The ticket on the home screen */
.big-ticket { display: flex; width: min(100%, 430px); transform: rotate(-6deg); color: var(--print); filter: drop-shadow(0 28px 30px #000b); }
.big-ticket-main, .big-ticket-stub { background: radial-gradient(circle at 30% 20%, #fff9e9, #efdcae); }
.big-ticket-main { flex: 1; display: grid; justify-items: center; gap: 9px; padding: 26px 20px; text-align: center; border-radius: 14px 0 0 14px;
  -webkit-mask: radial-gradient(circle at 100% 0, #0000 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, #0000 13px, #000 14px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, #0000 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, #0000 13px, #000 14px) bottom / 100% 51% no-repeat; }
.ticket-top { font-size: .62rem; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: var(--stub); }
.big-ticket strong { font: 900 clamp(2rem, 4.4vw, 3.2rem)/1.2 "Nirmala UI", "Noto Sans Tamil", Latha, sans-serif; color: var(--stub); }
.big-ticket b { font: 900 clamp(1rem, 2vw, 1.35rem) "Arial Narrow", Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.big-ticket dl { display: flex; gap: 26px; margin: 8px 0 0; }
.big-ticket dt { font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: #7a5a33; }
.big-ticket dd { margin: 2px 0 0; font: 800 1.25rem Georgia, serif; }
.big-ticket-stub { display: flex; align-items: center; justify-content: center; gap: 10px; width: 82px; border-left: 3px dotted #a90e2480; border-radius: 0 14px 14px 0;
  -webkit-mask: radial-gradient(circle at 0 0, #0000 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, #0000 13px, #000 14px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, #0000 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, #0000 13px, #000 14px) bottom / 100% 51% no-repeat; }
.big-ticket-stub span { writing-mode: vertical-rl; font-weight: 900; letter-spacing: .26em; text-transform: uppercase; font-size: .75rem; color: var(--stub); }
.big-ticket-stub i { width: 22px; height: 130px; background: repeating-linear-gradient(0deg, var(--print) 0 2px, #0000 2px 4px, var(--print) 4px 8px, #0000 8px 11px); opacity: .85; }

/* Creator and three small ticket stubs */
.creator { border: 0; }
.feature-strip { gap: 18px; }
.feature-strip > div, .feature-strip > div + div { justify-content: flex-start; gap: 16px; padding: 18px 28px; border: 0; color: var(--print); background: linear-gradient(135deg, #fff7e2, #ecd7a4); border-radius: 12px;
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 11px, #000 12px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 11px, #000 12px) right / 51% 100% no-repeat; }
.feature-strip b { font: 900 1.9rem "Arial Narrow", Impact, sans-serif; color: var(--stub); }
.feature-strip small { color: #6d4c34; }

/* Answer cards are tickets: red stub, torn edge, ivory face */
.card-grid { gap: 18px; }
.answer-card { position: relative; padding: 18px 20px 18px 70px; color: var(--print); border: 0; border-radius: 14px; box-shadow: 0 16px 34px #000a;
  background: linear-gradient(90deg, var(--stub) 0 50px, #0000 50px), linear-gradient(150deg, #fff8e6, #f1dfb2); }
.answer-card::before { content: attr(data-stub); position: absolute; left: 0; top: 0; bottom: 0; width: 50px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: center; color: #ffe9b0; font-size: .64rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.answer-card::after { content: ""; position: absolute; left: 49px; top: 0; bottom: 0; border-left: 3px dotted #fbf1d9; }
.answer-card .category { color: var(--print); font: 900 1.05rem Georgia, serif; }
.answer-card .category .icon { display: none; }
.answer-card .answer-header small { color: #7a5a33; font-weight: 700; }
.answer-card .clue { color: var(--stub); font: 900 clamp(2rem, 5vw, 2.7rem) Georgia, serif; }
.answer-card input { background: #fffdf6; color: var(--print); border: 2px solid #c9a45c; }
.answer-card input::placeholder { color: #8f7a62; }
.answer-card input:focus { border-color: var(--stub); }
.answer-card .hint-list { color: #3c1d1d; font-weight: 600; }
.answer-card .hint-btn { background: #0000; color: var(--stub); border: 2px dashed #a90e24; }
.answer-card .hint-btn:hover:not(:disabled) { background: #a90e2414; }
.answer-card button:focus-visible, .answer-card input:focus-visible { outline-color: var(--stub); }

/* Panels get a double gold frame; rows are separated by shade, not rules */
.panel, .feedback { border: 2px solid #b8862f; outline: 1px solid #e9c46a55; outline-offset: -8px; }
.player-list li, .board li, th, td, details { border: 0; }
.player-list li, .board li { background: #ffffff08; border-radius: 9px; padding-inline: 12px; margin-bottom: 7px; }
.board li.winner { background: #3d2a10; }
tbody tr:nth-child(odd) { background: #ffffff08; }
details { background: #ffffff08; border-radius: 9px; padding: 6px 12px; margin-bottom: 7px; }

/* Rounds as theatre seats */
.progress { display: flex; flex-wrap: wrap; gap: 7px; height: auto; background: none; overflow: visible; border-radius: 0; }
.progress span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px 10px 4px 4px; background: #23090e; border: 1px solid #6b1a27; color: #c79a9f; font-size: .7rem; font-weight: 800; }
.progress span.done { background: linear-gradient(180deg, #8d0d20, #55060f); color: #ffd9a0; }
.progress span.now { background: linear-gradient(180deg, #ffe39c, #c9962f); border-color: #fff0c4; color: var(--print); }
.score-tile, .timer { border: 2px dashed #e9c46a; background: #1b080b; }

@media (max-width: 630px) {
  .hero-art { min-height: 220px; }
  .big-ticket { width: min(100%, 330px); }
  .big-ticket-main { padding: 18px 10px; }
  .big-ticket dl { gap: 16px; }
  .big-ticket-stub { width: 58px; gap: 5px; }
  .big-ticket-stub i { width: 14px; height: 100px; }
  .feature-strip { gap: 10px; }
  .answer-card { padding-left: 64px; }
}
.big-ticket strong { font-size: clamp(1.4rem, 2.7vw, 2.3rem); white-space: nowrap; }
.big-ticket dd { white-space: nowrap; }
.big-ticket-main { padding-inline: 12px; }
.big-ticket-stub { width: 66px; gap: 6px; }
.big-ticket-stub i { width: 17px; }
@media (min-width: 631px) { .hero h1 { font-size: clamp(3rem, 5.8vw, 5.7rem); } }
@media (max-width: 630px) { .big-ticket-stub { width: 54px; } }

/* The title sizes itself to its own column, so it can never run into the ticket. */
.eyebrow { font-size: .75rem; letter-spacing: .24em; }
.big-ticket strong { font: 900 clamp(1.3rem, 2.5vw, 2.2rem)/1.2 Georgia, serif; text-transform: uppercase; letter-spacing: .02em; }
.hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 40px; padding-inline: clamp(24px, 4.5vw, 70px); }
.hero-text { min-width: 0; container-type: inline-size; }
.hero h1 { font-size: min(10.6cqi, 5.8rem); }
.hero-art { min-width: 0; padding-inline: 12px; }
@media (max-width: 960px) {
  .hero { display: block; }
  .hero-art { margin-top: 34px; min-height: 230px; }
  .big-ticket { width: min(100%, 400px); }
  .big-ticket strong { font-size: clamp(1.3rem, 6vw, 2.2rem); }
}
@media (max-width: 400px) { .big-ticket strong { font-size: 1.25rem; } }

/* Readable labels only: no tiny spaced capitals. */
.brand { gap: 12px; letter-spacing: 0; }
.brand-mark { width: 46px; height: 46px; flex: 0 0 auto; background: none; border: 0; border-radius: 50%; filter: drop-shadow(0 4px 12px #c4102b66); }
.brand-name { font: 700 1.35rem/1.1 Georgia, "Times New Roman", serif; color: var(--white); }
.brand-name em { font-style: normal; color: var(--gold); }
.round-meta { font-size: 1.05rem; letter-spacing: 0; }
.level { font-size: .9rem; letter-spacing: 0; text-transform: capitalize; padding: 4px 10px; }
.score-tile > span { font-size: 1rem; letter-spacing: 0; }
.creator small { font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.feature-strip small { font-size: .95rem; }
.feature-strip strong { font-size: 1.1rem; }
.footer { font-size: .9rem; justify-content: center; text-align: center; padding-block: 14px; }
.final-head h1 { margin-top: 14px; }
.room-top { justify-content: flex-end; margin-bottom: 8px; }
.room-top:empty { display: none; }
.answer-card { padding-left: 78px; background: linear-gradient(90deg, var(--stub) 0 58px, #0000 58px), linear-gradient(150deg, #fff8e6, #f1dfb2); }
.answer-card::before { width: 58px; font: 700 1.25rem Georgia, serif; letter-spacing: .02em; text-transform: none; }
.answer-card::after { left: 57px; }
.answer-card .category { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.answer-card .answer-header { justify-content: flex-end; }
.answer-card .answer-header small { font-size: .95rem; }
.answer-card .hint-btn { font-size: .95rem; }
.answer-list small, .board small, .player-name small, .ready, .rank-label { font-size: .9rem; }
.connection { font-size: .95rem; }
.big-ticket-main { align-content: center; gap: 14px; min-height: 210px; }
.big-ticket b { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.big-ticket-stub span { font-size: .95rem; letter-spacing: .12em; }
@media (max-width: 630px) {
  .topinner { flex-wrap: wrap; justify-content: center; padding-block: 10px; row-gap: 2px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .link-button { font-size: .95rem; padding-inline: 10px; }
  .footer { font-size: .8rem; }
  .big-ticket-main { min-height: 160px; }
}
.footer span:first-child { font-weight: 400; letter-spacing: 0; }

/* Two sans serifs (SIL Open Font Licence): Bebas Neue for titles, Montserrat for reading. */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/fonts/bebas.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --text: "Montserrat", system-ui, sans-serif; --title: "Bebas Neue", "Montserrat", sans-serif; font-family: var(--text); }
body, button, input, select, .creator small, .big-ticket-stub span { font-family: var(--text); }
h1, h2, .hero h1, .brand-name, .big-ticket strong, .big-ticket b, .answer-card .clue, .answer-card::before, .timer, .score-tile strong,
.feature-strip b, .verdict strong, .room-code, .creator strong, .board-points { font-family: var(--title); font-weight: 400; font-stretch: normal; }
h1 { letter-spacing: .01em; line-height: 1; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: .02em; }
.brand-name { font-size: 1.9rem; letter-spacing: .03em; line-height: 1; }
.hero h1 { font-size: min(18cqi, 8.6rem); line-height: .92; letter-spacing: .012em; }
.big-ticket strong { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: .04em; line-height: 1; }
.big-ticket b { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: .08em; }
.answer-card .clue { font-size: clamp(2.8rem, 6vw, 3.6rem); }
.answer-card::before { font-size: 1.7rem; letter-spacing: .08em; }
.timer { font-size: 2.5rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.score-tile strong { font-size: 2.4rem; }
.feature-strip b { font-size: 2.7rem; }
.verdict strong { font-size: clamp(2.2rem, 6vw, 3.2rem); letter-spacing: .03em; }
.creator strong { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: .04em; }
@media (max-width: 630px) {
  .brand-name { font-size: 1.65rem; }
  .hero h1 { font-size: min(21cqi, 6.4rem); }
  .big-ticket strong { font-size: clamp(2rem, 10vw, 3rem); }
  .timer { font-size: 2rem; }
}

/* The home title already names the game, so the header shows the reel alone there. */
body[data-page="home"] .brand-name { display: none; }
.big-ticket strong { white-space: nowrap; line-height: .95; font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
