/* 10-yayin (2): the site, in the game's own colours (the sign-in screen's panel, its title gold and outline). The text
   boxes are drawn like the game's windows: a dark wood panel, a two-pixel outline, the title in Jersey 10. */
@font-face { font-family: "Jersey 10"; src: url("fonts/Jersey10.ttf?v=db9cbd0916") format("truetype"); font-display: swap; }

:root {
  --ground: #2b241d;
  --panel: #3a3027;
  --panel-raised: #45392e;
  --panel-edge: #1e1a16;
  --gold: #f2d38a;
  --gold-bright: #ffe6a8;
  --text: #f1e9dc;
  --muted: #c9bba6;
  --accent: #7fb069;
  --danger: #e07a5f;
  --space-xs: 4px; --space-s: 8px; --space-m: 12px; --space-l: 16px; --space-xl: 24px; --space-xxl: 48px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-contrast: more) {
  :root { --panel: #000; --panel-raised: #000; --panel-edge: #fff; --text: #fff; --muted: #fff; --gold: #ffe08a; --gold-bright: #fff; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; -webkit-tap-highlight-color: rgba(242, 211, 138, 0.2); }
html, body { margin: 0; background: var(--ground); color: var(--text); font: 18px/1.55 system-ui, "Segoe UI", sans-serif; }
img, video { max-width: 100%; }
body { background: radial-gradient(ellipse 90% 520px at 50% 0, rgba(242, 211, 138, 0.07), transparent 70%) no-repeat, var(--ground); }
a, button, summary { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: var(--space-l); top: -60px; z-index: 10; background: var(--gold); color: var(--ground); padding: var(--space-s) var(--space-l); border-radius: var(--radius); }
.skip:focus-visible { top: var(--space-s); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-l); }

header.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding: var(--space-m) 0; }
.brand { display: flex; align-items: center; gap: var(--space-s); min-height: 44px; text-decoration: none; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.brand span, h1, h2.title { font-family: "Jersey 10", system-ui, sans-serif; color: var(--gold); text-shadow: 2px 2px 0 var(--panel-edge); letter-spacing: 1px; font-weight: normal; }
.brand span { font-size: 36px; line-height: 1; }
nav.top { display: flex; align-items: center; gap: var(--space-m); }
nav.top .link { color: var(--muted); text-decoration: none; padding: 0 var(--space-s); min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius); }
nav.top .link:hover { color: var(--gold); background: var(--panel); }
@media (max-width: 720px) { nav.top .link { display: none; } }

/* buttons: gold for the main way on, an outline for the other; a lift on hover, a press on click */
button, .button {
  display: inline-block; min-height: 44px; font: inherit; color: var(--ground); background: var(--gold); border: 2px solid var(--panel-edge);
  border-radius: var(--radius); padding: var(--space-s) var(--space-l); cursor: pointer; text-decoration: none; text-align: center;
  box-shadow: 0 3px 0 var(--panel-edge); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background-color 120ms var(--ease);
}
button:hover, .button:hover { background: var(--gold-bright); color: var(--ground); transform: translateY(-1px); box-shadow: 0 4px 0 var(--panel-edge); }
button:active, .button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--panel-edge); }
button.quiet, .button.quiet { background: transparent; color: var(--gold); border-color: var(--gold); box-shadow: none; }
button.quiet:hover, .button.quiet:hover { background: rgba(242, 211, 138, 0.12); color: var(--gold-bright); }
button:disabled, button:disabled:hover { opacity: 0.55; cursor: default; transform: none; box-shadow: 0 3px 0 var(--panel-edge); background: var(--gold); }
.button.big { font-size: 20px; padding: var(--space-m) var(--space-xl); }

