/* Arkadia – tokens from the design in 03-Strona-WWW/podglad. Fonts are self-hosted: no third-party requests. */
@font-face { font-family: "Pixelify Sans"; src: url("../fonts/PixelifySans.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #0B1020;
  --bg-deep: #080C19;
  --card: #141B31;
  --line: #2A3557;
  --ink: #EEF2FA;
  --muted: #B8C1D6;
  --soft: #A7B1C8;
  --accent: #5CE1D0;
  --accent-dark: #2BA897;
  --accent-light: #B5F5EC;
  --gold: #F5C451;
  --gold-dark: #C2902A;
  --gold-light: #FCE3A1;
  --green: #5DBB45;
  --shadow: #05070F;
  --pixel: "Pixelify Sans", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); line-height: 1.5; }
/* Footer at the bottom of the window on short pages (ranking, legal pages). */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-light); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
img, svg { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--pixel); font-weight: 700; font-size: 22px; letter-spacing: 2px; text-shadow: 3px 3px 0 var(--shadow); }
.brand.small { font-size: 16px; margin: 0 0 8px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav-links a { color: #C9D1E3; text-decoration: none; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links { align-items: center; }
.nav-links a.nav-cta { color: var(--bg); background: var(--gold); padding: 6px 14px; font-family: var(--pixel); font-weight: 700; box-shadow: inset -3px -3px 0 var(--gold-dark), inset 3px 3px 0 var(--gold-light); }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta[aria-current] { color: var(--bg); filter: brightness(1.08); }
.grass { display: block; width: 100%; height: 24px; }

main.wrap { padding-top: 40px; padding-bottom: 64px; } /* .wrap alone would reset the vertical padding */
section { margin-top: 48px; }
section:first-child { margin-top: 0; }

/* Typography */
h1, h2, h3 { font-family: var(--pixel); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 52px); text-shadow: 4px 4px 0 var(--shadow); }
h2 { font-size: clamp(22px, 3vw, 30px); text-shadow: 3px 3px 0 var(--shadow); }
h3 { font-size: 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.muted { color: var(--soft); }
.section-intro { color: var(--muted); margin: 0 0 20px; max-width: 70ch; }

/* Cards and grids */
.card { background: var(--card); border: 3px solid var(--line); box-shadow: 8px 8px 0 var(--shadow); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tile { background: var(--card); border: 3px solid var(--line); padding: 20px; }
.tile p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-family: var(--pixel); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--bg); background: var(--accent); padding: 3px 8px; margin-bottom: 10px; }
.tag.gold { background: var(--gold); }
.tag.dim { background: var(--line); color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 13px; background: var(--bg); border: 3px solid var(--line); padding: 6px 10px; margin-bottom: 16px; }
.dot { width: 10px; height: 10px; background: var(--green); box-shadow: 0 0 0 2px #2E6B24; }
.dot.off { background: #8A93A8; box-shadow: 0 0 0 2px #4A5168; }
.hero-art { justify-self: center; }

/* IP copy */
.ip { display: flex; flex-wrap: wrap; border: 3px solid var(--line); background: var(--bg); width: max-content; max-width: 100%; }
.ip span { display: flex; align-items: center; font-family: var(--pixel); font-size: 18px; padding: 12px 16px; }
.button, .ip button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; background: var(--accent); color: var(--bg); box-shadow: inset -4px -4px 0 var(--accent-dark), inset 4px 4px 0 var(--accent-light); font: 700 16px var(--pixel); text-decoration: none; cursor: pointer; }
.button:hover, .ip button:hover { color: var(--bg); filter: brightness(1.08); }
.button.gold { background: var(--gold); box-shadow: inset -4px -4px 0 var(--gold-dark), inset 4px 4px 0 var(--gold-light); }
.button.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-dark); }
.button.ghost:hover { color: var(--accent-light); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.price { font-family: var(--pixel); font-size: 22px; color: var(--gold); margin: 4px 0 10px; }
.hint { font-size: 14px; color: var(--soft); margin: 10px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 3px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
th { font-family: var(--pixel); font-size: 13px; text-transform: uppercase; color: var(--soft); background: var(--bg-deep); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs a { font-family: var(--pixel); font-size: 14px; color: var(--ink); text-decoration: none; padding: 10px 14px; border: 3px solid var(--line); background: var(--card); }
.tabs a.active { background: var(--accent); color: var(--bg); border-color: var(--accent-dark); }

/* Forms */
.search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.search input { min-height: 48px; padding: 0 14px; border: 3px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--text); min-width: 0; flex: 1 1 220px; }

/* Progress bar */
.bar { height: 18px; background: var(--bg); border: 3px solid var(--line); }
.bar span { display: block; height: 100%; background: var(--gold); box-shadow: inset 0 -4px 0 var(--gold-dark); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
.timeline .num { font-family: var(--pixel); font-size: 28px; color: var(--accent); text-align: center; }

/* FAQ */
details { background: var(--card); border: 3px solid var(--line); padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Notices and prose */
.notice { border: 3px solid var(--gold-dark); background: #2A2210; color: var(--gold-light); padding: 14px 18px; margin: 0 0 20px; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose li { margin-bottom: 6px; }
.empty { color: var(--soft); padding: 24px; text-align: center; }

/* Footer */
.site-footer { background: var(--bg-deep); border-top: 3px solid var(--line); padding: 28px 0; color: var(--soft); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal { margin-top: 16px; font-size: 12px; }
.legal p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .card { padding: 18px; box-shadow: 5px 5px 0 var(--shadow); }
}

/* ---- Home: full-width hero ------------------------------------------------------------------ */
.site-header.over-hero { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: linear-gradient(#05070Fcc, #05070F00); transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: #05070FF2; box-shadow: 0 3px 0 var(--line); }
.site-header.scrolled .nav { padding-top: 10px; padding-bottom: 10px; }
.hero-full { position: relative; overflow: hidden; min-height: min(92vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.hero-world { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; }
.hero-full::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #05070Fe6 0%, #05070F99 45%, #05070F00 75%); }
.hero-inner { width: 100%; padding-top: 120px; padding-bottom: 72px; }
.hero-title { font-size: clamp(38px, 7vw, 84px); line-height: 1.02; max-width: 18ch; margin: 0 0 20px; text-shadow: 5px 5px 0 var(--shadow); }
.hero-title span { display: block; color: var(--accent); text-shadow: 5px 5px 0 var(--shadow), 0 0 40px #5CE1D066; }
.hero-lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink); max-width: 52ch; margin: 0 0 28px; }
.hero-ip { display: flex; flex-wrap: wrap; align-items: stretch; width: max-content; max-width: 100%; border: 4px solid var(--accent-dark); background: #05070FD9; box-shadow: 8px 8px 0 var(--shadow), 0 0 32px #5CE1D033; }
.hero-ip-label { display: flex; align-items: center; padding: 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--soft); border-right: 2px solid var(--line); }
.hero-ip-address { display: flex; align-items: center; padding: 14px 20px; font: 700 clamp(20px, 3vw, 28px) var(--pixel); color: var(--accent-light); }
.hero-ip .button { min-height: 64px; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.chips span { font-size: 13px; color: var(--muted); background: #05070FB3; border: 2px solid var(--line); padding: 4px 10px; }
.hero-full .actions .button { min-height: 56px; padding: 0 28px; font-size: 18px; }
.hero-full .grass { position: absolute; bottom: 0; left: 0; }

/* Motion (off with prefers-reduced-motion) */
.stars rect { animation: twinkle 3.6s steps(4) infinite; }
.float { animation: bob 7s ease-in-out infinite; }
.float.slow { animation-duration: 9s; animation-delay: -3s; }
.float.slower { animation-duration: 11s; animation-delay: -5s; }
.crystal { animation: pulse 3s ease-in-out infinite; transform-origin: 236px 86px; }
.aurora { animation: drift 14s ease-in-out infinite alternate; }
.shards rect { animation: fall 8s linear infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes drift { from { transform: translateX(-20px); } to { transform: translateX(20px); } }
@keyframes fall { from { transform: translateY(40px); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(170px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .stars rect, .float, .crystal, .aurora, .shards rect { animation: none; }
}

/* ---- Home: sections ----------------------------------------------------------------------- */
.eyebrow { font: 700 13px var(--pixel); text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin: 0 0 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 3px solid var(--line); background: var(--card); box-shadow: 8px 8px 0 var(--shadow); }
.stats div { padding: 22px 20px; border-right: 3px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font: 700 40px var(--pixel); color: var(--accent); text-shadow: 3px 3px 0 var(--shadow); }
.stats span { color: var(--muted); font-size: 14px; }
.modes { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mode-card { background: var(--card); border: 3px solid var(--line); display: flex; flex-direction: column; transition: transform .15s steps(2), box-shadow .15s steps(2); }
.mode-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--shadow); }
.mode-art { display: grid; place-items: center; height: 150px; border-bottom: 3px solid var(--line); background: radial-gradient(circle at 50% 60%, #5CE1D033, transparent 60%), linear-gradient(#0B1430, #123A4A); }
.mode-bedwars .mode-art { background: radial-gradient(circle at 50% 60%, #E23A4E44, transparent 60%), linear-gradient(#1A0B14, #3A1420); }
.mode-skywars .mode-art { background: radial-gradient(circle at 50% 60%, #F5C45133, transparent 60%), linear-gradient(#0B1430, #1C3A6A); }
.mode-parkour .mode-art { background: radial-gradient(circle at 50% 60%, #5DBB4533, transparent 60%), linear-gradient(#0B1A14, #123A2A); }
.mode-art svg { width: 96px; height: 96px; filter: drop-shadow(4px 4px 0 var(--shadow)); }
.mode-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.mode-body p { color: var(--muted); margin: 0; }
.mode-body .hint { margin-top: auto; padding-top: 12px; }
.status.live { color: var(--green); font-weight: 600; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: step; position: relative; background: var(--card); border: 3px solid var(--line); padding: 24px 20px 20px 76px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 20px; width: 42px; height: 42px; display: grid; place-items: center; font: 700 22px var(--pixel); color: var(--bg); background: var(--accent); box-shadow: inset -3px -3px 0 var(--accent-dark), inset 3px 3px 0 var(--accent-light); }
.steps strong { font-family: var(--pixel); font-size: 18px; }
.steps p { color: var(--muted); margin: 6px 0 0; }
code { font-family: var(--pixel); color: var(--accent-light); background: var(--bg); padding: 1px 6px; }
.news { border-top: 6px solid var(--accent-dark); }
.season-band { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 36px; border: 3px solid var(--gold-dark); background: linear-gradient(120deg, #2A2210, #141B31 60%); box-shadow: 8px 8px 0 var(--shadow); }
.season-band p { color: var(--muted); max-width: 60ch; }
.season-art { justify-self: center; filter: drop-shadow(0 0 30px #5CE1D055); animation: bob 6s ease-in-out infinite; }
.cta-band { text-align: center; padding: 56px 24px; border: 3px solid var(--accent-dark); background: radial-gradient(circle at 50% 0%, #5CE1D026, transparent 60%), var(--card); box-shadow: 8px 8px 0 var(--shadow); }
.cta-band h2 { font-size: clamp(28px, 5vw, 48px); }
.cta-band p { color: var(--muted); }
.cta-band .ip { margin: 20px auto 0; }

@media (max-width: 760px) {
  .hero-full { min-height: 0; }
  .hero-inner { padding-top: 140px; padding-bottom: 60px; }
  .hero-full::after { background: linear-gradient(#05070F55, #05070FE6 55%); }
  .hero-ip-label { display: none; }
  .stats div { border-right: 0; border-bottom: 3px solid var(--line); }
  .season-band { grid-template-columns: 1fr; padding: 24px; }
  .season-art { display: none; }
  .steps li { padding-left: 72px; }
}
@media (prefers-reduced-motion: reduce) { .season-art { animation: none; } }
.mode-body .tag { align-self: flex-start; }

/* ---- Typography with the pixel font ------------------------------------------------------- */
h1, h2, h3, .brand, .button, .tag, .eyebrow, .tabs a { font-family: var(--pixel); letter-spacing: .5px; }
h1 { font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 42px); }
.nav-links a { font-family: var(--pixel); font-size: 17px; }
.big-number { font: 700 44px var(--pixel); color: var(--accent); margin: 0; text-shadow: 3px 3px 0 var(--shadow); }

/* ---- Subpage banners ---------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(#05070F, #0B1430 60%, #123A4A); }
.page-hero.theme-dawn { background: linear-gradient(#0B0820, #3A1A4A 55%, #C2602A); }
.page-hero.theme-gold { background: linear-gradient(#0B0A14, #2A2210 55%, #6A4A12); }
.page-hero.theme-forest { background: linear-gradient(#05100B, #0B2A1C 60%, #1E5A32); }
.page-hero.theme-aurora { background: linear-gradient(#05070F, #0B2A3A 50%, #1A5A5A); }
.page-hero.theme-night { background: linear-gradient(#05070F, #0B1020 70%, #141B31); min-height: 360px; }
.page-hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.page-hero::before { content: ""; position: absolute; inset: auto -10% 20% -10%; height: 40%; z-index: -1; background: radial-gradient(ellipse at 70% 100%, #5CE1D022, transparent 70%); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; padding-top: 120px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; margin: 0 0 16px; text-shadow: 5px 5px 0 var(--shadow); }
.page-hero .hero-lead { margin-bottom: 20px; }
.page-hero-art { justify-self: center; filter: drop-shadow(8px 8px 0 #05070F99); }
.page-hero-art svg { max-width: 100%; height: auto; }
.page-hero .grass { position: absolute; left: 0; bottom: 0; }
.page-hero .search { max-width: 560px; }

/* ---- Feature rows (modes page) ------------------------------------------------------------ */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.pill-nav a { font-family: var(--pixel); color: var(--ink); text-decoration: none; padding: 8px 16px; border: 3px solid var(--line); background: var(--card); }
.pill-nav a:hover { border-color: var(--accent); color: var(--accent); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 88px; scroll-margin-top: 90px; }
.feature.flip .feature-art { order: 2; }
.feature-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 4px solid var(--line); box-shadow: 10px 10px 0 var(--shadow); background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--glow) 35%, transparent), transparent 62%), linear-gradient(#0B1430, #123A4A); overflow: hidden; }
.feature-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(90deg, #5DBB45 0 16px, #7FD35E 16px 24px, #3E8E2F 24px 32px); box-shadow: 0 18px 0 #7A5236; }
.feature-art svg { width: 55%; height: auto; filter: drop-shadow(6px 6px 0 var(--shadow)); animation: bob 6s ease-in-out infinite; }
.feature-caption { position: absolute; top: 14px; left: 14px; margin: 0; font: 700 13px var(--pixel); text-transform: uppercase; letter-spacing: 1px; color: var(--ink); background: #05070FB3; padding: 4px 10px; }
.feature-text .lead { color: var(--ink); }
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--accent); box-shadow: 2px 2px 0 var(--accent-dark); }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.facts div { border: 3px solid var(--line); background: var(--card); padding: 8px 14px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--soft); }
.facts dd { margin: 2px 0 0; font-family: var(--pixel); font-size: 17px; }

/* ---- Seasons timeline --------------------------------------------------------------------- */
.season-line { list-style: none; margin: 0; padding: 0; position: relative; }
.season-line::before { content: ""; position: absolute; left: 39px; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(var(--line) 0 12px, transparent 12px 20px); }
.season-step { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.season-num { position: relative; z-index: 1; width: 84px; height: 84px; display: grid; place-items: center; font: 700 40px var(--pixel); color: var(--bg); background: var(--glow); box-shadow: inset -5px -5px 0 #0003, inset 5px 5px 0 #fff5, 6px 6px 0 var(--shadow); }
.season-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; border: 3px solid var(--line); border-left: 6px solid var(--glow); background: linear-gradient(110deg, color-mix(in srgb, var(--glow) 12%, var(--card)), var(--card) 55%); box-shadow: 8px 8px 0 var(--shadow); }
.season-card p { color: var(--muted); }
.season-island { justify-self: center; }
.event { display: flex; align-items: center; gap: 14px; }
.event h3 { margin: 0; }
.event-mark { width: 18px; height: 18px; flex: none; background: var(--gold); box-shadow: inset -3px -3px 0 var(--gold-dark), inset 3px 3px 0 var(--gold-light); }

/* ---- Ranking podium ----------------------------------------------------------------------- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 32px 0 28px; }
.podium-step { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); width: min(220px, 31%); }
.podium-name { font: 700 18px var(--pixel); margin-bottom: 2px; text-align: center; word-break: break-all; }
.podium-wins { font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.podium-block { width: 100%; display: grid; place-items: center; font: 700 40px var(--pixel); color: var(--bg); box-shadow: inset -5px -5px 0 #0003, inset 5px 5px 0 #fff6, 6px 6px 0 var(--shadow); }
.place-1 .podium-block { height: 170px; background: var(--gold); }
.place-2 .podium-block { height: 120px; background: #B8C1D6; }
.place-3 .podium-block { height: 90px; background: #C2902A; }
.podium-step:hover .podium-name { color: var(--accent); }
.empty-state .empty { font-size: 18px; padding: 48px 24px; }

/* ---- Shop, rules ------------------------------------------------------------------------- */
.package { display: flex; flex-direction: column; transition: transform .15s steps(2), box-shadow .15s steps(2); }
.package .button { margin-top: 16px; align-self: flex-start; }
.package:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--shadow); }
.package.featured { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dark), 8px 8px 0 var(--shadow); }
.rule { position: relative; padding-top: 56px; }
.rule-icon { position: absolute; top: 16px; left: 20px; width: 30px; height: 30px; display: grid; place-items: center; font: 700 18px var(--pixel); color: var(--bg); background: var(--accent); box-shadow: inset -3px -3px 0 var(--accent-dark); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ladder li { display: flex; align-items: flex-end; padding: 14px; font-family: var(--pixel); color: var(--bg); box-shadow: inset -4px -4px 0 #0003, 6px 6px 0 var(--shadow); }
.ladder li:nth-child(1) { height: 70px; background: #9AA5BC; }
.ladder li:nth-child(2) { height: 100px; background: var(--gold); }
.ladder li:nth-child(3) { height: 130px; background: #E2803A; }
.ladder li:nth-child(4) { height: 160px; background: #E23A4E; color: var(--ink); }

/* ---- Footer ------------------------------------------------------------------------------- */
.site-footer { padding: 48px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: -27px; left: 0; right: 0; height: 24px; background: repeating-linear-gradient(90deg, #4A5168 0 16px, #5B6378 16px 32px, #3A3F52 32px 40px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid p { margin: 0 0 8px; }
.footer-title { font: 700 16px var(--pixel); color: var(--ink); text-transform: uppercase; letter-spacing: 1px; }
.site-footer .footer-links { flex-direction: column; gap: 8px; }
.small-ip { margin-top: 12px; }
.small-ip span { font-size: 15px; padding: 8px 12px; }
.small-ip button { min-height: 40px; font-size: 14px; padding: 0 14px; }
.legal { border-top: 2px solid var(--line); margin-top: 32px; padding-top: 16px; }

/* ---- Scroll reveal ------------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
.button { transition: transform .1s steps(2), filter .1s; }
.button:active { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .feature-art svg { animation: none; }
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .feature.flip .feature-art { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .season-card { grid-template-columns: 1fr; }
  .season-island { display: none; }
}
@media (max-width: 760px) {
  .page-hero { min-height: 0; }
  .page-hero-inner { grid-template-columns: 1fr; padding-top: 130px; padding-bottom: 56px; }
  .page-hero-art { display: none; }
  .season-step { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .season-num { width: 56px; height: 56px; font-size: 28px; }
  .season-line::before { left: 25px; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links a { font-size: 15px; }
}
.hero-scene { position: absolute; inset: -12px; z-index: -1; transition: translate .2s linear; }
.hero-scene .hero-world { position: absolute; inset: 0; }
.page-hero-art { transition: translate .2s linear; }

/* ---- Narrow screens: nothing may push the page wider than the window ---------------------- */
body > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
html, body { overflow-x: clip; }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 760px) {
  .page-hero-inner, .hero, .season-band, .feature { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(odd) { border-right: 3px solid var(--line); }
  .stats strong { font-size: 32px; }
  .hero-ip { width: 100%; }
  .hero-ip-address { flex: 1; font-size: 20px; padding: 12px 14px; }
  .hero-ip .button { min-height: 52px; font-size: 16px; }
  .nav { gap: 8px 16px; }
  .nav-links { gap: 4px 14px; }
}
