/* Layout: studio homepage — oversized headline with a playful four-dot brand motif, game grid that grows as new titles ship */
:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #16161d;
  --muted: #62626f;
  --line: #e4e3dc;
  --blue: #3355ff;
  --coral: #ff6b57;
  --sun: #ffc83d;
  --mint: #24c28a;
  --soft: #ecebe4;
  --on-accent: #ffffff;
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111116; --surface: #1b1b23; --ink: #f2f2ee; --muted: #a4a4b3; --line: #2b2b36;
    --blue: #6f86ff; --coral: #ff8474; --sun: #ffd35e; --mint: #3fd8a0; --soft: #22222c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111116; --surface: #1b1b23; --ink: #f2f2ee; --muted: #a4a4b3; --line: #2b2b36;
  --blue: #6f86ff; --coral: #ff8474; --sun: #ffd35e; --mint: #3fd8a0; --soft: #22222c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.02; letter-spacing: -.02em; }

/* Brand dots */
.dots { display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--blue); }
.dots i:nth-child(2) { background: var(--coral); }
.dots i:nth-child(3) { background: var(--sun); }
.dots i:nth-child(4) { background: var(--mint); }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-name small { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.nav nav a:hover { color: var(--ink); background: var(--soft); }

/* Hero */
.hero { padding-block: 64px 48px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(46px, 9vw, 112px); font-weight: 800; margin: 20px 0 24px; max-width: 11ch; }
.hero h1 .hl { color: var(--blue); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  background: var(--ink); color: var(--bg); padding: 14px 24px; border-radius: 999px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: var(--on-accent); }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 22px; }

/* Floating shapes */
.shapes { position: absolute; right: 20px; top: 0; width: 30%; max-width: 340px; aspect-ratio: 1; pointer-events: none; }
.shape { position: absolute; aspect-ratio: 1; border-radius: 50%; }
.shape.s1 { width: 46%; background: var(--blue); top: 4%; right: 8%; animation: bob 6s ease-in-out infinite; }
.shape.s2 { width: 30%; background: var(--sun); top: 46%; right: 50%; border-radius: 24%; transform: rotate(14deg); }
.shape.s3 { width: 22%; background: var(--coral); top: 60%; right: 6%; animation: bob 5s ease-in-out infinite .8s; }
.shape.s4 { width: 16%; background: var(--mint); top: 8%; right: 62%; border-radius: 30%; transform: rotate(-12deg); animation: bob 7s ease-in-out infinite .4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-width: 0; }
.value h3 { font-size: 20px; margin: 12px 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: 16px; }
.value .dot { width: 14px; height: 14px; border-radius: 50%; display: block; }

/* Sections */
.section { padding-block: 44px; }
.section-tight { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section h2 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

/* Games grid */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.game-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.game-top { display: flex; align-items: center; gap: 14px; }
.game-icon { flex: none; width: 72px; height: 72px; border-radius: 20px; background: var(--coral); display: grid; place-items: center; }
.game-icon svg { width: 44px; height: 44px; }
.game-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.game-icon:has(img) { background: none; }
.game-card h3 { font-size: 22px; margin: 0 0 2px; }
.game-meta { font-size: 14px; color: var(--muted); font-weight: 600; }
.game-card p { margin: 0; color: var(--muted); font-size: 16px; flex: 1; }
.game-card .btn { align-self: flex-start; font-size: 15px; padding: 11px 20px; }
.game-card.soon { background: transparent; border: 2px dashed var(--line); align-items: center; justify-content: center; text-align: center; min-height: 240px; }
.game-card.soon h3 { color: var(--muted); }

/* Contact */
.contact {
  background: var(--blue); color: var(--on-accent); border-radius: 32px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 40px; align-items: center;
}
.contact h2 { color: var(--on-accent); }
.contact p { margin: 10px 0 0; opacity: .85; }
.contact-mail {
  justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 0; max-width: 100%; text-align: center;
}
.contact-mail span { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; opacity: .85; font-weight: 700; }
.mail {
  display: inline-block; font-weight: 700; font-size: clamp(16px, 2.2vw, 20px); color: #16161d; background: #ffffff;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; user-select: all; overflow-wrap: anywhere;
}
.mail:hover { filter: brightness(.96); }

/* Contact spacing */
#contact { padding-bottom: 24px; }

/* Footer */
.footer { padding-block: 20px 36px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* Privacy page */
.doc { padding-block: 48px 56px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 800; margin: 0 0 8px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 36px 0 8px; }
.doc .updated { color: var(--muted); margin-top: 0; font-weight: 600; }
.doc li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  .shape { animation: none !important; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media (max-width: 820px) {
  .shapes { position: absolute; top: -10px; right: 20px; width: 30%; max-width: 200px; margin: 0; }
  .hero .kicker, .hero h1 { position: relative; z-index: 1; }
  .hero { padding-block: 24px 40px; }
  .values { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-mail { justify-self: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name small { display: none; }
  .nav nav a { padding: 6px 7px; font-size: 14px; }
  .hero { padding-block: 28px 36px; }
  .section { padding-block: 36px; }
  .section-tight { padding-top: 0; }
  .game-card.soon { min-height: 0; padding-block: 28px; }
  #contact { padding-bottom: 16px; }
  .shapes { top: -4px; right: 20px; width: 128px; max-width: none; }
  .nav-inner { gap: 8px; }
  .brand-name { font-size: 18px; }
  .nav nav { gap: 0; }
  .kicker { font-size: 12px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); margin: 16px 0 18px; }
  .lead { font-size: 16px; margin-bottom: 24px; }
}
