/* --- Design System & CSS Variables --- */

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/orbitron-medium.otf') format('otf');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Regular.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Common Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media only screen and (max-height: 700px) and (min-width: 2600px) {
  body {
    --top-star:-20%;
    --left-star:-4%;
    scale: 1.1;
  }
  .winner-name {
    font-size: 10rem;
  }
}
@media only screen and (min-height: 700px) {
  body {
    --top-star:9%;
    --left-star:0%;
    scale: 1.4;
  }
  .winner-name {
    font-size: 12rem;
  }
}

.slot-machine {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: -40px;
}

.slot-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-logo-border {
  position: relative;
  width: 190px;
  height: 352px;
  padding: 10px;
  margin: 2rem 1rem 0rem 1rem;
  background: #04DDFF;
  background: linear-gradient(120deg,rgb(200, 221, 255) 0%, rgba(19, 126, 224, 0.8) 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  /*box-shadow: 0 0 3px #ffffff, 0 0 3px rgba(255, 255, 255, 0.8), inset 0 0 3px rgba(255, 255, 255, 0.7);*/
  z-index: 1;
  border-radius: 47% 47% / 35% 35%;
  animation: ovalPulse 3s ease-in-out infinite;
}

.side-logo {
  position: relative;
  width: 168px;
  height: 330px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 3px #ffffff, 0 0 3px rgba(255, 255, 255, 0.8), inset 0 0 3px rgba(255, 255, 255, 0.7);
  background-color: #16275a;
  background: url('img/side-bar-inner.png') no-repeat;
  background-size: 100% 100%;
  border-radius: 47% 47% / 35% 35%;
}

.side-logo .star-container {
  position: relative;
}
.side-logo .star-1 {
  bottom: 13%;
  left: 49%;
  rotate: 60deg;
}

.side-logo .star-2 {
  top: 27%;
  right: 30%;
  rotate: 63deg;
}

@keyframes ovalPulse {
  0%, 100% {
    box-shadow: 
      /* เงาเรืองแสงสีขาวชั้นในสุด เพิ่มความสว่าง */
      0 0 3rem rgba(255, 255, 255, 1), 
      /* เงาฟุ้งสีน้ำเงินด้านนอกสเกลเล็ก */
      0 0 3rem rgba(0, 73, 146, 1), 
      /* เงาฟุ้งสีน้ำเงินกระจายตัวกว้างด้านนอกสุด */
      
      /* เงาในตัววัตถุ (Inset) ไล่ระดับสี */
      0 0 3rem rgba(112, 154, 255,1) inset, 
      0 0 3rem rgba(47, 0, 102, 1) inset;
  }

  50% {
    box-shadow: 
      /* ขยายขนาดเงาออกไปอย่างนุ่มนวล (ไม่กระชากสเกลมากเกินไป) */
      0 0 3rem rgba(255, 255, 255, 0.8), 
      0 0 3rem rgba(0, 73, 146, 0.8), 
      /* เงาฟุ้งสีน้ำเงินกระจายตัวกว้างด้านนอกสุด */
      
      /* เงาในตัววัตถุ (Inset) ไล่ระดับสี */
      0 0 3rem rgba(112, 154, 255,0.8) inset, 
      0 0 3rem rgba(47, 0, 102, 0.8) inset;
  }
}

/* Sound wave bars (decorative) */
.waves {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  z-index: 0; pointer-events: none;
}

.wave-center-mask {
  position: absolute;
  left: 0;
  right: 0;
  top: cal(50%-5px);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 15%, rgb(0, 0, 0) 25%, rgb(0, 0, 0) 45%, rgb(0, 0, 0) 65%, rgb(0, 0, 0) 75%, rgba(0,0,0,0) 85%);
}

.wave-center {
  position: relative;
  height: 80px;
  background: linear-gradient(0deg, rgba(0,0,0,0) 5%, rgba(200,200,255,0.2) 30%, rgba(255,255,255,0.4) 50%, rgba(200,200,255,0.2) 70%, rgba(0,0,0,0) 95%);
}

