/* Sip City Casino — shared theme */
:root {
  --juice: #f5a623; --juice-hot: #ff7a00; --grape: #7c3aed;
  --bg1: #170b2b; --bg2: #090511; --win: #ffd54a; --felt1: #0d3b25; --felt2: #062114;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Rubik', system-ui, sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg1) 0%, var(--bg2) 70%);
  color: #f4ecff; overflow-x: hidden; min-height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
#bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; }

/* nav */
.cnav {
  z-index: 3; width: min(94vw, 560px); display: flex; align-items: center;
  justify-content: space-between; gap: 10px; margin: 14px auto 0; font-size: 14px;
}
.cback { color: #b9a7d8; text-decoration: none; font-weight: 600; letter-spacing: .06em;
         padding: 7px 12px; border: 1px solid rgba(185,167,216,.3); border-radius: 999px; }
.cback:hover { color: var(--juice); border-color: rgba(245,166,35,.5); }
.ctitle { font-family: 'Righteous'; letter-spacing: .12em; color: #b9a7d8; font-size: 13px; }
.cwallet { background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.4);
           padding: 7px 14px; border-radius: 999px; font-weight: 800; }

/* cabinet frame (shared) */
.cabinet {
  position: relative; z-index: 2; width: min(94vw, 560px);
  margin: clamp(10px, 2.5vh, 26px) auto 24px;
  border-radius: 30px; padding: 4px;
  background: linear-gradient(160deg, #ffd98a, #b96a00 30%, #ffb347 50%, #7c3f00 75%, #ffd98a);
  box-shadow: 0 0 60px rgba(245, 166, 35, .28), 0 30px 60px rgba(0,0,0,.6);
}
.cabinet.shake { animation: shake .5s linear infinite; }
@keyframes shake {
  0%,100% { transform: translate(0,0) rotate(0); }
  20% { transform: translate(-4px,2px) rotate(-.4deg); }
  40% { transform: translate(4px,-2px) rotate(.4deg); }
  60% { transform: translate(-3px,-2px) rotate(-.3deg); }
  80% { transform: translate(3px,2px) rotate(.3deg); }
}
.inner {
  border-radius: 27px; background: linear-gradient(180deg, #1d1130 0%, #0d0718 100%);
  padding: clamp(14px, 3vw, 24px); overflow: hidden;
}
.marquee { text-align: center; margin-bottom: clamp(8px, 2vw, 16px); }
.marquee h1 {
  font-family: 'Righteous', cursive; font-size: clamp(24px, 6.4vw, 38px);
  letter-spacing: .06em; color: #fff;
  text-shadow: 0 0 8px var(--juice), 0 0 22px var(--juice-hot), 0 0 48px var(--juice-hot), 0 2px 0 #7c3f00;
  animation: neonpulse 2.6s ease-in-out infinite;
}
.marquee .sub { font-size: 12px; letter-spacing: .35em; color: #b9a7d8; margin-top: 2px; }
@keyframes neonpulse {
  0%,100% { text-shadow: 0 0 8px var(--juice), 0 0 22px var(--juice-hot), 0 0 48px var(--juice-hot), 0 2px 0 #7c3f00; }
  50% { text-shadow: 0 0 12px var(--juice), 0 0 34px var(--juice-hot), 0 0 70px var(--juice-hot), 0 2px 0 #7c3f00; }
}
@keyframes flicker { 0%,7%,9%,100% { opacity: 1; } 8% { opacity: .35; } 42%,43.5% { opacity: 1; } 43% { opacity: .4; } }
.flick { animation: flicker 7s linear infinite; }

/* chips + buttons (shared) */
.bets { display: flex; gap: 8px; justify-content: center; margin: 14px 0 12px; flex-wrap: wrap; }
.bet {
  border: 1px solid rgba(124,58,237,.5); background: rgba(124,58,237,.12); color: #d9c9ff;
  font: 700 15px 'Rubik'; padding: 9px 0; width: 62px; border-radius: 12px; cursor: pointer;
  transition: all .15s ease;
}
.bet:hover { transform: translateY(-2px); }
.bet.on { background: linear-gradient(180deg, var(--juice), var(--juice-hot)); color: #2b1600;
          border-color: #ffd98a; box-shadow: 0 0 18px rgba(255,122,0,.55); }
.bigbtn {
  border: none; cursor: pointer; border-radius: 16px; padding: 15px 0;
  font-family: 'Righteous'; font-size: clamp(17px, 5vw, 24px); letter-spacing: .1em; color: #2b1600;
  background: linear-gradient(180deg, #ffd98a 0%, var(--juice) 40%, var(--juice-hot) 100%);
  box-shadow: 0 6px 0 #7c3f00, 0 10px 26px rgba(255,122,0,.45);
  transition: transform .08s ease, box-shadow .08s ease, filter .2s;
}
.bigbtn:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #7c3f00, 0 4px 12px rgba(255,122,0,.4); }
.bigbtn:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }
.ghostbtn {
  border: 1px solid rgba(185,167,216,.35); background: rgba(185,167,216,.08); color: #d9c9ff;
  border-radius: 16px; cursor: pointer; font-family: 'Righteous'; letter-spacing: .08em;
  font-size: clamp(14px, 4vw, 18px); padding: 15px 0;
  box-shadow: 0 6px 0 #2a1745; transition: transform .08s ease, box-shadow .08s ease;
}
.ghostbtn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #2a1745; }
.ghostbtn:disabled { filter: grayscale(.6) brightness(.6); cursor: default; }

.result { min-height: 30px; text-align: center; margin: 12px 0 4px; font-weight: 800;
          font-size: clamp(15px, 4vw, 20px); letter-spacing: .02em; }
.result .big { color: var(--win); text-shadow: 0 0 14px rgba(255,213,74,.8); }
.result .meh { color: #8d7bb0; font-weight: 600; }

.foot { z-index: 2; text-align: center; color: #6d5b93; font-size: 11px; margin: 0 14px 22px; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(90px);
         background: #2a1745; border: 1px solid rgba(245,166,35,.5); color: #ffe9c4;
         padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
         transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); z-index: 70; max-width: 88vw; text-align: center; }
#toast.show { transform: translateX(-50%) translateY(0); }
.locked { z-index: 2; text-align: center; margin: 18vh 20px; }
.locked h2 { font-family: 'Righteous'; font-size: 30px; color: var(--juice); margin-bottom: 10px; }
.locked p { color: #b9a7d8; }
