/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------------- variables ---------------- */
:root {
  --accent: #58b8c8;
  --accent-dim: rgba(88, 184, 200, .14);
  --accent-bright: #8ad4de;
  --bg: #121417;
  --bg-inset: #1a1d21;
  --border: rgba(148, 163, 184, .15);
  --surface: #23272c;
  --text: #d4d8de;
  --text-dim: #a8adb8;
  --text-faint: #767b86;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-w: 920px;
}

body[data-game="mgb"] {
  --accent: #00ffff;
  --accent-dim: rgba(0, 255, 255, .14);
  --accent-bright: #8affff;
}
body[data-game="mpb"] {
  --accent: #e879f9;
  --accent-dim: rgba(232, 121, 249, .14);
  --accent-bright: #f0abfc;
}
body[data-game="wpb"] {
  --accent: #facc15;
  --accent-dim: rgba(250, 204, 21, .14);
  --accent-bright: #fde047;
}
body[data-page="grey"] {
  --accent: #9aa1ad;
  --accent-dim: rgba(154, 161, 173, .12);
  --accent-bright: #bcc1cb;
}

html { font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.02em; }
a { color: #fff; }

/* ---------------- layout ---------------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); background: rgba(18, 20, 23, .82); backdrop-filter: blur(10px) saturate(1.3); }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent 2%, var(--accent) 28%, var(--accent-bright) 50%, var(--accent) 72%, transparent 98%); opacity: .55; }
.topbar a { color: inherit; text-decoration: none; font-size: 13.5px; display: flex; align-items: center; gap: 8px; opacity: .85; transition: opacity .18s, background .18s, color .18s; }
.topbar a:hover { opacity: 1; }
.topbar .brand { font-weight: 700; font-size: 15px; letter-spacing: .01em; display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 48px; border-radius: var(--radius-sm); }
.topbar .brand:hover { background: rgba(148, 163, 184, .07); opacity: 1; }
.topbar .brand-mark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: max(120px, calc(50% - 320px)); height: 28px; background: repeating-linear-gradient(135deg, var(--accent-bright) 0px, var(--accent-bright) 4px, transparent 4px, transparent 9px); mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 90%); -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 90%); }
.topbar .nav-toggle { display: none; place-items: center; width: 38px; height: 38px; background: transparent; border: 1px solid var(--border); color: var(--text); font-size: 18px; line-height: 1; border-radius: var(--radius-sm); cursor: pointer; }
.topbar .nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topbar .nav a { position: relative; padding: 6px 11px; border-radius: 8px; font-weight: 500; transition: background .18s, color .18s; }
.topbar .nav a:hover { background: rgba(148, 163, 184, .1); }
.topbar .nav a.active { color: var(--accent-bright); font-weight: 600; }
.topbar .nav a.active::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-bright) 50%, var(--accent) 70%, transparent); opacity: .9; }
.topbar .nav-ico { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--border); }
.topbar .icon { display: grid; place-items: center; width: 28px; height: 28px; font-size: 16px; line-height: 1; flex: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }

/* ---------------- figures (global) ---------------- */
.figure { margin: 36px 0; }
.figure img { max-width: 100%; height: auto; display: block; }
.figure.center { text-align: center; }
.figure.center img { margin: 0 auto; }

/* ---------------- long-form update pages ---------------- */
.prose h2 { font-size: 30px; font-weight: 600; letter-spacing: -.01em; margin: 56px 0 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 600; margin: 36px 0 10px; }
.prose p { font-size: 17px; line-height: 1.8; margin: 16px 0; }
.prose ul { margin: 16px 0; padding-left: 24px; }
.prose li { margin: 10px 0; font-size: 16.5px; line-height: 1.7; }
.prose li::marker { color: var(--accent); }

/* ---------------- MGB captains & talents (scoped) ---------------- */
.mgb-updates .talent-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.mgb-updates .talent { display: flex; flex-direction: column; align-items: center; flex: 1 1 260px; max-width: 340px; border: 1px solid var(--border); background: var(--surface); }
.mgb-updates .talent img { width: 128px; height: 128px; object-fit: contain; }
.mgb-updates .talent .t-name { font-size: 18px; font-weight: 700; }
.mgb-updates .talent .t-name:empty { display: none; }
.mgb-updates .talent .t-desc { font-size: 18px; }
.mgb-updates .captain-card { display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 24px; }
.mgb-updates .captain-card img { width: 200px; height: auto; }
.mgb-updates .captain-card .c-name { font-size: 22px; font-weight: 700; }
.mgb-updates .captain-card .c-desc { font-size: 18px; line-height: 1.7; }

@media (max-width: 750px) {
  .mgb-updates .talent { flex: 1 1 100%; max-width: none; }
  .mgb-updates .captain-card { flex-direction: column; text-align: center; }
  .mgb-updates .captain-card img { width: 160px; }
}
.crumbs { max-width: var(--max-w); margin: 0 auto; padding: 10px 20px 0; font-size: 13px; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--text-faint); margin: 0 8px; }

