/* Maple Play Club — tone: warm Canadian lounge host, energetic but trustworthy */

:root {
  --ink: #0f1f1a;
  --forest: #143d32;
  --forest-deep: #0a241c;
  --maple: #e85d4c;
  --maple-glow: #ff8a7a;
  --gold: #d4a84b;
  --gold-soft: #f0d78c;
  --cream: #f7f2e9;
  --mist: rgba(247, 242, 233, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(10, 36, 28, 0.35);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--forest-deep);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  transform-origin: 50% 40%;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(232, 93, 76, 0.22), transparent 52%),
    radial-gradient(ellipse 90% 70% at 95% 15%, rgba(212, 168, 75, 0.14), transparent 48%),
    radial-gradient(ellipse 50% 45% at 50% 105%, rgba(20, 61, 50, 0.95), transparent 58%),
    linear-gradient(165deg, var(--forest-deep) 0%, #0d2a22 38%, var(--forest) 100%);
  z-index: -2;
  pointer-events: none;
  animation: mpcBgMesh 28s ease-in-out infinite alternate;
}

@keyframes mpcBgMesh {
  0% {
    transform: scale(1) translate(0, 0);
    filter: brightness(1);
  }
  100% {
    transform: scale(1.05) translate(-1.5%, 0.8%);
    filter: brightness(1.06);
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  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");
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10, 36, 28, 0.92), rgba(10, 36, 28, 0.75));
  border-bottom: 1px solid var(--mist);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--maple), var(--gold));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--forest-deep);
  box-shadow: 0 8px 24px rgba(232, 93, 76, 0.35);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.logo-text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: var(--mist);
  border: 1px solid rgba(247, 242, 233, 0.15);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-family: var(--font-body);
  cursor: pointer;
}

.nav-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.nav-primary a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.88;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--maple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--maple), #c73d2e);
  color: #fff;
  box-shadow: 0 10px 30px rgba(232, 93, 76, 0.4);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 40px rgba(232, 93, 76, 0.5);
}

.btn-ghost {
  background: var(--mist);
  color: var(--cream);
  border: 1px solid rgba(247, 242, 233, 0.2);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(247, 242, 233, 0.12);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.15);
  border: 1px solid rgba(212, 168, 75, 0.35);
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--gold-soft), #fff, var(--maple-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--mist);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-soft);
}

.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(247, 242, 233, 0.12);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 93, 76, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.game-mini {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-mini a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(247, 242, 233, 0.08);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.game-mini a:hover {
  border-color: var(--maple);
  transform: translateX(4px);
  color: #fff;
}

.game-mini em {
  font-style: normal;
  color: var(--gold-soft);
  font-size: 0.85rem;
}

/* Sections */
section {
  padding: 3rem 0;
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  opacity: 0.88;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(247, 242, 233, 0.1);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(212, 168, 75, 0.45);
  transform: translateY(-4px);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  opacity: 0.88;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(232, 93, 76, 0.2);
  color: var(--maple-glow);
  margin-bottom: 0.75rem;
}

/* Responsible banners */
.banner-strip {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.banner-age {
  background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
  border: 2px solid var(--maple);
}

.banner-age .age-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--maple);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.banner-responsible {
  background: rgba(0, 177, 137, 0.12);
  border: 1px solid rgba(0, 177, 137, 0.35);
}

.banner-strip strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

/* Regulators */
.regulators {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--mist);
}

.regulators h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.regulator-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
}

.regulator-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 242, 233, 0.1);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.regulator-grid a:hover {
  border-color: rgba(212, 168, 75, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.regulator-grid img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.regulator-grid img[src*="ConnexOntario"] {
  max-height: 36px;
}

.regulator-grid img[src*="camh"] {
  max-height: 40px;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--mist);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--cream);
  opacity: 0.85;
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-legal {
  opacity: 0.65;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Content pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  opacity: 0.92;
}

.prose ul {
  padding-left: 1.25rem;
}

.contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--mist);
}

/* Game player layout */
.player-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 4vw;
  background: rgba(10, 36, 28, 0.95);
  border-bottom: 1px solid var(--mist);
}

.player-frame-wrap {
  flex: 1;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  min-height: calc(100vh - 120px);
}

.player-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: min(720px, 85vh);
  flex: 1;
  border: none;
}

.player-disclaimer {
  padding: 0.75rem 4vw;
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: center;
  background: var(--forest-deep);
  border-top: 1px solid var(--mist);
}

