/* Layout: announcement bar → sticky header with sticker logo → dark Diamond Mine hero → proof bar → Mine Runner on Steam card
   → level editor → game grid → FAQ → footer. A mockup-only "logo" section closes the page. Mobile adds a sticky download bar. */
:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --ink: #14201a;
  --muted: #55655d;
  --line: #d8e0da;
  --chip: #e6ece8;
  --accent: #0b7f57;          /* brand green */
  --accent-ink: #ffffff;
  --cta: #ffb627;             /* brand gold: buy/download buttons */
  --cta-ink: #1d1400;
  --cta-hover: #ffc54f;
  --band: #0f1a15;            /* dark bands, dark in both themes */
  --band-2: #18281f;
  --band-ink: #f1f6f3;
  --band-muted: #a8bab0;
  --star: #e09b00;
  --note-bg: #fff4d6;
  --note-ink: #4a3600;
  /* logo colours: fixed, identical in both themes */
  --logo-green: #0b7f57;
  --logo-gold: #ffb627;
  --logo-white: #ffffff;
  --logo-ink: #0f1a15;
  --steam: #1b2838;
  --steam-hover: #2a475e;
  --steam-line: #66c0f4;
  --font-logo: "Luckiest Guy", "Lilita One", "Arial Black", sans-serif;
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-pixel: "Silkscreen", "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1210; --surface: #151e1a; --ink: #e6eee9; --muted: #98a9a0; --line: #26322c; --chip: #1f2a25;
    --accent: #3fcb91; --accent-ink: #06130d; --cta: #ffbf3f; --cta-ink: #1d1400; --cta-hover: #ffcf6b;
    --band: #111c17; --band-2: #1b2c24; --band-ink: #f1f6f3; --band-muted: #a8bab0; --star: #ffc23d;
    --note-bg: #2e2610; --note-ink: #f4dc9c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1210; --surface: #151e1a; --ink: #e6eee9; --muted: #98a9a0; --line: #26322c; --chip: #1f2a25;
  --accent: #3fcb91; --accent-ink: #06130d; --cta: #ffbf3f; --cta-ink: #1d1400; --cta-hover: #ffcf6b;
  --band: #111c17; --band-2: #1b2c24; --band-ink: #f1f6f3; --band-muted: #a8bab0; --star: #ffc23d;
  --note-bg: #2e2610; --note-ink: #f4dc9c; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; text-wrap: balance; margin: 0; line-height: 1.08; }