/* ---------------- page head ---------------- */
.page-head { padding: 44px 0 4px; min-height: 340px; box-sizing: border-box; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--accent-dim), transparent 130%); }
.page-head .store-badges { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.page-head .store-badges img { height: 96px; width: auto; }
.page-head .store-badges .store-badge-soon img { filter: grayscale(1); opacity: .2; }

/* community section badges (smaller) */
.store-badges { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.store-badges img { height: 36px; width: auto; }

.page-head .kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.page-head .kicker::before { content: "// "; color: var(--text-faint); }
.page-head h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; margin-top: 0; letter-spacing: -.01em; }
.page-head h1 .accent { color: var(--accent); }
.page-head .lede { margin-top:12px; color:var(--text-dim); max-width:68ch; }
/* text pages (no store badges): don't stretch the band */
.page-head.page-head--text { min-height: 0; padding: 56px 0 40px; }
.page-head.page-head--text + .wrap > section { margin-top: 44px; }

/* ---------------- 404 page ---------------- */
.nf-code { font-family: var(--mono); font-size: clamp(72px, 13vw, 128px); line-height: 1; font-weight: 700; letter-spacing: .06em; color: var(--accent); text-shadow: 0 0 48px var(--accent-dim); margin: 10px 0 14px; }

/* ---------------- hero (landing) ---------------- */
.hero { padding: 96px 0 12px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 52px); line-height: 1.1; margin-bottom: 18px; letter-spacing: -.02em; }
.hero .lede { max-width: 62ch; color: var(--text-dim); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s, box-shadow .2s; white-space: nowrap; }
.btn { color: var(--text); border: 1px solid var(--border); background: transparent; }
.btn:hover { background: rgba(148, 163, 184, .08); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); text-decoration: none; }
.btn-primary { background: var(--accent); color: #121417; border: 1px solid transparent; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); text-decoration: none; }
.btn-cyan-outline { color: var(--accent-bright); border: 1.5px solid var(--accent); background: transparent; }
.btn-cyan-outline:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); text-decoration: none; }

/* ---------------- grid ---------------- */
.grid-2 { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------------- section headings ---------------- */
section[id] { scroll-margin-top: 110px; }
.sec-head { margin-top: 40px; margin-bottom: 36px; padding-bottom: 2px; border-bottom: 1px solid var(--border); }
.sec-head .kicker { font-family: var(--mono); font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; display: block; }
.sec-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -.015em; }

/* ---------------- cards ---------------- */
.card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.35); }
.card[data-game="mgb"]:hover { border-color: #22d3ee; box-shadow: 0 16px 32px rgba(34,211,238,.18); }
.card[data-game="mpb"]:hover { border-color: #e879f9; box-shadow: 0 16px 32px rgba(232,121,249,.18); }
.card[data-game="wpb"]:hover { border-color: #facc15; box-shadow: 0 16px 32px rgba(250,204,21,.15); }
.grid-3 img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
a.card { text-decoration: none; color: inherit; display: block; }
.card .card-tag { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 3px 9px; border-radius: 999px; }
.card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; }

/* ---------------- carousel (MGB) ---------------- */
.carousel { position: relative; margin: 40px auto 0; }
.car-viewport { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-inset); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); touch-action: pan-y; cursor: grab; }
.car-viewport:active { cursor: grabbing; }
.car-track { display: flex; align-items: center; transition: transform .28s ease; }
.car-track img { flex: 0 0 100%; min-width: 0; width: 100%; height: auto; aspect-ratio: 16 / 27; object-fit: contain; display: block; -webkit-user-drag: none; -moz-user-drag: none; user-select: none; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: rgba(24, 26, 29, .8); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s; }
.car-btn:hover { border-color: var(--accent); color: var(--accent-bright); text-decoration: none; }
.car-btn:disabled { opacity: .35; cursor: default; border-color: var(--border); color: var(--text-dim); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-count { position: absolute; bottom: 10px; right: 12px; z-index: 2; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--text); background: rgba(13, 14, 16, .97); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; letter-spacing: .02em; }

@media (min-width: 751px) {
  .car-viewport { margin: 0 52px; }
  .car-track { gap: 8px; }
  .car-track img { flex-basis: calc((100% - 8px) / 2); }
  .car-prev { left: 7px; }
  .car-next { right: 7px; }
  .car-viewport::before,
  .car-viewport::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; z-index: 1; pointer-events: none; }
  .car-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg-inset), transparent); }
  .car-viewport::after { right: 0; background: linear-gradient(-90deg, var(--bg-inset), transparent); }
}

