/* Tovo Party (tovo.hohl.dev): the app's desert-scrap comic look. Dark brown and bone, the app's yellow,
   thick ink outlines, plates with cut corners (Plate in ContentView.swift), yellow heading tabs (PanelTab). */

:root {
	--ink: #0b0806; --yel: #f7c531; --bone: #f1e6cf; --blood: #c8321e; --rust: #b4561f; --cyan: #34d6e3;
	--bg: #1f140c; --bg-deep: #160e08; --surface: #170f09; --surface-2: #2b1d12;
	--line: #3b2a1c; --line-strong: #5a412b;
	--text: #f1e6cf; --text-2: #e2d4b8; --muted: #b5a385;
	--panel: #120c08; --panel-2: #2a1c12;
	--display: "Barlow Condensed", sans-serif;
}
:root[data-theme="light"] {
	--bg: #f1e6cf; --bg-deep: #e7d9bc; --surface: #f8f0de; --surface-2: #e7d9bc;
	--line: #d3c19d; --line-strong: #bba67d;
	--text: #1f140c; --text-2: #3a2a1c; --muted: #6b5a43;
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #f1e6cf; --bg-deep: #e7d9bc; --surface: #f8f0de; --surface-2: #e7d9bc;
		--line: #d3c19d; --line-strong: #bba67d;
		--text: #1f140c; --text-2: #3a2a1c; --muted: #6b5a43;
	}
}

/* sand grain on the page, like the desert floor under the truck */
body { background-image: radial-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1.2px); background-size: 7px 7px; }

/* type: heavy, leaning, outlined headings like the app's InkText */
.tv h1, .tv h2, .tv-h { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.tv h1 { color: var(--yel); font-size: clamp(2.6rem, 7vw, 5rem); margin: .1em 0 .3em; max-width: 15ch;
	text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 6px 7px 0 var(--ink); }
.tv h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0 0 .35em; }
.tv h2 em { font-style: italic; color: var(--accent); }
.tv h3 { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.5rem; line-height: 1; margin: 0 0 .35em; }
.tv .eyebrow { display: inline-block; font-style: italic; color: var(--ink); background: var(--yel); padding: .18em .7em .14em; letter-spacing: .08em;
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }

/* buttons like the app's web page: yellow, ink outline, a foot that presses down */
.tv .btn, .tv .wp-block-button__link, .tv-btn { background: var(--yel); color: var(--ink); border: 3px solid var(--ink); border-radius: 9px; box-shadow: 0 4px 0 var(--ink); font-style: italic; font-weight: 700; }
.tv .btn:hover, .tv .wp-block-button__link:hover, .tv-btn:hover { background: var(--bone); color: var(--ink); }
.tv .btn:active, .tv-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tv .btn.is-soon { background: var(--panel); color: var(--bone); box-shadow: 0 4px 0 var(--ink); }

/* header: wordmark */
.brand.is-logo img { height: 46px; width: auto; border-radius: 0; margin-block: -6px; }
.brand-wrap:has(.is-logo) { display: flex; align-items: center; }
.brand-wrap:has(.is-logo) .brand-by { display: none; }
.tv-nd .tv-nd-card { width: 44px; height: auto; border-radius: 6px; border: 2px solid var(--ink); flex: none; }

/* ---------- plates: dark panels with two big cut corners and two nicks, ink edge ---------- */
.tv-plate { --c: 22px; --n: 7px; --edge: 3px; --fill: var(--panel); position: relative; isolation: isolate; color: var(--bone); padding: clamp(18px, 3vw, 28px);
	clip-path: polygon(var(--c) 0, calc(100% - var(--n)) 0, 100% var(--n), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--n) 100%, 0 calc(100% - var(--n)), 0 var(--c)); background: var(--ink); }
.tv-plate::before { content: ""; position: absolute; inset: var(--edge); z-index: -1; background: var(--fill);
	clip-path: polygon(calc(var(--c) - 1px) 0, calc(100% - var(--n)) 0, 100% var(--n), 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, var(--n) 100%, 0 calc(100% - var(--n)), 0 calc(var(--c) - 1px)); }
