/* The theatrical scene scales as a unit; game values stay in the DOM. */
*{box-sizing:border-box}
:root{color-scheme:dark;--ivory:#f9e6c6;--crimson:#af0929;--ink:#130c0d}
body{margin:0;background:radial-gradient(ellipse at 50% 12%,#38151d 0,#130c0f 55%,#0b090b 100%);color:var(--ivory);font:15px system-ui,sans-serif}
main{margin:0 auto}
a{color:#f4dbba;text-underline-offset:3px}
#bd-play{--u:min(calc(100vw / 390),calc(100svh / 844),1.15px);position:relative;width:calc(390 * var(--u));height:calc(844 * var(--u));margin:0 auto;background:#100b0b url('../assets/play/bluffdeck/backdrop.webp') center/100% 100% no-repeat;isolation:isolate}
[data-stage],[data-stage] button{touch-action:none}
h1{position:absolute;left:calc(6 * var(--u));top:0;width:calc(378 * var(--u));height:calc(103 * var(--u));margin:0;line-height:1}
h1 img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 calc(4 * var(--u)) calc(3 * var(--u)) #0009)}
.eyebrow{font-size:calc(8 * var(--u));letter-spacing:calc(1.4 * var(--u));font-weight:750}
#bd-play>.eyebrow{position:absolute;top:calc(103 * var(--u));left:0;width:100%;text-align:center;color:#e6cbb2}
.hud{position:absolute;top:calc(119 * var(--u));left:calc(32 * var(--u));right:calc(32 * var(--u));height:calc(40 * var(--u));display:grid;grid-template-columns:1fr 1fr;gap:calc(12 * var(--u))}
.stat{display:flex;align-items:center;justify-content:center;gap:calc(9 * var(--u));font:700 calc(14 * var(--u))/1 Georgia,serif;background:url('../assets/play/bluffdeck/panel-compact.webp') center/100% 100% no-repeat;padding-bottom:calc(2 * var(--u));text-shadow:0 2px 2px #000}
.stat small{display:block;font:500 calc(8 * var(--u))/1.3 system-ui,sans-serif;text-align:center;margin-top:calc(2 * var(--u))}
.stat b{font:700 calc(25 * var(--u))/1 Georgia,serif;color:#fff0d4}
.meta{position:absolute;top:calc(167 * var(--u));left:calc(35 * var(--u));right:calc(35 * var(--u));display:flex;align-items:center;justify-content:space-between;font-size:calc(9 * var(--u));letter-spacing:calc(.3 * var(--u));color:#ecd9c6}
.meta span:first-child{font-size:calc(12 * var(--u));font-weight:750}
.meta span:last-child{font-size:calc(7.5 * var(--u))}
.daily{position:absolute;top:calc(191 * var(--u));left:calc(18 * var(--u));width:calc(354 * var(--u));height:calc(65 * var(--u));background:url('../assets/play/bluffdeck/ranking.webp') center/100% 100% no-repeat;text-align:center;padding:calc(9 * var(--u)) calc(27 * var(--u));color:#241511;filter:drop-shadow(0 calc(3 * var(--u)) calc(3 * var(--u)) #0009)}
.daily .eyebrow{font-size:calc(6.8 * var(--u));letter-spacing:calc(.9 * var(--u))}
.daily h2{font:700 calc(14 * var(--u))/1.3 Georgia,serif;margin:calc(2 * var(--u)) 0}
.daily p{font:700 calc(12 * var(--u))/1.2 Georgia,serif;white-space:nowrap;margin:0}
.stage{position:absolute;top:calc(264 * var(--u));left:calc(35 * var(--u));width:calc(320 * var(--u));height:calc(398 * var(--u))}
.seat-head{position:absolute;top:0;left:0;width:100%;height:calc(32 * var(--u));text-align:center}
.seat-head b{display:block;width:calc(172 * var(--u));height:calc(23 * var(--u));margin:auto;padding-top:calc(3 * var(--u));font:700 calc(15 * var(--u))/1 Georgia,serif;text-transform:uppercase;background:url('../assets/play/bluffdeck/panel-slim.webp') center/100% 100% no-repeat;position:relative}
.seat-head b:before,.seat-head b:after{content:'';position:absolute;top:50%;width:calc(47 * var(--u));height:calc(3 * var(--u));border-block:calc(1 * var(--u)) solid #d9b992}
.seat-head b:before{right:calc(100% + 4 * var(--u))}.seat-head b:after{left:calc(100% + 4 * var(--u))}
.seat-head span{display:block;font-size:calc(9 * var(--u));line-height:1.3;margin-top:calc(3 * var(--u));color:#e9d3bc}
.hand{position:absolute;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(13 * var(--u))}
#bd-computer{top:calc(40 * var(--u));left:calc(3 * var(--u));width:calc(314 * var(--u));height:calc(125 * var(--u))}
#bd-status{position:absolute;top:calc(170 * var(--u));left:calc(-5 * var(--u));width:calc(330 * var(--u));height:calc(36 * var(--u));display:flex;align-items:center;justify-content:center;margin:0;padding:calc(4 * var(--u)) calc(17 * var(--u));text-align:center;font-size:calc(12 * var(--u));font-weight:600;line-height:1.3;background:url('../assets/play/bluffdeck/panel-slim.webp') center/100% 100% no-repeat}
#bd-status+.seat-head{top:calc(211 * var(--u))}
#bd-hand{top:calc(252 * var(--u));left:calc(3 * var(--u));width:calc(314 * var(--u));height:calc(146 * var(--u))}
.card{position:relative;width:100%;height:100%;background-position:center;background-size:100% 100%;background-repeat:no-repeat;color:#191110;filter:drop-shadow(0 calc(5 * var(--u)) calc(3 * var(--u)) #000a);user-select:none}
.card b{position:absolute;left:15%;top:6%;font:700 calc(37 * var(--u))/1 Georgia,serif;text-shadow:0 1px #fff8}
.card small{position:absolute;bottom:9%;left:0;width:100%;text-align:center;font:700 calc(12 * var(--u))/1 Georgia,serif;letter-spacing:calc(.6 * var(--u));text-transform:uppercase}
#bd-computer .card b{font-size:calc(29 * var(--u))}#bd-computer .card small{font-size:calc(10 * var(--u))}
.card.sun{background-image:url('../assets/play/bluffdeck/card-sun.webp')}.card.moon{background-image:url('../assets/play/bluffdeck/card-moon.webp')}.card.leaf{background-image:url('../assets/play/bluffdeck/card-leaf.webp')}.card.back{background-image:url('../assets/play/bluffdeck/card-back.webp')}
button{font:700 calc(20 * var(--u))/1 Georgia,serif;color:var(--ivory);border:0;background:transparent url('../assets/play/bluffdeck/panel-slim.webp') center/100% 100% no-repeat;cursor:pointer;text-shadow:0 2px 2px #0007;padding:calc(5 * var(--u)) calc(10 * var(--u));-webkit-tap-highlight-color:transparent}
button small{display:block;font:600 calc(10 * var(--u))/1.3 system-ui,sans-serif;margin-top:calc(3 * var(--u));text-shadow:none}
button:disabled{opacity:.55;cursor:default;filter:saturate(.65)}
button:focus-visible{outline:calc(2 * var(--u)) solid #fff4da;outline-offset:calc(3 * var(--u));border-radius:calc(13 * var(--u))}
button:active:not(:disabled){transform:translateY(calc(2 * var(--u)))}
.actions{position:absolute;left:calc(25 * var(--u));right:calc(25 * var(--u));top:calc(672 * var(--u));height:calc(62 * var(--u));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:calc(10 * var(--u))}
.actions button{min-width:0;padding-bottom:calc(11 * var(--u));font-size:calc(20 * var(--u));text-transform:uppercase}
.actions button small{text-transform:none}
#bd-choice0{background-image:url('../assets/play/bluffdeck/button-ivory.webp');color:#23110e;text-shadow:0 1px 1px #fff}
#bd-choice1{background-image:url('../assets/play/bluffdeck/button-crimson.webp')}
#bd-main{position:absolute;top:calc(740 * var(--u));left:calc(32 * var(--u));width:calc(326 * var(--u));height:calc(44 * var(--u));font-size:calc(16 * var(--u))}
#bd-play[data-phase="choose"] #bd-main{font-size:calc(13 * var(--u))}
.toolbar{position:absolute;top:calc(790 * var(--u));left:calc(44 * var(--u));right:calc(44 * var(--u));height:calc(44 * var(--u));display:flex;gap:calc(16 * var(--u))}
.toolbar button{flex:1;min-width:0;font-size:calc(14 * var(--u));background-image:url('../assets/play/bluffdeck/panel-compact.webp');text-transform:uppercase}
#bd-over{position:absolute;z-index:4;inset:calc(22 * var(--u)) calc(-6 * var(--u));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:calc(22 * var(--u));padding:calc(28 * var(--u));border:calc(3 * var(--u)) double #f2d2aa;border-radius:calc(25 * var(--u));background:linear-gradient(145deg,#32121afa,#0c0909fc);box-shadow:0 calc(12 * var(--u)) calc(30 * var(--u)) #000a}
#bd-over[hidden]{display:none}
#bd-over h2{font:700 calc(34 * var(--u))/1.08 Georgia,serif;margin:0;color:#ffe4bd}
#bd-over p{font-size:calc(15 * var(--u));line-height:1.6;margin:0}
#bd-over-btn{width:calc(220 * var(--u));height:calc(62 * var(--u));background-image:url('../assets/play/bluffdeck/button-crimson.webp');padding-bottom:calc(10 * var(--u))}
#bd-over[data-result="win"],#bd-over[data-result="tie"]{background:linear-gradient(145deg,#fff1d9fc,#e4c29afa);color:#291515}
#bd-over[data-result="win"] h2,#bd-over[data-result="tie"] h2{color:#81152c}
#bd-over[data-result="loss"]{border-color:#c4455a}
header,.intro,.help{max-width:680px;margin:0 auto;padding:16px 24px}
header{font-size:12px;border-top:1px solid #5b3038}
.intro{font-size:15px;padding-top:0;color:#e4c9b9}
.help{line-height:1.7;font-size:14px;padding-top:0;padding-bottom:40px;color:#ddcabe}
.help h2{font:700 28px Georgia,serif;color:#ffebce;margin:10px 0}
.help ol,.help ul{padding-left:20px}.help li{margin:8px 0}
.help table{border-collapse:collapse;width:100%;font-size:12px}
.help th,.help td{text-align:left;padding:7px 3px;border-bottom:1px solid #4d2a33}
.help th{color:#ffe1c4}
.note{border:1px solid #62313e;border-radius:12px;padding:14px;background:#29151e}
summary{cursor:pointer;font-weight:700;color:#f7dfc8;padding:9px 0}
summary:focus-visible,a:focus-visible{outline:2px solid #ffe2bc;outline-offset:4px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
