/* WEB-22: tavakava.lv's pages - the hub and the three game pages share this file. Made from the SIA repo's mockups
   (tasks/homepage/mockups/hub.css, approved by Eddy 2026-11-03..04): two themes, light and dark, switched in the header
   (data-theme on <html>). The fonts are served by us (fonts/, both SIL OFL) - a font from Google's servers would send
   every visitor's address to Google. */
@font-face { font-family: "DynaPuff"; src: url("fonts/dynapuff-bold.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-ext.woff2") format("woff2"); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, [data-theme="light"] {   /* Golden hour (Eddy, 2026-11-05) - the sand around the sun in his clear sky, so the sky melts into the page; a dark brown ink, the logo's red for every button */
  color-scheme: light;
  --bg: #F3DDB9; --surface: #FFF8EB; --ink: #2A1E12; --muted: #665238; --line: #E3C9A0; --chip: #F8E8CC;
  --accent: #8A4510; --cta: #C4161C; --cta-2: #8E0F13; --cta-ink: #FFFFFF;
  --band: linear-gradient(180deg, rgba(243,221,185,.45) 0%, rgba(243,221,185,0) 40%, rgba(243,221,185,.4) 70%, var(--bg) 100%),
          url("/media/art/clear-sky-2400.jpg") center 40% / cover;
  --band-ink: var(--ink);
  --glass: rgba(243, 221, 185, .86); --seg: rgba(42, 30, 18, .08); --shadow: 90, 55, 15;
}
[data-theme="dark"] {           /* Night - Eddy's lightning clouds over a night page, the red and the lightning's lilac */
  color-scheme: dark;
  --bg: #14121B; --surface: #1F1C29; --ink: #F1EFF7; --muted: #A39DB5; --line: #2F2A3D; --chip: #2A2638;
  --accent: #C4B6FF; --cta: #D6262B; --cta-2: #8E1518; --cta-ink: #FFFFFF;
  --band: linear-gradient(180deg, rgba(20,18,27,.2) 0%, rgba(20,18,27,0) 40%, rgba(20,18,27,.4) 70%, var(--bg) 100%),
          url("/media/art/clouds-2400.jpg") center 40% / cover;
  --band-ink: #FFFFFF; --glass: rgba(20, 18, 27, .80); --seg: rgba(255, 255, 255, .12); --shadow: 0, 0, 0;
}
:root { --red: #C4161C; --amber: #D9891C; --green: #1F9D63; --card-w: 70px; --card-h: 98px; --head-h: 72px; }
/* The theme switch's crossfade (TK.fadeTheme in site.js): the page stays clickable while it fades. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }
::view-transition { pointer-events: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Nunito", system-ui, sans-serif; }
a { color: inherit; }
/* The thin scrollbar floating over the page (TK.floatScrollbar in site.js): no strip beside the sky. Under the viewer. */
html.float-bar { scrollbar-width: none; }
.sbar { position: fixed; top: 0; right: 0; z-index: 45; width: 14px; }
.sbar::before { content: ""; position: absolute; inset: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 42%, transparent); transition: background .15s; }
.sbar:hover::before, .sbar:active::before { background: color-mix(in srgb, var(--ink) 65%, transparent); }
/* No grey or blue box over what a finger taps (Android's Chrome, iOS Safari), and no words of a button selected by
   a long press (Eddy, 2026-11-04: "visible blue selection boxes when elements are clicked"); a press shows itself
   instead - the @media (hover: none) block at the end. */
html { -webkit-tap-highlight-color: transparent; }
button, .btn, .store, .shot, .gcard, .brand, .social-row a, .soc a, .nav a { -webkit-user-select: none; user-select: none; }
h1, h2, h3 { font-family: "DynaPuff", system-ui, sans-serif; font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.elev { background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(var(--shadow), .06), 0 10px 28px rgba(var(--shadow), .10); }
[data-theme="dark"] .elev { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px rgba(0,0,0,.35); }

/* The header: sticky, see-through over the band at the top, solid (and blurred) once the page scrolls. The band
   reaches up under it, so the sky or the clouds start at the very top of the page. */
.top { position: sticky; top: 0; z-index: 40; height: var(--head-h); color: var(--band-ink); transition: background .2s, box-shadow .2s; }
.top.solid { background: var(--glass); color: var(--ink); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(var(--shadow), .08); }
.top-in { height: 100%; display: flex; align-items: center; gap: 14px; }
.band { background: var(--band); margin-top: calc(-1 * var(--head-h)); padding: var(--head-h) 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "DynaPuff", sans-serif; font-size: 24px; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand .lv { color: var(--cta); }
.on-dark { display: none; }
[data-theme="dark"] .on-dark { display: block; }
[data-theme="dark"] .on-light { display: none; }
[data-theme="dark"] .top:not(.solid) { text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.nav { display: flex; gap: 4px; font-weight: 800; font-size: 15px; margin-right: 6px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; opacity: .85; }
.nav a:hover, .nav a.on { opacity: 1; background: var(--seg); }
/* The two switches: a pill track, the chosen one raised */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--seg); }
[data-theme="dark"] .top:not(.solid) .seg { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.seg button { border: 0; background: none; color: inherit; font: 800 13.5px/1 "Nunito", sans-serif; min-width: 38px; height: 32px; padding: 0 10px;
  border-radius: 999px; cursor: pointer; display: grid; place-items: center; opacity: .7; text-shadow: none; }
.seg button:hover { opacity: 1; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); opacity: 1; box-shadow: 0 1px 3px rgba(var(--shadow), .18); }
.seg button:focus-visible, .filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The pager */
.pager { position: relative; border-radius: 28px; overflow: hidden; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; height: clamp(330px, 36vw, 440px); position: relative;
  display: flex; align-items: flex-end; }
.s-art { position: absolute; inset: 0; background: #2A6CA3 var(--pos, center) / cover no-repeat; }   /* the picture, behind the panel */
.s-panel { position: relative; margin: 0 0 54px 84px; max-width: 440px; padding: 22px 24px; border-radius: 22px; background: var(--surface); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.s-tag { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 3px 11px; border-radius: 999px; background: var(--chip); color: var(--accent); }
.s-panel h2 { margin: 4px 0 6px; font-size: 32px; line-height: 1.05; }
.s-panel p { margin: 0 0 16px; color: var(--muted); }
.s-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.s-row .st { display: flex; gap: 10px; opacity: .55; }
.s-row .st img { width: 18px; height: 18px; }
[data-theme="dark"] .s-row .st img, [data-theme="dark"] .store img { filter: invert(1); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font: 800 15px "Nunito", sans-serif;
  text-decoration: none; background: var(--cta); color: var(--cta-ink); box-shadow: 0 3px 0 var(--cta-2); border: 0; cursor: pointer; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset, 0 3px 0 var(--line); }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: .92; }
.arrow:hover { opacity: 1; }
.arrow.prev { left: 16px; } .arrow.next { right: 16px; }
.arrow.prev svg { transform: rotate(180deg); }
.dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; padding: 7px 10px; border-radius: 999px; background: rgba(0,0,0,.28); }
.dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; overflow: hidden; transition: width .3s; }
.dots button.on { width: 38px; background: rgba(255,255,255,.4); }
.dots button i { display: block; height: 100%; width: 0; background: #fff; }
.dots button.on i { animation: fill 6s linear forwards; }
.pager.paused .dots button.on i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dots button.on i { animation: none; width: 100%; } .track { scroll-behavior: auto; } }
.slide.storm .s-art { background: #221E2C url("/media/art/clouds-2400.jpg") center 40% / cover no-repeat; }
.slide.storm .big-logo { position: absolute; right: 10%; top: 50%; transform: translateY(-50%); width: 30%; max-width: 300px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.social-row { display: flex; gap: 8px; }
.social-row a, .soc a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--chip); color: var(--ink); }

/* Sections */
.sec { margin-top: 64px; scroll-margin-top: calc(var(--head-h) + 16px); }
.sec-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: 36px; line-height: 1; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.sec-head .right { margin-left: auto; }

/* The grid of games: elevated cards, and the category filter above them (Eddy: "here we could have the game
   category buttons? ... to filter the grid") */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.filters button { border: 0; font: 800 14px "Nunito", sans-serif; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset; }
@media (hover: hover) { .filters button:hover { color: var(--ink); } }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.gcard[hidden] { display: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gcard { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
/* hover only where there is a mouse: on a phone a tapped card or picture would stay lifted after it */
@media (hover: hover) { .gcard:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(var(--shadow), .08), 0 22px 44px rgba(var(--shadow), .16); } }
.g-art { aspect-ratio: 16 / 10; background: var(--chip) center / cover no-repeat; position: relative; overflow: hidden; }
.g-body { padding: 18px 20px 6px; }
.g-icons { display: flex; gap: 6px; margin: -42px 0 10px; position: relative; }
.g-icons img { width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--surface); background: var(--surface); object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.g-name { font: 700 24px/1.1 "DynaPuff", sans-serif; }
.g-line { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.g-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 20px 18px; }
.status { font-size: 12.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.g-go { margin-left: auto; font-weight: 800; color: var(--accent); }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 30px 0 96px; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; color: var(--muted); font-size: 14px; }
footer .who { display: flex; gap: 14px; align-items: center; }
footer .who img { width: 44px; height: 44px; }
footer .who b { color: var(--ink); font-size: 15px; }
footer .soc { display: flex; gap: 8px; justify-content: flex-end; }
footer .links { display: flex; gap: 18px; } footer .links a { text-decoration: none; font-weight: 700; }
footer .who a { color: inherit; }
footer .copy { text-align: right; }
/* /company and /privacy: the title on the band */
.page-title { color: var(--band-ink); font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; margin: 28px 0 32px; }
.co-card { max-width: 640px; margin-top: 32px; }
/* /privacy: long text to read, so a narrow column, a card per part; a store listing links a game's part by its id,
   and the header must not cover it (Eddy, 2026-11-05: "use the new design here") */
.policy { max-width: 760px; margin-top: 32px; }
.policy p { margin: 0 0 14px; overflow-wrap: break-word; }
.policy .pp-sec p:last-child { margin-bottom: 0; }
.pp-updated { color: var(--muted); font-size: 14px; font-weight: 700; }
.pp-games { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; padding: 0; }
.pp-games a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--chip); font-size: 14.5px; font-weight: 800; text-decoration: none; }
@media (hover: hover) { .pp-games a:hover { color: var(--accent); } }
.pp-sec { padding: 26px 28px; margin-bottom: 18px; scroll-margin-top: calc(var(--head-h) + 16px); }
.pp-sec h2 { font-size: 28px; line-height: 1.15; margin: 0 0 12px; }
.pp-sec h3 { font-size: 18px; line-height: 1.25; margin: 24px 0 6px; color: var(--accent); }
.pp-sec h3:first-child { margin-top: 0; }
@media (max-width: 560px) { .pp-sec { padding: 20px 18px; } }

