:root {
  --bg: #0e0e18;
  --panel: #1c1c2e;
  --edge: #3a3731;
  --text: #e4e4f2;
  --dim: #a2a2bd;
  --amber: #ffb21e;
  --amber-hi: #ffe278;
  --green: #2cec3c;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #2b2b4a 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--amber); }
.doc a:hover { color: var(--amber-hi); }
img { max-width: 100%; height: auto; }
code { background: var(--raised); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  background: linear-gradient(#ffd25c, var(--amber) 55%, #f08a0a); color: #1a1205 !important;
  font-weight: 700; text-decoration: none; box-shadow: 0 4px 18px rgba(255, 178, 30, .25);
}
.btn.small { padding: 7px 14px; }
.btn.ghost, button.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--edge); box-shadow: none; }
.doc section { padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.doc h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; margin: 8px 0 18px; letter-spacing: -.02em; }
.doc h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.doc h3 { margin: 0 0 6px; font-size: 19px; color: var(--amber-hi); }
.lead { color: var(--dim); font-size: 19px; max-width: 760px; }
.fine { color: var(--dim); font-size: 14px; }
.lcd {
  display: inline-block; max-width: 100%; white-space: normal; margin: 0; padding: 4px 10px; border-radius: 4px;
  background: #000; color: var(--green); border: 1px solid #1d3a22;
  font: 600 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em;
}
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 6vw, 72px); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.hero-shot { margin: 0; }
.hero-shot img, .split img { image-rendering: pixelated; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.grid article, .doc details, .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.grid p { margin: 0; color: var(--dim); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; margin: 28px 0 14px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); color: var(--dim); }
.checks li b { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; background: var(--green); box-shadow: 0 0 10px var(--green); border-radius: 2px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 26px; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); display: block; width: 100%; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 26px 0 12px; }
.card { display: block; text-decoration: none; color: var(--text); transition: transform .12s, border-color .12s; }
a.card:hover { transform: translateY(-2px); border-color: var(--amber); }
.card b { display: block; font-size: 22px; color: var(--amber-hi); }
.card span { color: var(--dim); font-size: 15px; }
.card.mine { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.doc details { margin: 12px 0; padding: 14px 20px; }
.doc summary { cursor: pointer; font-weight: 650; }
.doc details p { color: var(--dim); margin: 10px 0 2px; }
.howto ol { color: var(--dim); margin: 10px 0; padding-left: 22px; }
.howto li { margin: 6px 0; }
.howto b { color: var(--text); }
.howto code, .doc details code { overflow-wrap: anywhere; }
#consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 460px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius); padding: 14px 18px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: 0 10px 40px rgba(0,0,0,.5); z-index: 20;
}
#consent[hidden] { display: none; }
#consent button.ghost { background: transparent; color: var(--text); border: 1px solid var(--edge); }
#consent p { margin: 0; flex: 1 1 200px; }
#consent button { font: inherit; border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; background: var(--amber); color: #1a1205; font-weight: 700; }
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.page .doc h1 { font-size: 40px; }
@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .lcd { font-size: 11px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
.skins .gallery { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.skins .gallery img { image-rendering: pixelated; }
@media (max-width: 900px) { .skins .gallery { grid-template-columns: 1fr; } }
.card a { display: block; margin-top: 10px; color: var(--text); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.card a:hover { border-color: var(--amber); color: var(--amber-hi); }
.card a small { color: var(--dim); margin-left: 6px; }
.best { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 22px 0 6px; }
.btn.big { font-size: 19px; padding: 14px 26px; }
.dl-note { color: var(--dim); font-size: 14px; margin: 4px 0 0; }
.dl-note a { color: var(--dim); }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px; margin-top: 28px; align-items: start; }
.vs .card > span { display: block; margin-bottom: 12px; }
.plain { color: var(--dim); padding-left: 20px; margin: 0; }
.plain li { padding: 6px 0; }
@media (max-width: 860px) { .vs { grid-template-columns: 1fr; } }
.vs .card a.btn { display: inline-block; margin-top: 18px; padding: 12px 22px; border-radius: 8px; }
.vs .card a.btn:not(.ghost) { color: #1a1205; border: 0; }
.vs .card a.btn.ghost { border: 1px solid var(--edge); }
.vs li b { display: inline; font-size: inherit; color: var(--text); }
/* skip link (candidate gx component): off-screen until focused */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--amber); color: #1a1205; font-weight: 700; }
.skip:focus { left: 16px; }
