/* Vilehead site v5: dark, bone-white, lava yellow-orange (colours of the Antumbra logos); every product has its own --accent */
/* fonts hosted here, not on Google: nothing may reach Google before the visitor agrees (fetched by _test/get_fonts.py) */
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IMFellEnglishSC-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/Inter-latin-ext.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/Inter-latin.woff2") format("woff2"); 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 {
  --bg: #0b0908;
  --bg2: #15100e;
  --card: #1a1412;
  --bone: #efe6cf;
  --bone-dim: #b9ad94;
  --gold: #ff7f11;
  --gold-bright: #ffa83a;
  --gold-dark: #8a2f04;
  --line: #3a2a24;
  --bar-h: 50px;
  --dock-h: 46px;
  --head: "IM Fell English SC", Georgia, serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); scroll-padding-bottom: var(--dock-h); scroll-snap-type: y mandatory; }
/* every page piece fills the space between the two bars and snaps into place */
.hero, .shelf, .plain { scroll-snap-align: start; scroll-snap-stop: always; }
:root { --view-h: calc(100vh - var(--bar-h) - var(--dock-h)); }
@supports (height: 100svh) { :root { --view-h: calc(100svh - var(--bar-h) - var(--dock-h)); } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 17px/1.6 var(--body);
  padding-bottom: var(--dock-h);
}
/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* delicate scanlines over the whole page: light gold lines blended with soft-light, so text stays readable */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 91;
  background: repeating-linear-gradient(180deg, rgba(255, 172, 92, .22) 0 1px, transparent 1px 3px);
  mix-blend-mode: soft-light;
}
a { color: var(--bone); }
img { max-width: 100%; display: block; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(14px, 4vw, 48px);
  background: rgba(11, 9, 8, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 42, 36, .7);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font: 26px var(--head); letter-spacing: .06em; text-transform: uppercase; }
.bar nav { display: flex; gap: clamp(6px, 2vw, 24px); overflow-x: auto; scrollbar-width: none; }
.bar nav a {
  position: relative; padding: 8px 6px;
  text-decoration: none; color: var(--bone-dim); white-space: nowrap;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px;
  transition: color .2s;
}
.bar nav a::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.bar nav a:hover, .bar nav a.active { color: var(--bone); }
.bar nav a.active::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: calc(100vh - var(--dock-h));
  display: grid; place-items: center;
  padding: calc(var(--bar-h) + 20px) clamp(18px, 4vw, 56px) 70px;
  background:
    radial-gradient(ellipse at 30% 40%, #451a02 0%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, #2e0d01 0%, transparent 55%);
}
@supports (height: 100svh) { .hero { height: calc(100svh - var(--dock-h)); } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; }
/* side fireflies: one fixed layer behind all sections; the hero's own background covers it */
.side-embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
/* logo on the left, the text next to it (Radek 2026-10-25) */
.hero-inner {
  position: relative; width: 100%; max-width: 1180px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero-logo { width: min(320px, 28vw, 46vh); margin: 0; }
/* round logo (hero and About): breathes, with a thin pulsing lightsaber rim, white core fading into gold-orange (Radek 2026-10-25) */
.coin { position: relative; animation: breathe 6s ease-in-out infinite; }
.coin img { width: 100%; height: auto; display: block; }
.coin::after {
  content: ""; position: absolute; inset: 3.7%; border-radius: 50%; pointer-events: none;  /* coin edge: radius ~0.463 of the box */
  box-shadow:
    0 0 0 1px rgba(255, 252, 240, .9), 0 0 3px 1px rgba(255, 246, 225, .85),
    0 0 8px 2px rgba(255, 176, 60, .7), 0 0 18px 4px rgba(255, 110, 10, .42),
    inset 0 0 3px 1px rgba(255, 246, 225, .55), inset 0 0 9px 2px rgba(255, 140, 25, .32);
  animation: saber 2.6s ease-in-out infinite;
}
@keyframes saber {
  0%, 100% { opacity: 1; }
  45% { opacity: .5; }
  52% { opacity: .72; }  /* tiny hum flicker */
  58% { opacity: .55; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 24px rgba(255, 112, 10, .34)); }
  50% { transform: scale(1.025); filter: drop-shadow(0 0 46px rgba(255, 120, 10, .62)); }
}
.hero h1 {
  font: clamp(52px, min(8vw, 13vh), 104px)/1 var(--head);
  letter-spacing: .08em; margin: 0 0 10px; text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 120, 20, .28);
}
.hero p { margin: 0; color: var(--bone-dim); font-size: 19px; }
.hero .hi { color: var(--bone); font-style: italic; font-size: 21px; margin-bottom: 4px; }
.hero .welcome { margin-bottom: clamp(16px, 3.5vh, 30px); }

