/* PixelStar · pixel + space theme */
:root {
  --bg: #070920;
  --panel: #10143c;
  --panel-2: #171c52;
  --line: #3b3f8f;
  --violet: #8f8cff;
  --gold: #ffd36e;
  --text: #e8e9ff;
  --muted: #a3a6d9;
  --fire: #ff6b6b;
  --earth: #7bd389;
  --air: #ffd36e;
  --water: #5ec8ff;
  --px: 4px;
  --pixel: 'Press Start 2P', monospace;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --glyph: 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'DejaVu Sans', sans-serif;
}
html[lang="ru"] h2 { font-size: 17px; }
html[lang="ru"] .nav a { font-size: 9px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #23206b 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
#sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; image-rendering: pixelated; pointer-events: none;
}
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--pixel); font-weight: 400; line-height: 1.5; margin: 0 0 16px; }
h2 { font-size: 20px; color: var(--gold); }
h3 { font-size: 13px; color: var(--text); }
h4 { font-size: 11px; color: var(--muted); }
p { margin: 0 0 14px; }
em { font-style: normal; color: var(--gold); }
.muted { color: var(--muted); }
.violet { color: var(--violet); }
.sprite { display: inline-block; width: 64px; height: 64px; image-rendering: pixelated; vertical-align: middle; }
.sprite.mini { width: 24px; height: 24px; }
.gold { color: var(--gold); font-weight: 400; }
.glyph { font-family: var(--glyph); font-weight: 400; }
.fire { color: var(--fire); } .earth { color: var(--earth); } .air { color: var(--air); } .water { color: var(--water); }

/* Pixel border: notched corners made with box-shadows */
.panel, .card, .sign-card, .btn, .stat, .bt-card, .reading, .form input, .form select, .city-list, .house-item {
  box-shadow:
    var(--px) 0 0 0 var(--line), calc(-1 * var(--px)) 0 0 0 var(--line),
    0 var(--px) 0 0 var(--line), 0 calc(-1 * var(--px)) 0 0 var(--line);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(7, 9, 32, 0.88);
  border-bottom: var(--px) solid var(--line);
  backdrop-filter: blur(4px);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--pixel); font-size: 16px; }
