/* TEXAS HOLD'EM — HUD styling. Stage is a fixed 1920x1080 scene scaled to fit. */
:root { --gold: #e9c250; --cream: #f3e2b0; --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: var(--font); color: var(--cream); user-select: none; -webkit-user-select: none; }
#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; }
#hud { position: absolute; left: 40px; top: 28px; font-size: 14px; letter-spacing: 3px; color: #c9bb8f; background: rgba(6,6,10,.7); padding: 8px 14px; border-radius: 8px; border: 1px solid #3a3012; }
#topbar { position: absolute; left: 40px; top: 74px; display: flex; align-items: center; gap: 10px; }
#history { position: absolute; left: 1650px; top: 28px; width: 250px; height: 300px; background: rgba(6,6,10,.78); border: 1px solid #3a3012; border-radius: 10px; padding: 10px 12px; }
#history .title { font-size: 12px; letter-spacing: 3px; color: var(--gold); margin-bottom: 6px; }
#feed { height: 250px; overflow: hidden; font-size: 12.5px; line-height: 1.45; color: #cfc7b0; display: flex; flex-direction: column; }
#feed .line.hand { color: var(--gold); margin-top: 4px; font-weight: 700; }
#feed .line.you { color: #9fd0ff; } #feed .line.win { color: #7cff9d; } #feed .line.street { color: #ffe9a8; } #feed .line.sys { color: #ff9f6b; }
#message { position: absolute; left: 0; width: 1920px; top: 905px; text-align: center; font-size: 20px; letter-spacing: 2px; color: #ff9f6b; text-shadow: 0 2px 6px #000; }
#btn-rebuy { position: absolute; left: 1110px; top: 775px; height: 52px; padding: 0 28px; }
#btn-rebuy.hidden { display: none; }

#actions { position: absolute; left: 0; top: 950px; width: 1920px; height: 130px; display: flex; align-items: center; gap: 16px; padding: 0 60px; background: linear-gradient(180deg, #16141c, #0a090e); border-top: 2px solid #5a4a1a; box-shadow: 0 -10px 30px rgba(0,0,0,.6); }
#actions .info { min-width: 220px; }
#actions .label { font-size: 12px; letter-spacing: 3px; color: #a89b78; }
#actions .value { font-size: 34px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
#actions .sub { font-size: 13px; letter-spacing: 2px; color: #ffe9a8; min-height: 16px; }
#actions.live .sub { color: #7cff9d; }
.btn { font-family: var(--font); font-weight: 800; letter-spacing: 2px; font-size: 18px; cursor: pointer; border: 1px solid #6a5a2a; color: var(--cream); background: linear-gradient(180deg, #2a2834, #15141b); border-radius: 12px; padding: 0 26px; height: 64px; box-shadow: 0 4px 0 #0a0a0e, 0 8px 16px rgba(0,0,0,.5); transition: transform .06s, filter .15s; }
.btn:hover { filter: brightness(1.15); } .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a0a0e; }
.btn:disabled { filter: grayscale(.7) brightness(.5); cursor: default; transform: none; }
.btn.red { background: linear-gradient(180deg, #ff8a8a, #c62828 40%, #7a0f0f); color: #fff; border-color: #5a0a0a; }
.btn.green { background: linear-gradient(180deg, #b6ffc8, #28a745 40%, #146b2b); color: #03200c; border-color: #0a3a14; min-width: 190px; }
.btn.gold { background: linear-gradient(180deg, #fff3bd, #e9c250 35%, #b8860b 80%, #8a640f); color: #2a1a00; border-color: #5a3d08; }
.btn.dark { background: linear-gradient(180deg, #4a4a58, #22222c 40%, #0f0f14); color: #ffe9a8; }
.btn.icon { width: 46px; height: 46px; border-radius: 50%; padding: 0; font-size: 18px; }
#btn-sound.muted { filter: grayscale(.7) brightness(.7); }
#vol { width: 140px; accent-color: var(--gold); cursor: pointer; }
.raisebox { display: flex; flex-direction: column; gap: 6px; width: 560px; }
.presets { display: flex; gap: 6px; }
.preset { flex: 1; height: 26px; border-radius: 6px; border: 1px solid #5a4a1a; background: #1b1a22; color: #e9c250; font-weight: 700; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.preset:hover { background: #2a2834; } .preset:disabled { opacity: .4; cursor: default; }
.sliderrow { display: flex; gap: 8px; align-items: center; }
#slider { flex: 1; accent-color: var(--gold); }
#amount { width: 96px; height: 30px; background: #0b0b10; color: var(--gold); border: 1px solid #5a4a1a; border-radius: 6px; font-weight: 800; font-size: 16px; text-align: center; font-family: var(--font); }
.raisebox .btn { height: 44px; font-size: 16px; }

#help { position: absolute; inset: 0; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; z-index: 20; }
#help.hidden, #splash.hidden { display: none; }
#help .panel { width: 1000px; max-height: 940px; overflow: auto; padding: 30px 40px 36px; border-radius: 18px; background: linear-gradient(180deg, #1a1830, #0a0a14); border: 3px solid #b8942c; box-shadow: 0 0 60px rgba(0,0,0,.9); text-align: center; }
#help h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: 4px; color: var(--gold); }
#help .btn { margin-top: 12px; }
.rules { text-align: left; font-size: 16px; line-height: 1.55; color: #e6d7b0; padding-left: 22px; margin: 10px 0; }
.hint { font-size: 14px; color: #c9bb8f; }
code { background: #15131c; padding: 1px 6px; border-radius: 4px; color: #ffe9a8; }
#splash { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; cursor: pointer; background: radial-gradient(ellipse at 50% 35%, rgba(20,40,30,.85) 0%, rgba(0,0,0,.96) 75%); }
#splash .inner { text-align: center; }
#splash .logo { width: 1000px; max-width: 90vw; filter: drop-shadow(0 0 30px rgba(255,200,90,.45)); }
#splash .sub { font-size: 18px; letter-spacing: 8px; color: #c9a84a; margin: 14px 0 50px; }
#splash-text { font-size: 30px; 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 .note { margin-top: 40px; font-size: 14px; letter-spacing: 3px; color: #6f6140; }
