:root {
  --cream: #fff6e9;
  --paper: #ffffff;
  --ink: #1d2b33;
  --muted: #5d6b72;
  --teal: #0f4c5c;
  --teal-2: #16697a;
  --orange: #f28c38;
  --orange-2: #e3672b;
  --line: #eadfce;
  --shadow: 0 10px 30px rgba(15, 76, 92, 0.12);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.65 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.2; color: var(--teal); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.2em 0 0.3em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 1.6em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 0.3em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* header */
.top { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.35rem "Fredoka", sans-serif; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: #e6f4f1; text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-weight: 700; font-size: 0.95rem; }
.nav a:hover { background: rgba(255, 255, 255, 0.12); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; border: 0; border-radius: 999px; padding: 12px 22px;
  font: 700 1rem "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(227, 103, 43, 0.3);
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }

/* hero */
.hero { background: radial-gradient(circle at 80% 20%, #ffd7ad, transparent 55%), linear-gradient(180deg, #fff1dc, var(--cream)); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.kicker { color: var(--orange-2); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: #fff; text-decoration: none; background: #0b1a33; }
.hero-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: 0.85; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(transparent, rgba(5, 12, 28, 0.85)); }
.hero-cap strong { font: 700 1.6rem "Fredoka", sans-serif; }
.hero-cap span { font-size: 0.95rem; opacity: 0.95; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.15s; }
a.card:hover { transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.soon { opacity: 0.8; }
.soon-art { aspect-ratio: 16 / 10; background: repeating-linear-gradient(45deg, #f6e8d4, #f6e8d4 12px, #f1dfc6 12px, #f1dfc6 24px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--teal); font-weight: 800; }
.soon-art .logo-mark { width: 64px; height: 64px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: #e8f3f1; color: var(--teal); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700; }

/* categories + why */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.cat:hover { border-color: var(--orange); }
.cat strong { font: 600 1.15rem "Fredoka", sans-serif; color: var(--teal); }
.cat span { color: var(--muted); font-size: 0.95rem; }
.cat em { font-style: normal; font-weight: 800; color: var(--orange-2); font-size: 0.85rem; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why div { background: var(--paper); border-radius: var(--radius); padding: 18px; }
.why h3 { margin-top: 0; }
.why p { margin: 0; color: var(--muted); }

/* game page */
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.game-head { padding-bottom: 16px; }
.player { position: relative; background: var(--game-bg, #111); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: min(86vh, 820px); min-height: 560px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player:fullscreen { border-radius: 0; height: 100%; }
.player-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.ad-slot { margin: 18px auto; text-align: center; min-height: 0; }
.prose { max-width: 820px; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mode { background: var(--paper); border-radius: 14px; padding: 14px; border: 2px solid var(--line); }
.mode strong { font: 600 1.1rem "Fredoka", sans-serif; color: var(--teal); }
.mode span { float: right; font-weight: 800; color: var(--orange-2); }
.mode p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.faq details { background: var(--paper); border-radius: 12px; padding: 12px 16px; margin: 8px 0; border: 2px solid var(--line); }
.faq summary { font-weight: 800; cursor: pointer; color: var(--teal); }
.faq p { margin: 8px 0 0; }

/* footer */
.foot { background: var(--teal); color: #d7ebe7; margin-top: 40px; padding: 32px 0 24px; }
.foot-in { display: grid; gap: 18px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand p { margin: 0; font-size: 0.9rem; }
.foot strong { color: #fff; font-family: "Fredoka", sans-serif; font-size: 1.2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: #fff; }
.copy { font-size: 0.85rem; margin: 0; opacity: 0.8; }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 24px; }
  .why { grid-template-columns: 1fr; }
  .section { padding: 24px 16px; }
  .player { height: 80vh; min-height: 520px; border-radius: 12px; }
  .top-in { padding-top: 6px; padding-bottom: 6px; }
}
