/* Styles for the games, on the big screen (.tv) and phones (.phone). */

/* ---------- Shared ---------- */
.gameview, .phgameview { height: 100%; }
.wf-side { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
.wf-side .timer { align-self: center; }
.endnote { text-align: center; font-weight: 800; font-size: 28px; color: var(--sky); background: rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 14px; }
.wf-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.1rem; }
.wf-head span.low, .dd-time.low { color: var(--coral); animation: pulse 1s infinite; }
.wf-chip { display: inline-block; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.5px; }
.wf-chip.got { background: var(--mint); color: #062F27; text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- Word Finder ---------- */
.wf-tv { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 640px; gap: 40px; padding: 30px 50px 120px; }
.wf-words h2 { font-size: 52px; margin-bottom: 20px; }
.wf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.wf-word { background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.wf-word b { font-family: var(--head); font-size: 38px; letter-spacing: 2px; }
.wf-word.hit { background: rgba(31, 199, 164, 0.22); }
.finders { display: flex; gap: 4px; flex-wrap: wrap; }
.finders .av.xs { width: 34px; height: 34px; }

.wf-phone { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 30px; max-width: 560px; margin: 0 auto; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.wf-wrap { position: relative; overflow: hidden; touch-action: none; border-radius: 16px; background: var(--cream); aspect-ratio: 1; width: 100%; user-select: none; -webkit-user-select: none; }
.wf-grid { display: grid; width: 100%; height: 100%; transform-origin: 0 0; }
.wf-cell { display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: var(--ink); font-size: clamp(11px, 4.2vw, 26px); border-radius: 30%; }
.wf-cell[data-f="0"] { background: #FFE08A; }
.wf-cell[data-f="1"] { background: #9FEBDA; }
.wf-cell[data-f="2"] { background: #FFC0C0; }
.wf-cell[data-f="3"] { background: #BFE3FF; }
.wf-cell[data-f="4"] { background: #FFC4E1; }
.wf-cell[data-f="5"] { background: #D9C8FF; }
.wf-cell.sel { background: var(--grape-light) !important; color: #fff; }
.wf-zoom { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }

/* ---------- Cross Sums ---------- */
.cs-tv { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 640px; gap: 40px; padding: 30px 50px 120px; }
.cs-puzzle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cs-grid { display: grid; gap: 6px; }
.cs-grid.tvgrid { width: 760px; }
.cs-cell { aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--cream); color: var(--ink); font-family: var(--head); font-weight: 800; display: grid; place-items: center; position: relative; padding: 0; cursor: pointer; box-shadow: 0 4px 0 #CBBDF2; }
.tvgrid .cs-cell { font-size: 54px; cursor: default; }
.cs-total { display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: var(--yellow); border-radius: 14px; background: rgba(255, 255, 255, 0.08); aspect-ratio: 1; }
.tvgrid .cs-total { font-size: 44px; }
.cs-total.done { background: var(--mint); color: #062F27; }
.cs-phone { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 30px; max-width: 560px; margin: 0 auto; }
.phonegrid { width: 100%; gap: 5px; }
.phonegrid .cs-cell { font-size: clamp(16px, 6vw, 34px); border-radius: 12px; touch-action: manipulation; }
.phonegrid .cs-total { font-size: clamp(13px, 4.5vw, 24px); border-radius: 12px; }
.cs-cell.x { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.45); box-shadow: none; }
.cs-cell.x::after { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 4px; border-radius: 4px; background: var(--coral); transform: rotate(-35deg); animation: pop 0.2s; }
.cs-cell.bad { background: var(--coral); color: #fff; animation: shake 0.4s; }

/* ---------- Letter Rush ---------- */
.lr-tv { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 640px; gap: 40px; padding: 30px 50px 120px; align-items: center; }
.lr-board { display: grid; gap: 12px; }
.lr-tv .lr-board { width: 780px; justify-self: center; }
.lr-tile { aspect-ratio: 1; background: var(--cream); color: var(--ink); border-radius: 18px; display: grid; place-items: center; font-family: var(--head); font-weight: 800; box-shadow: 0 6px 0 #CBBDF2; }
.lr-tv .lr-tile { font-size: 84px; }
.lr-phone { display: flex; flex-direction: column; gap: 10px; padding: 10px 14px 30px; max-width: 560px; margin: 0 auto; }
.lr-current { text-align: center; font-family: var(--head); font-weight: 800; font-size: 2rem; min-height: 2.6rem; letter-spacing: 2px; }
.lr-current.good { color: var(--mint); }
.lr-current.bad { color: var(--coral); font-size: 1.3rem; letter-spacing: 0; }
.lr-wrap { touch-action: none; user-select: none; -webkit-user-select: none; padding: 4px; }
.phoneboard { gap: 8px; }
.phoneboard .lr-tile { font-size: clamp(22px, 9vw, 46px); border-radius: 16px; }
.phoneboard .lr-tile.sel { background: var(--yellow); transform: scale(0.94); box-shadow: 0 2px 0 #C98F00; }
.lr-found { display: flex; flex-wrap: wrap; gap: 5px; }
.lr-found .wf-chip.got { text-decoration: none; }

/* ---------- Imposter ---------- */
.imp-tv { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 20px 60px 130px; }
.imp-center { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; height: 100%; justify-content: center; }
.imp-center h1 { font-size: 90px; color: var(--yellow); text-shadow: 0 6px 0 var(--grape-deep); }
.imp-emoji { font-size: 130px; animation: bob 2s infinite ease-in-out; }
.imp-sub { font-size: 36px; font-weight: 800; margin: 0; }
.imp-count { font-size: 34px; font-weight: 800; color: var(--sky); }
.imp-ready { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 10px; }
.imp-pl { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 14px 16px; min-width: 150px; opacity: 0.6; }
.imp-pl b { font-size: 28px; }
.imp-pl span { font-size: 22px; font-weight: 800; color: var(--muted); }
.imp-pl.ok { opacity: 1; background: rgba(31, 199, 164, 0.25); }
.imp-pl.ok span { color: var(--mint); }
.imp-clues { display: grid; grid-template-columns: 1fr 700px; gap: 40px; height: 100%; align-items: center; }
.imp-speaker { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.imp-speaker small { font-size: 32px; font-weight: 800; color: var(--sky); text-transform: uppercase; letter-spacing: 3px; }
.imp-speaker h1 { font-size: 96px; color: var(--yellow); }
.imp-speaker p { font-size: 38px; font-weight: 800; margin: 0; }
.imp-bigav .av.xl { width: 260px; height: 260px; animation: bob 2s infinite ease-in-out; }
.imp-side { display: flex; flex-direction: column; gap: 20px; }
.imp-order { display: flex; flex-wrap: wrap; gap: 10px; }
.imp-order span { opacity: 0.45; border-radius: 50%; }
.imp-order span.now { opacity: 1; box-shadow: 0 0 0 6px var(--yellow); }
.imp-order .av.sm { width: 64px; height: 64px; }
.imp-cluelist { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow: hidden; }
.imp-cluelist.wide { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 1600px; }
.imp-clue { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 10px 16px; font-size: 30px; }
.imp-clue b { font-weight: 800; color: var(--muted); }
.imp-clue span { font-family: var(--head); font-weight: 800; color: var(--white); }
.imp-question { background: var(--cream); color: var(--ink); border-radius: 26px; padding: 20px 34px; font-family: var(--head); font-weight: 800; font-size: 46px; max-width: 1500px; box-shadow: var(--shadow); }
.imp-question small { display: block; font-family: var(--body); font-size: 24px; color: #6A5A9A; text-transform: uppercase; letter-spacing: 2px; }
.imp-question small + * { margin-top: 0; }
.imp-timer { position: absolute; top: 30px; right: 60px; }
.imp-timer.inline { position: static; display: inline-block; vertical-align: middle; transform: scale(0.7); }
.imp-result { display: flex; flex-direction: column; align-items: center; gap: 22px; height: 100%; justify-content: center; text-align: center; }
.imp-result h1 { font-size: 72px; color: var(--yellow); max-width: 1700px; }
.imp-bars { display: flex; flex-direction: column; gap: 10px; width: 1100px; }
.imp-bar { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 800; background: rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 8px 16px; position: relative; }
.imp-bar b { width: 220px; text-align: left; }
.imp-bar .track { flex: 1; height: 16px; border-radius: 99px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.imp-bar .track i { display: block; height: 100%; background: var(--sky); animation: grow 1.2s both; }
.imp-bar em { font-style: normal; font-family: var(--head); width: 40px; }
.imp-bar.caught { background: rgba(255, 201, 60, 0.2); }
.stamp { position: absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%) rotate(-8deg); white-space: nowrap; font-family: var(--head); font-weight: 800; font-size: 34px; padding: 4px 16px; border-radius: 12px; border: 5px solid; animation: pop 0.4s 0.8s both; }
.stamp.bad { color: var(--coral); border-color: var(--coral); background: #fff; }
.stamp.good { color: var(--mint); border-color: var(--mint); background: #fff; }
.imp-reveal { font-size: 38px; font-weight: 800; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.imp-reveal.small { font-size: 28px; }
.imp-word { display: flex; flex-direction: column; align-items: center; background: var(--cream); color: var(--ink); border-radius: 26px; padding: 16px 40px; box-shadow: var(--shadow); }
.imp-word small { font-size: 26px; font-weight: 800; color: #6A5A9A; }
.imp-word b { font-family: var(--head); font-size: 80px; line-height: 1.1; }

.imp-phone { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 40px; max-width: 560px; margin: 0 auto; }
.secret-card { background: var(--cream); color: var(--ink); border-radius: 26px; padding: 26px 20px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: pop 0.4s; }
.secret-card small { font-weight: 800; color: #6A5A9A; text-transform: uppercase; letter-spacing: 1.5px; }
.secret-card .sw { font-family: var(--head); font-weight: 800; font-size: clamp(36px, 12vw, 60px); line-height: 1.05; color: var(--grape); word-break: break-word; }
.secret-card .se { font-size: 90px; line-height: 1; }
.secret-card .sq { font-family: var(--head); font-weight: 800; font-size: 1.6rem; line-height: 1.2; color: var(--grape); }
.secret-card p { margin: 0; font-weight: 700; }
.secret-card.imp { background: var(--coral); color: #3A0808; }
.secret-card.imp h2 { font-size: 2rem; }
.secret-card .hint { background: #fff; color: var(--ink); border-radius: 14px; padding: 8px 14px; font-weight: 800; }
.imp-phone .imp-cluelist { max-height: none; }
.imp-phone .imp-clue { font-size: 1rem; padding: 8px 12px; }
.imp-phone .imp-question.small { font-size: 1.2rem; padding: 14px 16px; }
.imp-phone .imp-question.small small { font-size: 0.75rem; }
.votegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.votebtn { border: 0; background: rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; cursor: pointer; }
.votebtn.on { background: var(--coral); color: #3A0808; box-shadow: 0 0 0 4px #fff; }
.hostskip { align-self: center; margin-top: 10px; }

/* ---------- Doodle Dash ---------- */
.dd-tv { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 420px 840px 1fr; gap: 36px; padding: 26px 44px 120px; align-items: start; }
.dd-left { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.dd-drawer { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dd-drawer .av.xl { width: 170px; height: 170px; }
.dd-drawer b { font-family: var(--head); font-size: 50px; line-height: 1; }
.dd-drawer span { font-size: 30px; font-weight: 800; color: var(--sky); }
.dd-card { font-family: var(--head); font-weight: 800; font-size: 32px; padding: 8px 22px; border-radius: 999px; color: var(--ink); }
.lvl1 { background: var(--mint); } .lvl2 { background: var(--sky); } .lvl3 { background: var(--yellow); } .lvl4 { background: var(--coral); }
.dd-turn { font-size: 26px; font-weight: 800; color: var(--muted); }
.dd-canvaswrap { position: relative; width: 840px; height: 840px; }
.dd-tv .dd-canvas { height: 840px; }
.dd-canvas { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 26px; display: block; box-shadow: var(--shadow); touch-action: none; }
.dd-overlay { position: absolute; left: 0; right: 0; bottom: -10px; display: flex; justify-content: center; pointer-events: none; }
.dd-blanks { font-family: var(--head); font-weight: 800; font-size: 70px; letter-spacing: 14px; background: var(--grape-deep); padding: 4px 30px; border-radius: 22px; white-space: pre; }
.dd-reveal { position: absolute; bottom: 280px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--yellow); color: var(--ink); padding: 20px 40px; border-radius: 30px; box-shadow: 0 10px 0 #C98F00; }
.dd-reveal small { font-size: 26px; font-weight: 800; }
.dd-reveal b { font-family: var(--head); font-size: 80px; line-height: 1; }
.dd-reveal span { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dd-right { display: flex; flex-direction: column; gap: 20px; }
.dd-right .sname { flex-basis: 150px; }
.dd-feed { display: flex; flex-direction: column; gap: 8px; }
.dd-guess { font-size: 26px; font-weight: 700; background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 6px 12px; display: flex; align-items: center; gap: 8px; animation: pop 0.3s; }
.dd-guess b { color: var(--muted); }

.dd-phone { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 30px; max-width: 560px; margin: 0 auto; }
.dd-drawhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dd-drawhead small { display: block; font-weight: 800; color: var(--muted); font-size: 0.85rem; }
.dd-drawhead b { font-family: var(--head); font-size: 1.6rem; line-height: 1.05; }
.dd-drawhead b.blanks { letter-spacing: 6px; white-space: pre; }
.dd-time { font-family: var(--head); font-weight: 800; font-size: 1.6rem; }
.dd-phone .dd-canvas { border-radius: 18px; }
.dd-canvas.pad { box-shadow: 0 0 0 4px var(--yellow), var(--shadow); }
.dd-tools { display: flex; flex-direction: column; gap: 8px; }
.dd-colours { display: flex; gap: 6px; justify-content: space-between; }
.dd-col { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.5); cursor: pointer; }
.dd-col.on { border-color: var(--yellow); transform: scale(1.18); box-shadow: 0 0 0 2px var(--grape-deep); }
.dd-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.dd-btns .btn { flex: 1; }
.dd-size.on { background: var(--yellow); color: var(--ink); }
.dd-cards { display: flex; flex-direction: column; gap: 10px; }
.dd-pick { border: 0; border-radius: 20px; padding: 14px; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); text-align: left; }
.dd-pick small { font-weight: 800; }
.dd-pick b { font-family: var(--head); font-size: 1.7rem; line-height: 1.1; }
.dd-pick[disabled] { opacity: 0.5; }
.dd-pick.on { opacity: 1; box-shadow: 0 0 0 4px #fff; }
.dd-close { text-align: center; background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.4rem; border-radius: 16px; padding: 6px; animation: pop 0.3s; }
