/* Whalefall Games — site styles */

:root {
  --ink: #0e2235;
  --ink-2: #4b5d6e;
  --ink-3: #7a8a99;
  --bg: #f5f7f8;
  --bg-tint: #ebf2f3;
  --surface: #ffffff;
  --line: #dde5e9;
  --accent: #1f8a8c;
  --accent-hover: #187476;
  --accent-soft: #e2f1f0;
  --coral: #e2826a;
  --coral-soft: #fbeae5;
  --deep: #0f2a44;
  --deep-2: #163a5a;
  --on-deep: #e8f0f5;
  --on-deep-2: #a9bccb;
  --danger: #c2453a;
  --success: #1f8a5c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 34, 53, .06), 0 2px 8px rgba(14, 34, 53, .04);
  --shadow: 0 2px 6px rgba(14, 34, 53, .05), 0 12px 32px rgba(14, 34, 53, .08);

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-head); letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .1s ease-out;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost-light { border-color: rgba(232, 240, 245, .35); color: var(--on-deep); }
.btn-ghost-light:hover { border-color: rgba(232, 240, 245, .7); background: rgba(232, 240, 245, .06); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--on-deep);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(14, 34, 53, .06);
  transition: opacity .25s ease;
}
.site-header.is-solid { color: var(--ink); }
.site-header.is-solid::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--font-head); letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 22px; height: 22px; }
.logo small { display: block; font: 500 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-top: 4px; }

.nav { display: none; }
.nav a { font-size: 15px; font-weight: 500; opacity: .82; transition: opacity .2s ease; }
.nav a:hover { opacity: 1; }
.header-cta { display: none; }

.burger {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; margin-right: -8px;
}
.burger span { position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color .2s ease; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: rotate(45deg); }
.nav-open .burger span::after { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
  background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 24px;
  transform-origin: top right;
  opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
}
.mobile-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 17px/1.2 var(--font-head); }
.mobile-nav .btn { width: 100%; margin-top: 20px; }
.nav-open .mobile-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s; }
.nav-open .site-header { color: var(--ink); }
.nav-open .site-header::before { opacity: 1; }

@media (min-width: 1025px) {
  .nav { display: flex; gap: 32px; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 40px;
  background: linear-gradient(160deg, var(--deep-2), var(--deep) 60%);
  color: var(--on-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 42, 68, .35) 0%, rgba(15, 42, 68, .45) 25%, rgba(15, 42, 68, .82) 50%, rgba(15, 42, 68, .94) 75%, var(--deep) 100%);
}
.hero-content { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.hero .eyebrow { color: #8fd3cf; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 7.2vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: #8fd3cf; }
.hero-lead { margin-top: 20px; max-width: 560px; font-size: clamp(1.02rem, 2.2vw, 1.18rem); line-height: 1.6; color: var(--on-deep-2); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }

.hero-pillars {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(232, 240, 245, .14);
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.hero-pillars li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--on-deep); }
.hero-pillars .ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(143, 211, 207, .12); color: #8fd3cf; display: grid; place-items: center; flex: none; }
.hero-pillars .ico svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .hero { align-items: center; padding-bottom: 56px; }
  .hero::after {
    background: linear-gradient(90deg, rgba(15, 42, 68, .94) 0%, rgba(15, 42, 68, .82) 34%, rgba(15, 42, 68, .25) 64%, rgba(15, 42, 68, .1) 100%),
                linear-gradient(180deg, transparent 70%, rgba(15, 42, 68, .7) 100%);
  }
  .hero-pillars { grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); }
