:root {
  --yellow: #f2c81b;      /* logo yellow */
  --yellow-hi: #ffd93d;
  --ink: #231f20;         /* logo black */
  --ink-2: #322d2e;
  --ink-soft: #4b3f12;    /* muted text on yellow */
  --cream: #f6edcb;       /* body text on black */
  --line: 3px;
  --shadow: 8px 8px 0 var(--ink);
  --max: 1120px;
  --display: "Fredoka", "Quicksand", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font: 500 16px/1.65 "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Deco frame: heavy border, hard shadow, bracket corners */
.frame {
  --fc: var(--ink);
  position: relative;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
}
.frame::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  --l: 26px; --t: 3px;
  background:
    linear-gradient(var(--fc), var(--fc)) top left / var(--l) var(--t),
    linear-gradient(var(--fc), var(--fc)) top left / var(--t) var(--l),
    linear-gradient(var(--fc), var(--fc)) top right / var(--l) var(--t),
    linear-gradient(var(--fc), var(--fc)) top right / var(--t) var(--l),
    linear-gradient(var(--fc), var(--fc)) bottom left / var(--l) var(--t),
    linear-gradient(var(--fc), var(--fc)) bottom left / var(--t) var(--l),
    linear-gradient(var(--fc), var(--fc)) bottom right / var(--l) var(--t),
    linear-gradient(var(--fc), var(--fc)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  outline: 1px solid color-mix(in srgb, var(--fc) 35%, transparent);
  outline-offset: -6px;
}
.spark { display: block; font-size: 1.5rem; line-height: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--yellow);
  border-bottom: var(--line) solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { align-self: stretch; display: flex; align-items: center; padding: 0 12px; background: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 10px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav .nav-play { padding: 6px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--yellow); }
.nav .nav-play:hover { text-decoration: none; background: transparent; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 24px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--yellow);
  font-family: var(--display); font-weight: 600; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn.ghost { background: var(--yellow); color: var(--ink); }
.btn.light { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 4px 4px 0 var(--yellow-hi); }
.btn.light:hover { box-shadow: 6px 6px 0 var(--yellow-hi); }

/* Hero: art panel + text panel */
main section { scroll-margin-top: 96px; }
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr;
  margin: 48px 0 64px;
  background: var(--yellow);
}
.hero-art {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 12px 76px;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(242, 200, 27, .22), transparent 70%),
    var(--ink);
  border-right: var(--line) solid var(--ink);
  overflow: hidden;
}
.hero-text { padding: 56px 48px 52px; }
.hero h1 { margin: 0 0 24px; font-size: clamp(3rem, 6.4vw, 5.2rem); line-height: .95; text-transform: uppercase; font-weight: 700; }
.hero-text p { margin: 0 0 16px; color: var(--ink-soft); }
.hero-text p.strong { color: var(--ink); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Showcase banner (fanned game cards) */
.showcase { display: flex; justify-content: center; align-items: flex-start; }
.show-card {
  position: relative; flex: 0 0 auto;
  width: clamp(112px, 12.5vw, 150px); aspect-ratio: 9 / 16;
  margin-inline: -12px;
  border: 2px solid var(--yellow); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform .2s ease;
}
.show-card.front { z-index: 1; width: clamp(124px, 14vw, 168px); }
.show-card:hover { z-index: 2; transform: translateY(calc(var(--y) - 10px)) rotate(0deg) scale(1.04); }
.show-card .shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-card .label {
  position: absolute; left: 7px; right: 7px; bottom: 7px;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 4px; border-radius: 999px;
  background: var(--ink); color: var(--yellow);
  font-family: var(--display); font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.show-card .label img { width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto; }

/* Section band */
.band {
  --fc: var(--yellow);
  padding: 36px 24px 40px; margin-bottom: 36px;
  background: var(--ink); color: var(--yellow); text-align: center;
}
.band h2 { margin: 10px 0 0; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 32px; }
.game {
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--cream);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.cover { position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 9; border: 2px solid var(--yellow); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.game:hover .cover img { transform: scale(1.04); }
.cover .new {
  position: absolute; top: 12px; left: 12px;
  padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
}
.game-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.game-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.game-head img { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 16px; border: 2px solid var(--yellow); background: var(--ink-2); }
.game h3 { margin: 0; color: var(--yellow); font-size: 1.35rem; line-height: 1.2; }
.game .tag { margin-bottom: 4px; color: var(--cream); opacity: .75; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.game p { flex: 1; margin: 0 0 18px; font-size: .95rem; }
.game-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.game .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.game .meta li { padding: 1px 10px; border: 1px solid rgba(242, 200, 27, .45); border-radius: 999px; font-size: .8rem; }
.game .cta {
  padding: 7px 16px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .92rem;
}

/* Follow / Contact */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 72px 0 64px; }
.panel { padding: 44px 40px 48px; background: var(--yellow); }
.panel + .panel { border-left: 0; }
.panel h2 { margin: 12px 0 10px; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }
.panel p { margin: 0 0 22px; color: var(--ink-soft); }
.panel.dark { --fc: var(--yellow); background: var(--ink); color: var(--yellow); }
.panel.dark p { color: var(--cream); }
.mail { font-family: var(--display); font-size: clamp(1.1rem, 2.6vw, 1.45rem); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; word-break: break-all; }

/* Footer */
.site-footer { background: var(--ink); color: var(--yellow); padding: 26px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Policy page */
.doc { margin: 48px 0 72px; padding: 48px 52px; max-width: 860px; background: var(--yellow); }
.doc h1 { margin: 0 0 28px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; }
.doc p, .doc ul { color: var(--ink-soft); }
.doc strong { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { order: -1; padding: 44px 32px 40px; }
  .hero-art { border-right: 0; border-top: var(--line) solid var(--ink); }
  .show-card { width: clamp(112px, 22vw, 150px); }
  .show-card.front { width: clamp(124px, 24vw, 166px); }
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .panel + .panel { border-left: var(--line) solid var(--ink); }
}

@media (max-width: 640px) {
  .site-header .wrap { height: 64px; }
  .brand img { width: 42px; height: 42px; }
  .nav { gap: 14px; }
  .nav a { font-size: .92rem; }
  .nav .nav-play { display: none; }
  .hero { margin: 28px 0 48px; }
  .hero-text { padding: 36px 24px 32px; }
  .hero-art { padding: 16px; }
  .showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
  .show-card, .show-card.front { width: auto; margin: 0; transform: none; aspect-ratio: 3 / 4; border-radius: 12px; }
  .show-card:hover { transform: none; }
  .show-card .label { right: auto; max-width: calc(100% - 14px); }
  .band { padding: 28px 16px 30px; }
  .games { gap: 24px; }
  .game-body { padding: 18px 18px 20px; }
  .game-head img { width: 60px; height: 60px; border-radius: 13px; }
  .panel { padding: 36px 26px 40px; }
  .doc { padding: 32px 22px; }
  :root { --shadow: 6px 6px 0 var(--ink); }
}