.wave-bar {
  width: 3px;
  background: linear-gradient(to top, transparent, rgb(134, 210, 255), transparent);
  border-radius: 4px;
  animation: wavePulse 0.8s ease-in-out infinite alternate;
}
@keyframes wavePulse {
  from { transform: scaleY(0.2); opacity: 0.5; }
  to   { transform: scaleY(1);   opacity: 0.9; }
}

.star-container.bg-1 {
  top: calc(var(--top-star) + 25%);
  left: calc(var(--left-star) + 3.5%);
}
.star-container.bg-2 {
  top: calc(var(--top-star) + 10%);
  left: calc(var(--left-star) + 10%);
}
.star-container.bg-3 {
  top: calc(var(--top-star) + 51%);
  left: calc(var(--left-star) + 20%);
}
.star-container.bg-4 {
  top: calc(var(--top-star) + 60%);
  left: calc(var(--left-star) + 27%);
}
.star-container.bg-5 {
  top: calc(var(--top-star) + 17.5%);
  left: calc(var(--left-star) + 19.5%);
}
.star-container.bg-6 {
  top: calc(var(--top-star) + 17.5%);
  right: calc(var(--left-star) + 19.5%);
}
.star-container.bg-7 {
  top: calc(var(--top-star) + 60%);
  right: calc(var(--left-star) + 27%);
}
.star-container.bg-8 {
  top: calc(var(--top-star) + 51%);
  right: calc(var(--left-star) + 20%);
}
.star-container.bg-9 {
  top: calc(var(--top-star) + 10%);
  right: calc(var(--left-star) + 10%);
}
.star-container.bg-10 {
  top: calc(var(--top-star) + 25%);
  right: calc(var(--left-star) + 3.5%);
}

.star-container {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  height: var(--height, 100px);
  width: var(--height, 100px);
  background: #96bffb;
  background: radial-gradient(circle,rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 100%);
  animation: starPulse 3s ease-in-out infinite;
  transform: rotate(65deg) translateX(-1px);
  z-index: 1;
  /* ใช้ตัวแปร CSS ในการรับค่าดีเลย์ โดยตั้งค่าเริ่มต้นไว้ที่ 0s */
}

@keyframes starPulse {

  0%,
  100% {
    scale: 1;
    opacity: 1;
  }

  50% {
    scale: 0.9;
    opacity: 0.7;
  }
}

.sparkle-8-point {
  position: relative;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  /*width: var(--height, 3px);*/
  width: calc(var(--height) / 100 * 1.5);
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,90%) 10%, rgba(31, 110, 214, 0.4) 50%);
}

.sparkle-8-point.point-2 {
  left: calc(var(--height) / 100 * -1.5);
  height: 40%;
  transform: rotate(45deg);
}

.sparkle-8-point.point-3 {
  left: calc(var(--height) / 100 * -3);
  transform:  rotate(90deg);
}

.sparkle-8-point.point-4 {
  left: calc(var(--height) / 100 * -4.5);
  height: 40%;
  transform: rotate(135deg);
}