.tv-plate::after { content: ""; position: absolute; inset: var(--edge); z-index: -1; pointer-events: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07); }
.tv-plate.is-yellow { --fill: var(--yel); color: var(--ink); }
.tv-plate.is-bone { --fill: var(--bone); color: var(--ink); }
.tv-plate h3 { color: var(--yel); }
.tv-plate.is-yellow h3, .tv-plate.is-bone h3 { color: var(--ink); }
.tv-plate p { margin: 0; color: inherit; opacity: .92; }
/* yellow heading tab on top of a plate (PanelTab) */
.tv-tab { display: inline-flex; align-items: center; gap: .4em; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: .95rem; letter-spacing: .05em;
	background: var(--yel); color: var(--ink); padding: .2em .8em .15em; border: 3px solid var(--ink); border-radius: 6px; margin-bottom: 12px; }
.tv-tab svg { width: 1em; height: 1em; }

/* hazard stripe (the fuse edge of the app) */
.tv-hazard { height: 12px; border-block: 3px solid var(--ink); background: repeating-linear-gradient(-45deg, var(--yel) 0 14px, var(--ink) 14px 28px); }

/* ---------- the big screen: a TV with the app's own table clip ---------- */
.tv-screen { position: relative; margin: 0; }
.tv-screen-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: clamp(6px, 1vw, 12px) solid #0d0d0d; border-radius: 14px; box-shadow: 0 0 0 3px var(--ink), 0 30px 60px rgba(0, 0, 0, .45); overflow: hidden; }
.tv-screen-frame video, .tv-screen-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv-screen::after { content: ""; display: block; width: 26%; height: 14px; margin: 0 auto; background: #0d0d0d; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; }
.tv-screen figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.tv-stage { position: relative; }
.tv-stage .tv-phone { position: absolute; right: -2%; bottom: -8%; width: 23%; }

/* a phone in front of the TV (the controller) */
.tv-phone { position: relative; aspect-ratio: 9 / 19.5; background: #0d0d0d; border-radius: 18% / 8.5%; padding: 3.2%; box-shadow: 0 0 0 3px var(--ink), 0 24px 40px rgba(0, 0, 0, .5); transform: rotate(4deg); }
.tv-phone > * { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15% / 7%; background: var(--panel); }

/* hero */
.tv-hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px); border-bottom: 0; }
.tv-hero::before { display: none; }
.tv-hero .lead { max-width: 34ch; }
@media (min-width: 782px) {
	.tv-hero .hero-grid > .wp-block-column:first-child { flex: 0 0 40% !important; }
	.tv-hero .hero-grid > .wp-block-column:last-child { flex: 1 1 60% !important; }
}
@media (max-width: 781px) { .tv-hero .hero-grid > .wp-block-column { flex-basis: 100% !important; } .tv h1 { font-size: clamp(2.2rem, 10vw, 3rem); } }
.tv-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
@media (min-width: 782px) { .tv-hero .tv-stage, .tv-hero .tv-screen { margin-right: calc(-1 * clamp(0px, 3vw, 40px)); } }
.tv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.tv-chips li { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .9rem; padding: .35em .75em; border: 2px solid var(--line-strong); border-radius: 999px; }
.tv-chips svg { width: 1.1em; height: 1.1em; color: var(--accent); }

/* ---------- three steps: screen, join, play ---------- */
.tv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); counter-reset: step; }
.tv-step { padding-top: 0; }
.tv-step-pic { margin: 0 calc(-1 * clamp(18px, 3vw, 28px)) 16px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); border-bottom: 3px solid var(--ink); position: relative; }
.tv-step-pic > img, .tv-step-pic > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-step .tv-tab::before { counter-increment: step; content: counter(step); }
@media (max-width: 860px) { .tv-steps { grid-template-columns: 1fr; } }