.logo b { color: var(--gold); font-weight: 400; }
.logo-star { width: 28px; height: 28px; animation: spin 8s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--pixel); font-size: 10px; }
.nav a:hover { color: var(--gold); }
.nav .nav-cta { color: var(--bg); background: var(--gold); padding: 8px 10px; }
.lang-switch { display: flex; box-shadow: 0 0 0 3px var(--line); }
.lang-switch button { font-family: var(--pixel); font-size: 9px; padding: 7px 8px; border: 0; cursor: pointer; background: transparent; color: var(--muted); }
.lang-switch button.active { background: var(--violet); color: #0b0d2b; }

/* ---------- Layout ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 70px 0 30px; scroll-margin-top: 70px; }
.section-lead { color: var(--muted); max-width: 760px; }
.h-icon { color: var(--violet); font-family: var(--glyph); }
.panel { background: var(--panel); padding: 24px; margin: 4px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 90px 0 40px; }
.eyebrow { font-family: var(--pixel); font-size: 10px; color: var(--violet); letter-spacing: 2px; }
.hero h1 { font-size: clamp(24px, 5vw, 46px); text-shadow: 4px 4px 0 #2b2a7a; }
.hero h1 .gold-line { color: var(--gold); }
.lead { max-width: 680px; margin: 0 auto 30px; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.sprite-parade { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 60px; }
.parade-item { display: block; width: 56px; height: 56px; animation: bob 1.6s steps(2) infinite; cursor: pointer; }
.parade-item:hover .sprite, .parade-item:focus-visible .sprite { transform: scale(1.25); filter: drop-shadow(0 0 6px rgba(255, 211, 110, .7)); }
.parade-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.parade-hint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.parade-item:nth-child(even) { animation-duration: 1.9s; }
.parade-item .sprite { width: 100%; height: 100%; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  font-family: var(--pixel); font-size: 11px; line-height: 1.4;
  padding: 14px 18px; margin: 4px;
  background: var(--panel-2); color: var(--text); text-decoration: none;
  transition: transform .08s steps(2);
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); }
.btn-gold { background: var(--gold); color: #1a1440; --line: #b8892c; }
.btn-wide { width: calc(100% - 8px); padding: 18px; font-size: 13px; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--panel-2); padding: 18px; margin: 4px; text-align: center; }
.stat b { display: block; font-family: var(--pixel); font-size: 26px; color: var(--gold); font-weight: 400; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; line-height: 1.3; display: block; }

/* ---------- Basics ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 26px 0; }
.card { background: var(--panel); padding: 20px; margin: 4px; }
.card-glyph { font-size: 38px; color: var(--gold); margin-bottom: 12px; height: 48px; }
.pixel-num { font-family: var(--pixel); font-size: 22px; padding-top: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.big-three { border-left: 0; }
.big-three h3 { color: var(--gold); }

/* ---------- Zodiac ---------- */
.sign-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; }
.sign-card { background: var(--panel); padding: 18px; margin: 4px; text-align: center; transition: transform .1s steps(2); }
.sign-card:hover { transform: translateY(-4px); }
.sign-card.fire { --line: #7a3350; } .sign-card.earth { --line: #2f6a4d; }
.sign-card.air { --line: #7a6a35; } .sign-card.water { --line: #2d5d86; }
.sign-sprite .sprite { width: 80px; height: 80px; margin-bottom: 8px; }
.sign-card:hover .sprite { animation: bob 0.6s steps(2) 2; }
.sign-card.fire h3 .glyph { color: var(--fire); } .sign-card.earth h3 .glyph { color: var(--earth); }
.sign-card.air h3 .glyph { color: var(--air); } .sign-card.water h3 .glyph { color: var(--water); }
.sign-card h3 { margin-bottom: 8px; font-size: 11px; }
.sign-card p { margin: 2px 0; font-size: 14px; }
.dates { color: var(--text); } .tags { color: var(--violet); } .kw { color: var(--muted); }
.sign-card .about { margin-top: 10px; padding-top: 10px; border-top: 2px dashed #2a2f7a; text-align: left; color: var(--text); font-size: 14px; line-height: 1.5; }
.sign-card { scroll-margin-top: 90px; }
.sign-card.flash { animation: flash 1.8s steps(6); }
@keyframes flash { 0%, 33%, 66% { --line: var(--gold); background: #23286a; } 16%, 50%, 100% { background: var(--panel); } }

/* ---------- Form ---------- */
.form { max-width: 760px; margin: 24px auto 0; }
.field { margin-bottom: 20px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 22px; flex-wrap: wrap; }
.field-row > .field { min-width: 200px; }
.field-row.three > .field { min-width: 150px; }
label { display: block; font-family: var(--pixel); font-size: 10px; color: var(--gold); margin-bottom: 10px; }
label small { color: var(--muted); font-size: 8px; }
.form input, .form select {
  width: calc(100% - 8px); margin: 4px;
  background: #0a0d2c; color: var(--text); border: 0;
  font-family: var(--body); font-size: 17px; padding: 10px 12px;
  color-scheme: dark;
}
.form input:focus, .form select:focus { outline: none; --line: var(--gold); }
.form input:disabled, .form select:disabled { opacity: .45; }
.check { display: flex; gap: 10px; align-items: center; font-family: var(--body); font-size: 15px; color: var(--muted); margin-top: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); box-shadow: none; }
.city-field { position: relative; }
.city-list {
  position: absolute; left: 0; right: 0; z-index: 5; list-style: none; margin: 6px 4px 0; padding: 0;
  background: var(--panel-2); max-height: 300px; overflow-y: auto;
}
.city-list li { padding: 8px 14px; cursor: pointer; }
.city-list li span { color: var(--muted); }
.city-list li:hover, .city-list li:focus { background: #2a2f7a; outline: none; }
.city-list li.empty { color: var(--muted); cursor: default; }
.place-info { color: var(--violet); font-size: 14px; margin: 8px 4px 0; min-height: 1em; }
.manual { margin-bottom: 20px; }
.manual summary { cursor: pointer; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.hint { color: var(--muted); font-size: 14px; }
.form-error { color: var(--fire); min-height: 1em; }

/* ---------- Results ---------- */
.results-head { text-align: center; }
.meta { color: var(--muted); font-size: 15px; }
.big-three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.bt-card { background: var(--panel); padding: 20px; margin: 4px; position: relative; }
.bt-sprite { position: absolute; top: 14px; right: 14px; }
.bt-sprite .sprite { width: 56px; height: 56px; }
.bt-card.fire { --line: #7a3350; } .bt-card.earth { --line: #2f6a4d; }
.bt-card.air { --line: #7a6a35; } .bt-card.water { --line: #2d5d86; }
.bt-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bt-glyph { font-size: 26px; color: var(--gold); }
.bt-label { font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.bt-sign { font-family: var(--pixel); font-size: 15px; color: var(--gold); margin-bottom: 12px; }
.bt-sign .glyph { font-size: 22px; }
.bt-card p { font-size: 15px; }

.chart-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.wheel-box { padding: 14px; }
.wheel { width: 100%; height: auto; display: block; }
.wheel text { text-anchor: middle; dominant-baseline: central; }
.wheel .sign-glyph { font-size: 24px; }
.wheel .planet-glyph { font-size: 25px; fill: #ffffff; }
.wheel .planet-deg { font-family: var(--body); font-size: 13px; fill: var(--muted); }
.wheel .house-num { font-family: var(--pixel); font-size: 9px; fill: var(--violet); }
.wheel .angle-label { font-family: var(--pixel); font-size: 10px; fill: var(--gold); }
.wheel .planet:hover .planet-glyph { fill: var(--gold); }
.legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 8px; }
.lg { display: inline-block; width: 22px; height: 4px; margin-right: 6px; vertical-align: middle; }
.lg.trine { background: var(--water); } .lg.sextile { background: var(--earth); }
.lg.square { background: repeating-linear-gradient(90deg, var(--fire) 0 6px, transparent 6px 10px); }
.lg.opposition { background: repeating-linear-gradient(90deg, #ff9f43 0 6px, transparent 6px 10px); }

.pos-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pos-table th { font-family: var(--pixel); font-size: 8px; color: var(--muted); text-align: left; padding: 6px 4px; border-bottom: var(--px) solid var(--line); }
.pos-table td { padding: 4px; border-bottom: 2px dashed #23286a; }
.pos-table td.glyph { color: var(--gold); font-size: 18px; width: 30px; }
.pos-table .angle-row td { color: var(--gold); }
.rx { color: var(--fire); font-family: var(--pixel); font-size: 8px; vertical-align: super; }

.element-bars { margin-top: 22px; }
.ebar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.ebar > span:first-child { width: 64px; }
.cells { display: flex; gap: 3px; flex: 1; }
.cells i { width: 14px; height: 14px; background: #1c2160; }
.ebar.fire .on { background: var(--fire); } .ebar.earth .on { background: var(--earth); }
.ebar.air .on { background: var(--air); } .ebar.water .on { background: var(--water); }

.sub-h { margin-top: 46px; color: var(--gold); font-size: 14px; }
.readings { display: grid; gap: 14px; }
.reading { background: var(--panel); margin: 4px; padding: 0; }
.reading summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
}
.reading summary::-webkit-details-marker { display: none; }
.reading summary::after { content: '+'; font-family: var(--pixel); color: var(--gold); margin-left: 8px; }
.reading[open] summary::after { content: '\2212'; }
.reading[open] summary { border-bottom: 2px dashed #2a2f7a; }
.reading p { padding: 0 18px; margin: 14px 0; font-size: 16px; }
.r-glyph { font-size: 24px; color: var(--gold); min-width: 32px; }
.r-title { flex: 1; font-family: var(--pixel); font-size: 11px; line-height: 1.6; }
.r-title small { color: var(--muted); font-size: 9px; }
.r-deg { color: var(--muted); white-space: nowrap; font-size: 14px; }
.reading summary .sprite.mini { width: 28px; height: 28px; }
.aspect.harmony { --line: #2d5d86; } .aspect.tension { --line: #7a3350; } .aspect.blend { --line: #7a6a35; }

.reading.house .h-num { font-family: var(--pixel); font-size: 14px; color: var(--violet); min-width: 30px; }
.reading.house .r-title small { color: var(--muted); font-family: var(--body); font-size: 13px; }
.h-planets { color: var(--gold); font-size: 18px; white-space: nowrap; }
.house-item { display: flex; gap: 14px; background: var(--panel); padding: 12px 14px; margin: 4px; font-size: 15px; }
.house-item b { font-family: var(--pixel); font-size: 10px; font-weight: 400; color: var(--gold); }
.h-num { font-family: var(--pixel); font-size: 16px; color: var(--violet); min-width: 34px; }
.results-actions { display: flex; gap: 18px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Today ---------- */
.today-grid { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 22px; margin-top: 24px; align-items: stretch; }
.moon-card { display: flex; gap: 22px; align-items: center; }
#moonPx { width: 126px; height: 126px; image-rendering: pixelated; flex: none; filter: drop-shadow(0 0 10px rgba(255, 211, 110, .25)); }
.moon-info h4 { margin-bottom: 6px; }
.moon-name { font-family: var(--pixel); font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.moon-info p { margin: 0 0 6px; font-size: 14px; }
.moon-sign { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.now-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
.now-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 2px dashed #23286a; font-size: 14px; }
.now-glyph { color: var(--gold); width: 22px; text-align: center; }
.now-name { flex: 1; }
.now-sign { min-width: 130px; }
.now-item.fire .now-sign { color: var(--fire); } .now-item.earth .now-sign { color: var(--earth); }
.now-item.air .now-sign { color: var(--air); } .now-item.water .now-sign { color: var(--water); }
.today-text { margin-top: 22px; }
.today-text p { margin-bottom: 12px; }
.today-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--panel-2); padding: 4px 10px; font-size: 13px; box-shadow: 0 0 0 3px var(--line); margin: 3px; }
.chip.harmony { --line: #2d5d86; } .chip.tension { --line: #7a3350; } .chip.blend { --line: #7a6a35; }
.chip .glyph { color: var(--gold); }
.calc-time { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.link-btn { background: none; border: 0; color: var(--gold); font-family: var(--body); font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---------- Chart page ---------- */
.chart-page { min-height: 75vh; }
.chart-page .results { padding-top: 40px; }
.chart-error { text-align: center; max-width: 560px; margin: 40px auto; }
.share-hint { text-align: center; font-size: 14px; margin-top: 18px; }

/* ---------- Mini game: Star Path ---------- */
.nav a.nav-game { color: var(--violet); }
.nav a.nav-game.active, .nav a.nav-game:hover { color: var(--gold); }
.game-page { min-height: 75vh; }
#game { padding-top: 40px; scroll-margin-top: 80px; }
.g-intro { text-align: center; max-width: 900px; margin: 0 auto; }
.g-title { font-size: 22px; }
.g-lead { color: var(--muted); max-width: 680px; margin: 0 auto 18px; }
.g-route { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 0 0 26px; font-size: 14px; color: var(--violet); }
.g-route-sep { color: var(--line); }
.g-heroes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 18px 0 24px; }
.g-hero { background: var(--panel-2); border: 0; cursor: pointer; padding: 10px 4px 8px; color: var(--muted); font-family: var(--body); font-size: 13px;
  box-shadow: 0 0 0 3px var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-hero .sprite { width: 52px; height: 52px; }
.g-hero:hover .sprite { animation: bob .5s steps(2) infinite; }
.g-hero.sel { box-shadow: 0 0 0 4px var(--gold); color: var(--gold); background: #23286a; }
.g-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.g-best { margin-top: 12px; font-size: 14px; }

.g-hud { display: flex; align-items: center; gap: 14px; justify-content: flex-end; margin-bottom: 10px; font-size: 14px; }
.g-score { font-family: var(--pixel); font-size: 11px; color: var(--gold); }
.g-streak { font-family: var(--pixel); font-size: 9px; color: #0b0d2b; background: var(--earth); padding: 5px 7px; animation: bob .6s steps(2) 3; }
.g-level-head { margin-bottom: 18px; }
.g-level-n { font-family: var(--pixel); font-size: 9px; color: var(--violet); }
.g-level-head h2 { margin: 8px 0 6px; }
.g-level-head h2 small { font-family: var(--body); font-size: 16px; color: var(--muted); }
.g-hosts { color: var(--muted); font-size: 14px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.g-hosts a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.g-hosts a:hover { color: var(--gold); }

.g-play { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.g-map { padding: 10px; }
.starmap { width: 100%; height: auto; display: block; }
.starmap .star.next rect { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.starmap .star-label { font-family: var(--body); font-size: 3.2px; fill: var(--gold); }
.starmap .sprite.hero { animation: bob 1s steps(2) infinite; }
.g-dots { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.g-dots i { width: 14px; height: 14px; background: #1c2160; }
.g-dots i.lit { background: var(--gold); } .g-dots i.missed { background: #6b4a7a; }
.g-dots i.next { background: #fff; animation: blink 1s steps(2) infinite; }

.g-asker { display: flex; gap: 16px; align-items: flex-start; }
.g-asker > .sprite { width: 72px; height: 72px; flex: none; animation: bob 1.4s steps(2) infinite; }
.g-sit-label { font-family: var(--pixel); font-size: 9px; color: var(--violet); }
.g-sit { font-size: 18px; margin: 6px 0 0; }
.g-q { color: var(--gold); margin: 18px 0 12px; }
.g-opts { display: grid; gap: 12px; }
.g-opt { text-align: left; background: var(--panel-2); color: var(--text); border: 0; cursor: pointer; padding: 12px 14px; margin: 3px;
  font-family: var(--body); font-size: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
  box-shadow: 0 0 0 3px var(--line); transition: transform .08s steps(2); }
.g-opt:hover:not([disabled]) { transform: translate(-2px, -2px); box-shadow: 0 0 0 3px var(--gold); }
.g-key { font-family: var(--pixel); font-size: 10px; color: var(--gold); }
.g-opt.right { box-shadow: 0 0 0 4px var(--earth); background: #173a3a; }
.g-opt.wrong { box-shadow: 0 0 0 4px var(--fire); background: #3a1730; }
.g-opt.dim { opacity: .5; }
.g-opt[disabled] { cursor: default; }
.g-who { grid-column: 2; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.g-feedback { margin-top: 18px; padding: 14px 16px; background: #0a0d2c; box-shadow: 0 0 0 3px var(--line); }
.g-feedback.ok { --line: var(--earth); } .g-feedback.bad { --line: var(--fire); }
.g-feedback b { font-family: var(--pixel); font-size: 11px; display: block; margin-bottom: 8px; }
.g-feedback.ok b { color: var(--earth); } .g-feedback.bad b { color: var(--fire); }
.g-feedback .btn { display: block; margin: 14px 0 0 auto; }

.g-complete { font-family: var(--pixel); font-size: 13px; color: var(--gold); text-align: center; }
.g-complete .muted { font-family: var(--body); font-size: 15px; display: block; margin-top: 6px; }
.g-fact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; margin-top: 16px; }
.g-fact-map h2 { margin: 14px 0 2px; }
.g-facts { margin: 0; }
.g-facts dt { font-family: var(--pixel); font-size: 9px; color: var(--violet); margin-top: 14px; }
.g-facts dt:first-child { margin-top: 0; }
.g-facts dd { margin: 6px 0 0; font-size: 15px; }

.g-final { max-width: 960px; margin: 0 auto; }
.g-final-top { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.sprite.big { width: 110px; height: 110px; flex: none; animation: bob 1.2s steps(2) infinite; }
.g-rank { font-family: var(--pixel); font-size: 14px; color: var(--gold); }
.g-atlas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.g-atlas-item { background: #0a0d2c; padding: 8px; box-shadow: 0 0 0 3px var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.g-atlas-item b { font-family: var(--pixel); font-size: 9px; font-weight: 400; color: var(--text); margin-top: 4px; }
.g-atlas-item .muted { color: var(--gold); letter-spacing: 2px; }
a.chip { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
a.chip:hover { color: var(--gold); }

@media (max-width: 900px) {
  .g-play, .g-fact-grid { grid-template-columns: 1fr; }
  .g-heroes { grid-template-columns: repeat(4, 1fr); }
  .g-atlas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .g-heroes { grid-template-columns: repeat(3, 1fr); }
  .g-asker > .sprite { width: 56px; height: 56px; }
  .g-final-top { flex-direction: column; text-align: center; }
}

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 50px 24px 40px; margin-top: 60px; border-top: var(--px) solid var(--line); color: var(--muted); background: rgba(7,9,32,.8); }
.footer b { color: var(--gold); font-family: var(--pixel); font-size: 11px; font-weight: 400; }
.footer .small { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .today-grid, .today-cols { grid-template-columns: 1fr; }
  .cards, .sign-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .chart-layout { grid-template-columns: 1fr; }
  .big-three-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { flex-direction: column; padding: 12px; position: static; }
  .nav { gap: 14px; justify-content: center; }
  .sign-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .house-list { grid-template-columns: 1fr; }
  .section { padding-top: 50px; }
  .r-deg { display: none; }
  .now-grid { grid-template-columns: 1fr; }
  .moon-card { flex-direction: column; text-align: center; }
  .moon-sign { justify-content: center; }
  .parade-item { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  #sky, .topbar, .hero, #today, #about, #basics, #zodiac, #create, .footer, .results-actions, .share-hint { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .bt-card, .reading, .house-item { background: #fff; box-shadow: 0 0 0 1px #999; }
  .reading p { display: block; }
  details > *:not(summary) { display: block; }
}
