:root {
  color-scheme: dark;
  --background: #0d1118;
  --panel: #151c27;
  --panel-raised: #202a38;
  --text: #f5f5f1;
  --muted: #b1bbca;
  --border: #2a3544;
  --accent: #efc278;
  --signal: #a0beff;
  --header: rgb(13 17 24 / 94%);
  --sheen: #192740;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #f5f3ef;
  --panel: #fffdf9;
  --panel-raised: #edeff5;
  --text: #151c2a;
  --muted: #4f586a;
  --border: #d5dae4;
  --accent: #795117;
  --signal: #2854a0;
  --header: rgb(245 243 239 / 95%);
  --sheen: #e2eaf9;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 116px; }
body { margin: 0; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(ellipse 700px 460px at 76% 180px, var(--sheen), transparent 98%), var(--background); color: var(--text); }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.057em; }
h1 { font-size: clamp(49px, 9vw, 119px); }
h2 { font-size: clamp(34px, 5.3vw, 65px); }
h3 { font-size: clamp(23px, 3vw, 36px); }
p { color: var(--muted); }
a { color: var(--signal); text-underline-offset: .19em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.layout { width: min(1232px, calc(100% - clamp(36px, 10vw, 144px))); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 4; padding: 8px 12px; background: var(--panel); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--border); background: var(--header); backdrop-filter: blur(16px); }
.nav-row { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 24px; min-height: 69px; }
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; flex: none; width: 35px; height: 35px; color: #efc278; background: #111720; border: 1px solid #716047; border-radius: 9px; font: 800 .73rem/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .035em; }
.mark.companion { color: #a0beff; border-color: #4c6392; }
.nav-row nav { display: flex; gap: 24px; }
.nav-row nav a { color: var(--muted); text-decoration: none; }
.nav-row nav a:hover { color: var(--text); }
.theme-toggle { justify-self: end; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; background: transparent; border: 1px solid var(--border); border-radius: 7px; padding: 7px 9px; white-space: nowrap; }
.theme-toggle:hover { color: var(--text); background: var(--panel-raised); }
.world-hero { padding-block: clamp(56px, 9vw, 119px) clamp(48px, 7vw, 80px); }
.world-hero p, .product-intro { font-size: clamp(18px, 2.3vw, 24px); max-width: 42ch; margin-top: 17px; }
.world-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 23px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 8px 15px; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; color: var(--text); font-size: .94rem; font-weight: 680; text-decoration: none; }
.button:hover { background: var(--panel-raised); }
.button.primary { background: #efc278; color: #241909; border-color: transparent; }
.button.primary:hover { background: #f7d398; }
.world-section { padding-top: 34px; border-top: 1px solid var(--border); margin-bottom: clamp(45px, 8vw, 100px); }
.section-heading { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; margin-bottom: 25px; }
.production-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { padding: clamp(17px, 2.3vw, 28px); border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.product-card h3 { margin-top: 16px; }
.product-card p { margin-block: 11px 16px; max-width: 38ch; }
.product-card.featured { display: grid; grid-template-columns: 1fr minmax(80px, .52fr); align-items: center; gap: 12px; grid-column: span 2; background: linear-gradient(135deg, var(--panel), var(--sheen)); }
.product-card.featured .world-actions { margin-top: 0; }
.signal-art { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding-inline: 4px; }
.signal-art i { flex: 1; height: 31px; min-width: 3px; border-radius: 8px; background: var(--signal); opacity: .62; }
.signal-art i:nth-child(2n) { height: 50px; }
.signal-art i:nth-child(3n) { height: 78px; opacity: .78; }
.signal-art i:nth-child(5) { background: var(--accent); height: 108px; opacity: 1; }
.project-note { margin-top: 12px; font-size: .88rem; }
.project-note strong { color: var(--text); }
.game-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.game-grid a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; border: 1px solid var(--border); border-radius: 11px; padding: 15px; background: var(--panel); color: var(--text); text-decoration: none; }
.game-grid a:hover { background: var(--panel-raised); border-color: var(--signal); }
.game-grid strong { font-size: 1.1rem; }
.game-grid span { color: var(--muted); grid-column: 1; font-size: .88rem; }
.game-grid b { grid-column: 2; grid-row: 1; color: var(--signal); }
.product-page { padding-block: clamp(43px, 8vw, 110px); }
.product-page h1 { margin-top: 24px; }
.product-page .features { color: var(--muted); padding-left: 20px; margin-top: 24px; }
.product-page .features li + li { margin-top: 9px; }
.product-page .status { margin-top: 24px; color: var(--accent); font-weight: 650; }
.product-page .back { display: inline-block; }
.product-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(30px, 5vw, 70px); }
.product-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 14px; }
.product-figure figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; }
footer.layout { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
@media (max-width: 950px) {
  .production-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 570px) {
  .nav-row { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 8px; }
  .nav-row nav { grid-row: 2; grid-column: 1 / -1; gap: 23px; }
  .nav-row nav a { display: inline-grid; align-items: center; min-height: 44px; }
  .theme-toggle { min-height: 44px; }
  .production-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card.featured { grid-column: auto; }
  .world-hero { padding-top: 42px; }
}
