:root {
  color-scheme: light;
  --ink: #1f2a44;
  --muted: #56637f;
  --sun: #ffd34d;
  --orange: #ff9f1c;
  --orange-ink: #3a2400;
  --sky: #bfe9ff;
  --paper: #fffaf0;
  --card: #ffffff;
  --line: #e3eef8;
  --radius: 18px;
  --shadow: 0 2px 0 rgba(31, 42, 68, 0.06), 0 10px 24px -12px rgba(31, 42, 68, 0.25);
  --font: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0, #e6f6ff 340px, var(--paper) 760px) no-repeat, var(--paper);
  min-height: 100vh;
}
a { color: #0b6bb8; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

/* header / footer */
.top, main, .foot { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; }
.lang { font-weight: 700; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.lang:hover { background: #fff; }
.foot { margin-top: 56px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.foot-brand span { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.copy { font-size: 0.85rem; margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font: 800 1rem var(--font); text-decoration: none;
  background: var(--orange); color: var(--orange-ink);
  padding: 12px 20px; border-radius: 14px; box-shadow: 0 4px 0 #d97c00;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d97c00; }
.btn.big { font-size: 1.1rem; padding: 15px 24px; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--line); border: 1px solid var(--line); padding: 9px 14px; font-size: 0.92rem; }
:focus-visible { outline: 3px solid #0b6bb8; outline-offset: 2px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; padding: 26px 0 18px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 0 0 12px; }
.hero p { font-size: 1.12rem; color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.hero-art { display: flex; justify-content: center; gap: 12px; }
.hero-art img { width: 30%; max-width: 170px; border-radius: 20px; box-shadow: var(--shadow); border: 4px solid #fff; aspect-ratio: 9 / 16; object-fit: cover; }
.hero-art img:nth-child(1) { transform: rotate(-6deg) translateY(12px); }
.hero-art img:nth-child(3) { transform: rotate(6deg) translateY(12px); }

/* game grid */
.games { padding-top: 14px; }
.games-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.games h2 { font-size: 1.45rem; margin: 0; }
.more h2 { margin: 8px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 0.95rem var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.card {
  --c: var(--orange);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform 0.12s, box-shadow 0.12s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 0 rgba(31, 42, 68, 0.06), 0 16px 30px -12px rgba(31, 42, 68, 0.35); }
.card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in srgb, var(--c) 25%, #fff); border-bottom: 4px solid var(--c); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card-title { font-weight: 800; font-size: 1.05rem; display: flex; gap: 6px; align-items: center; }
.card-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { align-self: flex-start; margin-top: auto; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--orange)) 18%, #fff); color: var(--ink); }
.tag.soft { background: #eaf6ff; }

/* game page */
.crumbs { font-size: 0.9rem; color: var(--muted); padding: 10px 0 4px; }
.crumbs a { color: var(--muted); }
.game { display: grid; grid-template-columns: minmax(0, auto) minmax(280px, 1fr); gap: 32px; align-items: start; padding: 10px 0 20px; }
.player-wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.player {
  position: relative; height: min(78vh, 820px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px);
  border-radius: 22px; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #fff);
  box-shadow: var(--shadow); border: 4px solid #fff;
}
.player img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player:fullscreen { border: 0; border-radius: 0; height: 100%; max-width: none; aspect-ratio: auto; width: 100%; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 900 1.35rem var(--font); color: var(--orange-ink); background: var(--sun);
  padding: 16px 30px; border-radius: 999px; box-shadow: 0 6px 0 #e0a800, 0 18px 40px rgba(0, 0, 0, 0.25);
}
.play-btn:hover { filter: brightness(1.05); }
.player-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.game-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 10px; display: flex; gap: 10px; align-items: center; }
.tags { display: flex; gap: 8px; margin: 0 0 14px; }
.lead { font-size: 1.15rem; margin: 0 0 22px; }
.game-info h2 { font-size: 1.15rem; margin: 0 0 8px; }
.how { margin: 0; padding-left: 20px; color: var(--muted); }
.how li { margin: 4px 0; }

/* text pages */
.prose { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); margin: 20px auto 0; box-shadow: var(--shadow); }
.prose h1 { margin-top: 0; font-size: 2rem; }
.prose h2 { font-size: 1.2rem; margin: 26px 0 6px; }
.prose p { margin: 0 0 10px; }
.prose .muted { color: var(--muted); font-size: 0.9rem; }
.prose.center { text-align: center; margin-bottom: 24px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .hero-art { display: none; }
  .game { grid-template-columns: 1fr; gap: 18px; }
  .player { height: auto; width: min(100%, 420px); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card-title { font-size: 0.95rem; }
  .card-desc { font-size: 0.8rem; -webkit-line-clamp: 2; }
  .games-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Cookie choice (Google Analytics) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; padding: 16px 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow), 0 18px 40px -16px rgba(31, 42, 68, 0.35); }
.consent p { margin: 0 0 12px; font-size: 15px; }
.consent a { color: var(--ink); font-weight: 700; }
.consent div { display: flex; gap: 10px; justify-content: flex-end; }
.consent button { font: 700 15px var(--font); padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.consent .consent-yes { background: var(--sun); border-color: var(--orange); color: var(--orange-ink); }