/* ---------------- captains layout (MGB) ---------------- */
details.feature .captains-layout { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
details.feature .captains-screens { display: flex; gap: 6px; flex: 0 0 auto; }
details.feature .captains-screens img { height: 487px; width: auto; border-radius: 6px; display: block; }
details.feature .captains-text { flex: 1 1 100%; order: 4; display: flex; flex-direction: column; justify-content: center; }
details.feature .captains-text p { margin: 0; border-bottom: none; padding-bottom: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
details.feature .captains-carousel { position: relative; flex: 0 0 254px; display: flex; flex-direction: column; min-width: 0; border-radius: 10px; background-color: var(--bg-inset); background-image: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgba(255, 165, 40, .045) 7px, rgba(255, 165, 40, .045) 9px), linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
details.feature .captains-carousel .car-viewport { position: relative; overflow: hidden; border: none; border-radius: 9px; background: transparent; touch-action: pan-y; cursor: grab; margin: 8px 10px; box-shadow: none; flex: 1; }
details.feature .captains-carousel .car-viewport:active { cursor: grabbing; }
details.feature .captains-carousel .car-track { display: flex; align-items: center; transition: transform .28s ease; gap: 6px; padding: 8px 4px; height: 100%; }
details.feature .captain-slide { flex: 0 0 248px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; }
details.feature .captain-slide img { width: 228px; height: 342px; border-radius: 8px; object-fit: contain; display: block; flex: none; min-width: 0; -webkit-user-drag: none; -moz-user-drag: none; user-select: none; }
details.feature .captain-slide span { font-size: 18px; font-weight: 700; color: var(--text); white-space: nowrap; letter-spacing: .02em; }
details.feature .captains-carousel .car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; font-size: 16px; line-height: 1; border-radius: 999px; border: 1px solid var(--border); background: rgba(20, 22, 25, .92); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, color .15s, background .15s; }
details.feature .captains-carousel .car-btn:hover { border-color: var(--accent); color: var(--accent-bright); background: rgba(30, 28, 24, .95); }
details.feature .captains-carousel .car-btn:disabled { opacity: .35; cursor: default; border-color: var(--border); color: var(--text-dim); }
details.feature .captains-carousel .car-prev { left: 8px; }
details.feature .captains-carousel .car-next { right: 8px; }
details.feature .captains-carousel .car-count { position: absolute; bottom: -20px; right: 0; z-index: 2; font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text); background: rgba(13, 14, 16, .97); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
@media (max-width: 640px) {
  details.feature .captains-layout { flex-wrap: wrap; }
  details.feature .captains-screens { width: 100%; }
  details.feature .captains-screens img { width: calc(50% - 3px); height: auto; }
  details.feature .captains-text { order: 3; width: 100%; }
  details.feature .captains-carousel { width: 100%; }
  details.feature .captains-carousel .car-viewport { padding: 0; }
  details.feature .captains-carousel .car-track { padding: 8px 6px; }
  details.feature .captain-slide { flex: 0 0 64px; }
  details.feature .captain-slide img { width: 56px; height: 56px; object-fit: contain; }
  details.feature .captain-slide span { font-size: 11px; }
}
@media (min-width: 751px) {
  details.feature .captains-carousel .car-viewport { margin: 0; }
  details.feature .captains-carousel .car-track { gap: 4px; }
  details.feature .captains-carousel .car-track img { flex-basis: auto; }
  details.feature .captains-carousel .car-viewport::before,
  details.feature .captains-carousel .car-viewport::after { display: none; }
}

/* ---------------- hero art (landing) ---------------- */
.hero-art { max-width: 440px; margin-left: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 28px 60px rgba(0,0,0,.5); }
.hero-art img { width: 100%; height: auto; display: block; }

/* ---------------- tags (landing) ---------------- */
.tags { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 12.5px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.tag:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-bright); text-decoration: none; }

/* ---------------- support box (landing) ---------------- */
.support-box { margin-top: 40px; border: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 5%, transparent); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; }
.support-box a { color: var(--accent); text-decoration: none; font-weight: 600; }
.support-box a:hover { text-decoration: underline; }