/* ---------- game cards ---------- */
.tv-games { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2vw, 22px); }
.tv-game { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.tv-game-card { position: relative; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tv-game-card img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.tv-game:nth-child(odd) .tv-game-card { transform: rotate(-2.5deg); }
.tv-game:nth-child(even) .tv-game-card { transform: rotate(2deg); }
.tv-game:hover .tv-game-card, .tv-game:focus-visible .tv-game-card { transform: translateY(-10px) rotate(0) scale(1.04); }
.tv-game b { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 1.45rem; line-height: 1; margin-top: 14px; }
.tv-game small { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.tv-free { display: inline-block; align-self: flex-start; margin-top: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2em .6em; border-radius: 5px; border: 2px solid var(--ink); background: var(--bone); color: var(--ink); }
.tv-free.is-premium { background: var(--yel); }
@media (max-width: 1000px) { .tv-games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .tv-games { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sticker points (icons are own SVG) ---------- */
.tv-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.tv-points li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.tv-points .tv-ico { width: 52px; height: 52px; padding: 11px; box-sizing: border-box; border-radius: 12px; background: var(--yel); color: var(--ink); border: 3px solid var(--ink); transform: rotate(-4deg); }
.tv-points li:nth-child(even) .tv-ico { transform: rotate(3deg); }
.tv-points b { display: block; font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; margin-bottom: 4px; }
.tv-points span { color: var(--text-2); }

/* ---------- split: what the TV shows, what only your phone knows ---------- */
.tv-split { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; }
.tv-split .tv-phone { max-width: 250px; margin-inline: auto; }
@media (max-width: 820px) { .tv-split { grid-template-columns: 1fr; } }

/* ---------- rules: comic panels from the app's rules sheet ---------- */
.tv-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 26px); }
.tv-rule { display: flex; flex-direction: column; }
.tv-rule-pic { margin: 0 0 14px; border: 3px solid var(--ink); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); background: var(--panel-2); overflow: hidden; }
.tv-rule-pic > img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.tv-rule:hover .tv-rule-pic > img { transform: scale(1.05) rotate(-1deg); }
.tv-rule h3 { text-align: center; }
.tv-rule p { text-align: center; font-weight: 600; }
.tv-rule .tv-tab { align-self: flex-start; }
@media (max-width: 960px) { .tv-rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tv-rules { grid-template-columns: 1fr; } }
/* panels pop in when they scroll into view (tovo.js) */
.tv-pop { opacity: 0; transform: translateY(26px) rotate(-1.5deg) scale(.96); transition: opacity .45s, transform .55s cubic-bezier(.3, 1.6, .5, 1); }
.tv-pop.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tv-pop { opacity: 1; transform: none; transition: none; } }

/* ---------- the bid track: a red marker die hops along the board ---------- */
.tv-track { position: relative; }
.tv-track img.tv-board { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 8px; }
.tv-marker { position: absolute; width: 6.2%; aspect-ratio: 1; margin: -3.1% 0 0 -3.1%; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .5)); transition: left .5s cubic-bezier(.3, 1.4, .5, 1), top .5s cubic-bezier(.3, 1.4, .5, 1); }
.tv-marker img { width: 100%; height: 100%; animation: tv-hop .5s; }
.tv-bidcall { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-family: var(--display); font-style: italic; text-transform: uppercase; color: #ffb028;
	background: #1a1410; border: 3px solid var(--ink); border-radius: 8px; padding: .4em .9em; min-width: 40%; text-shadow: 0 0 8px rgba(255, 150, 20, .7); }
.tv-bidcall b { display: block; font-size: clamp(1.4rem, 3.4vw, 2.4rem); line-height: 1; }
.tv-bidcall small { font-size: clamp(.7rem, 1.4vw, .95rem); letter-spacing: .08em; }
@keyframes tv-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-40%) rotate(12deg); } 100% { transform: none; } }

