/* ═══════════════════════════════════════════
   BANANO X — Midnight Potassium Design System
   ═══════════════════════════════════════════ */

:root {
  --bg-deep: #030806;
  --bg-mid: #0a1610;
  --bg-card: rgba(12, 28, 20, 0.55);
  --bg-card-hover: rgba(18, 40, 28, 0.75);
  --border: rgba(250, 204, 21, 0.14);
  --border-strong: rgba(250, 204, 21, 0.35);
  --banana: #f5d041;
  --banana-bright: #ffe566;
  --banana-deep: #c9a227;
  --lime: #b8e86a;
  --lime-dim: #7aad45;
  --mint: #d4f5a8;
  --text: #e8f5d8;
  --text-muted: rgba(232, 245, 216, 0.62);
  --glow-banana: 0 0 40px rgba(245, 208, 65, 0.35);
  --glow-soft: 0 0 80px rgba(184, 232, 106, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --focus: 0 0 0 3px rgba(3, 8, 6, 0.9), 0 0 0 5px var(--banana);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 208, 65, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(27, 94, 54, 0.25), transparent 50%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(45, 120, 70, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 40%, #010403 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--banana);
  color: #1a1400;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  box-shadow: var(--focus);
}

/* ─── Typography ─── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.glow-text {
  color: var(--banana);
  text-shadow: 0 0 40px rgba(245, 208, 65, 0.45), 0 0 80px rgba(245, 208, 65, 0.2);
}

.muted {
  color: var(--text-muted);
}

/* ─── Layout ─── */

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

/* ─── Navigation ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(3, 8, 6, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(3, 8, 6, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--banana);
  transition: transform 0.25s var(--ease);
  border-radius: 10px;
}

.logo:hover {
  transform: scale(1.03);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(245, 208, 65, 0.25);
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(245, 208, 65, 0.5));
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a,
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-drop-btn:hover,
.nav-drop-btn.active,
.has-dropdown.open > .nav-drop-btn {
  color: var(--banana);
  background: rgba(245, 208, 65, 0.08);
}

.nav-drop-btn .chev {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
  opacity: 0.75;
}

.has-dropdown.open > .nav-drop-btn .chev {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  /* Sit flush under the trigger — no hover dead-zone gap */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  /* Visual offset via padding so the pointer path stays inside the menu */
  padding: 0.55rem 0.45rem 0.45rem;
  list-style: none;
  background: rgba(6, 14, 10, 0.96);
  background-clip: padding-box;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), var(--glow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 120;
}

/* Invisible bridge so the mouse can travel from label → menu without closing */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}

.has-dropdown.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--banana);
  background: rgba(245, 208, 65, 0.1);
}

.nav-dropdown a small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--banana);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  box-shadow: var(--focus);
}

.btn-primary {
  background: linear-gradient(135deg, var(--banana-bright) 0%, var(--banana) 50%, var(--banana-deep) 100%);
  color: #1a1400;
  box-shadow: 0 4px 24px rgba(245, 208, 65, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(245, 208, 65, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--banana);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(245, 208, 65, 0.08);
  border-color: var(--banana);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.875rem;
}

/* ─── Cards ─── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-soft), 0 20px 40px rgba(0, 0, 0, 0.3);
}

a.card:focus-visible {
  box-shadow: var(--focus);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(245, 208, 65, 0.08);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--banana);
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.card .card-action {
  margin-top: 1.5rem;
}

/* ─── Badge / Pill ─── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--banana);
  background: rgba(245, 208, 65, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ─── Hero ─── */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  position: relative;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 1.25rem 0 1.5rem;
  background: linear-gradient(180deg, #fff8d6 0%, var(--banana) 45%, var(--banana-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(245, 208, 65, 0.3));
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bob 2.5s ease-in-out infinite;
}

.hero-scroll span {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--banana), transparent);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* Falling banana particles */
.particle {
  position: absolute;
  top: -40px;
  font-size: 1.4rem;
  opacity: 0.55;
  animation: fall linear forwards;
  pointer-events: none;
  filter: blur(0.2px);
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0;
  }
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime), 0 0 20px rgba(184, 232, 106, 0.4);
  animation: firefly 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes firefly {
  0%, 100% { opacity: 0.2; transform: translate(0, 0) scale(0.8); }
  50% { opacity: 0.9; transform: translate(12px, -18px) scale(1.2); }
}

/* ─── Feature grid ─── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ─── Stats strip ─── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.stat-cell {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
}

.stat-cell .stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--banana);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.stat-cell .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Steps / how-to ─── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--glow-soft);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #1a1400;
  background: linear-gradient(135deg, var(--banana-bright), var(--banana));
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(245, 208, 65, 0.3);
}

.step h3 {
  font-size: 1.2rem;
  color: var(--banana);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

/* ─── Game showcase cards ─── */

.game-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(245, 208, 65, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(184, 232, 106, 0.08), transparent 50%);
  pointer-events: none;
}

