/* Hotwire — site theme. Colours and type follow the in-game Hotwire screen. */

@font-face {
  font-family: "MC";
  src: url("../assets/fonts/Minecraft.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #0c0a10;
  --bg-2: #110e16;
  --panel: #15111c;
  --panel-2: #1b1624;
  --panel-3: #241d2f;
  --line: rgba(226, 208, 255, 0.08);
  --line-2: rgba(226, 208, 255, 0.15);
  --text: #f3eef8;
  --text-2: #b8adc6;
  --muted: #7e7390;
  --pink: #ff62b0;
  --pink-2: #ff8cc6;
  --pink-ink: #2a0a1a;
  --pink-dim: rgba(255, 98, 176, 0.12);
  --violet: #9b7cff;
  --violet-dim: rgba(155, 124, 255, 0.14);
  --blue: #63a1ff;
  --green: #66e3a0;
  --red: #ff6b81;
  --yellow: #ffd35c;
  --mc: "MC", ui-monospace, monospace;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: var(--pink);
  z-index: 60;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }
::selection { background: var(--pink); color: var(--pink-ink); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.mc { font-family: var(--mc); font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); }
.pink { color: var(--pink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--mc); font-weight: 400; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.08; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.3; }
h1 em, h2 em { font-style: normal; color: var(--pink); }
.lede { color: var(--text-2); font-size: 18px; max-width: 34em; margin: 20px 0 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mc);
  font-size: 14px;
  color: var(--pink);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--mc);
  font-size: 16px;
  border: 2px solid var(--b);
  background: var(--panel);
  color: var(--text);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--pink); color: var(--pink-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-pink {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--pink-ink);
  box-shadow: 0 4px 0 #b83a7b;
}
.btn-pink:hover { background: var(--pink-2); border-color: var(--pink-2); color: var(--pink-ink); box-shadow: 0 6px 0 #b83a7b; }
.btn-pink:active { box-shadow: 0 2px 0 #b83a7b; transform: translateY(2px); }
.btn.is-off { pointer-events: none; opacity: 0.5; box-shadow: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; }
.btn .tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.18);
}
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  font-family: var(--mc);
  font-size: 14px;
  color: var(--text);
  background: var(--panel-3);
  border: 1px solid var(--line-2);
  box-shadow: 0 3px 0 #08060b;
  vertical-align: 2px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 3px;
  inset-inline: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 10, 16, 0.96);
  border-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mc); font-size: 22px; }
.brand img { width: 32px; height: 32px; image-rendering: pixelated; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-family: var(--mc);
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-side { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-2);
  border: 1px solid transparent;
  background: none;
  transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  background: rgba(12, 10, 16, 0.96);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a { font-family: var(--mc); font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: flex; }

/* ---------- sections ---------- */
.section { padding: 128px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 16px 0 0; }

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 136px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/bg/hero.jpg") center/cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(12, 10, 16, 0.55) 55%, rgba(12, 10, 16, 0.2)),
    linear-gradient(0deg, var(--bg), transparent 30%);
}
#sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 3.9vw, 58px); }
.chip-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  font-family: var(--mc);
  font-size: 13px;
  background: rgba(21, 17, 28, 0.8);
  border: 1px solid var(--line-2);
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.chip-live:hover { border-color: var(--pink); }
.chip-live .dot { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 0 3px rgba(102, 227, 160, 0.18); animation: blink 2s steps(2) infinite; }
.chip-live b { font-weight: 400; color: var(--pink); }
@keyframes blink { 50% { opacity: 0.35; } }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 4px; }
.hero h1 .line > span { display: block; animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(105%); } }
.hero .lede, .hero-cta, .hero-meta { animation: fade 1s var(--ease) both; }
.hero .lede { animation-delay: 0.25s; }
.hero-cta { animation-delay: 0.35s; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { animation-delay: 0.45s; margin-top: 24px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } }

