/* Swift Client: the site wears the same identity as the launcher (square blocks, ink outlines, solid sides,
   pixel type, stepped motion) and the same selectable themes. */

/* ---------- themes ---------- */
:root,
:root[data-theme='swift'] {
  --canvas: #0a0b0d;
  --surface: #111317;
  --accent: #2e7cff;
  --accent-2: #2b2f36;
  --on-accent: #ffffff;
  --line: #1f2228;
  --line-strong: #2b2f36;
}
:root[data-theme='oled'] {
  --canvas: #000000;
  --surface: #0a0a0a;
  --accent: #2e7cff;
  --accent-2: #2a2a2a;
  --on-accent: #ffffff;
  --line: #1c1c1c;
  --line-strong: #2a2a2a;
}
:root[data-theme='nether'] { --canvas: #1a0a08; --surface: #2b120e; --accent: #e8590c; --accent-2: #7a1f1f; }
:root[data-theme='end'] { --canvas: #0f0a1a; --surface: #1c1329; --accent: #b983ff; --accent-2: #e8d77c; }
:root[data-theme='warden'] { --canvas: #050b10; --surface: #0d1a20; --accent: #4cc9c0; --accent-2: #1e3a3d; }
:root[data-theme='plains'] { --canvas: #0f140d; --surface: #1a2216; --accent: #7cb342; --accent-2: #d9b26a; }
:root[data-theme='ocean'] { --canvas: #061a1f; --surface: #0d2a31; --accent: #3ab6b0; --accent-2: #1f5c63; }
:root[data-theme='desert'] { --canvas: #1a140a; --surface: #2b2213; --accent: #e0a84c; --accent-2: #5c8a3c; }
:root[data-theme='cherry'] { --canvas: #160e12; --surface: #241620; --accent: #f4a6c1; --accent-2: #8c5a72; }
:root[data-theme='lush'] { --canvas: #0a140c; --surface: #152418; --accent: #5cd68a; --accent-2: #c97bd1; }
:root[data-theme='frozen'] { --canvas: #0a1418; --surface: #132229; --accent: #8fd8f0; --accent-2: #3d6b7a; }
/* The biome themes derive their lines and text colour from four values, like the launcher does */
:root[data-theme='nether'], :root[data-theme='end'], :root[data-theme='warden'], :root[data-theme='plains'], :root[data-theme='ocean'],
:root[data-theme='desert'], :root[data-theme='cherry'], :root[data-theme='lush'], :root[data-theme='frozen'] {
  --on-accent: #0b0d12;
  --line: color-mix(in srgb, var(--surface), #fff 8%);
  --line-strong: color-mix(in srgb, var(--surface), var(--accent-2) 38%);
}
:root {
  --surface-2: color-mix(in srgb, var(--surface), #fff 4%);
  --surface-3: color-mix(in srgb, var(--surface), #fff 9%);
  --accent-hi: color-mix(in srgb, var(--accent), #fff 18%);
  --side: color-mix(in srgb, var(--accent) 38%, #000);
  --ink: #000;
  --text: #e6e8ec;
  --muted: #9ba1ad;
  --faint: #6b7480;
  --ok: #3ecf8e;
  --wrap: 1160px;
  --display: 'Pixelify Sans', 'Inter', system-ui, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* ---------- blocks and chunky buttons (same recipe as the launcher) ---------- */
.block {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.05), 0 4px 0 0 var(--side);
}
.block-flat { background: var(--surface-2); border: 2px solid var(--line-strong); border-radius: 4px; }
.sign { font-family: var(--display); text-shadow: 3px 3px 0 var(--ink); }
.streak { display: flex; gap: 6px; height: 6px; }
.streak i { display: block; height: 100%; background: var(--accent); }
.streak i:nth-child(1) { width: 56px; }
.streak i:nth-child(2) { width: 24px; opacity: 0.6; }
.streak i:nth-child(3) { width: 8px; opacity: 0.3; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  font: 600 17px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface-3);
  cursor: pointer;
  box-shadow:
    inset 0 3px 0 rgb(255 255 255 / 0.12),
    inset 0 -4px 0 rgb(0 0 0 / 0.25),
    0 0 0 3px var(--ink),
    0 6px 0 3px var(--ink),
    0 9px 0 0 var(--line-strong);
  transition: transform 80ms steps(2), filter 80ms steps(2);
  margin-bottom: 9px;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.12), inset 0 -4px 0 rgb(0 0 0 / 0.25), 0 0 0 3px var(--ink), 0 1px 0 3px var(--ink), 0 4px 0 0 var(--line-strong); }
.btn-primary {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow:
    inset 0 4px 0 rgb(255 255 255 / 0.32),
    inset 0 -5px 0 rgb(0 0 0 / 0.26),
    0 0 0 3px var(--ink),
    0 7px 0 3px var(--ink),
    0 10px 0 0 var(--side);
}
.btn-primary:active { box-shadow: inset 0 4px 0 rgb(255 255 255 / 0.32), inset 0 -5px 0 rgb(0 0 0 / 0.26), 0 0 0 3px var(--ink), 0 2px 0 3px var(--ink), 0 5px 0 0 var(--side); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-big { height: 60px; padding: 0 30px; font-size: 21px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 96%, transparent);
  border-bottom: 3px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 700 22px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink); }
.brand small { margin-left: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font: 500 17px var(--display); color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 14px; }

/* theme picker */
.theme-picker { position: relative; }
.theme-btn {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  color: var(--text); font: 500 14px var(--display); cursor: pointer;
  background: var(--surface-2); border: 2px solid var(--line-strong); border-radius: 4px;
}
.theme-btn:hover { border-color: var(--accent); }
.swatch { display: block; width: 16px; height: 16px; border: 2px solid var(--ink); background: var(--c, var(--accent)); box-shadow: inset 0 0 0 2px var(--s, transparent); }
.theme-pop {
  position: absolute; right: 0; top: calc(100% + 12px); width: 296px; padding: 12px;
  display: none; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--surface); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 0 0 0 2px var(--line-strong), 0 8px 0 2px var(--side);
}
.theme-picker.open .theme-pop { display: grid; }
.theme-pop .head { grid-column: 1 / -1; font: 600 13px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.theme-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; cursor: pointer;
  color: var(--muted); font: 500 13px var(--display); background: var(--surface-2);
  border: 2px solid var(--line-strong); border-radius: 4px;
  transition: transform 80ms steps(2);
}
.theme-opt:hover { transform: translateY(-2px); color: var(--text); }
.theme-opt[aria-pressed='true'] { border-color: #fff; color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.theme-opt .chip { width: 100%; height: 26px; border: 2px solid var(--ink); background: var(--c1); position: relative; }
.theme-opt .chip::after { content: ''; position: absolute; right: 0; bottom: 0; width: 45%; height: 70%; background: var(--c2); border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 34px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.35;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px;
  font: 500 14px var(--display); color: var(--muted);
  background: var(--surface); border: 2px solid var(--line-strong); border-radius: 4px;
}
.pill i { width: 8px; height: 8px; background: var(--ok); }
.hero h1 { margin-top: 20px; font-size: clamp(46px, 7.4vw, 88px); text-transform: uppercase; line-height: 0.98; text-shadow: 4px 4px 0 var(--ink); }
.hero h1 .accent { color: var(--accent); }
.hero .streak { margin-top: 18px; }
.lead { margin-top: 20px; max-width: 520px; font-size: 18px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--faint); }

/* launcher mockup */
.mock-wrap { position: relative; padding-bottom: 34px; }
.mock { padding: 0; overflow: visible; }
.mock-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 3px solid var(--line); font: 600 14px var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.mock-bar img { width: 18px; height: 18px; }
.mock-bar span:last-child { margin-left: auto; color: var(--muted); font-weight: 500; letter-spacing: 0.06em; }
.mock-body { display: grid; grid-template-columns: 168px 1fr; gap: 14px; padding: 16px; }
.avatar-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 12px; text-align: center; position: relative; }
.avatar-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.avatar {
  width: 84px; height: 84px; margin-top: 4px; overflow: hidden; rotate: -2.5deg;
  background: var(--surface-3); border: 4px solid var(--ink); border-radius: 3px;
  box-shadow: 0 0 0 3px var(--accent), 0 7px 0 3px var(--ink), 0 10px 0 3px var(--side);
  animation: float 3.6s ease-in-out infinite;
}
.avatar canvas { width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.avatar-card h4 { margin: 8px 0 0; font: 600 20px var(--display); text-shadow: 2px 2px 0 var(--ink); }
.tag { padding: 1px 8px; font: 600 11px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); }
.xp { width: 100%; display: flex; gap: 2px; padding: 3px; background: var(--ink); }
.xp i { flex: 1; height: 9px; background: var(--surface-3); }
.xp i.on { background: var(--accent); box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.35); }
.lvl { align-self: stretch; display: flex; justify-content: space-between; font: 600 11px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.badges b { display: grid; place-items: center; width: 24px; height: 24px; font-size: 13px; background: var(--surface-3); border: 2px solid var(--ink); border-radius: 2px; }
.badges b.off { filter: grayscale(1); opacity: 0.3; }
.scene { position: relative; height: 188px; overflow: hidden; border: 3px solid var(--ink); border-radius: 5px; box-shadow: 0 0 0 2px var(--line-strong), 0 5px 0 2px var(--side); background: linear-gradient(#5d9bf0 0 58%, #6bb347 58% 74%, #8a5a34 74% 100%); }
.scene::before { content: ''; position: absolute; left: 14%; top: 14%; width: 26%; height: 14%; background: #fff; box-shadow: 28px 14px 0 #fff, -10px 14px 0 #fff; opacity: 0.85; }
.scene::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgb(0 0 0 / 0.5) 0 25%, rgb(0 0 0 / 0.32) 25% 50%, rgb(0 0 0 / 0.16) 50% 75%, rgb(0 0 0 / 0.06) 75%); }
.scene .tree { position: absolute; right: 12%; bottom: 26%; width: 34px; height: 54px; background: #6b4a2b; z-index: 1; }
.scene .tree::before { content: ''; position: absolute; left: -22px; top: -34px; width: 78px; height: 44px; background: #3f7d2a; border: 3px solid #2a5a1b; }
.scene-chip { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 10px; font: 600 14px var(--display); }
.scene-chip small { display: block; font: 500 10px Inter, sans-serif; color: var(--muted); }
.scene-chip .sq { width: 24px; height: 24px; background: var(--accent); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 12px var(--display); color: var(--on-accent); }
.play {
  position: absolute; left: 50%; bottom: 16px; z-index: 2; translate: -50% 0; width: 78%; height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 22px var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); border-radius: 4px;
  box-shadow: inset 0 4px 0 rgb(255 255 255 / 0.32), inset 0 -5px 0 rgb(0 0 0 / 0.26), 0 0 0 3px var(--ink), 0 7px 0 3px var(--ink), 0 10px 0 0 var(--side);
}
.play svg { width: 20px; height: 20px; fill: currentColor; }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.panel { padding: 8px 10px; }
.panel small { display: block; font: 600 10px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.panel b { font: 600 15px var(--display); }
.hotbar { display: flex; justify-content: center; gap: 4px; margin: 18px auto 0; width: fit-content; padding: 4px; background: var(--surface-2); border: 3px solid var(--ink); border-radius: 4px; box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.07), 0 6px 0 0 var(--side); }
.slot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; font-size: 20px; background: var(--surface); border: 3px solid var(--line-strong); border-radius: 2px; }
.slot em { position: absolute; right: 3px; bottom: 0; font: normal 600 11px var(--display); color: var(--muted); }
.slot.on { border-color: #fff; box-shadow: 0 0 0 3px var(--ink); transform: translateY(-4px); }

/* Zip */
.zip-wrap { position: absolute; z-index: 5; left: -26px; bottom: -6px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; cursor: pointer; user-select: none; }
.zip-wrap canvas { image-rendering: pixelated; width: 96px; height: auto; }
.zip-wrap.bob canvas { animation: bob 1.6s steps(4, end) infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.bubble {
  align-self: flex-start; margin-left: 18px; max-width: 220px; padding: 8px 12px; position: relative;
  font: 500 15px/1.3 var(--display); color: var(--text);
  background: var(--surface); border: 2px solid var(--line-strong); border-radius: 6px; box-shadow: 0 4px 0 0 var(--side);
  transition: opacity 120ms steps(3), transform 120ms steps(3);
}
.bubble::after { content: ''; position: absolute; left: 22px; top: 100%; width: 10px; height: 10px; background: var(--surface); border-right: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong); rotate: 45deg; translate: 0 -6px; }
.bubble[hidden] { display: block; opacity: 0; transform: translateY(6px) scale(0.94); pointer-events: none; }
.zip-lines { position: absolute; left: 0; bottom: 20px; width: 0; height: 0; pointer-events: none; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: color-mix(in srgb, var(--surface) 55%, var(--canvas)); border-block: 3px solid var(--line); }
.kicker { font: 600 14px var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.section h2 { margin-top: 10px; font-size: clamp(32px, 4.6vw, 52px); text-transform: uppercase; text-shadow: 3px 3px 0 var(--ink); }
.section .streak { margin-top: 14px; }
.sub { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 18px; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.stat { padding: 18px 20px; }
.stat b { display: block; font: 700 38px/1 var(--display); color: var(--accent); text-shadow: 2px 2px 0 var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 40px; }
.card { padding: 20px; transition: transform 80ms steps(2); }
.card:hover { transform: translateY(-3px); }
.card .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; font-size: 24px; background: var(--surface-3); border: 3px solid var(--ink); border-radius: 3px; box-shadow: 0 4px 0 0 var(--side); }
.card h3 { font-size: 22px; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.card .new { margin-left: 8px; padding: 1px 6px; font: 600 11px var(--display); letter-spacing: 0.1em; vertical-align: middle; color: var(--on-accent); background: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); }
.checks strong { color: var(--text); font-weight: 600; }

/* in-game mockups */
.game { position: relative; height: 330px; overflow: hidden; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 0 0 2px var(--line-strong), 0 8px 0 2px var(--side); background: linear-gradient(#78b4ff 0 56%, #5fa83a 56% 70%, #7a4f2b 70%); }
.game::before { content: ''; position: absolute; left: 62%; top: 12%; width: 20%; height: 10%; background: #fff; box-shadow: 24px 12px 0 #fff, -12px 12px 0 #fff; opacity: 0.85; }
.plate { position: absolute; display: flex; gap: 8px; padding: 5px 10px 5px 14px; font: 600 15px var(--display); color: #fff; background: rgb(12 15 22 / 0.9); box-shadow: 0 0 0 3px var(--ink), 0 5px 0 3px var(--side); }
.plate::before { content: ''; position: absolute; left: 4px; top: 5px; bottom: 5px; width: 3px; background: var(--accent); }
.keys { position: absolute; left: 16px; bottom: 18px; display: grid; grid-template-columns: repeat(3, 34px); gap: 3px; }
.key { display: grid; place-items: center; height: 34px; font: 700 14px var(--display); color: #fff; background: rgb(20 25 37 / 0.95); box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px var(--side); }
.key.on { background: var(--accent); color: var(--on-accent); transform: translateY(3px); box-shadow: 0 0 0 3px var(--ink), 0 1px 0 3px var(--side); }
.key.w { grid-column: 2; grid-row: 1; }
.key.a { grid-column: 1; grid-row: 2; }
.key.s { grid-column: 2; grid-row: 2; }
.key.d { grid-column: 3; grid-row: 2; }
.key.wide { grid-column: 1 / span 3; grid-row: 3; }
.player { position: absolute; right: 16px; bottom: 18px; width: 232px; padding: 12px; display: grid; grid-template-columns: 52px 1fr; gap: 10px; color: #fff; background: rgb(12 15 22 / 0.92); box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--side); }
.player::before { content: ''; position: absolute; left: 6px; right: 6px; top: 4px; height: 3px; background: var(--accent); }
.player .art { width: 52px; height: 52px; background: linear-gradient(135deg, var(--accent), #1b2540); box-shadow: 0 0 0 3px var(--ink); }
.player b { display: block; font: 600 16px var(--display); }
.player small { font-size: 12px; color: #9aa6ba; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; margin-top: 6px; }
.eq i { width: 5px; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); animation: eq 0.9s steps(4, end) infinite; }
.eq i:nth-child(2) { animation-delay: 0.2s; } .eq i:nth-child(3) { animation-delay: 0.4s; } .eq i:nth-child(4) { animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.prog { grid-column: 1 / -1; display: flex; gap: 2px; padding: 3px; background: var(--ink); }
.prog i { flex: 1; height: 6px; background: #1a1f2b; }
.prog i.on { background: var(--accent); }
.toast { position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; font: 500 14px var(--display); color: #fff; background: rgb(12 15 22 / 0.94); box-shadow: 0 0 0 3px var(--ink), 0 5px 0 3px var(--side); }
.toast img { width: 22px; height: 22px; }
.menu-mock { margin-top: 22px; padding: 14px; }
.menu-mock .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { padding: 8px 6px 6px; text-align: center; font: 500 13px var(--display); background: #11151f; box-shadow: 0 0 0 3px var(--ink); position: relative; }
.tile.on { box-shadow: 0 0 0 3px var(--accent); }
.tile i { position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; background: #2a3042; box-shadow: 0 0 0 2px var(--ink); }
.tile.on i { background: var(--ok); }
.tile .e { display: block; font-size: 20px; margin-bottom: 2px; }
.tile u { display: block; margin-top: 5px; padding: 2px 0; font: 600 11px var(--display); letter-spacing: 0.08em; text-decoration: none; background: #1e2433; color: #8a93a0; }
.tile.on u { background: var(--accent); color: var(--on-accent); }
.menu-mock .hotbar { margin-top: 14px; }

/* themes section */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 40px; }
.theme-grid .theme-opt { padding: 12px 8px; font-size: 16px; }
.theme-grid .theme-opt .chip { height: 56px; }
.note { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* partners */
.partner { display: flex; align-items: center; gap: 18px; padding: 18px 22px; margin-top: 34px; }
.partner-badge { display: grid; place-items: center; width: 52px; height: 52px; font: 700 24px var(--display); color: var(--on-accent); background: var(--accent); border: 3px solid var(--ink); }
.partner h3 { font-size: 24px; }
.partner p { color: var(--muted); font-size: 15px; }
.partner-info { flex: 1; }
.ip { display: flex; align-items: center; gap: 12px; padding: 8px 14px; font: 500 15px var(--display); color: var(--text); cursor: pointer; background: var(--surface-3); border: 2px solid var(--line-strong); border-radius: 4px; }
.ip:hover { border-color: var(--accent); }
.ip code { font: 500 14px 'JetBrains Mono', ui-monospace, monospace; }
.ip span { color: var(--accent); }

/* download */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.dl { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 20px 20px; text-align: center; }
.dl.current { border-color: var(--accent); }
.dl .os { width: 38px; height: 38px; fill: var(--muted); }
.dl.current .os { fill: var(--accent); }
.dl h3 { font-size: 26px; }
.dl p { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.dl .alt { font-size: 14px; color: var(--muted); }
.dl .alt:hover { color: var(--accent); text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 2px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 15px; }
.steps b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; font: 700 15px var(--display); color: var(--on-accent); background: var(--accent); border: 2px solid var(--ink); }

/* faq */
details { margin-top: 12px; background: var(--surface); border: 2px solid var(--line-strong); border-radius: 4px; box-shadow: 0 4px 0 0 var(--side); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font: 600 19px var(--display); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 700 22px var(--display); color: var(--accent); }
details[open] summary::after { content: '–'; }
details p { padding: 0 18px 18px; color: var(--muted); }
.section.faq .narrow > .sub { margin-bottom: 8px; }

/* footer */
.footer { padding: 36px 0 90px; border-top: 3px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; }
.footer nav { display: flex; gap: 22px; font: 500 16px var(--display); color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.legal { flex-basis: 100%; font-size: 13px; color: var(--faint); }

/* floating hotbar nav on small screens would crowd the page: keep one at the bottom of the viewport on desktop only */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 15; translate: -50% 0; display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 3px solid var(--ink); border-radius: 4px; box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.07), 0 6px 0 0 var(--side); }
.dock a { position: relative; display: grid; place-items: center; width: 50px; height: 50px; font-size: 22px; background: var(--surface); border: 3px solid var(--line-strong); border-radius: 2px; transition: transform 80ms steps(2); }
.dock a em { position: absolute; right: 3px; bottom: 0; font: normal 600 11px var(--display); color: var(--muted); }
.dock a:hover { transform: translateY(-3px); background: var(--surface-3); }
.dock a.active { border-color: #fff; box-shadow: 0 0 0 3px var(--ink); transform: translateY(-4px); }

/* entrance: stepped pop, only when JS runs */
.js .reveal { opacity: 0; transform: translateY(14px) scale(0.97); }
.js .reveal.in { animation: pop 260ms steps(6, end) both; }
@keyframes pop { 0% { opacity: 0; transform: translateY(14px) scale(0.96); } 60% { opacity: 1; transform: translateY(-3px) scale(1.02); } 100% { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .dl-grid, .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .mock-body { grid-template-columns: 1fr; }
  .dock { display: none; }
  .zip-wrap { left: -6px; }
  .zip-wrap canvas { width: 76px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .section { padding: 64px 0; }
  .btn-big { height: 54px; font-size: 18px; padding: 0 22px; }
  .brand small { display: none; }
  .partner { flex-wrap: wrap; }
  .menu-mock .tiles { grid-template-columns: repeat(2, 1fr); }
  .player { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Zip's speed lines while he runs */
.zip-wrap.running::before {
  content: '';
  position: absolute;
  right: 88%;
  bottom: 40px;
  width: 52px;
  height: 4px;
  background: var(--accent);
  box-shadow: -14px -16px 0 0 var(--accent-hi), 8px -32px 0 0 var(--accent), -6px 16px 0 0 var(--accent-hi);
}