/* ---------------- details/summary (accordion) ---------------- */
details.feature { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; }
details.feature summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 600; color: var(--text); position: relative; gap: 12px; }
details.feature summary img { flex-shrink: 0; border-radius: 4px; }
details.feature summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .2s; }
details.feature[open] summary::after { transform: rotate(45deg); }
details.feature[open] summary { border-bottom: 1px solid var(--border); }
details.feature summary::-webkit-details-marker { display: none; }
details.feature .feature-body { padding: 0 20px 16px; }
details.feature .feature-split { display: flex; gap: 20px; align-items: flex-end; margin-top: 4px; }
details.feature .feature-split > img { flex-shrink: 0; border-radius: 6px; max-width: 40%; }
details.feature .feature-split p { margin-top: 0; border-bottom: none; }
details.feature .feature-screens { display: flex; gap: 10px; margin-top: 14px; }
details.feature .feature-screens img { flex: 1; min-width: 0; border-radius: 6px; display: block; }
/* MPB: keep the two feature screenshots a bit smaller and centered */
body[data-game="mpb"] details.feature .feature-screens { justify-content: center; }
body[data-game="mpb"] details.feature .feature-screens img { flex: 0 1 auto; width: 320px; max-width: calc(50% - 5px); }
/* MPB editor section: a bit smaller than the other feature screenshots */
body[data-game="mpb"] details.feature .feature-screens.small img { width: 240px; }
/* MPB: wrap multi-image sections into centered rows (e.g. background gallery) */
body[data-game="mpb"] details.feature .feature-screens.gallery { flex-wrap: wrap; }
body[data-game="mpb"] details.feature .feature-screens.gallery img { width: calc((100% - 20px) / 3); max-width: 320px; }
details.feature .split-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
details.feature .split-text p { width: 100%; }
details.feature .ship-area { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; border-radius: 8px; position: relative; overflow: hidden; }
details.feature .ship-area::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent, transparent 14px, rgba(148,163,184,.09) 14px, rgba(148,163,184,.09) 17px); -webkit-mask-image: linear-gradient(to top, black 35%, transparent 100%); mask-image: linear-gradient(to top, black 35%, transparent 100%); pointer-events: none; }
details.feature .ship-img { width: 100%; height: 300px; object-fit: contain; display: block; position: relative; z-index: 1; }
details.feature .ship-number { position: absolute; bottom: 8px; right: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: .04em; z-index: 2; }
details.feature .ship-reload { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(18,20,23,.85); cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color .15s, background .15s; position: relative; z-index: 1; }
details.feature .ship-reload img { width: 20px; height: 20px; }
details.feature .ship-reload:hover { border-color: var(--accent); background: rgba(30,28,24,.95); }
details.feature p { margin-top: 10px; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; border-bottom: 1px solid rgba(148, 163, 184, .06); }
details.feature p:last-child { margin-bottom: 0; border-bottom: none; }

/* ---------------- footer ---------------- */
footer.footer { margin-top: 64px; padding: 48px 0 24px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, var(--accent-dim)); }
footer.footer .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; align-items: start; }
footer.footer .brandline { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.6; }
footer.footer h4 { font-size: 12.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 12px; }
footer.footer ul { list-style: none; }
footer.footer ul li { margin-bottom: 8px; }
footer.footer a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color .2s; }
footer.footer a:hover { color: var(--accent-bright); }
footer.footer .fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
footer.footer .fine a { font-size: 13px; }

/* legacy landing footer */
footer.landing { padding: 52px 0 28px; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
footer.landing .brand-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; margin-bottom: 12px; }
footer.landing .brand-link:hover { text-decoration: underline; }

/* ---------------- contact page ---------------- */
.contact-layout { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.contact-card h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -.01em; }
.contact-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; }

/* ---------------- updates page ---------------- */
.updates-list { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.update-item { border-left: 3px solid var(--border); padding-left: 14px; padding-right: 20px; padding-bottom: 14px; position: relative; }
.update-item::before { content: ""; position: absolute; left: -5px; top: 8px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent); }
.update-item h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 4px; letter-spacing: -.01em; }
.update-item .date { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.update-item p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.update-item .ver { font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 2px 9px; border-radius: 999px; flex: none; }
a.update-item { display: block; color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
a.update-item:hover { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
.note-date { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-dim); margin-left: auto; }
.note-body { white-space: normal; }
.note-major { display: block; font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.note-section { display: block; font-weight: 500; font-size: 13.5px; color: var(--accent); margin-top: 6px; margin-bottom: 2px; letter-spacing: .02em; }

/* ---------------- privacy page ---------------- */
.privacy-layout { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.privacy-card h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -.01em; }
.privacy-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; }

/* ---------------- responsive ---------------- */
@media (max-width: 750px) {

  .topbar { padding: 12px 0; }
  .topbar .nav-toggle { display: grid; }
  .topbar .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(18, 20, 23, .98); border-bottom: 1px solid var(--border); padding: 6px 16px 10px; }
  .topbar .nav.open { display: block; }
  .topbar .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .topbar .nav li { border-bottom: 1px solid rgba(148, 163, 184, .08); }
  .topbar .nav li:last-child { border-bottom: none; }
  .topbar .nav a { width: 100%; justify-content: flex-start; padding: 10px 8px; border-radius: 0; }
  .hero { padding: 72px 0 14px; }
  .section { padding: 48px 0; }
  footer.footer .cols { grid-template-columns: 1fr 1fr; }
  footer.footer .fine { flex-direction: column; align-items: flex-start; gap: 4px; }
}