/* Classic Blue, White and Black Theme */
.theme-classic-blue {
    --bg-app: #ffffff;
    --bg-gradient: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #ffffff 100%);
    --panel-bg: rgba(255, 255, 255, 0.75);
    --panel-border: rgba(0, 112, 243, 0.15);
    --panel-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
    
    --text-primary: #0f172a;
    --text-secondary: #7e95b6;
    --text-muted: #94a3b8;
    
    --color-accent: #0070f3; /* Electric Blue */
    --color-accent-secondary: #fbfbfb; /* Crisp Black */
    --color-success: #38bdf8; /* Light Blue */
    
    /* Cabinet Colors */
    --cabinet-border: #0f172a;
    --cabinet-bg: #ffffff; /* WHITE CABINET BODY */
    --cabinet-screen-bg: #ffffff; /* WHITE SCREEN BACKGROUND */
    --cabinet-marquee-bg: #ffffff; /* WHITE MARQUEE BACKGROUND */
    --cabinet-shadow: 0 20px 50px rgba(0, 112, 243, 0.12);
    --cabinet-neon-glow: 0 0 25px rgba(0, 112, 243, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.02);
    
    --lever-ball: #0070f3;
    --lever-rod: #0f172a;
    --lever-mount: #e2e8f0;
    
    --item-bg: #ffffff;
    --item-border: rgba(0, 112, 243, 0.06);
    --item-selected-bg: var(--color-accent);
    --item-selected-glow: 0 4px 12px rgba(0, 112, 243, 0.35);
    
    --font-marquee: var(--font-display);
    --input-bg: rgba(15, 23, 42, 0.05);
    
    /* Reel Layout overrides */
    --reel-bg: #f8fafc;
    --reel-border: rgba(0, 112, 243, 0.1);
    --reel-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* --- Global Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: #000540;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Glowing Orbs */
.bg-effects {
    position: absolute;
    /*background: radial-gradient(ellipse 55% 80% at 20% 50%, rgba(0, 60, 200, 0.55) 0%, transparent 70%), radial-gradient(ellipse 55% 80% at 80% 50%, rgba(0, 60, 200, 0.55) 0%, transparent 70%), radial-gradient(ellipse 60% 70% at 50% 50%, #001080 0%, #000850 50%, #000435 100%);*/
    background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(0, 60, 200, 0.25) 0%, transparent 70%), radial-gradient(ellipse 55% 50% at 50% 50%, rgba(0, 60, 200, 0.25) 0%, transparent 70%), radial-gradient(ellipse 60% 80% at 50% 50%, #0020ff 0%, #00063d 50%, #000105 100%);top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: orbFloat 20s infinite alternate;
}

.theme-classic-blue .glow-orb {
    opacity: 0.08;
    mix-blend-mode: multiply;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--color-accent);
    top: -10vw;
    right: -10vw;
}

.orb-2 {
    width: 45vw;
    height: 45vw;
    background: var(--color-accent-secondary);
    bottom: -10vw;
    left: -10vw;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* --- Layout --- */
.app-container {
    /*width: 100%;*/
    max-width: 1400px;
    height: 90vh;
    display: flex;
    gap: 2rem;
    padding: 1rem;
    /*z-index: 1;*/
    position: relative;
}

@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        height: auto;
        padding: 1.5rem;
    }
}

/* --- Main Content Area --- */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Slot Machine Cabinet Wrapper */
.slot-machine-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 640px) {
    .slot-machine-wrapper {
        padding-right: 0;
        padding-bottom: 80px;
        flex-direction: column;
    }
}

/* Slot Cabinet Casing */
.slot-cabinet {
    width: 500px;
    position: relative;
    /*background: rgba(20, 30, 50, 1);*/
    background: linear-gradient(90deg,rgb(1, 10, 30) 0%, #00227c 45%, #002486 50%, #00227c 55%, rgb(1, 10, 30) 100%);padding: 3rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 20;
    overflow: hidden;
    transition: var(--transition-slow);

    border: 0.2rem solid #fff;
    border-radius: 15px;
    /*box-shadow: 0 0 3rem #fff, 0 0 1.5rem #709aff inset, 0 0 3rem #0064C84D, 0 0 3rem #2F00664D inset, 0 0 3rem #0064C84D, 0 0 3rem #2F00664D inset;*/
    animation: ovalPulse 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .slot-cabinet {
        width: 100%;
        max-width: 500px;
    }
}

/* Cabinet Header (Marquee) */
.cabinet-marquee-border {
    position: relative;
    display: flex;

    height: 72px;
    width: 340px;
    top: 50px;
    z-index: 25;top: 50px;
    border: 2px solid #002aff;
    border-radius: 22px;
    box-shadow: 0 0 0.1rem #fff, 0 0 1rem #002aff inset, 0 0 1rem #002aff, 0 0 1rem #2F00664D inset, 0 0 1rem #002aff, 0 0 1rem #2F00664D inset;
}
.cabinet-marquee {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(35, 132, 244, 0.7) 0%, rgba(30, 105, 157, 0.4) 100%);
    border: 2px solid #ddddff;
    border-radius: 20px;
    box-shadow: 0 0 3rem #fff, 0 0 1.5rem #002aff inset, 0 0 3rem #002aff, 0 0 3rem #2F00664D inset, 0 0 3rem #002aff, 0 0 3rem #2F00664D inset;
}

