/* BUFFALO — cabinet UI styling. The stage is a fixed 1920x1080 scene scaled to fit. */
:root {
  --gold-1: #fde9c4; --gold-2: #e0a95a; --gold-3: #b06a2c; --gold-4: #4a2a0c;
  --amber: #ffd9a0; --teal: #3fc1b5; --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: #f3e2c4; user-select: none; -webkit-user-select: none; }
body { background: radial-gradient(ellipse at 50% 40%, #241410 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, #2a1a10 0%, #150c07 40%, #0a0604 100%);
  border-top: 4px solid #a86a2c;
  box-shadow: inset 0 2px 0 #f0c48a, 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: #d4a060; 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,170,80,.55), 0 2px 0 #3b2000; 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, #070403, #130b07); border: 2px solid #4a3014; border-radius: 10px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.9), 0 0 0 1px #0a0604, 0 0 18px rgba(255,170,80,.08); }
#meter-credits { left: 30px; min-width: 300px; }
#meter-ways { left: 740px; min-width: 200px; }
#meter-ways .value { color: var(--teal); text-shadow: 0 0 14px rgba(63,193,181,.5), 0 2px 0 #0b2a27; }
#meter-win { left: 980px; min-width: 400px; }
#meter-win .value { color: #ffe9c0; text-shadow: 0 0 22px rgba(255,200,120,.8), 0 2px 0 #3b2000; }
.group { position: absolute; top: 44px; text-align: center; }
#group-bet { left: 370px; width: 330px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; }
.stepper .value { min-width: 130px; font-size: 44px; padding: 10px 6px; background: linear-gradient(180deg, #070403, #130b07); border: 2px solid #4a3014; border-radius: 10px; box-shadow: inset 0 0 24px rgba(0,0,0,.9); }
#m-mult { color: var(--teal); letter-spacing: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn { font-family: var(--font); font-weight: 900; letter-spacing: 2px; color: #3a2006; cursor: pointer; border: 0; outline: none;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 30%, var(--gold-3) 75%, #7a4a18 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, #d9fff6, #58d2c0 35%, #1f8a7e 80%, #135a52); color: #06241f; }
.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%, #fff1d6 0%, #f0b860 22%, #c07a2c 60%, #6a3a10 100%);
  box-shadow: inset 0 4px 2px rgba(255,255,255,.7), inset 0 -8px 14px rgba(0,0,0,.45), 0 8px 0 #3e2208, 0 16px 28px rgba(0,0,0,.7), 0 0 0 6px #2a1608, 0 0 0 9px #8a5a22; }
.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 #3e2208, 0 8px 16px rgba(0,0,0,.7), 0 0 0 6px #2a1608, 0 0 0 9px #8a5a22; }
.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,180,90,.8)); } }
.side { position: absolute; left: 30px; 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: #e0a95a; cursor: pointer; }
.hint { position: absolute; left: 370px; top: 200px; width: 1110px; text-align: center; font-size: 15px; letter-spacing: 1px; color: #8a6a44; }

/* --------------------------------------------------------------- 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: 1560px; max-height: 1010px; overflow: auto; padding: 26px 40px 32px; border-radius: 18px;
  background: linear-gradient(180deg, #1c120b, #0a0604); border: 3px solid #b06a2c; box-shadow: 0 0 0 2px #3a2008, 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 14px; font-size: 40px; letter-spacing: 6px; color: var(--amber); text-shadow: 0 0 20px rgba(255,170,80,.5); }
.pay-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.pay-card { background: rgba(255,255,255,.03); border: 1px solid #3a2810; border-radius: 12px; padding: 8px; }
.pay-card img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.8)); }
.pay-name { font-size: 14px; letter-spacing: 2px; color: #d4a060; margin: 4px 0 6px; }
.pay-list div { display: flex; justify-content: space-between; font-size: 17px; padding: 1px 8px; }
.pay-list b { color: #fff; } .pay-list span { color: var(--amber); font-weight: 700; }
.pay-list p { font-size: 13px; line-height: 1.35; color: #e6d7b8; margin: 4px 0; }
.rules { text-align: left; columns: 2; column-gap: 40px; margin: 14px 0 6px; padding-left: 24px; font-size: 16px; line-height: 1.4; color: #e6d7b8; }
.rtp { font-size: 14px; color: #9b7f58; margin: 6px 0 14px; }
#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(70,36,20,.85) 0%, rgba(0,0,0,.96) 75%); cursor: pointer; }
#splash .inner { text-align: center; }
#splash .title { font-size: 190px; font-weight: 900; letter-spacing: 18px; line-height: 1;
  background: linear-gradient(180deg, #fff1d6 0%, #f6c25a 40%, #b86a1c 52%, #f2b24a 62%, #7a4208 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255,170,80,.45)) drop-shadow(0 6px 0 #2a1402); }
#splash .sub { font-size: 28px; letter-spacing: 10px; color: var(--teal); margin: 10px 0 60px; }
#splash-text { font-size: 34px; letter-spacing: 8px; color: #ffe9c0; }
#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: #1a120c; border: 1px solid #4a3014; border-radius: 6px; overflow: hidden; }
#splash-bar { height: 100%; width: 0; background: linear-gradient(90deg, #7a4208, #f6c25a); transition: width .2s; }
#splash.ready .bar { opacity: 0; }
#splash .note { margin-top: 40px; font-size: 16px; letter-spacing: 3px; color: #7a6040; }