/* product icons: click = jump to the product, hover = shine sweep + grow */
/* Radek 2026-10-27: bigger icons, software in 3 + 3, a line, then Antumbra with Antumbra 2 under it. --hi = icon size */
.hicons { --hi: clamp(64px, min(6.4vw, 10.5vh), 96px); display: flex; align-items: stretch; gap: 0 clamp(18px, 2.6vw, 34px); }
.hicons-group { display: grid; gap: 12px clamp(12px, 1.4vw, 20px); align-content: center; }
.hicons-sw { grid-template-columns: repeat(4, auto); }
.hicons-gm { grid-template-columns: repeat(2, auto); }
.hicons-group + .hicons-group { padding-left: clamp(18px, 2.6vw, 34px); border-left: 1px solid var(--line); }
.hicon { display: flex; flex-direction: column; align-items: center; gap: 7px; width: calc(var(--hi) + 14px); text-decoration: none; }
.hicon-img {
  position: relative; overflow: hidden; display: block;
  width: var(--hi); height: var(--hi); border-radius: calc(var(--hi) * .24);
  background-color: #000; background-size: cover; background-repeat: no-repeat;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.hicon-img::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%);
  transform: translateX(-110%); pointer-events: none;
}
.hicon-name {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--bone-dim);
  text-align: center; line-height: 1.2; transition: color .2s;
}
.hicon:hover .hicon-img, .hicon:focus-visible .hicon-img {
  transform: scale(1.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .7), 0 0 22px color-mix(in srgb, var(--accent) 60%, transparent);
}
.hicon:hover .hicon-img::after, .hicon:focus-visible .hicon-img::after { transform: translateX(110%); transition: transform .7s ease; }
.hicon:hover .hicon-name, .hicon:focus-visible .hicon-name { color: var(--bone); }
/* catchy one-liner that pops up under the hovered icon */
.hicon { position: relative; }
.hicon-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 5;
  width: max-content; max-width: 230px; padding: 8px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 600; font-style: italic; line-height: 1.35; text-align: center; color: var(--bone);
  background: rgba(14, 10, 6, .94); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .7), 0 0 18px color-mix(in srgb, var(--accent) 25%, transparent);
  opacity: 0; transform: translate(-50%, -6px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.hicon-tip::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; border-left: inherit; border-top: inherit; transform: rotate(45deg);
}
.hicon:hover .hicon-tip, .hicon:focus-visible .hicon-tip { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .hicon-tip { display: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  display: block; width: 26px; height: 42px;
  border: 2px solid var(--bone-dim); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--bone); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- section titles ---------- */
.plain h2, .shelf-label {
  font: clamp(40px, min(7vw, 10vh), 80px)/1 var(--head); letter-spacing: .08em; margin: 0;
}
/* VHS wobble like ScreenMod's Video tape: thin horizontal rows jump sideways (SVG filter #wobble, app.js reseeds it) */
.hero h1 .t, h2 .t { display: inline-block; filter: url(#wobble); }
@media (prefers-reduced-motion: reduce) { .hero h1 .t, h2 .t { filter: none; } }
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* blinking DOS cursor after the hero name and every section title */
.cur { animation: blink 1.06s linear infinite; }
.cur::before { content: "_"; }  /* drawn by CSS so the cursor is not part of the heading text */
@keyframes blink { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
h2 .t { padding-left: .5em; }  /* balances the cursor on the right, so the word stays centred */
/* flourishes on both sides of a section title: a 3-column grid, so in a narrow section (Contact, 900px) the flourishes
   shrink instead of wrapping onto the next line (Radek 2026-10-27) */
.plain h2, .shelf-label {
  --orn-w: min(150px, 12vw);
  display: grid; grid-template-columns: minmax(0, var(--orn-w)) auto minmax(0, var(--orn-w));
  justify-content: center; align-items: center; column-gap: .3em;
}
.orn { width: 100%; height: auto; fill: #ffa040; stroke: #ffa040;
  filter: drop-shadow(0 0 5px rgba(255, 120, 15, .6)); overflow: visible; }
.orn.r { transform: scaleX(-1); }
.plain h2::after, .shelf-label::after {
  content: ""; grid-column: 1 / -1; justify-self: center; width: 120px; height: 3px; margin-top: 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- product backgrounds (live layers behind every card) ---------- */
.bg { position: absolute; inset: 0; z-index: -2; background: #000; }
.bg-video video, .bg-img, .bg-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-video video { object-fit: cover; }
.bg-img, .bg-slide { background-size: cover; background-position: center; }
.bg-img { animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.12) translate(-1.5%, -1%); } to { transform: scale(1) translate(0, 0); } }
.bg-slide { opacity: 0; animation: slides 24s infinite; }
.bg-slide:nth-child(2) { animation-delay: 6s; }
.bg-slide:nth-child(3) { animation-delay: 12s; }
.bg-slide:nth-child(4) { animation-delay: 18s; }
.bg-slide:only-child { opacity: 1; animation: kenburns 28s ease-in-out infinite alternate; filter: blur(6px); }
@keyframes slides {
  0% { opacity: 0; transform: scale(1.1); }
  6%, 25% { opacity: 1; }
  33%, 100% { opacity: 0; transform: scale(1); }
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }

.tag { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.platforms li {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.platforms .ico { width: 15px; height: 15px; color: var(--accent); }
.desc { color: var(--bone); opacity: .88; margin: 0 0 min(24px, 2.6vh); max-width: 52ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
/* buttons in the style of the site (Radek 2026-11-02): dark plate, double hairline frame, diamonds on both ends like the side rails, title font */
.store {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px; border-radius: 3px; text-decoration: none; cursor: pointer;
  font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; font-size: 17px; letter-spacing: .05em; line-height: 1.15; color: var(--bone);
  background: #15100c;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--gold)) 18%, #15100c), #0e0a07);
  border: 1px solid var(--accent, var(--gold));
  box-shadow: inset 0 0 0 2px #0e0a07, inset 0 0 0 3px rgba(239, 230, 207, .14), 0 6px 18px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s, color .2s;
}
.store::after {
  content: ""; position: absolute; inset: 0 -5px; pointer-events: none; background: var(--accent, var(--gold));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E") left center / 10px 10px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E") right center / 10px 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E") left center / 10px 10px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E") right center / 10px 10px no-repeat;
}
.store .ico { width: 18px; height: 18px; color: var(--accent, var(--gold)); }
a.store:hover, a.store:focus-visible, button.store:hover, button.store:focus-visible {
  transform: translateY(-1px); color: #fff;
  box-shadow: inset 0 0 0 2px #0e0a07, inset 0 0 18px color-mix(in srgb, var(--accent, var(--gold)) 45%, transparent), 0 0 22px color-mix(in srgb, var(--accent, var(--gold)) 50%, transparent);
}
.store.off {
  background: rgba(24, 20, 18, .88); color: rgba(185, 173, 148, .55); cursor: not-allowed;
  border-color: rgba(185, 173, 148, .28); box-shadow: inset 0 0 0 2px #0e0a07, inset 0 0 0 3px rgba(239, 230, 207, .05);
}
.store.off .ico { color: inherit; }
.store.off::after { background: rgba(185, 173, 148, .3); }
/* screenshot frame */
.frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 60px color-mix(in srgb, var(--accent) 18%, transparent);
  cursor: zoom-in;
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 6s ease-out;
}
.frame img.on { opacity: 1; transform: scale(1); }
.frame .nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--bone);
  background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s, background .2s;
}
.frame .nav .ico { width: 26px; height: 26px; }
.frame .prev { left: 12px; } .frame .next { right: 12px; }
.frame:hover .nav, .frame .nav:focus-visible { opacity: 1; }
@media (hover: none) { .frame .nav { opacity: .8; } }
.frame .nav:hover { background: color-mix(in srgb, var(--accent) 70%, #000); }
/* ---------- shelves (Software, Games): 4 cards on one screen (desktop), 2 per screen (phone) ---------- */
.shelf { min-height: var(--view-h); display: grid; align-items: center; }
.shelf-wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: min(18px, 2vh) clamp(14px, 2.5vw, 40px); }
.shelf-label { text-align: center; margin-bottom: clamp(12px, 2.4vh, 24px); font-size: clamp(36px, min(5vw, 7vh), 60px); }
/* flex, not grid: a shelf with 3 games keeps the 4-column card size and sits centred */
.cards { --cols: 4; --gap: clamp(12px, 1.4vw, 22px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.card {
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  display: flex; flex-direction: column; gap: clamp(8px, 1.5vh, 12px);
  padding: clamp(12px, 2vh, 16px) 16px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  /* glowing frame: brighter since 2026-10-25 (Radek), much stronger on hover */
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 26px color-mix(in srgb, var(--accent) 30%, transparent),
              inset 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), border-color .3s, box-shadow .3s;
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* hover: grows a little + the same shine sweep as the hero icons */
.card::after {
  content: ""; position: absolute; inset: -30%; z-index: 5; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 236, 190, .16) 50%, transparent 60%);
  transform: translateX(-100%);
}
.card:hover {
  z-index: 2; transform: scale(1.035);
  border-color: color-mix(in srgb, var(--accent) 100%, #fff 25%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .7), 0 0 0 1px var(--accent),
              0 0 22px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 70px color-mix(in srgb, var(--accent) 42%, transparent),
              inset 0 0 26px color-mix(in srgb, var(--accent) 28%, transparent);
}
.card:hover::after { transform: translateX(100%); transition: transform .9s ease; }
.card.ping { animation: ping 1.4s ease-out; }
@keyframes ping { 0%, 30% { box-shadow: 0 0 0 3px var(--accent), 0 0 60px color-mix(in srgb, var(--accent) 60%, transparent); } }
.card-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 5, .55) 0%, rgba(8, 6, 5, .8) 45%, rgba(8, 6, 5, .93) 100%);
}
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.soon-badge {
  padding: 3px 9px; white-space: nowrap; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(0, 0, 0, .6); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.card-head { display: flex; align-items: center; gap: 12px; }
.card-logo { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent)); }
.card .tag { font-size: 11px; }
.card h3 { margin: 0; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.1; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.card-mid { display: flex; flex-direction: column; gap: 12px; }
.card .frame { cursor: pointer; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.card .frame .nav { width: 34px; height: 34px; }
.card .frame .nav .ico { width: 20px; height: 20px; }
.card .frame .prev { left: 8px; } .card .frame .next { right: 8px; }
.card .desc {
  margin: 0; font-size: 14.5px; line-height: 1.5; max-width: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
/* low windows (1080p at 125%, laptops): smaller text so a shelf still fits one screen */
@media (max-height: 820px) and (min-width: 701px) {
  .card .desc { font-size: 13.5px; line-height: 1.42; -webkit-line-clamp: 5; line-clamp: 5; }
  .card h3 { font-size: clamp(18px, 1.5vw, 22px); }
  .card-logo { width: 44px; height: 44px; }
}
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.card .platforms { margin: 0; }
.card .platforms li { padding: 3px 9px; font-size: 12px; }
.card .stores { gap: 6px; }
.card .store { padding: 7px 10px; gap: 6px; font-size: 12px; border-radius: 8px; }
.card .store .ico { width: 15px; height: 15px; }

/* ---------- showcase (WIP, Radek 2026-10-27): one big product panel that slides, thumbnails of every product below ----------
   --sc-h = panel height: the screen between the bars minus the title and the thumbnail row, so a shelf still fits one screen */
.sc {
  --sc-h: clamp(300px, calc(var(--view-h) - 240px), 660px); --sc-pad: clamp(16px, 3vh, 36px);
  display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 18px);
}
.sc-stage {
  position: relative; height: var(--sc-h); border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--cur) 65%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 34px color-mix(in srgb, var(--cur) 32%, transparent),
              inset 0 0 22px color-mix(in srgb, var(--cur) 16%, transparent);
  transition: border-color .7s, box-shadow .7s;
}
/* the hidden slides must not widen the page: without this the grid shelf grows to the sum of all slides' minimum widths */
.showcase .shelf-wrap, .sc, .sc-stage { min-width: 0; }
.sc-stage { contain: inline-size; }
/* the panel is as tall as its tallest slide (every slide holds the whole product sheet, Radek 2026-10-27) */
.sc-stage { height: auto; display: flex; }
/* slides stacked in one cell; a change dissolves the old slide away (soft dissolve in app.js, Radek 2026-10-27) */
.sc-track { display: grid; grid-template-columns: 100%; flex: 0 0 100%; min-width: 0; }
.sc-track > .slide { grid-area: 1 / 1; }
.sc-track > .slide:not(.on):not(.leaving) { visibility: hidden; }
.sc-track > .slide.leaving { z-index: 2; }
.slide {
  position: relative; flex: 0 0 100%; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sc-pad) clamp(58px, 5vw, 84px);  /* sides leave room for the arrows */
}
.slide-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 6, 5, .74) 0%, rgba(8, 6, 5, .88) 50%, rgba(8, 6, 5, .95) 100%);
}
.slide .pm-head { padding-right: 0; }
.slide .pm-head h3 { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
/* the 16:9 picture shrinks with the window height, so the whole shelf fits one screen */
/* picture + 2 rows of its thumbnails take 27/32 of the picture width; 440px = title + product thumbnails + head + paddings (measured 2026-11-02); low windows keep 400px.
   The picture column is exactly as wide as the picture, the text takes everything left (less wrapping = lower panel) */
.slide .pm-body { grid-template-columns: min(58%, max(400px, calc((var(--view-h) - 440px) * 32 / 27))) minmax(0, 1fr); }
@media (max-height: 820px) and (min-width: 901px) {
  .sc { --sc-pad: 12px; }
  .slide .pm-head { margin-bottom: 8px; }
  .slide .pm-head h3 { font-size: clamp(26px, 4.4vh, 34px); }
  .slide .pm-logo { width: 64px; height: 64px; }
  .sc .sc-thumb { padding: 5px 10px 5px 5px; }  /* .sc prefix: these rules sit above the thumbnail rules in the file */
  .sc .sc-thumb-img { width: 42px; height: 42px; }
  .sc .sc-thumb-tag { font-size: 9.5px; line-height: 1.15; }
  /* the title gives up the height the capsule row needs (measured at 1534x701, Radek's window: 125% on 1080p) */
  .showcase .shelf-wrap { padding-top: 6px; padding-bottom: 6px; }
  .showcase .shelf-label { font-size: clamp(32px, 5.6vh, 44px); margin-bottom: 8px; }
  .showcase .shelf-label::after { margin-top: 6px; }
}
.slide .pm-stage { box-shadow: 0 20px 50px rgba(0, 0, 0, .65), 0 0 40px color-mix(in srgb, var(--accent) 22%, transparent); }
.slide .stores { gap: 8px; justify-content: center; }
.slide .store { padding: 7px 16px; font-size: 16px; }
.sc-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cur) 55%, transparent); cursor: pointer;
  display: grid; place-items: center; color: var(--bone); background: rgba(0, 0, 0, .55);
  transition: background .2s, transform .2s;
}
.sc-nav .ico { width: 28px; height: 28px; }
.sc-nav:hover { background: color-mix(in srgb, var(--cur) 65%, #000); transform: scale(1.08); }
.sc-prev { left: 10px; } .sc-next { right: 10px; }
/* thumbnails of every product: the picked one glows in its colour; many products = the row scrolls sideways */
.sc-thumbs {
  position: relative; display: flex; gap: 12px; justify-content: safe center; overflow-x: auto;
  padding: 4px 4px 8px; scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent;
}
.sc-thumb {
  flex: 1 1 0; min-width: 170px; max-width: 236px;  /* share the row; too many products = the row scrolls sideways */
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 7px; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--bone);
  background: rgba(26, 20, 18, .72); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  opacity: .62; transition: opacity .25s, transform .25s, border-color .25s, box-shadow .25s, background .25s;
}
.sc-thumb-img { width: 46px; height: 46px; flex: none; border-radius: 10px; background: #000 center / cover no-repeat; }
.sc-thumb-txt { display: flex; flex-direction: column; min-width: 0; }
.sc-thumb-name { font-weight: 800; font-size: 14px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the subtitle wraps instead of being cut (Radek 2026-10-27); three short lines still fit the thumbnail's height */
.sc-thumb-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); line-height: 1.2;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sc-thumb:hover, .sc-thumb:focus-visible { opacity: 1; transform: translateY(-2px); }
.sc-thumb.on {
  opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, rgba(20, 15, 12, .92));
  box-shadow: 0 0 0 1px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent);
}
/* Steam small capsules (Radek 2026-11-01): all of them share one row, the row height follows the window height; no text, the art has the name */
.sc-thumbs:has(.sc-cap) { --cap-h: clamp(44px, 8.2vh, 84px); gap: 10px; overflow: visible; padding: 0; }
.sc-thumb.sc-cap {
  flex: 0 1 calc(var(--cap-h) * 462 / 174); min-width: 0; max-width: none; display: block; padding: 0; overflow: hidden;
  background: #000; opacity: .72;
}
.sc-cap img { display: block; width: 100%; height: auto; }
.sc-thumb.sc-cap:hover, .sc-thumb.sc-cap:focus-visible, .sc-thumb.sc-cap.on { opacity: 1; }
@media (max-width: 1040px) {  /* below ~118 px a capsule stops being readable: keep the size, the row scrolls sideways */
  .sc-thumbs:has(.sc-cap) { overflow-x: auto; padding: 4px 4px 8px; justify-content: flex-start; }
  .sc-thumb.sc-cap { flex: 0 0 150px; }
}
@media (max-width: 900px) {
  .slide { justify-content: flex-start; padding: 14px; }
  .slide .pm-head { padding: 0 44px; }  /* the product arrows sit beside the logo */
  .slide .pm-body { grid-template-columns: 1fr; }
  .sc-nav { top: 14px; translate: 0; width: 38px; height: 38px; }
  .sc-prev { left: 8px; } .sc-next { right: 8px; }
  .sc-nav .ico { width: 24px; height: 24px; }
  .sc-thumb { flex: 0 0 160px; min-width: 0; padding: 6px 10px 6px 6px; }
  .sc-thumb-img { width: 40px; height: 40px; }
}
@media (max-width: 700px) {
  .showcase { scroll-snap-align: start; }
  .slide .store { padding: 6px 12px; font-size: 15px; }
}