/* Blinking Marquee Bulbs */
.marquee-lights {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.marquee-lights span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffea00;
    box-shadow: 0 0 5px #ffea00;
}

/* Custom pulsing marquee text */
.marquee-title {
    font-family: var(--font-marquee);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent-secondary);
    animation: marqueePulse 1.5s infinite alternate;
}

@keyframes marqueePulse {
    0% { transform: scale(0.98); opacity: 0.9; }
    100% { transform: scale(1.02); opacity: 1; }
}

.marquee-decor {
    font-size: 0.8rem;
    color: var(--color-accent-secondary);
    letter-spacing: 6px;
    margin-top: 0.25rem;
}

/* Slot Screen (Reel Frame) */
.slot-screen-outer {
    padding: 12px;
    border-radius: 20px;
    background: transparent;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.slot-screen-inner {
    height: 250px;
    background: transparent;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 112, 243, 0.15);
}

/* Payline Indicators (The markers) */
.payline-left, .payline-right {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
}

.payline-left {
    left: 0px;
    border-left: 30px solid white;
    filter: drop-shadow(0 0 5px white);
}

.payline-right {
    right: 0px;
    border-right: 30px solid white;
    filter: drop-shadow(0 0 5px white);
}

.payline-wire {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 0, 127, 0) 0%, 
        rgba(255, 255, 255, 0.4) 15%, 
        rgba(255, 255, 255, 0.4) 85%, 
        rgba(255, 0, 127, 0) 100%
    );
    z-index: 4;
    pointer-events: none;
}

/* Reels Container */
.reels-container {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 12px;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}

.reel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
}

/* A single reel tape */
.reel-column {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border-left: 1px solid var(--reel-border, rgba(255, 255, 255, 0.05));
    border-right: 1px solid var(--reel-border, rgba(255, 255, 255, 0.05));
    box-shadow: var(--reel-shadow, inset 0 0 20px rgba(0,0,0,0.8));
    /*background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(0, 100, 255, 0.1) 25%, rgba(0, 100, 255, 0.3) 50%, rgba(0, 100, 255, 0.1) 75%, rgba(0, 0, 0, 0) 100%);
*/
  }

.reel-tape {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0px 10px;
    width: 100%;
    will-change: transform;
    transform: translateY(0);
}

/* A slot item on the reel */
.reel-item {
    height: 70px; /* Matches JS offset calculation */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--item-border);
    background: transparent;
    transition: color 0.15s ease, text-shadow 0.15s ease;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reel-item.active {
    color: var(--text-primary);
    box-shadow: var(--item-selected-glow);
    text-shadow: 0 0 8px var(--color-accent);
}

/* Blurred effect during spin */
.reel-tape.blurring {
    filter: blur(3px);
}