/* FAQ */
.faq details {
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--mist);
  margin-bottom: 0.75rem;
  padding: 0.85rem 1.1rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--gold-soft);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 36, 28, 0.98);
    border-bottom: 1px solid var(--mist);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .nav-primary.is-open {
    max-height: 480px;
  }

  .nav-primary ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4vw 1.25rem;
    gap: 0;
  }

  .nav-primary a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--mist);
  }

  .nav-primary a[aria-current="page"] {
    border-bottom-color: var(--maple);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Reference-inspired: stats, features, splits, age gate, mini-game —— */

.stats-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-tile {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(247, 242, 233, 0.1);
}

.stat-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-soft);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-tile span {
  font-size: 0.82rem;
  opacity: 0.82;
  line-height: 1.35;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--mist);
}

.feature-row-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 93, 76, 0.35), rgba(212, 168, 75, 0.2));
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}

.feature-row h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.feature-row p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

.spotlight-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(232, 93, 76, 0.15), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(232, 93, 76, 0.35);
  box-shadow: var(--shadow);
}

.spotlight-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.game-deep {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(247, 242, 233, 0.1);
  height: 100%;
}

.game-deep h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.game-deep ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

.game-deep li {
  margin-bottom: 0.35rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--maple);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.quote-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--gold);
  font-style: italic;
  font-size: 0.98rem;
  opacity: 0.92;
}

.quote-card cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.7;
}

.faq-teaser {
  margin-top: 1rem;
}

.faq-teaser details {
  margin-bottom: 0.5rem;
}

/* Bottom consent banners: age + cookies */
.mpc-body--bottom-banner {
  padding-bottom: clamp(120px, 28vw, 220px);
}

.mpc-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(247, 242, 233, 0.12);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  animation: mpcBannerSlide 0.45s var(--ease) both;
}

@keyframes mpcBannerSlide {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mpc-consent-banner--age {
  background: linear-gradient(180deg, rgba(20, 61, 50, 0.98), rgba(10, 36, 28, 0.99));
}

.mpc-consent-banner--cookies {
  background: linear-gradient(180deg, rgba(15, 31, 26, 0.98), rgba(8, 22, 18, 0.99));
  border-top-color: rgba(212, 168, 75, 0.25);
}

.mpc-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.mpc-consent-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: min(100%, 280px);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cream);
}

.mpc-consent-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.mpc-consent-banner--age .mpc-consent-text strong {
  color: var(--gold-soft);
}

.mpc-consent-detail {
  opacity: 0.9;
}

.mpc-consent-detail a {
  color: var(--gold-soft);
  font-weight: 600;
}

.mpc-consent-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--maple);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(232, 93, 76, 0.4);
}

.mpc-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.mpc-btn-banner-ghost {
  color: var(--cream) !important;
  border-color: rgba(247, 242, 233, 0.28) !important;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .mpc-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .mpc-consent-actions {
    flex-direction: column;
  }

  .mpc-consent-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mpc-consent-banner {
    animation: none;
  }
}

/* Maple Mini Spin (in-page game) */
.mini-page {
  padding-bottom: 3rem;
}

.mini-layout {
  display: grid;
  grid-template-columns: 1fr min(320px, 100%);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .mini-layout {
    grid-template-columns: 1fr;
  }
}

.mini-machine {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 168, 75, 0.25);
}

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

