/*
Theme Name: Maple Arcades
Theme URI: https://maplearcades.com
Author: Maple Arcades
Description: Canada-focused free social casino games theme for Maple Arcades
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: maplearcades
*/

/* =============================================
   Maple Arcades — Free Social Casino Games | Canada
   Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --brand-primary:    #A72D2D;
  --brand-secondary:  #D84A4A;
  --brand-accent:     #D9A441;
  --brand-glow:       #D84A4A;
  --bg-darkest:       #0E141B;
  --bg-dark:          #151C24;
  --bg-card:          #1B242E;
  --bg-card2:         #24303B;
  --text-primary:     #F5EFE4;
  --text-muted:       #C9C0B2;
  --text-dim:         #8F988F;
  --border:           rgba(216,74,74,0.22);
  --border-bright:    rgba(216,74,74,0.48);
  --radius:           14px;
  --radius-lg:        22px;
  --transition:       0.3s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--brand-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-accent); }

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

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(216,74,74,.2); border: 1px solid var(--border-bright);
  color: var(--brand-glow);
}
.badge-accent { background: rgba(240,165,0,.15); border-color: rgba(240,165,0,.5); color: var(--brand-accent); }
.badge-red    { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.5); color: #f87171; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  cursor: pointer; border: none; transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff; box-shadow: 0 4px 16px rgba(167,45,45,.24);
}
.btn-primary:hover { background: var(--brand-secondary); box-shadow: 0 6px 20px rgba(216,74,74,.26); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent; border: 2px solid var(--border-bright);
  color: var(--brand-secondary);
}
.btn-outline:hover { background: rgba(216,74,74,.10); color: var(--brand-secondary); }
.btn-gold {
  background: #D9A441;
  color: #1a0a00; box-shadow: 0 4px 16px rgba(217,164,65,.28);
}
.btn-gold:hover { background: #e5b85f; box-shadow: 0 6px 24px rgba(217,164,65,.38); transform: translateY(-2px); color: #1a0a00; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* --- Animated background particles --- */
.bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-particles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,74,74,.35) 0%, transparent 70%);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* =============================================
   AGE VERIFICATION OVERLAY
   ============================================= */
#age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,26,20,.97);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.age-gate__box {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  animation: fadeUp .5s ease;
}
.age-gate__logo { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem; font-weight: 900;
  letter-spacing: .12em; color: var(--brand-accent);
  text-shadow: 0 0 16px rgba(216,74,74,.22); margin-bottom: 6px; }
.age-gate__logo span { color: var(--text-primary); }
.brand-maple { width: 1em; height: 1em; color: var(--brand-accent); flex: 0 0 auto; }
.age-gate__badge { margin: 12px auto 24px; }
.age-gate__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.age-gate__desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; line-height: 1.7; }
.age-gate__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.age-gate__disclaimer { margin-top: 24px; font-size: .75rem; color: var(--text-dim); line-height: 1.5; }

@media (max-width: 430px) {
  #age-gate {
    align-items: flex-start;
    overflow-y: auto;
    padding: 14px;
  }
  .age-gate__box {
    width: calc(100vw - 28px);
    max-width: 100%;
    margin: 20px 0;
    padding: 28px 18px;
  }
  .age-gate__logo {
    flex-wrap: wrap;
    font-size: 1.05rem;
    letter-spacing: .04em;
    line-height: 1.15;
  }
  .age-gate__logo span {
    flex: 1 1 180px;
    min-width: 0;
  }
  .age-gate__title {
    font-size: 1.25rem;
  }
  .age-gate__title,
  .age-gate__desc,
  .age-gate__disclaimer,
  .age-gate__actions .btn {
    overflow-wrap: anywhere;
  }
  .age-gate__actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
    padding: 12px 14px;
  }
}