/* live effect layers on product backgrounds */
.fx { position: absolute; inset: 0; pointer-events: none; }
.fx-rim::before {
  content: ""; position: absolute; inset: 4%; border-radius: 18px; padding: 10px;
  background: conic-gradient(from var(--a, 0deg), #ff3ea5, #7a5cff, #2de2e6, #ffe14d, #ff3ea5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(6px) drop-shadow(0 0 22px #ff3ea5);
  animation: spin 6s linear infinite, beat .9s ease-in-out infinite;
}
@keyframes beat { 0%, 100% { opacity: .55; } 35% { opacity: 1; } }
.fx-crt {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .38) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .65) 100%);
  animation: flicker 4s steps(2) infinite;
}
.fx-crt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(125, 255, 176, .07), transparent);
  animation: roll 7s linear infinite;
}
@keyframes flicker { 0%, 93%, 100% { opacity: 1; } 96% { opacity: .8; } }
@keyframes roll { from { top: -20%; } to { top: 110%; } }
.bg-crt .bg-img { filter: saturate(1.2) contrast(1.05); }
.bg-wave { background: radial-gradient(ellipse at 70% 50%, #0d2a33 0%, #05080b 70%); }
.bg-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-wave line { stroke: #ff3b4e; stroke-width: 2; stroke-dasharray: 10 10; opacity: .7; }
.bg-wave path { fill: none; stroke: var(--accent); stroke-width: 4; filter: drop-shadow(0 0 8px var(--accent)); }
.bg-wave .w1 { animation: slide 3s linear infinite; }
.bg-wave .w2 { animation: slide 5s linear infinite reverse; opacity: .35; }
@keyframes slide { to { transform: translateX(-400px); } }

/* ---------- plain sections ---------- */
.plain {
  max-width: 900px; margin: 0 auto; padding: min(40px, 4vh) clamp(18px, 4vw, 40px);
  min-height: var(--view-h); display: flex; flex-direction: column; justify-content: center;
}
.plain h2 { text-align: center; margin-bottom: min(40px, 4vh); }
.about { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; }
.about-logo { position: relative; width: 160px; }
.about-logo .coin { z-index: 1; }
/* drops from the About logo: canvas behind the coin, reaching well below it */
.about-logo .drips { position: absolute; left: -70%; top: -20%; width: 240%; height: 320%; z-index: 0; pointer-events: none; }
.about p { color: var(--bone-dim); margin: 0 0 min(12px, 1.4vh); font-size: clamp(15px, 2.5vh, 18px); }
.about .lead { font: clamp(24px, 4vh, 30px)/1.2 var(--head); letter-spacing: .04em; color: var(--bone); margin-bottom: 14px; }
.about .outro { color: var(--bone); font-style: italic; margin-top: 18px; }
/* text links: bright bold, no underline (Radek 2026-10-25: an underline looks like Chrome's spell-check mark) */
.about a {
  color: var(--gold-bright); font-weight: 700; text-decoration: none;
  transition: color .2s, text-shadow .2s;
}
.about a:hover, .about a:focus-visible { color: #fff2c8; text-shadow: 0 0 12px rgba(255, 150, 40, .75); }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: min(10px, 1.1vh);
  background: rgba(26, 20, 18, .6); transition: border-color .2s;
}
.faq details[open] { border-color: var(--gold-dark); }
/* 8 questions: two columns on wide screens, so the section still fits one low window (1366x680) */
@media (min-width: 901px) {
  .faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }
}
.faq summary {
  cursor: pointer; list-style: none; padding: min(14px, 1.5vh) 20px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
/* closed questions all the same height: room for two lines, short ones centred (Radek 2026-10-27) */
@media (min-width: 901px) {
  .faq summary { line-height: 1.4; min-height: calc(2.8em + 2 * min(14px, 1.5vh)); }
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--bone-dim); }
.contact { text-align: center; }
.contact p { color: var(--bone-dim); }
/* stacked: form, Discord, X, one under another, all as wide as the widest (Radek 2026-11-04) */
.contact-links { display: grid; grid-template-columns: auto; justify-content: center; gap: 14px; margin: 20px 0; }
.contact .store { --accent: var(--gold); justify-content: center; }
.todo { font-size: 14px; opacity: .7; }

/* ---------- bottom dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  height: var(--dock-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(14px, 4vw, 48px);
  background: rgba(11, 9, 8, .82); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(58, 42, 36, .7);
}
.socials { display: flex; gap: clamp(6px, 2vw, 18px); }
.socials a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--bone-dim); transition: color .2s, background .2s, transform .2s;
}
.socials a .ico { width: 22px; height: 22px; }
.socials a:hover { color: var(--bone); background: rgba(255, 127, 17, .24); transform: translateY(-2px); }
.dock small { position: absolute; right: clamp(14px, 4vw, 48px); color: var(--bone-dim); opacity: .6; font-size: 12px; }
.consent-open {
  position: absolute; left: clamp(14px, 4vw, 48px); padding: 6px 2px;
  background: none; border: 0; cursor: pointer;
  font: 12px var(--body); color: var(--bone-dim); opacity: .6; transition: opacity .2s;
}
.consent-open:hover, .consent-open:focus-visible { opacity: 1; }

/* cookie banner (Radek 2026-10-25): sits on the footer, slides back under it after a click, so it must stay below .dock */
.consent {
  position: fixed; left: 0; right: 0; bottom: var(--dock-h); z-index: 79;
  display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 12px clamp(14px, 4vw, 48px);
  background: var(--bg2); border-top: 1px solid var(--line);
  transform: translateY(100%); visibility: hidden;
  transition: transform .35s ease, visibility 0s .35s;
}
.consent.open { transform: none; visibility: visible; transition: transform .35s ease; }
.consent p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--bone); }
.consent p a { margin-left: 8px; font-size: 12px; color: var(--bone-dim); }
.privacy { padding: 0; }
.privacy main { max-width: 760px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 32px) 64px; font-size: 16px; }
.privacy h1 { font: 44px var(--head); margin: 18px 0 12px; }
.privacy h2 { font: 24px var(--head); margin: 28px 0 6px; }
.privacy a { color: var(--gold-bright); }
.privacy code { font-size: 14px; color: var(--bone-dim); }
.err404 main { text-align: center; padding-top: clamp(28px, 7vh, 64px); }
.err404 .err-logo { display: block; width: 110px; height: 110px; margin: 0 auto; }
.err404 h1 { font: clamp(64px, 14vw, 112px)/1 var(--head); margin: 10px 0 0; }
.err404 .err-lead { font: clamp(21px, 4vw, 28px) var(--head); color: var(--gold-bright); margin: 6px 0 14px; }
.err404 .err-links { display: flex; justify-content: center; gap: 22px; margin: 18px 0 26px; font-size: 18px; }
.consent-btns { display: flex; gap: 10px; flex: none; }
.consent button {
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  background: var(--card); color: var(--bone); font: 700 13px var(--body); transition: border-color .2s;
}
.consent button:hover, .consent button:focus-visible { border-color: var(--gold); }