/* Game pages */
.p-hero { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 8; background: center / cover no-repeat; }
.p-hero .wm { position: absolute; left: 4%; top: 9%; width: 34%; aspect-ratio: 1100 / 190; background: center / 116.4% auto no-repeat; }
/* The stores, in the banner (Eddy: "Maybe let's move the store icons in the banner?"): a frosted panel under the
   game's logo, one labelled row per version */
.p-hero-wrap { position: relative; }
.hero-stores { position: absolute; left: 3.5%; bottom: 18%; display: grid; gap: 10px; padding: 14px 16px 16px; border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); color: var(--ink); }
.hero-stores .s-tag { justify-self: start; }
.hs-row { display: grid; gap: 6px; }
.hs-row > span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hs-row > div { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-stores .store { padding: 7px 13px 7px 10px; background: var(--surface); }
.hero-stores .store b { color: var(--ink); font-size: 14.5px; }
.hero-stores .store img { opacity: .75; width: 19px; height: 19px; }
.p-head { display: flex; gap: 22px; align-items: flex-start; padding: 0 28px; }
.p-head .icons { display: flex; gap: 8px; margin-top: -56px; flex: none; position: relative; z-index: 1; }   /* in front of the banner */
.p-head .icons img { width: 112px; height: 112px; border-radius: 26px; border: 5px solid var(--bg); background: var(--bg); object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.p-head h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; margin: 14px 0 4px; }
.p-head .tag { margin: 0; color: var(--muted); font-size: 18px; }
.p-title { padding: 34px 0 10px; }
.p-title h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1; margin: 0 0 10px; }
.p-title p { color: var(--muted); font-size: 19px; margin: 0; max-width: 620px; }
[data-theme="dark"] .p-title { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
[data-theme="dark"] .p-title p { color: rgba(255,255,255,.85); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 14px; background: var(--bg); text-decoration: none; line-height: 1.15; box-shadow: 0 0 0 1px var(--line) inset; }
.store img { width: 22px; height: 22px; opacity: .5; }
.store small { display: block; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.store b { font-size: 15px; color: var(--muted); }
.store.play { background: var(--cta); box-shadow: 0 3px 0 var(--cta-2); }
.store.play b, .store.play small { color: var(--cta-ink); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); }
.tabs button { border: 0; background: none; font: 800 14px "Nunito", sans-serif; padding: 8px 16px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(var(--shadow), .15); }

/* The screenshots as a grid (Eddy: "the screenshots should be in a grid"); a click opens the viewer below */
.gallery { display: grid; gap: 14px; }
.gallery.landscape { grid-template-columns: repeat(3, 1fr); }
.gallery.portrait { grid-template-columns: repeat(5, 1fr); }
.shot { position: relative; display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--chip);
  box-shadow: 0 2px 8px rgba(var(--shadow), .14); transition: transform .2s, box-shadow .2s; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery.portrait .shot img { aspect-ratio: 9 / 16; }
@media (hover: hover) {
  .shot:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(var(--shadow), .12), 0 16px 32px rgba(var(--shadow), .16); }
  .shot:hover .play, button.yt:hover .play { transform: scale(1.08); }
}
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shot.is-video { cursor: pointer; }
.shot.is-video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45)); }
.shot .play, .yt .play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.95);
  box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .2s; }
