:root {
  --bg: #edf6ff;
  --bg-soft: #f7fbff;
  --panel: rgba(255,255,255,0.96);
  --panel-strong: #ffffff;
  --panel-dark: #0f2f58;
  --text: #123457;
  --text-soft: #284c74;
  --muted: #5d7ea4;
  --muted-2: #7c95b2;
  --line: rgba(20,79,152,.12);
  --line-strong: rgba(20,79,152,.18);
  --brand: #ffd54b;
  --brand-2: #ffea8e;
  --brand-ink: #6f5300;
  --blue: #1f76ea;
  --blue-dark: #0f4f9f;
  --blue-soft: #dceeff;
  --success: #0f9d58;
  --success-bg: #edfdf4;
  --warning: #ad7d00;
  --warning-bg: #fff7db;
  --error: #b42318;
  --error-bg: #fef3f2;
  --shadow: 0 18px 50px rgba(19, 71, 144, 0.12);
  --shadow-sm: 0 10px 24px rgba(19, 71, 144, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(255,213,75,.22), transparent 18%),
    radial-gradient(circle at 90% 15%, rgba(31,118,234,.12), transparent 21%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 38%, #f8fbff 100%);
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
strong, h1, h2, h3, h4 { letter-spacing: -.02em; }
h1, h2, h3, h4, p { margin-top: 0; }

.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }
.page-shell { padding: 2rem 0 4rem; }
.page-bubbles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bubble {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.88), rgba(255,255,255,.16));
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 0 20px rgba(255,255,255,.35);
  animation: floatBubble 14s linear infinite;
}
.b1 { width: 88px; height: 88px; left: 5%; bottom: -90px; animation-duration: 18s; }
.b2 { width: 42px; height: 42px; left: 22%; bottom: -60px; animation-duration: 12s; animation-delay: 2s; }
.b3 { width: 64px; height: 64px; right: 12%; bottom: -100px; animation-duration: 16s; animation-delay: 4s; }
.b4 { width: 28px; height: 28px; right: 32%; bottom: -60px; animation-duration: 10s; animation-delay: 1s; }
.b5 { width: 52px; height: 52px; left: 65%; bottom: -80px; animation-duration: 20s; animation-delay: 3s; }
@keyframes floatBubble {
  from { transform: translateY(0) scale(1); opacity: .45; }
  to { transform: translateY(-120vh) scale(1.18); opacity: .04; }
}