/* Bottom Console */
.cabinet-console {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--panel-border);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.console-decor-lights {
    position: absolute;
    left: 20px;
    display: flex;
    gap: 8px;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.light-blue { background: #00f2fe; box-shadow: 0 0 8px #00f2fe; }
.light-pink { background: #ff007f; box-shadow: 0 0 8px #ff007f; }
.light-green { background: #39ff14; box-shadow: 0 0 8px #39ff14; }

.blinking-fast { animation: blink 0.4s infinite alternate; }
.blinking-slow { animation: blink 1s infinite alternate; }

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* SPIN BUTTON */
.spin-btn {
    width: 160px;
    height: 40px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    top: -22px;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 25;
    background: linear-gradient(180deg, rgba(100, 150, 255, 0.95) 0%, rgba(50, 150, 200, 0.95) 100%);
    border: 0.2rem solid rgba(150, 220, 255, 0.75);
    box-shadow: 0 0 10px #00d4ff, 0 0 30px rgba(100,212,255,0.3), inset 0 0 15px rgba(0,100,200,0.2);
}

.theme-classic-blue .spin-btn {
    background: linear-gradient(180deg, rgba(100, 150, 255, 0.9) 0%, rgba(50, 150, 200, 0.9) 100%);
    border: 0.2rem solid rgba(150, 220, 255, 0.75);
    box-shadow: 0 0 10px #00d4ff, 0 0 30px rgba(100,212,255,0.3), inset 0 0 15px rgba(0,100,200,0.2);
}

.spin-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 15px #00d4ff, 0 0 40px rgba(100,212,255,0.5), inset 0 0 20px rgba(0,100,200,0.3);
    transform: translateY(-2px);
}

.spin-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #002e62, 0 4px 10px rgba(0, 112, 243, 0.3);
}

.theme-classic-blue .spin-btn:active {
    box-shadow: 0 2px 0 #002e62, 0 4px 10px rgba(0, 112, 243, 0.3);
}

.spin-btn:disabled {
    opacity: 0.9;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 0 #4a4a4a, 0 5px 10px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #7c7c7c 0%, #4f4f4f 100%);
}

.spin-btn-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 34px;
    border: 2px solid var(--color-accent);
    opacity: 0;
    pointer-events: none;
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.08); opacity: 0; }
}

/* SETTINGS BUTTON */
.btn-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 40px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(100, 150, 255, 0.95) 0%, rgba(50, 150, 200, 0.95) 100%);
    border: 0.2rem solid rgba(150, 220, 255, 0.75);
    box-shadow: 0 0 10px #00d4ff, 0 0 30px rgba(100,212,255,0.3), inset 0 0 15px rgba(0,100,200,0.2);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 25;
}

.btn-settings:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 15px #00d4ff, 0 0 40px rgba(100,212,255,0.5), inset 0 0 20px rgba(0,100,200,0.3);
    transform: translateY(-2px);
}

.btn-settings:active {
    transform: translateY(1px);
    box-shadow: 0 0 8px #00d4ff, 0 0 20px rgba(100,212,255,0.3), inset 0 0 10px rgba(0,100,200,0.2);
}

/* --- Lever Assembly --- */
.lever-assembly {
    position: absolute;
    right: 18px;
    top: calc(50% - 70px);
    width: 60px;
    height: 140px;
    display: flex;
    justify-content: center;
    /*z-index: 1;*/
}

@media (max-width: 640px) {
    .lever-assembly {
        right: auto;
        bottom: 10px;
        top: auto;
        width: 140px;
        height: 60px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
}

.lever-mount {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lever-mount);
    border: 3px solid var(--cabinet-border);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    position: absolute;
    bottom: 0;
    /*z-index: 2;*/
}

