/* Pengumi: the game's Arctic menu style (deep navy panels, ice-blue trim, orange action buttons, snow caps). */
:root {
  --navy: #0b1730;
  --navy-2: #101f40;
  --panel: #142650;
  --line: #2b4a86;
  --ice: #7fd0ff;
  --ice-2: #3aa8f2;
  --snow: #f2f8ff;
  --muted: #a9bddc;
  --orange: #ff9a1f;
  --orange-2: #f26a0a;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--snow);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }

/* ---------- top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: 68px; padding: 0 22px;
  display: flex; align-items: center; gap: 22px;
  background: rgba(11, 23, 48, 0);
  transition: background .25s, box-shadow .25s;
}
.nav.solid { background: rgba(11, 23, 48, .94); box-shadow: 0 2px 0 var(--line); backdrop-filter: blur(8px); }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 6px; margin-left: 6px; }
.nav-links a {
  font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .02em;
  padding: 8px 12px; border-radius: 10px; color: var(--muted);
}
.nav-links a:hover { color: var(--snow); background: rgba(127, 208, 255, .12); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang {
  display: flex; padding: 3px; border-radius: 999px; cursor: pointer;
  background: var(--navy-2); border: 2px solid var(--line);
  font: 700 13px var(--head); color: var(--muted);
}
.lang span { padding: 4px 10px; border-radius: 999px; }
.lang span.on { background: var(--ice-2); color: #04162f; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 250px; padding: 14px 26px; border-radius: 16px;
  font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .03em;
  text-align: center; line-height: 1.15; cursor: pointer; user-select: none;
  border: 3px solid transparent; transition: transform .12s, filter .12s;
}
.btn small { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 2px; }
.btn-play {
  color: #fff; background: linear-gradient(#ffb238, var(--orange-2));
  border-color: #ffd58a; box-shadow: 0 5px 0 #b34700, 0 12px 24px rgba(0, 0, 0, .35);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.btn-ice {
  color: #eaf6ff; background: linear-gradient(#274a8c, #152c5c);
  border-color: var(--ice-2); box-shadow: 0 5px 0 #0a1838, 0 12px 24px rgba(0, 0, 0, .35);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); }
.btn.soon { cursor: default; filter: saturate(.75); }
.btn.soon:hover { transform: none; filter: saturate(.75); }
.btn-small { min-width: 0; padding: 8px 20px; font-size: 16px; border-radius: 12px; border-width: 2px; box-shadow: 0 3px 0 #b34700; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 96px 20px 70px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(rgba(11, 23, 48, .55), rgba(11, 23, 48, .25) 35%, rgba(11, 23, 48, .92) 92%, var(--navy)),
    url("img/hero.jpg") center / cover no-repeat, linear-gradient(#1c4ea8, #2f8fe0);
}
.snow { position: absolute; inset: -20% 0 0 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 60%, transparent),
    radial-gradient(2px 2px at 140px 90px, #fff 60%, transparent),
    radial-gradient(3px 3px at 90px 160px, rgba(255,255,255,.8) 60%, transparent),
    radial-gradient(2px 2px at 220px 40px, rgba(255,255,255,.7) 60%, transparent),
    radial-gradient(3px 3px at 260px 190px, #fff 60%, transparent);
  background-size: 300px 240px; opacity: .55; animation: fall 16s linear infinite;
}
@keyframes fall { to { transform: translateY(240px); } }
.hero-inner { max-width: 880px; }
.hero-logo { width: min(520px, 82vw); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5)); }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.hero-sub { max-width: 640px; margin: 14px auto 28px; font-size: clamp(16px, 2vw, 19px); color: #d9e8ff; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-discord {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: rgba(88, 101, 242, .92); border: 2px solid #aab2ff; color: #fff;
}
.hero-discord:hover { filter: brightness(1.1); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5dff9a; box-shadow: 0 0 0 4px rgba(93, 255, 154, .25); }

/* ---------- stat strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 1080px; margin: -34px auto 0; padding: 0 20px; position: relative; z-index: 2;
}
.stat {
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px;
  padding: 18px 12px 16px; text-align: center; position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.stat::before, .mode::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -7px; height: 12px;
  border-radius: 10px 10px 8px 8px; background: linear-gradient(#fff, #cfe9ff);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}
.stat b { display: block; font: 700 clamp(22px, 3vw, 32px) var(--head); color: var(--orange); }
.stat span { color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---------- sections ---------- */
.block { padding: 84px 20px; max-width: 1180px; margin: 0 auto; }
.block-dark { max-width: none; background: #081226; border-block: 2px solid #17305f; }
.block-dark > * { max-width: 1180px; margin-inline: auto; }
.block h2 { font-size: clamp(28px, 4vw, 42px); text-align: center; }
.lead { max-width: 620px; margin: 12px auto 36px; text-align: center; color: var(--muted); font-weight: 700; }
.lead.left { margin-left: 0; text-align: left; }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 14px; }
.mode {
  position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: 14px;
  padding: 18px 14px 14px; transition: transform .12s, border-color .12s;
}
.mode:hover { transform: translateY(-3px); border-color: var(--ice); }
.mode h3 { font-size: 19px; color: var(--snow); }
.mode p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.mode .tag {
  position: absolute; top: 8px; right: 8px; font: 700 10px var(--head); letter-spacing: .08em;
  background: var(--orange); color: #3a1800; padding: 2px 6px; border-radius: 6px;
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--panel); aspect-ratio: 16 / 9; cursor: zoom-in; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 8px;
  background: rgba(8, 18, 38, .82); font: 700 13px var(--head); letter-spacing: .02em;
}
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(4, 9, 20, .92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; border-radius: 12px; border: 2px solid var(--line); }

/* ---------- penguin section ---------- */
.split { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: center; }
.split h2 { text-align: left; }
.split-art img { border-radius: 18px; border: 2px solid var(--line); width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--panel); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 800; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.500L19 7.500' fill='none' stroke='%23fff' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- community ---------- */
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.soc {
  display: block; padding: 18px; border-radius: 14px; text-align: center;
  background: var(--panel); border: 2px solid var(--line); transition: transform .12s, border-color .12s;
}
.soc:hover { transform: translateY(-3px); border-color: var(--ice); }
.soc b { display: block; font: 700 21px var(--head); }
.soc span { color: var(--muted); font-weight: 700; font-size: 14px; }
.soc-discord { background: #4954d6; border-color: #aab2ff; }
.soc-discord span { color: #e3e6ff; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 44px 20px 54px; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.foot img { margin: 0 auto 10px; border-radius: 12px; }
.foot p { margin: 4px 0; }
.foot .copy { opacity: .7; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split h2, .lead.left { text-align: center; margin-inline: auto; }
  .ticks { justify-content: center; }
}
@media (max-width: 520px) {
  .nav { padding: 0 14px; gap: 10px; }
  .nav-logo img { height: 42px; }
  .btn { min-width: 0; width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; grid-row: auto; }
  .block { padding: 60px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .snow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- text pages (privacy, terms) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 108px 20px 40px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); }
.doc h2 { font-size: 23px; margin: 34px 0 8px; color: var(--ice); }
.doc p, .doc li { color: #d5e2f7; font-weight: 600; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.doc-date { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; }
.foot-links a { color: var(--snow); text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--orange); }

/* ---------- page not found ---------- */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 30px 20px; }
.lost img { border-radius: 32px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.lost h1 { font-size: clamp(28px, 5vw, 44px); }
.lost p { color: var(--muted); font-weight: 700; max-width: 460px; margin: 0 0 12px; }