/* =============================================
   COOKIE BANNER
   ============================================= */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 32px rgba(0,0,0,.4);
  transform: translateY(0); transition: transform .5s ease;
}
#cookie-banner.hidden { transform: translateY(120%); }
.cookie-banner__text { font-size: .85rem; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-banner__text a { color: var(--brand-secondary); }
.cookie-banner__btns { display: flex; gap: 10px; flex-shrink: 0; }

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: sticky; top: 0; z-index: 800;
  background: rgba(15,26,20,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; font-weight: 900;
  letter-spacing: .12em; color: var(--brand-accent);
  text-shadow: 0 0 14px rgba(216,74,74,.2);
  text-decoration: none; flex-shrink: 0;
}
.nav__logo span { color: var(--text-primary); }
.nav__links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav__links li { list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 7px 14px; border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif; font-size: .95rem; font-weight: 600;
  color: var(--text-muted); transition: all var(--transition); letter-spacing: .04em;
}
.nav__links a:hover, .nav__links a.active, .nav__links .current-menu-item > a {
  color: var(--text-primary); background: rgba(216,74,74,.18);
}
.nav__links a.nav-cta {
  background: var(--brand-primary);
  color: #fff; padding: 7px 18px;
  box-shadow: 0 2px 10px rgba(167,45,45,.28);
}
.nav__links a.nav-cta:hover { background: var(--brand-secondary); box-shadow: 0 4px 16px rgba(216,74,74,.3); }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all .3s; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(20,35,28,.97); padding: 16px 24px;
    border-bottom: 1px solid var(--border); gap: 4px; }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }
  .nav__links li, .nav__links a { width: 100%; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; padding: 112px 0 96px;
  overflow: hidden; text-align: center;
  background: var(--bg-darkest);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(216,74,74,.16) 0%, transparent 68%),
    radial-gradient(ellipse 48% 38% at 78% 76%, rgba(240,165,0,.10) 0%, transparent 62%),
    linear-gradient(180deg, rgba(15,26,20,.45), rgba(15,26,20,.96));
}
.hero__aurora {
  position: absolute; inset: -20% -15% 8%; z-index: 1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 10%, rgba(216,74,74,.24) 28%, rgba(139,92,246,.18) 46%, rgba(56,189,248,.20) 62%, transparent 82%),
    linear-gradient(65deg, transparent 18%, rgba(216,74,74,.16) 38%, rgba(240,165,0,.10) 58%, transparent 74%);
  filter: blur(34px);
  opacity: .72;
  transform: translate3d(-4%, 0, 0) skewY(-7deg);
  animation: auroraShift 12s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0% { transform: translate3d(-7%, -2%, 0) skewY(-8deg); opacity: .54; }
  50% { transform: translate3d(4%, 2%, 0) skewY(-4deg); opacity: .82; }
  100% { transform: translate3d(8%, -1%, 0) skewY(-9deg); opacity: .66; }
}
.hero__bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('images/hero-bg.svg');
  background-size: cover; background-position: center 30%;
  opacity: .06;
}
.hero__content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero__eyebrow { margin-bottom: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero__title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900; line-height: .95; margin-bottom: 22px;
  letter-spacing: .03em; color: var(--text-primary);
  text-shadow: 0 0 36px rgba(216,74,74,.24);
}
.hero__title .hl { color: var(--brand-secondary);
  text-shadow: 0 0 40px rgba(216,74,74,.5); }
.hero__title .hl-gold { color: var(--brand-accent);
  text-shadow: 0 0 40px rgba(240,165,0,.4); }
.hero__desc { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 620px; margin: 0 auto 34px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__trust-bar {
  margin: 32px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  color: var(--text-primary); font-size: .82rem; letter-spacing: .04em;
}
.hero__trust-bar span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--border-bright); border-radius: 999px;
  background: rgba(15,26,20,.66); box-shadow: inset 0 0 18px rgba(216,74,74,.06);
}
.hero__scroll-indicator {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }
.scroll-arrow { width: 20px; height: 20px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .hero__aurora,
  .bg-particles span,
  .hero__scroll-indicator {
    animation: none;
  }
}

/* =============================================
   SECTION SHARED
   ============================================= */
