:root {
    --bg1: #0b3d2e;
    /* deep jungle */
    --bg2: #0f5132;
    --accent: #ffd166;
    /* banana */
    --accent2: #06d6a0;
    /* parrot green */
    --danger: #ef476f;
    --panel: rgba(255, 255, 255, .08);
    --glass: rgba(255, 255, 255, .12);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --reel-width: 120px;
    --reel-height: 120px;
    --rows: 3;
    --cols: 5;
    --gap: 12px;
    --mint: #D8F7D6;
    --mint-2: #E9FCE9;
    --deep: #0A2540;
    --text: #102A43;
    --success: #22C55E;
    --muted: #6B7280;
    --radius: 22px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    background: radial-gradient(1000px 600px at 20% 10%, #145a3b 0%, var(--bg1) 55%),
        radial-gradient(800px 500px at 80% 0%, #18724b 0%, var(--bg2) 60%),
        linear-gradient(180deg, #0b2f25, #0b2f25);
    color: #ecf6f2;
    overflow-x: hidden;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px
}

a {
  color: var(--deep);
  text-decoration: none
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .06)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: var(--deep)
}

nav a {
  margin: 0 10px;
  color: var(--deep);
  font-weight: 600
}

/* Burger menu styles */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent !important;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  border-radius: 0 !important; /* Remove any potential border radius */
  box-shadow: none !important; /* Remove any potential box shadow */
  outline: none !important; /* Remove any potential outline */
  appearance: none !important; /* Remove any platform-specific styling */
  -webkit-appearance: none !important; /* Remove any platform-specific styling */
  -moz-appearance: none !important; /* Remove any platform-specific styling */
}

.burger-menu:focus {
  outline: none;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: var(--deep);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  padding: 72px 20px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 9;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  color: var(--deep);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 8;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wrap {
    max-width: 980px;
    margin: 32px auto;
    padding: 20px;
}

.title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: clamp(22px, 4vw, 34px);
    text-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

.title .logo {
    font-size: 1.2em;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4));
}

.stats {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--glass);
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.machine {
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.machine::before,
.machine::after {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    height: 80%;
    width: 60%;
    background: radial-gradient(closest-side, rgba(6, 214, 160, .20), transparent 60%);
    transform: rotate(8deg);
    pointer-events: none;
}

.machine::after {
    inset: auto auto -20% -10%;
    transform: rotate(-8deg);
}

.reels {
    display: grid;
    grid-template-columns: repeat(var(--cols), var(--reel-width));
    gap: var(--gap);
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, .15);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    margin: 15px 0;
}

.reel {
    width: var(--reel-width);
    height: calc(var(--reel-height) * var(--rows));
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #0b3a2b, #0c2f24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 8px 24px rgba(0, 0, 0, .35);
    position: relative;
}

.strip {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    will-change: transform;
    transform: translateY(0px);
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--reel-height);
    font-size: 64px;
    user-select: none;
    text-shadow: 0 4px 10px rgba(0, 0, 0, .45);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.left,
.right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

button,
.number {
    background: linear-gradient(180deg, #1b6f4c, #134f37);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .20);
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover {
    filter: brightness(1.05);
}

button:active {
    transform: translateY(1px);
}

button[disabled] {
    opacity: .6;
    cursor: not-allowed;
    filter: grayscale(.2);
}

.primary {
    background: linear-gradient(180deg, #3fb37c, #1b8458);
    border-color: rgba(255, 255, 255, .28);
}

.danger {
    background: linear-gradient(180deg, #b33f5a, #84213b);
}

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

.number input {
    width: 90px;
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-align: center;
}

.number button {
    width: 38px;
    padding: 8px;
}

.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    background: rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

.paylines {
    opacity: .85;
    font-size: 12px;
}

.banner {
    display: none;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 209, 102, .18);
    border: 1px dashed rgba(255, 209, 102, .5);
    margin: 10px 0;
}

.banner.on {
    display: block;
}

/* Footer styles */
footer {
  background: #0b1f33;
  color: #cbd5e1;
  padding: 48px 0 24px
}

footer a {
  color: #e2e8f0
}

.disclaimer {
  background: #0a1422;
  color: #cbd5e1;
  padding: 18px;
  border-radius: 14px;
  margin: 18px 0;
  font-size: 12px;
  line-height: 1.6
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.partner {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

hr.sep {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, .06);
  margin: 32px 0
}

.kicker {
  font-weight: 800;
  color: var(--accent)
}

.small {
  font-size: 14px;
  color: var(--muted)
}

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

/* Floating leaves for ambient animation */
.leaf {
    position: fixed;
    top: -10vh;
    font-size: 32px;
    opacity: .22;
    pointer-events: none;
    filter: blur(.3px) drop-shadow(0 4px 2px rgba(0, 0, 0, .35));
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(120vh) rotate(180deg);
        opacity: .0;
    }
}

@media (max-width: 700px) {
    :root {
        --reel-width: 80px;
        --reel-height: 80px;
    }

    .cell {
        font-size: 42px;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat {
        width: 100%;
        min-width: auto;
    }
    
    .reels {
        grid-template-columns: repeat(var(--cols), var(--reel-width));
        gap: 8px;
        padding: 8px;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .left,
    .right {
        width: 100%;
        justify-content: center;
    }
    
    .number input {
        width: 70px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --reel-width: 60px;
        --reel-height: 60px;
    }
    
    .cell {
        font-size: 32px;
    }
    
    .stat {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .reels {
        grid-template-columns: repeat(var(--cols), var(--reel-width));
        gap: 6px;
        padding: 6px;
    }
    
    button,
    .number {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .number input {
        width: 60px;
        font-size: 14px;
    }
    
    .number button {
        width: 32px;
        padding: 6px;
    }
}

/* Responsive */
@media (max-width: 920px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  nav {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Cookie Consent Popup Mobile */
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 15px;
  }

  .cookie-content {
    gap: 12px;
  }

  .cookie-text h3 {
    font-size: 16px;
  }

  .cookie-text p {
    font-size: 13px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons .btn {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .partner {
    height: 44px;
  }
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-text h3 {
  margin: 0 0 10px 0;
  color: var(--deep);
  font-size: 18px;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  flex: 1;
  min-width: 120px;
  justify-content: center;
  padding: 12px 15px;
  font-size: 14px;
}

/* Test panel */
details.tests {
    margin-top: 14px
}

.test-pass {
    color: #a7f3d0
}

.test-fail {
    color: #fecaca
}