/* ============================================================
   lemoncheats.net  -  site-wide stylesheet (2026 redesign)
   Single dark theme on purpose: lemon yellow on warm charcoal.
   Fonts are loaded from Google Fonts in templates/head.php.
   ============================================================ */

:root {
  --bg: #14120f;
  --bg-2: #0f0e0b;
  --surface: #1d1a15;
  --surface-2: #262219;
  --line: #322d24;
  --line-2: #4a4335;
  --text: #f3eddc;
  --muted: #a69e8a;
  --faint: #6f6857;
  --lemon: #f6d93b;
  --lemon-2: #ffe45c;
  --lemon-ink: #1a1608;
  --lemon-dim: rgba(246, 217, 59, 0.12);
  --pulp: #b8303f;
  --pulp-dim: rgba(184, 48, 63, 0.16);
  --drop: #5cd6e0;
  --ok: #7ed492;
  --display: "Bricolage Grotesque", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1140px;
  --pad: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --fs-hero: clamp(2.7rem, 6.2vw, 4.9rem);
  --fs-h1: clamp(2rem, 4vw, 2.8rem);
  --fs-h2: clamp(1.8rem, 3.2vw, 2.5rem);
  --fs-h3: 1.4rem;
}

html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.85em; }
:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lemon); color: var(--lemon-ink); }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 820px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--lemon); color: var(--lemon-ink);
  padding: 8px 12px; border-radius: 6px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lemon);
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--lemon); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; font-family: var(--body);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lemon); color: var(--lemon-ink); }
.btn-primary:hover { background: var(--lemon-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn-danger { background: transparent; color: #ff8a97; border-color: rgba(184, 48, 63, 0.6); }
.btn-danger:hover { background: var(--pulp-dim); }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { padding: 8px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 15, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--lemon); font-weight: 700; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-auth { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-2); color: var(--text);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font-family: var(--body); font-size: 0.85rem; font-weight: 600;
}

/* account dropdown (logged-in users) */
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary .avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--lemon-ink); color: var(--lemon);
  display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 0.8rem; text-transform: uppercase;
}
.account-menu summary .chev { width: 14px; height: 14px; transition: transform 0.15s ease; }
.account-menu[open] summary .chev { transform: rotate(180deg); }
.account-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 300px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); z-index: 60;
}
.account-panel-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; }
.account-panel-head b { font-family: var(--display); font-size: 1.05rem; }
.account-panel-head span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.account-row { display: grid; gap: 2px; padding: 8px 12px; }
.account-row .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.account-row .v { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  background: transparent; border: 0; color: var(--text); font-family: var(--body); font-size: 0.95rem; cursor: pointer;
}
.account-link:hover { background: var(--surface-2); }
.account-link-admin { color: var(--lemon); }
.account-link-danger { color: #ff8a97; }
.account-link svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 24px; }
.hero-text { max-width: 760px; }
.hero h1 {
  font-size: var(--fs-hero); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 84, "opsz" 96; margin: 18px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--lemon); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* block-direction widget */
