  @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  #game-area {
      position: relative;
      left: 3px;
  }

  .sidebar {
      position: relative;
      right: 100px;
  }

  body {
      margin: 0;
      background: linear-gradient(135deg, #4a0066 0%, #2d0042 50%, #1a0028 100%);
      font-family: 'Orbitron', sans-serif;
      color: #fff;
      user-select: none;
      overflow-x: hidden;
      overflow-y: auto;
      min-height: 100vh;
      height: auto;
      transition: background 0.3s ease;
  }

  /* Neon Theme */
  body.neon-theme {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1e 100%);
  }

  body.neon-theme .panel,
  body.neon-theme .bet-panel,
  body.neon-theme .risk-box,
  body.neon-theme .slider-box {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    border-color: #00ffff;
    box-shadow: 0 8px 0 #004444, 0 10px 25px rgba(0,255,255,0.3), 0 0 20px rgba(0,255,255,0.2);
  }

  body.neon-theme #play-btn {
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
    color: #000;
    border-color: #00ffff;
    box-shadow: 0 14px 0 #004444, 0 16px 35px rgba(0,255,255,0.5), 0 0 30px rgba(0,255,255,0.3);
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
  }

  body.neon-theme .right-btn {
    background: linear-gradient(145deg, #00ffff, #00cccc);
    border-color: #00ffff;
    box-shadow: 0 6px 0 #004444, 0 8px 20px rgba(0,255,255,0.4), 0 0 15px rgba(0,255,255,0.3);
  }

  body.neon-theme #admin-btn {
    background: linear-gradient(145deg, #ff00ff, #cc00cc);
    border-color: #ff00ff;
    box-shadow: 0 6px 0 #440044, 0 8px 20px rgba(255,0,255,0.4), 0 0 15px rgba(255,0,255,0.3);
  }

  body.neon-theme .game-area {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1) 0%, transparent 40%, transparent 60%, rgba(0, 255, 255, 0.1) 100%), 
                radial-gradient(ellipse at 30% 30%, rgba(0, 255, 255, 0.2) 0%, transparent 50%), 
                radial-gradient(ellipse at 70% 70%, rgba(255, 0, 255, 0.15) 0%, transparent 50%), 
                linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 30%, #16213e 60%, #1a1a2e 100%);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: inset 0 8px 40px rgba(0, 255, 255, 0.1),
                inset 0 -8px 40px rgba(0, 0, 0, 0.4),
                0 20px 80px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(0, 255, 255, 0.2);
  }

  body.neon-theme .slot {
    border: 2px solid #00ffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 -3px 5px rgba(0,0,0,0.4), 0 0 10px rgba(0,255,255,0.3);
  }

  body.neon-theme .risk-label {
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
    color: #000;
  }

  body.neon-theme .bet-controls button,
  body.neon-theme .risk-buttons button {
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
    border-color: #00ffff;
    box-shadow: 0 5px 0 #004444, 0 7px 16px rgba(0,255,255,0.4), 0 0 10px rgba(0,255,255,0.2);
  }

  body.neon-theme .slider {
    background: linear-gradient(180deg, #004444 0%, #003333 100%);
  }

  body.neon-theme .slider::-webkit-slider-thumb {
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
    border-color: #00ffff;
    box-shadow: 0 4px 0 #004444, 0 6px 12px rgba(0,255,255,0.4), 0 0 10px rgba(0,255,255,0.3);
  }

  body.neon-theme .slider::-moz-range-thumb {
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
    border-color: #00ffff;
    box-shadow: 0 4px 0 #004444, 0 6px 12px rgba(0,255,255,0.4), 0 0 10px rgba(0,255,255,0.3);
  }

  @media (max-width: 768px) {
      body {
          overflow-y: auto;
          height: 100vh;
          -webkit-overflow-scrolling: touch;
      }
  }

  .container {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 20px;
      gap: 30px;
      flex-wrap: wrap;
  }

  @media (max-width: 1024px) {
      .container {
          flex-direction: column;
          padding: 0;
          gap: 10px;
          align-items: center;
          min-height: 100vh;
          justify-content: flex-start;
      }
  }

  /* RIGHT SIDE BUTTONS */
  .right-buttons {
      position: fixed;
      top: 50%;
      right: 30px;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 15px;
      z-index: 100;
  }

  @media (max-width: 768px) {
      .right-buttons {
          top: 10px;
          right: 122px;
          left: auto;
          bottom: auto;
          transform: none;
          flex-direction: row;
          gap: 6px;
          z-index: 150;
      }
  }

  .right-btn {
      width: 65px;
      height: 65px;
      background: linear-gradient(145deg, #ff3d8f, #ff1f70);
      border: 3px solid #ff91c7;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 6px 0 #a50045, 0 8px 20px rgba(255, 31, 112, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      color: white;
      transition: transform 0.1s;
      position: relative;
      touch-action: manipulation;
  }

  @media (max-width: 768px) {
      .right-btn {
          width: 40px;
          height: 40px;
          font-size: 18px;
          border: 2px solid #ff91c7;
          box-shadow: 0 4px 0 #a50045, 0 6px 15px rgba(255, 31, 112, 0.4);
      }
  }

  .right-btn::before {
      content: '';
      position: absolute;
      top: 5px;
      left: 12px;
      right: 12px;
      height: 12px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
      border-radius: 50%;
      filter: blur(6px);
  }

  .right-btn:active {
      transform: translateY(4px);
      box-shadow: 0 2px 0 #a50045, 0 4px 15px rgba(255, 31, 112, 0.4);
  }

  #admin-btn {
      background: linear-gradient(145deg, #ffd700, #ffaa00);
      border-color: #ffe57f;
  }

  #admin-btn:active {
      box-shadow: 0 2px 0 #cc8800, 0 4px 15px rgba(255, 170, 0, 0.4);
  }

  .config-indicator {
      position: fixed;
      top: 20px;
      right: 120px;
      background: linear-gradient(145deg, #00ff88, #00cc66);
      color: #1a0028;
      padding: 10px 20px;
      border-radius: 15px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
      border: 2px solid #00ff88;
      display: none !important;
      z-index: 150;
  }

  @media (max-width: 768px) {
      .config-indicator {
          top: 10px;
          right: 10px;
          padding: 8px 15px;
          font-size: 10px;
      }
  }

  .config-indicator.show {
      display: none !important;
      animation: pulse-glow 2s infinite;
  }

  @keyframes pulse-glow {

      0%,
      100% {
          box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
      }

      50% {
          box-shadow: 0 4px 25px rgba(0, 255, 136, 0.8);
      }
  }

  /* SETTINGS MODAL */
  .settings-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 200;
  }

  .settings-modal.show {
      display: flex;
  }

  .settings-content {
      background: linear-gradient(135deg, #4a0066 0%, #2d0042 100%);
      border: 4px solid #ff91c7;
      border-radius: 30px;
      padding: 40px;
      width: 450px;
      max-width: 90%;
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
      position: relative;
  }

  .settings-title {
      font-size: 32px;
      font-weight: 900;
      color: #fff;
      text-align: center;
      margin-bottom: 30px;
      letter-spacing: 3px;
  }

  .settings-option {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
      padding: 20px;
      background: rgba(255, 122, 184, 0.1);
      border-radius: 20px;
      border: 2px solid rgba(255, 145, 199, 0.3);
  }

  .settings-option label {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      letter-spacing: 2px;
  }

  .toggle-switch {
      width: 60px;
      height: 30px;
      background: #666;
      border-radius: 15px;
      position: relative;
      cursor: pointer;
      transition: background 0.3s;
  }

  .toggle-switch.active {
      background: linear-gradient(145deg, #ff3d8f, #ff1f70);
  }

  .toggle-switch::after {
      content: '';
      position: absolute;
      width: 24px;
      height: 24px;
      background: white;
      border-radius: 50%;
      top: 3px;
      left: 3px;
      transition: left 0.3s;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .toggle-switch.active::after {
      left: 33px;
  }

  .close-settings {
      position: absolute;
      top: 15px;
      right: 15px;
      width: 40px;
      height: 40px;
      background: linear-gradient(145deg, #ff3d8f, #ff1f70);
      border: 2px solid #ff91c7;
      border-radius: 50%;
      color: white;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .close-settings:active {
      transform: scale(0.95);
  }

  /* LEFT PANEL */
  .sidebar {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 260px;
  }

  @media (max-width: 1024px) {
      .sidebar {
          width: 100%;
          max-width: 100%;
          order: 2;
      }
  }

  @media (max-width: 768px) {
      .sidebar {
          gap: 6px;
          background: transparent;
          padding: 8px 10px 10px 10px;
          border-radius: 0;
          box-shadow: none;
          position: static;
          bottom: auto;
          z-index: 1;
          order: 2;
      }
  }

  .control-group {
      display: flex;
      flex-direction: column;
  }

  @media (max-width: 768px) {

      /* Create compact 2-column grid for mobile */
      .sidebar {
          display: grid;
          grid-template-columns: 1fr 1fr;
          grid-gap: 6px;
          gap: 6px;
      }

      .control-group:nth-child(3) {
          /* Risk - spans full width */
          grid-column: 1 / -1;
      }

      #play-btn {
          /* Play button - spans full width */
          grid-column: 1 / -1;
          margin-top: 2px;
      }
  }

  .control-label {
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 2px;
      color: #fff;
      text-align: center;
      margin-bottom: 6px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  @media (max-width: 768px) {
      .control-label {
          font-size: 9px;
          letter-spacing: 0.5px;
          margin-bottom: 3px;
      }
  }

  .panel {
      background: linear-gradient(180deg, #ff7ab8 0%, #ff4a96 100%);
      border-radius: 28px;
      text-align: center;
      padding: 16px 24px;
      box-shadow: 0 8px 0 #b82461, 0 10px 25px rgba(0, 0, 0, 0.5);
      font-weight: 900;
      color: #fff;
      border: 3px solid #ff91c7;
      position: relative;
      overflow: hidden;
  }

  @media (max-width: 768px) {
      .panel {
          border-radius: 12px;
          padding: 8px 12px;
          box-shadow: 0 3px 0 #b82461, 0 5px 12px rgba(0, 0, 0, 0.5);
          border: 2px solid #ff91c7;
      }
  }

  .panel::before {
      content: '';
      position: absolute;
      top: 6px;
      left: 25px;
      right: 25px;
      height: 12px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
      border-radius: 50%;
      filter: blur(8px);
  }

  .panel::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 8px;
      background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
      border-radius: 0 0 25px 25px;
  }

  .panel span {
      font-size: 38px;
      font-weight: 900;
      letter-spacing: 0px;
      position: relative;
      z-index: 1;
  }

  @media (max-width: 768px) {
      .panel span {
          font-size: 20px;
      }

      .bet-panel span {
          font-size: 20px;
      }
  }

  .bet-panel {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px 24px;
      position: relative;
      overflow: hidden;
  }

  @media (max-width: 768px) {
      .bet-panel {
          padding: 8px 12px;
      }
  }

  .bet-panel::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 8px;
      background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
      border-radius: 0 0 25px 25px;
      z-index: 0;
  }

  .bet-panel span {
      font-size: 38px;
      margin: 0;
      font-weight: 900;
      position: relative;
      z-index: 1;
  }

  .bet-controls {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 6px;
      z-index: 1;
  }

  .bet-controls button {
      background: linear-gradient(180deg, #ff2d7a 0%, #e6195e 100%);
      border: 2px solid #ff91c7;
      color: white;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 4px 0 #a50045, 0 6px 12px rgba(0, 0, 0, 0.4);
      position: relative;
      touch-action: manipulation;
  }

  @media (max-width: 768px) {
      .bet-controls button {
          width: 24px;
          height: 24px;
          font-size: 9px;
          box-shadow: 0 2px 0 #a50045, 0 3px 8px rgba(0, 0, 0, 0.4);
      }
  }

  .bet-controls button::before {
      content: '';
      position: absolute;
      top: 3px;
      left: 7px;
      right: 7px;
      height: 7px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
      border-radius: 50%;
      filter: blur(4px);
  }

  .bet-controls button:active {
      transform: translateY(3px);
      box-shadow: 0 1px 0 #a50045, 0 3px 8px rgba(0, 0, 0, 0.4);
  }

  .risk-box,
  .slider-box {
      background: linear-gradient(180deg, #ff7ab8 0%, #ff4a96 100%);
      border-radius: 28px;
      text-align: center;
      padding: 14px 20px;
      box-shadow: 0 8px 0 #b82461, 0 10px 25px rgba(0, 0, 0, 0.5);
      border: 3px solid #ff91c7;
      position: relative;
      overflow: hidden;
  }

  @media (max-width: 768px) {

      .risk-box,
      .slider-box {
          border-radius: 12px;
          padding: 8px 10px;
          box-shadow: 0 3px 0 #b82461, 0 5px 12px rgba(0, 0, 0, 0.5);
          border: 2px solid #ff91c7;
      }
  }

  .risk-box::before,
  .slider-box::before {
      content: '';
      position: absolute;
      top: 6px;
      left: 25px;
      right: 25px;
      height: 12px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
      border-radius: 50%;
      filter: blur(8px);
  }

  .risk-box::after,
  .slider-box::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 8px;
      background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
      border-radius: 0 0 25px 25px;
  }

  .risk-buttons {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      position: relative;
      z-index: 1;
  }

  .risk-buttons button {
      background: linear-gradient(180deg, #ff2d7a 0%, #e6195e 100%);
      color: white;
      border: 3px solid #ff91c7;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 18px;
      font-weight: 900;
      box-shadow: 0 5px 0 #a50045, 0 7px 16px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      flex-shrink: 0;
      position: relative;
      touch-action: manipulation;
  }

  @media (max-width: 768px) {
      .risk-buttons button {
          width: 28px;
          height: 28px;
          font-size: 12px;
          border: 2px solid #ff91c7;
          box-shadow: 0 2px 0 #a50045, 0 4px 10px rgba(0, 0, 0, 0.4);
      }
  }

  .risk-buttons button::before {
      content: '';
      position: absolute;
      top: 4px;
      left: 9px;
      right: 9px;
      height: 8px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
      border-radius: 50%;
      filter: blur(5px);
  }

  .risk-buttons button:active {
      transform: translateY(4px);
      box-shadow: 0 1px 0 #a50045, 0 3px 12px rgba(0, 0, 0, 0.4);
  }

  .risk-label {
      background: linear-gradient(180deg, #ffffff 0%, #ffb3d9 100%);
      color: #ff1a75;
      padding: 10px 18px;
      border-radius: 20px;
      font-weight: 900;
      flex: 1;
      font-size: 20px;
      letter-spacing: 0px;
      box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.2);
      text-shadow: none;
      min-width: 80px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      position: relative;
      z-index: 1;
  }

  @media (max-width: 768px) {
      .risk-label {
          padding: 6px 10px;
          font-size: 14px;
          min-width: 50px;
          border-radius: 10px;
      }
  }

  .slider-box {
      padding: 14px 20px;
      position: relative;
      display: flex;
      align-items: center;
      gap: 15px;
  }

  .slider-wrapper {
      position: relative;
      flex: 1;
  }

  .slider-value {
      font-size: 30px;
      font-weight: 900;
      color: white;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
      min-width: 35px;
      text-align: left;
      position: relative;
      z-index: 3;
  }

  @media (max-width: 768px) {
      .slider-value {
          font-size: 18px;
          min-width: 20px;
      }
  }

  .slider {
      width: 100%;
      height: 42px;
      -webkit-appearance: none;
      appearance: none;
      background: linear-gradient(180deg, #c7006b 0%, #a50055 100%);
      border-radius: 22px;
      outline: none;
      box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
      position: relative;
      border: none;
  }

  @media (max-width: 768px) {
      .slider {
          height: 28px;
          border-radius: 14px;
      }
  }

  .slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 28px;
      height: 28px;
      background: linear-gradient(180deg, #ff2d7a 0%, #e6195e 100%);
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 4px 0 #a50045, 0 6px 12px rgba(0, 0, 0, 0.4);
      border: 3px solid #ff91c7;
      position: relative;
  }

  .slider::-moz-range-thumb {
      width: 28px;
      height: 28px;
      background: linear-gradient(180deg, #ff2d7a 0%, #e6195e 100%);
      border-radius: 50%;
      cursor: pointer;
      border: 3px solid #ff91c7;
      box-shadow: 0 4px 0 #a50045, 0 6px 12px rgba(0, 0, 0, 0.4);
  }

  @media (max-width: 768px) {
      .slider::-webkit-slider-thumb {
          width: 20px;
          height: 20px;
          border: 2px solid #ff91c7;
          box-shadow: 0 2px 0 #a50045, 0 3px 8px rgba(0, 0, 0, 0.4);
      }

      .slider::-moz-range-thumb {
          width: 20px;
          height: 20px;
          border: 2px solid #ff91c7;
          box-shadow: 0 2px 0 #a50045, 0 3px 8px rgba(0, 0, 0, 0.4);
      }
  }

  #play-btn {
      background: linear-gradient(180deg, #ff2d7a 0%, #e6195e 100%);
      border: 4px solid #ff91c7;
      color: #fff;
      padding: 32px;
      border-radius: 38px;
      font-size: 36px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 14px 0 #a50045, 0 16px 35px rgba(0, 0, 0, 0.5);
      transition: transform 0.1s;
      letter-spacing: 5px;
      position: relative;
      overflow: hidden;
      touch-action: manipulation;
  }

  @media (max-width: 768px) {
      #play-btn {
          padding: 14px;
          font-size: 20px;
          letter-spacing: 2px;
          border-radius: 20px;
          box-shadow: 0 6px 0 #a50045, 0 8px 20px rgba(0, 0, 0, 0.5);
          border: 2px solid #ff91c7;
      }
  }

  #play-btn::before {
      content: '';
      position: absolute;
      top: 8px;
      left: 35px;
      right: 35px;
      height: 16px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
      border-radius: 50%;
      filter: blur(10px);
  }

  #play-btn::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 10px;
      background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.25) 100%);
      border-radius: 0 0 34px 34px;
  }

  #play-btn:active {
      transform: translateY(8px);
      box-shadow: 0 6px 0 #a50045, 0 8px 25px rgba(0, 0, 0, 0.5);
  }

  /* GAME BOARD */
  .game-area {
      width: 700px;
      min-width: 620px;
      min-height: 600px;
      height: auto;
      background: linear-gradient(145deg, rgba(140, 30, 130, 0.15) 0%, transparent 40%, transparent 60%, rgba(100, 20, 95, 0.15) 100%), radial-gradient(ellipse at 30% 30%, rgba(150, 40, 140, 0.3) 0%, transparent 50%), radial-gradient(ellipse at 70% 70%, rgba(120, 25, 115, 0.25) 0%, transparent 50%), linear-gradient(135deg, #b22aaf 0%, #7d207a 30%, #860c82 60%, #861e82 100%);
      border-radius: 35px;
      box-shadow:
          inset 0 8px 40px rgba(180, 60, 170, 0.15),
          inset 0 -8px 40px rgba(0, 0, 0, 0.4),
          0 20px 80px rgba(0, 0, 0, 0.8),
          0 10px 40px rgba(0, 0, 0, 0.6),
          0 5px 15px rgba(0, 0, 0, 0.5);
      position: relative;
      overflow: hidden;
      padding-top: 5px;
      padding-bottom: 5px;
      transition: width 0.3s ease, min-height 0.3s ease;
      border: 3px solid rgba(180, 60, 170, 0.35);
  }

  @media (max-width: 1024px) {
      .game-area {
          width: 100%;
          max-width: 600px;
          min-width: 320px;
          order: 1;
      }
  }

  @media (max-width: 768px) {
      .game-area {
          max-width: 100%;
          min-height: 400px;
          max-height: 480px;
          margin-bottom: 0;
          border-radius: 15px;
          padding-top: 50px;
          padding-bottom: 10px;
          padding-left: 20px;
          padding-right: 20px;
          order: 1;
          margin-top: 84px;
      }
  }

  @media (max-width: 390px) {
      .game-area {
          padding-left: 10px;
          padding-right: 10px;
      }
  }

  .game-area::before {
      content: '';
      position: absolute;
      top: -150%;
      left: -150%;
      right: -150%;
      bottom: -150%;
      background:
          repeating-linear-gradient(135deg,
              transparent,
              transparent 120px,
              rgba(100, 25, 95, 0.25) 120px,
              rgba(100, 25, 95, 0.25) 180px,
              transparent 180px,
              transparent 300px,
              rgba(80, 18, 75, 0.3) 300px,
              rgba(80, 18, 75, 0.3) 420px);
      pointer-events: none;
      opacity: 0.8;
  }

  .game-area::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:
          radial-gradient(ellipse at center,
              transparent 0%,
              transparent 40%,
              rgba(0, 0, 0, 0.1) 70%,
              rgba(0, 0, 0, 0.2) 100%);
      pointer-events: none;
      border-radius: 35px;
  }

  #play-text {
      position: absolute;
      top: 10px;
      left: 0;
      right: 0;
      text-align: center;
      font-family: 'Orbitron', sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: 3px;
      text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
      z-index: 10;
      animation: blink 1.5s ease-in-out infinite;
  }

  @media (max-width: 768px) {
      #play-text {
          font-size: 14px;
          letter-spacing: 1px;
          top: 10px;
      }
  }

  @keyframes blink {

      0%,
      100% {
          opacity: 1;
      }

      50% {
          opacity: 0.3;
      }
  }

  .reload-config-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: linear-gradient(145deg, #00ff88, #00cc66);
      border: 3px solid #00ff88;
      color: #1a0028;
      padding: 15px 25px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 6px 0 #008844, 0 8px 20px rgba(0, 255, 136, 0.4);
      transition: transform 0.1s;
      letter-spacing: 2px;
      font-family: 'Orbitron', sans-serif;
      z-index: 100;
      display: none;
      touch-action: manipulation;
  }

  @media (max-width: 768px) {
      .reload-config-btn {
          display: none !important;
      }
  }

  .reload-config-btn.show {
      display: block;
  }

  .reload-config-btn:active {
      transform: translateY(4px);
      box-shadow: 0 2px 0 #008844, 0 4px 15px rgba(0, 255, 136, 0.4);
  }

  .result-box {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(90, 0, 80, 0.95);
      border: 3px solid #ff3389;
      border-radius: 20px;
      padding: 40px 60px;
      text-align: center;
      font-size: 32px;
      font-weight: 900;
      letter-spacing: 2px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
      z-index: 100;
      display: none;
  }

  .result-box.show {
      display: block;
      animation: popIn 0.3s ease-out;
  }

  @keyframes popIn {
      0% {
          transform: translate(-50%, -50%) scale(0.5);
          opacity: 0;
      }

      100% {
          transform: translate(-50%, -50%) scale(1);
          opacity: 1;
      }
  }

  .slot.highlight {
      animation: pulse 0.5s ease-in-out;
      box-shadow: 0 0 25px rgba(255, 200, 0, 0.8), 0 5px 10px rgba(0, 0, 0, 0.4);
  }

  @keyframes pulse {

      0%,
      100% {
          transform: scale(1);
      }

      50% {
          transform: scale(1.15);
      }
  }

  .peg {
      position: absolute;
      width: 10px;
      height: 10px;
      background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgb(200, 200, 200));
      border-radius: 50%;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 255, 255, 0.4);
      opacity: 0.85;
  }

  @media (max-width: 768px) {
      .peg {
          width: 9px;
          height: 9px;
      }
  }

  .ball {
      position: absolute;
      width: 18px;
      height: 18px;
      background: radial-gradient(circle at 35% 35%, #ffff66, #ffcc00, #ff9900);
      border-radius: 50%;
      box-shadow:
          0 2px 6px rgba(0, 0, 0, 0.5),
          0 0 20px rgba(255, 200, 0, 0.8),
          0 0 30px rgba(255, 150, 0, 0.4),
          inset -2px -2px 4px rgba(0, 0, 0, 0.3),
          inset 2px 2px 4px rgba(255, 255, 255, 0.5);
      z-index: 10;
      filter: brightness(1.2);
      animation: ballGlow 0.8s ease-in-out infinite alternate;
  }

  @keyframes ballGlow {
      0% {
          filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 200, 0, 0.6));
      }

      100% {
          filter: brightness(1.4) drop-shadow(0 0 15px rgba(255, 200, 0, 0.9));
      }
  }

  .ball::before {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 6px;
      height: 6px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent);
      border-radius: 50%;
      filter: blur(1px);
  }

  .ball-trail {
      position: absolute;
      width: 12px;
      height: 12px;
      background: radial-gradient(circle, rgba(255, 200, 0, 0.6), transparent);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9;
      animation: trailFade 0.5s ease-out forwards;
  }

  @keyframes trailFade {
      0% {
          opacity: 0.8;
          transform: scale(1);
      }

      100% {
          opacity: 0;
          transform: scale(0.3);
      }
  }

  .amount-popup {
      position: absolute;
      font-size: 24px;
      font-weight: 900;
      z-index: 100;
      pointer-events: none;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
      animation: popupFloat 1.5s ease-out forwards;
  }

  @media (max-width: 768px) {
      .amount-popup {
          font-size: 18px;
      }
  }

  .amount-popup.win {
      color: #00ff00;
      text-shadow: 0 0 10px #00ff00, 0 2px 4px rgba(0, 0, 0, 0.8);
  }

  .amount-popup.lose {
      color: #ff0000;
      text-shadow: 0 0 10px #ff0000, 0 2px 4px rgba(0, 0, 0, 0.8);
  }

  @keyframes popupFloat {
      0% {
          opacity: 1;
          transform: translateY(0) scale(1);
      }

      50% {
          transform: translateY(-30px) scale(1.2);
      }

      100% {
          opacity: 0;
          transform: translateY(-60px) scale(0.8);
      }
  }

  .multipliers {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 5;
      max-width: 90%;
      flex-wrap: nowrap;
      justify-content: center;
  }

  @media (max-width: 768px) {
      .multipliers {
          gap: 3px;
          max-width: 95%;
      }
  }

  @media (max-width: 480px) {
      .multipliers {
          gap: 2px;
          max-width: 96%;
      }
  }

  @media (max-width: 390px) {
      .multipliers {
          gap: 1px;
          max-width: 98%;
      }
  }

  .multipliers.small-slots {
      gap: 4px;
  }

  .multipliers.medium-slots {
      gap: 5px;
  }

  .multipliers.large-slots {
      gap: 6px;
  }

  .slot {
      min-width: 48px;
      height: 52px;
      border-radius: 12px;
      text-align: center;
      line-height: 52px;
      font-weight: 900;
      font-size: 12px;
      color: #fff;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 -3px 5px rgba(0, 0, 0, 0.4);
      position: relative;
      flex: 1 1 auto;
  }

  @media (max-width: 768px) {
      .slot {
          min-width: 30px;
          max-width: 35px;
          height: 40px;
          line-height: 31px;
          font-size: 9px;
          flex: 0 1 auto;
      }
  }

  @media (max-width: 480px) {
      .slot {
          min-width: 30px;
          max-width: 35px;
          height: 44px;
          line-height: 30px;
          font-size: 10px;
          flex: 0 1 auto;
      }
  }

  @media (max-width: 390px) {
      .slot {
          min-width: 26px;
          max-width: 30px;
          height: 40px;
          line-height: 31px;
          font-size: 9px;
          flex: 0 1 auto;
      }
  }

  .multipliers.small-slots .slot {
      max-width: 46px;
      font-size: 10px;
      min-width: 42px;
  }

  .multipliers.medium-slots .slot {
      max-width: 52px;
      font-size: 11px;
      min-width: 46px;
  }

  .multipliers.large-slots .slot {
      max-width: 60px;
      font-size: 13px;
      min-width: 50px;
  }

  @media (max-width: 480px) {
      .multipliers.small-slots .slot {
          max-width: 40px;
          font-size: 10px;
          min-width: 32px;
      }

      .multipliers.medium-slots .slot {
          max-width: 48px !important;
          font-size: 9px !important;
          min-width: 30px !important;
          max-height: 31px !important;
      }

      .multipliers.large-slots .slot {
          max-width: 48px !important;
          font-size: 12px !important;
          min-width: 30px !important;
          max-height: 31px !important;
      }
  }

  @media (max-width: 390px) {
      .multipliers.small-slots .slot {
          max-width: 30px;
          font-size: 9px;
          min-width: 26px;
      }

      .multipliers.medium-slots .slot {
          max-width: 30px;
          font-size: 9px;
          min-width: 26px;
      }

      .multipliers.large-slots .slot {
          max-width: 30px;
          font-size: 9px;
          min-width: 26px;
      }
  }

  .slot::after {
      content: '';
      position: absolute;
      top: 4px;
      left: 8px;
      right: 8px;
      height: 14px;
      background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
      border-radius: 6px 6px 0 0;
      pointer-events: none;
  }

  .slot.m-56x {
      background: linear-gradient(180deg, #ff3333 0%, #cc0000 100%);
      border: 1px solid rgba(255, 100, 100, 0.4);
  }

  .slot.m-21x {
      background: linear-gradient(180deg, #ff5522 0%, #dd2200 100%);
      border: 1px solid rgba(255, 120, 80, 0.4);
  }

  .slot.m-11x {
      background: linear-gradient(180deg, #ff8833 0%, #ee5500 100%);
      border: 1px solid rgba(255, 160, 100, 0.4);
  }

  .slot.m-1x {
      background: linear-gradient(180deg, #ffbb44 0%, #ff9900 100%);
      border: 1px solid rgba(255, 200, 120, 0.4);
  }

  .slot.m-05x {
      background: linear-gradient(180deg, #ffdd55 0%, #ffbb00 100%);
      border: 1px solid rgba(255, 230, 150, 0.4);
  }

  /* Canvas styles */
  #game-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
  }