/* Omnisign: Milky Way glass UI. Magenta, violet, pink and gold over a black void. No blues. */
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-500.woff2) format('woff2');
}

:root {
  --void: #050207;
  --ink: #f8effc;
  --muted: #d3c2de;
  --dim: #a892b6;
  --gold: #f5c26b;
  --gold-hi: #ffe2a8;
  --magenta: #e879f9;
  --pink: #f9a8d4;
  --violet: #c084fc;
  --rose: #fb7185;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(245, 194, 107, 0.42);
  --smoke: rgba(16, 6, 20, 0.5);
  --serif: 'Cormorant', 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.topbar, main, .footer { position: relative; z-index: 1; }
.topbar { z-index: 5; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #1a0820; color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ---------- glass ---------- */
.glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018) 42%, rgba(232, 121, 249, 0.035)),
    var(--smoke);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(245, 194, 107, 0.04), 0 24px 70px rgba(0, 0, 0, 0.5);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(20, 8, 26, 0.9); }
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 20px 6px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0.02em; line-height: 1; }
.brand img { border-radius: 10px; box-shadow: 0 0 18px rgba(232, 121, 249, 0.45); }
.brand span { background: linear-gradient(90deg, var(--gold-hi), var(--pink) 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topnav { display: flex; align-items: center; gap: 10px; }
.ti-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; text-shadow: 0 0 16px rgba(245, 194, 107, 0.45); }
@media (hover: hover) { .ti-link:hover { color: var(--gold-hi); } }
.arcade { position: relative; }
.arcade-menu { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); padding: 16px 10px 10px; display: grid; gap: 2px; border-color: var(--line-gold); background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(18, 6, 24, 0.9); animation: rise 0.25s var(--ease) both; }
.arcade-menu .eyebrow { padding: 0 10px 8px; }
.arcade-menu a { display: grid; gap: 1px; padding: 10px; border-radius: 12px; text-decoration: none; line-height: 1.3; }
.arcade-menu a b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.arcade-menu a span { font-size: 0.8rem; color: var(--dim); }
@media (hover: hover) { .arcade-menu a:hover { background: rgba(245, 194, 107, 0.09); } .arcade-menu a:hover b { color: var(--gold-hi); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  color: #1d0a12;
  background: linear-gradient(135deg, #ffe2a8, #f5c26b 45%, #f0a6c8);
  box-shadow: 0 0 0 1px rgba(255, 226, 168, 0.5), 0 8px 30px rgba(245, 194, 107, 0.28), 0 0 44px rgba(232, 121, 249, 0.22);
}
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (hover: hover) {
  .btn-gold:hover { box-shadow: 0 0 0 1px rgba(255, 226, 168, 0.8), 0 10px 36px rgba(245, 194, 107, 0.42), 0 0 60px rgba(232, 121, 249, 0.35); transform: translateY(-1px); }
  .btn-ghost:hover { border-color: var(--line-gold); background: rgba(245, 194, 107, 0.08); }
}

/* ---------- layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; }
section { margin-top: 28px; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.muted { color: var(--muted); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 44px 0 16px; text-shadow: 0 0 28px rgba(232, 121, 249, 0.35); }

/* ---------- hero ---------- */
.hero { text-align: center; margin-top: 18px; display: grid; gap: 14px; justify-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.005em;
  font-size: clamp(2.7rem, 9vw, 5.4rem);
  text-shadow: 0 0 44px rgba(232, 121, 249, 0.4), 0 0 90px rgba(245, 194, 107, 0.16);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-hi), var(--gold) 30%, var(--pink) 70%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); max-width: 54ch; font-size: 1.05rem; text-wrap: pretty; }

