:root {
  --bg-deep: #0b1026;
  --bg-mid: #141c3c;
  --bg-panel: #1b2550;
  --bg-panel-2: #222f63;
  --border-pixel: #3b4f96;
  --border-bright: #5ce1e6;
  --gold: #ffd447;
  --gold-dark: #c98a12;
  --cyan: #4de2ff;
  --purple: #9d6bff;
  --green: #4ade80;
  --green-dark: #15803d;
  --red: #ff5d73;
  --orange: #ff9838;
  --text: #f3f7ff;
  --text-dim: #b4c2e8;
  --shadow-pixel: 0 4px 0 #070b1a;
  --radius: 14px;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Fredoka', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(92, 225, 230, 0.14), transparent 36%),
    radial-gradient(circle at 82% 8%, rgba(157, 107, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #090d20 0%, #111836 45%, #161d40 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 60%, transparent 100%),
    radial-gradient(2px 2px at 34% 72%, #ffd447 60%, transparent 100%),
    radial-gradient(2px 2px at 56% 24%, #4de2ff 60%, transparent 100%),
    radial-gradient(2px 2px at 78% 64%, #fff 60%, transparent 100%),
    radial-gradient(2px 2px at 91% 31%, #ffd447 60%, transparent 100%),
    radial-gradient(2px 2px at 22% 48%, #9d6bff 60%, transparent 100%);
  background-size: 320px 320px;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.pixel { font-family: var(--font-pixel); letter-spacing: 0.03em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.container {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 16, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--border-pixel);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  min-height: 44px;
}
.brand-link:hover { text-decoration: none; filter: brightness(1.08); }

.brand-emblem {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 #1e1142;
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.nav-btn img { width: 28px; height: 28px; object-fit: contain; transform: scale(1.3); image-rendering: pixelated; }
.nav-btn:hover, .nav-btn:focus-visible {
  background: rgba(77, 226, 255, 0.14);
  border-color: var(--border-bright);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acorn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 212, 71, 0.14);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.acorn-pill:hover { transform: scale(1.04); box-shadow: 0 0 12px rgba(255, 212, 71, 0.4); }
.acorn-pill img { width: 22px; height: 22px; object-fit: contain; }

.sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid var(--border-pixel);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.sound-btn:hover { border-color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 3px solid #090d20;
  box-shadow: 0 4px 0 #070b1a, inset 0 2px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 6px 0 #070b1a, inset 0 2px 0 rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #070b1a; }

.btn-play {
  background: linear-gradient(180deg, #5ef08c 0%, #24b85b 100%);
  color: #062111;
}
.btn-gold {
  background: linear-gradient(180deg, #ffe26a 0%, #f59e0b 100%);
  color: #261400;
}
.btn-cyan {
  background: linear-gradient(180deg, #64ecff 0%, #229ce8 100%);
  color: #04192b;
}
.btn-secondary {
  background: linear-gradient(180deg, #2d3e80 0%, #1d2857 100%);
  color: var(--text);
  border-color: var(--border-pixel);
}
.btn-danger {
  background: linear-gradient(180deg, #ff7a8b 0%, #d9304f 100%);
  color: #fff;
}
.btn-yt {
  background: linear-gradient(180deg, #ff4b4b 0%, #cc1818 100%);
  color: #fff;
}
.btn-disabled, .btn:disabled {
  background: #2b3354;
  color: #8c98c2;
  border-color: #3f4b78;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.btn-sm { min-height: 40px; padding: 7px 13px; font-size: 0.9rem; border-width: 2px; }

/* Hero */
.hero {
  position: relative;
  margin: 18px 0 24px;
  border-radius: 22px;
  border: 4px solid var(--gold);
  overflow: hidden;
  background: #0d1535;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 3px #10193b;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.52;
  filter: saturate(1.12);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 32, 0.52) 0%, rgba(11, 16, 38, 0.72) 55%, rgba(11, 16, 38, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px 28px 26px;
}

.hero-logo {
  width: min(460px, 100%);
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
}

.hero-tagline {
  font-family: var(--font-pixel);
  font-size: clamp(0.75rem, 1.8vw, 1.05rem);
  color: var(--gold);
  text-shadow: 2px 2px 0 #090d20;
  margin: 0 0 12px;
  line-height: 1.6;
}

.hero-desc {
  max-width: 60ch;
  margin: 0 0 20px;
  color: #e4ecff;
  font-size: 1.08rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Interactive Baby Nephew Mascot */
.mascot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 190px;
}

.mascot-bubble {
  position: relative;
  background: #fffdf2;
  color: #131833;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 14px;
  border: 3px solid #090d20;
  box-shadow: 0 4px 0 #090d20;
  max-width: 230px;
  text-align: center;
  margin-bottom: 12px;
  min-height: 44px;
}
.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid #090d20;
}

.mascot-btn {
  background: radial-gradient(circle, rgba(255, 212, 71, 0.25) 0%, transparent 70%);
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 20px;
  transition: transform 0.15s ease;
}
.mascot-btn:hover { transform: scale(1.06) rotate(-2deg); }
.mascot-btn:active { transform: scale(0.95); }
.mascot-img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55));
}
.mascot-hint {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 4px;
  opacity: 0.9;
}

.hero-stats-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 20px;
  background: rgba(9, 13, 32, 0.85);
  border-top: 3px solid var(--border-pixel);
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(27, 37, 80, 0.85);
  border: 2px solid var(--border-pixel);
  text-align: center;
}
.stat-chip strong {
  font-family: var(--font-pixel);
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-chip span {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  margin-right: 6px;
  vertical-align: middle;
}

/* Announcements */
.announcements-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.announcement-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(157, 107, 255, 0.24) 0%, rgba(27, 37, 80, 0.95) 100%);
  border: 3px solid var(--purple);
  box-shadow: var(--shadow-pixel);
}
.ann-badge {
  flex: none;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--gold);
  color: #1c1000;
  margin-top: 2px;
}
.ann-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 2px; color: #fff; }
.ann-body { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* Sections */
.section {
  margin: 34px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(0.88rem, 2.2vw, 1.15rem);
  color: var(--gold);
  text-shadow: 2px 2px 0 #070b1a;
}
.section-title img { width: 28px; height: 28px; object-fit: contain; }

.section-sub {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Panels & Cards */
.panel {
  background: var(--bg-panel);
  border: 3px solid var(--border-pixel);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-pixel);
}

.featured-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #212e66 0%, #182049 55%, #24194a 100%);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 0 #070b1a, 0 0 24px rgba(255, 212, 71, 0.16);
  position: relative;
}

.featured-icon {
  width: 180px;
  height: 180px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: #0d1433;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 2px solid transparent;
}
.badge-live { background: rgba(74, 222, 128, 0.18); color: #86efac; border-color: #22c55e; }
.badge-new { background: rgba(77, 226, 255, 0.2); color: #7ceeff; border-color: #38bdf8; }
.badge-updated { background: rgba(255, 212, 71, 0.2); color: #fde68a; border-color: #f59e0b; }
.badge-beta { background: rgba(255, 152, 56, 0.22); color: #fed7aa; border-color: #fb923c; }
.badge-soon { background: rgba(157, 107, 255, 0.22); color: #d8b4fe; border-color: #a855f7; }
.badge-featured { background: var(--gold); color: #1f1100; font-family: var(--font-pixel); font-size: 0.62rem; padding: 5px 9px; }
.badge-bug-reported { background: rgba(255, 93, 115, 0.2); color: #fda4af; border-color: #fb7185; }
.badge-bug-investigating { background: rgba(255, 152, 56, 0.22); color: #fed7aa; border-color: #fb923c; }
.badge-bug-inprogress { background: rgba(77, 226, 255, 0.2); color: #7ceeff; border-color: #38bdf8; }
.badge-bug-fixed { background: rgba(74, 222, 128, 0.2); color: #86efac; border-color: #22c55e; }
.badge-cat { background: rgba(77, 226, 255, 0.14); color: var(--cyan); border-color: var(--border-pixel); }

/* Spotlight rows (Recently Released / Most Played / Highest Rated) */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.spotlight-box {
  background: var(--bg-panel);
  border: 3px solid var(--border-pixel);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-pixel);
}

.spotlight-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  color: var(--cyan);
}
.spotlight-box h3 img { width: 22px; height: 22px; }

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(11, 16, 38, 0.55);
  border: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.mini-row:hover { border-color: var(--cyan); text-decoration: none; transform: translateX(2px); }
.mini-row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: #0d1433; }
.mini-row-info { min-width: 0; flex: 1; }
.mini-row-title { font-weight: 700; font-size: 0.94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row-meta { font-size: 0.8rem; color: var(--text-dim); }

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 2px solid var(--border-pixel);
}

.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: #0d1430;
  border: 2px solid var(--border-pixel);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77, 226, 255, 0.2);
}
.textarea { min-height: 110px; resize: vertical; }

.filter-search { flex: 1 1 240px; }
.filter-select { flex: 0 1 180px; }

.period-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tab-btn {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--border-pixel);
  background: #0d1430;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--cyan);
  color: #06182c;
  border-color: var(--cyan);
}

/* Game & Website Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1f2b5c 0%, #161f47 100%);
  border: 3px solid var(--border-pixel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-pixel);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 8px 0 #070b1a, 0 0 18px rgba(77, 226, 255, 0.22);
}

.game-card-top {
  display: flex;
  gap: 14px;
  padding: 16px 16px 10px;
  align-items: flex-start;
}

.game-icon {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #0d1433;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.game-title {
  margin: 2px 0 4px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}
.game-title a { color: #fff; }
.game-title a:hover { color: var(--gold); text-decoration: none; }

.game-tagline {
  margin: 0 16px 12px;
  color: var(--text-dim);
  font-size: 0.92rem;
  flex: 1;
}

.game-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 12px;
  font-size: 0.84rem;
  color: #cfe0ff;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(9, 13, 32, 0.55);
  padding: 4px 9px;
  border-radius: 8px;
}

.game-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}
.game-card-actions .btn { flex: 1 1 auto; }

/* Websites Grid */
.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

/* YouTube Section */
.yt-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3b1332 0%, #1c1946 100%);
  border: 3px solid #ff4b4b;
  box-shadow: var(--shadow-pixel);
  margin-bottom: 18px;
}
.yt-promo-left { display: flex; align-items: center; gap: 16px; }
.yt-promo-icon { width: 72px; height: 72px; border-radius: 16px; flex: none; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.video-card {
  background: var(--bg-panel);
  border: 3px solid var(--border-pixel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-pixel);
}
.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #090d20;
  overflow: hidden;
}
.video-thumb-wrap iframe, .video-thumb-wrap img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-body { padding: 14px; }
.video-title { margin: 6px 0 4px; font-weight: 700; font-size: 1.02rem; }

/* Feedback & Ratings */
.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.star-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  color: #4a578a;
  cursor: pointer;
  transition: transform 0.12s ease, color 0.12s ease;
}
.star-btn.filled, .star-btn:hover { color: var(--gold); transform: scale(1.12); }

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-card {
  background: rgba(14, 20, 48, 0.85);
  border: 2px solid var(--border-pixel);
  border-radius: 14px;
  padding: 16px;
}
.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.feedback-author { font-weight: 700; color: #fff; font-size: 1rem; }
.feedback-date { font-size: 0.82rem; color: var(--text-dim); }
.feedback-body { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; color: #e8efff; }
.feedback-shot {
  max-width: 340px;
  max-height: 240px;
  border-radius: 10px;
  border: 2px solid var(--border-pixel);
  margin: 8px 0 10px;
  cursor: pointer;
}
.feedback-device {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.dev-reply {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 212, 71, 0.1);
  border-radius: 0 10px 10px 0;
}
.dev-reply-label {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 37, 80, 0.9);
  border: 2px solid var(--border-pixel);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.vote-btn:hover { border-color: var(--cyan); }
.vote-btn.voted { border-color: var(--green); color: var(--green); }

/* Detail Page Layout */
.detail-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
  margin: 20px 0;
}
.detail-icon {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  border: 3px solid var(--gold);
  object-fit: cover;
  background: #0d1433;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}
.dist-bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
  margin-bottom: 5px;
}
.dist-track {
  height: 10px;
  border-radius: 999px;
  background: #0d1430;
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

/* Forms */
.form-grid {
  display: grid;
  gap: 12px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #dbe7ff;
}
.field-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Hidden Golden Acorns */
.hidden-acorn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.16s ease, opacity 0.16s ease;
  animation: acornBob 2.8s ease-in-out infinite;
}
.hidden-acorn:hover { transform: scale(1.22) rotate(10deg); opacity: 1; }
.hidden-acorn img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 212, 71, 0.7)); }
.hidden-acorn.collected { opacity: 0.25; filter: grayscale(0.8); animation: none; }

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

/* Running Pixel Squirrel */
.squirrel-runner {
  position: fixed;
  bottom: 14px;
  left: -130px;
  z-index: 60;
  width: 96px;
  height: 78px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.1s ease;
}
.squirrel-runner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
}
.squirrel-runner.flip img { transform: scaleX(-1); }

/* Toast */
.toast-stack {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  background: #141c3c;
  color: #fff;
  border: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}
.toast.error { border-color: var(--red); }
.toast.success { border-color: var(--green); }

/* Secret Arcade Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 9, 24, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #151e45;
  border: 4px solid var(--gold);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.arcade-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 12px;
  border: 3px solid var(--cyan);
  background: #080d22;
  touch-action: none;
}

/* Admin Specific */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(92, 225, 230, 0.16);
  vertical-align: middle;
}
.admin-table th { color: var(--gold); font-size: 0.82rem; text-transform: uppercase; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 50px;
  padding: 28px 0 38px;
  background: rgba(8, 12, 28, 0.94);
  border-top: 3px solid var(--border-pixel);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 0.92rem;
}
.footer-secret-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; padding: 24px 18px 18px; }
  .hero-logo { margin-inline: auto; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .featured-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 20px); }
  .nav-links { width: 100%; justify-content: space-between; }
  .nav-btn { padding: 8px 9px; font-size: 0.88rem; }
  .brand-name { font-size: 0.72rem; }
  .mascot-img { width: 132px; height: 132px; }
  .featured-icon { width: 140px; height: 140px; }
  .game-icon { width: 72px; height: 72px; }
}

/* Utility & Modal Helpers (zero inline style attributes for strict CSP) */
.arcade-title { font-size: 0.9rem; color: var(--gold); margin: 0; }
.arcade-desc { margin: 0 0 8px; color: var(--text-dim); font-size: 0.92rem; }
.arcade-hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; }
.arcade-actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flex-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold); }
.text-sm { font-size: 0.88rem; }
.empty-state { text-align: center; padding: 28px 16px; color: var(--text-dim); }
.update-note-item { padding: 12px 14px; border-radius: 12px; background: rgba(11, 16, 38, 0.55); border: 2px solid var(--border-pixel); }
.update-note-item + .update-note-item { margin-top: 10px; }
.preview-thumb { max-width: 180px; max-height: 140px; border-radius: 10px; border: 2px solid var(--border-pixel); margin-top: 8px; }
.admin-login-box { max-width: 440px; margin: 56px auto; }
.admin-icon-mini { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #0d1433; }
.w-auto { width: auto; }
.mt-0 { margin-top: 0; }
.span-full { grid-column: 1 / -1; }

/* Grid min-width & scroll-margin polish */
.section { scroll-margin-top: 92px; }
.spotlight-box, .panel, .game-card, .featured-card > *, .hero-content > *, .detail-grid > *, .detail-hero > * { min-width: 0; }
.select.w-auto { max-width: 100%; }
@media (max-width: 900px) {
  .hero-content { grid-template-columns: minmax(0, 1fr); }
  .featured-card { grid-template-columns: minmax(0, 1fr); }
  .spotlight-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-hero { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .form-row-2 { grid-template-columns: minmax(0, 1fr); }
}
.flex-row { max-width: 100%; }
.select.w-auto { width: auto; max-width: min(320px, 100%); }
.game-icon-link { flex: none; width: 82px; height: 82px; display: block; }
@media (max-width: 560px) { .game-icon-link { width: 72px; height: 72px; } }

/* ===== Baby Nephews World rebrand additions ===== */
.brand-emblem, .section-mascot, .lost-mascot, .mascot-img, .bn-runner img, .bn-celebrate img, .maintenance-banner img { image-rendering: pixelated; }
.brand-emblem { border-radius: 10px; background: rgba(255, 212, 71, 0.12); }

.hero-stats-bar { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--border-pixel);
  background: rgba(77, 226, 255, 0.1);
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 3px; background: var(--gold); position: relative; content: '';
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-btn-yt { border-color: rgba(255, 60, 60, 0.55); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0; }
  .nav-links.open { display: flex; }
  .nav-links .nav-btn { width: 100%; justify-content: flex-start; padding: 10px 12px; font-size: 1rem; }
  .nav-controls { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .nav-links { justify-content: stretch; }
}

.section-mascot { display: block; margin: 6px 0; width: 96px; height: 96px; object-fit: contain; animation: bnBob 2.6s ease-in-out infinite; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title-row .section-mascot { width: 88px; height: 88px; margin: 0; }
.mascot-img { animation: bnBob 2.4s ease-in-out infinite; }
@keyframes bnBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.stats-unavailable {
  font-size: 0.85rem;
  color: #fde68a;
  background: rgba(255, 212, 71, 0.1);
  border: 2px dashed rgba(255, 212, 71, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
}

.bn-celebrate {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 24px);
  padding: 10px 16px 10px 10px;
  background: #1e1142; color: var(--text);
  border: 3px solid var(--gold); border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  font-weight: 700;
  animation: bnPop 0.35s ease-out;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.bn-celebrate img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.bn-celebrate.out { opacity: 0; transform: translate(-50%, 16px); }
@keyframes bnPop { from { transform: translate(-50%, 30px) scale(0.8); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }

.bn-runner {
  position: fixed; bottom: 10px; left: 0; z-index: 80;
  background: none; border: 0; padding: 0; cursor: pointer;
  animation: bnRun 7s linear forwards;
}
.bn-runner-sprite {
  display: block; width: 73px; height: 104px;
  background: url("/assets/sprites/baby-nephew-running-strip.png") 0 0 / 292px 104px no-repeat;
  image-rendering: pixelated;
  animation: bnFrames 0.48s steps(4) infinite;
}
@keyframes bnFrames { to { background-position: -292px 0; } }
@keyframes bnRun { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw + 120px)); } }
@keyframes bnHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.maintenance-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px 12px;
  background: #2a1d5c; color: var(--text);
  border-bottom: 3px solid var(--gold);
  font-size: 0.92rem; text-align: left;
}
.maintenance-banner img { width: 48px; height: 48px; object-fit: contain; flex: none; }

.lost-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; }
.lost-panel { text-align: center; max-width: 560px; }
.lost-panel h1 { font-size: clamp(1rem, 4vw, 1.5rem); line-height: 1.5; }
.lost-mascot { width: 180px; height: 180px; object-fit: contain; margin: 0 auto 8px; display: block; animation: bnTilt 2.8s ease-in-out infinite; }
@keyframes bnTilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* Reduced motion: OS setting or the MOTION toggle */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important;
}
html.reduce-motion .squirrel-runner, html.reduce-motion .bn-runner { display: none !important; }