.shot .play::after, .yt .play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 18px solid var(--cta); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.shot em { position: absolute; left: 14px; bottom: 11px; font-style: normal; font-weight: 800; font-size: 14px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* The viewer: one picture or video at a time over the page; arrows like the hub's banners, the dots, the counter */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 12, .94); color: #fff; animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lb-track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; place-items: center; padding: 70px 96px 76px; box-sizing: border-box; }
/* --lb-y: the room above and below the picture; dvh is the height a phone really shows, without its address bar */
.lb { --lb-y: 146px; }
.lb-slide > img, .lb-slide > video, .lb-slide > .yt { max-width: 100%; max-height: calc(100vh - var(--lb-y)); max-height: calc(100dvh - var(--lb-y));
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #000; }
.lb-slide > video, .lb-slide > .yt { aspect-ratio: var(--ar); width: min(100%, calc((100vh - var(--lb-y)) * var(--ar))); width: min(100%, calc((100dvh - var(--lb-y)) * var(--ar)));
  height: auto; }   /* its own shape before it loads */
/* a YouTube trailer (site.js ytCover): its picture, the play button and where it plays from, until it is pressed */
.lb-slide > iframe.yt { display: block; border: 0; }
.lb-slide > button.yt { position: relative; display: block; padding: 0; border: 0; overflow: hidden; color: #fff; font: inherit; cursor: pointer; }
button.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45)); }
button.yt img { display: block; width: 100%; height: 100%; object-fit: cover; }
button.yt small { position: absolute; left: 16px; bottom: 14px; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
button.yt:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* the letter games' picture has the game's name in the middle: the button goes to the corner, the words beside it */
button.yt.wide .play { inset: auto auto 16px 16px; margin: 0; }
button.yt.wide small { left: 92px; bottom: 39px; }
.lb .arrow { z-index: 2; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.24); }
.lb-count { position: absolute; top: 28px; left: 24px; font-weight: 800; font-size: 15px; opacity: .8; }
.lb-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.lb-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s; }
.lb-dots button.on { width: 26px; background: #fff; }
.lb button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cols { display: grid; grid-template-columns: 1fr 330px; gap: 40px; }
.about h2 { font-size: 28px; margin: 0 0 12px; }
.about p { margin: 0 0 16px; }
.feat { display: grid; gap: 12px; }
.feat div { padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.feat b { display: block; font: 700 17px "DynaPuff", sans-serif; }
.feat span { color: var(--muted); font-size: 15.5px; }
.facts { padding: 6px 20px; align-self: start; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts dt { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; font-weight: 700; }
.facts dl { margin: 0; }

/* Card games page (round 6, Eddy 2026-11-04: "similarly like with the Letter games and the tabs", no card fan, each
   game's server under that game): the five games as tabs - the three to come in dashed tiles - then the chosen
   game's card, its pictures, its server and its text. The picker, .pick and the folder are the letter page's. */
.picker.few { display: flex; flex-wrap: wrap; }
.picker.few button { width: 136px; }
.picker .ph, .p-head .icons .folder .ph { box-sizing: border-box; aspect-ratio: 1; display: grid; place-items: center; background: var(--chip);
  color: var(--muted); font-family: "Segoe UI Symbol", system-ui, sans-serif; line-height: 1; }
.picker .ph { width: 100%; max-width: 72px; border-radius: 22%; border: 2px dashed var(--line); font-size: 32px; transition: transform .2s; }
@media (hover: hover) { .picker button:hover .ph { transform: translateY(-3px); } }
.p-head .icons .folder .ph { border-radius: 9px; border: 1.5px dashed var(--line); font-size: 19px; background: var(--surface); }
.pick-stores .store.play b, .pick-stores .store.play small { color: var(--cta-ink); }
/* the chosen game's server: who is on it now, and its best players */
.online { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 22px; align-items: start; }
.online h3 { margin: 0 0 10px; font-size: 20px; }
.server { padding: 16px; border-radius: 16px; background: var(--bg); }
.server .sv-top { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.server img { width: 34px; height: 34px; border-radius: 9px; }
.server .sv-big { font: 700 30px/1 "DynaPuff", sans-serif; margin-top: 14px; }
.server .sv-big small { font: 700 14px "Nunito", sans-serif; color: var(--muted); }
.server .sv-meta { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.server .sv-play { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--accent); text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 4px rgba(31,157,99,.18); }
.server .dot { margin-left: auto; }
.dot.off { background: var(--muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 20%, transparent); }
.board .none { color: var(--muted); margin: 6px 0 0; }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 0 0 6px; }
.board td { padding: 7px 0; border-top: 1px solid var(--line); }
.board td:first-child { width: 28px; font-weight: 800; color: var(--muted); }
.board th:last-child, .board td:last-child { text-align: right; }
.board td:last-child { font-weight: 800; }
/* computer pictures four across, phone pictures eight across */
.gallery.landscape.x4 { grid-template-columns: repeat(4, 1fr); }
.gallery.portrait.x8 { grid-template-columns: repeat(8, 1fr); gap: 12px; }

/* Letter games page (round 5, Eddy: "a list of icons like tabs that you can click which switches the pages"): the
   eleven icons as tabs; under them the chosen game's card with its store buttons, then its pictures and its text */
.p-head .icons .folder { width: 112px; height: 112px; box-sizing: border-box; border-radius: 26px; border: 5px solid var(--bg); background: var(--chip);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.p-head .icons .folder img { width: 100%; height: auto; border: 0; border-radius: 9px; box-shadow: none; }
.picker { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; margin-top: 30px; }
.picker button { position: relative; display: grid; justify-items: center; gap: 7px; padding: 10px 2px 9px; border: 0; border-radius: 18px; background: none;
  font: 800 13.5px "Nunito", sans-serif; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.picker img { width: 100%; max-width: 72px; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 2px 6px rgba(var(--shadow), .2); transition: transform .2s; }
@media (hover: hover) {
  .picker button:hover { background: var(--chip); color: var(--ink); }
  .picker button:hover img { transform: translateY(-3px); }
}
.picker button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 2px var(--accent) inset, 0 6px 18px rgba(var(--shadow), .12); }
.picker button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* the chosen game's card, with a notch pointing up at its tab (--x, set by the page) */
.pick { position: relative; margin-top: 16px; padding: 20px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pick::before { content: ""; position: absolute; top: -9px; left: calc(var(--x, 60px) - 9px); width: 16px; height: 16px; background: var(--surface);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); transition: left .25s; }
.pick > div:first-child { flex: 1 1 320px; }
.pick h2 { margin: 0 0 4px; font-size: 28px; line-height: 1.1; }
.pick p { margin: 0; color: var(--muted); }
.pick-stores { display: grid; gap: 8px; justify-items: start; }
.pick-stores > div { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-stores .store { padding: 7px 13px 7px 10px; }
.pick-stores .store b { color: var(--ink); font-size: 14.5px; }
.pick-stores .store img { opacity: .75; width: 19px; height: 19px; }
/* a landscape trailer among phone pictures: six columns, the trailer over four (TK.gallery's "portrait lead") */
.gallery.lead { grid-template-columns: repeat(6, 1fr); }
.gallery .shot.wide { grid-column: span 4; }
.gallery .shot.wide img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
/* its picture has the game's name in the middle, so the play button sits in the corner, beside "Trailer" */
.gallery .shot.wide .play { inset: auto auto 16px 16px; margin: 0; width: 52px; height: 52px; }
.gallery .shot.wide .play::after { left: 20px; top: 15px; border-left-width: 15px; border-top-width: 11px; border-bottom-width: 11px; }
.gallery .shot.wide em { left: 80px; bottom: 30px; font-size: 15px; }

/* Terms (and later the privacy policy): one readable column on a card */
.doc { max-width: 780px; margin: 8px auto 0; padding: 30px 40px 34px; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; scroll-margin-top: calc(var(--head-h) + 16px); }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc a { color: var(--accent); }
.doc .updated { color: var(--muted); font-size: 14px; font-weight: 700; }
.doc .draft, .doc .note { background: #FFF4C2; color: #4A3B00; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.doc .note a, .doc .draft a { color: inherit; }
.doc .draft { margin-bottom: 18px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .grid, .online, .cols { grid-template-columns: 1fr; }
  .hero-stores { position: static; margin-top: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(var(--shadow), .06), 0 10px 28px rgba(var(--shadow), .10); }
  .gallery.portrait { grid-template-columns: repeat(4, 1fr); }
  .gallery.landscape { grid-template-columns: repeat(2, 1fr); }
  .p-head { padding: 0; margin-top: 18px; }
  .p-head .icons { margin-top: 0; }   /* the stores sit between the banner and the icon now */
  .gallery.landscape.x4 { grid-template-columns: repeat(2, 1fr); }
  .gallery.portrait.x8 { grid-template-columns: repeat(4, 1fr); }
  .s-panel { margin: 0 16px 50px; }
  .pager .arrow { display: none; }   /* they covered the panel's words; swipe or tap a dot */
  .slide.storm .big-logo { display: none; }
  .filters { margin-left: 0; }
  .picker { grid-template-columns: repeat(6, 1fr); }
  .gallery.lead { grid-template-columns: repeat(4, 1fr); }
  .gallery .shot.wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  /* the footer in one column, everything centred (Eddy, 2026-11-04: "the footer social icons not centered") */
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer .who { flex-direction: column; gap: 10px; } footer .who img { width: 56px; height: 56px; }
  footer .soc, footer .links { justify-content: center; } footer .copy { text-align: center; }
}

/* The hub's banners as cards on phones and upright tablets (Eddy, 2026-11-04: "banners looking weird" - the panel
   hid most of the picture): the picture on top in its own frame, the panel under it with "Open" at its foot on
   every card, the dots under the card. */
@media (max-width: 760px) {
  .pager { border-radius: 0; overflow: visible; }
  .track { border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(var(--shadow), .06), 0 10px 28px rgba(var(--shadow), .12); }
  .slide { height: auto; flex-direction: column; align-items: stretch; }
  .s-art { position: relative; inset: auto; aspect-ratio: 16 / 10; background-position: var(--pos-phone, var(--pos, center)); }
  .s-panel { flex: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: none; margin: 0; padding: 20px 24px 24px;
    border-radius: 0; box-shadow: none; }
  .s-panel p { margin-bottom: 14px; }
  .s-row { margin-top: auto; }
  .slide.storm .big-logo { display: block; right: auto; left: 50%; transform: translate(-50%, -50%); width: 40%; }
  .dots { position: static; transform: none; width: max-content; margin: 14px auto 0; background: var(--seg); }
  .dots button { background: color-mix(in srgb, var(--muted) 45%, transparent); }
  .dots button.on { background: color-mix(in srgb, var(--muted) 25%, transparent); }
  .dots button i { background: var(--ink); }
}

@media (max-width: 560px) {
  :root { --head-h: 62px; }
  .top-in { gap: 8px; }
  .brand { font-size: 19px; gap: 8px; } .brand img { width: 34px; height: 34px; }
  .seg button { min-width: 32px; height: 30px; padding: 0 7px; }
  .doc { padding: 22px 18px 24px; }
  .gallery { gap: 10px; }
  .gallery.portrait { grid-template-columns: repeat(3, 1fr); }
  .gallery.lead { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .gallery .shot.wide .play { inset: auto auto 10px 10px; width: 42px; height: 42px; }
  .gallery .shot.wide .play::after { left: 16px; top: 11px; border-left-width: 13px; border-top-width: 10px; border-bottom-width: 10px; }
  .gallery .shot.wide em { left: 62px; bottom: 21px; font-size: 14px; }
  .p-head .icons .folder { width: 76px; height: 76px; border-radius: 19px; border-width: 3px; padding: 6px; gap: 4px; }
  .p-head .icons .folder img { border-radius: 6px; }
  .picker { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
  .picker.few button { width: calc((100% - 12px) / 3); }
  .gallery.portrait.x8 { gap: 8px; }
  .online { padding: 16px; }
  .picker button { font-size: 12.5px; padding: 8px 2px 7px; }
  .pick { padding: 18px; }
  .pick h2 { font-size: 24px; }
  /* the viewer: room around the picture on every side (Eddy, 2026-11-04: "images in full screen mode missing
     padings") - the close button above it, the dots below */
  .lb { --lb-y: 156px; }
  .lb-slide { padding: 76px 20px 80px; }
  .p-head { gap: 14px; flex-wrap: wrap; } .p-head > div:last-child { flex: 1 1 200px; }
  .p-head .icons img { width: 76px; height: 76px; border-radius: 19px; border-width: 3px; }
  .p-head h1 { margin-top: 4px; }
  .arrow { display: none; }   /* the viewer's too: swipe */
  .s-panel { padding: 16px 18px 20px; }
  .s-panel h2 { font-size: 26px; }
  .picker.few { justify-content: center; }   /* the card games' five tabs: three, then two in the middle */
  .p-hero { aspect-ratio: 2 / 1; }           /* 21:8 was a thin strip on a phone */
  .p-hero .wm { width: 46%; }
}
@media (max-width: 380px) { .brand > span { display: none; } }

/* On a touch screen (no hover, no tap box): a press shows itself as a small push in. */
@media (hover: none) {
  .btn, .store, .soc a, .social-row a, .filters button, .tabs button, .seg button { transition: transform .12s; }
  .btn:active, .store:active, .gcard:active, .shot:active, .picker button:active, .filters button:active, .tabs button:active,
  .seg button:active, .social-row a:active, .soc a:active { transform: scale(.97); }
}

/* The playing cards stay white in every palette, so their corners keep a dark ink. */
.pcard .corner { color: #221C16; }