.section-white { background: var(--surface); }
@media (min-width: 1025px) { .section { padding: 120px 0; } }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2, .h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
}
.section-head p { margin-top: 16px; font-size: 1.06rem; color: var(--ink-2); }
@media (min-width: 1025px) { .section-head { margin-bottom: 56px; } }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-row > div { max-width: 640px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
.about-copy p { color: var(--ink-2); font-size: 1.06rem; }
.about-copy p + p { margin-top: 16px; }
.about-facts { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-facts li { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about-facts strong { display: block; font: 700 1.05rem/1.25 var(--font-head); letter-spacing: -.01em; }
.about-facts span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }

.about-cards { display: grid; gap: 16px; }
.about-card {
  padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: start;
}
.about-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.about-card .ico.coral { background: var(--coral-soft); color: var(--coral); }
.about-card .ico svg { width: 24px; height: 24px; }
.about-card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.about-card p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.about-card .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }

@media (min-width: 1025px) {
  .about-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
}

/* ---------- Games carousel ---------- */
.carousel-controls { display: none; gap: 10px; flex: none; }
@media (min-width: 768px) { .carousel-controls { display: flex; } }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, opacity .2s ease, transform .1s ease-out;
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink-3); }
.icon-btn:active:not(:disabled) { transform: scale(.94); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; }

.carousel { position: relative; }
.games-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.games-track::-webkit-scrollbar { display: none; }
@media (min-width: 1264px) {
  .games-track { padding-inline: calc((100vw - var(--container)) / 2); margin-inline: calc((100vw - var(--container)) / -2); scroll-padding-inline: calc((100vw - var(--container)) / 2); }
}