.mini-cell {
  aspect-ratio: 1;
  max-height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1a2e28, #0d1f1a);
  border: 2px solid rgba(247, 242, 233, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mini-symbol {
  width: min(78%, 4.25rem);
  height: min(78%, 4.25rem);
  color: var(--gold-soft);
}

.sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pay-symbols {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.mini-pay-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--gold-soft);
}

/* Animated thematic backdrop (inserted by main.js) */
.mpc-bg-theme {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.mpc-bg-leaf {
  position: absolute;
  width: min(12vw, 130px);
  height: min(12vw, 130px);
  background: url("../assets/icons/leaf-deco.svg") no-repeat center / contain;
  opacity: 0.14;
  animation: mpcLeafFloat 24s ease-in-out infinite;
}

.mpc-bg-leaf--1 { left: 2%; top: 8%; animation-duration: 26s; }
.mpc-bg-leaf--2 { right: 4%; top: 14%; animation-duration: 22s; animation-delay: -5s; }
.mpc-bg-leaf--3 { left: 12%; bottom: 18%; animation-duration: 30s; animation-delay: -8s; opacity: 0.1; }
.mpc-bg-leaf--4 { right: 14%; bottom: 10%; animation-duration: 20s; animation-delay: -2s; }
.mpc-bg-leaf--5 { left: 42%; top: 4%; animation-duration: 28s; animation-delay: -12s; width: min(8vw, 72px); height: min(8vw, 72px); opacity: 0.09; }
.mpc-bg-leaf--6 { right: 38%; bottom: 22%; animation-duration: 25s; animation-delay: -6s; }
.mpc-bg-leaf--7 { left: 6%; top: 48%; animation-duration: 32s; animation-delay: -15s; opacity: 0.11; }
.mpc-bg-leaf--8 { right: 8%; top: 52%; animation-duration: 21s; animation-delay: -9s; }
.mpc-bg-leaf--9 { left: 50%; top: 72%; margin-left: -40px; animation-duration: 27s; animation-delay: -4s; opacity: 0.08; width: min(10vw, 90px); height: min(10vw, 90px); }

@keyframes mpcLeafFloat {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  33% { transform: translate(10px, 14px) rotate(4deg); }
  66% { transform: translate(-8px, 8px) rotate(-3deg); }
}

.mpc-bg-chip {
  position: absolute;
  width: min(7vw, 64px);
  height: min(7vw, 64px);
  background: url("../assets/icons/chip-deco.svg") no-repeat center / contain;
  opacity: 0.09;
  animation: mpcChipDrift 38s linear infinite;
}

.mpc-bg-chip--1 { left: 22%; top: 28%; animation-duration: 42s; }
.mpc-bg-chip--2 { right: 18%; top: 38%; animation-duration: 36s; animation-delay: -8s; }
.mpc-bg-chip--3 { left: 55%; bottom: 35%; animation-duration: 44s; animation-delay: -14s; }
.mpc-bg-chip--4 { right: 42%; top: 62%; animation-duration: 33s; animation-delay: -20s; opacity: 0.07; }
.mpc-bg-chip--5 { left: 30%; bottom: 12%; animation-duration: 40s; animation-delay: -5s; }
.mpc-bg-chip--6 { right: 28%; top: 8%; animation-duration: 35s; animation-delay: -11s; }

@keyframes mpcChipDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-18px, 22px) rotate(360deg); }
}

.mpc-bg-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 10px var(--maple-glow);
  opacity: 0.4;
  animation: mpcSparkTw 4s ease-in-out infinite;
}

.mpc-bg-spark--1 { left: 18%; top: 22%; animation-delay: 0s; }
.mpc-bg-spark--2 { left: 35%; top: 55%; animation-delay: -0.7s; }
.mpc-bg-spark--3 { right: 25%; top: 18%; animation-delay: -1.4s; }
.mpc-bg-spark--4 { right: 12%; top: 42%; animation-delay: -2.1s; }
.mpc-bg-spark--5 { left: 48%; top: 32%; animation-delay: -2.8s; }
.mpc-bg-spark--6 { left: 62%; bottom: 28%; animation-delay: -1.2s; }
.mpc-bg-spark--7 { right: 35%; bottom: 18%; animation-delay: -3.2s; }
.mpc-bg-spark--8 { left: 8%; bottom: 35%; animation-delay: -0.5s; }
.mpc-bg-spark--9 { right: 48%; top: 68%; animation-delay: -2.5s; }
.mpc-bg-spark--10 { left: 72%; top: 12%; animation-delay: -1.8s; }
.mpc-bg-spark--11 { left: 28%; top: 78%; animation-delay: -3.5s; }
.mpc-bg-spark--12 { right: 6%; bottom: 42%; animation-delay: -0.9s; }
.mpc-bg-spark--13 { left: 52%; bottom: 8%; animation-delay: -2.2s; }
.mpc-bg-spark--14 { right: 58%; top: 48%; animation-delay: -1.1s; }

@keyframes mpcSparkTw {
  0%, 100% { opacity: 0.12; transform: scale(0.6); }
  50% { opacity: 0.65; transform: scale(1.35); }
}

.feature-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--gold-soft);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .mpc-bg-leaf,
  .mpc-bg-chip,
  .mpc-bg-spark {
    animation: none !important;
  }
}

