@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--gold:#d9bb79;--pale:#f4ecda;--cream:#ece9df;--sub:#b5b7a9;--glass:rgba(10,19,17,.76);--line:rgba(228,214,172,.22);--green:#44715c;--ink:#0d1211}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0a100f;color:var(--pale);font-family:'DM Sans','Manrope',system-ui,-apple-system,Segoe UI,sans-serif;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#app{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse 70% 65% at 50% 48%,#2e3422 0,#111d19 55%,#060e0d 100%)}
#tableCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}
#grain{position:absolute;inset:0;pointer-events:none;z-index:1;opacity:.09;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E")}
.vignette{position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse 80% 61% at 50% 49%,transparent 45%,rgba(3,8,8,.50) 100%),linear-gradient(180deg,rgba(2,9,9,.6),transparent 20%,transparent 65%,rgba(3,11,10,.73));}
.header{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:clamp(15px,3vw,29px) clamp(18px,3.5vw,48px);z-index:5;pointer-events:none}
.header button{pointer-events:auto}.logo{display:flex;align-items:center;gap:11px}.logo-mark{height:45px;width:45px;border:1px solid #baa477;border-radius:100%;display:grid;place-items:center;box-shadow:inset 0 0 0 4px rgba(10,14,12,.75),inset 0 0 0 5px rgba(222,186,114,.4),0 0 22px rgba(224,182,103,.18);color:#d1bb82;font:700 30px/1 Georgia,serif}.logo-mark span{transform:translateY(-1px)}
.logo-text{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.logo-text strong{font-size:17px;font-weight:800;letter-spacing:.20em}.logo-text em{color:#ddc08e;font-style:normal}.logo-text small{font-size:9px;color:#b2ac90;letter-spacing:.31em;font-weight:700}.header-buttons{display:flex;align-items:center;gap:8px}.toolbtn{display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:0 14px;color:rgba(244,235,207,.84);background:rgba(8,18,16,.7);border:1px solid rgba(219,201,151,.20);border-radius:10px;backdrop-filter:blur(16px);font-size:10px;font-weight:800;letter-spacing:.09em;transition:background .2s,border .2s}.toolbtn:hover,.toolbtn:active{border-color:rgba(219,201,151,.65);background:rgba(32,43,36,.9)}.tool-icon{font-size:19px;color:var(--gold);font-weight:300}.toolbtn.icon-only{width:40px;padding:0;font-size:20px}
.match-bar{position:absolute;top:99px;left:50%;transform:translateX(-50%);display:flex;align-items:stretch;width:min(690px,calc(100% - 40px));min-height:70px;border:1px solid rgba(218,207,157,.28);border-radius:14px;z-index:4;background:linear-gradient(120deg,rgba(10,20,17,.87),rgba(23,31,27,.80));box-shadow:0 10px 46px rgba(1,8,6,.35),inset 0 1px 1px rgba(255,255,255,.04);backdrop-filter:blur(18px);overflow:hidden}
.player{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:12px 16px;opacity:.75;transition:opacity .25s,background .25s}.player-active{opacity:1;background:radial-gradient(ellipse at 0 50%,rgba(196,164,102,.13),transparent 80%)}.avatar{width:39px;height:39px;flex-shrink:0;border:1px solid rgba(221,193,141,.38);border-radius:50%;display:grid;place-items:center;font-size:13px;color:#dcca99;background:#24342b;font-weight:800}.avatar-secondary{background:#202723;color:#cbbaa0}.player-meta{display:flex;flex-direction:column;gap:1px;min-width:0}.player-meta span{color:#cbbd99;letter-spacing:.13em;font-size:10px;font-weight:800;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.player-meta strong{font:700 23px/1.2 'Manrope',system-ui;letter-spacing:.03em}.player-meta-right{align-items:flex-end;margin-left:auto}.turn-light{height:6px;width:6px;flex-shrink:0;border-radius:50%;background:#77796b;opacity:.4;margin-left:auto}.player-active .turn-light{background:#efcf7f;box-shadow:0 0 10px #eac873;opacity:1}.player:has(.player-meta-right) .turn-light{margin-left:0}
.match-mid{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:165px;padding:10px;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;background:rgba(8,17,15,.42)}.match-eyebrow{font-size:9px;letter-spacing:.17em;color:#b8a77b;font-weight:800}.match-mid strong{font-size:12px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.aim-hint{position:absolute;z-index:3;left:50%;top:184px;transform:translateX(-50%);color:#d3ceae;text-shadow:0 2px 8px rgba(0,0,0,.9);font-size:10px;letter-spacing:.16em;white-space:nowrap;font-weight:800;display:flex;align-items:center;gap:9px;opacity:.83;pointer-events:none}.aim-icon{font-size:20px;color:#e4be75}.hint-divider{color:#967f56}
.table-mark{position:absolute;z-index:2;bottom:211px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:.23em;color:rgba(236,216,164,.34);white-space:nowrap;pointer-events:none}.table-mark span{color:#c3a569;margin:0 6px}
.toast{position:absolute;z-index:7;top:203px;left:50%;transform:translate(-50%,-8px);max-width:90vw;padding:12px 24px;text-align:center;border:1px solid rgba(228,199,131,.42);border-radius:8px;color:#f8e9bb;font-size:13px;font-weight:800;letter-spacing:.08em;background:rgba(12,22,18,.94);box-shadow:0 12px 30px rgba(0,0,0,.4);opacity:0;transition:opacity .28s,transform .28s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.score-pop{position:absolute;left:50%;top:40%;z-index:6;transform:translate(-50%,0) scale(.7);opacity:0;color:#e9d59e;font-size:30px;font-weight:800;letter-spacing:.06em;text-shadow:0 3px 30px rgba(243,204,122,.6);pointer-events:none}.score-pop.show{animation:score-rise 1.5s ease-out forwards}@keyframes score-rise{0%{opacity:0;transform:translate(-50%,14px) scale(.65)}22%{opacity:1;transform:translate(-50%,0) scale(1.05)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-40px) scale(.96)}}
.bottom-panel{position:absolute;z-index:5;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(850px,calc(100% - 36px));padding:0 22px 15px;background:linear-gradient(135deg,rgba(8,19,16,.96),rgba(15,27,22,.94));border:1px solid rgba(228,202,149,.32);border-radius:16px;box-shadow:0 20px 55px rgba(0,0,0,.53),inset 0 1px 0 rgba(247,232,178,.08);backdrop-filter:blur(22px)}
.rail-topline{height:40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(218,198,142,.18);gap:10px;color:#bfb596;font-size:10px;font-weight:800;letter-spacing:.16em}.rail-label{display:flex;gap:8px;align-items:center}.status-dot{display:inline-block;border-radius:50%;width:6px;height:6px;background:#8edba0;box-shadow:0 0 8px #52c285}.rail-right{font-size:9px;color:#b3a98b;white-space:nowrap}
.control-grid{display:grid;grid-template-columns:100px minmax(160px,1fr) 175px;align-items:center;gap:22px;padding-top:12px}.field-label{color:#d0c3a1;font-size:10px;font-weight:800;letter-spacing:.2em;white-space:nowrap}.spin-block{display:flex;flex-direction:column;align-items:center;gap:7px}.spin-circle{position:relative;width:70px;height:70px;border-radius:50%;border:4px solid #e3dfd2;background:radial-gradient(circle at 30% 25%,#fbf7ea,#a0a39d 87%);box-shadow:0 3px 0 #65685f,0 5px 14px rgba(0,0,0,.45),inset -9px -8px 17px rgba(22,32,26,.15);touch-action:none;cursor:grab}.spin-circle:active{cursor:grabbing}.spin-lines:before,.spin-lines:after{content:'';position:absolute;background:rgba(29,48,39,.17)}.spin-lines:before{width:1px;top:11px;bottom:11px;left:50%}.spin-lines:after{height:1px;left:11px;right:11px;top:50%}.spin-dot{position:absolute;left:50%;top:50%;height:13px;width:13px;border-radius:50%;transform:translate(-50%,-50%);background:#294f40;border:2px solid #fdf5ce;box-shadow:0 2px 7px rgba(0,0,0,.5)}.subtle-control{border:none;background:none;color:#9f9b84;font-size:9px;font-weight:800;letter-spacing:.15em;line-height:1}.subtle-control:hover{color:#e3c78f}
.power-block{align-self:center;min-width:0}.control-title{display:flex;justify-content:space-between;align-items:baseline}.control-title>span:last-child{font:800 18px/1 'Manrope',sans-serif;color:#f7e5b5;letter-spacing:.12em;white-space:nowrap}.pct{font-size:16px;color:#c1b490}.draw-meter{position:relative;width:100%;height:20px;margin-top:10px;overflow:visible;cursor:grab;touch-action:none;border:1px solid rgba(239,205,135,.62);border-radius:11px;background:linear-gradient(90deg,rgba(72,110,85,.68),rgba(225,222,192,.24));box-shadow:inset 0 1px 3px rgba(0,0,0,.42),0 0 0 1px rgba(5,11,9,.45)}.draw-meter:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.draw-meter:active{cursor:grabbing}.draw-meter-fill{position:absolute;left:0;top:50%;width:0;height:8px;transform:translateY(-50%);border-radius:8px;background:linear-gradient(90deg,#82a879 0%,#d4b36b 66%,#ffdf94 100%);box-shadow:0 0 10px rgba(220,184,112,.38);transition:width .05s linear}.draw-meter-max{position:absolute;right:5px;top:50%;height:14px;width:2px;transform:translateY(-50%);background:#fff0c6;opacity:.98}.draw-meter-maxed .draw-meter-fill{box-shadow:0 0 14px rgba(255,219,135,.72)}.draw-meter-handle{position:absolute;z-index:2;top:50%;left:0;display:flex;align-items:center;justify-content:center;gap:2px;width:28px;height:28px;transform:translate(-50%,-50%);border:2px solid #fff0c6;border-radius:50%;background:radial-gradient(circle at 34% 28%,#fff7d9,#c9a968 70%,#85673b);box-shadow:0 2px 8px rgba(0,0,0,.55);pointer-events:none}.draw-meter-handle b{width:1px;height:7px;background:#654b2e;opacity:.82}.draw-ticks{margin-top:8px}.aim-fine{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:5px;color:#adab95;font-size:10px;font-weight:800;letter-spacing:.12em}.aim-fine>span:first-child{margin-right:auto}.aim-fine button{height:44px;min-width:44px;padding:0;font-size:21px;line-height:24px;color:#f4e0b7;background:rgba(233,205,133,.09);border:1px solid rgba(233,205,133,.21);border-radius:8px;touch-action:manipulation}.aim-fine button:active{background:rgba(233,205,133,.3)}.aim-deg{min-width:48px;text-align:center;color:#e2d8b9;letter-spacing:0}.keyboard-help{opacity:.6;white-space:nowrap;font-size:8px;letter-spacing:.03em}.draw-hint{height:10px;margin-top:3px;color:#c8b988;font-size:7px;font-weight:800;letter-spacing:.055em;line-height:10px;white-space:nowrap;text-align:center;overflow:hidden;text-overflow:ellipsis}
.shoot{height:88px;min-width:0;border:1px solid rgba(252,232,171,.45);border-radius:10px;background:linear-gradient(150deg,#f5dca5 0%,#cda55f 52%,#9b783e 100%);color:#202419;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 5px 0 #755b36,0 8px 25px rgba(204,171,102,.2),inset 0 1px 2px #fff8d3;transition:transform .12s,filter .15s,box-shadow .12s}.shoot:hover{filter:brightness(1.10)}.shoot:active{transform:translateY(3px);box-shadow:0 2px 0 #755b36}.shoot-icon{font-size:20px;line-height:1}.shoot-word{font-size:16px;font-weight:800;letter-spacing:.09em}.shoot small{font-size:9px;letter-spacing:.13em;font-weight:800;opacity:.55}.shoot:disabled{opacity:.39;cursor:default;filter:saturate(.4);transform:none}
.overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;overflow-y:auto;padding:90px 20px 28px;background:radial-gradient(ellipse at 50% 45%,rgba(7,19,15,.76),rgba(4,12,10,.88) 88%);backdrop-filter:blur(6px);transition:opacity .45s,visibility .45s}.overlay-hidden{opacity:0;visibility:hidden;pointer-events:none}.intro-content{width:min(680px,100%);margin:auto;text-align:center;padding:20px 6px 28px}.intro-medallion{margin:0 auto 20px;border-radius:50%;width:65px;height:65px;border:1px solid #cab075;display:grid;place-items:center;color:#d9be87;font:700 47px/1 Georgia,serif;box-shadow:inset 0 0 0 5px rgba(10,17,15,.8),inset 0 0 0 6px rgba(213,179,109,.42),0 0 50px rgba(215,174,100,.1)}.eyebrow{color:#ddbf84;font-size:11px;font-weight:800;letter-spacing:.29em}.intro-content h1{font:500 clamp(46px,7vw,75px)/1.04 Georgia,'Times New Roman',serif;letter-spacing:-.035em;margin:22px 0;color:#f5f0df;text-shadow:0 10px 40px rgba(0,0,0,.4)}.intro-content h1 i{font-weight:400;color:#dcc18a}.intro-content>p{font-size:15px;line-height:1.7;color:#c2c6b6;margin:0 0 32px}.mode-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mode-card{position:relative;text-align:left;min-height:165px;padding:19px 16px;display:flex;flex-direction:column;gap:7px;background:linear-gradient(145deg,rgba(39,53,44,.70),rgba(11,26,21,.78));border:1px solid rgba(220,201,154,.25);border-radius:12px;transition:transform .17s,border .2s,background .2s;overflow:hidden}.mode-card.feature{border-color:rgba(231,195,113,.65);background:linear-gradient(145deg,rgba(102,85,49,.42),rgba(22,35,27,.78))}.mode-card:hover,.mode-card:focus-visible{transform:translateY(-4px);border-color:#dbbd7f;background:linear-gradient(145deg,rgba(92,82,55,.60),rgba(22,37,29,.85))}.mode-glyph{color:#d9bd87;font:400 31px/1 Georgia,serif;min-height:38px}.mode-card b{font-size:12px;letter-spacing:.08em;color:#f4eacd}.mode-card small{font-size:11px;line-height:1.5;color:#aeb4a5;max-width:155px}.mode-arrow{position:absolute;right:16px;bottom:13px;color:#ddbd78;font-size:21px}.intro-footnote{color:#888d7e;font-size:9px;font-weight:800;letter-spacing:.19em;margin-top:30px}.end-content{text-align:center}.end-content h2{font:500 clamp(45px,7vw,76px)/1.1 Georgia,serif;margin:18px auto;color:#f0e2be}.end-content p{color:#bfc3ad;font-size:16px;margin-bottom:35px}.play-again{padding:16px 25px;background:#d3b578;color:#17211a;border:0;border-radius:8px;letter-spacing:.14em;font-weight:800}.play-again span{margin-left:25px}.back-menu{display:block;background:none;border:0;margin:20px auto;color:#bcb7a3;text-decoration:underline;text-underline-offset:4px;font-size:12px;letter-spacing:.13em}
@media(max-width:790px){.header{padding:18px 18px}.logo-mark{height:36px;width:36px;font-size:23px}.logo-text strong{font-size:13px;letter-spacing:.17em}.logo-text small{font-size:7px;letter-spacing:.23em}.header-buttons{gap:5px}.toolbtn{padding:0 9px;min-height:36px;font-size:9px}.tool-caption{display:none}.toolbtn.icon-only{width:36px}.match-bar{top:75px}.aim-hint{top:153px}.table-mark{bottom:195px}}
@media(max-width:550px){.logo-text small{font-size:7px}.header-buttons .toolbtn:nth-child(2){display:none}.header-buttons{gap:4px}.toolbtn{width:35px;padding:0}.match-bar{width:calc(100% - 24px);top:70px;min-height:58px;border-radius:10px}.player{gap:6px;padding:8px}.avatar{width:31px;height:31px;font-size:10px}.player-meta span{font-size:8px;letter-spacing:.06em}.player-meta strong{font-size:18px}.match-mid{min-width:104px;padding:7px 3px;gap:2px}.match-eyebrow{font-size:7px;letter-spacing:.09em}.match-mid strong{font-size:9px;letter-spacing:.03em}.turn-light{width:4px;height:4px}.aim-hint{top:139px;font-size:8px;letter-spacing:.1em;gap:5px}.aim-icon{font-size:14px}.toast{top:161px;font-size:11px}.bottom-panel{width:calc(100% - 16px);padding:0 11px 11px;border-radius:14px;bottom:max(9px,env(safe-area-inset-bottom))}.rail-topline{height:33px;font-size:8px;letter-spacing:.08em}.rail-right{font-size:8px;letter-spacing:.07em}.control-grid{grid-template-columns:66px minmax(0,1fr) 100px;gap:11px;padding-top:10px}.field-label{font-size:8px;letter-spacing:.08em}.spin-circle{width:56px;height:56px;border-width:3px}.spin-dot{height:10px;width:10px}.subtle-control{font-size:8px}.control-title>span:last-child{font-size:12px;letter-spacing:.06em}.pct{font-size:12px}.range-wrap{padding-top:10px}.range-ticks{font-size:7px;margin-top:8px}.aim-fine{gap:4px;margin-top:7px;font-size:8px}.aim-fine button{height:44px;width:44px;min-width:44px;font-size:18px}.aim-deg{min-width:35px}.keyboard-help{display:none}.shoot{height:81px;gap:3px}.shoot-word{font-size:12px;letter-spacing:.01em}.shoot-icon{font-size:18px}.shoot small{font-size:7px;letter-spacing:.02em}.table-mark{bottom:170px;font-size:6px;letter-spacing:.1em}.intro-medallion{height:54px;width:54px;font-size:36px;margin-bottom:12px}.intro-content{padding:4px 4px 16px}.intro-content h1{font-size:47px;margin:13px 0}.intro-content>p{font-size:13px;margin-bottom:22px}.mode-cards{grid-template-columns:1fr;gap:8px}.mode-card{min-height:70px;padding:11px 14px;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:11px;row-gap:2px;align-items:center}.mode-glyph{grid-column:1;grid-row:1/3;font-size:26px}.mode-card b{grid-column:2;grid-row:1;font-size:11px}.mode-card small{grid-column:2;grid-row:2;max-width:none;font-size:10px}.mode-arrow{bottom:auto;top:17px;right:14px;font-size:16px}.intro-footnote{font-size:8px;margin-top:20px;letter-spacing:.06em}}
@media(max-height:690px){.match-bar{top:63px}.header{padding-top:10px;padding-bottom:9px}.aim-hint{top:126px}.bottom-panel{bottom:6px}.rail-topline{height:26px}.control-grid{padding-top:7px}.shoot{height:70px}.intro-content h1{font-size:38px;margin:8px 0}.intro-content>p{margin-bottom:12px}.mode-card{min-height:55px;padding:7px 12px}.intro-footnote{margin-top:8px}.intro-medallion{display:none}.overlay{padding:65px 15px 10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* On a phone held sideways, move the controls beside the table instead of hiding it. */
@media (orientation:landscape) and (max-height:540px){
 .header{padding:8px 13px}.logo-mark{width:31px;height:31px;font-size:22px}.logo-text strong{font-size:12px}.logo-text small{font-size:7px}.toolbtn{min-height:30px}.header-buttons .tool-caption{display:none}
 .match-bar{top:48px;left:calc((100% - 270px)/2);width:min(410px,calc(100% - 300px));min-height:56px}.match-mid{min-width:100px}.player{padding:6px 9px}.avatar{width:28px;height:28px}.match-mid strong{font-size:9px}
 .aim-hint{top:112px;left:calc((100% - 270px)/2);font-size:8px}.toast{top:151px;left:calc((100% - 270px)/2);font-size:10px}
 .bottom-panel{left:auto;right:6px;bottom:6px;transform:none;width:264px;padding:0 10px 8px;border-radius:11px}.rail-topline{height:27px;font-size:8px}.rail-right{display:none}.control-grid{grid-template-columns:52px minmax(0,1fr);column-gap:12px;row-gap:9px;padding-top:7px}.spin-circle{width:47px;height:47px}.spin-block{grid-row:1;grid-column:1}.power-block{grid-row:1;grid-column:2}.control-title>span:last-child{font-size:12px;letter-spacing:.06em}.range-wrap{padding-top:5px}.range-ticks{margin-top:5px}.aim-fine{margin-top:3px}.aim-fine button{height:44px;width:44px;min-width:44px}.shoot{grid-row:2;grid-column:1/-1;height:42px;flex-direction:row;gap:10px;border-radius:7px}.shoot-word{font-size:12px}.shoot small{font-size:7px}.shoot-icon{font-size:14px}.table-mark{display:none}
 .intro-content h1{font-size:32px}.intro-content>p{font-size:11px;line-height:1.2;margin-bottom:9px}.mode-cards{grid-template-columns:repeat(3,1fr)}.mode-card{display:flex;min-height:92px}.mode-glyph{font-size:17px;min-height:24px}.mode-card b{font-size:9px}.mode-card small{font-size:8px}.overlay{padding:20px 15px 8px}.intro-footnote{display:none}
}

.table-finishes{display:flex;justify-content:center;align-items:center;gap:7px;margin:22px auto 0;flex-wrap:wrap}.table-finishes>span{font-size:9px;font-weight:800;letter-spacing:.16em;color:#b7ae94;margin-right:7px}.finish{display:flex;align-items:center;gap:5px;border:1px solid rgba(208,184,132,.22);background:rgba(12,25,19,.73);padding:7px 9px;border-radius:7px;font-size:9px;letter-spacing:.09em;color:#c2beae;font-weight:800}.finish:hover,.finish-active{border-color:#cfb77b;color:#f6e8bc;background:rgba(95,83,51,.37)}.finish i{display:inline-block;height:11px;width:11px;border-radius:50%;background:#467b59;border:1px solid rgba(255,255,255,.32)}.finish[data-theme=blue] i{background:#3f6d8f}.finish[data-theme=wine] i{background:#8c4c64}
@media(max-width:550px){.table-finishes{gap:4px;margin-top:17px}.table-finishes>span{font-size:7px;margin-right:0}.finish{font-size:7px;padding:6px 7px}.intro-footnote{margin-top:13px}}
@media (orientation:landscape) and (max-height:540px){.table-finishes{margin:7px auto 0}.table-finishes>span{font-size:7px}.finish{padding:4px 6px;font-size:7px}}

/* Keep the table clear: the only persistent shot control is spin. */
.bottom-panel{left:auto;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));transform:none;width:auto;padding:9px 11px;border-radius:12px}.bottom-panel [hidden]{display:none!important}.control-grid{display:block;padding:0}.spin-block{gap:5px}.spin-circle{width:56px;height:56px}.field-label{font-size:8px;letter-spacing:.12em}.subtle-control{font-size:9px;padding:4px}.table-mark{display:none}

/* HUD stays in reserved bands; the camera fits the complete table into the clear center. */
.header{padding-top:18px;padding-bottom:18px}
.match-bar{top:108px}
.aim-hint,.table-mark,.toast,.score-pop{display:none!important}
.bottom-panel{left:50%;right:auto;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);width:auto;min-width:0;padding:8px 13px;border-radius:13px}
.control-grid{display:block;padding:0}
.spin-block{flex-direction:row;align-items:center;gap:12px}
.spin-block .field-label{font-size:9px;letter-spacing:.13em}
.spin-circle{width:50px;height:50px}
.toolbtn:disabled,.toolbtn-unavailable{opacity:.56;cursor:default}
.match-mid{min-width:165px}
@media(min-width:791px) and (min-height:541px){
 .bottom-panel{left:auto;right:max(14px,env(safe-area-inset-right));top:50%;bottom:auto;transform:translateY(-50%);width:80px;padding:9px 8px}
 .spin-block{flex-direction:column;gap:8px}
 .spin-block .field-label{font-size:8px}
 .spin-circle{width:50px;height:50px}
}
@media(max-width:790px){
 .header{padding:12px 16px}
 .match-bar{top:66px}
 .bottom-panel{padding:7px 11px;bottom:max(9px,env(safe-area-inset-bottom))}
 .spin-circle{width:48px;height:48px}
}
@media(max-width:550px){
 .header{padding:10px 12px}
 .header-buttons{gap:4px}
 .header-buttons .toolbtn:nth-child(2){display:none}
 .header-buttons .toolbtn{width:34px;min-width:34px;min-height:34px;padding:0}
 .header-buttons .toolbtn.icon-only{width:34px}
 .match-bar{top:62px;width:calc(100% - 20px);min-height:56px}
 .player{padding:7px 6px;gap:5px}
 .avatar{width:29px;height:29px}
 .match-mid{min-width:104px;padding:6px 2px}
 .bottom-panel{padding:6px 10px}
 .spin-block{gap:10px}
 .spin-block .field-label{font-size:8px}
 .spin-circle{width:45px;height:45px}
}
@media(max-width:360px){
 .header{padding:6px 8px;gap:8px}
 .logo-text{display:none}
 .logo{gap:0;flex-shrink:0}.logo-mark{width:30px;height:30px;font-size:20px}
 .header-buttons{gap:2px;flex-shrink:0}
 .header-buttons .toolbtn{width:44px;min-width:44px;min-height:44px;padding:0}
 .header-buttons .toolbtn.icon-only{width:44px}
 .player-meta span{font-size:7px}.match-mid{min-width:90px}.match-mid strong{font-size:8px}
}
@media (orientation:landscape) and (max-height:540px){
 .header{padding:7px 12px}
 .header .logo-mark{height:31px;width:31px;font-size:21px}
 .header .logo-text strong{font-size:11px}.header .logo-text small{font-size:6px}
 .header-buttons .toolbtn{min-height:44px;width:44px;min-width:44px;padding:0}
 .match-bar{left:auto;right:max(8px,env(safe-area-inset-right));top:54px;transform:none;width:128px;min-height:0;flex-direction:column;border-radius:10px}
 .player{width:100%;min-height:42px;padding:5px 6px;gap:5px}.player-meta span{font-size:7px}.player-meta strong{font-size:15px}.player-meta-right{align-items:flex-start;margin-left:0}.player:has(.player-meta-right) .turn-light{margin-left:auto}.avatar{width:24px;height:24px;font-size:9px}.match-mid{min-width:0;min-height:40px;padding:5px 4px;border-left:0;border-right:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
 .match-mid strong{font-size:7px;white-space:normal;line-height:1.2}
 .match-eyebrow{font-size:6px}
 .bottom-panel{left:auto;right:max(8px,env(safe-area-inset-right));top:210px;bottom:auto;transform:none;width:128px;padding:9px 8px}
 .spin-block{flex-direction:column;gap:6px}
 .spin-block .field-label{font-size:7px}
 .spin-circle{width:48px;height:48px}
}

/* Give wide screens a compact status row so more of the table stays in view. */
@media(min-width:791px) and (min-height:541px){
 .header{padding-top:10px;padding-bottom:10px}
 .match-bar{top:72px;width:min(640px,calc(100% - 40px));min-height:44px;border-radius:10px}
 .player{gap:8px;padding:5px 12px}
 .avatar{width:30px;height:30px;font-size:11px}
 .player-meta span{font-size:9px;letter-spacing:.1em}
 .player-meta strong{font-size:18px}
 .match-mid{min-width:150px;padding:5px 8px;gap:2px}
 .match-eyebrow{font-size:8px}
 .match-mid strong{font-size:10px;letter-spacing:.03em}
}
@media(max-width:550px){
 .logo-text{display:none}
 .header-buttons .toolbtn{width:44px;min-width:44px;min-height:44px;padding:0}
 .header-buttons .toolbtn.icon-only{width:44px}
 .match-mid{min-width:104px;flex:0 1 132px}
 .match-mid strong{white-space:normal;overflow-wrap:anywhere;line-height:1.15}
 .player{min-width:0}
 .player-meta{min-width:0}
}

/* Thumb Lab: a compact cue dock leaves the table open for play. */
[hidden]{display:none!important}
.header{padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));align-items:center}
.logo-mark{width:36px;height:36px;font-size:24px}.logo-text strong{font-size:13px}.logo-text small{font-size:8px}
.header-buttons{gap:4px}.header-buttons .toolbtn,.settings-menu summary{width:auto;min-width:44px;min-height:44px;padding:0 10px;font-size:10px;letter-spacing:.04em}
.header-buttons .tool-caption{display:inline}.settings-menu{position:relative;pointer-events:auto}.settings-menu summary{display:grid;place-items:center;list-style:none;cursor:pointer;color:#d8c28d;background:rgba(8,18,16,.8);border:1px solid rgba(219,201,151,.2);border-radius:10px}.settings-menu summary::-webkit-details-marker{display:none}.settings-list{position:absolute;right:0;top:48px;display:grid;min-width:132px;padding:5px;background:#101e18;border:1px solid #796d4d;border-radius:10px;box-shadow:0 12px 30px #0009}.settings-list .toolbtn{justify-content:flex-start;width:100%;border:0;background:none}
.match-bar{top:56px;width:min(620px,calc(100% - 24px));min-height:32px;border-radius:8px}.player{padding:3px 10px;gap:7px}.avatar{width:25px;height:25px;font-size:9px}.player-meta span,.match-eyebrow{font-size:10px}.player-meta strong{font-size:15px}.match-mid{padding:3px 8px;gap:0}.match-mid strong{font-size:13px;letter-spacing:.03em}
.bottom-panel{left:50%;right:auto;top:auto;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(510px,calc(100% - 16px));padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
.thumb-dock{position:relative;display:flex;align-items:end;justify-content:center;min-height:70px}.thumb-pad{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;width:min(300px,calc(100% - 120px));height:70px;min-width:170px;overflow:hidden;touch-action:none;user-select:none;cursor:grab;border:1px solid rgba(222,195,136,.6);border-radius:14px;background:linear-gradient(135deg,rgba(17,38,29,.97),rgba(9,24,19,.97));box-shadow:0 9px 28px #0009,inset 0 1px rgba(255,255,255,.07);outline-offset:3px}.thumb-pad.thumb-active{cursor:grabbing;border-color:#f1d695;box-shadow:0 0 0 2px #d2ad5d55,0 9px 28px #0009}.thumb-meter{position:absolute;inset:auto 0 0;height:4px;background:#ffffff12}.thumb-meter div{height:100%;width:0;background:#e3be72;transition:width .06s linear}.thumb-cue{position:relative;flex:none;height:47px;width:18px;display:flex;justify-content:center}.thumb-cue i{height:44px;width:5px;background:linear-gradient(#e9d3a1 0 16%,#a97942 17% 75%,#513524 76%);border-radius:3px;box-shadow:0 1px 5px #000}.thumb-cue b{position:absolute;bottom:0;width:18px;height:2px;background:#d6b87f}.thumb-copy{display:flex;flex-direction:column;gap:5px}.thumb-copy strong{font-size:11px;color:#f1dfb7;letter-spacing:.12em}.thumb-copy span{font-size:9px;color:#b7c2b1;letter-spacing:.04em}.dock-side{position:absolute;left:0;bottom:0;display:flex;gap:3px}.dock-button{min-width:44px;min-height:44px;padding:4px 7px;border:1px solid #a9915b88;border-radius:10px;background:#10221beF;color:#e8d6ad;font-size:10px;font-weight:800;letter-spacing:.04em}.dock-button span{display:block;font-size:8px;color:#b7c2b1;margin-top:2px}.help-button{font:600 19px Georgia,serif}.target-readout{position:absolute;right:0;bottom:9px;max-width:60px;text-align:center;color:#e6d5ad;font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.04em;pointer-events:none}
.spin-popover{position:absolute;left:0;bottom:54px;z-index:2;width:190px;padding:12px;background:#102019f7;border:1px solid #b39b68;border-radius:12px;box-shadow:0 12px 35px #000a;text-align:center}.spin-heading{font-size:10px;font-weight:800;letter-spacing:.14em;color:#e5ce9a}.spin-layout{display:grid;grid-template-columns:1fr 70px 1fr;grid-template-rows:18px 70px 18px;align-items:center;justify-items:center;color:#c4cbb9;font-size:9px;font-weight:700;letter-spacing:.06em}.spin-top{grid-area:1/2}.spin-left{grid-area:2/1}.spin-circle{grid-area:2/2;width:64px;height:64px}.spin-right{grid-area:2/3}.spin-back{grid-area:3/2}.subtle-control{min-height:44px;padding:0 8px;font-size:10px;color:#e2c990}
.coach-mark{position:absolute;z-index:6;left:50%;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 82px);transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:min(340px,calc(100% - 24px));padding:8px 5px 8px 11px;background:#14271ff5;border:1px solid #c7aa70;border-radius:11px;box-shadow:0 8px 28px #0009;color:#eee1c3}.coach-mark strong{font-size:10px;letter-spacing:.1em}.coach-mark p{margin:4px 0 0;font-size:12px;line-height:1.3;color:#c8d0bd}.coach-mark button{align-self:flex-start;flex:none;min-width:44px;min-height:44px;border:0;background:none;color:#e2c793;font-size:23px}.coach-illustration{position:relative;flex:none;width:43px;height:48px;border:1px solid #bfa676;border-radius:8px;text-align:center;color:#dfc894}.coach-arrow{position:absolute;top:2px;left:7px;font-size:18px}.coach-finger{position:absolute;top:16px;left:16px;font-size:12px;animation:cue-gesture 1.7s ease-in-out infinite}.coach-pull{position:absolute;bottom:0;left:17px;font-size:17px}@keyframes cue-gesture{0%,100%{transform:translate(0,0)}35%{transform:translate(7px,0)}70%{transform:translate(0,9px)}}
@media(max-width:550px){.header{padding:5px 6px;gap:2px}.logo{gap:5px}.logo-mark{width:28px;height:28px;font-size:19px}.logo-text strong{font-size:10px;letter-spacing:.08em}.logo-text small{display:none}.header-buttons{gap:2px}.header-buttons .toolbtn,.settings-menu summary{width:auto;min-width:44px;min-height:44px;padding:0 5px;font-size:9px}.header-buttons .toolbtn:nth-child(2){display:flex}.match-bar{top:51px;width:calc(100% - 16px);min-height:32px}.player{padding:3px 6px}.player-meta span,.match-eyebrow{font-size:9px}.match-mid{min-width:115px}.match-mid strong{font-size:13px}.avatar{width:24px;height:24px}.toast{top:92px}.thumb-pad{width:calc(100% - 125px)}.thumb-copy span{font-size:8px}.finish{min-height:44px}.back-menu{min-height:44px}}
@media(max-width:360px){.logo-mark{display:none}.logo-text strong{font-size:9px}.header-buttons{gap:1px}.thumb-pad{width:calc(100% - 115px)}.dock-side{gap:0}.dock-button{padding:3px}.target-readout{max-width:54px;font-size:9px}}
@media (orientation:landscape) and (max-height:540px){.header{padding:3px 8px}.match-bar{left:50%;right:auto;top:50px;transform:translateX(-50%);width:min(500px,calc(100% - 20px));min-height:32px;flex-direction:row}.match-mid{display:flex}.bottom-panel{left:50%;right:auto;top:auto;bottom:max(6px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(470px,calc(100% - 16px));padding:0}.thumb-dock{min-height:62px}.thumb-pad{height:62px}.coach-mark{bottom:76px}.intro-footnote{display:block}}
@media(prefers-reduced-motion:reduce){.coach-finger{animation:none}}
/* Keep secondary controls outside the cue's touch target. */
.bottom-panel{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 24px)}
.thumb-dock{display:grid;grid-template-columns:90px minmax(150px,1fr) 60px;align-items:end;gap:0}
.dock-side{position:static;display:flex;align-items:end;gap:2px}.dock-side .dock-button{flex:1;min-width:44px}
.thumb-pad{width:100%;min-width:0}.thumb-copy{min-width:0}.thumb-copy strong{font-size:11px}.thumb-copy span{font-size:12px;white-space:nowrap;letter-spacing:0}
.target-readout{position:static;max-width:none;align-self:center;padding:0 3px;font-size:10px}
.coach-mark{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 106px)}
@media(max-width:550px){.thumb-pad{width:100%}.thumb-copy span{font-size:12px}.thumb-dock{grid-template-columns:90px minmax(150px,1fr) 60px}}
@media(max-width:360px){.thumb-dock{grid-template-columns:88px minmax(150px,1fr) 54px}.thumb-pad{width:100%;gap:7px}.target-readout{max-width:none}}
@media (orientation:landscape) and (max-height:540px){.bottom-panel{bottom:calc(max(6px,env(safe-area-inset-bottom)) + 24px)}.coach-mark{bottom:100px}}

/* v0.2.0: keep the thumb pad clear of a full 60px downward pull. */
.bottom-panel{left:50%;right:auto;top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 60px);transform:translateX(-50%);width:min(510px,calc(100% - 16px));padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
.thumb-dock{min-height:56px}
.thumb-pad{height:56px}
.thumb-copy span{white-space:normal;line-height:1.2}
.thumb-pad.thumb-help-active .thumb-copy{gap:2px}
.thumb-pad.thumb-help-active .thumb-copy span{white-space:pre-line;font-size:11px;line-height:1.1}
.version-mark{margin-left:7px;color:#a9a58e;font-size:9px;letter-spacing:.08em}
@media(max-width:550px){.thumb-copy span{font-size:10px}}
@media (orientation:landscape) and (max-height:540px){
 .bottom-panel{left:auto;right:max(8px,env(safe-area-inset-right));top:50%;bottom:auto;transform:translateY(-50%);width:128px;padding:9px 8px}
 .thumb-dock{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto;align-items:center;gap:5px;min-height:0}
 .dock-side{position:static;width:100%;display:flex;align-items:center;gap:2px}
 .dock-side .dock-button{min-width:44px;min-height:44px;padding:4px 3px;font-size:8px}
 .thumb-pad{width:100%;min-width:0;height:56px;min-height:56px;gap:6px;padding:4px}
 .thumb-cue{height:36px;width:14px}
 .thumb-cue i{height:34px}
 .thumb-cue b{width:14px}
 .thumb-copy{min-width:0;gap:2px}
 .thumb-copy strong{font-size:9px;line-height:1.1;letter-spacing:.035em;white-space:normal;text-align:center}
 .thumb-copy span{font-size:8px;line-height:1.1}
 .thumb-help-active{height:56px}
 .thumb-help-active .thumb-cue{display:none}
 .thumb-help-active .thumb-copy{width:100%;align-items:center}
 .thumb-help-active .thumb-copy strong,.thumb-help-active .thumb-copy span{font-size:11px;line-height:1.05;letter-spacing:0;text-align:center}
 .thumb-help-active .thumb-copy span{white-space:pre-line}
 .target-readout{position:static;max-width:none;padding:0;font-size:9px}
}

/* Flat Focus v0.3.0: keep the table bright and the shot controls in reserved bands. */
#grain{opacity:.045}
.vignette{background:radial-gradient(ellipse 90% 82% at 50% 48%,transparent 62%,rgba(3,8,8,.20) 100%),linear-gradient(180deg,rgba(2,9,9,.23),transparent 15%,transparent 78%,rgba(3,11,10,.28))}
.focus-toggle{min-width:64px;color:#f0d79b;border-color:rgba(219,201,151,.42)}
.focus-toggle[aria-pressed="true"]{background:rgba(115,91,48,.53);border-color:#efd38b;color:#fff0c9}
.focus-toggle:disabled,#cameraBtn:disabled,#zoomResetBtn:disabled{opacity:.52;cursor:default}
.match-bar{min-height:32px}
.player{padding:3px 8px;gap:6px}
.avatar{width:24px;height:24px;font-size:9px}
.match-mid{min-width:120px;padding:3px 6px}
.match-mid strong{font-size:12px;line-height:1.08}
.settings-menu[open] .settings-list{z-index:8}
.settings-list #spinToggle{font-size:10px;letter-spacing:.04em}
.spin-popover{left:auto;right:0;top:calc(48px + 44px + 6px);bottom:auto;z-index:9}
.spin-popover[hidden]{display:none!important}
.thumb-dock{grid-template-columns:48px minmax(150px,1fr) 60px}
.dock-side{justify-content:flex-start}
@media(max-width:550px){
 .header-buttons .focus-toggle{min-width:58px;padding:0 5px;font-size:9px}
 .match-mid{min-width:100px}
 .player-meta strong{font-size:14px}
 .thumb-dock{grid-template-columns:46px minmax(150px,1fr) 54px}
 .thumb-copy span{font-size:10px}
}
@media(max-width:360px){
 .header-buttons .toolbtn{width:40px;min-width:40px;min-height:44px}
 .header-buttons .focus-toggle{width:48px;min-width:48px}
 .settings-menu summary{min-width:40px}
 .thumb-dock{grid-template-columns:42px minmax(138px,1fr) 48px}
}
@media (orientation:landscape) and (max-height:540px){
 .focus-toggle{min-width:58px}
 .thumb-dock{grid-template-columns:1fr}
}

/* Thumb Lab v0.6.0 mobile play: one overhead HUD band, with optional controls in the settings dialog. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.intro-hero>p{font-size:15px;line-height:1.7;color:#c2c6b6;margin:0 0 32px}
.mobile-menu-trigger{display:none}
.mobile-settings,.mobile-start-hint{display:none}
.mobile-new-game>summary{display:none}
.mobile-new-game-content{display:block!important}

.mobile-play .header{position:absolute;top:env(safe-area-inset-top);left:0;right:0;height:48px;padding:0;z-index:12;pointer-events:none}
.mobile-play .header .logo,.mobile-play .header-buttons{display:none!important}
.mobile-play .mobile-menu-trigger{position:absolute;left:max(8px,env(safe-area-inset-left));top:2px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #baa477;border-radius:50%;background:rgba(10,19,17,.92);box-shadow:inset 0 0 0 4px rgba(10,14,12,.75),inset 0 0 0 5px rgba(222,186,114,.4),0 0 18px rgba(224,182,103,.2);color:#d1bb82;font:700 28px/1 Georgia,serif;pointer-events:auto;touch-action:manipulation}
.mobile-play .mobile-menu-trigger:focus-visible{outline:3px solid #f5dc9e;outline-offset:3px}
.mobile-play .match-bar{position:absolute;top:env(safe-area-inset-top);left:calc(max(8px,env(safe-area-inset-left)) + 52px);right:max(8px,env(safe-area-inset-right));transform:none;width:auto;height:48px;min-height:48px;z-index:4;border-radius:9px;box-shadow:0 6px 22px rgba(1,8,6,.28);backdrop-filter:blur(12px)}
.mobile-play .player{flex:1 1 0;min-width:0;padding:3px 5px;gap:4px}
.mobile-play .avatar{width:20px;height:20px;font-size:8px}
.mobile-play .player-meta{gap:0}
.mobile-play .player-meta span{font-size:8px;letter-spacing:.04em}
.mobile-play .player-meta strong{font-size:14px;line-height:1.05}
.mobile-play .turn-light{width:5px;height:5px}
.mobile-play .match-mid{flex:0 1 104px;min-width:84px;padding:3px 5px;gap:0}
.mobile-play .match-eyebrow{display:none}
.mobile-play .match-mid strong{font-size:10px;line-height:1.15;letter-spacing:.01em;white-space:normal}
.mobile-play .player-meta-right{align-items:flex-end;margin-left:auto}
.mobile-play .player:has(.player-meta-right) .turn-light{margin-left:0}
.mobile-play #helpBtn{display:none!important}
.mobile-play .bottom-panel{position:absolute;left:50%;right:auto;top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 60px);transform:translateX(-50%);width:min(700px,calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px));min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
@media (orientation:portrait){
 /* Leave room for the full draw from anywhere on the pad. */
 .mobile-play .bottom-panel{bottom:calc(env(safe-area-inset-bottom) + 62px)}
}
.mobile-play .thumb-dock{display:grid;grid-template-columns:minmax(0,1fr) minmax(66px,82px);align-items:center;gap:8px;min-height:56px}
.mobile-play .dock-side{display:none!important}
.mobile-play .thumb-pad{width:100%;height:56px;min-height:56px;min-width:0;gap:10px;border-radius:13px;touch-action:none}
.mobile-play .thumb-copy{min-width:0;gap:4px}
.mobile-play .thumb-copy strong{font-size:11px;line-height:1.15;letter-spacing:.08em;white-space:nowrap}
.mobile-play .thumb-copy span{font-size:10px;line-height:1.2;white-space:normal}
.mobile-play .target-readout{position:static;align-self:center;max-width:none;padding:0 2px;font-size:10px;line-height:1.25;letter-spacing:.025em;overflow-wrap:anywhere}
.mobile-play .coach-mark{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 126px)}

.mobile-play #menuOverlay{height:100%;align-items:flex-start;justify-content:center;overflow-y:auto;overscroll-behavior:contain;padding:calc(env(safe-area-inset-top) + 58px) max(12px,env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 16px) max(12px,env(safe-area-inset-left));scrollbar-width:thin;scroll-padding-block:6px}
.mobile-play #menuOverlay .intro-content{width:min(520px,100%);margin:0 auto;padding:0 0 12px;text-align:left}
.mobile-play .mobile-resume{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin:0 0 12px;padding:10px 16px;border:1px solid rgba(255,239,191,.72);border-radius:11px;background:linear-gradient(145deg,#f2daa1,#caa35e);color:#20261c;box-shadow:0 5px 18px #0005,inset 0 1px 2px #fff8d3;font-size:13px;font-weight:800;letter-spacing:.1em;touch-action:manipulation}
.mobile-play .mobile-settings{display:block;margin:0 0 14px;padding:14px;border:1px solid rgba(228,202,149,.32);border-radius:13px;background:linear-gradient(145deg,rgba(14,29,23,.96),rgba(8,19,16,.97));box-shadow:0 12px 30px #0005}
.mobile-play .mobile-section-heading h2{margin:0;color:#f2e5c4;font-size:17px;line-height:1.25;letter-spacing:.015em}
.mobile-play .mobile-section-heading p{margin:4px 0 11px;color:#b9c0af;font-size:12px;line-height:1.4}
.mobile-play .camera-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0}
.mobile-play .camera-choice legend{width:100%;margin:0 0 7px;padding:0;color:#d7c28e;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.mobile-play .camera-option{position:relative;display:flex;align-items:center;gap:8px;min-width:0;min-height:56px;padding:8px;border:1px solid rgba(219,201,151,.28);border-radius:9px;background:rgba(255,255,255,.035);cursor:pointer;touch-action:manipulation}
.mobile-play .camera-option:has(#mobileCameraCue){grid-column:1/-1}
.mobile-play .camera-option:has(input:checked){border-color:#d8bd7e;background:rgba(191,157,91,.14);box-shadow:inset 0 0 0 1px rgba(216,189,126,.12)}
.mobile-play .camera-option input{flex:none;width:17px;height:17px;margin:0;accent-color:#d9bb79}
.mobile-play .camera-option-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.mobile-play .camera-option-copy strong{font-size:11px;line-height:1.15;color:#f0e5c9}
.mobile-play .camera-option-copy small{font-size:9px;line-height:1.25;color:#bac2b2}
.mobile-play .mobile-reduced-motion-hint{margin:9px 0 0;padding:8px 9px;border-left:2px solid #d9bb79;background:rgba(217,187,121,.08);color:#ddd2b1;font-size:11px;line-height:1.35}
.mobile-play .cue-sensitivity{min-width:0;margin:12px 0 0;padding:0;border:0}
.mobile-play .cue-sensitivity legend{padding:0;margin:0 0 7px;color:#d7c28e;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.mobile-play .cue-sensitivity-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.mobile-play .cue-sensitivity-options label{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:44px;padding:4px;border:1px solid rgba(219,201,151,.28);border-radius:8px;background:rgba(255,255,255,.035);color:#f0e5c9;font-size:12px;font-weight:700;cursor:pointer;touch-action:manipulation}
.mobile-play .cue-sensitivity-options label:has(input:checked){border-color:#d8bd7e;background:rgba(191,157,91,.14)}
.mobile-play .cue-sensitivity-options input{flex:none;width:14px;height:14px;margin:0;accent-color:#d9bb79}
.mobile-play .mobile-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:11px}
.mobile-play .mobile-action{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:44px;padding:7px 10px;border:1px solid rgba(219,201,151,.24);border-radius:8px;background:rgba(7,17,14,.56);color:#e8dfc7;font-size:11px;font-weight:700;text-align:left;touch-action:manipulation}
.mobile-play .mobile-action span{color:#cdb77c;font-size:9px;font-weight:800;letter-spacing:.07em}
.mobile-play .mobile-action[aria-pressed="true"]{border-color:rgba(216,189,126,.54);background:rgba(115,91,48,.18)}
.mobile-play .mobile-action:disabled{opacity:.5;cursor:default}
.mobile-play .mobile-spin-host:empty{display:none}
.mobile-play .mobile-spin-host .spin-popover{position:static;display:block;width:100%;margin-top:9px;padding:10px;border-color:#796d4d;background:#091611}
.mobile-play .mobile-spin-host .spin-popover[hidden]{display:none!important}
.mobile-play .mobile-spin-host .spin-layout{grid-template-columns:1fr 70px 1fr;justify-content:center}
.mobile-play .mobile-spin-host .spin-circle{width:64px;height:64px}
.mobile-play .mobile-start-hint{display:block;margin:0 0 12px;color:#d9c99e;font-size:11px;font-weight:700;letter-spacing:.035em;text-align:center}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-start-hint{display:none}
.mobile-play #menuOverlay.mobile-menu-paused .intro-hero{display:none}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game{margin-top:2px}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:8px 13px;border:1px solid rgba(219,201,151,.34);border-radius:9px;background:rgba(10,20,17,.72);color:#e8d9b4;font-size:12px;font-weight:800;letter-spacing:.04em;cursor:pointer;list-style:none;touch-action:manipulation}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game>summary::-webkit-details-marker{display:none}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game>summary::after{content:'＋';color:#d9bb79;font-size:18px}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game[open]>summary::after{content:'−'}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game:not([open])>.mobile-new-game-content{display:none!important}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game-content{padding-top:10px}
.mobile-play #menuOverlay.mobile-menu-paused .intro-footnote{margin-top:12px;text-align:center;font-size:8px}
.mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero h1{font-size:clamp(35px,10vw,52px);margin:12px 0}
.mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero>p{margin-bottom:16px;font-size:13px;line-height:1.45}
.mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-medallion{display:none}
.mobile-play .mode-cards{grid-template-columns:1fr;gap:7px}
.mobile-play .mode-card{min-height:60px;padding:8px 12px}
.mobile-play .mode-card small{max-width:none}
.mobile-play .table-finishes{margin-top:12px}
.mobile-play .finish{min-height:44px}
.mobile-play .intro-footnote{margin-top:14px;text-align:center}
.mobile-play #endOverlay .back-menu,.mobile-play #endOverlay .play-again{min-height:44px}
.mobile-play button:focus-visible,.mobile-play summary:focus-visible,.mobile-play input:focus-visible{outline:3px solid #f5dc9e;outline-offset:3px}

@media(max-width:390px){
 .mobile-play .camera-choice{grid-template-columns:1fr}
 .mobile-play .camera-option{min-height:48px}
 .mobile-play .mobile-settings{padding:12px}
 .mobile-play .mobile-section-heading p{margin-bottom:8px}
 .mobile-play .mobile-action-grid{gap:6px}
 .mobile-play .mobile-action{padding:7px 8px;font-size:10px}
 .mobile-play .mobile-action span{font-size:8px}
 .mobile-play .match-mid{flex-basis:94px;min-width:78px}
 .mobile-play .player-meta span{font-size:7px}
}
@media (orientation:landscape) and (max-height:540px){
 .mobile-play .header{height:48px}
 .mobile-play .match-bar{height:48px;min-height:48px}
 .mobile-play .player{padding:2px 8px}
 .mobile-play .match-mid{flex-basis:110px;min-width:92px}
 .mobile-play .bottom-panel{bottom:calc(max(6px,env(safe-area-inset-bottom)) + 60px);width:min(700px,calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 20px))}
 .mobile-play .thumb-dock{grid-template-columns:minmax(0,1fr) 82px;min-height:56px}
 .mobile-play .thumb-pad{height:56px;min-height:56px}
 .mobile-play #menuOverlay{padding-top:calc(env(safe-area-inset-top) + 56px)}
 .mobile-play #menuOverlay .intro-content{width:min(620px,100%)}
 .mobile-play .mobile-settings{padding:11px;margin-bottom:10px}
 .mobile-play .mobile-section-heading p{margin-bottom:7px}
 .mobile-play .camera-option{min-height:48px}
 .mobile-play .mobile-action-grid{margin-top:8px}
 .mobile-play .mobile-start-hint{margin-bottom:8px}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero{display:none}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-new-game{margin-top:8px}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-new-game>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:7px 12px;border:1px solid rgba(219,201,151,.34);border-radius:9px;color:#e8d9b4;background:rgba(10,20,17,.72);font-size:12px;font-weight:800;list-style:none}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-new-game>summary::-webkit-details-marker{display:none}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-new-game-content{padding-top:8px}
 .mobile-play .mode-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .mobile-play .mode-card{min-height:60px;display:flex;padding:8px;gap:3px}
 .mobile-play .mode-glyph{min-height:20px;font-size:19px}
 .mobile-play .mode-card b{font-size:9px}
 .mobile-play .mode-card small{font-size:8px}
 .mobile-play .mode-arrow{right:8px;bottom:5px;font-size:15px}
 .mobile-play .table-finishes{margin-top:7px}
 .mobile-play .intro-footnote{margin-top:8px}
}

/* Keep initial mode selection within reach before the optional settings panel. */
.mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-content{display:flex;flex-direction:column}
.mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero{order:1}
.mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-new-game{order:2}
.mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-start-hint{order:3}
.mobile-play #menuOverlay:not(.mobile-menu-paused) #mobileSettings{order:4}
.mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-footnote{order:5}
.mobile-play #menuOverlay.mobile-menu-paused .intro-content{display:flex;flex-direction:column}
.mobile-play #menuOverlay.mobile-menu-paused #mobileResumeBtn{order:0}
.mobile-play #menuOverlay.mobile-menu-paused #mobileSettings{order:1}
.mobile-play #menuOverlay.mobile-menu-paused .mobile-new-game{order:2}
.mobile-play #menuOverlay.mobile-menu-paused .intro-footnote{order:3}
@media (orientation:landscape) and (max-height:540px){
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero{display:block}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero .eyebrow{display:none}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero h1{font-size:29px;margin:0 0 5px}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .intro-hero>p{display:none}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-new-game>summary{display:none}
 .mobile-play #menuOverlay:not(.mobile-menu-paused) .mobile-new-game-content{display:block!important}
}
@media(min-width:700px){
 .mobile-play .match-bar{left:50%;right:auto;transform:translateX(-50%);width:min(560px,calc(100% - 72px))}
}
@media (orientation:landscape) and (max-height:540px){
 .mobile-play .bottom-panel{left:auto;right:max(8px,env(safe-area-inset-right));top:50%;bottom:auto;transform:translateY(-50%);width:128px;padding:0}
 .mobile-play .thumb-dock{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:56px auto;align-items:center;gap:5px;min-height:0}
 .mobile-play .thumb-pad{width:100%;height:56px;min-height:56px;gap:6px;padding:4px}
 .mobile-play .thumb-copy{gap:2px}
 .mobile-play .thumb-copy strong{font-size:9px;letter-spacing:.035em;white-space:normal;text-align:center}
 .mobile-play .thumb-copy span{font-size:8px;line-height:1.1;text-align:center}
 .mobile-play .target-readout{font-size:9px;padding:0;line-height:1.15}
}

/* Readability pass for mobile players; preserve the established HUD and control geometry. */
.mobile-play .avatar,.mobile-play .player-meta span{display:none}
.mobile-play .player-meta strong{font-size:14px}
.mobile-play .match-mid strong{font-size:12px;line-height:1.2}
.mobile-play .thumb-copy strong{font-size:12px}
.mobile-play .thumb-copy span{font-size:11px;line-height:1.2}
.mobile-play .target-readout{font-size:12px;line-height:1.25}
.mobile-play .mobile-section-heading h2{font-size:18px}
.mobile-play .mobile-section-heading p{font-size:12px}
.mobile-play .camera-choice legend{font-size:12px}
.mobile-play .camera-option-copy strong{font-size:14px;line-height:1.2}
.mobile-play .camera-option-copy small{font-size:12px;line-height:1.3}
.mobile-play .mobile-reduced-motion-hint{font-size:12px;line-height:1.4}
.mobile-play .mobile-action{font-size:14px}
.mobile-play .mobile-action span{font-size:12px}
.mobile-play .mobile-start-hint{font-size:12px}
.mobile-play .mode-card b{font-size:14px}
.mobile-play .mode-card small{font-size:12px;line-height:1.35}
.mobile-play .table-finishes>span{font-size:12px}
.mobile-play .finish{font-size:11px}
.mobile-play .intro-footnote,.mobile-play #menuOverlay.mobile-menu-paused .intro-footnote{font-size:10px}
.mobile-play .version-mark{font-size:10px}
@media(max-width:390px){
 .mobile-play .mobile-action{font-size:14px}
 .mobile-play .mobile-action span{font-size:12px}
 .mobile-play .target-readout{font-size:12px}
}
@media (orientation:landscape) and (max-height:540px){
 .mobile-play .player-meta strong{font-size:14px}
 .mobile-play .match-mid strong{font-size:12px}
 .mobile-play .thumb-copy strong{font-size:11px;line-height:1.15;letter-spacing:0}
 .mobile-play .thumb-copy span{font-size:11px;line-height:1.2}
 .mobile-play .target-readout{font-size:12px;line-height:1.25}
 .mobile-play .mode-card b{font-size:12px}
 .mobile-play .mode-card small{font-size:11px}
}

.target-number {
  display: block;
  color: #fff2cc;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: 0;
}
.target-number:empty { display: none; }

@media(min-width:551px){
 .mode-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mode-card{min-height:108px;padding:14px 15px 14px 60px;justify-content:center}
 .mode-card .mode-glyph{position:absolute;left:16px;top:50%;transform:translateY(-50%);min-height:0}
 .mode-card small{max-width:22ch}
}
@media(orientation:landscape) and (max-height:540px){
 .mobile-play .mode-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mobile-play .mode-card{padding:7px 12px 7px 40px;min-height:58px}
 .mobile-play .mode-card .mode-glyph{position:absolute;left:12px;top:50%;transform:translateY(-50%)}
}
.club-card{border-color:#829c85;background:linear-gradient(125deg,#274638,#14271f)}
.club-card .mode-glyph{color:#bcd8ba}
.club-scorecard{margin:0 auto 20px;padding:0;list-style:none;max-width:320px;text-align:left}
.club-scorecard li{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:6px 2px;color:#eee6d5;border-bottom:1px solid #d8bd7e33;font-size:14px}
.club-scorecard .earned{letter-spacing:.12em;color:#edca80}
.club-scorecard .unearned{color:#a6aa99}
#endOverlay:has(.club-scorecard:not([hidden])) .end-content{margin:auto;width:min(380px,100%)}
#endOverlay:has(.club-scorecard:not([hidden])) h2{font-size:clamp(34px,7vw,54px);margin:10px 0}
#endOverlay:has(.club-scorecard:not([hidden])) p{margin:8px 0 16px}
