/* Hand of War (ransom) on wide screens: iPad portrait and landscape, the Duo's inner screen (docs/ipad-duo/GAME-WORKER-GUIDE.md).
   Nov 26, 2026. Built in only with --wide; linked last in <head> behind the wide gate, and every rule starts with html.tc-wide,
   so a phone (and the Duo's outer screen, below the gate) never applies a line of it.
   Level "column" (game.json): the engine lifts #app's 560 px cap (to --tcw-col). The layout below is this page's own:
     tall  (portrait iPad)   the phone's stack, bigger: score, tiles, relics, readout, a big hand, big buttons
     wide  (landscape iPad)  the round is a grid on #app: the hand (and the played row over it) fills the main side; the top bar,
                             Warlord rule, score bar, tiles, relics, readout and the Play / Discard / Sort buttons stack in a side
                             panel on the thumb side (right; html.tcw-left puts it on the left)
     fold  (Duo inner)       the same grid as two halves with a hinge-wide gutter: hand on one half, the panel on the other
   The round's grid uses #round { display: contents } (no node moves). Card sizes come from computeGeomWide() in index.html.
   The title, intro, market and end screens get a wider column and bigger type in every wide mode.
   Weight: the generated ui/ui.css writes :is(...):not(#\9#\9)#id (4 ids); rules that fight it carry :not(#\9#\9#\9#\9#\9).
   Its (max-height:700px) rules and the page's own (they fire on iPad landscape with Safari's bars and on the Duo's 626 px)
   are all restated here unconditionally with more weight, so they never shrink a wide screen. */

/* ================================================================ every wide mode */
/* the shared filler's fallback tile is a skin variable used from shared/wide.css, so it would load another skin's tile (or a 404):
   drop that fallback here; a skin's own wide backdrop (--tcw-img-backdrop, written by the build) still shows, else the theme's own
   page backdrop shows through. (Fix, Nov 26: a wide.css never names a skin picture, not even through var(--ui-img-*).) */
html.tc-wide #tcWideBg .tcw-fill { --ui-img-bg-tile: none; background-color: transparent; }
html.tc-wide #app:not(#\9) { padding-top: calc(calc(env(safe-area-inset-top) + var(--tc-frost, 0px)) + 10px); padding-bottom: calc(env(safe-area-inset-bottom) + 12px); gap: 10px; }

/* top bar: the unified frame's bar since Nov 29, 2026 (its sizes come from shared/frame.css); the name a little bigger */
html.tc-wide #hdr .tcf-plaque:not(#\9) { font-size: 19px; }
/* #app pads 10 under the top safe area here (6 on a phone): the bar still sits right under the safe area */
html.tc-wide #app > #hdr:not(#\9) { margin-top: calc(-10px - calc(env(safe-area-inset-top) + var(--tc-frost, 0px))); }
/* in the round's side panel (wide, fold) the bar stays inside its column: no reaching out to the screen edges */
html.tc-wide:is(.tcw-wide, .tcw-fold) #app:has(> #round:not(.hidden)) > #hdr:not(#\9) { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