/* ---------- side rails (WIP, Radek 2026-10-27): ornamental columns on both edges that pretend to be a scrollbar ----------
   Content gets padding as wide as a rail, so nothing hides under them. --p (0..1 scroll depth) comes from app.js. */
:root { --rail-w: clamp(16px, 2.1vw, 34px); }
body.rails main { padding-inline: var(--rail-w); }
/* no panel behind the ornaments (Radek 2026-10-27: no fill, blend lightly into the background but stay visible) */
.rail {
  position: fixed; top: var(--bar-h); bottom: var(--dock-h); z-index: 79; width: var(--rail-w);
  display: flex; flex-direction: column; align-items: center; padding: 12px 0;
  opacity: .6; transition: opacity .3s;
}
.rail:hover { opacity: 1; }
.rail.l { left: 0; }
.rail.r { right: 0; transform: scaleX(-1); }  /* mirror of the left rail */
/* diamond caps at both ends, like the title flourishes */
.rail-cap {
  position: relative; flex: none; width: clamp(7px, calc(var(--rail-w) * .38), 11px); aspect-ratio: 1;
  rotate: 45deg; border: 1.5px solid #ffa040; box-shadow: 0 0 6px rgba(255, 120, 15, .6);
}
.rail-cap::after { content: ""; position: absolute; inset: 28%; background: #ffa040; }
.rail-track { position: relative; flex: 1; width: 100%; margin: 12px 0; }
/* the track: a faded gold line with a thinner companion line, the same pair as in the title flourishes */
.rail-track::before, .rail-track::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  background: linear-gradient(180deg, transparent, rgba(255, 127, 17, .4) 6%, rgba(255, 127, 17, .4) 94%, transparent);
}
.rail-track::before { width: 2px; margin-left: -1px; }
.rail-track::after { width: 1px; margin-left: calc(var(--rail-w) * -.24); opacity: .45; top: 10%; bottom: 10%; }
/* lava that has already flowed: from the top down to the marker */
.rail-fill {
  position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, rgba(255, 127, 17, .15), #ffa83a);
  box-shadow: 0 0 6px rgba(255, 120, 15, .75);
}
/* section notches; the ones already passed light up. Click = jump (app.js) */
.rail-ticks i {
  position: absolute; left: 50%; width: clamp(6px, calc(var(--rail-w) * .45), 12px); height: 2px; translate: -50% -50%;
  background: rgba(185, 173, 148, .45); cursor: pointer; transition: background .3s, box-shadow .3s;
}
.rail-ticks i::before { content: ""; position: absolute; inset: -7px -4px; }  /* easier to hit */
.rail-ticks i.passed { background: var(--gold-bright); box-shadow: 0 0 6px rgba(255, 140, 30, .8); }
.rail-ticks i:hover { background: #fff2c8; box-shadow: 0 0 8px rgba(255, 200, 120, .9); }
/* the marker: a glowing diamond with a white-hot core, pulsing like the logo's rim */
.rail-thumb {
  position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); pointer-events: none;
  width: clamp(8px, calc(var(--rail-w) * .42), 13px); aspect-ratio: 1; translate: -50% -50%; rotate: 45deg; border-radius: 2px;
  background: radial-gradient(circle, #fffbe8 0 22%, #ffc061 42%, #ff7f11 75%);
  box-shadow: 0 0 0 1px rgba(255, 246, 225, .8), 0 0 7px 2px rgba(255, 176, 60, .85), 0 0 18px 5px rgba(255, 110, 10, .45);
  animation: saber 2.6s ease-in-out infinite;
}
.rail-thumb::after {  /* soft vertical glow trail, kept straight despite the diamond's rotation */
  content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 340%;
  translate: -50% -50%; rotate: -45deg; border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 170, 60, .55), transparent);
}
@media (max-width: 600px) {
  :root { --rail-w: 10px; }
  .rail { padding: 8px 0; }
  .rail-track { margin: 8px 0; }
  .rail-track::after { display: none; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(0, 0, 0, .92); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img, .lightbox video { max-width: 94vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 80px #000; }
.lightbox video { width: min(94vw, 160vh); cursor: auto; }
.lightbox [hidden] { display: none; }
/* "Watch trailer" on a card: opens the trailer big, with sound */
.gallery { position: relative; }
.watch {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 9px; border-radius: 999px; cursor: pointer;
  font: 800 12px var(--body); letter-spacing: .04em; color: #0b0908;
  background: var(--accent); border: 0;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .2s, filter .2s;
}
.watch .ico { width: 16px; height: 16px; }
.watch:hover { transform: scale(1.06); filter: brightness(1.12); }
.lb-close {
  position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border: 0; border-radius: 50%;
  font-size: 30px; color: var(--bone); background: rgba(255, 255, 255, .1); cursor: pointer;
}

/* ---------- product sheet (modal dialog): page dims, the sheet fades in over half a second ---------- */
html:has(dialog.pm[open]) { overflow: hidden; }
.pm {
  width: min(1180px, 94vw); max-height: 90vh; max-height: 90svh; padding: min(clamp(18px, 2.6vw, 34px), 3.6vh); overflow: auto;
  color: var(--bone); background: linear-gradient(180deg, #1c1411, #110c0a);
  border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent); border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .8), 0 0 0 1px var(--accent), 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent),
              inset 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
  scrollbar-color: var(--gold-dark) transparent;
}
.pm[open] { animation: pmIn .5s ease both; }
.pm::backdrop { background: rgba(5, 3, 2, .82); backdrop-filter: blur(4px); }
.pm[open]::backdrop { animation: pmFade .5s ease both; }
.pm.closing { animation: pmOut .25s ease both; }
.pm.closing::backdrop { animation: pmFade .25s ease reverse both; }
@keyframes pmIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pmOut { to { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
.pm-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--bone); background: rgba(255, 255, 255, .08);
  transition: background .2s;
}
.pm-close:hover { background: color-mix(in srgb, var(--accent) 55%, #000); }
/* sizes follow the window height, so a sheet never needs a scrollbar (Radek 2026-10-25) */
.pm-head { display: flex; align-items: center; gap: 18px; margin-bottom: min(20px, 2.2vh); padding-right: 52px; }
.pm-logo { width: min(84px, 10vh); height: min(84px, 10vh); flex: none; border-radius: 18px; object-fit: cover;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent)); }
.pm-head h3 { margin: 0 0 3px; font: clamp(28px, 3vw, 40px)/1.05 var(--body); font-weight: 800; }
.pm-pitch { margin: 0; color: var(--bone-dim); font-style: italic; }
.pm-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.pm-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.pm-stage img, .pm-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pm-stage [hidden] { display: none; }
/* trailer player (Radek 2026-11-01): gold rail with the site's diamond as the knob, round buttons like the shelf arrows */
.vp { position: absolute; inset: 0; background: #000; color: var(--bone); user-select: none; --p: 0; --b: 0; }
.vp video { cursor: pointer; }
.vp.idle, .vp.idle video { cursor: none; }
.vp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 34px 12px 10px;
  background: linear-gradient(transparent, rgba(8, 6, 5, .62) 45%, rgba(8, 6, 5, .92)); transition: background .35s;
}
.vp-bar > * { transition: opacity .35s; }
.vp.idle .vp-bar { background: none; pointer-events: none; }
.vp.idle .vp-bar > :not(.vp-audio) { opacity: 0; }
.vp-audio { pointer-events: auto; display: flex; flex-direction: row-reverse; align-items: center; flex: none; }  /* the speaker stays when the rest fades */
.vp-btn {
  width: 34px; height: 34px; flex: none; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--bone);
  border: 1px solid color-mix(in srgb, var(--gold-bright) 60%, transparent); background: rgba(0, 0, 0, .6);
  box-shadow: 0 0 10px rgba(0, 0, 0, .7); transition: background .2s, transform .2s, box-shadow .2s;
}
.vp-btn:hover, .vp-btn:focus-visible {
  background: color-mix(in srgb, var(--gold) 70%, #000); transform: scale(1.08); box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 60%, transparent);
}
.vp-btn .ico { width: 21px; height: 21px; }
.vp .i-pause, .vp .i-on { display: none; }
.vp:not(.paused) .i-pause, .vp:not(.muted) .i-on { display: block; }
.vp:not(.paused) .i-play, .vp:not(.muted) .i-off { display: none; }
.vp.muted .vp-sound { color: var(--gold-bright); }
.vp-seek { position: relative; flex: 1 1 0; min-width: 40px; height: 22px; cursor: pointer; touch-action: none; }
.vp-rail {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; translate: 0 -50%; border-radius: 2px; overflow: hidden;
  background: rgba(239, 230, 207, .18); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
}
.vp-buf, .vp-fill { position: absolute; inset: 0; transform-origin: left; }
.vp-buf { background: rgba(239, 230, 207, .22); transform: scaleX(var(--b)); }
.vp-fill { background: linear-gradient(90deg, var(--gold-dark), var(--gold) 55%, var(--gold-bright)); transform: scaleX(var(--p)); transition: transform .25s linear; }
.vp-knob {
  position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; rotate: 45deg;
  background: var(--gold-bright); border: 1px solid #fff0cf; box-shadow: 0 0 10px var(--gold); transition: left .25s linear, scale .15s;
}
.vp.drag .vp-fill, .vp.drag .vp-knob { transition: none; }
.vp-seek:hover .vp-knob, .vp.drag .vp-knob, .vp-seek:focus-visible .vp-knob { scale: 1.35; }
.vp-time { flex: none; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--bone-dim); white-space: nowrap; }
.vp-vol {
  width: 0; margin: 0; opacity: 0; appearance: none; -webkit-appearance: none; height: 22px; background: none; cursor: pointer;
  transition: width .2s, margin .2s, opacity .2s;
}
.vp-audio:hover .vp-vol, .vp-vol:focus-visible { width: 64px; margin-right: 8px; opacity: 1; }
.vp-vol::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 2px; }
.vp-vol::-moz-range-track { height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 2px; }
.vp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; margin-top: -3px; rotate: 45deg; background: var(--gold-bright); border: 1px solid #fff0cf; box-shadow: 0 0 8px var(--gold); }
.vp-vol::-moz-range-thumb { width: 8px; height: 8px; rotate: 45deg; border-radius: 0; background: var(--gold-bright); border: 1px solid #fff0cf; }
.vp-big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; padding: 0; border-radius: 50%; display: none; place-items: center; cursor: pointer;
  color: #fff0cf; background: rgba(8, 6, 5, .62); border: 2px solid var(--gold-bright); outline: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); outline-offset: 5px;
  box-shadow: 0 0 34px color-mix(in srgb, var(--gold) 55%, transparent); transition: scale .2s, background .2s;
}
.vp-big .ico { width: 44px; height: 44px; }
.vp-big:hover { scale: 1.07; background: color-mix(in srgb, var(--gold) 55%, #000); }
.vp.big .vp-big { display: grid; }
.vp-spin {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: none; pointer-events: none;
  background: conic-gradient(transparent 20%, var(--gold-bright)); -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%);
  animation: spin 1s linear infinite;
}
.vp.wait .vp-spin { display: block; }
.vp:fullscreen { background: #000; }
@media (hover: none) { .vp-vol { display: none; } }
@media (max-width: 480px) { .vp-bar { gap: 7px; padding: 26px 8px 7px; } .vp-btn { width: 30px; height: 30px; } .vp-btn .ico { width: 18px; height: 18px; } .vp-time { font-size: 11px; } }
/* always the same size: 4 columns, 2 rows, room for 8 with the trailer (Radek 2026-11-02) */
.pm-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: min(10px, 1.2vh); }
.pm-th {
  position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #000; opacity: .6; transition: opacity .2s, border-color .2s;
}
.pm-th img { width: 100%; height: 100%; object-fit: cover; }
.pm-th .ico { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 0 6px #000); }
.pm-th:hover { opacity: 1; }
.pm-th.on { opacity: 1; border-color: var(--accent); }
.pm-text p { margin: 0 0 min(12px, 1.3vh); color: var(--bone); opacity: .9; font-size: clamp(14px, 1.95vh, 17px); line-height: 1.5; }
.pm-feat { margin: 4px 0 min(18px, 2vh); padding-left: 20px; }
.pm-feat li { margin-bottom: min(6px, .6vh); color: var(--bone-dim); font-size: clamp(13.5px, 1.8vh, 16px); line-height: 1.45; }
.pm-feat li::marker { color: var(--accent); }
/* Type + Platforms: one line, top right of the header (Radek 2026-11-02) */
.pm-info { display: flex; flex-wrap: wrap; align-items: center; align-self: flex-start; gap: 4px 8px; margin: 0 0 0 auto; padding: 8px 14px; flex: none; max-width: 62%;
  border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.pm-info dt { color: var(--bone-dim); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; align-self: center; }
.pm-info dd { margin: 0; white-space: nowrap; }
.pm-info dd + dt { margin-left: 20px; }
.pm-head > div:not(.pm-info) { min-width: 0; }
.pm-head .tag { display: block; margin-bottom: 2px; }
.pm .stores { gap: 8px; justify-content: center; }
.pm .store { padding: 10px 14px; font-size: 13.5px; }
@media (max-width: 900px) {
  .pm-head { flex-wrap: wrap; }
  .pm-info { margin: 0; max-width: none; flex: 1 1 100%; }
  .pm-body { grid-template-columns: 1fr; }
  .pm-logo { width: 60px; height: 60px; }
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 1099px) {
  .cards { --cols: 2; }
}
@media (max-width: 900px) {
  .hero { height: auto; min-height: calc(100svh - var(--dock-h)); padding-bottom: 80px; }
  .hero-inner { grid-template-columns: 90px minmax(0, 1fr); gap: 18px 20px; }
  .hero-logo { width: 90px; }
  /* the title must fit its column (Radek 2026-10-27: cut on phones): column = screen - side paddings - logo - gaps,
     "VILEHEAD_" is ~6.4 font sizes wide at this letter spacing (measured, _test/pw_title.py) */
  .hero h1 { font-size: min(64px, calc((100vw - 2 * max(18px, 4vw) - 130px) / 6.6)); letter-spacing: .05em; }
  .hero .hi { font-size: 17px; }
  .hero .welcome { grid-column: 1 / -1; font-size: 17px; margin: 0; }
  .hero-text { display: contents; }
  .hero-text h1 { grid-column: 2; align-self: end; margin: 0; }
  .hero-text .hi { grid-column: 2; align-self: start; }
  .hero-inner > .hero-logo { grid-row: 1 / span 2; }
  .hicons { grid-column: 1 / -1; --hi: min(60px, 15vw); gap: 0 14px; justify-content: center; }
  .hicons-group { gap: 10px 10px; }
  .hicons-group + .hicons-group { padding-left: 14px; }
  .shelf-wrap { padding: 16px 14px; }
  html { scroll-snap-type: y proximity; }
  .hero, .shelf, .plain { scroll-snap-stop: normal; }
  .dock small { display: none; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-logo { margin: 0 auto; width: 120px; }
  .plain h2, .shelf-label { --orn-w: 14vw; }
}
@media (max-width: 700px) {
  /* phones: one column, a compact card is about half a screen, so two fit */
  .cards { --cols: 1; }
  .shelf { scroll-snap-align: none; }
  .card { scroll-snap-align: start; padding: 12px; gap: 10px; }
  .card-logo { width: 40px; height: 40px; }
  .card-mid { flex-direction: row; align-items: flex-start; }
  .card-mid .gallery { flex: 0 0 46%; }
  .card .desc { font-size: 13.5px; line-height: 1.45; }
  .card-foot { gap: 8px; }
  .card .store { padding: 6px 8px; font-size: 11.5px; }
}
@media (max-width: 900px) {
  /* tablets: the VILEHEAD word next to the logo pushed CONTACT off screen (601-899 px) */
  .brand span { display: none; }
}
@media (max-width: 600px) {
  :root { --bar-h: 46px; }
  .bar { padding: 0 10px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  /* the logo already jumps to the top, so "Start" goes on phones to make room for CONTACT */
  .bar nav a[data-nav="top"] { display: none; }
  .bar nav { gap: 0; }
  .bar nav a { font-size: clamp(9.5px, 3vw, 11px); letter-spacing: .03em; padding: 8px 4px; }
  .bar nav a::after { left: 4px; right: 4px; }
  .socials a { width: 36px; height: 36px; }
  .dock { justify-content: flex-end; }
  .consent-open { left: 10px; }
  .consent { padding: 10px; gap: 8px; }
  .consent p { font-size: 13px; text-align: center; }
  .consent button { padding: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 8 programs + 2 games do not fit one row on phones: software on top, games under it (Radek 2026-11-01) */
@media (max-width: 600px) {
  .hicons { flex-direction: column; align-items: center; gap: 10px 0; --hi: min(54px, 14vw); }
  .hicons-gm { grid-template-columns: repeat(2, auto); }
  .hicons-group + .hicons-group { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* product subpages (Radek 2026-11-01, SEO): a normal scrolling page in the site's style, the product's store art behind it */
html.sub { scroll-snap-type: none; }
.prod-bg { position: fixed; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: .3; pointer-events: none; }
.prod-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8, 6, 5, .5), rgba(8, 6, 5, .94)); }
.prod { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: calc(var(--bar-h) + 18px) clamp(14px, 3vw, 32px) 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--bone-dim); }
.crumbs a { color: var(--gold-bright); }
.crumbs b { color: var(--bone); font-weight: 600; }
.prod h1 { margin: 0 0 3px; font: 800 clamp(30px, 4vw, 46px)/1.05 var(--body); }
.prod .pm-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.prod .pm-stage { box-shadow: 0 20px 50px rgba(0, 0, 0, .65), 0 0 40px color-mix(in srgb, var(--accent) 22%, transparent); }
.prod .pm-text p { font-size: 16px; }
.prod-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 20px; font-size: 14.5px; }
.prod-facts dt { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; color: var(--bone-dim); align-self: center; }
.prod-facts dd { margin: 0; }
.prod .stores { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.prod .store { padding: 10px 14px; font-size: 13.5px; }
.prod-long { max-width: 780px; margin: 42px auto 0; font-size: 16.5px; line-height: 1.6; }
.prod-long p { margin: 0 0 14px; color: var(--bone); opacity: .92; }
.prod-long h2, .prod-more h2 { margin: 26px 0 8px; font: 27px var(--head); letter-spacing: .05em; color: var(--gold-bright); }
.prod-long ul { margin: 0 0 14px; padding-left: 22px; }
.prod-long li { margin-bottom: 6px; color: var(--bone-dim); }
.prod-long li::marker { color: var(--accent); }
.prod-more { margin-top: 46px; text-align: center; }
.prod-caps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 960px; margin-inline: auto; }  /* 7 capsules: two centred rows (Radek 2026-11-02) */
.prod-caps a { flex: 0 1 calc(25% - 8px); display: block; border-radius: 10px; overflow: hidden; opacity: .78; transition: opacity .2s, transform .2s; }
.prod-caps a:hover, .prod-caps a:focus-visible { opacity: 1; transform: translateY(-2px); }
.prod-caps img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .prod-caps a { flex-basis: calc(50% - 6px); } }
@media (max-width: 900px) { .prod .pm-body { grid-template-columns: 1fr; } }

/* 18+ cards (Radek 2026-11-02): blurred under a warning until the visitor confirms, app.js adds .adult-ok */
.gate-body { display: contents; }
html:not(.adult-ok) .gated .bg, html:not(.adult-ok) .gate-body > * { filter: blur(16px) saturate(.8); }
html:not(.adult-ok) [data-gate-img] { filter: blur(3px); }
.gate {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  padding: 16px clamp(58px, 5vw, 84px); background: rgba(8, 6, 5, .32);
}
.adult-ok .gate, .adult-ok .badge18 { display: none; }
.gate-box {
  width: min(460px, 100%); padding: 24px 26px; text-align: center; border-radius: 16px;
  background: rgba(14, 10, 6, .9); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .65), 0 0 40px color-mix(in srgb, var(--accent) 22%, transparent);
}
.gate-18 {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 22px;
}
.gate-box h4 { margin: 10px 0 8px; font-size: 24px; color: var(--bone); }
.gate-box p { margin: 0 0 16px; line-height: 1.5; }
.gate-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.gate-no { padding: 8px 4px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.badge18 {
  position: absolute; padding: 1px 5px; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 1.4; pointer-events: none;
  background: rgba(14, 10, 6, .9); color: var(--accent); border: 1px solid var(--accent);
}
.hicon .badge18 { top: -4px; right: 2px; }
.sc-cap { position: relative; }  /* not :has(), old phones lack it */
.sc-thumb .badge18 { top: 4px; right: 4px; }
@media (max-width: 900px) {  /* a phone slide is taller than the screen: the warning rides along, always in view */
  .sc-stage, .slide.gated { overflow: clip; }  /* hidden would stop the sticky box */
  html:not(.adult-ok) .slide.gated { min-height: 60vh; }
  .gate { align-items: flex-start; padding: 12px; }
  .gate-box { position: sticky; top: 72px; bottom: 64px; margin-block: auto; padding: 16px; }
  .gate-18 { width: 50px; height: 50px; font-size: 18px; }
  .gate-box h4 { font-size: 21px; margin: 6px 0; }
  .gate-box p { margin-bottom: 10px; }
}

/* store area (Radek 2026-11-03): two equal halves, Full | Demo, one line each, a fading line on top and between them.
   One tile size for both halves (--t), from the width of the area: 6 program stores must fit in half of it.
   Too narrow for halves (< 620 px, tiles would go under 24 px) = one under the other. Older browsers: see the two @supports blocks below. */
.buy { --t: 42px; position: relative; margin-top: auto; padding-top: min(14px, 1.6vh); container-type: inline-size; }
.buy-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 0; }
.buy::before, .buy-row + .buy-row::before {
  content: ""; position: absolute; pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, transparent, var(--accent, var(--gold)) 20%, var(--accent, var(--gold)) 80%, transparent);
}
.buy::before { top: 0; left: 0; right: 0; height: 1px; }
.buy-row { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 16px; }
.buy-row + .buy-row { padding: 0 0 0 16px; }
.buy-row + .buy-row::before { left: 0; top: -4px; bottom: -4px; width: 1px; background: linear-gradient(180deg, transparent, var(--accent, var(--gold)) 25%, var(--accent, var(--gold)) 75%, transparent); }
.buy-row:only-child { grid-column: 1 / -1; }
@container (min-width: 1px) { .buy-row { --t: clamp(24px, calc((50cqi - 134px) / 6), 42px); } }  /* 6 program stores; 134 px = label + gaps + padding of the wider half */
@container (max-width: 619px) {
  /* one under the other: labels share one column (subgrid), so the tiles of both rows start at the same x (Radek 2026-11-03: „równiutko obok siebie i nad sobą”) */
  .buy-in { grid-template-columns: max-content 1fr; column-gap: 12px; }
  .buy-row { grid-column: 1 / -1; padding: 0; --t: clamp(22px, calc((100cqi - 124px) / 6), 42px); }
  .buy-row + .buy-row { padding: 8px 0 0; }
  .buy-row + .buy-row::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent, var(--gold)) 20%, var(--accent, var(--gold)) 80%, transparent); }
}
@supports (grid-template-columns: subgrid) { @container (max-width: 619px) { .buy-row { display: grid; grid-template-columns: subgrid; } } }
/* no subgrid (Chrome 105-116): rows stay flex, one fixed label width keeps the tiles of both rows on the same x */
@supports not (grid-template-columns: subgrid) { @container (max-width: 619px) { .buy-l { flex: none; width: 3.7em; } } }
/* no container queries at all (Chrome < 105, Safari < 16, Firefox < 110; Radek's test phone has Chrome 101, 2026-11-03):
   always one under the other, fixed label width; tiles sit in 6 equal columns of at most 36 px that shrink with the room left,
   so both rows get the same tile size in any card (home card 284 px, subpage 320 px on a 360 px phone) */
