/* YukiGames site: one stylesheet, no build step. Colours come from the studio mark
   (deep blue #1544c8 and sky blue #3d9cf5 on a night-navy field). */
:root {
  --bg: #0b1627;
  --bg-2: #0f1f38;
  --surface: #13263f;
  --surface-2: #1a3152;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9eff8;
  --muted: #a3b3cb;
  --brand: #1544c8;
  --brand-2: #3d9cf5;
  --accent: #5eb3ff;
  --on-brand: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-s: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f7fc;
    --bg-2: #e8f0fa;
    --surface: #ffffff;
    --surface-2: #f0f5fb;
    --line: rgba(15, 27, 45, 0.1);
    --text: #0f1b2d;
    --muted: #4f6480;
    --accent: #1544c8;
    --shadow: 0 18px 50px rgba(15, 27, 45, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  background-image:
    radial-gradient(900px 500px at 15% -10%, rgba(61, 156, 245, 0.18), transparent 60%),
    radial-gradient(700px 400px at 100% 10%, rgba(21, 68, 200, 0.22), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 72px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-art { justify-self: center; width: min(100%, 320px); filter: drop-shadow(0 20px 40px rgba(21, 68, 200, 0.45)); }
@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(60%, 220px); order: -1; }
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: var(--surface-2); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, #1a50e0, #4aa8ff); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* game card */
.game {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.game .cover { border-radius: var(--radius-s); overflow: hidden; }
.game .tag { display: inline-block; font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase; }
@media (max-width: 760px) { .game { grid-template-columns: 1fr; padding: 18px; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 22px; }
.fact h3 { margin-bottom: 6px; }
.fact p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* game page */
.cover-hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 28px 0; }
.cover-hero img { width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 24px; } }
.list { padding-left: 1.2em; }
.list li { margin-bottom: 0.4em; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery a:hover { outline: 2px solid var(--accent); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1280px); }
dialog.lightbox::backdrop { background: rgba(5, 10, 20, 0.88); }
dialog.lightbox img { border-radius: var(--radius-s); width: 100%; }
dialog.lightbox button {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* text pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer .legal { width: 100%; order: 10; font-size: 0.85rem; }