section { position: relative; padding: 80px 0; }
.section-label {
  font-family: 'Bebas Neue', sans-serif; font-size: .8rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brand-secondary);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 14px;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 560px; }
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* =============================================
   FEATURES STRIP
   ============================================= */
.features-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.features-strip__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.feature-item { text-align: center; }
.feature-item__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(216,74,74,.18); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 12px;
  transition: all var(--transition);
}
.feature-item:hover .feature-item__icon {
  background: rgba(216,74,74,.35); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(216,74,74,.25);
}
.feature-item__title { font-family: 'Bebas Neue', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.feature-item__text { font-size: .82rem; color: var(--text-muted); }

/* =============================================
   GAMES PREVIEW
   ============================================= */
.games-section { background: var(--bg-dark); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }

.game-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
  position: relative;
}
.game-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(216,74,74,.3);
}
.game-card__thumb {
  position: relative; height: 220px; overflow: hidden;
}
.game-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.game-card:hover .game-card__img { transform: scale(1.06); }
.game-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,2,15,.9) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 16px;
}
.game-card__rtp-badge {
  background: rgba(240,165,0,.15); border: 1px solid rgba(240,165,0,.4);
  color: var(--brand-accent); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .06em;
}
.game-card__play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(167,45,45,.28);
}
.game-card:hover .game-card__play-btn { transform: translate(-50%,-50%) scale(1); }
.game-card__body { padding: 20px; }
.game-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.game-card__name {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; font-weight: 700;
  margin-bottom: 6px;
}
.game-card__desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }
.game-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.game-card__stat { text-align: center; }
.game-card__stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--brand-secondary); }
.game-card__stat-label { font-size: .72rem; color: var(--text-dim); letter-spacing: .04em; text-transform: uppercase; }

/* =============================================
   REGULATORS / TRUST STRIP
   ============================================= */