@supports not (container-type: inline-size) {
  .buy-in { grid-template-columns: 1fr; }
  .buy-row { padding: 0; }
  .buy-row + .buy-row { padding: 8px 0 0; }
  .buy-row + .buy-row::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent, var(--gold)) 20%, var(--accent, var(--gold)) 80%, transparent); }
  .buy-l { flex: none; width: 3.7em; }
  .buy .plats { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 36px)); }  /* .buy prefix: the base .plats/.plat rules come later in this file */
  .buy .plat { width: auto; height: auto; aspect-ratio: 1; }
  .buy .plat img { width: 66%; height: auto; }
}
.buy-l { font-family: "IM Fell English SC", Georgia, serif; font-size: 23px; line-height: 1; text-transform: uppercase; color: var(--accent, var(--gold)); }
.plats { display: flex; flex-wrap: wrap; gap: 6px; }
.plat {
  display: grid; place-items: center; width: var(--t); height: var(--t); border-radius: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); transition: transform .2s, background .2s, border-color .2s;
}
.plat img { display: block; width: calc(var(--t) * .66); height: calc(var(--t) * .66); }
a.plat:hover, a.plat:focus-visible { transform: translateY(-1px); background: rgba(255, 255, 255, .15); border-color: var(--accent, var(--gold)); }
.plat.off { cursor: not-allowed; }
.plat.off img { filter: grayscale(1); opacity: .4; }
@media (max-width: 480px) { .pm-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; } .pm-info dd + dt { margin-left: 0; } }
.pm-more { margin-top: min(10px, 1.2vh); text-align: center; }
.slide { justify-content: flex-start; }
.slide .pm-body { flex: 1 1 auto; align-items: stretch; }
.slide .pm-media { align-self: start; }
.slide .pm-text, .prod .pm-text { display: flex; flex-direction: column; min-width: 0; }
.prod .buy { margin-top: 12px; }
/* subpage (Radek 2026-11-03): the store area starts at the height of the thumbnails, also when the text next to the video is longer.
   Media and text wrappers dissolve into one grid: video | text on top, thumbnails | stores below. */