/* the hero: the living scene in a frame, the game-window panel lying over its lower edge */
.hero { margin: var(--space-s) 0 var(--space-xxl); }
.stage { position: relative; border: 2px solid var(--panel-edge); border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 960 / 480; }
.scene { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.stage-toggle { position: absolute; right: var(--space-m); top: var(--space-m); font-size: 15px; padding: 0 var(--space-m); min-height: 44px;
  background: rgba(30, 26, 22, 0.78); color: var(--text); border-color: var(--panel-edge); box-shadow: none; }
.stage-toggle:hover { background: var(--panel-edge); color: var(--gold); }
.panel { background: var(--panel); border: 2px solid var(--panel-edge); border-radius: var(--radius); box-shadow: inset 0 0 0 2px var(--panel-raised); }
.hero-panel { position: relative; max-width: 820px; margin: -40px auto 0; padding: var(--space-xl) var(--space-xl) var(--space-l); text-align: center;
  background: radial-gradient(ellipse 60% 140px at 50% 0, rgba(242, 211, 138, 0.09), transparent 75%), var(--panel); }
h1 { font-size: 60px; line-height: 1.05; margin: 0 0 var(--space-m); }
.lead { font-size: 20px; color: var(--text); max-width: 640px; margin: 0 auto var(--space-l); }
.actions { display: flex; justify-content: center; gap: var(--space-m); flex-wrap: wrap; }
.facts { margin: var(--space-l) 0 0; color: var(--muted); font-size: 16px; }

section { margin: var(--space-xxl) 0; scroll-margin-top: var(--space-l); }
h1.title, h2.title { font-size: 44px; text-align: center; margin: 0 0 var(--space-m); line-height: 1.1; }
.section-note { text-align: center; color: var(--muted); margin: 0 auto var(--space-xl); max-width: 640px; }

/* sibling cards in equal columns: four steps, three pictures, three facts, two prices */
.cols { display: grid; gap: var(--space-l); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.cols.after { margin-top: var(--space-l); }

.card { background: var(--panel); border: 2px solid var(--panel-edge); border-radius: var(--radius); padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-s); }
.card h3 { margin: 0; color: var(--gold); font-size: 22px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.card .button, .card button { margin-top: auto; }

/* the steps are an order, so they carry their numbers */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space-l); grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; position: relative; padding-top: var(--space-xl); }
.steps li::before { content: counter(step); position: absolute; top: -18px; left: var(--space-l); width: 36px; height: 36px; display: grid; place-items: center;
  font: 28px/1 "Jersey 10", system-ui, sans-serif; color: var(--ground); background: var(--gold); border: 2px solid var(--panel-edge); border-radius: 50%; }

/* a picture from the game: on hover, focus or a tap the second frame comes up over the first */
figure.shot-card { margin: 0; padding: 0; overflow: hidden; }
figure.shot-card figcaption { padding: 0 var(--space-l) var(--space-l); display: flex; flex-direction: column; gap: var(--space-s); }
.shot { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; border-bottom: 2px solid var(--panel-edge); border-radius: 0;
  background: #000; box-shadow: none; aspect-ratio: 16 / 9; cursor: zoom-in; overflow: hidden; }
figure.shot-card .shot { margin: 0; }
.shot:hover, .shot:active { transform: none; box-shadow: none; background: #000; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease), transform 600ms var(--ease); }
.shot img.alt { opacity: 0; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.03); }
.shot:hover img.alt, .shot:focus-visible img.alt, .shot[aria-pressed="true"] img.alt { opacity: 1; }
.shot:focus-visible { outline-offset: -3px; }
.shot-card:hover { border-color: #4f4235; }

/* prices */
.prices { max-width: 820px; margin: 0 auto; }
.price { font-variant-numeric: tabular-nums; font-size: 48px; font-family: "Jersey 10", system-ui, sans-serif; color: var(--text); line-height: 1; }
.price small { font-size: 20px; color: var(--muted); }
.price-card { position: relative; transition: transform 160ms var(--ease); }
.price-card::after { content: ""; position: absolute; inset: -2px; border-radius: var(--radius); pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--gold), 0 10px 28px rgba(242, 211, 138, 0.14); transition: opacity 200ms var(--ease); }
.price-card:hover { transform: translateY(-2px); }
.price-card:hover::after, .price-card:focus-within::after { opacity: 1; }

/* download: what it is on the left, what it needs on the right */
.band { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); align-items: start; padding: var(--space-xl); }
.band h1.title, .band h2.title { text-align: left; }
.band p { font-size: 18px; }
.needs { margin: var(--space-s) 0 var(--space-l); padding-left: 1.2em; color: var(--muted); }
.needs li { margin: var(--space-xs) 0; }