.trust-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 32px; padding: 12px 0;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all var(--transition); opacity: .7;
}
.trust-item:hover { opacity: 1; transform: translateY(-2px); }
.trust-item img, .trust-item svg { height: 44px; max-width: 130px; object-fit: contain; filter: brightness(0) invert(1); opacity: .75; }
.trust-item.gwng-trust-strip__item--age .gwng-age-logo--19 {
  height: 52px;
  max-width: none;
  width: auto;
}
.trust-item.gwng-trust-strip__item--age .gwng-age-logo--18 {
  height: 48px;
  max-width: none;
  width: auto;
}
.trust-item .gwng-partner-logo--connex {
  height: 40px;
  max-width: 200px;
  width: auto;
}
.trust-item:hover img, .trust-item:hover svg { opacity: 1; transform: translateY(-1px); }
.gwng-trust-strip .trust-item:hover img,
.gwng-trust-strip .trust-item:hover svg {
  opacity: 1 !important;
  filter: grayscale(100%) brightness(0) invert(1) !important;
}
.gwng-trust-strip .trust-item:hover .gwng-partner-logo--rgc {
  filter: grayscale(100%) contrast(1.08) brightness(1.28) !important;
}
.gwng-trust-strip .trust-item:hover .gwng-age-logo--19 {
  filter: brightness(0) invert(1) !important;
}
.gwng-trust-strip .trust-item:hover .gwng-age-logo--18 {
  filter: grayscale(100%) brightness(0) invert(1) !important;
}
/* Legacy: some SVG partner marks used custom classes; partner strip now uses .gwng-partner-logo */
.trust-item img.logo-gamesense,
.footer__regulator-strip img.logo-gamesense {
  filter: none !important;
  mix-blend-mode: normal;
  opacity: .78;
}
.trust-item:hover img.logo-gamesense,
.footer__regulator-strip img.logo-gamesense:hover {
  filter: none !important;
  opacity: 1;
}
/* RGC SVG dark version — no filter needed */
.trust-item img.logo-dark-bg,
.footer__regulator-strip img.logo-dark-bg {
  filter: none !important;
  mix-blend-mode: normal;
  opacity: .78;
}
.trust-item:hover img.logo-dark-bg,
.footer__regulator-strip img.logo-dark-bg:hover {
  filter: none !important;
  opacity: 1;
}
.trust-item__label { font-size: .68rem; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.trust-18 {
  width: 48px; height: 48px; border-radius: 50%;
  background: #ef4444; display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: .75rem; font-weight: 900;
  color: #fff; border: 2px solid rgba(239,68,68,.5);
  box-shadow: 0 0 16px rgba(239,68,68,.35);
}

/* =============================================
   RESPONSIBLE GAMBLING CALCULATOR
   ============================================= */
.rg-section { background: var(--bg-darkest); }
.rg-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 860px) { .rg-inner { grid-template-columns: 1fr; } }
.rg-calculator {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.rg-calc__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.rg-calc__sub { font-size: .83rem; color: var(--text-muted); margin-bottom: 24px; }
.rg-field { margin-bottom: 18px; }
.rg-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; letter-spacing: .05em; text-transform: uppercase; }
.rg-field input[type="range"] { width: 100%; accent-color: var(--brand-primary); cursor: pointer; }
.rg-field__val {
  display: flex; justify-content: space-between;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--brand-secondary); margin-top: 4px;
}
.rg-result {
  background: rgba(216,74,74,.1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-top: 20px;
  font-size: .9rem;
}
.rg-result__row { display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--border); }
.rg-result__row:last-child { border: none; }
.rg-result__key { color: var(--text-muted); }
.rg-result__val { font-weight: 700; color: var(--brand-secondary); }
.rg-result__val.warn { color: #f87171; }
.rg-links { display: flex; flex-direction: column; gap: 14px; }
.rg-link-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition);
}
.rg-link-card:hover {
  border-color: var(--border-bright); transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(216,74,74,.2); color: var(--text-primary);
}
.rg-link-card__icon { font-size: 1.4rem; flex-shrink: 0; }
.rg-link-card__text { flex: 1; }
.rg-link-card__name { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.rg-link-card__desc { font-size: .78rem; color: var(--text-muted); }
.rg-link-card__arr { color: var(--text-dim); font-size: 1.2rem; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(to right, transparent, var(--brand-primary), transparent);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand__logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; font-weight: 900;
  letter-spacing: .15em; color: var(--brand-primary);
  text-shadow: 0 0 18px rgba(216,74,74,.5); margin-bottom: 12px; }
.footer__brand__logo span { color: var(--brand-accent); }
.footer__brand__desc { font-size: .85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer__regulator-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer__regulator-strip img { height: 28px; object-fit: contain; opacity: .55; filter: brightness(0) invert(1); transition: opacity var(--transition); }
.footer__regulator-strip img:hover { opacity: 1; filter: none; }
.footer__regulator-strip img.logo-gamesense:hover { mix-blend-mode: screen; filter: grayscale(0) brightness(1.4); opacity: 1; }

.footer__col-title { font-family: 'Bebas Neue', sans-serif; font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: .87rem; color: var(--text-muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--text-primary); }
.rg-logos {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.rg-logos__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.rg-logos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  align-items: center;
}
.rg-logos__grid .gwng-partner-strip__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.rg-logos__grid .gwng-partner-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.88;
  filter: grayscale(100%) brightness(0) invert(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.rg-logos__grid .gwng-partner-logo--rgc {
  filter: grayscale(100%) contrast(1.05) brightness(1.15);
}
.rg-logos__grid .gwng-partner-strip__link:hover .gwng-partner-logo {
  opacity: 1;
}
.rg-logos__disclaimer {
  max-width: 760px;
  margin: 1.25rem auto 0;
  color: rgba(255,255,255,0.55);
  font-size: .78rem;
  line-height: 1.6;
}
.footer__bottom {
  padding: 20px 0; text-align: center;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: .78rem; color: var(--text-dim); }
.footer__18 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--text-dim); 
}
.footer__18-badge {
  background: #ef4444; color: #fff; font-weight: 900;
  font-family: 'Bebas Neue', sans-serif; font-size: .65rem;
  padding: 3px 7px; border-radius: 6px; letter-spacing: .05em;
}
.footer__disclaimer {
  width: 100%; text-align: center; font-size: .75rem; color: var(--text-dim);
  line-height: 1.6; padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

/* =============================================
   GAME PAGE – SLOT MACHINE ENGINE
   ============================================= */
.slot-page { background: var(--bg-darkest); min-height: 100vh; padding-bottom: 60px; }
.slot-hero {
  background: linear-gradient(135deg, var(--bg-dark), #0d0520);
  padding: 60px 0 40px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.slot-hero__title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; letter-spacing: .08em; }
.slot-hero__sub { color: var(--text-muted); margin-top: 8px; font-size: .95rem; }

.game-arena {
  max-width: 900px; margin: 40px auto; padding: 0 20px;
}

/* HUD Bar */
.hud-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px;
}
.hud-cell { text-align: center; }
.hud-cell__label { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 4px; }
.hud-cell__val {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--brand-secondary); transition: all .3s;
}
.hud-cell__val.win-flash { color: var(--brand-accent); text-shadow: 0 0 20px rgba(240,165,0,.8); animation: winFlash .6s ease 3; }
@keyframes winFlash { 0%,100%{opacity:1} 50%{opacity:.3} }
.hud-cell__val.balance-up { animation: balanceUp .4s ease; }
@keyframes balanceUp { 0%{transform:scale(1)} 50%{transform:scale(1.15);color:#a3e635} 100%{transform:scale(1)} }

/* Slot Machine Frame */
.slot-machine {
  background: var(--bg-card2);
  border: 2px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(216,74,74,.2), inset 0 0 30px rgba(0,0,0,.3);
}
.slot-machine__header {
  background: linear-gradient(135deg, #1a0a40, #151C24);
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.slot-machine__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--brand-secondary); letter-spacing: .1em; }
.slot-machine__badge-strip { display: flex; gap: 8px; }
.slot-paylines { background: rgba(240,165,0,.08); border: 1px solid rgba(240,165,0,.2);
  color: var(--brand-accent); font-size: .72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; letter-spacing: .06em; }

/* Reels */
.reels-container {
  padding: 24px 20px; display: flex; gap: 10px; justify-content: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.1));
  position: relative;
}
.reel-wrapper {
  flex: 1; max-width: 120px;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 20px rgba(0,0,0,.5);
  position: relative;
}
/* Reel shine lines */
.reel-wrapper::before, .reel-wrapper::after {
  content: ''; position: absolute; left: 0; right: 0; height: 40px; z-index: 10; pointer-events: none;
}
.reel-wrapper::before { top: 0; background: linear-gradient(to bottom, rgba(13,8,32,.95), transparent); }
.reel-wrapper::after  { bottom: 0; background: linear-gradient(to top, rgba(13,8,32,.95), transparent); }

.reel {
  height: 348px; /* 3 symbols × 116px */
  overflow: hidden; position: relative;
}
.reel-strip {
  display: flex; flex-direction: column;
  transition: none; /* controlled by JS */
}
.symbol {
  width: 100%; height: 116px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative; flex-shrink: 0;
}
/* Payline indicator */
.payline-overlay {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 116px; z-index: 5; pointer-events: none;
  border-top: 2px solid rgba(240,165,0,.4);
  border-bottom: 2px solid rgba(240,165,0,.4);
  background: rgba(240,165,0,.04);
}

/* Win frame */
.win-frame {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  border: 3px solid var(--brand-accent);
  border-radius: 10px; opacity: 0;
  box-shadow: 0 0 30px rgba(240,165,0,.5), inset 0 0 20px rgba(240,165,0,.1);
  animation: none;
}
.win-frame.active { opacity: 1; animation: pulseWin 1s ease infinite; }
@keyframes pulseWin { 0%,100%{opacity:1;box-shadow:0 0 30px rgba(240,165,0,.5)} 50%{opacity:.5;box-shadow:0 0 60px rgba(240,165,0,.9)} }

/* Slot controls */
.slot-controls {
  background: linear-gradient(to bottom, #151C24, #182820);
  padding: 20px 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.bet-selector { display: flex; align-items: center; gap: 8px; }
.bet-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(216,74,74,.2); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1.1rem; cursor: pointer;
  transition: all var(--transition); display: flex; align-items: center; justify-content: center;
}
.bet-btn:hover { background: rgba(216,74,74,.4); }
.bet-display {
  font-family: 'Bebas Neue', sans-serif; font-size: .9rem; font-weight: 700;
  color: var(--brand-accent); min-width: 80px; text-align: center;
  background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px;
}
.spin-btn {
  flex: 1; max-width: 220px; padding: 14px 24px;
  border-radius: var(--radius); border: none; cursor: pointer;
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .12em;
  background: var(--brand-primary);
  color: #fff; text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(167,45,45,.28);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.spin-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.15) 60%, transparent 80%);
  transform: translateX(-100%); transition: transform .5s ease;
}
.spin-btn:hover::after { transform: translateX(100%); }
.spin-btn:hover { background: var(--brand-secondary); box-shadow: 0 8px 24px rgba(216,74,74,.30); transform: translateY(-2px); }
.spin-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.spin-btn:active { transform: scale(.97); }
.autoplay-btn {
  padding: 10px 16px; border-radius: var(--radius);
  background: rgba(216,74,74,.15); border: 1px solid var(--border);
  color: var(--text-muted); font-family: 'Bebas Neue', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); letter-spacing: .04em;
}
.autoplay-btn.active { background: rgba(216,74,74,.35); border-color: var(--border-bright); color: var(--text-primary); }

/* Win message */
.win-message {
  margin: 0 20px 16px;
  background: linear-gradient(135deg, rgba(240,165,0,.15), rgba(240,165,0,.05));
  border: 1px solid rgba(240,165,0,.35);
  border-radius: var(--radius); padding: 14px 20px;
  text-align: center; display: none;
}
.win-message.show { display: block; animation: fadeUp .3s ease; }
.win-message__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; font-weight: 900; color: var(--brand-accent); margin-bottom: 4px; }
.win-message__amount { font-size: .85rem; color: var(--text-muted); }
.win-message__coins { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--brand-accent); }

