/* =========================================================
   KoyoTap official site — shared styles
   Brand palette: blue / red / yellow / green offset tiles
   ========================================================= */

:root {
  --c-blue: #2f7bff;
  --c-red: #ff4a3d;
  --c-yellow: #ffd23f;
  --c-green: #22b573;

  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --text: #14161a;
  --text-muted: #5a6070;
  --text-faint: #8b91a0;
  --border: #e4e6eb;
  --border-strong: #d3d7df;
  --shadow: 0 1px 2px rgba(16, 20, 30, .04), 0 8px 24px rgba(16, 20, 30, .06);
  --shadow-lift: 0 2px 4px rgba(16, 20, 30, .05), 0 16px 40px rgba(16, 20, 30, .10);
  --header-bg: rgba(255, 255, 255, .82);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;

  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f13;
    --bg-alt: #12151a;
    --surface: #161a20;
    --surface-2: #1a1f26;
    --text: #eef0f4;
    --text-muted: #a4abba;
    --text-faint: #767e8e;
    --border: #252a33;
    --border-strong: #333a45;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
    --header-bg: rgba(13, 15, 19, .82);
  }
}

:root[data-theme="dark"] {
  --bg: #0d0f13;
  --bg-alt: #12151a;
  --surface: #161a20;
  --surface-2: #1a1f26;
  --text: #eef0f4;
  --text-muted: #a4abba;
  --text-faint: #767e8e;
  --border: #252a33;
  --border-strong: #333a45;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
  --header-bg: rgba(13, 15, 19, .82);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- language switching ---------- */
/* [data-lang] is set on <html> before first paint by an inline script. */
html[data-lang="ja"] [data-l="en"] { display: none !important; }
html[data-lang="en"] [data-l="ja"] { display: none !important; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 44px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-blue);
}

h1, h2, h3 { line-height: 1.4; letter-spacing: 0; }

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -.01em;
}

.brand svg { display: block; width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s ease;
}

.nav-links a:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-switch button {
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 20, 30, .12);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 620px;
  height: 620px;
  background:
    radial-gradient(circle at 30% 30%, rgba(47, 123, 255, .16), transparent 62%),
    radial-gradient(circle at 70% 60%, rgba(34, 181, 115, .12), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.22;
}

.hero .lead {
  margin: 0 0 16px;
  max-width: 34em;
  color: var(--text);
  font-size: clamp(16px, 1.6vw, 18px);
}

.hero .sub {
  margin: 0;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--text-faint);
  box-shadow: var(--shadow);
}

.button--primary {
  border-color: transparent;
  background: var(--c-blue);
  color: #fff;
}

.button--primary:hover { border-color: transparent; background: #2468e0; }

.button--play {
  border-color: rgba(34, 181, 115, .46);
  color: #168152;
}

.button--play:hover { border-color: var(--c-green); color: #126c45; }

/* hero artwork: four offset brand tiles */
.hero-art { justify-self: center; width: min(100%, 320px); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .tile-shape { animation: drift 7s ease-in-out infinite; }
.hero-art .tile-shape:nth-child(2) { animation-delay: -1.4s; }
.hero-art .tile-shape:nth-child(3) { animation-delay: -2.8s; }
.hero-art .tile-shape:nth-child(4) { animation-delay: -4.2s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .tile-shape { animation: none; }
  .button:hover { transform: none; }
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 3px;
  height: 26px;
  border-radius: 0 3px 3px 0;
  background: var(--accent, var(--c-blue));
}

.card:nth-child(4n+1) { --accent: var(--c-blue); }
.card:nth-child(4n+2) { --accent: var(--c-red); }
.card:nth-child(4n+3) { --accent: var(--c-yellow); }
.card:nth-child(4n+4) { --accent: var(--c-green); }

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 28px;
}

.step {
  position: relative;
  padding: 0 18px 0 0;
}

.step::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 28px;
  right: 0;
  height: 2px;
  background: var(--border-strong);
}

.step:last-child::after { display: none; }

.step-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--step-color, var(--c-blue));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.step:nth-child(1) .step-dot { --step-color: var(--c-blue); }
.step:nth-child(2) .step-dot { --step-color: var(--c-red); }
.step:nth-child(3) .step-dot { --step-color: var(--c-yellow); color: #14161a; }
.step:nth-child(4) .step-dot { --step-color: var(--c-green); }
.step:nth-child(5) .step-dot { --step-color: var(--c-blue); }

.step h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.step p {
  margin: 0;
  padding-right: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--c-green);
  border-radius: var(--radius);
}

.callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.callout strong { color: var(--text); }

/* ---------- info table ---------- */
.info {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.info-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-top: 1px solid var(--border);
}

.info-row:first-child { border-top: 0; }

.info dt {
  padding: 18px 22px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.info dd {
  margin: 0;
  padding: 18px 22px;
  font-size: 15px;
}

.info dd .romaji {
  margin-left: 10px;
  color: var(--text-faint);
  font-size: 13px;
}

.info a { text-decoration-color: var(--border-strong); text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 36px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.contact-band h2 { margin-bottom: 10px; font-size: clamp(21px, 2.6vw, 26px); }

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 15px;
}

.contact-list li { position: relative; padding-left: 18px; }

.contact-list li::before {
  content: "";
  position: absolute;
  top: .8em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--c-blue);
}

.contact-list li:nth-child(2)::before { background: var(--c-red); }
.contact-list li:nth-child(3)::before { background: var(--c-green); }

.mail-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease;
}

.mail-button:hover { opacity: .86; }

/* ---------- long-form content (privacy policy etc.) ---------- */
.page-title {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-title h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-title p { margin: 0; color: var(--text-muted); font-size: 15px; }

.prose {
  max-width: 760px;
  padding: 52px 0 72px;
}

.prose h2 {
  margin: 44px 0 14px;
  padding-top: 4px;
  font-size: 19px;
}

.prose h2:first-of-type { margin-top: 0; }

.prose p { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-muted); font-size: 15px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--c-blue); }

.prose .note {
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: start; width: min(100%, 240px); }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .step { padding-right: 0; }
  .step::after { display: none; }
  .contact-band { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 68px 0 64px; }
  .nav-links a { display: none; }
  .nav-links a.nav-keep { display: inline; }
  .info-row { grid-template-columns: 1fr; }
  .info dt { padding-bottom: 4px; background: var(--surface); }
  .info dd { padding-top: 0; }
  .contact-band { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .pipeline { grid-template-columns: 1fr; gap: 24px; }
  .container { padding-inline: 18px; }
}

/* ---------- public games area ------------------------------------------- */
[hidden] { display: none !important; }

.play-body { overflow-x: hidden; }

.nav-links a.nav-play {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.play-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 123, 255, .10), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(255, 210, 63, .11), transparent 28%);
}

.play-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: 52px;
  align-items: center;
}

.play-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(35px, 5vw, 56px);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.play-hero .lead {
  max-width: 35em;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.play-hero-art {
  justify-self: center;
  width: min(100%, 230px);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-lift);
  transform: rotate(3deg);
}

:root[data-theme="dark"] .play-hero-art { background: rgba(22, 26, 32, .78); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .play-hero-art { background: rgba(22, 26, 32, .78); }
}

.play-hero-art svg { display: block; width: 100%; height: auto; }

.play-hero-art .tile {
  transform-origin: center;
  animation: play-tile-drift 6s ease-in-out infinite;
}

.play-hero-art .tile:nth-child(2) { animation-delay: -1.5s; }
.play-hero-art .tile:nth-child(3) { animation-delay: -3s; }
.play-hero-art .tile:nth-child(4) { animation-delay: -4.5s; }

@keyframes play-tile-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.play-games-section {
  position: relative;
  padding-top: 48px;
}

.play-games-section .section-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.play-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.game-card:focus-visible { outline-offset: -3px; }

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #10101d;
}

.game-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform .25s ease;
}

.game-card:nth-child(2) .game-card-media img { object-position: center 16%; }
.game-card:hover .game-card-media img { transform: scale(1.025); }

.game-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(7, 9, 18, .55));
  pointer-events: none;
}

.game-card-play {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  color: #14161a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
}

.game-card-play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--c-blue);
}

.game-card-body { padding: 24px 24px 26px; }

.game-card-body h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.8vw, 25px);
  font-weight: 800;
}

.game-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.game-card-body::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--c-blue);
}

.game-card:nth-child(2) .game-card-body::before { background: var(--c-red); }

.play-support-note {
  max-width: 680px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- individual game wrapper ------------------------------------ */
.play-game-main {
  min-height: calc(100svh - 66px);
  padding: 38px 0 64px;
}

.play-game-container { max-width: 1040px; }

.play-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--text-faint);
  font-size: 13px;
}