p { margin: 0; }
.pixel { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.section { padding-block: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 56ch; }

/* Mockup note */
.note { background: var(--note-bg); color: var(--note-ink); font-size: 14px; }
.note .wrap { padding-block: 10px; }
.note summary { cursor: pointer; font-weight: 700; }
.note ul { margin: 8px 0 4px; padding-left: 20px; display: grid; gap: 3px; }

/* Announcement */
.announce { background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.announce .wrap { padding-block: 8px; display: flex; gap: 8px 14px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.announce a { font-weight: 800; }
.announce .pill { background: var(--cta); color: var(--cta-ink); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.brand { display: block; flex: none; line-height: 0; }
.brand svg { height: 54px; width: auto; display: block; }
nav.main { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }

/* Language window */
.lang-pick { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--font-body); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.lang-btn:hover { border-color: var(--accent); }
.lang-btn svg { width: 17px; height: 17px; flex: none; }
.lang-btn .chev { width: 13px; height: 13px; transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .4); }
.lang-title { color: var(--muted); padding: 6px 10px 8px; }
.lang-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lang-menu button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; background: none; border: 0; border-radius: 10px; padding: 9px 10px; font: 600 15px var(--font-body); color: var(--ink); cursor: pointer; text-align: left; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--chip); }
.lang-menu button small { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.lang-menu button[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lang-menu button[aria-pressed="true"] small { color: var(--accent); }
:lang(zh) h1, :lang(zh) h2, :lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; line-height: 1.2; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: 0; cursor: pointer; font: 700 16px/1.1 var(--font-body); border-radius: 12px; padding: 13px 20px; }
nav.main a.btn-cta, .btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--cta) 55%, #000); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cta) 55%, #000); }
.btn-ghost { background: transparent; color: var(--band-ink); border: 1.5px solid color-mix(in srgb, var(--band-ink) 35%, transparent); }
.btn-ghost:hover { border-color: var(--band-ink); }
.btn small { display: block; font-weight: 600; font-size: 11px; opacity: .75; letter-spacing: .03em; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(45deg, var(--band-ink) 25%, transparent 25%, transparent 75%, var(--band-ink) 75%), linear-gradient(45deg, var(--band-ink) 25%, transparent 25%, transparent 75%, var(--band-ink) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding-block: 52px 60px; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero .pixel { color: var(--cta); }
.hero h1 { font-size: clamp(40px, 6vw, 70px); }
.hero h1 em { font-style: normal; color: var(--cta); }
.hero-sub { font-size: 18px; color: var(--band-muted); max-width: 44ch; }
.hero-sub strong { color: var(--band-ink); }
.perks { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.perks li { background: var(--band-2); border-radius: 8px; padding: 5px 10px; font-size: 14px; font-weight: 600; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rating { display: flex; align-items: center; gap: 10px; color: var(--band-muted); font-size: 14px; flex-wrap: wrap; }
.stars { color: var(--cta); letter-spacing: 2px; font-size: 16px; }
.rating strong { color: var(--band-ink); }
.device-wrap { position: relative; min-width: 0; }
.device { position: relative; background: #050807; border-radius: 30px; padding: 12px 12px 12px 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 0 2px #2a2f2d; transform: rotate(-2deg); max-width: 100%; }
.device::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: #1c2421; }
.device img { display: block; width: 100%; max-width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 18px; }
.sticker { position: absolute; right: -6px; top: -18px; background: var(--cta); color: var(--cta-ink); font-family: var(--font-logo); font-size: 22px; line-height: 1; padding: 12px 14px 9px; border-radius: 14px; transform: rotate(6deg); box-shadow: 0 0 0 3px #fff, 0 8px 20px -6px rgba(0,0,0,.5); text-align: center; }
.sticker small { display: block; font-family: var(--font-body); font-weight: 800; font-size: 11px; }

/* Proof bar */
.proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.proof div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proof strong { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof span { font-size: 14px; color: var(--muted); }

/* Mine Runner on Steam */
.mr { background: var(--band); color: var(--band-ink); padding-block: 64px; margin-bottom: 64px; }
.mr .wrap { display: flex; flex-direction: column; gap: 36px; }
.mr-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mr-art { position: relative; min-width: 0; }
.mr-art img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 6px #fff, 8px 10px 0 6px #000; transform: rotate(-1.5deg); }
.mr-logo { display: block; width: 100%; max-width: 460px; height: auto; margin-left: -6px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.mr-pill { align-self: flex-start; display: inline-block; background: var(--logo-gold); color: var(--logo-ink); border-radius: 6px; padding: 5px 9px 4px; font-size: 11px; }
.mr-quick { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.mr-quick li { background: var(--band-2); border: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent); border-radius: 8px; padding: 5px 10px; font-size: 14px; font-weight: 700; }
.mr-chars { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--band-2); border-radius: 18px; padding: 14px; }
.mr-chars video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1172 / 316; border-radius: 12px; background: #e9b25a; }
.mr-chars-cap { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-right: 10px; }
.mr-chars-cap b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.mr-badge { position: absolute; right: -8px; bottom: -16px; background: var(--logo-gold); color: var(--logo-ink); font-family: var(--font-logo); font-size: 24px; line-height: 1; padding: 12px 14px 9px; border-radius: 14px; transform: rotate(5deg); box-shadow: 0 0 0 3px #fff; text-align: center; }
.mr-badge small { display: block; font-family: var(--font-body); font-weight: 800; font-size: 12px; }
.steam-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mr .pixel { color: var(--cta); }
.mr h2 { font-size: clamp(32px, 4.4vw, 48px); }
.steam-copy p { color: var(--band-muted); font-size: 17px; max-width: 50ch; }
.buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price strong { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--cta); }
.price span { font-size: 13px; color: var(--band-muted); }
.btn-steam { background: var(--steam); color: #fff; box-shadow: inset 0 0 0 1.5px var(--steam-line); }
.btn-steam:hover { background: var(--steam-hover); }
.mr-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mr-feats li { background: var(--band-2); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mr-feats b { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--band-ink); }
.mr-feats span { color: var(--band-muted); font-size: 15px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.g-tile, .thumbs button { position: relative; padding: 0; border: 0; background: #000; border-radius: 12px; overflow: hidden; display: block; min-width: 0; }
button.g-tile, .thumbs button { cursor: zoom-in; }
.gallery .g-big { grid-row: span 2; }
.gallery img, .gallery video, .thumbs img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; aspect-ratio: 16 / 9; image-rendering: pixelated; transition: transform .2s ease; }
.gallery button:hover img, .thumbs button:hover img { transform: scale(1.03); }
.gallery span { position: absolute; left: 10px; bottom: 10px; background: var(--logo-ink); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: -24px; }
.thumbs img { image-rendering: auto; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); padding-top: 20px; }
.specs div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.specs b { font-size: 15px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1280px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(5, 8, 7, .88); }
.lightbox img { display: block; width: 100%; height: auto; border-radius: 12px; image-rendering: pixelated; }
.lightbox button { position: absolute; top: 10px; right: 10px; }

/* Editor */
.editor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.editor img { width: 100%; max-width: 100%; border-radius: 20px; aspect-ratio: 1024 / 500; object-fit: cover; display: block; }
.editor-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.editor-copy h2 { font-size: clamp(30px, 4vw, 42px); }
.editor-copy p { color: var(--muted); font-size: 17px; max-width: 50ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.ticks li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--accent); transform: rotate(45deg) translateY(-1px); border-radius: 2px; }

/* Catalogue */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font: 600 14px var(--font-body); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.card .shot { display: block; aspect-ratio: 1024 / 500; width: 100%; max-width: 100%; object-fit: cover; background: #000; }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--cta); color: var(--cta-ink); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; box-shadow: 0 0 0 2px #fff; }
.ribbon.hit { background: var(--logo-green); color: #fff; }
.card-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.card-top { display: flex; gap: 12px; align-items: flex-end; margin-top: -30px; }
.card-top img { width: 68px; height: 68px; border-radius: 16px; border: 3px solid var(--surface); background: var(--surface); flex: none; }
.card-top div { min-width: 0; padding-bottom: 2px; }
.card h3 { font-size: 23px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-top div { padding-bottom: 6px; }
.genre { align-self: flex-start; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 6px; padding: 4px 8px 3px; font-size: 10.5px; }
.card p { color: var(--muted); font-size: 15px; }
.stats { display: flex; gap: 6px; flex-wrap: wrap; }
.stats span { background: var(--chip); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.stats .s { color: var(--star); }
.card-stores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.store { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 7px 12px 7px 10px; line-height: 1.1; font-weight: 700; font-size: 14px; }
.store small { display: block; font-weight: 500; font-size: 10px; opacity: .8; letter-spacing: .03em; }
.store svg { width: 18px; height: 18px; flex: none; }
.store:hover { background: var(--accent); color: var(--accent-ink); }
.store.store-steam { background: var(--steam); color: #fff; box-shadow: inset 0 0 0 1px var(--steam-line); }
.store.store-steam:hover { background: var(--steam-hover); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 8px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 32px 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand svg { height: 46px; width: auto; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { text-decoration: none; font-weight: 600; }
footer.site nav a:hover { color: var(--ink); }
.email { font-weight: 700; color: var(--ink); user-select: all; }

/* Logo lab (mockup only) */
.lab { border-top: 3px dashed var(--line); }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.tile { border-radius: 18px; border: 1px solid var(--line); padding: 28px 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.tile svg, .tile img { max-width: 100%; height: auto; }
.tile .cap { font-size: 13px; color: var(--muted); align-self: stretch; text-align: center; }
.tile.t-white { background: #ffffff; }
.tile.t-white .cap { color: #55655d; }
.tile.t-green { background: var(--logo-green); border-color: var(--logo-green); }
.tile.t-green .cap { color: #d4efe3; }
.tile.t-dark { background: var(--logo-ink); border-color: var(--logo-ink); }
.tile.t-dark .cap { color: #a8bab0; }
.tile.t-gold { background: var(--logo-gold); border-color: var(--logo-gold); }
.tile.t-gold .cap { color: #4a3600; }
.tile .old { filter: none; background: #fff; border-radius: 10px; padding: 8px; }
.sizes { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lab-share { margin-top: 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.lab-share img { width: 100%; max-width: 100%; height: auto; border-radius: 10px; display: block; }
.lab-share div { min-width: 0; }
.lab-share p { color: var(--muted); margin-top: 6px; }
@media (max-width: 700px) { .lab-share { grid-template-columns: 1fr; } }
.lab-notes { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.lab-notes div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.lab-notes strong { display: block; margin-bottom: 4px; }
.lab-notes p { color: var(--muted); font-size: 15px; }
.swatches { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.swatches span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); display: inline-block; }

/* Sticky mobile download bar */
.mbar { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .editor, .steam { grid-template-columns: 1fr; }
  .hero .wrap { gap: 28px; padding-block: 28px 44px; }
  .device-wrap { order: -1; max-width: 520px; }
  .device { transform: rotate(-1.5deg); }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); }
  nav.main .hide-sm { display: none; }
  .mr-top { grid-template-columns: 1fr; gap: 36px; }
  .mr-chars { grid-template-columns: 1fr; gap: 14px; }
  .mr-chars-cap { padding: 0 6px 6px; }
  .mr-feats { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .thumbs button:nth-child(n+5) { display: none; }
}
@media (max-width: 600px) {
  nav.main { gap: 14px; font-size: 14px; }
  .brand svg { height: 46px; }
  .sticker { font-size: 18px; top: -12px; right: 4px; }
  .mr-feats { grid-template-columns: 1fr; }
  .lang-btn { padding: 7px 8px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery .g-big { grid-row: auto; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.3); }
  .mbar img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
  .mbar div { flex: 1; min-width: 0; line-height: 1.2; }
  .mbar strong { display: block; font-size: 15px; }
  .mbar span { font-size: 12.5px; color: var(--muted); }
  footer.site { padding-bottom: 110px; }
}
@media (max-width: 430px) { nav.main .hide-xs { display: none; } }
@media (prefers-reduced-motion: reduce) { .card, .card:hover, .btn-cta:active { transition: none; transform: none; } }

/* Language window: links on the static site */
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 10px; padding: 9px 10px; font: 600 15px var(--font-body); color: var(--ink); text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--chip); }
.lang-menu a small { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.lang-menu a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lang-menu a[aria-current="page"] small { color: var(--accent); }