.prod .pm-media, .prod .pm-text { display: contents; }
.prod .pm-body { grid-template-areas: "stage top" "thumbs buy"; row-gap: 0; }
.prod .pm-stage { grid-area: stage; }
.prod .prod-top { grid-area: top; min-width: 0; }
.prod .pm-thumbs { grid-area: thumbs; align-self: start; }
.prod .buy { grid-area: buy; align-self: start; margin-top: min(10px, 1.2vh); }  /* same gap as the thumbnails under the video */
@media (max-width: 900px) { .prod .pm-body { grid-template-areas: "stage" "thumbs" "top" "buy"; } .prod .prod-top { margin-top: 16px; } }
@media (max-width: 900px) { .slide .pm-body { grid-template-rows: auto 1fr; } }

/* capsule row stays whole on low screens (Radek 2026-11-02): 265px = title + capsules + head + paddings, picture + its 2 thumbnail rows = 27/32 of the width */
@media (max-height: 820px) and (min-width: 901px) {
  .slide .pm-body { grid-template-columns: min(58%, max(300px, calc((var(--view-h) - 265px) * 32 / 27))) minmax(0, 1fr); }
  .sc-thumbs:has(.sc-cap) { --cap-h: clamp(44px, 7vh, 58px); }
  .showcase .shelf-label { font-size: clamp(30px, 5vh, 40px); margin-bottom: 6px; }
  .slide .pm-head { margin-bottom: 5px; }
  .slide .pm-text p { font-size: 14px; }
  .slide .pm-feat li { font-size: 13.5px; }
}
@media (max-height: 960px) and (min-width: 901px) {  /* tighter text: the whole shelf with its capsule row fits between the bars */
  .slide .pm-text p { line-height: 1.36; margin-bottom: 6px; }
  .slide .pm-feat { margin: 2px 0 6px; }
  .slide .pm-feat li { line-height: 1.3; margin-bottom: 2px; }
  .slide .pm-more { margin-top: 2px; }
  .slide .buy { padding-top: 6px; }
}
.buy-l { position: relative; top: .065em; }  /* the capitals of this font ride 1.5 px above the middle of their line */