.play-breadcrumb a { color: var(--text-muted); text-underline-offset: 3px; }

.play-game-head {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.play-game-head h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.02em;
}

.play-game-head p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.play-stage { max-width: 520px; margin: 0 auto; }

.play-poster,
.play-frame-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: #0d0b1b;
  box-shadow: var(--shadow-lift);
}

.play-poster {
  aspect-ratio: 3 / 4;
}

.play-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.play-poster--cube img { object-position: center 10%; }

.play-poster::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(7, 7, 20, .82));
  pointer-events: none;
}

.play-poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  text-align: center;
}

.play-poster-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.5;
  order: 2;
}

.play-start-button {
  flex: 0 0 auto;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #14161a;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  order: 1;
}

.play-start-button::before {
  content: "";
  display: inline-block;
  margin-right: 9px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--c-blue);
  vertical-align: -1px;
}

.play-start-button:hover { background: #f3f6ff; }

.play-frame-wrap {
  margin: 0 auto;
  scroll-margin-top: 82px;
}

.play-frame-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.play-frame-toolbar button,
.play-retry {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.play-frame-toolbar button:hover,
.play-retry:hover { border-color: var(--text-faint); color: var(--text); }

.play-frame-shell {
  height: min(760px, calc(100svh - 158px));
  min-height: 520px;
}

.play-frame-shell--fallback-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100svh;
  min-height: 0;
  border-radius: 0;
}

.play-frame-wrap--fallback-fullscreen .play-frame-toolbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 16px;
  z-index: 101;
}

.play-fallback-fullscreen { overflow: hidden; }

.play-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0d0b1b;
}

.play-status {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.play-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 14px;
}

.play-controls p { margin: 0; }

.play-controls a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 3px;
}

.play-settings {
  margin-top: 28px;
  text-align: center;
}

.play-settings button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.analytics-consent-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lift);
}

.analytics-consent-dialog::backdrop { background: rgba(8, 12, 22, .62); }

.analytics-consent-content { position: relative; padding: 30px; }

.analytics-consent-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.analytics-consent-close:hover { background: var(--bg-alt); color: var(--text); }

.analytics-consent-dialog h2 {
  margin: 0 48px 12px 0;
  font-size: clamp(22px, 3vw, 28px);
}

.analytics-consent-dialog p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.analytics-consent-dialog p a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.analytics-consent-actions button {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.analytics-consent-actions button:hover { border-color: var(--c-blue); background: var(--bg-alt); }

[data-consent-mode="play"] [data-consent-copy="settings"],
[data-consent-mode="settings"] [data-consent-copy="play"] { display: none !important; }

.play-footer-note {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .play-hero-art .tile { animation: none; }
  .game-card { transition: none; }
  .game-card:hover { transform: none; }
  .game-card-media img { transition: none; }
}

@media (max-width: 760px) {
  .play-hero { padding: 20px 0 18px; }
  .play-hero-grid { display: block; }
  .play-hero-art { display: none; }
  .play-hero h1 { margin-bottom: 9px; font-size: clamp(32px, 9vw, 42px); }
  .play-hero .lead { font-size: 14px; line-height: 1.6; }
  .play-games-section { padding-top: 18px; }
  .play-games-grid { grid-template-columns: 1fr; }
  .play-frame-shell {
    height: min(720px, calc(100svh - 144px));
    min-height: 500px;
  }
}

@media (max-width: 720px) {
  .play-body .nav-links a.nav-contact { display: none; }
}

@media (max-width: 480px) {
  .play-game-main { padding-top: 18px; }
  .play-breadcrumb { margin-bottom: 14px; }
  .play-game-head { margin-bottom: 16px; }
  .play-game-head h1 { margin-bottom: 7px; font-size: 30px; }
  .play-game-head p:not(.eyebrow) { font-size: 14px; }
  .play-games-section { padding-top: 16px; }
  .play-poster { aspect-ratio: 4 / 5; }
  .play-poster,
  .play-frame-shell { border-radius: 18px; }
  .play-poster-overlay { padding: 16px; }
  .play-poster-overlay p { max-width: 12em; }
  .play-start-button { padding: 12px 17px; font-size: 14px; }
  .play-frame-shell { min-height: 470px; }
  .play-controls { align-items: flex-start; flex-direction: column; }
  .analytics-consent-content { padding: 26px 20px 20px; }
  .analytics-consent-actions { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
}