.bw {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; aspect-ratio: 1 / 1; max-width: 440px; margin-left: auto; overflow: hidden;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center;
}
.bw::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 35%, var(--surface) 88%);
  pointer-events: none;
}
.bw svg { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
.bw-head {
  position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}
.bw-status { color: var(--pulp); transition: color 0.2s ease; }
.bw-status.ok { color: var(--lemon); }
.bw .ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.bw .arrow { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; transition: fill 0.18s ease, stroke 0.18s ease; }
.bw .arrow.on { fill: var(--lemon); stroke: var(--lemon-2); filter: drop-shadow(0 0 10px rgba(246, 217, 59, 0.55)); }
.bw .tick { fill: var(--line-2); transition: fill 0.12s ease; }
.bw .tick.on { fill: var(--pulp); filter: drop-shadow(0 0 8px rgba(184, 48, 63, 0.8)); }
.bw .core { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.5; }
.bw .bw-label { font: 700 22px var(--display); fill: var(--text); text-anchor: middle; letter-spacing: 0.04em; }

/* facts strip */
.facts {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 4px; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.fact .v { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.fact .v .euro { color: var(--lemon); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2, .page-head h1 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; font-variation-settings: "wdth" 90; margin-top: 10px; }
.section-head p, .page-head p { color: var(--muted); max-width: 46ch; }
.page-head { margin-bottom: 32px; }
.page-head p { margin-top: 12px; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.poster {
  position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-2);
  border-bottom: 1px solid var(--line); overflow: hidden; container-type: inline-size;
}
.poster .bigword {
  position: absolute; left: -1.5%; bottom: -9%; margin: 0; font-family: var(--display);
  font-weight: 800; font-size: 27cqw; line-height: 1; letter-spacing: -0.04em; color: var(--surface-2);
  font-variation-settings: "wdth" 78; white-space: nowrap; user-select: none;
}
.poster .motif { position: absolute; right: 6%; top: 8%; width: 30%; height: auto; opacity: 0.35; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
.poster img.ok { opacity: 0.9; }
.poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster .tag {
  position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); background: rgba(15, 14, 11, 0.7); padding: 5px 9px; border-radius: 6px;
  border: 1px solid var(--line-2);
}
.poster .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%; background: var(--lemon); color: var(--lemon-ink);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.poster .play svg { width: 26px; height: 26px; margin-left: 4px; }
.poster:hover .play { transform: translate(-50%, -50%) scale(1.06); background: var(--lemon-2); }
.poster .watch {
  position: absolute; right: 14px; bottom: 12px; font-size: 0.8rem; color: var(--muted);
  background: rgba(15, 14, 11, 0.7); padding: 4px 9px; border-radius: 6px;
}
.poster .pill {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--lemon-ink); background: var(--lemon); padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); white-space: nowrap;
}
.poster-soon { cursor: default; }
.poster.is-playing .bigword, .poster.is-playing .motif, .poster.is-playing .tag, .poster.is-playing .play, .poster.is-playing .watch, .poster.is-playing img { display: none; }

.card-body { padding: 24px 24px 8px; flex: 1; }
.card-soon .card-body { padding-bottom: 24px; display: flex; flex-direction: column; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.card h3 small { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 6px; }
.chip {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.chip-soon { color: var(--lemon); border-color: rgba(246, 217, 59, 0.45); }
.chip-owned { color: var(--ok); border-color: rgba(126, 212, 146, 0.45); }
.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.features li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.features li:first-child { border-top: 0; }
.features .ico {
  width: 36px; height: 36px; border-radius: 9px; background: var(--lemon-dim); color: var(--lemon);
  display: grid; place-items: center;
}
.features .ico svg { width: 20px; height: 20px; }
.features .fname { font-weight: 600; }
.features .fdesc { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.note {
  margin-top: 16px; display: flex; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 0.9rem; color: var(--muted);
}
.note svg { width: 18px; height: 18px; flex: none; color: var(--lemon); margin-top: 2px; }
.warn {
  margin-top: 16px; display: flex; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--pulp-dim); border: 1px solid rgba(184, 48, 63, 0.4); font-size: 0.9rem; color: var(--text);
}
.warn svg { width: 18px; height: 18px; flex: none; color: #ff8a97; margin-top: 2px; }
.warn strong { font-weight: 600; }
.buy { border-top: 1px solid var(--line); padding: 20px 24px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; background: var(--bg-2); }
.price { font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--lemon); }
.price-note { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.buy .btn { grid-column: 1 / -1; margin-top: 10px; }
.buy-hint { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.buy-hint a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.owned { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: var(--ok); letter-spacing: -0.02em; }
.owned svg { width: 22px; height: 22px; }
.soon-text { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.soon-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.soon-hint { font-size: 0.85rem; color: var(--faint); }

/* ---------- how it works ---------- */
.how { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 22px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-2); }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--lemon); }
.step .n { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--lemon); text-transform: uppercase; }
.step h3 { font-size: 1.3rem; font-weight: 700; margin: 8px 0 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.97rem; max-width: 36ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 92px; }
.faq-side h1, .faq-side h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-top: 10px; }
.faq-side p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.faq-side .btn { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px; font-weight: 600; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; transition: transform 0.2s ease, background 0.2s ease; }
.faq-list summary .plus::before, .faq-list summary .plus::after { content: ""; position: absolute; background: var(--muted); left: 50%; top: 50%; }
.faq-list summary .plus::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-list summary .plus::after { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.faq-list details[open] summary .plus { background: var(--lemon); border-color: var(--lemon); }
.faq-list details[open] summary .plus::before, .faq-list details[open] summary .plus::after { background: var(--lemon-ink); }
.faq-list details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details p { padding: 0 4px 20px; color: var(--muted); max-width: 60ch; }
.faq-list details p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* questions strip on the home page */
.qstrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.qstrip h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.qstrip p { color: var(--muted); margin-top: 4px; }
.qstrip-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a:hover { color: var(--text); }
.foot-right { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }

/* ---------- auth pages (login / register) ---------- */
.auth { display: grid; place-items: start center; padding: 64px var(--pad); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; width: 100%; margin-bottom: 26px; }
.auth-card h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; text-align: center; line-height: 1.1; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: 8px; }
.form { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 0.8rem; color: var(--faint); }
.field input, input.t, .input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font-family: var(--body); font-size: 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, input.t::placeholder { color: var(--faint); }
.field input:focus, input.t:focus { outline: none; border-color: var(--lemon); box-shadow: 0 0 0 3px var(--lemon-dim); }
.form .btn { margin-top: 4px; }
.status { font-size: 0.9rem; color: var(--muted); min-height: 1.2em; text-align: center; }
.status:empty { display: none; }
.errors { font-size: 0.88rem; color: #ff8a97; display: grid; gap: 4px; }
.errors:empty { display: none; }
.errors p { margin: 0; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 0.92rem; display: grid; gap: 6px; }
.auth-foot a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.auth-terms { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); text-align: center; margin-top: 18px; }

/* ---------- generic panels (account, downloads, buy) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.panel .panel-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stack { display: grid; gap: 24px; }

/* rows listing the cheats (downloads page, account page) */
.dl-list { display: grid; }
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.dl-row:first-child { border-top: 0; padding-top: 0; }
.dl-row:last-child { padding-bottom: 0; }
.dl-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.dl-name small { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 2px; }
.dl-meta { font-size: 0.85rem; color: var(--muted); }
.dl-actions { display: flex; gap: 8px; align-items: center; }
.state { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.state-owned { color: var(--ok); }
.state-none { color: var(--faint); }

.hwid-box { display: grid; gap: 10px; }
.hwid-value { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }

/* account settings form (IDs are used by accounts-settings.js, keep them) */
.setting { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; padding-top: 0; }
.setting .check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.setting .check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--lemon); cursor: pointer; }
.setting input.t[disabled] { opacity: 0.45; cursor: not-allowed; }
.setting input.t.is-editing { border-color: var(--lemon); }
.setting-danger .check { color: #ff8a97; }
.setting p { color: var(--muted); font-size: 0.9rem; }
#settings-button { display: none; margin-top: 8px; }
#confirm-password-box-container { display: none; position: fixed; inset: 0; background: rgba(15, 14, 11, 0.8); z-index: 90; }
#confirm-password-box {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
#confirm-password-box-head { display: flex; justify-content: space-between; align-items: center; }
#confirm-password-box-head b { font-family: var(--display); font-size: 1.1rem; }
#confirm-password-box-head-cancel { background: transparent; border: 1px solid var(--line-2); color: var(--muted); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
#confirm-password-box-head-cancel:hover { color: var(--text); border-color: var(--muted); }

/* Stripe checkout pages */
.checkout { max-width: 560px; margin: 0 auto; }
.checkout .panel { padding: 28px; }
.checkout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.checkout-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.checkout-head .price { font-size: 1.8rem; }
#payment-element { margin: 12px 0 18px; }
#error-messages { color: #ff8a97; font-size: 0.9rem; min-height: 1.2em; margin-top: 10px; }
.checkout-notes { margin-top: 16px; display: grid; gap: 10px; }

/* 404 */
.notfound { text-align: center; padding: 80px var(--pad); }
.notfound .code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; letter-spacing: -0.05em; color: var(--surface-2); }
.notfound h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.025em; margin-top: -0.4em; }
.notfound p { color: var(--muted); margin-top: 12px; }
.notfound .btn { margin-top: 24px; }

/* news */
.news-list { display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.news-item time { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); padding-top: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-side { position: static; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 12px;
  }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: 0; }
  .nav.nav-open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-auth { margin-left: 0; gap: 8px; }
  .nav-auth .btn { padding: 9px 12px; font-size: 0.88rem; }
  .hero { padding-top: 40px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .btn-lg { padding: 13px 18px; }
  .buy { grid-template-columns: 1fr; }
  .auth { padding-top: 40px; }
  .form, .panel { padding: 20px; }
  .dl-row { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
  .nav .brand span { display: none; }
  .nav .brand-mark { width: 34px; height: 34px; }
  .account-menu summary .name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .poster .play, .bw .arrow, .bw .tick, .faq-list summary .plus { transition: none; }
}