.game-card.game-card-td::before {
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(61, 139, 79, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 15% 85%, rgba(245, 208, 65, 0.1), transparent 50%);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-banana), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-card .game-tag {
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.game-card h3 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--banana);
  margin-bottom: 0.6rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.game-card .game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.game-card .chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--lime);
  background: rgba(184, 232, 106, 0.08);
}

/* ─── Timeline ─── */

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--banana), var(--lime-dim), transparent);
  border-radius: 2px;
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--banana);
  box-shadow: 0 0 12px rgba(245, 208, 65, 0.55);
  border: 2px solid var(--bg-deep);
}

.timeline-item h3 {
  font-size: 1.15rem;
  color: var(--banana);
  margin-bottom: 0.35rem;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-item .when {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.35rem;
}

/* ─── CTA band ─── */

.cta-band {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(245, 208, 65, 0.12), transparent 60%),
    var(--bg-card);
  backdrop-filter: blur(12px);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--banana);
  margin-bottom: 0.65rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.cta-band .hero-actions {
  margin-top: 0.25rem;
}

/* ─── Quote block ─── */

.quote-block {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 2rem 1.75rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(245, 208, 65, 0.04);
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Page shell (inner pages) ─── */

.page {
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  min-height: 100vh;
}

/* ─── Faucet / list rows ─── */

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin-inline: auto;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.list-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft);
}

.list-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--banana);
  margin-bottom: 0.2rem;
}

.list-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Community links ─── */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.social-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-strong);
  box-shadow: var(--glow-banana);
}

.social-card:focus-visible {
  box-shadow: var(--focus);
}

.social-card .social-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.social-card .social-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--banana);
}

.social-card .social-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Play page ─── */

.play-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + 1.5rem) 1rem 2rem;
  min-height: 100vh;
}

.play-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.play-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--banana);
  text-shadow: 0 0 30px rgba(245, 208, 65, 0.35);
  margin-bottom: 0.35rem;
}

.play-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.game-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 360 / 480;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: 0 0 60px rgba(245, 208, 65, 0.18), 0 24px 48px rgba(0, 0, 0, 0.5);
  background: #061a10;
  touch-action: none;
  user-select: none;
}

.game-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 6, 0.88);
  backdrop-filter: blur(6px);
  z-index: 5;
  padding: 1.5rem;
  text-align: center;
}

.game-overlay.hidden {
  display: none;
}

.game-overlay h2 {
  font-size: 1.75rem;
  color: var(--banana);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 24px rgba(245, 208, 65, 0.4);
}

.game-overlay .fail-title {
  color: #f87171;
  text-shadow: 0 0 24px rgba(248, 113, 113, 0.4);
}

.game-overlay p {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.game-overlay .stat {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.game-overlay .stat em {
  color: var(--banana);
  font-style: normal;
}

.play-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Footer ─── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-brand {
  max-width: 260px;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--banana);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--banana);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer a.footer-official {
  color: var(--banana);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a.footer-official:hover {
  color: var(--banana-bright);
}

/* Legacy single-line footer support */
.footer > .container > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.footer > .container > p a {
  color: var(--banana);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer > .container > p a:hover {
  color: var(--banana-bright);
}

/* ─── Reveal animation ─── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-3,
  .steps,
  .game-cards {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    background: rgba(3, 8, 6, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a,
  .nav-drop-btn {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-size: 1.05rem;
    justify-content: space-between;
    border-radius: 12px;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    margin: 0.15rem 0 0.35rem;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.35rem;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: max-height 0.3s var(--ease), padding 0.3s;
  }

  .nav-dropdown::before {
    display: none;
  }

  .has-dropdown.open > .nav-dropdown {
    transform: none;
    pointer-events: auto;
    max-height: 280px;
    padding: 0.25rem 0.35rem 0.5rem;
  }



  .nav-dropdown a {
    padding: 0.7rem 1rem;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
  }

  .stat-cell .stat-value {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Desktop / fine pointer: open on hover — no click required to “lock” */
@media (hover: hover) and (min-width: 769px) {
  .has-dropdown:hover > .nav-dropdown,
  .has-dropdown:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .has-dropdown:hover > .nav-drop-btn,
  .has-dropdown:focus-within > .nav-drop-btn {
    color: var(--banana);
    background: rgba(245, 208, 65, 0.08);
  }

  .has-dropdown:hover > .nav-drop-btn .chev,
  .has-dropdown:focus-within > .nav-drop-btn .chev {
    transform: rotate(225deg) translateY(-1px);
  }

  /* Delay close slightly so diagonal mouse moves feel forgiving */
  .has-dropdown > .nav-dropdown {
    transition-delay: 0s;
  }
  .has-dropdown:not(:hover):not(:focus-within) > .nav-dropdown {
    transition-delay: 0.08s;
  }
}