.utility-bar {
  background: linear-gradient(90deg, rgba(15,79,159,.94), rgba(31,118,234,.92));
  color: rgba(255,255,255,.92);
  font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.utility-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.utility-points, .utility-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.utility-point {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.84));
  border-bottom: 1px solid rgba(20,79,152,.08);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 82px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-weight: 900;
  color: var(--blue-dark);
}
.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--brand), #fff4a8);
  box-shadow: 0 12px 24px rgba(255,213,75,.34);
  font-size: 1.35rem;
}
.brand-text strong,
.brand-text small { display: block; }
.brand-text strong { font-size: 1.08rem; }
.brand-text small { color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; }
.nav nav { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-link, .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .72rem .95rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.nav-link:hover, .link-button:hover { background: rgba(20,79,152,.06); color: var(--blue-dark); }
.nav-link.active {
  background: rgba(20,79,152,.08);
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 1px rgba(20,79,152,.08);
}
.inline-form { display: inline; }
.link-button { background: none; border: 0; cursor: pointer; }
.admin-subnav { padding: .8rem 0 1rem; border-top: 1px solid rgba(20,79,152,.08); }
.admin-subnav-inner { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .95rem;
  background: rgba(20,79,152,.06);
  border: 1px solid rgba(20,79,152,.08);
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
}
.admin-chip.active { background: rgba(31,118,234,.12); color: var(--blue-dark); border-color: rgba(31,118,234,.16); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr .92fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,248,255,.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right top, rgba(31,118,234,.1), transparent 35%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .94; max-width: 10ch; margin: .75rem 0 1rem; }
.hero-copy { max-width: 62ch; font-size: 1.04rem; }
.hero-card, .panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card, .panel { padding: 1.4rem; }
.card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(19,71,144,.14); }
.card img, .detail-image { width: 100%; height: 260px; object-fit: cover; }
.card-body { padding: 1.1rem 1.1rem 1.25rem; }
.hero-rubber-duck { position: relative; overflow: hidden; }
.duck-side-panel { position: relative; overflow: hidden; }
.duck-side-panel::after { content: "🦆"; position: absolute; right: 1rem; bottom: .8rem; font-size: 3.8rem; opacity: .1; transform: rotate(-14deg); }
.duck-illustration {
  position: relative;
  min-height: 250px;
  border-radius: 24px;
  background: linear-gradient(180deg, #d8ecff, #9fd4ff 65%, #72baf8 66%, #4f9ef1 100%);
  margin-bottom: 1rem;
  box-shadow: inset 0 -12px 30px rgba(0,0,0,.08);
}
.duck-body, .duck-head, .duck-beak, .duck-eye, .duck-bubble { position: absolute; }
.duck-body { width: 150px; height: 105px; left: 72px; top: 95px; background: #ffd43b; border-radius: 48% 52% 46% 54%; box-shadow: inset -10px -12px 0 rgba(0,0,0,.04); }
.duck-head { width: 76px; height: 76px; left: 162px; top: 56px; background: #ffd43b; border-radius: 50%; }
.duck-beak { width: 34px; height: 22px; left: 223px; top: 88px; background: #ff8a3d; border-radius: 46% 54% 50% 50%; }
.duck-eye { width: 9px; height: 9px; left: 208px; top: 82px; background: #16375f; border-radius: 50%; }
.duck-bubble { border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.26); }
.duck-bubble.d1 { width: 22px; height: 22px; top: 32px; right: 42px; }
.duck-bubble.d2 { width: 14px; height: 14px; top: 62px; right: 68px; }
.duck-bubble.d3 { width: 10px; height: 10px; top: 46px; right: 94px; }
.hero-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.page-section, .builder-section { margin-top: 1.5rem; }
.card-grid, .how-grid, .dashboard-grid, .detail-grid, .footer-grid, .form-grid, .list-grid, .studio-top-grid, .builder-feature-grid, .builder-gallery {
  display: grid;
  gap: 1rem;
}
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2rem 0; }
.dashboard-grid, .studio-top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .92fr); align-items: start; }
.footer-grid { grid-template-columns: 1.25fr .8fr 1fr; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.builder-feature-grid, .builder-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.site-footer {
  background: linear-gradient(180deg, #11498d, #0b376d);
  color: #e9f5ff;
  padding: 3rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: radial-gradient(circle at 10% 30%, rgba(255,255,255,.18) 0 24px, transparent 25px),
              radial-gradient(circle at 30% 60%, rgba(255,255,255,.12) 0 18px, transparent 19px),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,.15) 0 20px, transparent 21px);
}
.site-footer a { display: block; margin-bottom: .45rem; color: #f8fafc; }
footer p { margin-top: 0; }
.muted-light { color: rgba(233,245,255,.76); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(180deg, var(--brand), #ffc926);
  color: #14315a;
  border: none;
  border-radius: 999px;
  padding: .95rem 1.18rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(255,212,59,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(255,212,59,.34); }
.button-light { background: #fff; box-shadow: none; border: 1px solid rgba(19,79,153,.12); color: var(--text-soft); }
.button-sm { padding: .7rem .95rem; font-size: .92rem; }
.button-full { width: 100%; }
.actions, .section-head, .stats, .pill-row { display: flex; gap: .95rem; }
.actions { margin-top: 1.1rem; flex-wrap: wrap; }
.section-head { align-items: end; justify-content: space-between; margin: 2rem 0 1rem; }
.section-head-tight { margin-top: 0; }
.stats { margin-top: 1.4rem; flex-wrap: wrap; }
.stats > div {
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  min-width: 130px;
}
.simple-stats > div { min-width: 140px; }
.stats strong { display: block; font-size: 1.4rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .78rem;
  background: linear-gradient(180deg, #fff4b6, #ffe981);
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 800;
  color: #7d5700;
}
.soft-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem .74rem;
  background: rgba(19,79,153,.06);
  border: 1px solid rgba(19,79,153,.08);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
}
.muted, small { color: var(--muted); }

.progress { width: 100%; height: 12px; background: #d8ebff; border-radius: 999px; overflow: hidden; margin: .8rem 0; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #ffd43b, #2f8fff); }
.meta-row, .card-topline { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.card-topline { margin-bottom: .6rem; }

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(19,79,153,.12);
  border-radius: 16px;
  padding: .95rem 1rem;
  background: #fff;
  margin-top: .35rem;
  color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
label { display: block; font-weight: 700; color: var(--text-soft); }
.checkbox { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.checkbox input { width: auto; margin: 0; }
.checkbox-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.stack-form { display: grid; gap: 1rem; }
.auth-panel { max-width: 540px; margin: 0 auto; }
.premium-auth-panel { padding: 1.6rem; }
.max-panel { max-width: 980px; margin: 0 auto; }
.sticky-panel { position: sticky; top: 120px; }
.sticky-save-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 8;
  padding: .75rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(20,79,152,.08);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .83rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: #f9fcff; }

.alert { padding: 1rem 1.2rem; border-radius: 18px; margin-bottom: 1rem; }
.alert.success { background: var(--success-bg); color: #067647; border: 1px solid #abefc6; }
.alert.error { background: var(--error-bg); color: var(--error); border: 1px solid #fecdca; }

.mini-note {
  margin: 1rem 0;
  padding: 1rem 1rem;
  border-radius: 18px;
  background: rgba(47,143,255,.08);
  border: 1px solid rgba(47,143,255,.12);
}
.water-note { background: linear-gradient(180deg, rgba(47,143,255,.08), rgba(255,255,255,.8)); }
.feature-panel { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(237,247,255,.9)); }
.compliance-panel { background: linear-gradient(180deg, rgba(246,251,255,.95), rgba(227,243,255,.92)); }
.result-panel { margin-top: 1rem; }
.result-win { background: linear-gradient(180deg, rgba(236,253,243,.95), rgba(255,255,255,.95)); border-color: rgba(16,185,129,.2); }

.list-item { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.compact-item { align-items: center; }
.clean-list { margin: 0; padding-left: 1rem; }
.hidden-textarea { display: none; }
.code, code {
  padding: .12rem .35rem;
  border-radius: .45rem;
  background: rgba(19,79,153,.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.top-gap { margin-top: 1rem; }
.top-gap-small { margin-top: .75rem; }
.pagination-wrap { margin-top: 1rem; }

.competition-card img, .game-card img, .winner-card img { height: 220px; }
.competition-card h3, .game-card h3, .winner-card h3 { margin-bottom: .55rem; }
.compact-game-card img { height: 180px; }
.stat-card h3 { font-size: 2rem; margin-top: .35rem; margin-bottom: 0; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.trust-item {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.trust-item strong, .trust-item span { display: block; }
.trust-item span { margin-top: .35rem; color: var(--muted); }

.games-detail-grid { align-items: start; }
.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .75rem; }
.spot-cell {
  display: grid; place-items: center; min-height: 52px;
  border-radius: 14px; border: 1px dashed rgba(19,79,153,.18);
  background: rgba(47,143,255,.06); font-weight: 700;
}

.builder-section {
  margin-top: 1.25rem;
  padding: 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.builder-shell { display: grid; gap: 1rem; }
.builder-split { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); align-items: center; }
.builder-media img, .builder-gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 24px;
}
.builder-gallery-card {
  margin: 0;
  padding: .7rem;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.builder-gallery-card figcaption { padding: .75rem .25rem .2rem; color: var(--muted); }
.builder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.builder-tile {
  padding: 1rem;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.builder-tile strong { display: block; font-size: 1.7rem; margin-bottom: .2rem; }
.theme-brand { background: linear-gradient(180deg, rgba(255,250,227,.95), rgba(255,255,255,.96)); }
.theme-dark {
  background: linear-gradient(180deg, rgba(15,47,88,.98), rgba(13,58,107,.96));
  border-color: rgba(255,255,255,.08);
  color: #f5fbff;
}
.theme-dark .muted, .theme-dark .prose, .theme-dark .builder-tile span, .theme-dark figcaption { color: rgba(232,244,255,.82); }
.theme-dark .builder-tile { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.08); }
.theme-dark .button-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }

.studio-form { gap: 1.25rem; }
.studio-form-grid { align-items: start; }
.studio-sections { display: grid; gap: 1rem; }
.studio-section-card { padding: 1.2rem; }
.studio-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.studio-rich-wrapper { display: grid; gap: .55rem; }
.editor-toolbar { display: flex; gap: .55rem; flex-wrap: wrap; }
.rich-editor {
  min-height: 170px;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
}
.rich-editor:focus { outline: 2px solid rgba(31,118,234,.16); border-color: rgba(31,118,234,.3); }
.studio-preview-shell { position: sticky; top: 120px; min-height: 100%; }
.studio-callout { min-height: 100%; }
.admin-studio-grid { align-items: stretch; }

.prose { line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.25rem; }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-feature-grid, .builder-gallery, .builder-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero, .card-grid, .how-grid, .dashboard-grid, .detail-grid, .footer-grid, .form-grid, .list-grid, .studio-top-grid, .builder-feature-grid, .builder-gallery, .builder-stats, .builder-split, .trust-strip {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: .85rem 0;
  }
  .nav nav { width: 100%; justify-content: flex-start; }
  .sticky-panel, .studio-preview-shell { position: static; }
  .hero { padding: 1.4rem; }
  .hero h1 { max-width: none; }
  .hero-mini-grid { grid-template-columns: 1fr; }
  .table-wrap { border-radius: 18px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 1rem, 1200px); }
  .page-shell { padding-top: 1.1rem; }
  .utility-bar { font-size: .82rem; }
  .utility-inner { padding: .45rem 0; }
  .nav-link, .link-button, .button { min-height: 46px; }
  .button, .button-sm { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-card, .panel, .card-body, .builder-section { padding: 1rem; }
  .stats > div { width: 100%; }
  .spot-grid { grid-template-columns: repeat(3, 1fr); }
  .card img, .detail-image, .competition-card img, .game-card img, .winner-card img { height: 200px; }
  th, td { padding: .85rem .8rem; }
  .editor-toolbar { flex-direction: column; }
  .checkbox-grid { flex-direction: column; }
}

/* --- Mental upgrade pass --- */
body {
  color: #10375f;
}

.page-shell { padding-top: 1.6rem; }
.premium-card {
  border: 1px solid rgba(23,82,156,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.94));
}
.upgraded-card-grid { gap: 1.2rem; }
.premium-stats > div {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(239,247,255,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.home-hero-upgraded {
  background:
    radial-gradient(circle at top right, rgba(31,118,234,.14), transparent 30%),
    radial-gradient(circle at 10% 0%, rgba(255,213,75,.2), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,248,255,.96));
}
.premium-side-panel {
  display: grid;
  gap: 1rem;
}
.hero-showcase-grid {
  display: grid;
  gap: .9rem;
}
.mini-showcase-card {
  display: grid;
  grid-template-columns: 152px minmax(0,1fr);
  gap: .9rem;
  align-items: center;
  padding: .8rem;
  border-radius: 22px;
  border: 1px solid rgba(19,79,153,.1);
  background: rgba(255,255,255,.8);
}
.mini-showcase-card strong {
  display: block;
  margin: .35rem 0;
  font-size: 1.05rem;
}
.compact-media img { height: 112px; }
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14,57,108,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(19,79,153,.1);
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.media-frame-detail img { aspect-ratio: 16/8.2; }
.media-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 35%, rgba(6,31,67,.08));
  pointer-events: none;
}
.media-frame-competition,
.media-frame-game,
.media-frame-winner {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 18px 40px rgba(19,71,144,.12);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.spotlight-panel {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.spotlight-media img {
  height: 260px;
}
.spotlight-meta { margin-top: .85rem; }
.live-feed-panel,
.tier-card,
.featured-game-card {
  box-shadow: 0 22px 54px rgba(17,71,140,.1);
}
.enhanced-trust-strip .trust-item {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(245,250,255,.84));
}
.competition-card .card-body,
.game-card .card-body,
.winner-card .card-body {
  padding-top: 1rem;
}
.tier-card {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(250,250,255,.92));
}

/* Game stage */
.game-stage-card { overflow: hidden; }
.game-stage-shell {
  padding: 0 1.2rem 1.3rem;
}
.game-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.game-stage-badge {
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(20,79,152,.08);
  color: var(--blue-dark);
  font-weight: 800;
}
.hidden-game-form { display: none; }
.game-stage {
  position: relative;
  border-radius: 32px;
  padding: 1.2rem;
  border: 1px solid rgba(20,79,152,.12);
  background: linear-gradient(180deg, #f9fcff, #ebf5ff);
  min-height: 320px;
  overflow: hidden;
}
.game-stage.is-playing {
  pointer-events: none;
}
.game-stage.is-playing::after {
  content: "Revealing your result...";
  position: absolute;
  inset: auto 16px 16px auto;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(15,47,88,.82);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(4,20,43,.2);
}
.stage-locked-note {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(20,79,152,.1);
  color: var(--blue-dark);
  font-weight: 700;
}
.game-instruction {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 700;
}
.duck-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #d8ecff 0%, #95d4ff 62%, #54aef8 63%, #388de8 100%);
}
.duck-board::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  pointer-events: none;
}
.duck-choice {
  position: relative;
  min-height: 150px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
  animation: duckBob 2.6s ease-in-out infinite;
  animation-delay: var(--duck-delay, 0s);
}
.duck-choice:hover { transform: translateY(-4px); }
.duck-choice-body,
.duck-choice-head,
.duck-choice-beak,
.duck-choice-eye,
.duck-choice-water,
.duck-choice-number {
  position: absolute;
}
.duck-choice-water {
  inset: auto 18px 12px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  filter: blur(2px);
}
.duck-choice-body {
  width: 88px;
  height: 60px;
  left: 34px;
  bottom: 34px;
  background: linear-gradient(180deg, #ffe68d, #ffc72c);
  border-radius: 55% 45% 50% 50%;
  box-shadow: inset -12px -10px 0 rgba(0,0,0,.06), 0 12px 18px rgba(9,46,89,.16);
}
.duck-choice-head {
  width: 46px;
  height: 46px;
  right: 26px;
  bottom: 62px;
  background: linear-gradient(180deg, #ffe68d, #ffc72c);
  border-radius: 50%;
}
.duck-choice-beak {
  width: 18px;
  height: 12px;
  right: 14px;
  bottom: 76px;
  background: #ff8a3d;
  border-radius: 10px;
}
.duck-choice-eye {
  width: 6px;
  height: 6px;
  right: 36px;
  bottom: 90px;
  background: #153a64;
  border-radius: 50%;
}
.duck-choice-number {
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: var(--blue-dark);
  font-weight: 900;
}
.duck-choice.chosen {
  transform: translateY(-12px) scale(1.03);
}
@keyframes duckBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.vault-stage {
  display: grid;
  place-items: center;
  min-height: 250px;
}
.vault-button {
  position: relative;
  width: min(360px, 86vw);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffeaa1, #ffc62b 48%, #d28d00 100%);
  cursor: pointer;
  box-shadow: 0 30px 60px rgba(17,71,140,.18), inset 0 0 0 16px #10375f, inset 0 0 0 34px #19569b;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vault-button:hover { transform: scale(1.02); }
.vault-core {
  position: relative;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(255,255,255,.34);
  color: #10375f;
  font-weight: 900;
  letter-spacing: .08em;
}
.vault-button.opening { animation: vaultPulse 1s ease forwards; }
.vault-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  animation: spark 2.2s infinite ease-in-out;
}
.vault-spark.s1 { top: 22%; left: 18%; }
.vault-spark.s2 { top: 12%; right: 22%; animation-delay: .4s; }
.vault-spark.s3 { bottom: 22%; right: 18%; animation-delay: .7s; }
@keyframes vaultPulse {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.08) rotate(18deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes spark {
  0%,100% { opacity: .2; transform: translateY(0) scale(.9); }
  50% { opacity: 1; transform: translateY(-16px) scale(1.2); }
}
.scratch-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.scratch-tile {
  position: relative;
  min-height: 130px;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(180deg, #173d6a, #0d2e52);
  box-shadow: 0 18px 32px rgba(15,47,88,.16);
}
.scratch-tile-back,
.scratch-tile-front {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.scratch-tile-back {
  color: #ffe689;
  font-size: 1.3rem;
  letter-spacing: .04em;
}
.scratch-tile-front {
  color: #10375f;
  background: linear-gradient(145deg, #dbe4ef, #bac5d7);
}
.scratch-tile-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.15) 10%, rgba(255,255,255,.55) 20%, rgba(255,255,255,.15) 30%);
  animation: shimmer 2.2s infinite linear;
}
.scratch-tile.scratched .scratch-tile-front {
  transform: translateY(-115%) rotate(-6deg);
  transition: transform .65s ease;
}
@keyframes shimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.balls-stage {
  display: grid;
  grid-template-columns: repeat(10, minmax(0,1fr));
  gap: .55rem;
  max-height: 320px;
  overflow: auto;
  padding-right: .25rem;
}
.ball-choice {
  border: 0;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #d9edff);
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -6px 10px rgba(31,118,234,.12), 0 8px 16px rgba(17,71,140,.1);
  animation: ballBounce 2.6s ease-in-out infinite;
  animation-delay: var(--ball-delay, 0s);
}
.ball-choice:hover,
.ball-choice.picked {
  background: linear-gradient(180deg, #ffe689, #ffc229);
  transform: translateY(-2px) scale(1.03);
}
@keyframes ballBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.spot-stage-image {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(19,79,153,.1);
  background: #fff;
}
.spot-stage-image img {
  width: 100%;
  display: block;
}
.spot-zone {
  position: absolute;
  border: 1px dashed rgba(15,47,88,.18);
  background: rgba(255,255,255,.02);
  cursor: pointer;
}
.spot-zone:hover { background: rgba(255,213,75,.14); }
.zone-1 { left: 0; top: 0; width: 33.334%; height: 33.334%; }
.zone-2 { left: 33.334%; top: 0; width: 33.334%; height: 33.334%; }
.zone-3 { left: 66.668%; top: 0; width: 33.334%; height: 33.334%; }
.zone-4 { left: 0; top: 33.334%; width: 33.334%; height: 33.334%; }
.zone-5 { left: 33.334%; top: 33.334%; width: 33.334%; height: 33.334%; }
.zone-6 { left: 66.668%; top: 33.334%; width: 33.334%; height: 33.334%; }
.zone-7 { left: 0; top: 66.668%; width: 33.334%; height: 33.334%; }
.zone-8 { left: 33.334%; top: 66.668%; width: 33.334%; height: 33.334%; }
.zone-9 { left: 66.668%; top: 66.668%; width: 33.334%; height: 33.334%; }
.spot-target-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  border: 6px solid #ffd54b;
  box-shadow: 0 0 0 10px rgba(255,213,75,.18);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.spot-target-marker.visible {
  opacity: 1;
  transform: scale(1);
}
.cinematic-result-panel {
  position: relative;
  overflow: hidden;
}
.cinematic-result-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,213,75,.12), transparent 26%);
  pointer-events: none;
}
.image-manager {
  display: grid;
  gap: .85rem;
}
.image-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .7rem;
}
.image-preset {
  border: 1px solid rgba(19,79,153,.1);
  background: rgba(255,255,255,.88);
  border-radius: 18px;
  padding: .45rem;
  cursor: pointer;
  display: grid;
  gap: .45rem;
  color: var(--text-soft);
  font-weight: 700;
}
.image-preset img,
.image-preview-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 14px;
}
.image-preview-card {
  padding: .55rem;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(19,79,153,.1);
}
.image-preview-note { margin: 0; }

@media (max-width: 1100px) {
  .spotlight-grid,
  .image-preset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .balls-stage { grid-template-columns: repeat(8, minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .mini-showcase-card,
  .spotlight-grid { grid-template-columns: 1fr; }
  .duck-board,
  .scratch-board { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .balls-stage { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .game-stage { padding: 1rem; }
  .duck-board,
  .scratch-board { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .duck-choice { min-height: 128px; }
  .duck-choice-body { left: 18px; width: 74px; height: 50px; }
  .duck-choice-head { right: 14px; bottom: 56px; }
  .balls-stage { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .image-preset-grid { grid-template-columns: 1fr 1fr; }
  .game-stage-header { flex-direction: column; align-items: flex-start; }
}

.admin-link-card {
  display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}
.admin-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.wrap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.align-end {
  align-self: end;
}
.standalone-builder-media {
  padding: 0;
  overflow: hidden;
}
.standalone-builder-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.builder-quote {
  position: relative;
}
.builder-quote::before {
  content: "“";
  position: absolute;
  top: .8rem;
  left: 1rem;
  font-size: 2.8rem;
  line-height: 1;
  color: rgba(31,118,234,.16);
}
.game-stage-theme-neon .arcade-choice {
  background: linear-gradient(180deg, #0f2f58, #1f76ea);
}
.game-stage-theme-sunrise .arcade-choice {
  background: linear-gradient(180deg, #ffb347, #ff6f61);
}
.game-stage-theme-midnight .arcade-choice {
  background: linear-gradient(180deg, #1d1b4b, #4b2cc7);
}
.arcade-stage {
  display: grid;
  gap: 1rem;
}
.arcade-core {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 1.4rem;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), rgba(255,255,255,.04)), linear-gradient(145deg, #102d54, #091b33);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 48px rgba(9,27,51,.25);
}
.arcade-core p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.arcade-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255,213,75,.24), transparent 45%);
  animation: arcadeGlow 3.2s ease-in-out infinite;
}
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .85rem;
}
.arcade-choice {
  border: 0;
  min-height: 92px;
  border-radius: 22px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(15,47,88,.18);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  animation: arcadePulse 2.8s ease-in-out infinite;
  animation-delay: var(--arcade-delay, 0s);
}
.arcade-choice:hover,
.arcade-choice.live {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 44px rgba(15,47,88,.24);
}
@keyframes arcadePulse {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
@keyframes arcadeGlow {
  0%,100% { transform: scale(.95); opacity: .5; }
  50% { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 800px) {
  .arcade-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .wrap-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- v7 game and studio upgrade pass --- */
.game-blueprint-panel,
.page-kit-panel,
.game-builder-preview-shell { margin-top: 1rem; }
.game-blueprint-grid,
.page-kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}
.game-blueprint-card {
  border: 1px solid rgba(19,79,153,.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,249,255,.92));
  padding: 1rem;
  text-align: left;
  box-shadow: 0 18px 36px rgba(17,71,140,.08);
  cursor: pointer;
  display: grid;
  gap: .4rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-blueprint-card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px rgba(17,71,140,.12); }
.game-builder-preview-card {
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(13,45,85,.96), rgba(29,97,180,.92));
  color: #fff;
  display: grid;
  gap: .75rem;
  box-shadow: 0 24px 48px rgba(15,47,88,.22);
}
.game-builder-preview-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.game-builder-preview-lanes { display: flex; flex-wrap: wrap; gap: .5rem; }
.game-builder-preview-card .soft-pill { background: rgba(255,255,255,.14); color: #fff; }
.compact-helper { margin: .35rem 0 0; }
.compact-actions { align-items: flex-start; }
.builder-preset-select {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 0 .9rem;
  background: #fff;
}
.studio-section-body[hidden] { display: none !important; }
.studio-section-card.is-collapsed { background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,251,255,.95)); }
.builder-journey-grid,
.builder-winner-wall { margin-top: 1rem; }
.builder-step-card { position: relative; overflow: hidden; }
.builder-step-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 16px;
  background: rgba(31,118,234,.1);
  margin-bottom: .75rem;
}
.builder-timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  position: relative;
}
.builder-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(31,118,234,.18);
}
.builder-timeline-item {
  position: relative;
  padding-left: 2rem;
}
.builder-timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe689, #ffc229);
  box-shadow: 0 10px 18px rgba(255,194,41,.24);
}
.builder-comparison-list {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.builder-comparison-row {
  display: grid;
  grid-template-columns: minmax(180px,.8fr) minmax(0,1fr);
  gap: 1rem;
  align-items: center;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
}
.builder-winner-card strong,
.builder-winner-card span { display: block; }
.builder-countdown-card {
  background: linear-gradient(180deg, rgba(16,55,95,.92), rgba(14,74,139,.9));
  color: #fff;
}
.builder-countdown-card span { color: rgba(255,255,255,.8); }
.accent-sun-pop { box-shadow: 0 24px 48px rgba(255,166,43,.1); }
.accent-pond-blue { box-shadow: 0 24px 48px rgba(31,118,234,.1); }
.accent-winner-gold { box-shadow: 0 24px 48px rgba(255,194,41,.12); }
.accent-vip-plum { box-shadow: 0 24px 48px rgba(104,67,196,.12); }
.layout-showcase { padding: 1.8rem; }
.layout-compact .builder-shell { gap: .6rem; }
.stage-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(19,79,153,.1);
  margin-bottom: 1rem;
}
.stage-hud-main { display: flex; align-items: center; gap: .85rem; }
.stage-hud-main p { margin: .15rem 0 0; }
.stage-mascot {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  border-radius: 16px; background: linear-gradient(180deg, #ffe689, #ffc229); font-size: 1.45rem;
}
.stage-hud-pills { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.enhanced-duck-board { padding-top: 2.6rem; }
.duck-rod {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 110px; z-index: 3; pointer-events: none;
  transition: left .18s ease, transform .18s ease;
}
.duck-hook-line {
  position: absolute; left: 12px; top: 0; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.25));
}
.duck-hook-head {
  position: absolute; left: 5px; bottom: 0; width: 16px; height: 24px;
  border: 3px solid #fff; border-top: 0; border-radius: 0 0 14px 14px;
}
.duck-rod.dropping { transform: translateX(-50%) translateY(44px); }
.duck-choice-label {
  position: absolute; left: 18px; right: 18px; bottom: 2px; z-index: 2;
  color: #0f2f58; font-weight: 800; font-size: .85rem; text-align: center;
}
.vault-duck-reel {
  display: flex; gap: .55rem; margin-bottom: 1rem; justify-content: center; align-items: center;
}
.vault-duck-token {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 14px;
  background: rgba(255,255,255,.66); font-size: 1.3rem; opacity: .55; transform: scale(.92); transition: .16s ease;
}
.vault-duck-token.active { opacity: 1; transform: scale(1.1); background: #fff3b4; }
.scratch-board-enhanced .scratch-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none;
}
.bonus-ball-console { display: grid; gap: 1rem; }
.bonus-ball-display {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem;
}
.bonus-ball-display > div {
  padding: 1rem; border-radius: 22px; background: rgba(255,255,255,.8); border: 1px solid rgba(19,79,153,.1);
}
.bonus-ball-display strong { display: block; font-size: 1.6rem; margin-top: .25rem; }
.spot-magnifier {
  position: absolute; width: 100px; height: 100px; margin-left: -50px; margin-top: -50px;
  border-radius: 50%; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 18px 34px rgba(15,47,88,.18);
  background: radial-gradient(circle, rgba(255,255,255,.25), rgba(255,255,255,0) 58%);
  opacity: 0; transform: scale(.85); transition: .18s ease; pointer-events: none;
}
.spot-magnifier.visible { opacity: 1; transform: scale(1); }
.enhanced-arcade-stage .arcade-grid { margin-top: .35rem; }
.scene-carnival,
.stage-scene-carnival .game-stage {
  background: linear-gradient(180deg, #fff8ea, #ffd99e 22%, #f8b04f 100%);
}
.scene-lagoon,
.stage-scene-lagoon .game-stage {
  background: linear-gradient(180deg, #effcff, #d9f7ff 22%, #8fdcff 100%);
}
@media (max-width: 1100px) {
  .game-blueprint-grid,
  .page-kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .stage-hud,
  .bonus-ball-display,
  .builder-comparison-row { grid-template-columns: 1fr; display: grid; }
  .stage-hud-main { align-items: flex-start; }
}
@media (max-width: 640px) {
  .game-blueprint-grid,
  .page-kit-grid,
  .bonus-ball-display { grid-template-columns: 1fr; }
  .stage-hud { padding: .8rem; }
  .stage-hud-pills { justify-content: flex-start; }
  .duck-choice-label { font-size: .78rem; }
}

/* --- Launch control update --- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #fff;
  color: var(--blue-dark);
  padding: .7rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 120;
}
.skip-link:focus { top: 1rem; }
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .8rem;
  flex: 1;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.nav-links-cluster { justify-content: flex-end; flex: 1; }
.nav-account-cluster { justify-content: flex-end; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(20,79,152,.12);
  background: rgba(255,255,255,.9);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}
.nav-toggle { position: relative; }
.nav-toggle strong { margin-left: .2rem; }
.nav-cta { white-space: nowrap; }
.launch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
}
.launch-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(20,79,152,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,248,255,.92));
}
.launch-check strong { font-size: .96rem; }
.launch-check span { font-size: .82rem; color: var(--muted); }
.launch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
}
.launch-badge.ready { background: rgba(15,157,88,.12); color: #0d7a47; }
.launch-badge.todo { background: rgba(255,213,75,.2); color: #8f6400; }
.settings-grid,
.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 1rem;
}
.settings-stack { display: grid; gap: 1rem; }
.settings-card h3,
.sidebar-card h3 { margin-bottom: .75rem; }
.settings-tabs {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
.settings-tab {
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(20,79,152,.06);
  border: 1px solid rgba(20,79,152,.08);
  font-weight: 700;
}
.settings-quick-list,
.metrics-list { display: grid; gap: .8rem; }
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { font-size: 1rem; }
.form-help { color: var(--muted); font-size: .9rem; margin-top: -.25rem; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.payment-pill-row,
.seo-pill-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.meta-preview {
  display: grid;
  gap: .55rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(20,79,152,.18);
  background: rgba(246,250,255,.92);
}
.meta-preview .title { color: #1a0dab; font-weight: 700; font-size: 1.05rem; }
.meta-preview .url { color: #188038; font-size: .9rem; }
.meta-preview .desc { color: #4d5156; font-size: .95rem; line-height: 1.5; }
.mobile-drawer-note { display: none; }
.checkout-trust-list {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}
.trust-bullet {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-soft);
  font-weight: 700;
}
.trust-bullet::before {
  content: '✓';
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15,157,88,.12);
  color: #0d7a47;
  font-size: .8rem;
}
@media (max-width: 1100px) {
  .launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  body.nav-open { overflow: hidden; }
  .nav {
    flex-direction: row;
    align-items: center;
    padding: .85rem 0;
    min-height: 78px;
  }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: calc(100% + .75rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
    padding: 1rem;
    border-radius: 26px;
    border: 1px solid rgba(20,79,152,.12);
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 60px rgba(19,71,144,.18);
  }
  .primary-nav.is-open { display: flex; }
  .nav-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }
  .nav-links-cluster, .nav-account-cluster { flex: unset; }
  .nav-link, .link-button, .nav-cta {
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
    padding-inline: 1rem;
  }
  .mobile-drawer-note {
    display: block;
    font-size: .86rem;
    color: var(--muted);
  }
  .admin-subnav { overflow-x: auto; padding-bottom: .75rem; }
  .admin-subnav-inner { flex-wrap: nowrap; width: max-content; padding-bottom: .25rem; }
  .settings-grid, .admin-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .launch-grid { grid-template-columns: 1fr; }
  .launch-check { align-items: flex-start; flex-direction: column; }
}
