:root {
  --bg: #151026;
  --bg2: #1d1634;
  --panel: #241c40;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f1ff;
  --muted: #b9add6;
  --gold: #ffc94d;
  --gold2: #f59e0b;
  --ink: #1a1025;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Baloo 2', Nunito, system-ui, sans-serif; font-weight: 800; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0; }
h3 { font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(21, 16, 38, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 23px; color: var(--text); }
.logo b { font-weight: 600; color: var(--gold); margin-left: 5px; }
.logo-mark { width: 34px; height: 34px; color: #b794ff; flex: none; }
.logo.small { font-size: 19px; }
.logo.small .logo-mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15.5px; }
.nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg2); }
.lang a, .lang span { padding: 4px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 800; text-decoration: none; letter-spacing: 0.5px; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang .on { background: var(--gold); color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 20px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.big { padding: 14px 26px; font-size: 17.5px; border-radius: 14px; }
.btn-play { background: linear-gradient(#ffd56b, var(--gold2)); color: var(--ink); box-shadow: 0 4px 0 #a96506, 0 10px 24px rgba(245, 158, 11, 0.25); }
.btn-play:hover { transform: translateY(-2px); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 #a96506; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.22); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 12vw, 140px) 0 clamp(70px, 10vw, 120px);
  background: radial-gradient(ellipse 80% 70% at 70% 20%, #3b2470 0%, transparent 70%), radial-gradient(ellipse 60% 60% at 10% 100%, #12324a 0%, transparent 70%), var(--bg); }
.hero-in { position: relative; max-width: 760px; margin-left: max(16px, calc((100% - var(--wrap)) / 2)); }
.hero-art { position: absolute; top: 50%; right: max(16px, calc((100% - var(--wrap)) / 2)); width: 560px; height: 420px; transform: translateY(-50%); pointer-events: none; }
.hero-art > div { position: absolute; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); line-height: 0; }
.hero-art img { width: 100%; height: auto; }
.hero-art .a { width: 480px; top: 0; left: 0; transform: rotate(-3deg); }
.hero-art .b { width: 340px; bottom: 0; right: 0; transform: rotate(3deg); }
@media (min-width: 1181px) { .hero-in { max-width: 540px; } }
@media (max-width: 1180px) { .hero-art { opacity: 0.3; right: -180px; } }
@media (max-width: 860px) { .hero-art { display: none; } }
.kicker { display: inline-block; font-weight: 800; font-size: 13.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 620px; }
.hero .lead { margin-bottom: 32px; }
.snow { position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 60%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 85% 15%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 80%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 55% 25%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 10% 65%, #fff 50%, transparent 51%);
  background-size: 340px 340px; animation: snow 22s linear infinite; }
@keyframes snow { to { background-position: 60px 340px, -40px 340px, 30px 340px, -20px 340px, 50px 340px, -30px 340px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } html { scroll-behavior: auto; } }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 36px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.cards.one { grid-template-columns: minmax(0, 560px); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0a18; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 24px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 26px; }
.card-body h3 a { text-decoration: none; }
.card-body p { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.free { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; opacity: 0.85; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; }
.tags li { font-size: 12.5px; font-weight: 800; letter-spacing: 0.4px; padding: 3px 10px; border-radius: 999px; color: var(--accent, var(--gold)); background: color-mix(in srgb, var(--accent, var(--gold)) 14%, transparent); }

/* about */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--muted); }
.values, .features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.values li, .features li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.values h3, .features h3 { font-size: 19px; margin-bottom: 4px; }
.values p, .features p { margin: 0; color: var(--muted); font-size: 15.5px; }
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.contact { text-align: center; }
.contact .section-lead { margin-inline: auto; }

/* game page */
.game-hero { padding: clamp(40px, 7vw, 80px) 0; background: radial-gradient(ellipse 70% 80% at 80% 30%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%), var(--bg); }
.game-hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.game-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.game-hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); line-height: 0; }
.game-hero-img img { width: 100%; height: auto; }
.crumb { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 700; margin-bottom: 18px; font-size: 15px; }
.crumb:hover { color: var(--text); }
.prose { max-width: 760px; font-size: 18px; }
.prose p { color: #ddd3f3; }
.shots { display: grid; gap: 18px; }
.shots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.shots a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.shots img { width: 100%; height: auto; transition: transform 0.3s; }
.shots a:hover img { transform: scale(1.02); }
.howto ol { padding-left: 1.3em; max-width: 720px; margin: 0 0 32px; }
.howto li { margin-bottom: 10px; color: #ddd3f3; }
.howto li::marker { color: var(--gold); font-weight: 800; }
.notfound { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.notfound .lead { margin: 0 auto 28px; }
.notfound h1 { font-size: 96px; color: var(--gold); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 34px; background: #110d20; }
.foot-in { display: grid; gap: 16px; justify-items: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot p { color: var(--muted); font-size: 14px; margin: 0; opacity: 0.8; }

@media (max-width: 860px) {
  .about, .game-hero-in { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .logo { font-size: 20px; }
  .card-body { padding: 20px; }
  .card-actions .btn { flex: 1; }
}