.hero-shot { position: relative; perspective: 1400px; animation: fade 1.2s 0.2s var(--ease) both; }
.window {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.8);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.window::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--pink); z-index: 2; }
.window > img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.pop {
  position: absolute;
  width: 62%;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.pop.show { opacity: 1; transform: none; }
.pop-1 { right: -6%; top: 10%; }
.pop-2 { left: -8%; bottom: -10%; }
.pop-3 { right: -4%; bottom: -14%; }

/* stats strip */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 400 40px/1 var(--mc); }
.stat b small { font-size: 22px; color: var(--pink); margin-left: 2px; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mc); font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; background: var(--pink); opacity: 0.6; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- try it ---------- */
.try { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.try-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 104px; }
.try-tab {
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: 1px solid transparent;
  border-left: 2px solid var(--line-2);
  transition: background 0.25s, border-color 0.25s;
}
.try-tab b { display: block; font: 400 17px/1.3 var(--mc); color: var(--text-2); transition: color 0.2s; }
.try-tab span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.try-tab:hover b { color: var(--text); }
.try-tab.on { background: var(--panel); border-color: var(--line); border-left-color: var(--pink); }
.try-tab.on b { color: var(--text); }
.try-note { margin-top: 16px; padding-left: 20px; font-size: 13px; color: var(--muted); }

/* the in-game replica */
.hw {
  --hw-bg: rgba(18, 13, 24, 0.9);
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  height: 620px;
  font-family: var(--mc);
  font-size: 15px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.hw::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/bg/hw.jpg") center/cover;
}
.hw::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--pink); z-index: 3; }
.hw-side {
  display: flex;
  flex-direction: column;
  background: rgba(14, 10, 19, 0.92);
  border-right: 1px solid var(--line);
  padding-top: 10px;
}
.hw-side button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  background: none;
  border: 0;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.hw-side button svg { width: 18px; height: 18px; }
