@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Mono:wght@400;500&display=swap');
:root{--ink:#080c0a;--panel:#0f1511;--line:rgba(202,201,165,.18);--bone:#e9e6ce;--dim:#a0a695;--muted:#727e71;--acid:#cfdf91;--amber:#cf9661;--red:#da6650;--mono:'DM Mono',ui-monospace,Consolas,monospace;--display:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;overflow-x:hidden}body{font-family:var(--mono);color:var(--bone);background:#080b09;user-select:none;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:2px solid var(--acid);outline-offset:3px}button:disabled{cursor:not-allowed}::selection{background:#a5c16e;color:#10160d}.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.world,.scene-art,.scene-tint,.vignette,.grain{position:fixed;inset:0;pointer-events:none}.world{z-index:-1;background:radial-gradient(ellipse at 50% 32%,#263329 0%,#101912 44%,#070b09 77%)}.scene-art{background-image:url('./assets/keeper-room.png');background-size:cover;background-position:center 39%;opacity:.65;filter:saturate(.64) contrast(1.13)}.scene-tint{background:linear-gradient(180deg,rgba(5,10,7,.70) 0%,rgba(5,11,8,.18) 23%,rgba(5,9,7,.25) 41%,rgba(4,8,6,.68) 64%,rgba(4,8,6,.96) 100%),linear-gradient(90deg,#070c09aa 0%,transparent 21%,transparent 77%,#070c09bb 100%)}.vignette{box-shadow:inset 0 0 180px 35px #020403bb;z-index:2}.grain{z-index:3;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");mix-blend-mode:screen}
.app-shell{width:min(100%,1700px);min-height:100vh;min-height:100svh;margin:0 auto;display:flex;flex-direction:column;isolation:isolate}.topbar{height:76px;min-height:76px;padding:0 clamp(22px,4.1vw,80px);display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;border-bottom:1px solid var(--line);background:#0b100c9c;backdrop-filter:blur(14px);z-index:6}.brand-block{display:flex;align-items:center;gap:12px}.brand-mark{border:1px solid #8d997b;width:37px;height:38px;display:grid;place-items:center;font-family:var(--display);font-size:19px;font-weight:900;color:#e4e6c6;position:relative;letter-spacing:-1px}.brand-mark i{width:7px;height:7px;background:var(--acid);position:absolute;right:-4px;top:-4px;box-shadow:0 0 12px #badb89}.brand-copy{display:flex;flex-direction:column;gap:3px}.brand-copy strong{font-family:var(--display);letter-spacing:.11em;font-size:21px;font-weight:800;line-height:1}.brand-copy small{font-size:8px;letter-spacing:.24em;color:#7f8b79}.round-meter{display:flex;justify-content:center;align-items:center;gap:20px}.round-label,.mode-label{font-size:9px;letter-spacing:.19em;color:var(--dim);white-space:nowrap}.round-steps{display:flex;gap:5px}.round-steps span{width:28px;height:27px;border:1px solid #78856a5e;background:#0d140e;display:grid;place-items:center;font-size:11px;color:#637260;transition:.3s}.round-steps span.active{color:#0b150c;background:var(--acid);border-color:var(--acid);box-shadow:0 0 20px #afc87833}.round-steps span.done{border-color:#a2b18d;color:#c8cfb1}.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px}.mode-label{margin-right:10px;color:#929c86}.icon-button{display:grid;place-items:center;background:transparent;border:1px solid #6c7d6a66;width:31px;height:31px;color:#b8c3ad;transition:.2s;font-weight:600;font-size:16px}.icon-button:hover{background:#c5d9a921;border-color:var(--acid)}.icon-button svg{width:17px;height:17px}.restart-button{font-size:23px;line-height:0}
.game-layout{flex:1;display:grid;grid-template-rows:minmax(194px,1fr) 226px auto;min-height:0}.opponent-section{position:relative;display:flex;align-items:flex-start;justify-content:space-between;padding:30px clamp(24px,6.4vw,110px) 4px;overflow:hidden}.keeper-info{position:relative;z-index:2}.tiny-label,.side-label,.micro-heading{font-size:9px;letter-spacing:.17em;font-weight:500;color:#aeb69f}.thin-line{display:inline-block;width:17px;height:1px;background:#667264;vertical-align:middle;margin:0 8px}.keeper-info h2{margin:5px 0 11px;font:800 clamp(32px,3.8vw,59px)/.92 var(--display);letter-spacing:.055em;text-shadow:0 2px 20px #0008}.health-row{display:flex;align-items:center;gap:5px}.health-chip{height:13px;width:30px;transform:skew(-16deg);border:1px solid #70816b66;background:#111a12;position:relative;overflow:hidden}.health-chip.filled{background:linear-gradient(115deg,#9fb976,#e0e1aa 52%,#839b65);border-color:#c5db91;box-shadow:0 0 12px #e6d6992a}.health-chip.filled:after{content:'';width:4px;height:100%;position:absolute;left:5px;background:#fff6}.health-chip.broken{border-color:#4b3b32;background:repeating-linear-gradient(-50deg,#4b2e26,#4b2e26 2px,#241813 2px,#241813 7px)}.status-tag{display:inline-flex;padding:7px 10px;margin-top:15px;border:1px solid #69786544;background:#0b130daa;color:#a4ae9a;font-size:9px;letter-spacing:.12em;min-height:26px;align-items:center}.keeper-side{position:relative;z-index:3;min-width:170px;display:flex;flex-direction:column;gap:10px;align-items:flex-end}.side-label{color:#959c87;font-size:9px;white-space:nowrap}.side-label span{margin-left:12px;color:#a6b68b}.keeper-items{display:grid;grid-template-columns:repeat(4,35px);gap:5px;max-width:155px}.keeper-item{height:35px;background:#0e160fec;border:1px solid #8b997866;color:#a8b99a;display:grid;place-items:center;transition:.2s;position:relative}.keeper-item svg{width:19px;height:19px}.keeper-item.empty{opacity:.2;border-style:dashed}.keeper-item.can-steal{border-color:#e5c17b;box-shadow:0 0 13px #d9ae5e44;cursor:pointer}.keeper-item.can-steal:hover{background:#4d4024}.keeper-item:disabled{cursor:default}.keeper-item .keeper-item-tip{display:none}.keeper-item:not(.empty):hover .keeper-item-tip{display:block;position:absolute;bottom:calc(100% + 6px);right:-7px;white-space:nowrap;color:var(--bone);font-size:8px;background:#0d160e;border:1px solid var(--line);padding:6px;z-index:7}
.keeper-figure{width:190px;height:220px;position:absolute;left:50%;bottom:-20px;transform:translateX(-50%);opacity:.88;filter:drop-shadow(0 5px 25px #020503)}.figure-head{position:absolute;top:13px;left:53px;width:84px;height:114px;background:#0c110e;border-radius:45% 45% 42% 42%;z-index:2;border:6px solid #080c09;box-shadow:0 0 65px #70895f30}.mask{position:absolute;inset:17px 8px 7px;border-radius:38% 38% 43% 43%;background:linear-gradient(115deg,#d1cbb1 0%,#8f9c83 30%,#b5b6a2 60%,#4e675a);box-shadow:inset -12px -9px 20px #1f2922,0 0 1px 3px #121e16}.mask .eye{position:absolute;top:33px;width:17px;height:9px;background:#060a07;border-radius:20% 80% 30% 70%;box-shadow:0 0 11px #e8b57920}.mask .eye.left{left:8px;transform:rotate(12deg)}.mask .eye.right{right:8px;transform:rotate(-12deg)}.mask .crack{position:absolute;width:2px;height:55px;top:14px;left:35px;transform:rotate(14deg);background:#161d18;box-shadow:4px 13px 0 -1px #161d18}.figure-body{position:absolute;bottom:0;width:190px;height:120px;background:linear-gradient(95deg,#060a08,#101812 30%,#040806 63%,#142015);clip-path:polygon(17% 0,38% 0,50% 20%,64% 0,84% 0,100% 100%,0 100%)}body.has-art .keeper-figure{opacity:0;visibility:hidden}
.table-section{position:relative;background:linear-gradient(180deg,#141d14de 0%,#1a2014cc 10%,#16160df0 51%,#10140ecf 90%,#121a11eb 100%);border-top:1px solid #a3a47c2e;border-bottom:1px solid #696e532b;box-shadow:0 -15px 30px #05080699,0 14px 30px #050806b8, inset 0 6px 6px #d6b48a08;z-index:4}.table-section:before{content:'';position:absolute;inset:0;opacity:.18;pointer-events:none;background:repeating-linear-gradient(92deg,transparent,transparent 12px,#b18e5522 14px,transparent 27px),repeating-linear-gradient(0deg,transparent,transparent 57px,#ab854322 58px,transparent 59px)}.table-edge{height:4px;position:absolute;top:0;left:0;right:0;background:linear-gradient(90deg,#131b12,#64674b 12%,#202919 45%,#757455 55%,#111a11);opacity:.7}.table-content{position:relative;height:100%;max-width:950px;margin:auto;padding:16px 22px 10px;display:flex;flex-direction:column;align-items:center}.chamber-meta{align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:2}.micro-heading{font-size:9px;color:#8c9b87;white-space:nowrap}.shell-counters{display:flex;align-items:center;gap:18px}.shell-count{font-size:13px;font-weight:500;display:flex;align-items:center;gap:8px;letter-spacing:.08em}.shell-count i{height:12px;width:8px;border-radius:3px 3px 1px 1px;display:inline-block;background:#a9553c;box-shadow:0 0 12px #ce553b55;border-bottom:3px solid #d4ac64}.shell-count.blank i{background:#d6d5ad;box-shadow:0 0 12px #ddd5a555}.shell-count.live{color:#e3ad92}.shell-count.blank{color:#e2e5cf}.shell-counters .separator{color:#6b745f}.shell-rack{display:flex;justify-content:center;gap:8px;margin-top:9px;min-height:26px;align-items:center}.rack-shell{height:23px;width:12px;border:1px solid #77816a77;border-radius:4px 4px 1px 1px;background:linear-gradient(90deg,#263027,#59624b 48%,#242f24 100%);box-shadow:0 2px 5px #0008;position:relative;transition:.2s}.rack-shell:after{content:'';height:5px;bottom:0;left:0;right:0;background:#aa8d55;position:absolute}.rack-shell.known-live{background:linear-gradient(90deg,#703725,#d26d50,#703725);border-color:#e09670}.rack-shell.known-blank{background:linear-gradient(90deg,#898c6a,#e1e3bc,#9a9d78);border-color:#d4d5b4}.rack-shell:first-child{height:27px;transform:translateY(-2px);box-shadow:0 0 0 2px #afb88b22,0 0 20px #98a56b44}.weapon-zone{position:relative;width:min(100%,700px);height:115px;margin:auto;display:flex;align-items:center;justify-content:center;transition:transform .22s cubic-bezier(.2,.7,.3,1),filter .2s}.weapon-zone.aim-keeper{transform:translateY(-24px) rotate(-2deg)}.weapon-zone.aim-self{transform:translateY(16px) rotate(1deg)}.weapon-zone.kick{animation:recoil .4s ease}.shotgun{position:relative;width:100%;height:100%;filter:drop-shadow(0 12px 6px #030705cc)}.gun-shadow{position:absolute;inset:45% 10% 17%;background:#020402;filter:blur(26px);opacity:.65}.gun-flare{position:absolute;right:-3%;top:4%;width:170px;height:130px;border-radius:50%;background:radial-gradient(circle,#fff0ab 0,#ffc169 16%,#ed762c 36%,transparent 70%);opacity:0;pointer-events:none;transform:scale(.5);filter:blur(4px)}.gun-flare.fire{animation:flare .5s ease}.table-stamp{color:#777659;opacity:.7;letter-spacing:.21em;font-size:8px;position:absolute;right:20px;bottom:13px}.table-stamp span{color:#ab5c39;margin:0 6px}
.player-section{padding:23px clamp(24px,6.4vw,110px) 20px;background:linear-gradient(180deg,#081009cc,#070d09f5);position:relative;z-index:4}.player-topline{display:flex;align-items:flex-end;justify-content:space-between;max-width:1160px;margin:0 auto 20px}.player-id .tiny-label{color:#9caa94}.player-name{font:800 27px/.95 var(--display);letter-spacing:.07em;margin-top:5px;display:flex;align-items:center;gap:13px}.turn-indicator{font:500 9px var(--mono);color:#0f1a11;background:var(--acid);letter-spacing:.08em;padding:6px 8px;animation:glow 2.1s infinite}.turn-indicator.enemy{background:#9f7d6a;color:#160e0b;animation:none}.turn-indicator.waiting{background:#4b5647;color:#adb5a0;animation:none}.player-topline .health-row{margin-bottom:4px}.player-topline .health-chip{width:35px;height:14px}.interaction-grid{max-width:1160px;margin:auto;display:grid;grid-template-columns:1.15fr 1fr;gap:30px}.inventory-panel,.action-panel{min-width:0}.section-heading{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.11em;color:#d8ddc6;border-bottom:1px solid var(--line);padding-bottom:11px}.section-heading small{font-size:8px;color:#7c8879;margin-left:8px;letter-spacing:.06em}.section-heading>span:last-child{color:#92a58b}.player-items{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-top:12px}.item-button{height:59px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #6b7c636b;background:linear-gradient(155deg,#1c291d,#0d170f);color:#d6d9bb;position:relative;transition:.16s}.item-button svg{width:24px;height:24px}.item-button span{font:500 8px var(--mono);letter-spacing:.04em;text-transform:uppercase;color:#a3b39c;white-space:nowrap}.item-button:hover:not(:disabled){background:linear-gradient(155deg,#36452b,#1c2c1b);border-color:#d3dea9;transform:translateY(-3px)}.item-button:disabled:not(.empty){opacity:.48}.item-button.empty{border-style:dashed;opacity:.29;background:#080e0a;cursor:default}.item-button.empty:after{content:'+';color:#43513d;font-size:18px}.item-button.selected{border-color:var(--amber);background:#3b3520;box-shadow:0 0 16px #b18b5133}.item-button .item-number{position:absolute;top:3px;left:5px;font-size:8px;color:#657361}.item-caption{font-size:9px;letter-spacing:.035em;color:#889382;line-height:1.4;margin-top:12px;min-height:18px}.action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.action{height:99px;border:1px solid #77847680;background:linear-gradient(135deg,#1b291eeb,#101b13fa);display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:13px 17px;transition:.19s;position:relative;overflow:hidden}.action:before{content:'';position:absolute;top:0;right:0;width:35%;height:100%;background:linear-gradient(110deg,transparent,#dce9a70a);transform:skew(-21deg)}.action-kicker{font-size:9px;letter-spacing:.12em;color:#9fad91;display:flex;justify-content:space-between;width:100%}.key-hint{opacity:.5}.action strong{font:800 25px/.9 var(--display);letter-spacing:.045em;margin-top:8px}.action small{font-size:9px;letter-spacing:0;color:#a3af9c;margin-top:9px;white-space:nowrap}.shoot-keeper{border-color:#b2876c85;background:linear-gradient(130deg,#38251bdb,#201710f0)}.shoot-keeper .action-kicker{color:#e0a687}.shoot-keeper small{color:#c4a18b}.action:hover:not(:disabled){transform:translateY(-3px);border-color:#d9e4ae;background:#2a3c29;box-shadow:0 5px 30px #bdcb8740}.shoot-keeper:hover:not(:disabled){background:#4c2b21;border-color:#ffb996;box-shadow:0 5px 30px #cc78543c}.action:disabled{opacity:.45;filter:grayscale(.5)}.action-foot{display:flex;gap:10px;align-items:center;font-size:9px;letter-spacing:.12em;color:#8f9b87;margin-top:12px}.pulse-dot{width:5px;height:5px;background:#c8d98e;box-shadow:0 0 7px #b3cc7f;animation:glow 2s infinite}.bottom-strip{height:35px;min-height:35px;display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;padding:0 clamp(24px,4.1vw,80px);background:#060b08f0;border-top:1px solid var(--line);font-size:8px;letter-spacing:.1em;color:#6b786b}.bottom-strip .feed{text-align:center;color:#aab49e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bottom-strip>span:last-child{text-align:right}
.result-pop{position:fixed;left:50%;top:45%;transform:translate(-50%,-50%) scale(.83);z-index:13;pointer-events:none;text-align:center;opacity:0;filter:blur(5px);transition:opacity .13s,transform .2s,filter .2s;width:min(90vw,550px)}.result-pop.show{opacity:1;transform:translate(-50%,-50%) scale(1);filter:blur(0)}.result-pop strong{display:block;font:900 clamp(68px,13vw,153px)/.75 var(--display);letter-spacing:.075em;text-shadow:0 6px 30px #000,0 0 90px #d9c8a634}.result-pop span{display:block;margin-top:21px;font-size:12px;letter-spacing:.3em;color:#e6e3cd;text-shadow:0 3px 12px #000}.result-pop.live strong{color:#e6a27e}.result-pop.blank strong{color:#d8e1af}.screen-flash{position:fixed;inset:0;pointer-events:none;z-index:12;opacity:0;background:#f7f1c4}.screen-flash.fired{animation:screenflash .52s ease}.screen-flash.emptyshot{background:#b1c6a0;animation:screenflash .23s ease}
.overlay{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:24px;opacity:1;transition:opacity .3s;isolation:isolate}.overlay.hidden{opacity:0;pointer-events:none}.overlay-veil{position:absolute;inset:0;background:radial-gradient(ellipse at center,#121b13e8 0,#050906f7 75%);backdrop-filter:blur(13px)}.modal{position:relative;max-width:660px;width:100%;padding:44px clamp(24px,6vw,60px) 42px;border:1px solid #96a07b70;background:linear-gradient(135deg,#18221b 0,#09110c 60%,#162015 100%);box-shadow:0 30px 100px #000, inset 0 1px #d7e5bc2d,0 0 80px #9cb57b13;max-height:calc(100svh - 45px);overflow:auto}.modal:before,.modal:after{content:'';position:absolute;width:25px;height:25px;border-color:#c4d1a0;border-style:solid}.modal:before{top:8px;left:8px;border-width:1px 0 0 1px}.modal:after{right:8px;bottom:8px;border-width:0 1px 1px 0}.modal-serial{color:#9dab8e;font-size:10px;letter-spacing:.29em;display:flex;align-items:center;gap:12px}.modal-serial:before{content:'';height:1px;width:26px;background:#bbc7a0}.modal-title{margin:14px 0 10px;font:900 clamp(54px,10vw,91px)/.80 var(--display);letter-spacing:.055em;text-shadow:0 12px 35px #0008}.modal-title em{display:block;font-style:normal;color:#c9d99e}.modal-sub{font-size:11px;color:#aab4a0;max-width:440px;line-height:1.9;margin:19px 0 23px}.modal-rule{height:1px;background:linear-gradient(90deg,#a8b795,#41513e 70%,transparent);margin:21px 0}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.mode-choice{padding:17px;text-align:left;background:#101a11;border:1px solid #596a56;display:flex;flex-direction:column;gap:7px;transition:.2s}.mode-choice strong{font:800 22px var(--display);letter-spacing:.05em}.mode-choice span{font-size:9px;line-height:1.5;color:#9ba891}.mode-choice.chosen{background:#253222;border-color:#bfcb9b;box-shadow:inset 0 0 20px #a5ca7b11}.modal-primary{display:block;width:100%;padding:17px 20px;border:1px solid #d5e7ab;background:#ccdfa2;color:#12200f;font:800 23px var(--display);letter-spacing:.15em;transition:.18s;text-align:center}.modal-primary:hover{background:#e3f4c5;box-shadow:0 0 38px #bfd99238;transform:translateY(-2px)}.modal-secondary{border:1px solid #6f806b;color:#cbd1b5;background:#19241b;font-size:10px;letter-spacing:.13em;padding:13px 17px;margin-top:9px;width:100%}.modal-secondary:hover{border-color:#cbdab0}.modal-foot{margin-top:17px;font-size:9px;letter-spacing:.05em;color:#81907d;display:flex;justify-content:space-between;gap:15px}.modal-summary{display:flex;gap:20px;align-items:center;margin:20px 0 28px}.summary-big{font:800 70px/.8 var(--display);color:#d4e7a3}.summary-details{font-size:10px;line-height:2;color:#a6b59f}.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.rule{padding:14px;border:1px solid #485a48;background:#0c140e}.rule b{display:block;font:800 19px var(--display);letter-spacing:.06em;color:#e1e8c6}.rule p{color:#aab5a3;font-size:10px;line-height:1.65;margin:8px 0 0}.warning-tag{font-size:9px;letter-spacing:.08em;color:#cba48a;padding:10px;border:1px solid #5c4235;background:#271b16}.item-tooltip{position:fixed;z-index:15;pointer-events:none;background:#101a13;border:1px solid #8d9d81;padding:9px 11px;box-shadow:0 7px 22px #000c;font-size:10px;max-width:240px;line-height:1.5;color:#d9e1c8}
@keyframes glow{0%,100%{opacity:.66}50%{opacity:1}}@keyframes recoil{0%{transform:translateX(0)}15%{transform:translateX(-34px) rotate(-3deg)}55%{transform:translateX(8px)}100%{transform:translateX(0)}}@keyframes flare{0%{opacity:0;transform:scale(.4)}14%{opacity:1;transform:scale(1.3)}35%{opacity:.8}100%{opacity:0;transform:scale(1.6)}}@keyframes screenflash{0%{opacity:0}12%{opacity:.55}100%{opacity:0}}
@media (min-height:920px){.game-layout{grid-template-rows:minmax(265px,1fr) 250px auto}.opponent-section{padding-top:44px}.table-content{padding-top:23px}.weapon-zone{height:139px}.player-section{padding-top:30px;padding-bottom:32px}.keeper-figure{bottom:-5px;transform:translateX(-50%) scale(1.17)}}
@media (max-width:1000px){.topbar{padding:0 24px}.game-layout{grid-template-rows:minmax(190px,1fr) 205px auto}.player-section{padding:20px 24px}.opponent-section{padding:25px 24px 0}.interaction-grid{gap:18px}.player-items{grid-template-columns:repeat(4,1fr)}.item-button{height:42px;flex-direction:row;gap:5px}.item-button svg{width:18px;height:18px}.item-button span{font-size:7px}.item-button.empty{height:42px}.item-caption{margin-top:9px}.action{height:100px}.action strong{font-size:21px}.action small{font-size:8px}.mode-label{display:none}.table-content{padding:12px 22px}.weapon-zone{height:104px}}
@media (max-width:650px){.topbar{height:58px;min-height:58px;grid-template-columns:1fr auto;padding:0 13px;gap:10px}.brand-mark{width:30px;height:31px;font-size:15px}.brand-copy strong{font-size:17px}.brand-copy small{font-size:6px}.round-meter{grid-column:1/-1;grid-row:2;display:none}.header-tools{gap:5px}.icon-button{width:29px;height:29px}.game-layout{grid-template-rows:200px 190px auto}.opponent-section{padding:22px 16px 0}.keeper-info h2{font-size:35px}.tiny-label{font-size:8px}.keeper-side{min-width:125px}.keeper-items{grid-template-columns:repeat(4,27px);gap:4px}.keeper-item{height:27px}.keeper-item svg{width:15px;height:15px}.side-label{font-size:7px}.side-label span{margin-left:4px}.keeper-figure{bottom:-38px;transform:translateX(-50%) scale(.75);opacity:.65}.health-chip{width:23px;height:11px}.status-tag{font-size:7px;padding:6px 8px;margin-top:12px}.table-content{padding:13px 12px 3px}.chamber-meta{gap:7px}.micro-heading{font-size:7px}.micro-heading.total{display:none}.shell-counters{gap:8px}.shell-count{font-size:11px;gap:5px}.shell-count i{height:10px;width:7px}.shell-rack{gap:5px;margin-top:13px}.rack-shell{width:10px;height:18px}.rack-shell:first-child{height:21px}.weapon-zone{height:105px}.table-stamp{font-size:6px;bottom:8px}.player-section{padding:16px 15px 20px}.player-topline{margin-bottom:14px}.player-name{font-size:23px;gap:8px}.turn-indicator{font-size:7px;padding:5px}.player-topline .health-chip{width:19px;height:10px}.player-topline .health-row{gap:3px}.interaction-grid{display:flex;flex-direction:column-reverse;gap:20px}.section-heading{font-size:9px;padding-bottom:8px}.action{height:93px;padding:10px 13px}.action strong{font-size:25px}.action small{font-size:8px}.action-foot{margin-top:9px}.item-button{height:49px}.item-button span{font-size:8px}.item-button svg{width:21px;height:21px}.player-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.bottom-strip{padding:0 15px;height:29px;min-height:29px;grid-template-columns:1fr 3fr}.bottom-strip>span:last-child{display:none}.bottom-strip>span:first-child{font-size:7px}.bottom-strip .feed{font-size:7px}.modal{padding:34px 25px 28px}.modal-title{font-size:65px}.mode-options{gap:8px}.mode-choice{padding:10px}.mode-choice strong{font-size:20px}.modal-foot{display:block}.rules-grid{gap:8px}.rule{padding:10px}.rule b{font-size:17px}.rule p{font-size:9px}}
@media (max-height:770px) and (min-width:651px){.game-layout{grid-template-rows:minmax(135px,1fr) 175px auto}.opponent-section{padding-top:15px}.keeper-info h2{font-size:39px}.keeper-figure{transform:translateX(-50%) scale(.7);bottom:-50px}.table-content{padding-top:8px}.shell-rack{margin-top:3px}.weapon-zone{height:90px}.player-section{padding-top:11px;padding-bottom:10px}.player-topline{margin-bottom:10px}.interaction-grid{gap:20px}.action{height:80px;padding:8px 13px}.action strong{margin-top:4px;font-size:24px}.action small{margin-top:6px}.item-button{height:48px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
.scene-art{background-image:url('./assets/keeper-room.webp')}
/* V0.2: a true rendered scene replaces the photography and flat prop art. */
.scene3d-layer{position:absolute;inset:0;display:none;overflow:hidden;pointer-events:none;z-index:1}
.scene3d-layer canvas{display:block;width:100%;height:100%;outline:none;pointer-events:auto;touch-action:pan-y}
.scene-hint{position:absolute;left:22px;bottom:13px;z-index:4;font-size:8px;letter-spacing:.12em;color:#afba9e;display:none;text-shadow:0 2px 7px #000}
.scene-hint span{color:#cda47b;margin:0 6px}
body.three-ready .scene3d-layer{display:block}
body.three-ready .world{z-index:0}
body.three-ready .app-shell{position:relative;z-index:2}
body.three-ready .scene-art,body.three-ready .keeper-figure{display:none}
body.three-ready .scene-tint{background:linear-gradient(180deg,#0509069e 0%,transparent 17%,transparent 56%,#05080680 77%,#050806e6 100%)}
body.three-ready .vignette{box-shadow:inset 0 0 130px 24px #020403bb}
body.three-ready .opponent-section,body.three-ready .table-section{pointer-events:none}
body.three-ready .app-shell{pointer-events:none}
body.three-ready .topbar,body.three-ready .player-section,body.three-ready .keeper-side{pointer-events:auto}
body.three-ready .table-section{border-top:1px solid #b0b9952a;border-bottom:1px solid #75866e3b;background:linear-gradient(180deg,#0d140f08,#0c130a05 75%,#08110c4a);box-shadow:none}
body.three-ready .table-section:before,body.three-ready .table-edge{display:none}
body.three-ready .weapon-zone{opacity:0}
body.three-ready .table-content{background:transparent}
body.three-ready .player-section{background:linear-gradient(180deg,#07110b99,#060c08f7 24%);backdrop-filter:blur(6px);border-top:1px solid #9bad8a44}
body.three-ready .opponent-section{background:linear-gradient(180deg,#07100b5e,transparent 90%)}
body.three-ready .scene-hint{display:block}
body.three-ready .shell-rack{opacity:.5;transform:scale(.8)}
body.three-ready .keeper-info h2{text-shadow:0 3px 14px #000,0 0 35px #000}
@media(max-width:650px){body.three-ready .scene-hint{left:12px;bottom:8px;font-size:6px}body.three-ready .table-section{background:linear-gradient(180deg,transparent,#07100943)}body.three-ready .shell-rack{margin-top:0}}
body.software-3d .scene-tint{background:linear-gradient(180deg,#05090680 0%,transparent 24%,transparent 65%,#0509066d 86%,#050906c0 100%)}
body.software-3d .grain{opacity:.065}
