/* ZEUS — cabinet UI styling. The stage is a fixed 1920x1080 scene scaled to fit. */
:root {
  --gold-1: #fff3bd; --gold-2: #e9c250; --gold-3: #b8860b; --gold-4: #5a3d08;
  --amber: #ffd76a; --font: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: var(--font); color: #f3e2b0; user-select: none; -webkit-user-select: none; }
body { background: radial-gradient(ellipse at 50% 40%, #121424 0%, #000 70%); }
#stage { position: fixed; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%); transform-origin: center center; }
#game { position: absolute; left: 0; top: 0; display: block; }

/* ----------------------------------------------------------- bottom panel */
#ui {
  position: absolute; left: 0; top: 836px; width: 1920px; height: 244px;
  background: linear-gradient(180deg, #23232d 0%, #121218 40%, #0a0a0e 100%);
  border-top: 4px solid #a27f1f;
  box-shadow: inset 0 2px 0 #f2d77a, inset 0 24px 40px rgba(0,0,0,.55), 0 -10px 30px rgba(0,0,0,.6);
}
#ui::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px);
}
.label { font-size: 18px; letter-spacing: 4px; color: #c9a84a; text-shadow: 0 1px 0 #000; margin-bottom: 6px; }
.value { font-size: 46px; font-weight: 700; color: var(--amber); letter-spacing: 1px; text-shadow: 0 0 14px rgba(255,190,60,.55), 0 2px 0 #3b2500; line-height: 1; font-variant-numeric: tabular-nums; }
.meter { position: absolute; top: 44px; padding: 14px 22px; min-width: 260px; text-align: center;
  background: linear-gradient(180deg, #06060a, #101018); border: 2px solid #4a3b14; border-radius: 10px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.9), 0 0 0 1px #0a0a0a, 0 0 18px rgba(255,200,80,.08); }
#meter-credits { left: 30px; min-width: 300px; }
#meter-total { left: 975px; min-width: 205px; }
#meter-win { left: 1195px; min-width: 285px; }
#meter-win .value { color: #ffe9a8; text-shadow: 0 0 22px rgba(255,220,120,.8), 0 2px 0 #3b2500; }
.group { position: absolute; top: 44px; text-align: center; }
#group-lines { left: 350px; width: 290px; }
#group-bet { left: 650px; width: 310px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; }
.stepper .value { min-width: 110px; font-size: 44px; padding: 10px 6px; background: linear-gradient(180deg, #06060a, #101018); border: 2px solid #4a3b14; border-radius: 10px; box-shadow: inset 0 0 24px rgba(0,0,0,.9); }

/* ---------------------------------------------------------------- buttons */
.btn {
  font-family: var(--font); font-weight: 900; letter-spacing: 2px; color: #3a2606; cursor: pointer; border: 0; outline: none;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 30%, var(--gold-3) 75%, #8a640f 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.75), inset 0 -3px 0 rgba(0,0,0,.35), 0 6px 0 var(--gold-4), 0 10px 18px rgba(0,0,0,.6);
  border-radius: 14px; text-shadow: 0 1px 0 rgba(255,255,255,.45); transition: transform .06s, box-shadow .06s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.35), 0 2px 0 var(--gold-4), 0 4px 10px rgba(0,0,0,.6); }
.btn:disabled { filter: grayscale(.55) brightness(.65); cursor: default; transform: none; }
.btn.small { width: 56px; height: 56px; font-size: 34px; border-radius: 50%; line-height: 1; padding: 0 0 4px; }
.btn.wide { position: absolute; width: 172px; height: 64px; font-size: 21px; }
#btn-max { left: 1498px; top: 48px; }
#btn-auto { left: 1498px; top: 128px; }
#btn-auto.on { background: linear-gradient(180deg, #d9ffe3, #58d27a 35%, #1f8a3e 80%, #135a28); color: #06240f; }
.btn.spin {
  position: absolute; left: 1690px; top: 26px; width: 196px; height: 196px; border-radius: 50%; font-size: 36px; letter-spacing: 3px;
  background: radial-gradient(circle at 38% 30%, #fff8d6 0%, #f3cf5a 22%, #c8961a 60%, #7a560c 100%);
  box-shadow: inset 0 4px 2px rgba(255,255,255,.7), inset 0 -8px 14px rgba(0,0,0,.45), 0 8px 0 #4a3206, 0 16px 28px rgba(0,0,0,.7), 0 0 0 6px #2a1d05, 0 0 0 9px #8a6a1a;
}
.btn.spin:active { transform: translateY(5px); box-shadow: inset 0 4px 2px rgba(255,255,255,.6), inset 0 -4px 10px rgba(0,0,0,.45), 0 3px 0 #4a3206, 0 8px 16px rgba(0,0,0,.7), 0 0 0 6px #2a1d05, 0 0 0 9px #8a6a1a; }
.btn.spin.long { font-size: 25px; letter-spacing: 2px; }
.btn.spin.pulse { animation: spinpulse 1.6s ease-in-out infinite; }
@keyframes spinpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18) drop-shadow(0 0 18px rgba(255,210,90,.8)); } }
.side { position: absolute; left: 40px; top: 170px; display: flex; align-items: center; gap: 14px; }
.btn.icon { width: 50px; height: 50px; border-radius: 50%; font-size: 24px; font-style: italic; }
#btn-sound { font-style: normal; font-size: 22px; }
#btn-sound.muted { filter: grayscale(.7) brightness(.7); }
#vol { width: 200px; accent-color: #e9c250; cursor: pointer; }
.hint { position: absolute; left: 350px; top: 200px; width: 1130px; text-align: center; font-size: 15px; letter-spacing: 1px; color: #7d6a3a; }

/* --------------------------------------------------------------- overlays */
#paytable { position: absolute; inset: 0; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; z-index: 20; }
#paytable.hidden, #splash.hidden { display: none; }
#paytable .panel { width: 1500px; max-height: 1000px; overflow: auto; padding: 30px 40px 36px; border-radius: 18px;
  background: linear-gradient(180deg, #15131c, #090910); border: 3px solid #b8942c; box-shadow: 0 0 0 2px #3a2a08, 0 0 60px rgba(0,0,0,.9), inset 0 0 80px rgba(0,0,0,.7); text-align: center; }
#paytable h2 { margin: 0 0 18px; font-size: 42px; letter-spacing: 6px; color: var(--amber); text-shadow: 0 0 20px rgba(255,200,80,.5); }
.pay-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pay-card { background: rgba(255,255,255,.03); border: 1px solid #3a3012; border-radius: 12px; padding: 10px; }
.pay-card img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.8)); }
.pay-name { font-size: 16px; letter-spacing: 2px; color: #c9a84a; margin: 4px 0 6px; }
.pay-list div { display: flex; justify-content: space-between; font-size: 20px; padding: 1px 12px; }
.pay-list b { color: #fff; } .pay-list span { color: var(--amber); font-weight: 700; }
.pay-list p { font-size: 15px; line-height: 1.35; color: #e6d7b0; margin: 4px 0; }
.rules { text-align: left; columns: 2; column-gap: 40px; margin: 18px 0 6px; padding-left: 24px; font-size: 17px; line-height: 1.45; color: #e6d7b0; }
.rtp { font-size: 15px; color: #9b8a5c; margin: 6px 0 16px; }
#pay-close { position: relative; }

#splash { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 35%, rgba(40,36,70,.85) 0%, rgba(0,0,0,.96) 75%); cursor: pointer; }
#splash .inner { text-align: center; }
#splash .title { font-size: 220px; font-weight: 900; letter-spacing: 24px; line-height: 1;
  background: linear-gradient(180deg, #fff6c8 0%, #f8d865 40%, #b8860b 52%, #f5cf4a 62%, #8a5a06 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255,200,90,.45)) drop-shadow(0 6px 0 #2a1a02); }
#splash .sub { font-size: 30px; letter-spacing: 14px; color: #c9a84a; margin: 10px 0 60px; }
#splash-text { font-size: 34px; letter-spacing: 8px; color: #ffe9a8; }
#splash.ready #splash-text { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#splash .bar { width: 520px; height: 10px; margin: 26px auto 0; background: #1a1a22; border: 1px solid #4a3b14; border-radius: 6px; overflow: hidden; }
#splash-bar { height: 100%; width: 0; background: linear-gradient(90deg, #8a5a06, #f8d865); transition: width .2s; }
#splash.ready .bar { opacity: 0; }
#splash .note { margin-top: 40px; font-size: 16px; letter-spacing: 3px; color: #6f6140; }