.visualizer { position: relative; width: 100%; max-width: 760px; padding: 0; overflow: hidden; margin-top: 8px; }
.visualizer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 45%, rgba(232, 121, 249, 0.1), transparent 70%);
}
#constellation { display: block; width: 100%; height: clamp(250px, 44vw, 380px); touch-action: pan-y; cursor: grab; position: relative; }
#constellation:active { cursor: grabbing; }
#constellation.is-hot { cursor: pointer; }
.viz-caption { position: relative; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 0 16px 16px; min-height: 58px; }
.viz-glyph { font-size: 1.5rem; color: var(--gold); text-shadow: 0 0 16px rgba(245, 194, 107, 0.7); font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', 'Noto Sans Symbols', sans-serif; }
.viz-name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.viz-sub { color: var(--dim); font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; }
.viz-hint { position: absolute; top: 12px; right: 16px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); pointer-events: none; }
.viz-toggle { position: absolute; top: 10px; left: 12px; display: flex; gap: 6px; }
.chip {
  min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 3, 14, 0.5);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); cursor: pointer;
}
.chip.is-on { border-color: var(--line-gold); color: var(--gold-hi); box-shadow: 0 0 16px rgba(245, 194, 107, 0.22); }

/* ---------- forms ---------- */
.entry, .compat-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr auto; align-items: end; text-align: left; }
.entry { width: 100%; max-width: 760px; padding: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.optional { color: var(--dim); letter-spacing: 0.1em; font-weight: 400; text-transform: none; }
input[type='text'] {
  width: 100%; min-height: 50px; padding: 10px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(6, 2, 9, 0.5); color: var(--ink);
  font: inherit; font-size: 1.05rem; letter-spacing: 0.03em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, box-shadow 0.25s;
}
input[type='text']::placeholder { color: #8d7a99; }
input[type='text']:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(245, 194, 107, 0.18), 0 0 30px rgba(232, 121, 249, 0.2); }
input[aria-invalid='true'] { border-color: var(--rose); }
#birthday, #partner { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }
.entry .btn, .compat-form .btn { min-height: 50px; padding-inline: 24px; }
.error { grid-column: 1 / -1; color: #fecdd3; font-size: 0.92rem; }

/* ---------- dossier head ---------- */
.dossier-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 26px; margin-top: 40px; border-color: var(--line-gold); }
.dossier-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5.6vw, 3.2rem); line-height: 1.05; margin: 6px 0 8px; text-shadow: 0 0 34px rgba(245, 194, 107, 0.3); overflow-wrap: anywhere; }
.dossier-line { color: var(--muted); max-width: 60ch; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- system cards ---------- */
.systems { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { padding: 20px; display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; animation: rise 0.6s var(--ease) both; }
.card::after { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent, var(--gold)), transparent); opacity: 0.8; }
.card:nth-child(3n+1) { --accent: var(--gold); }
.card:nth-child(3n+2) { --accent: var(--magenta); }
.card:nth-child(3n) { --accent: var(--violet); }
.card-top { display: flex; align-items: center; gap: 14px; }
.badge {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; line-height: 1; color: var(--accent, var(--gold));
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid var(--line); box-shadow: 0 0 26px color-mix(in srgb, var(--accent, #f5c26b) 30%, transparent), inset 0 0 18px rgba(0, 0, 0, 0.4);
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  text-shadow: 0 0 14px currentColor;
}
.badge.num { font-family: var(--serif); font-size: 2rem; }
.badge svg { width: 30px; height: 30px; }
.card-system { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.card-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.08; font-weight: 500; overflow-wrap: anywhere; }
.card-meta { color: var(--accent, var(--gold)); font-size: 0.86rem; letter-spacing: 0.04em; }
.card-text { color: var(--muted); font-size: 0.95rem; }
.card-note { font-size: 0.84rem; color: var(--dim); border-top: 1px solid var(--line-soft); padding-top: 10px; }
.card-note strong { color: var(--pink); font-weight: 600; }
.tarot-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tarot-card { flex: 1 1 120px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: rgba(8, 2, 12, 0.45); }
.tarot-card b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.15; }
.tarot-card i { font-style: normal; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tarot-card span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- encyclopedia ---------- */
.encyclopedia, .compat, .twins { padding: 26px; margin-top: 44px; }
.encyclopedia h2, .compat h2, .twins h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.08; margin: 6px 0 10px; text-shadow: 0 0 30px rgba(232, 121, 249, 0.32); }
.enc-aura { color: var(--muted); max-width: 70ch; font-size: 1.03rem; }
.tabs { display: flex; gap: 8px; margin: 22px -26px 0; padding: 0 26px 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; min-height: 46px; padding: 10px 16px; border: 0; background: none; cursor: pointer;
  color: var(--dim); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tabs button[aria-selected='true'] { color: var(--gold-hi); border-bottom-color: var(--gold); text-shadow: 0 0 18px rgba(245, 194, 107, 0.55); }
.panel { padding-top: 22px; animation: rise 0.45s var(--ease) both; }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.fact { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: rgba(8, 2, 12, 0.4); }
.fact dt, .label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.fact dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
dl { margin: 0; }
.cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.block { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(8, 2, 12, 0.38); }
.block h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
.block.gold { border-color: var(--line-gold); }
.block.rose { border-color: rgba(251, 113, 133, 0.4); }
.block.violet { border-color: rgba(192, 132, 252, 0.4); }
.block.gold h3 { color: var(--gold-hi); }
.block.rose h3 { color: #fecdd3; }
.block.violet h3 { color: #e9d5ff; }
.block p + .label, .block ul + .label { margin-top: 14px; }
.block .label { display: block; margin-bottom: 4px; color: var(--gold); }
.block p { color: var(--muted); font-size: 0.97rem; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.86rem; color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.block.rose .pills li { border-color: rgba(251, 113, 133, 0.3); }
.block.gold .pills li { border-color: rgba(245, 194, 107, 0.3); }
.panel > .block + .cols, .panel > .cols + .block, .panel > .cols + .cols { margin-top: 18px; }

/* ---------- compatibility ---------- */
.compat-form { margin-top: 18px; }
.compat-out { display: grid; gap: 22px; grid-template-columns: auto 1fr; align-items: center; margin-top: 26px; animation: rise 0.5s var(--ease) both; }
.ring { position: relative; width: 168px; height: 168px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; filter: drop-shadow(0 0 7px rgba(232, 121, 249, 0.5)); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 9; }
.ring-fill { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font-family: var(--serif); font-size: 3.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-num small { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.verdict h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.05; background: linear-gradient(90deg, var(--gold-hi), var(--pink), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.verdict .pair { color: var(--gold); font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.verdict p { color: var(--muted); margin-top: 8px; max-width: 58ch; }
.compat-cols { grid-column: 1 / -1; }
.parts { grid-column: 1 / -1; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }
.part { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(8, 2, 12, 0.38); }
.part-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.part-top b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.part-top span { color: var(--gold-hi); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); margin: 8px 0; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--magenta), var(--gold)); transition: width 1.1s var(--ease); }
.part p { font-size: 0.86rem; color: var(--muted); }
.part .label { color: var(--pink); }

/* ---------- twins ---------- */
.twin-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.twin { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(8, 2, 12, 0.38); display: grid; gap: 4px; }
.twin.exact { border-color: var(--line-gold); box-shadow: 0 0 28px rgba(245, 194, 107, 0.16); }
.twin b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.15; }
.twin .who { color: var(--dim); font-size: 0.84rem; }
.twin .pills { margin-top: 6px; gap: 6px; }
.twin .pills li { font-size: 0.74rem; padding: 3px 9px; color: var(--pink); border-color: rgba(249, 168, 212, 0.3); }
.twin .pills li.hit { color: var(--gold-hi); border-color: var(--line-gold); }
.twins-sub { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-top: 28px; }
.disclaimer { color: var(--dim); font-size: 0.82rem; text-align: center; max-width: 70ch; margin: 34px auto 0; }

/* ---------- offers: Site Upgrader card + sponsor card ---------- */
.offers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
.su-card, .pn-card { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: 20px; text-decoration: none; line-height: 1.45; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.25s; }
.su-card { border: 1px solid var(--line-gold); background: linear-gradient(140deg, rgba(245, 194, 107, 0.14), rgba(232, 121, 249, 0.05)), rgba(16, 6, 20, 0.6); }
.su-card b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.su-price { color: var(--gold-hi); text-shadow: 0 0 18px rgba(245, 194, 107, 0.5); }
.pn-card { border: 1px solid rgba(192, 132, 252, 0.4); background: linear-gradient(140deg, rgba(192, 132, 252, 0.14), rgba(192, 132, 252, 0.04)), rgba(16, 6, 20, 0.6); }
.pn-card b { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.15; color: #f1e4ff; }
.pn-tag { justify-self: start; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: #e9d5ff; border: 1px solid rgba(192, 132, 252, 0.5); border-radius: 999px; padding: 2px 9px; }
.su-txt, .pn-txt { color: var(--muted); font-size: 0.9rem; }
.su-go, .pn-go { font-size: 0.88rem; font-weight: 600; margin-top: 2px; }
.su-go { color: var(--gold-hi); }
.pn-go { color: #e9d5ff; }
@media (hover: hover) {
  .su-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(245, 194, 107, 0.18); }
  .pn-card:hover { transform: translateY(-2px); border-color: rgba(192, 132, 252, 0.7); }
}
@media print { .offers { display: none; } }

/* ---------- footer ---------- */
.footer { max-width: 1120px; margin: 0 auto; padding: 10px 20px calc(28px + env(safe-area-inset-bottom)); }
.footer-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 20px; }
.su-link { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; min-height: 44px; align-items: center; }
.su-kicker { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.su-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; background: linear-gradient(90deg, var(--gold-hi), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.su-arrow { color: var(--gold); transition: transform 0.25s var(--ease); }
@media (hover: hover) { .su-link:hover .su-arrow { transform: translateX(4px); } }
.moon-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 16px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-gold); background: rgba(8, 2, 12, 0.55); font-size: 0.84rem; letter-spacing: 0.04em; color: var(--gold-hi);
  box-shadow: 0 0 24px rgba(245, 194, 107, 0.14), inset 0 0 14px rgba(232, 121, 249, 0.08); font-variant-numeric: tabular-nums;
}
.moon-dark { fill: #1c0d22; stroke: rgba(255, 255, 255, 0.22); stroke-width: 0.6; }
.moon-lit { fill: #fff1d0; filter: drop-shadow(0 0 3px rgba(255, 226, 168, 0.9)); }
.fine { text-align: center; color: var(--dim); font-size: 0.78rem; margin-top: 14px; }

/* ---------- install banner / dialog / toast ---------- */
.install-banner {
  position: fixed; z-index: 30; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-color: var(--line-gold);
  animation: banner-in 0.6s var(--ease) both;
}
.install-banner img { border-radius: 10px; flex: none; }
.install-copy { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.install-copy strong { font-size: 0.95rem; }
.install-copy span { font-size: 0.8rem; color: var(--muted); }
.btn-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--dim); cursor: pointer; }
@keyframes banner-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.howto { color: var(--ink); width: min(440px, calc(100vw - 32px)); padding: 26px; border-color: var(--line-gold); background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(18, 6, 24, 0.86); }
.howto::backdrop { background: rgba(3, 1, 5, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.howto h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.howto ol { color: var(--muted); padding-left: 20px; margin: 14px 0 20px; display: grid; gap: 8px; }
.toast { position: fixed; z-index: 40; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(20, 8, 26, 0.92); border: 1px solid var(--line-gold); color: var(--gold-hi); font-size: 0.9rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.noscript { position: relative; z-index: 2; text-align: center; padding: 20px; color: var(--gold-hi); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .entry, .compat-form { grid-template-columns: 1fr; }
  .encyclopedia, .compat, .twins { padding: 20px 16px; }
  .tabs { margin-inline: -16px; padding-inline: 16px; }
  .dossier-head { padding: 20px 16px; }
  .compat-out { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .verdict p { margin-inline: auto; }
  .compat-cols, .parts { text-align: left; width: 100%; }
  .viz-hint { display: none; }
  main, .footer { padding-inline: 16px; }
  .topbar { padding-inline: 16px; }
  .footer-box { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 4px; }
  .topnav { flex: 1 1 100%; justify-content: space-between; }
  #installBtn span { display: none; }
  #installBtn { width: 44px; padding: 0; position: absolute; right: 16px; top: calc(9px + env(safe-area-inset-top)); }
}
@media (max-width: 350px) {
  .ti-link { letter-spacing: 0.05em; font-size: 0.72rem; padding: 0; }
  .topnav { gap: 6px; }
  #arcadeBtn { padding: 10px 12px; font-size: 0.84rem; }
}
@media (max-width: 420px) {
  .systems { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