/* Bonus badge */
.bonus-badge {
  position: absolute; top: -8px; right: -8px; z-index: 20;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: .6rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .06em;
  animation: pulseBadge 2s ease infinite;
}
@keyframes pulseBadge { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }

/* Recent wins ticker */
.wins-ticker {
  background: rgba(0,0,0,.3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px; margin: 0 0 20px;
  overflow: hidden;
}
.wins-ticker__label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 6px; }
.wins-ticker__items { display: flex; gap: 20px; overflow: hidden; }
.wins-ticker__item { display: flex; align-items: center; gap: 6px; font-size: .82rem; white-space: nowrap;
  color: var(--text-muted); }
.wins-ticker__item span { color: var(--brand-accent); font-weight: 700; }

/* Paytable */
.paytable {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.paytable__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; }
.paytable__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.paytable__row {
  background: rgba(0,0,0,.2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; text-align: center;
  transition: all var(--transition);
}
.paytable__row:hover { border-color: var(--border-bright); background: rgba(216,74,74,.1); }
.paytable__sym { font-size: 1.6rem; margin-bottom: 4px; }
.paytable__mult { font-family: 'Bebas Neue', sans-serif; font-size: .7rem; font-weight: 700; color: var(--brand-accent); }
.paytable__name { font-size: .68rem; color: var(--text-dim); margin-top: 2px; }

/* =============================================
   POLICY PAGES
   ============================================= */
.policy-page { padding: 80px 0; }
.policy-page__header {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px; margin-bottom: 48px;
}
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: var(--brand-secondary); margin: 36px 0 12px; }
.policy-content h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.policy-content p { color: var(--text-muted); font-size: .92rem; line-height: 1.8; margin-bottom: 14px; }
.policy-content ul { color: var(--text-muted); font-size: .92rem; line-height: 1.8; padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--brand-secondary); }
.policy-content a:hover { color: var(--brand-accent); }