.lever-rod-wrapper {
    height: 100px;
    width: 20px;
    position: absolute;
    bottom: 16px;
    transform-origin: bottom center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lever-rod {
    width: 8px;
    height: 85px;
    background: linear-gradient(90deg, #b0b0b0 0%, var(--lever-rod) 50%, #707070 100%);
    border-radius: 4px;
}

.lever-ball {
    width: 28px;
    height: 28px;
    background: var(--lever-ball);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 -4px 8px rgba(0,0,0,0.4), inset 0 4px 8px rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.lever-ball:hover {
    transform: scale(1.1);
}

/* Lever Pull State Animation */
.lever-rod-wrapper.pulled {
    transform: rotateX(75deg) translateY(20px);
    transition: transform 0.15s ease-in;
}

/* --- Winner Modal --- */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.win-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.win-modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(6, 4, 14, 0.85);
    backdrop-filter: blur(12px);
}

.win-modal-content {
    background: radial-gradient(circle at 50% 50%, rgba(28, 21, 56, 0.95) 0%, rgba(10, 8, 22, 0.98) 100%);
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.3), inset 0 0 30px rgba(255, 0, 127, 0.2);
    min-width: 550px;
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    transform: scale(0.7);
    transition: transform var(--transition-bounce);
}

.theme-classic-blue .win-modal-content {
    background: radial-gradient(circle at 50% 50%, rgba(10, 15, 30, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    border: 3px solid var(--color-accent-secondary);
    box-shadow: 0 0 50px rgba(0, 112, 243, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.win-modal.active .win-modal-content {
    transform: scale(1);
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 27px;
    pointer-events: none;
    z-index: 0;
}

.win-banner {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--color-accent-secondary);
    text-shadow: 0 0 10px var(--color-accent-secondary);
    margin-bottom: 1rem;
    animation: pulseGlow 1s infinite alternate;
}

.theme-classic-blue .win-banner {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 2px;
    color: var(--color-accent-secondary);
    text-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent);
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.winner-display-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 0rem 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.winner-label {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.winner-name {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 20px var(--color-accent);
    word-break: break-word;
}

.modal-buttons {
    position: relative;
    z-index: 1;
}

.modal-buttons button {
    width: 200px;
    height: 50px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(180deg, rgba(35, 132, 244, 0.8) 0%, rgba(30, 105, 157, 0.8) 100%);
    border: 0.2rem solid rgba(180, 220, 255, 0.75);
    box-shadow: 0 0 12px #00d4ff, 0 0 40px rgba(100,212,255,0.4), inset 0 0 20px rgba(0,100,200,0.3);
}

/* --- Classic Blue Theme Layout Overrides --- */

/* Marquee overrides */
.theme-classic-blue .cabinet-marquee {
    box-shadow: 0 0 12px #00d4ff, 0 0 40px rgba(100,212,255,0.4), inset 0 0 20px rgba(0,100,200,0.3);
}

.theme-classic-blue .marquee-title {
    color: white
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.theme-classic-blue .marquee-decor {
    color: #0f172a;
}

.theme-classic-blue .marquee-lights span {
    background: #0070f3;
    box-shadow: 0 0 6px #0070f3;
}

/* Screen outer frame */
.theme-classic-blue .slot-screen-outer {
    background: transparent;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.06);
}

.theme-classic-blue .slot-screen-inner {
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 112, 243, 0.15);
}

/* Paylines */
.theme-classic-blue .payline-left {
    border-left-color: white;
    filter: drop-shadow(0 0 4px white);
}

.theme-classic-blue .payline-right {
    border-right-color: white;
    filter: drop-shadow(0 0 4px white);
}

.theme-classic-blue .payline-wire {
    background: linear-gradient(90deg, rgba(0,112,243,0) 0%, rgba(255,255,255,0.3) 15%, rgba(255,255,255,0.3) 85%, rgba(0,112,243,0) 100%);
}

/* Active reel item override */
.theme-classic-blue .reel-item.active {
    color: #ffffff;
    text-shadow: none;
    border: 0.2rem solid #9cf;
    box-shadow: 0 0 10px #00a3ff, 0 0 10px #00a3ff inset, 0 0 40px rgba(50,112,255,0.8),0 0 20px rgba(50,112,255,0.8) inset;
    border-radius: 10px;
}

/* Console overrides */
.theme-classic-blue .cabinet-console {
    background: #ffffff;
    border-color: rgba(0, 112, 243, 0.15);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Console decorative lights */
.theme-classic-blue .console-decor-lights .light-blue { background: #0070f3; box-shadow: 0 0 8px #0070f3; }
.theme-classic-blue .console-decor-lights .light-pink { background: #0f172a; box-shadow: none; border: 1px solid rgba(0,0,0,0.15); }
.theme-classic-blue .console-decor-lights .light-green { background: #e2e8f0; box-shadow: none; border: 1px solid rgba(0,0,0,0.1); }