/* crisp card faces: a card width that gives every art pixel whole device pixels (index.html sets .tcw-crisp) */
html.tc-wide .cardbox.tcw-crisp .card .front[data-dk],
html.tc-wide .cardbox.tcw-crisp .card .back { image-rendering: pixelated; }
html.tc-wide #lane:not(#\9) { gap: 12px; }
html.tc-wide .fxtag:not(#\9) { font-size: 22px; padding: 2px 9px; }
html.tc-wide .fxtag.x:not(#\9) { font-size: 26px; }

/* ---------------------------------------------------------------- the round: shared sizes (tall and wide; fold restates its own) */
html.tc-wide #round .bossbar:not(#\9#\9#\9#\9#\9) { font-size: 15px; line-height: 1.3; padding: 4px 12px 4px 6px; gap: 10px; }
html.tc-wide #round .bossbar .mini { width: 40px; height: 40px; }
html.tc-wide #prog:not(#\9#\9#\9#\9#\9) { height: 48px; }
html.tc-wide #prog .txt:not(#\9) { font-size: 22px; gap: 10px; }
html.tc-wide #prog .txt small:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; }
html.tc-wide #round .tile:not(#\9#\9#\9#\9#\9) { padding: 6px 0; }
html.tc-wide #round .tile small:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; }
html.tc-wide #round .tile b:not(#\9#\9#\9#\9#\9) { font-size: 30px; }
html.tc-wide #app .relics:not(#\9#\9#\9#\9#\9),
html.tc-wide #app .shoprelics:not(#\9#\9#\9#\9#\9) { gap: 14px !important; }
html.tc-wide #app .relics .rslot:not(#\9#\9#\9#\9#\9),
html.tc-wide #app .shoprelics .rslot:not(#\9#\9#\9#\9#\9) { height: 96px; }
html.tc-wide #app .rslot .badge:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; }
html.tc-wide #readout:not(#\9#\9#\9#\9#\9) { min-height: 140px; gap: 6px; border-width: 13px 10px 12px; }
html.tc-wide #readout .hname:not(#\9) { font-size: 26px; }
html.tc-wide #readout .hname small:not(#\9) { font-size: 14px; }
html.tc-wide #readout .eq:not(#\9) { gap: 10px; }
html.tc-wide #readout .eq .box:not(#\9) { font-size: 34px; min-width: 110px; padding: 2px 12px; }
html.tc-wide #readout .eq .t:not(#\9) { min-width: 150px; }
html.tc-wide #readout .eq .op:not(#\9) { font-size: 26px; }
html.tc-wide #readout .reason:not(#\9) { font-size: 15px; min-height: 19px; }
html.tc-wide #round .actions:not(#\9#\9#\9#\9#\9) { gap: 12px !important; }
/* the bottom bar (TCFrame.actions in #actBar, Nov 29, 2026): kit plates, 52 tall on a wide screen (the spec's side panel size) */
html.tc-wide #actBar .tcf-actions:not(#\9) { max-width: none; margin: 0; padding: 0; gap: 12px; }
html.tc-wide #actBar .tcf-plate:not(#\9) { --bh: 52px; }
html.tc-wide .actions .sortrow:not(#\9#\9#\9#\9#\9) { gap: 12px !important; }
html.tc-wide .actions .sortrow span:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; }
html.tc-wide .actions :is(#sortRank, #sortSuit).btn.small:not(#\9#\9#\9#\9#\9) { min-height: 52px !important; min-width: 120px; font-size: 16px; }

/* ================================================================ tall: the phone's stack, bigger */
html.tc-wide.tcw-tall #round:not(#\9) { gap: 12px; }

/* ================================================================ wide and fold: hand + side panel (a grid on #app) */
html.tc-wide:is(.tcw-wide, .tcw-fold) #app:has(> #round:not(.hidden)):not(#\9#\9) {
  display: grid; row-gap: 10px; align-content: stretch;
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr) auto;
}
html.tc-wide:is(.tcw-wide, .tcw-fold) #app > #round:not(.hidden):not(#\9) { display: contents; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #app:has(> #round:not(.hidden)) > #hdr { grid-row: 1; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > .bossbar { grid-row: 2; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > .prog    { grid-row: 3; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > .tiles   { grid-row: 4; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > .relics  { grid-row: 5; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > .readout { grid-row: 6; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > .actions { grid-row: 8; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > #handArea:not(#\9) { grid-row: 1 / -1; min-height: 0; margin: 3px; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #app:has(> #round:not(.hidden)) > :not(#handArea),
html.tc-wide:is(.tcw-wide, .tcw-fold) #round > :not(#handArea) { min-width: 0; }

/* wide (landscape iPad): hand on the main side, panel on the thumb side */
html.tc-wide.tcw-wide { --rnPanel: clamp(360px, 32vw, 440px); }
html.tc-wide.tcw-wide #app:has(> #round:not(.hidden)):not(#\9#\9) { grid-template-columns: minmax(0, 1fr) var(--rnPanel); column-gap: 24px; }
html.tc-wide.tcw-wide #app:has(> #round:not(.hidden)) > #hdr,
html.tc-wide.tcw-wide #round > :not(#handArea) { grid-column: 2; }
html.tc-wide.tcw-wide #round > #handArea { grid-column: 1; }
html.tc-wide.tcw-wide.tcw-left #app:has(> #round:not(.hidden)):not(#\9#\9) { grid-template-columns: var(--rnPanel) minmax(0, 1fr); }
html.tc-wide.tcw-wide.tcw-left #app:has(> #round:not(.hidden)) > #hdr,
html.tc-wide.tcw-wide.tcw-left #round > :not(#handArea) { grid-column: 1; }
html.tc-wide.tcw-wide.tcw-left #round > #handArea { grid-column: 2; }
/* the panel is narrower than the tall column: relic slots and the readout a step smaller */
html.tc-wide.tcw-wide #app .relics .rslot:not(#\9#\9#\9#\9#\9) { height: 66px; }
html.tc-wide.tcw-wide #app .relics:not(#\9#\9#\9#\9#\9) { gap: 10px !important; }
html.tc-wide.tcw-wide #readout:not(#\9#\9#\9#\9#\9) { min-height: 124px; }
html.tc-wide.tcw-wide #readout .hname:not(#\9) { font-size: 23px; }
html.tc-wide.tcw-wide #readout .eq .box:not(#\9) { font-size: 26px; min-width: 76px; padding: 2px 6px; }
html.tc-wide.tcw-wide #readout .eq .t:not(#\9) { min-width: 100px; }
html.tc-wide.tcw-wide #readout .eq .op:not(#\9) { font-size: 22px; }
html.tc-wide.tcw-wide #readout .eq:not(#\9) { gap: 7px; }
html.tc-wide.tcw-wide #round .tile b:not(#\9#\9#\9#\9#\9) { font-size: 26px; }
html.tc-wide.tcw-wide .actions :is(#sortRank, #sortSuit).btn.small:not(#\9#\9#\9#\9#\9) { min-width: 104px; }

/* fold (Duo inner screen): hand on one half, the panel on the other; nothing crosses the hinge. The panel half is about as
   wide as a phone, so the panel keeps the phone's (non-short) sizes */
html.tc-wide.tcw-fold #app:has(> #round:not(.hidden)):not(#\9#\9) {
  grid-template-columns: minmax(0, 1fr) calc(var(--tcw-hinge-w) + 32px) minmax(0, 1fr); column-gap: 0; row-gap: 7px;
  padding-left: calc(env(safe-area-inset-left) + 12px) !important; padding-right: calc(env(safe-area-inset-right) + 12px) !important;
  padding-top: calc(calc(env(safe-area-inset-top) + var(--tc-frost, 0px)) + 6px); padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
}
html.tc-wide.tcw-fold #app:has(> #round:not(.hidden)) > #hdr,
html.tc-wide.tcw-fold #round > :not(#handArea) { grid-column: 3; }
html.tc-wide.tcw-fold #round > #handArea { grid-column: 1; }
html.tc-wide.tcw-fold.tcw-left #app:has(> #round:not(.hidden)) > #hdr,
html.tc-wide.tcw-fold.tcw-left #round > :not(#handArea) { grid-column: 1; }
html.tc-wide.tcw-fold.tcw-left #round > #handArea { grid-column: 3; }
html.tc-wide.tcw-fold #hdr .tcf-plaque:not(#\9) { font-size: 15px; }
html.tc-wide.tcw-fold #round .bossbar:not(#\9#\9#\9#\9#\9) { font-size: 12.5px; line-height: 1.25; padding: 2px 8px 2px 4px; }
html.tc-wide.tcw-fold #round .bossbar .mini { width: 30px; height: 30px; }
html.tc-wide.tcw-fold #prog:not(#\9#\9#\9#\9#\9) { height: 36px; }
html.tc-wide.tcw-fold #prog .txt:not(#\9) { font-size: 17px; }
html.tc-wide.tcw-fold #prog .txt small:not(#\9#\9#\9#\9#\9) { font-size: 11px !important; }
html.tc-wide.tcw-fold #round .tile:not(#\9#\9#\9#\9#\9) { padding: 2px 0; }
html.tc-wide.tcw-fold #round .tile small:not(#\9#\9#\9#\9#\9) { font-size: 11px !important; }
html.tc-wide.tcw-fold #round .tile b:not(#\9#\9#\9#\9#\9) { font-size: 20px; }
html.tc-wide.tcw-fold #app .relics:not(#\9#\9#\9#\9#\9) { gap: 10px !important; }
html.tc-wide.tcw-fold #app .relics .rslot:not(#\9#\9#\9#\9#\9) { height: 56px; }
html.tc-wide.tcw-fold #readout:not(#\9#\9#\9#\9#\9) { min-height: 100px; gap: 3px; border-width: 12px 10px 11px; }
html.tc-wide.tcw-fold #readout .hname:not(#\9) { font-size: 19px; }
html.tc-wide.tcw-fold #readout .hname small:not(#\9) { font-size: 11px; }
html.tc-wide.tcw-fold #readout .eq .box:not(#\9) { font-size: 24px; min-width: 70px; padding: 2px 8px; }
html.tc-wide.tcw-fold #readout .eq .t:not(#\9) { min-width: 96px; }
html.tc-wide.tcw-fold #readout .eq .op:not(#\9) { font-size: 20px; }
html.tc-wide.tcw-fold #readout .reason:not(#\9) { font-size: 12.5px; min-height: 15px; }
html.tc-wide.tcw-fold #round .actions:not(#\9#\9#\9#\9#\9) { gap: 8px !important; }
html.tc-wide.tcw-fold #actBar .tcf-actions:not(#\9) { gap: 8px; }
html.tc-wide.tcw-fold #actBar .tcf-plate:not(#\9) { --bh: 48px; }
html.tc-wide.tcw-fold .actions .sortrow:not(#\9#\9#\9#\9#\9) { gap: 8px !important; }
html.tc-wide.tcw-fold .actions .sortrow span:not(#\9#\9#\9#\9#\9) { font-size: 11px !important; }
html.tc-wide.tcw-fold .actions :is(#sortRank, #sortSuit).btn.small:not(#\9#\9#\9#\9#\9) { min-height: 44px !important; min-width: 96px; font-size: 14px; }
html.tc-wide.tcw-fold #lane:not(#\9) { gap: 8px; }

/* ================================================================ title */
html.tc-wide #title:not(#\9) { justify-content: safe center; gap: 18px; padding-top: 24px; padding-bottom: 16px; }
html.tc-wide #title .crestbig:not(#\9) { width: 140px; height: 140px; }
html.tc-wide #title h2:not(#\9#\9#\9#\9#\9) { font-size: 64px; }
html.tc-wide #title .tag:not(#\9) { font-size: 19px; }
html.tc-wide #title .tokbtn:not(#\9#\9#\9#\9#\9) { padding: 6px 18px 6px 8px; gap: 16px; }
html.tc-wide #title .tokbtn svg { width: 72px; height: 72px; }
html.tc-wide #title .tokbtn b:not(#\9) { font-size: 19px; }
html.tc-wide #title .tokbtn span:not(#\9) { font-size: 15px; }
html.tc-wide #title .col:not(#\9) { max-width: 460px; gap: 16px; }
html.tc-wide #title .col .btn:not(#\9#\9#\9#\9#\9) { min-height: 72px; font-size: 24px; }
html.tc-wide #title .col .btn small:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; }
html.tc-wide #title details:not(#\9) { max-width: 640px; font-size: 17px; }
html.tc-wide #howto summary:not(#\9#\9#\9#\9#\9) { width: 280px; margin-left: auto; margin-right: auto; font-size: 17px; padding-top: 12px; padding-bottom: 12px; }
html.tc-wide #title .statsline:not(#\9) { max-width: 640px; gap: 10px; }
html.tc-wide #title .statsline div:not(#\9#\9#\9#\9#\9) { padding: 8px 2px 6px; }
html.tc-wide #title .statsline small:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; }
html.tc-wide #title .statsline b:not(#\9) { font-size: 26px; }

/* ================================================================ intro */
html.tc-wide #intro:not(#\9) { gap: 18px; }
html.tc-wide #intro .stg:not(#\9#\9#\9#\9#\9) { font-size: 15px; }
html.tc-wide #intro h2:not(#\9#\9#\9#\9#\9) { font-size: 56px; }
html.tc-wide #intro .portrait:not(#\9) { width: 260px; }
html.tc-wide #intro .portrait.mine:not(#\9) { width: 180px; }
/* the page pads the token circle by 8% -- of the CONTAINER's width, so on a wide screen the padding ate the whole circle and the
   round / boss token drew 0x0 (fix, Nov 26). Here the token is sized from the circle itself, at the phone's proportions. */
html.tc-wide #intro .portrait:not(#\9) { padding: 0; }
html.tc-wide #intro .portrait svg:not(#\9) { width: 64%; height: 64%; }
html.tc-wide #intro .portrait.mine svg:not(#\9) { width: 46%; height: 46%; }
html.tc-wide #intro .ransomline:not(#\9) { font-size: 15px; }
html.tc-wide #intro .ransomline b:not(#\9) { font-size: 64px; }
html.tc-wide #intro .rule:not(#\9#\9#\9#\9#\9) { max-width: 520px; font-size: 20px; padding: 10px 16px 12px; }
html.tc-wide #intro .rule b:not(#\9) { font-size: 14px; }
html.tc-wide #intro .note:not(#\9) { font-size: 17px; max-width: 620px; }
html.tc-wide #intro .col:not(#\9) { max-width: 460px; }
html.tc-wide #intro .col .btn:not(#\9#\9#\9#\9#\9) { min-height: 72px; font-size: 24px; }

/* ================================================================ market */
html.tc-wide #shop:not(#\9) { gap: 12px; width: 100%; max-width: 900px; margin: 0 auto; padding-bottom: 8px; }
html.tc-wide #shop .goldbar > span:not(#\9#\9#\9#\9#\9) { font-size: 14px; }
html.tc-wide #shop .goldbar b:not(#\9#\9#\9#\9#\9) { font-size: 28px; min-width: 110px; }
html.tc-wide #shop h3.sec:not(#\9#\9#\9#\9#\9) { font-size: 13px; margin: 6px 0 0; }
/* the three offers side by side, each a tall card: art, text, price */
html.tc-wide #offers:not(#\9) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px !important; align-items: stretch; }
html.tc-wide #offers .offer:not(#\9#\9#\9#\9#\9) { flex-direction: column; align-items: center; gap: 8px; padding: 10px 8px; text-align: center; }
html.tc-wide #offers .offer .art { width: 96px; height: 104px; }
html.tc-wide #offers .offer .txt:not(#\9) { flex: 1; text-align: center; font-size: 15px; width: 100%; }
html.tc-wide #offers .offer .txt b:not(#\9) { font-size: 19px; margin: 2px 0 4px; }
html.tc-wide #offers .offer .txt em:not(#\9#\9#\9#\9#\9) { font-size: 12px !important; }
html.tc-wide #offers .offer .why:not(#\9) { font-size: 13px; margin-top: 4px; }
html.tc-wide #offers .offer .buy:not(#\9#\9#\9#\9#\9) { width: 120px; min-height: 52px; font-size: 22px; }
html.tc-wide #shop #rerollBtn.btn:not(#\9#\9#\9#\9#\9),
html.tc-wide #shop #lvlBtn.btn:not(#\9#\9#\9#\9#\9) { min-height: 52px; font-size: 17px; }
html.tc-wide #shop .rinfo:not(#\9#\9#\9#\9#\9) { font-size: 16px; padding: 6px 10px 8px; }
html.tc-wide #shop .rinfo b:not(#\9) { font-size: 18px; }
html.tc-wide #shop .rinfo .row .btn:not(#\9#\9#\9#\9#\9) { min-height: 52px !important; font-size: 17px; }
html.tc-wide #shop .rinfo .row .btn.sq:not(#\9) { flex: 0 0 64px; }
html.tc-wide #lvlBox table:not(#\9) { font-size: 16px !important; }
html.tc-wide #lvlBox th:not(#\9#\9#\9#\9#\9) { font-size: 12px !important; }
html.tc-wide #shop #leaveBtn.btn:not(#\9#\9#\9#\9#\9) { min-height: 68px; font-size: 22px; }
/* landscape and fold: two columns, the offers on one side, your relics, hand levels and the way out on the other */
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop:not(.hidden):not(#\9#\9) {
  display: grid; max-width: 1240px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 28px; row-gap: 12px;
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr); align-content: start;
}
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > .goldbar { grid-column: 1 / -1; grid-row: 1; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > h3.sec:nth-of-type(1) { grid-column: 1; grid-row: 2; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > #offers { grid-column: 1; grid-row: 3 / 7; align-self: start; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > #rerollBtn { grid-column: 1; grid-row: 7; align-self: start; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > h3.sec:nth-of-type(2) { grid-column: 2; grid-row: 2; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > #shopRelics { grid-column: 2; grid-row: 3; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > #rinfo { grid-column: 2; grid-row: 4; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > #lvlBtn { grid-column: 2; grid-row: 5; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > #lvlBox { grid-column: 2; grid-row: 6; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop > .shopfoot { grid-column: 2; grid-row: 7; align-self: end; }
html.tc-wide:is(.tcw-wide, .tcw-fold) #shop .shoprelics .rslot:not(#\9#\9#\9#\9#\9) { height: 80px; }
/* fold: a smaller screen; offers a step smaller */
html.tc-wide.tcw-fold #shop:not(.hidden):not(#\9#\9) { column-gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html.tc-wide.tcw-fold #offers:not(#\9) { gap: 8px !important; }
html.tc-wide.tcw-fold #offers .offer .art { width: 64px; height: 70px; }
html.tc-wide.tcw-fold #offers .offer .txt:not(#\9) { font-size: 12.5px; }
html.tc-wide.tcw-fold #offers .offer .txt b:not(#\9) { font-size: 15px; }
html.tc-wide.tcw-fold #offers .offer .buy:not(#\9#\9#\9#\9#\9) { width: 84px; min-height: 46px; font-size: 18px; }
html.tc-wide.tcw-fold #shop .shoprelics .rslot:not(#\9#\9#\9#\9#\9) { height: 60px; }
html.tc-wide.tcw-fold #shop .rinfo:not(#\9#\9#\9#\9#\9) { font-size: 13.5px; }
html.tc-wide.tcw-fold #shop #leaveBtn.btn:not(#\9#\9#\9#\9#\9) { min-height: 58px; font-size: 19px; }

/* ================================================================ end of a run */
html.tc-wide #end:not(#\9) { gap: 18px; padding-top: 28px; }
html.tc-wide #end h2:not(#\9#\9#\9#\9#\9) { font-size: 68px; }
html.tc-wide #end .note:not(#\9) { font-size: 18px; }
html.tc-wide #end .bigstats:not(#\9#\9#\9#\9#\9) { max-width: 600px; gap: 12px; padding: 8px 4px; }
html.tc-wide #end .bigstats small:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; }
html.tc-wide #end .bigstats b:not(#\9) { font-size: 34px; }
html.tc-wide #end .bigstats div:not(#\9#\9#\9#\9#\9) { padding: 12px 6px; }
html.tc-wide #end .endrelics:not(#\9#\9#\9#\9#\9) { gap: 14px !important; }
html.tc-wide #end .endrelics .rslot:not(#\9) { width: 80px; height: 86px; }
html.tc-wide #end .col:not(#\9) { max-width: 460px; gap: 16px; }
html.tc-wide #end #endNew.btn:not(#\9#\9#\9#\9#\9) { min-height: 72px; font-size: 24px; }
html.tc-wide #end #endTitle.btn:not(#\9#\9#\9#\9#\9) { min-height: 52px; min-width: 220px; font-size: 17px; }
html.tc-wide.tcw-fold #end:not(#\9) { gap: 12px; padding-top: 10px; }
html.tc-wide.tcw-fold #end h2:not(#\9#\9#\9#\9#\9) { font-size: 52px; }

/* ================================================================ pop-ups: centred sheets, a little wider and bigger */
html.tc-wide .overlay:not(#\9) { align-items: center; }
html.tc-wide .overlay > .sheet:not(#\9) { max-width: 560px; }
html.tc-wide .overlay > .sheet h2:not(#\9) { font-size: 30px; }
html.tc-wide .overlay > .sheet .note:not(#\9) { font-size: 16px; }
html.tc-wide .overlay .sheet .btn:not(#\9#\9#\9#\9#\9) { min-height: 56px; font-size: 18px; }
html.tc-wide .overlay .seg button:not(#\9#\9#\9#\9#\9) { min-height: 52px; font-size: 17px; }
html.tc-wide .setrow label:not(#\9#\9#\9#\9#\9) { font-size: 13px; }
html.tc-wide #wonSheet h2:not(#\9) { font-size: 34px; }
html.tc-wide .paylines:not(#\9) { font-size: 18px; }
html.tc-wide .paylines div:last-child:not(#\9) { font-size: 20px; }
html.tc-wide .paylines div:last-child b:not(#\9) { font-size: 26px; }
html.tc-wide #wonSheet .btn:not(#\9#\9#\9#\9#\9) { min-height: 64px; font-size: 22px; }
html.tc-wide .rpop:not(#\9) { max-width: 440px; }
html.tc-wide .rpop .art:not(#\9) { width: 144px; height: 152px; }
html.tc-wide .rpop .fx:not(#\9) { font-size: 19px; }
html.tc-wide .tokgrid:not(#\9) { gap: 12px; }
html.tc-wide .tokgrid button:not(#\9#\9#\9#\9#\9) { font-size: 13px !important; padding: 8px 2px; }
html.tc-wide .tokgrid svg:not(#\9) { max-width: 84px; }
html.tc-wide.tcw-fold .overlay > .sheet:not(#\9) { max-width: 480px; }

/* ================================================================ short wide screens (iPad landscape, the Duo inner): the title, intro
   and end screens a step smaller so their buttons stay on screen without scrolling */
@media (max-height: 860px) {
  html.tc-wide #title:not(#\9) { gap: 12px; padding-top: 12px; }
  html.tc-wide #title .crestbig:not(#\9) { width: 104px; height: 104px; }
  html.tc-wide #title h2:not(#\9#\9#\9#\9#\9) { font-size: 52px; }
  html.tc-wide #intro:not(#\9) { gap: 12px; }
  html.tc-wide #intro h2:not(#\9#\9#\9#\9#\9) { font-size: 46px; }
  html.tc-wide #intro .portrait:not(#\9) { width: 200px; }
  html.tc-wide #intro .portrait.mine:not(#\9) { width: 140px; }
  html.tc-wide #intro .ransomline b:not(#\9) { font-size: 52px; }
  html.tc-wide #end:not(#\9) { gap: 12px; padding-top: 12px; }
  html.tc-wide #end h2:not(#\9#\9#\9#\9#\9) { font-size: 56px; }
  html.tc-wide #end .bigstats b:not(#\9) { font-size: 28px; }
  html.tc-wide #end .bigstats div:not(#\9#\9#\9#\9#\9) { padding: 8px 6px; }
  html.tc-wide #end .endrelics .rslot:not(#\9) { width: 64px; height: 70px; }
}
@media (max-height: 680px) {
  html.tc-wide #title:not(#\9) { gap: 8px; padding-top: 4px; }
  html.tc-wide #title .crestbig:not(#\9) { width: 72px; height: 72px; }
  html.tc-wide #title .tokbtn svg { width: 56px; height: 56px; }
  html.tc-wide #title .statsline b:not(#\9) { font-size: 22px; }
  html.tc-wide #end:not(#\9) { gap: 8px; padding-top: 4px; }
  html.tc-wide #end .endrelics .rslot:not(#\9) { width: 52px; height: 56px; }
  html.tc-wide #title h2:not(#\9#\9#\9#\9#\9) { font-size: 42px; }
  html.tc-wide #title .col .btn:not(#\9#\9#\9#\9#\9) { min-height: 60px; font-size: 21px; }
  html.tc-wide #intro:not(#\9) { gap: 8px; }
  html.tc-wide #intro h2:not(#\9#\9#\9#\9#\9) { font-size: 36px; }
  html.tc-wide #intro .portrait:not(#\9) { width: 140px; }
  html.tc-wide #intro .portrait.mine:not(#\9) { width: 100px; }
  html.tc-wide #intro .ransomline b:not(#\9) { font-size: 40px; }
  html.tc-wide #intro .rule:not(#\9#\9#\9#\9#\9) { font-size: 17px; }
  html.tc-wide #intro .note:not(#\9) { font-size: 15px; }
  html.tc-wide #intro .col .btn:not(#\9#\9#\9#\9#\9) { min-height: 60px; font-size: 21px; }
  html.tc-wide #end h2:not(#\9#\9#\9#\9#\9) { font-size: 44px; }
  html.tc-wide #end .bigstats:not(#\9#\9#\9#\9#\9) { gap: 8px; }
  html.tc-wide #end .bigstats b:not(#\9) { font-size: 24px; }
  html.tc-wide #end .bigstats div:not(#\9#\9#\9#\9#\9) { padding: 5px 4px; }
  html.tc-wide #end #endNew.btn:not(#\9#\9#\9#\9#\9) { min-height: 60px; font-size: 21px; }
}