/* =============================================
   CONTACTS PAGE
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-card__icon { font-size: 2rem; margin-bottom: 14px; }
.contact-card__title { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.contact-card__val { color: var(--brand-secondary); font-size: .95rem; margin-bottom: 6px; }
.contact-card__sub { font-size: .82rem; color: var(--text-muted); }
.contact-form { background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; letter-spacing: .05em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  color: var(--text-primary); font-size: .9rem; font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition); outline: none; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--border-bright); }
.form-success {
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--radius); padding: 14px 20px; color: #86efac;
  font-size: .88rem; display: none; margin-top: 12px;
}
.form-success.show { display: block; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-in.visible { opacity: 1; transform: none; }

/* Keep brand marks steady and restrained. */
.glow-pulse { animation: none; }

/* Confetti for big wins */
.confetti-piece {
  position: fixed; top: -10px; pointer-events: none; z-index: 9998;
  border-radius: 2px; animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .hud-bar { grid-template-columns: 1fr 1fr; }
  .reels-container { gap: 6px; padding: 16px 12px; }
  .reel-wrapper { max-width: 90px; }
  .symbol { font-size: 2.2rem; height: 90px; }
  .reel { height: 270px; }
  .payline-overlay { height: 90px; }
  .slot-controls { gap: 10px; }
  .spin-btn { max-width: 160px; font-size: .85rem; }
}
@media (max-width: 400px) {
  .reel-wrapper { max-width: 70px; }
  .symbol { font-size: 1.7rem; }
}