/* product lists under Software and Games (Radek 2026-11-02) */
.nav-i { position: relative; display: flex; align-items: center; }
.nav-c { width: 16px; height: 30px; margin-left: -4px; padding: 0; border: 0; background: none; color: var(--bone-dim); cursor: pointer; }
.nav-c::before { content: ""; display: block; width: 7px; height: 7px; margin: -3px auto 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.nav-i:hover .nav-c, .nav-i.open .nav-c { color: var(--bone); }
.nav-i.open .nav-c::before { transform: rotate(225deg); margin-top: 3px; }
.nav-m {
  display: none; position: absolute; top: calc(100% + 8px); left: -8px; z-index: 2; min-width: 310px; padding: 8px;
  background: rgba(14, 10, 8, .97); border: 1px solid rgba(201, 162, 75, .4); border-top: 2px solid var(--gold); border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
}
.nav-m::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; }  /* keeps the hover across the gap under the bar */
.nav-i.open .nav-m { display: block; }
@media (hover: hover) { .nav-i:hover:not(.shut) .nav-m { display: block; } }
.bar nav .nav-m a {
  display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 8px;
  color: var(--bone); font-weight: 400; font-size: 14.5px; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.bar nav .nav-m a::after { display: none; }
.bar nav .nav-m a:hover, .bar nav .nav-m a:focus-visible { background: rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.nm-ico { flex: none; width: 36px; height: 36px; border-radius: 8px; background: #000 center / cover no-repeat; }
.nm-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nm-t b { font-weight: 700; }
.nm-t small { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.nav-m .badge18 { left: 13px; top: 4px; font-size: 9px; }
@media (min-width: 701px) { .bar nav { overflow: visible; } }
@media (max-width: 700px) {  /* the bar's nav scrolls sideways here: a static item hangs the list on the bar, so nothing clips it */
  .nav-i { position: static; }
  .nav-m { top: 100%; left: 0; right: 0; min-width: 0; max-height: calc(100vh - var(--bar-h)); overflow-y: auto; }
  .nav-i.open .nav-m { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .bar nav .nav-m a { position: relative; white-space: normal; padding: 6px; font-size: 13.5px; }
  .nm-t small { font-size: 9px; }
}

/* language picker (2026-11-04): flag button at the right end of the top bar, list of every language; a <details>, so it works without app.js */
.lang-i { position: relative; flex: none; }
.lang-b { display: flex; align-items: center; gap: 5px; padding: 6px 4px; cursor: pointer; list-style: none; color: var(--bone-dim); border-radius: 6px; }
.lang-b::-webkit-details-marker { display: none; }
.lang-b::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.lang-i[open] .lang-b::after { transform: rotate(225deg); margin-top: 3px; }
.lang-b:hover, .lang-i[open] .lang-b { color: var(--bone); }
.lang-b:focus-visible { outline: 2px solid var(--gold); }
.flag { display: block; width: 27px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.lang-m {
  position: absolute; top: calc(100% + 8px); right: -8px; z-index: 3; min-width: 220px; padding: 6px;
  display: grid; gap: 1px;
  background: rgba(14, 10, 8, .97); border: 1px solid rgba(201, 162, 75, .4); border-top: 2px solid var(--gold); border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
}
.lang-m a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; color: var(--bone); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.lang-m a:hover, .lang-m a:focus-visible { background: rgba(255, 255, 255, .08); }
.lang-m a[aria-current] { background: rgba(201, 162, 75, .16); font-weight: 700; }
.privacy-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.privacy .lang-m a { color: var(--bone); }
.privacy .note { font-size: 14px; color: var(--bone-dim); }
@media (max-width: 700px) {  /* phones: the list hangs under the whole bar in two columns */
  .bar .lang-i { position: static; }
  /* the bottom dock covers the page bottom, so it comes off the height too; old Chrome counts the hidden address bar in 100vh, dvh where it exists */
  .bar .lang-m { position: fixed; top: var(--bar-h); left: 0; right: 0; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - var(--bar-h) - var(--dock-h)); overflow-y: auto; }
  .lang-m a { white-space: normal; font-size: 13.5px; padding: 7px 6px; }
}
@supports (height: 100dvh) { @media (max-width: 700px) { .bar .lang-m { max-height: calc(100dvh - var(--bar-h) - var(--dock-h)); } } }
@media (max-width: 700px) and (min-width: 520px) {  /* phone held sideways (672 x 280 on the test phone): 6 rows hid the last one under the dock, 3 columns = 4 rows (Radek's test 2026-11-04) */
  .bar .lang-m { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {  /* phones: the bar had no spare pixel before the flag came, so the flag goes bare and the links a bit tighter */
  .flag { width: 22px; height: 15px; }
  .lang-b { padding: 6px 0; }
  .lang-b::after { display: none; }
  .bar nav a { padding: 8px 2px; letter-spacing: 0; }
  .bar nav a::after { left: 2px; right: 2px; }
  .nav-c { width: 14px; margin-left: -3px; }
}
/* a top bar wider than the phone scrolls sideways (since 2026-10): the fading right edge shows there is more (class set by app.js) */
.bar nav.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