.mini-cell.is-spinning {
  animation: mini-pulse 0.12s ease-in-out infinite alternate;
}

@keyframes mini-pulse {
  from {
    border-color: rgba(232, 93, 76, 0.3);
  }
  to {
    border-color: rgba(212, 168, 75, 0.6);
  }
}

.mini-cell.win-flash {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(212, 168, 75, 0.45);
}

.mini-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.mini-hud strong {
  color: var(--gold-soft);
}

.mini-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mini-paytable {
  font-size: 0.88rem;
}

.mini-paytable table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.mini-paytable td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--mist);
}

.mini-achievements {
  margin-top: 1.5rem;
}

.mini-achievements li {
  list-style: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mist);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.mini-achievements li.unlocked {
  color: var(--gold-soft);
}

.mini-achievements ul {
  margin: 0;
  padding: 0;
}

.badge-locked {
  opacity: 0.45;
  font-size: 0.75rem;
}

/* —— Auth nav & forms —— */
.nav-auth-wrap {
  margin-left: auto;
}

.nav-auth-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
}

.nav-auth-hi {
  font-size: 0.86rem;
  opacity: 0.9;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-auth-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-soft) !important;
  border-bottom: none !important;
}

.nav-auth-join {
  padding: 0.45rem 1.1rem !important;
  font-size: 0.88rem !important;
}

.nav-auth-out.nav-auth-out {
  padding: 0.4rem 0.95rem !important;
  font-size: 0.85rem !important;
  color: var(--cream) !important;
}

.club-pulse {
  background: linear-gradient(90deg, rgba(232, 93, 76, 0.12), rgba(0, 0, 0, 0.35), rgba(212, 168, 75, 0.1));
  border-bottom: 1px solid var(--mist);
  padding: 0.55rem 0;
  font-size: 0.9rem;
}

.club-pulse-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.club-pulse-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--maple-glow);
}

.club-pulse-text {
  opacity: 0.92;
  flex: 1;
  min-width: 200px;
}

.lively-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

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

.vibe-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(247, 242, 233, 0.1);
}

.vibe-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.vibe-stat {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.vibe-stat-note {
  font-size: 0.88rem;
  opacity: 0.82;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mist);
  font-size: 0.92rem;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--maple);
  margin-top: 0.45rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(232, 93, 76, 0.5);
}

.activity-sub {
  display: block;
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 0.2rem;
}

.desk-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.desk-note {
  border-radius: var(--radius);
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.desk-note time {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--maple-glow);
}

.desk-note h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.35rem 0 0.5rem;
}

.desk-note p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
}

.auth-page .auth-main {
  padding: 2.5rem 0 3rem;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(247, 242, 233, 0.12);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.auth-lead {
  margin: 0 0 1rem;
  opacity: 0.9;
  font-size: 0.98rem;
}

.auth-disclaimer {
  font-size: 0.85rem;
  opacity: 0.85;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(212, 168, 75, 0.08);
  border: 1px solid rgba(212, 168, 75, 0.25);
  margin-bottom: 1.25rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(247, 242, 233, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.form-checkbox input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.btn-block {
  width: 100%;
}

.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.auth-message.is-error {
  background: rgba(232, 93, 76, 0.15);
  border: 1px solid rgba(232, 93, 76, 0.45);
}

.auth-message.is-success {
  background: rgba(0, 177, 137, 0.12);
  border: 1px solid rgba(0, 177, 137, 0.35);
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.account-panel-wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .account-panel-wide {
    grid-column: span 2;
  }
}

.account-panel {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(247, 242, 233, 0.1);
}

.account-panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.account-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
  font-size: 0.92rem;
}

.account-dl dt {
  opacity: 0.7;
  margin: 0;
}

.account-dl dd {
  margin: 0;
  font-weight: 600;
}

.account-hint {
  font-size: 0.85rem;
  opacity: 0.78;
  margin-top: 1rem;
  margin-bottom: 0;
}

.daily-status {
  min-height: 2.5rem;
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.news-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.news-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(247, 242, 233, 0.1);
}

.news-date {
  font-size: 0.8rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.news-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.35rem 0 0.65rem;
}

@media (max-width: 860px) {
  .nav-auth-wrap {
    margin-left: 0;
    width: 100%;
    padding-top: 0.65rem;
    border-top: 1px solid var(--mist);
  }

  .nav-auth-cluster {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .club-pulse-text {
    transition: none !important;
  }
}