/* ---------- fact table of a game ---------- */
.tv-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 1.4rem 0 0; }
.tv-facts div { border: 2px solid var(--line-strong); border-radius: 10px; padding: .55em .7em; }
.tv-facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tv-facts dd { margin: 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
@media (max-width: 600px) { .tv-facts { grid-template-columns: repeat(2, 1fr); } }

/* details list of a game's rules */
.tv-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tv-list li { position: relative; padding-left: 34px; }
.tv-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 5px; background: var(--yel); border: 2px solid var(--ink); transform: rotate(-6deg); }

.tv-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .tv-more { grid-template-columns: repeat(2, 1fr); } }
.tv h1 .tv-h1-sub { display: block; font-size: .42em; color: var(--bone); margin-top: .25em; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 3px 4px 0 var(--ink); }
:root[data-theme="light"] .tv h1 .tv-h1-sub { color: var(--text); text-shadow: none; }

/* Premium: plates side by side, the card on yellow gets an ink tab */
.tv-prem { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.tv-plate.is-yellow .tv-tab { background: var(--ink); color: var(--yel); border-color: var(--ink); }
@media (max-width: 640px) { .tv-prem { grid-template-columns: 1fr; } }
/* the five game cards fanned out like on the app's Premium card */
.tv-fan { position: relative; margin-inline: auto !important; width: min(520px, 92%); height: clamp(150px, 22vw, 240px); max-width: 520px; margin: 0 0 clamp(24px, 4vw, 40px); }
.tv-fan span { position: absolute; left: calc(var(--i) * 15%); bottom: 0; width: 30%; transform-origin: 50% 120%; transform: rotate(calc((var(--i) - 2) * 9deg)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tv-fan span img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.tv-fan:hover span { transform: rotate(calc((var(--i) - 2) * 12deg)) translateY(-8px); }

/* ---------- animated scenes (_src/tovo/scenes.py): app pieces on the app's floor ---------- */
.tvs { position: relative; width: 100%; overflow: hidden; container-type: inline-size; background: #4d5a2c; }
.tvs-floor { background: url(../img/tovo/crate-floor.webp) center / 60% repeat, #4d5a2c; }
.tvs-floor::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(closest-side, transparent 55%, rgba(11, 8, 6, .42)); pointer-events: none; }
.tvs-floor::after { content: ""; position: absolute; inset: 2.2%; z-index: 0; border: max(3px, 1.4cqw) solid var(--yel); pointer-events: none; }
.tvs-dark { background: var(--panel-2); }
.tvs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tvs-s { position: absolute; display: block; height: auto; transform: translate(-50%, -50%); will-change: transform, opacity; }
img.tvs-s { filter: drop-shadow(0 .8cqw .7cqw rgba(0, 0, 0, .45)); }
.tvs:not(.is-on) .tvs-s { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tvs .tvs-s { animation: none !important; } }
.tvs .tvs-ic { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; border-radius: .14em; }

/* the announcer's amber dot-matrix display */
.tvs-led { display: flex; flex-direction: column; align-items: center; gap: .3cqw; padding: 2.4cqw 3cqw; border-radius: 1.6cqw; text-align: center;
	background: #1a1410 radial-gradient(rgba(255, 176, 40, .09) 30%, transparent 32%) 0 0 / .9cqw .9cqw; border: max(3px, .9cqw) solid #3a332c; box-shadow: 0 0 0 max(2px, .5cqw) var(--ink), 0 1.2cqw 2cqw rgba(0, 0, 0, .45);
	font-family: var(--display); font-weight: 700; text-transform: uppercase; color: #ffb028; text-shadow: 0 0 1.2cqw rgba(255, 150, 20, .75); line-height: 1; }
.tvs-led .n { font-size: 4cqw; letter-spacing: .08em; }
.tvs-led .b { font-size: 9cqw; }
.tvs-led .m { font-size: 3cqw; letter-spacing: .1em; opacity: .9; }
.tvs-led.is-red .b { color: #ff4a2e; text-shadow: 0 0 1.4cqw rgba(255, 60, 30, .8); }
.tvs-led .tvs-ic { box-shadow: 0 0 1cqw rgba(255, 150, 20, .6); }

/* buttons, tags and bids inside scenes */
.tvs-chip { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 4.6cqw; line-height: 1;
	padding: 2.2cqw 2cqw; color: var(--ink); border: max(2px, .7cqw) solid var(--ink); box-shadow: 0 .9cqw 0 var(--ink);
	clip-path: polygon(1.8cqw 0, 100% 0, 100% calc(100% - 1.8cqw), calc(100% - 1.8cqw) 100%, 0 100%, 0 1.8cqw); }
.tvs-chip.is-yel { background: var(--yel); }
.tvs-chip.is-bone { background: var(--bone); }
.tvs-chip.is-red { background: #d63a24; color: var(--bone); }
.tvs-chip.is-orange { background: #f08a24; }
.tvs-tag { display: block; text-align: center; font-weight: 800; font-size: 3.6cqw; color: var(--ink); background: var(--bone); border: max(2px, .6cqw) solid var(--ink); border-radius: 1.4cqw; padding: 1cqw 2cqw; }
.tvs-bid { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 7cqw; color: var(--ink); background: var(--bone); border: max(2px, .7cqw) solid var(--ink); border-radius: 1.6cqw; padding: 1.2cqw 0; }
.tvs-eq { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-size: 12cqw; line-height: 1; color: var(--bone); -webkit-text-stroke: .5cqw var(--ink); }
.tvs-arrow { display: block; aspect-ratio: 1; background: var(--ink); clip-path: polygon(0 35%, 55% 35%, 55% 10%, 100% 50%, 55% 90%, 55% 65%, 0 65%); }
.tvs-big { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; line-height: 1; font-size: 11cqw; color: var(--yel); -webkit-text-stroke: .7cqw var(--ink); paint-order: stroke fill; }
.tv-rule-pic .tvs { border-radius: 0; }
.tvs-card { display: block; aspect-ratio: 3 / 4; border-radius: 1.4cqw; border: max(2px, .7cqw) solid var(--ink); background: repeating-linear-gradient(-45deg, var(--yel) 0 2cqw, var(--ink) 2cqw 4cqw); }
.tvs-faces { display: flex; justify-content: center; gap: 1.6cqw; font-weight: 800; font-size: 4cqw; color: var(--ink); background: var(--bone); border: max(2px, .6cqw) solid var(--ink); border-radius: 1.4cqw; padding: 1cqw 1.4cqw; }
.tvs-faces span { white-space: nowrap; }
.tvs-flames { display: flex; justify-content: center; gap: 1.4cqw; }
.tvs-flames .tvs-tag { display: inline-block; }
.tvs-s.tvs-burnt { filter: brightness(.3) sepia(.6) drop-shadow(0 .8cqw .7cqw rgba(0, 0, 0, .45)); }
.tvs-phone { display: block; aspect-ratio: 9 / 19.5; background: #0d0d0d; border-radius: 16% / 7.5%; padding: 4%; box-shadow: 0 0 0 max(2px, .5cqw) var(--ink), 0 2cqw 3cqw rgba(0, 0, 0, .5); }
.tvs-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 13% / 6%; }
.tvs-ring { display: block; aspect-ratio: 1; border-radius: 50%; border: max(2px, .8cqw) solid var(--yel); box-shadow: 0 0 2cqw var(--yel); }
.tvs-beam { display: block; height: max(2px, .5cqw); background: repeating-linear-gradient(90deg, var(--yel) 0 1.4cqw, transparent 1.4cqw 2.6cqw); }
.tv-wide-scene { margin: 0 0 clamp(24px, 4vw, 40px); border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; }
.tv-step-pic .tvs { height: 100%; }
.tv-prem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.tv-prem-scene { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; }
@media (max-width: 860px) { .tv-prem-grid { grid-template-columns: 1fr; } }
/* game cards breathe a little */
@keyframes tv-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.tv-game-card img { animation: tv-float 4s ease-in-out infinite; }
.tv-game:nth-child(2) .tv-game-card img { animation-delay: -.8s; } .tv-game:nth-child(3) .tv-game-card img { animation-delay: -1.6s; }
.tv-game:nth-child(4) .tv-game-card img { animation-delay: -2.4s; } .tv-game:nth-child(5) .tv-game-card img { animation-delay: -3.2s; }
@media (prefers-reduced-motion: reduce) { .tv-game-card img { animation: none; } }
.tvs-qrcard { display: flex; flex-direction: column; gap: 1.6cqw; padding: 2.4cqw; background: var(--panel); border: max(2px, .6cqw) solid var(--ink); border-radius: 1.6cqw; font-family: var(--display); font-style: italic; text-transform: uppercase; color: var(--yel); font-size: 4cqw; }
.tvs-qr { display: grid; grid-template-columns: repeat(11, 1fr); aspect-ratio: 1; background: #fff; padding: 1.2cqw; border-radius: 1cqw; }
.tvs-qr i { background: #000; } .tvs-qr b { background: #fff; }
.tvs-phone.is-cam { position: relative; overflow: hidden; background: #0d0d0d linear-gradient(rgba(247, 197, 49, .08), rgba(247, 197, 49, .08)); }
.tvs-phone.is-cam::after { content: ""; position: absolute; inset: 22% 14%; border: max(2px, .5cqw) solid var(--yel); border-radius: 2cqw; }
.tvs-scan { position: absolute; left: 14%; right: 14%; top: 22%; height: max(2px, .5cqw); background: var(--yel); box-shadow: 0 0 2cqw var(--yel); }
.is-on .tvs-scan { animation: tv-scan 1.4s ease-in-out infinite alternate; }
@keyframes tv-scan { to { top: 78%; } }
.tvs-phone.is-mini { background: #0d0d0d linear-gradient(var(--panel-2), var(--panel-2)) content-box; padding: 6%; }
/* play together: device frames with the lobby clip */
.tv-devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px); align-items: end; }
.tv-dev-frame { position: relative; background: #0d0d0d; border: 3px solid var(--ink); overflow: hidden; margin: 0 auto 14px; }
.tv-dev-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv-dev-frame.is-tv { aspect-ratio: 16 / 9; border-radius: 8px; border-width: 8px; width: 100%; box-shadow: 0 0 0 3px var(--ink); }
.tv-dev-frame.is-ipad { aspect-ratio: 4 / 3; border-radius: 14px; border-width: 10px; width: 86%; box-shadow: 0 0 0 3px var(--ink); }
.tv-dev-frame.is-phone { aspect-ratio: 19.5 / 9; border-radius: 18px; border-width: 7px; width: 80%; box-shadow: 0 0 0 3px var(--ink); }
.tv-dev-frame.is-air::after { content: ""; position: absolute; right: 6px; top: 6px; width: 22%; aspect-ratio: 1; background: var(--yel); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1M12 15l5 6H7z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1M12 15l5 6H7z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tv-devices h3 { font-size: 1.3rem; }
.tv-devices p { color: var(--text-2); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .tv-devices { grid-template-columns: repeat(2, 1fr); } }
.tv-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.4vw, 28px); }
@media (max-width: 760px) { .tv-two { grid-template-columns: 1fr; } }
.tv-two .tv-step-pic { aspect-ratio: 4 / 3; }
/* free vs premium table */
.tv-cmp { width: 100%; border-collapse: separate; border-spacing: 0; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; }
.tv-cmp th, .tv-cmp td { padding: .8em 1em; text-align: left; border-bottom: 2px solid var(--line); }
.tv-cmp thead th { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 1.3rem; background: var(--panel); color: var(--bone); }
.tv-cmp thead th:last-child { background: var(--yel); color: var(--ink); }
.tv-cmp tbody th { color: var(--muted); font-weight: 600; width: 28%; }
.tv-cmp td:last-child { font-weight: 700; }
.tv-legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2em; }
.tv-legal h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--accent); }
.tv-legal { max-width: 820px; }
.tv-legal .muted { color: var(--muted); font-size: .9rem; }
.tv-split.is-rev > :first-child { order: 2; }
@media (max-width: 820px) { .tv-split.is-rev > :first-child { order: 0; } }
.tv-duo { display: flex; gap: 6%; justify-content: center; }
.tv-duo .tv-phone { width: 42%; max-width: 230px; margin: 0; }
.tv-duo .tv-phone:nth-child(2) { transform: rotate(-4deg); margin-top: 8%; }
.tv-rows { display: grid; gap: clamp(36px, 6vw, 72px); }
.tv-game-row h2 { margin: .3em 0 .2em; } .tv-game-row h2 a { color: inherit; text-decoration: none; }
.tv-game-card.is-row img { width: 72px; border: 2px solid var(--ink); border-radius: 8px; animation: none; float: right; margin-left: 12px; }
.tv-fan.is-hero { height: clamp(200px, 26vw, 320px); }
.tv-step-pic .tvs { aspect-ratio: auto !important; height: 100%; }
.page-legal h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: none; }

/* header: Games panel (same structure as Beasties' bst_nav_games) */
.main-nav a, .nav-drop > summary { white-space: nowrap; }
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .95rem; cursor: pointer; user-select: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary svg { width: 13px; height: 13px; transition: transform .2s; }
.nav-drop[open] > summary svg { transform: rotate(180deg); }
.nav-drop > summary:hover, .nav-drop[open] > summary, .nav-drop > summary.is-current { color: var(--text); background: var(--surface); }
.nav-drop-panel { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); width: min(660px, calc(100vw - 32px)); box-sizing: border-box; padding: 12px; border-radius: 22px; background: var(--surface); border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink), 0 24px 60px rgba(0, 0, 0, .35); z-index: 60; }
.site-header .nd-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.site-header .nd-games a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 13px; color: var(--text); text-decoration: none; font-size: 1rem; white-space: normal; }
.site-header .nd-games a:hover, .site-header .nd-games a[aria-current] { background: var(--surface-2); }
.nd-games span { min-width: 0; line-height: 1.2; }
.nd-games b { display: block; font-weight: 700; font-size: .98rem; }
.nd-games small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.nd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 4px 0; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.site-header .nd-all { padding: 0; color: var(--accent); font-weight: 700; font-size: .95rem; text-decoration: none; background: none; }
.site-header .nd-all:hover { text-decoration: underline; background: none; }
.tv-nd .tv-nd-card { width: 40px; }
.menu-head { display: none; }
@media (max-width: 900px) {
	/* burger: a full-width sheet with the games as a grid, then the anchors */
	.menu-panel { position: fixed; left: 12px; right: 12px; top: 72px; min-width: 0; max-height: calc(100dvh - 88px); overflow: auto; padding: 10px; border-radius: 22px; border: 2.5px solid #0e0b1a; box-shadow: 0 6px 0 #0e0b1a, 0 24px 60px rgba(0, 0, 0, .35); }
	.menu-panel > ul > li + li { border-top: 1px solid var(--line); }
	.menu-panel > ul > li.has-drop { padding-bottom: 6px; }
	.menu-head { display: block; padding: 8px 10px 6px; font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
	.site-header .menu-panel .nd-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-header .menu-panel .nd-games a { padding: 7px 8px; gap: 9px; }
	.menu-panel .nd-games .bst-ico { width: 34px; height: 34px; padding: 7px; }
	.menu-panel .nd-games small { display: none; }
	.menu-panel .nd-foot { margin-top: 6px; padding: 10px 8px 2px; }
	.site-header .menu-panel .nd-all { padding: 0; }
}
/* live fixes: the stripe spans the window, fact boxes never break words */
.tv-hazard { width: 100vw; max-width: none !important; margin-inline: calc(50% - 50vw) !important; }
.tv-facts { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.tv-facts dt { white-space: nowrap; }
.tv-facts dd { font-size: 1.15rem; hyphens: none; overflow-wrap: normal; word-break: normal; }
/* scenes: joining cards, tiny phones, the real QR code */
.tvs-joincard { display: flex; flex-direction: column; align-items: center; gap: 1cqw; aspect-ratio: 4 / 3.3; box-sizing: border-box; padding: 1.2cqw 1cqw 1.4cqw; background: var(--panel); border: max(2px, .45cqw) solid var(--ink); border-radius: 1.4cqw; box-shadow: inset 0 0 0 max(1px, .2cqw) #3a2a1c; }
.tvs-joincard .pic { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: .6cqw; }
.tvs-joincard b { font-family: var(--display); font-style: italic; text-transform: uppercase; color: var(--yel); font-size: 2.1cqw; line-height: 1; white-space: nowrap; }
.tvs-joincard .tvs-chip { font-size: 1.6cqw; padding: .6cqw 1cqw; align-self: center; }
.tvs-phone.is-tiny { height: 100%; width: auto; aspect-ratio: 9 / 19.5; padding: 3%; border-radius: 1cqw; box-shadow: 0 0 0 max(1px, .25cqw) var(--ink); }
.tvs-phone.is-tiny img { border-radius: .7cqw; }
.tvs .tvs-mini { height: 55%; width: auto; filter: drop-shadow(0 .4cqw .4cqw rgba(0, 0, 0, .45)); }
.tvs .tvs-qrimg { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 1cqw; }
.tvs-col { display: block; border-radius: .6cqw; mix-blend-mode: multiply; }
/* every FAQ heading centred over its questions */
.tv .section-head:has(+ .faq), .tv .section-head:has(+ .wp-block-group.faq) { text-align: center; margin-inline: auto !important; }
/* play together: every device on the same stage, so the texts start on one line */
.tv-devices { align-items: start; }
.tv-dev-stage { position: relative; aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 12px; border: 3px solid var(--ink); background: radial-gradient(closest-side, #3a2a1c, var(--panel)); }
.tv-dev-stage .tv-dev-frame { margin: 0; }
.tv-dev-stage.is-tv .tv-dev-frame { width: 84%; }
.tv-dev-stage.is-ipad .tv-dev-frame { width: 64%; }
.tv-dev-stage.is-phone .tv-dev-frame { width: 72%; }
.tv-dev-stage.is-airplay .tv-dev-frame.is-tv { position: absolute; width: 62%; right: 7%; top: 12%; }
.tv-dev-stage.is-airplay .tv-dev-frame.is-phone { position: absolute; width: 38%; left: 7%; bottom: 12%; border-width: 5px; border-radius: 12px; background: #1b130d; }
.tv-dev-air { position: absolute; left: 30%; top: 30%; width: 13%; aspect-ratio: 1; color: var(--yel); }
.tv-dev-air svg { width: 100%; height: 100%; }
.tv-dev-frame.is-air::after { content: none; }
/* Bombenbeute gauge scene */
.tvs-lbl { display: block; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 3.4cqw; color: var(--bone); text-shadow: 0 .3cqw 0 var(--ink); white-space: nowrap; }
.tvs-lbl.is-center { text-align: center; font-size: 2.8cqw; }
.tvs-big.is-num { font-size: 7cqw; }
.tvs-big.is-red { color: #ff5a3c; }
.tvs-big.is-num { color: #ffb028; -webkit-text-stroke: 0; text-shadow: 0 0 1.2cqw rgba(255, 150, 20, .7); font-size: 6cqw; }
.tvs-big.is-num.is-red { color: #ff5a3c; text-shadow: 0 0 1.2cqw rgba(255, 60, 30, .7); }
.tvs-lbl.is-center { color: #ffb028; text-shadow: none; opacity: .85; font-size: 2.3cqw; }
/* CJK headings: break between phrases, not inside words */
:lang(ja) .tv :is(h1, h2, h3), :lang(zh-Hant) .tv :is(h1, h2, h3) { word-break: auto-phrase; line-break: strict; }
:lang(ko) .tv :is(h1, h2, h3, p, li) { word-break: keep-all; }