/* --- WordPress: primary menu wraps in ul.menu --- */
.nav__links > ul.menu,
.nav__links > ul.gwng-nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links > ul.menu li,
.nav__links > ul.gwng-nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 768px) {
  .nav__links > ul.menu,
  .nav__links > ul.gwng-nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }
}

/* Footer partner strip: age logos (19+ / 18+ AB MB QC) */
.gwng-partner-strip__age {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}
.gwng-partner-strip__age .gwng-age-badges {
  gap: 1.25rem 2rem;
}

.gwng-age-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}
.gwng-age-badges__pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.gwng-age-badges__cap {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  max-width: 110px;
  line-height: 1.25;
}
.gwng-age-logo {
  display: block;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
/* 19+ mark — white on dark */
.gwng-age-logo--19 {
  height: 52px;
  max-height: 56px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
/* 18+ mark — monochrome white */
.gwng-age-logo--18 {
  height: 48px;
  max-height: 52px;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.9;
}

/* ConnexOntario footer / trust strip (WebP) */
.gwng-partner-logo--connex {
  height: 36px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.88;
}
.rg-logos__grid .gwng-partner-strip__link:hover .gwng-partner-logo--connex {
  opacity: 1;
}

.gwng-trust-strip__item--age {
  min-width: 200px;
}
.gwng-trust-strip__item--age .gwng-age-badges__cap {
  color: var(--text-dim);
}

/* Trust strip partner logos (monochrome / white on dark) */
.gwng-trust-strip__grid .gwng-partner-logo {
  height: 44px;
  max-width: 150px;
  opacity: 0.88;
  filter: grayscale(100%) brightness(0) invert(1);
}
.gwng-trust-strip__grid .gwng-partner-logo--rgc {
  filter: grayscale(100%) contrast(1.05) brightness(1.15);
}
.gwng-trust-strip__grid .gwng-partner-logo--connex {
  height: 40px;
  max-width: 200px;
  filter: grayscale(100%) brightness(0) invert(1);
}
.gwng-trust-strip__item:hover .gwng-partner-logo {
  opacity: 1;
}
.gwng-trust-strip__item:hover .gwng-partner-logo--rgc {
  filter: grayscale(100%) contrast(1.08) brightness(1.28);
}

.gwng-faq__item {
  margin-bottom: 2rem;
}
.gwng-faq__item h2 {
  margin-bottom: 0.4rem;
  font-size: 1.12rem;
}