.game-card {
  flex: 0 0 86%; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
@media (min-width: 768px) { .game-card { flex-basis: 64%; } .games-track { gap: 24px; } }
@media (min-width: 1025px) { .game-card { flex-basis: 760px; flex-direction: row; } }

.game-cover { position: relative; aspect-ratio: 3 / 2; background: var(--bg-tint); overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.game-card:hover .game-cover img { transform: scale(1.03); }
@media (min-width: 1025px) { .game-cover { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; } }

.status {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status.soft::before { background: #d9a43a; }
.status.dev::before { background: var(--coral); }

.game-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 1025px) { .game-body { padding: 32px; } }
.game-body .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.game-body h3 { margin-top: 14px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.game-body p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.game-meta { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game-meta div { padding-top: 14px; border-top: 1px solid var(--line); }
.game-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.game-meta dd { margin: 4px 0 0; font-weight: 600; font-size: 14.5px; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer;
  transition: width .3s var(--ease-out), background-color .2s ease;
}
.dots button[aria-current="true"] { width: 28px; background: var(--accent); }
.dots button::after { content: ""; display: block; margin: -12px; height: 32px; } /* larger hit area */

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 10px 18px; }
.member-photo { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #dfe8ec, #c9d7de); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin: 16px 8px 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.member .role { margin: 4px 8px 0; font-size: 14px; color: var(--accent); font-weight: 600; }
.member .bio { margin: 10px 8px 0; font-size: 14px; color: var(--ink-2); display: none; }
@media (min-width: 768px) {
  .member { padding: 12px 12px 22px; }
  .member h3 { font-size: 1.15rem; }
  .member .bio { display: block; }
}

/* ---------- Process ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num { font: 700 13px/1 var(--font-head); color: var(--accent); letter-spacing: .08em; }
.step h3 { margin-top: 14px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.step .dur { margin-top: 16px; display: inline-flex; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step::after {
    content: ""; position: absolute; top: 34px; right: -20px; width: 20px; height: 1px; background: var(--line);
  }
  .step:last-child::after { display: none; }
}

.principles { margin-top: 48px; display: grid; gap: 24px; padding: 32px 24px; border-radius: var(--radius-lg); background: var(--deep); color: var(--on-deep); }
.principles h3 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.principles h3 svg { width: 20px; height: 20px; color: #8fd3cf; flex: none; }
.principles p { margin-top: 8px; font-size: 14.5px; color: var(--on-deep-2); }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(3, 1fr); padding: 40px; gap: 40px; } }

/* ---------- Partner / form ---------- */
.partner-grid { display: grid; gap: 40px; }
@media (min-width: 1025px) { .partner-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.partner-copy p.lead { margin-top: 16px; font-size: 1.06rem; color: var(--ink-2); }
.offer-list { margin-top: 28px; display: grid; gap: 14px; }
.offer-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.offer-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.contact-line { margin-top: 32px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.contact-line a { color: var(--accent); font-weight: 600; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  appearance: none; -webkit-appearance: none;
}
.field textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234b5d6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c5d1d8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(31, 138, 140, .12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fff; }
.field .error { display: none; margin-top: 6px; font-size: 13px; color: var(--danger); }
.field.invalid .error { display: block; }

.field .check { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.field .check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; padding: 0; flex: none; margin: 1px 0 0; border: 1.5px solid #b9c7cf; border-radius: 6px; box-shadow: none; background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field.invalid .check input { border-color: var(--danger); }

.form-footer { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.form-footer .btn { width: 100%; height: 52px; }
.form-note { font-size: 13px; color: var(--ink-3); text-align: center; }
@media (min-width: 768px) { .form-footer { flex-direction: row; align-items: center; justify-content: space-between; } .form-footer .btn { width: auto; } .form-note { text-align: left; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
@media (min-width: 768px) { .toast-region { left: auto; right: 24px; bottom: 24px; align-items: flex-end; } }
.toast {
  pointer-events: auto; width: 100%; max-width: 420px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 16px 16px 16px 18px; border-radius: 16px;
  background: var(--ink); color: #fff; box-shadow: 0 12px 40px rgba(14, 34, 53, .28);
  transform: translateY(16px); opacity: 0;
  transition: transform .35s var(--ease-out), opacity .25s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast .t-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 201, 160, .18); color: #6fdcb7; }
.toast.error .t-ico { background: rgba(226, 130, 106, .2); color: #f2a08b; }
.toast .t-ico svg { width: 18px; height: 18px; }
.toast strong { display: block; font: 700 15px/1.3 var(--font-head); }
.toast p { margin-top: 4px; font-size: 14px; color: #b9c7d3; line-height: 1.45; }
.toast button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #b9c7d3; cursor: pointer; display: grid; place-items: center; margin: -4px -6px 0 0; }
.toast button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.toast button svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1025px) { .footer-grid { grid-template-columns: 1.3fr .7fr .7fr 1.3fr; gap: 48px; } }
.site-footer .logo { color: #fff; }
.footer-about p { margin-top: 18px; max-width: 320px; line-height: 1.6; }
.footer-about .mail { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer-about .mail svg { width: 18px; height: 18px; color: #8fd3cf; }
.footer-col h4 { font: 600 12.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col li + li { margin-top: 12px; }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.company-details { margin: 0; display: grid; gap: 10px; max-width: 300px; font-size: 13.5px; line-height: 1.5; }
.company-details dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7f97ab; }
.company-details dd { margin: 2px 0 0; color: var(--on-deep-2); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; color: #7f97ab; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: calc(var(--header-h) + 56px) 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); }
.legal-hero .eyebrow { color: var(--accent); }
.legal-hero h1 { margin-top: 14px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.legal-hero p { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.legal-layout { display: grid; gap: 32px; padding: 48px 0 96px; }
@media (min-width: 1025px) { .legal-layout { grid-template-columns: 260px 1fr; gap: 64px; padding-top: 64px; } }
.toc { display: none; }
@media (min-width: 1025px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .toc h2 { font: 600 12.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
  .toc a { display: block; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
  .toc a:hover { color: var(--accent); }
}
.legal-body { max-width: 760px; }
.legal-body section + section { margin-top: 40px; }
.legal-body h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; }
.legal-body h3 { margin-top: 20px; font-size: 1.05rem; font-weight: 700; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-body p { margin-top: 12px; }
.legal-body ul { margin-top: 12px; padding-left: 0; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 22px; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--ink); }
.legal-card { margin-top: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legal-card p { margin-top: 0; }
.legal-card p + p { margin-top: 6px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .06s; }
.js [data-reveal-delay="2"] { transition-delay: .12s; }
.js [data-reveal-delay="3"] { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { transform: none; transition: opacity .2s ease; }
  .toast { transform: none; transition: opacity .2s ease; }
  .mobile-nav { transform: none; }
  .game-card:hover .game-cover img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