.hw-side button:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.hw-side button.on { color: var(--text); background: rgba(255, 98, 176, 0.06); }
.hw-side button.on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--pink); }
.hw-side .badge { position: absolute; top: 6px; right: 14px; font-size: 13px; color: var(--pink); }
.hw-side .spacer { flex: 1; }
.hw-main { background: var(--hw-bg); position: relative; min-width: 0; display: flex; flex-direction: column; }
.hw-view { display: none; flex: 1; min-height: 0; flex-direction: column; padding: 18px 22px 0; animation: viewIn 0.35s var(--ease); }
.hw-view.on { display: flex; }
@keyframes viewIn { from { opacity: 0; transform: translateX(10px); } }
.hw-top { display: flex; gap: 20px; align-items: flex-start; }
.hw-title { font-size: 34px; line-height: 1; }
.hw-by { color: var(--text-2); margin-top: 6px; }
.hw-by i { color: var(--pink); font-style: normal; }
.hw-count { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--text-2); }
.hw-bar { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.08); position: relative; }
.hw-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: width 0.6s var(--ease); }
.hw-search {
  margin-left: auto;
  width: 220px;
  height: 34px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--pink);
  color: var(--text);
  font: inherit;
  outline: none;
}
.hw-search::placeholder { color: var(--muted); }
.hw-filters { display: flex; align-items: center; gap: 6px; margin: 14px 0 8px; }
.hw-seg { display: flex; border: 1px solid var(--line-2); }
.hw-seg button { padding: 6px 14px; background: none; border: 0; color: var(--text-2); font: inherit; }
.hw-seg button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--pink); }
.hw-btn {
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hw-btn:hover { border-color: var(--pink); color: var(--text); }
.hw-btn.pink { border-color: var(--pink); color: var(--pink); }
.hw-btn.pink:hover { background: var(--pink); color: var(--pink-ink); }
.hw-btn[disabled] { opacity: 0.45; pointer-events: none; }
.hw-list { flex: 1; overflow-y: auto; margin: 0 -22px; padding: 0 22px 18px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.hw-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s, opacity 0.3s;
  position: relative;
}
.hw-row:hover { background: rgba(255, 255, 255, 0.035); }
.hw-row img { width: 32px; height: 32px; image-rendering: pixelated; transition: filter 0.3s; }
.hw-row .nm { line-height: 1.2; min-width: 0; }
.hw-row .nm span { display: block; color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-row.off img { filter: grayscale(1) brightness(0.6); }
.hw-row.off .nm b { color: var(--muted); }
.hw-row b { font-weight: 400; }
.hw-right { display: flex; align-items: center; gap: 10px; }
.hw-tag { padding: 2px 8px; border: 1px solid rgba(99, 161, 255, 0.5); color: var(--blue); font-size: 13px; white-space: nowrap; }
.hw-note { color: var(--muted); font-size: 14px; white-space: nowrap; }
.hw-star { width: 22px; background: none; border: 0; color: var(--muted); padding: 0; font-size: 16px; line-height: 1; }
.hw-star.on { color: var(--yellow); }
.hw-sw {
  position: relative;
  width: 46px;
  height: 22px;
  border: 2px solid var(--violet);
  background: rgba(155, 124, 255, 0.25);
  padding: 0;
  transition: border-color 0.25s, background 0.25s;
}
.hw-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--violet);
  transition: right 0.25s var(--ease), background 0.25s;
}
.hw-sw[aria-checked="false"] { border-color: var(--line-2); background: rgba(0, 0, 0, 0.3); }
.hw-sw[aria-checked="false"]::after { right: 26px; background: var(--muted); }
.hw-sw[disabled] { border-color: var(--line); background: rgba(255, 255, 255, 0.03); cursor: not-allowed; }
.hw-sw[disabled]::after { background: var(--panel-3); }
.hw-busy { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--pink); animation: busy var(--t, 900ms) linear forwards; }
@keyframes busy { from { width: 0; } to { width: 100%; } }
.hw-status { color: var(--pink); font-size: 14px; white-space: nowrap; }
.hw-status::after { content: ""; animation: dots 0.9s steps(4) infinite; display: inline-block; width: 1.2em; text-align: left; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* store */
.hw-store-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hw-store-top .hw-search { margin: 0; width: 240px; }
.hw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 4px; }
.hw-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: rgba(20, 15, 27, 0.92);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.hw-card:hover { border-color: rgba(255, 98, 176, 0.6); background: rgba(34, 24, 44, 0.95); }
.hw-card img { width: 64px; height: 64px; image-rendering: pixelated; }
.hw-card .meta { color: var(--muted); font-size: 13px; }
.hw-card p { margin: 4px 0 8px; color: var(--text-2); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hw-card .act { display: flex; justify-content: flex-end; }
.hw-card .hw-btn { font-size: 14px; padding: 4px 12px; }
.hw-card .hw-btn.done { border-color: transparent; color: var(--muted); }

/* updates + pending */
.hw-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hw-h .hw-title { font-size: 30px; }
.hw-up { display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; position: relative; }
.hw-up .chk { width: 16px; height: 16px; border: 2px solid var(--violet); display: grid; place-items: center; }
.hw-up .chk::after { content: ""; width: 6px; height: 6px; background: var(--violet); }
.hw-up img { width: 32px; height: 32px; }
.hw-up .ver { white-space: nowrap; font-size: 14px; }
.hw-up .ver .a { color: var(--red); }
.hw-up .ver .b { color: var(--green); }
.hw-up .ver .kb { color: var(--muted); margin-left: 10px; }
.hw-up .res { font-size: 14px; white-space: nowrap; }
.hw-up.ok .res { color: var(--green); }
.hw-up.wait .res { color: var(--yellow); }
.hw-pend { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--line); align-items: start; }
.hw-pend img { width: 32px; height: 32px; }
.hw-pend p { margin: 2px 0 0; color: var(--blue); font-size: 14px; line-height: 1.4; }
.hw-pend p.gray { color: var(--text-2); }
.hw-pend em { font-style: normal; color: var(--yellow); }
.hw-empty { color: var(--muted); padding: 40px 8px; text-align: center; }
.hw-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; }

.hw-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #0e0a13;
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--pink);
  font-size: 14px;
  white-space: nowrap;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.hw-toast.show { opacity: 1; transform: translate(-50%, 0); }
.hw-toast b { font-weight: 400; color: var(--pink); }