/* questions: the browser's own disclosure, so keyboard and screen readers already know it */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-s); }
.faq details { background: var(--panel); border: 2px solid var(--panel-edge); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: var(--space-m) var(--space-l); font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-m); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 28px/0.8 "Jersey 10", system-ui, sans-serif; transition: transform 160ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { margin: 0; padding: 0 var(--space-l) var(--space-l); color: var(--muted); }

/* a step shows a frame of its subject above it while the pointer rests on it, while it holds focus, or after a tap */
.peek-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.peek { --peek-width: min(360px, calc(100vw - 2 * var(--space-l)));
  position: absolute; left: 0; bottom: calc(100% + 26px); width: var(--peek-width); max-width: none; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border: 2px solid var(--panel-edge); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); z-index: 2;
  pointer-events: none; opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: 0 100%;
  transition: opacity 200ms var(--ease), transform 280ms var(--ease); }
/* the frame grows away from the page edge: odd steps open to the right, even steps to the left, in four columns and in two */
.peek-card:nth-child(even) .peek { left: auto; right: 0; transform-origin: 100% 100%; }
.peek-card:hover .peek, .peek-card:focus-visible .peek, .peek-card.peek-open .peek { opacity: 1; transform: none; }
/* without a mouse the frame opens inside the card on a tap, so it never covers the card above */
@keyframes peek-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@media (hover: none) {
  .peek { position: static; display: none; margin: 0; width: 100%; box-shadow: none; opacity: 1; transform: none; }
  .peek-card.peek-open .peek { display: block; animation: peek-in 260ms var(--ease); }
}

.note { color: var(--muted); font-size: 16px; text-align: center; }
.state { padding: var(--space-l); text-align: center; color: var(--muted); }
.error { color: var(--danger); }
.error::before { content: "! "; font-weight: bold; }
.ok::before { content: "\2713  "; color: var(--accent); }

form { display: flex; flex-direction: column; gap: var(--space-m); }
label { display: flex; flex-direction: column; gap: var(--space-xs); font-size: 16px; color: var(--muted); }
input, select { font: inherit; color: var(--text); background: var(--ground); border: 2px solid var(--panel-edge); border-radius: var(--radius); padding: var(--space-s); }
input:hover, select:hover { border-color: #5a4a3b; }
.row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
.row.three { grid-template-columns: repeat(3, 1fr); }

.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-s); }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--ground); }
.tabs button[aria-selected="false"] { background: transparent; color: var(--gold); border-color: var(--gold); box-shadow: none; }

.narrow { max-width: 560px; margin: 0 auto; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-xs) var(--space-l); margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

footer { border-top: 2px solid var(--panel-edge); margin-top: var(--space-xxl); padding: var(--space-l) 0 var(--space-xl); color: var(--muted); font-size: 15px; text-align: center; }
footer p { margin: var(--space-s) 0 0; }
nav.foot { display: flex; justify-content: center; gap: 0 var(--space-l); flex-wrap: wrap; }
nav.foot a, footer > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.legal h3 { color: var(--gold); margin: var(--space-l) 0 var(--space-xs); }
.legal p, .legal li { color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-xl); }
  .cols.three { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .cols.two, .band { grid-template-columns: 1fr; }
  .hero-panel { margin-top: var(--space-m); padding: var(--space-l); }
  h1 { font-size: 44px; }
  h1.title, h2.title { font-size: 38px; }
  .lead { font-size: 18px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .row, .row.three { grid-template-columns: 1fr; }
  .wrap { padding: 0 var(--space-m); }
  .brand span { font-size: 30px; }
  .actions .button { flex: 1 1 100%; }
  nav.top { gap: var(--space-s); }
  nav.top a.button.quiet[href="indir.html"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .shot:hover img, .shot:focus-visible img { transform: none; }
}