/* ---------- features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card:hover { border-color: rgba(255, 98, 176, 0.35); transform: translateY(-4px); }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); }
.card .shot { margin-top: 28px; border: 1px solid var(--line-2); transition: transform 0.6s var(--ease); }
.card:hover .shot { transform: scale(1.02); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.card-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  background: var(--pink-dim);
  color: var(--pink);
}
.card-ico svg { width: 22px; height: 22px; }
.stack-shots { position: relative; margin-top: 28px; height: 260px; }
.stack-shots img { position: absolute; width: 82%; border: 1px solid var(--line-2); transition: transform 0.6s var(--ease); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); }
.stack-shots img:nth-child(1) { left: 0; top: 0; }
.stack-shots img:nth-child(2) { right: 0; top: 70px; }
.card:hover .stack-shots img:nth-child(1) { transform: translate(-6px, -6px) rotate(-1deg); }
.card:hover .stack-shots img:nth-child(2) { transform: translate(6px, 6px) rotate(1deg); }

/* ---------- developers ---------- */
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text-2); }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; background: var(--pink); }
.ticks b { color: var(--text); font-weight: 500; }
.devwin { background: var(--panel); border: 1px solid var(--line-2); font-family: var(--mc); font-size: 15px; position: relative; }
.devwin::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--violet); }
.devwin-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.devwin-h .t { margin-right: auto; }
.devwin-h kbd { font-size: 13px; height: 22px; min-width: 22px; }
.builds { list-style: none; margin: 0; padding: 8px; max-height: 300px; overflow: hidden; }
.build {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  animation: buildIn 0.5s var(--ease);
}
@keyframes buildIn { from { opacity: 0; transform: translateY(-12px); background: rgba(155, 124, 255, 0.2); } }
.build:hover { background: rgba(255, 255, 255, 0.03); }
.build .n { color: var(--violet); }
.build .d { color: var(--text-2); font-size: 14px; }
.build .d span { color: var(--muted); }
.build.cur { border-color: rgba(102, 227, 160, 0.4); background: rgba(102, 227, 160, 0.05); }
.build.cur .n { color: var(--green); }
.build .pin { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 0 4px; }
.build .pin.on { color: var(--yellow); }
.build .hw-btn { font-size: 13px; padding: 3px 10px; }
.build.cur .hw-btn { visibility: hidden; }
.devwin-f { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.devwin-f .hint { color: var(--muted); font-size: 13px; margin-right: auto; }
.crash {
  margin: 0 8px 8px;
  padding: 14px;
  background: rgba(255, 107, 129, 0.06);
  border: 1px solid rgba(255, 107, 129, 0.25);
  font-size: 14px;
  color: var(--text-2);
}
.crash b { font-weight: 400; color: var(--red); display: block; margin-bottom: 6px; }
.crash button { background: none; border: 0; padding: 0; color: var(--blue); font: 13px var(--mono); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- how ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.how .card { padding: 28px; }
.how .num { font: 400 14px var(--mc); color: var(--pink); margin-bottom: 16px; display: block; }
.how-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mc); color: var(--pink); }
.how-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.how-link:hover svg { transform: translateX(4px); }

/* ---------- compat teaser ---------- */
.ctease { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); }
.searchbox input {
  width: 100%;
  height: 60px;
  padding: 0 18px 0 52px;
  background: var(--panel);
  border: 2px solid var(--line-2);
  color: var(--text);
  font: 400 17px var(--mc);
  outline: none;
  transition: border-color 0.2s;
}
.searchbox input:focus { border-color: var(--pink); }
.searchbox input::placeholder { color: var(--muted); }
.qres { margin-top: 12px; border: 1px solid var(--line); background: var(--panel); min-height: 300px; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); animation: fade 0.35s var(--ease) both; animation-delay: var(--d, 0s); }
.qrow:last-child { border-bottom: 0; }
.qrow .nm { font-family: var(--mc); margin-right: auto; }
.qrow .v { font: 12px var(--mono); color: var(--muted); }
.qmore { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: var(--muted); font-size: 14px; }
.qmore a { font-family: var(--mc); color: var(--pink); }

/* status pills shared */
.st { display: inline-flex; align-items: center; gap: 8px; font: 400 13px var(--mc); white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.st.ok { color: var(--green); }
.st.warn { color: var(--yellow); }
.st.bad { color: var(--red); }
.st.none { color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { --pad: max(24px, (100vw - var(--wrap)) / 2); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 16px; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.shot-card { flex: 0 0 min(560px, 82vw); scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); padding: 0; text-align: left; transition: border-color 0.3s; }
.shot-card:hover { border-color: rgba(255, 98, 176, 0.4); }
.shot-card .im { aspect-ratio: 16 / 9; overflow: hidden; background: #000; display: grid; place-items: center; }
.shot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot-card img.contain { object-fit: contain; padding: 16px; }
.shot-card:hover img { transform: scale(1.04); }
.shot-card .cap { padding: 16px 18px; }
.shot-card .cap b { display: block; font: 400 16px var(--mc); }
.shot-card .cap span { color: var(--muted); font-size: 14px; }
.gal-ctrl { display: flex; gap: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(6, 4, 9, 0.95); padding: 32px; }
.lightbox.open { display: grid; animation: fade 0.3s var(--ease); }
.lightbox img { max-height: 82vh; width: auto; border: 1px solid var(--line-2); }
.lightbox p { text-align: center; font-family: var(--mc); margin: 16px 0 0; }
.lightbox .icon-btn { position: absolute; top: 20px; right: 20px; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font: 400 18px/1.35 var(--mc); cursor: pointer; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--pink-2); }
.faq summary::after { content: "+"; color: var(--pink); font-size: 22px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text-2); max-width: 40em; animation: fade 0.4s var(--ease); }

/* ---------- cta ---------- */
.cta { position: relative; padding: 120px 0; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: url("../assets/bg/cta.jpg") center/cover; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); }
.cta p { color: var(--text-2); font-size: 18px; margin: 16px 0 36px; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta img.icon { width: 72px; height: 72px; margin: 0 auto 24px; image-rendering: pixelated; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 400 14px var(--mc); color: var(--muted); margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--text-2); transition: color 0.2s; }
.foot a:hover { color: var(--pink-2); }
.foot p { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 28em; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- page heads (download, compat) ---------- */
.page-head { position: relative; padding: 168px 0 72px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-head .hero-bg { inset: 0; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg), transparent 70%); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.page-head .lede { animation: fade 0.8s 0.15s var(--ease) both; }
.page-head h1 { animation: fade 0.8s var(--ease) both; }

/* ---------- download ---------- */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.line-card {
  position: relative;
  text-align: left;
  padding: 24px;
  background: var(--panel);
  border: 2px solid var(--line);
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}
.line-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.line-card.on { border-color: var(--pink); background: linear-gradient(var(--pink-dim), var(--pink-dim)), var(--panel); }
.line-card .k { font: 400 13px var(--mc); color: var(--muted); }
.line-card .nm { display: block; font: 400 28px/1.2 var(--mc); margin: 8px 0 14px; }
.line-card .vs { display: flex; flex-wrap: wrap; gap: 6px; }
.line-card .vs span { font: 12px var(--mono); padding: 3px 7px; border: 1px solid var(--line-2); color: var(--text-2); }
.line-card .flag { position: absolute; top: 20px; right: 20px; font: 400 12px var(--mc); color: var(--pink); }
.line-card .flag.old { color: var(--muted); }
.dl-panel { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line-2); position: relative; }
.dl-panel::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--pink); }
.dl-main { padding: 36px; border-right: 1px solid var(--line); }
.dl-main h2 { font-size: 32px; }
.dl-main .file { font: 13px var(--mono); color: var(--muted); margin: 10px 0 28px; word-break: break-all; }
.dl-main .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dl-req { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; color: var(--text-2); font-size: 14px; }
.dl-req span { display: inline-flex; align-items: center; gap: 8px; }
.dl-req svg { width: 16px; height: 16px; color: var(--pink); }
.dl-ab { padding: 36px; }
.dl-ab h3 { font-size: 18px; }
.dl-ab > p { color: var(--text-2); margin: 10px 0 20px; font-size: 15px; }
.ab { display: grid; gap: 10px; }
.ab a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-2);
  transition: border-color 0.2s, background 0.2s;
}
.ab a:hover { border-color: var(--pink); background: rgba(255, 255, 255, 0.02); }
.ab .l { display: grid; place-items: center; width: 44px; height: 44px; font: 400 22px var(--mc); background: var(--panel-3); }
.ab a.mine .l { background: var(--pink); color: var(--pink-ink); }
.ab b { display: block; font: 400 16px var(--mc); }
.ab small { color: var(--muted); font: 12px var(--mono); }
.ab svg { width: 18px; height: 18px; color: var(--muted); }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.steps4 li { list-style: none; padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.steps4 li::before { counter-increment: st; content: "0" counter(st); display: block; font: 400 14px var(--mc); color: var(--pink); margin-bottom: 18px; }
.steps4 h3 { font-size: 18px; margin-bottom: 8px; }
.steps4 p { margin: 0; color: var(--text-2); font-size: 15px; }
.steps4 { padding: 0; margin: 0; }

/* changelog */
.cl-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rel { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.rel-side .v { font: 400 22px var(--mc); }
.rel-side .d { color: var(--muted); font-size: 14px; margin-top: 6px; }
.rel-side .latest { display: inline-block; margin-top: 12px; font: 400 12px var(--mc); color: var(--pink); border: 1px solid var(--pink); padding: 2px 8px; }
.rel-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rel-body li { position: relative; padding-left: 22px; color: var(--text-2); }
.rel-body li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--line-2); }
.rel-body li.hi { color: var(--text); }
.rel-body li.hi::before { background: var(--pink); }
.rel-body p { color: var(--text-2); margin: 0 0 10px; }
.rel-body h4 { font: 400 15px var(--mc); margin: 20px 0 10px; }
.rel-body code { background: var(--panel-3); padding: 1px 5px; }
.rel-body .more { margin-top: 16px; background: none; border: 0; padding: 0; color: var(--pink); font: 400 14px var(--mc); }
.rel-body.clip li:nth-child(n + 8) { display: none; }
.skeleton { height: 18px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-3) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- compat page ---------- */
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; border: 1px solid var(--line); background: rgba(21, 17, 28, 0.7); }
.cstats div { padding: 24px; border-left: 1px solid var(--line); }
.cstats div:first-child { border-left: 0; }
.cstats b { display: block; font: 400 36px/1 var(--mc); }
.cstats span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line-2); background: var(--panel); position: relative; }
.check::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--violet); }
.check-in { padding: 32px; border-right: 1px solid var(--line); }
.check-in h2 { font-size: 28px; }
.check-in > p { color: var(--text-2); margin: 10px 0 20px; }
.drop {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 32px 16px;
  border: 2px dashed var(--line-2);
  color: var(--text-2);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.drop svg { width: 28px; height: 28px; color: var(--pink); }
.drop b { font: 400 16px var(--mc); color: var(--text); }
.drop.over { border-color: var(--pink); background: var(--pink-dim); }
.drop small { color: var(--muted); }
.paste { width: 100%; min-height: 110px; margin-top: 12px; padding: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); color: var(--text); font: 13px/1.5 var(--mono); resize: vertical; outline: none; }
.paste:focus { border-color: var(--pink); }
.check-out { padding: 32px; display: flex; flex-direction: column; min-height: 360px; }
.check-out .empty { margin: auto; text-align: center; color: var(--muted); max-width: 22em; }
.check-out .empty svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--line-2); }
.sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.sum div { padding: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.sum b { display: block; font: 400 26px var(--mc); }
.sum span { font-size: 12px; color: var(--muted); }
.sum .ok b { color: var(--green); }
.sum .warn b { color: var(--yellow); }
.sum .bad b { color: var(--red); }
.sum .none b { color: var(--muted); }
.matches { list-style: none; padding: 0; margin: 0; overflow-y: auto; max-height: 260px; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.matches li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; animation: fade 0.3s var(--ease) both; animation-delay: var(--d, 0s); }
.matches li .f { font: 12px var(--mono); color: var(--muted); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.matches li button { background: none; border: 0; padding: 0; color: var(--text); font: 400 14px var(--mc); }
.matches li button:hover { color: var(--pink-2); }

.toolbar {
  position: sticky;
  top: 75px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  background: rgba(12, 10, 16, 0.97);
  border-bottom: 1px solid var(--line);
}
.toolbar .searchbox { flex: 1 1 260px; }
.toolbar .searchbox input { height: 44px; font-size: 15px; }
.seg { display: flex; border: 1px solid var(--line-2); background: var(--panel); }
.seg button { height: 42px; padding: 0 14px; background: none; border: 0; color: var(--text-2); font: 400 14px var(--mc); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--pink); }
.seg button .c { color: var(--muted); margin-left: 6px; }
.count-line { color: var(--muted); font-size: 14px; padding: 16px 0 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; }

.mods { border-top: 1px solid var(--line); }
.mod { border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 64px; }
.mod-h {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 110px 120px 24px;
  gap: 16px;
  align-items: center;
  padding: 16px 12px;
  background: none;
  border: 0;
  text-align: left;
  transition: background 0.2s;
}
.mod-h:hover { background: var(--panel); }
.mod-h .nm { font: 400 17px var(--mc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-h .vers { display: flex; gap: 6px; flex-wrap: wrap; }
.vchip { font: 12px var(--mono); padding: 2px 7px; border: 1px solid; }
.vchip.ok { color: var(--green); border-color: rgba(102, 227, 160, 0.35); }
.vchip.warn { color: var(--yellow); border-color: rgba(255, 211, 92, 0.35); }
.vchip.bad { color: var(--red); border-color: rgba(255, 107, 129, 0.35); }
.vchip.none { color: var(--muted); border-color: var(--line-2); }
.mod-h .date { font: 13px var(--mono); color: var(--muted); }
.mod-h .chev { width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s var(--ease); }
.mod.open .mod-h .chev { transform: rotate(180deg); }
.mod.open .mod-h { background: var(--panel); }
.mod.flash .mod-h { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { background: var(--pink-dim); } }
.mod-b { display: none; padding: 4px 12px 24px; background: var(--panel); }
.mod.open .mod-b { display: block; animation: fade 0.35s var(--ease); }
.runs { width: 100%; border-collapse: collapse; font-size: 14px; }
.runs th { text-align: left; font: 400 13px var(--mc); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.runs td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.runs td.v { font: 13px var(--mono); color: var(--text-2); white-space: nowrap; }
.res { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.res::before { content: ""; width: 7px; height: 7px; flex: none; }
.res.ok { color: var(--text-2); }
.res.ok::before { background: var(--green); }
.res.warn { color: var(--yellow); }
.res.warn::before { background: var(--yellow); }
.res.bad { color: var(--red); }
.res.bad::before { background: var(--red); }
.res.none { color: var(--muted); }
.res.none::before { background: var(--line-2); }
.more-wrap { display: flex; justify-content: center; padding: 32px 0; }
.never { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; padding: 40px; background: var(--panel); border: 1px solid var(--line); }
.never h3 { font-size: 24px; }
.never p { color: var(--text-2); margin: 10px 0 0; }
.never ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.never li { font: 400 14px var(--mc); padding: 8px 12px; border: 1px solid var(--line-2); color: var(--text-2); }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.terms div { padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.terms h3 { font-size: 16px; margin-bottom: 8px; }
.terms p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-in, .dev, .ctease, .faq { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-shot { max-width: 720px; }
  .try { grid-template-columns: 1fr; }
  .try-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .try-tab { flex: 0 0 auto; border-left: 1px solid transparent; border-bottom: 2px solid var(--line-2); }
  .try-tab.on { border-left-color: var(--line); border-bottom-color: var(--pink); }
  .try-tab span { display: none; }
  .try-note { display: none; }
  .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .lines { grid-template-columns: 1fr; }
  .dl-panel { grid-template-columns: 1fr; }
  .dl-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check { grid-template-columns: 1fr; }
  .check-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .mod-h { grid-template-columns: minmax(0, 1fr) auto 24px; }
  .mod-h .vers, .mod-h .date { display: none; }
  .never { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-side .hide-m { display: none; }
  .menu-btn { display: grid; }
  .nav-in { gap: 12px; justify-content: space-between; }
  .section { padding: 88px 0; }
  .hero { padding-top: 120px; }
  .window { transform: none; }
  .pop { width: 70%; }
  .stats-in, .cstats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .cstats div:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3), .cstats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento .span-2, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 6; }
  .card { padding: 24px; }
  .how { grid-template-columns: 1fr; }
  .hw { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 600px; font-size: 14px; }
  .hw-side { flex-direction: row; padding: 0; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .hw-side button { flex: 0 0 auto; padding: 10px 14px; }
  .hw-side button.on::before { left: 6px; right: 6px; top: auto; bottom: 0; width: auto; height: 3px; }
  .hw-side .spacer, .hw-side .m-hide { display: none; }
  .hw-view { padding: 14px 14px 0; }
  .hw-list { margin: 0 -14px; padding: 0 14px 14px; }
  .hw-search { display: none; }
  .hw-store-top .hw-search { display: block; width: 100%; }
  .hw-title { font-size: 26px; }
  .hw-tag, .hw-right .hw-btn, .hw-note { display: none; }
  .hw-grid { grid-template-columns: 1fr; }
  .hw-up { grid-template-columns: 36px minmax(0, 1fr); }
  .hw-up .chk { display: none; }
  .hw-up .ver { grid-column: 2; white-space: normal; }
  .hw-up .ver .kb { display: none; }
  .hw-up .res { grid-column: 2; }
  .hw-pend { grid-template-columns: 36px minmax(0, 1fr); }
  .hw-pend .hw-btn { grid-column: 2; justify-self: start; }
  .hw-filters { flex-wrap: wrap; }
  .hw-filters .hw-btn { display: none; }
  .hw-toast { white-space: normal; width: calc(100% - 28px); }
  .build { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .build .pin { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .rel { grid-template-columns: 1fr; gap: 16px; }
  .steps4 { grid-template-columns: 1fr; }
  .dl-main, .dl-ab, .check-in, .check-out { padding: 24px; }
  .sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: 1fr; }
  .never { padding: 24px; }
  .toolbar { top: 75px; }
  .toolbar .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .pop-2 { left: -2%; }
  .pop-1, .pop-3 { right: -2%; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .stat b { font-size: 32px; }
  .cstats b { font-size: 28px; }
  .gallery { padding-inline: 16px; }
}

/* ---------- support ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { display: flex; flex-direction: column; padding: 28px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.way:hover { border-color: rgba(255, 98, 176, 0.4); transform: translateY(-4px); }
.way .card-ico svg { width: 22px; height: 22px; }
.way h3 { margin-bottom: 8px; }
.way p { color: var(--text-2); margin: 0 0 20px; flex: 1; }
.way .go { color: var(--pink); font-size: 15px; word-break: break-all; }
.tk-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.tk-side { position: sticky; top: 100px; }
.tk-mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tk-mine button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; text-align: left; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s; }
.tk-mine button:hover, .tk-mine button.on { border-color: var(--pink); }
.tk-mine .s { grid-column: 1 / -1; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-mine .id { font: 400 14px var(--mc); }
.tk-mine .new { font: 400 12px var(--mc); color: var(--pink); }
.tk-tip { margin-top: 28px; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.tk-tip p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.tk-main { background: var(--panel); border: 1px solid var(--line-2); padding: 32px; position: relative; }
.tk-main::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--pink); }
.tk-form { display: grid; gap: 18px; }
.f { display: grid; gap: 8px; }
.f > span { font: 400 14px var(--mc); color: var(--text-2); }
.f small { font-family: var(--sans); color: var(--muted); font-size: 12px; margin-left: 6px; }
.f input, .f select, .f textarea, .tk-reply textarea, .a-in {
  width: 100%; padding: 12px 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2);
  color: var(--text); font: 15px/1.5 var(--sans); outline: none; transition: border-color 0.2s;
}
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.f select option { background: var(--panel); }
.f input:focus, .f select:focus, .f textarea:focus, .tk-reply textarea:focus, .a-in:focus { border-color: var(--pink); }
.f textarea, .tk-reply textarea { resize: vertical; min-height: 90px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.f-err { color: var(--red); font-size: 14px; margin-right: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tk-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.tk-status { font: 400 13px var(--mc); padding: 4px 10px; border: 1px solid; white-space: nowrap; }
.tk-status.open { color: var(--green); border-color: rgba(102, 227, 160, 0.4); }
.tk-status.closed { color: var(--muted); border-color: var(--line-2); }
.tk-link { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 20px 0; padding: 14px; background: rgba(255, 211, 92, 0.05); border: 1px solid rgba(255, 211, 92, 0.25); }
.tk-link > svg { width: 18px; height: 18px; color: var(--yellow); }
.tk-link span { display: block; color: var(--text-2); font-size: 13px; margin: 2px 0 6px; }
.tk-link code { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.msg { max-width: 85%; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); animation: fade 0.35s var(--ease); }
.msg.me { justify-self: end; background: rgba(255, 98, 176, 0.07); border-color: rgba(255, 98, 176, 0.25); }
.msg.staff { border-left: 3px solid var(--violet); }
.msg .who { display: flex; gap: 10px; align-items: baseline; font: 400 13px var(--mc); margin-bottom: 6px; }
.msg .who time { font: 12px var(--mono); color: var(--muted); }
.msg p { margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.tk-reply { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 1080px) {
  .ways { grid-template-columns: 1fr; }
  .tk-wrap { grid-template-columns: 1fr; }
  .tk-side { position: static; }
}
@media (max-width: 820px) {
  .tk-main { padding: 20px; }
  .f-row { grid-template-columns: 1fr; }
  .tk-link { grid-template-columns: 20px minmax(0, 1fr); }
  .tk-link .btn { grid-column: 1 / -1; }
  .msg { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
