[hidden]{display:none!important}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:#0B1310;font-family:Inter,system-ui,sans-serif;color:#F2F5F0}
body{overscroll-behavior:none}
button{font-family:inherit;cursor:pointer;color:inherit}
input{font-family:inherit}
.cond{font-family:'Barlow Condensed',sans-serif;font-weight:700}
.muted{color:#A9B8AE}.small{font-size:12px}.center{text-align:center}

/* ---------- app pages ---------- */
.page{min-height:100vh;min-height:100dvh;position:relative}
.page-in{position:relative;max-width:480px;margin:0 auto;padding:calc(16px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px}
.home{overflow:hidden}
.home .page-in{min-height:100vh;min-height:100dvh}
.me-chip{align-self:flex-end;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:99px;border:1px solid #FFFFFF26;background:#0B1310B3;font-weight:600;font-size:14px}
.dot{width:14px;height:14px;border-radius:50%;background:#F2C14E;box-shadow:0 0 0 2px #0B1310,0 0 0 3px #FFFFFF55;flex:none}
.brand{margin-top:8vh}
.kicker{font-size:12px;font-weight:700;letter-spacing:2px;color:#F2C14E}
.brand h1{font-size:clamp(48px,16vw,72px);line-height:.9;margin:6px 0 8px;letter-spacing:1px}
.brand p{margin:0;color:#D3DDD6;font-size:16px}
.home-actions{display:flex;flex-direction:column;gap:12px;margin-top:auto}
.big-btn{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px 20px;border-radius:20px;border:1px solid #FFFFFF26;background:#16211BE6;text-align:left;min-height:78px;justify-content:center}
.big-btn span{font-size:32px;line-height:1;letter-spacing:1px}
.big-btn small{color:#C3CFC7;font-size:13px}
.big-btn.gold{background:#F2C14E;color:#1A1406;border:0}
.big-btn.gold small{color:#4A3B12}
.foot{font-size:11px;color:#FFFFFF80;text-align:center}
.top{display:flex;align-items:center;gap:12px}
.top h2{margin:0;font-size:30px;letter-spacing:.5px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.back{width:44px;height:44px;border-radius:50%;border:1px solid #FFFFFF26;background:#16211B;font-size:26px;line-height:1;padding-bottom:4px;flex:none}
.field{display:flex;flex-direction:column;gap:8px}
.field>span{font-size:13px;font-weight:600;color:#C3CFC7}
.field input{height:50px;border-radius:14px;border:1px solid #FFFFFF26;background:#16211B;color:#F2F5F0;padding:0 14px;font-size:16px}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg button,.cards button{border:1px solid #FFFFFF22;background:#16211B;border-radius:12px;font-size:14px;font-weight:600}
.seg button{min-height:44px;padding:0 14px;flex:1 1 auto}
.seg button.on,.cards button.on{background:#F2C14E;color:#1A1406;border-color:#F2C14E}
.seg button:disabled,.cards button:disabled{opacity:.35}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cards button{padding:12px;text-align:left;display:flex;flex-direction:column;gap:4px;min-height:74px}
.cards button b{font-size:15px}.cards button small{font-size:12px;font-weight:500;opacity:.8;line-height:1.35}
.stepper{display:flex;align-items:center;gap:14px}
.stepper button{width:44px;height:44px;border-radius:50%;border:1px solid #FFFFFF26;background:#16211B;font-size:22px}
.stepper b{font-size:22px;min-width:24px;text-align:center}
.rules{padding:14px;border-radius:16px;background:#131D18;border:1px solid #F2C14E44;font-size:13px;line-height:1.5;color:#D3DDD6}
.rules b{color:#F2C14E}
.rules ul{margin:6px 0 0;padding-left:18px}
.cta{height:58px;border-radius:18px;border:0;font-size:17px;font-weight:700}
.gold{background:#F2C14E;color:#1A1406}
.err{padding:10px 12px;border-radius:12px;background:#E5484D22;border:1px solid #E5484D;font-size:13px}
.code-row{display:flex;gap:8px}
.code-row input{flex:1;min-width:0;height:52px;border-radius:14px;border:1px solid #FFFFFF26;background:#16211B;color:#F2F5F0;padding:0 14px;font-size:22px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:6px;text-transform:uppercase}
.code-row button{border:0;border-radius:14px;padding:0 16px;font-weight:700}
.sub{margin:6px 0 0;font-size:14px;color:#C3CFC7;font-weight:600}
.list{display:flex;flex-direction:column;gap:8px}
.item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:#16211B;border:1px solid #FFFFFF14;text-align:left;width:100%}
.item .grow{flex:1;min-width:0}
.item b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item small{color:#A9B8AE;font-size:12px}
.item .pill{padding:4px 10px;border-radius:99px;background:#F2C14E;color:#1A1406;font-size:12px;font-weight:700}
.empty{padding:22px;border-radius:16px;border:1px dashed #FFFFFF26;text-align:center;color:#A9B8AE;font-size:14px}
.swatches{display:flex;gap:10px;flex-wrap:wrap}
.swatches button{width:44px;height:44px;border-radius:50%;border:3px solid transparent}
.swatches button.on{border-color:#fff}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stats div{padding:12px 6px;border-radius:14px;background:#16211B;text-align:center}
.stats b{display:block;font-family:'Barlow Condensed',sans-serif;font-size:26px}
.stats small{color:#A9B8AE;font-size:11px}
.code-big{display:flex;align-items:baseline;gap:10px;padding:14px;border-radius:16px;background:#16211B}
.code-big span{color:#A9B8AE;font-size:13px}.code-big b{font-size:34px;letter-spacing:6px;color:#F2C14E}
.summary{display:flex;flex-wrap:wrap;gap:6px}
.summary span{padding:6px 10px;border-radius:99px;background:#16211B;border:1px solid #FFFFFF1A;font-size:12px}
table.sc{width:100%;border-collapse:collapse;font-size:12px;text-align:center}
table.sc td,table.sc th{padding:5px 2px;border-top:1px solid #FFFFFF14}
table.sc th{color:#A9B8AE;font-weight:500;text-align:left}
.under{color:#6EC1FF;font-weight:700}.over{color:#FF8F6B}
.stand{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.stand div{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#16211B}
.stand div b{flex:1}.stand div em{font-style:normal;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:20px}

/* ---------- game ---------- */
#scr-game{position:fixed;inset:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
#viewport{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#0B1310}
#stage{position:relative;width:390px;height:844px;overflow:hidden;background:#2C4F27;transform-origin:center center;flex:none}
#world{position:absolute;left:0;top:0;width:390px;height:844px;transform-origin:0 0}
#world.anim{transition:transform .5s ease}
#holeImg{position:absolute;inset:0;width:390px;height:844px}
#hdLayer{position:absolute;left:0;top:0;width:390px;height:844px;overflow:hidden;pointer-events:none;z-index:0;isolation:isolate}
.hd-t{position:absolute;opacity:0;transition:opacity .35s ease;max-width:none}
.hd-t.on{opacity:1}
.hd-t.l1{z-index:0}
.hd-t:not(.l1){z-index:1}
#nearImg{position:absolute;opacity:0;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent),linear-gradient(transparent,#000 10%,#000 90%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent),linear-gradient(transparent,#000 10%,#000 90%,transparent);mask-composite:intersect}
#greenImg{position:absolute;opacity:0;transition:opacity .35s;pointer-events:none}
#overlay{position:absolute;inset:0;pointer-events:none;overflow:visible}
#aimPad{position:absolute;inset:0;touch-action:none;cursor:crosshair}
#hud{position:absolute;left:0;right:0;top:0;padding:14px 12px 40px;background:linear-gradient(#0B1310E6,#0B131000);display:flex;align-items:center;gap:8px;pointer-events:none}
.round{pointer-events:auto;width:44px;height:44px;flex:none;border-radius:50%;border:1px solid #FFFFFF26;background:#0B1310A6;display:flex;align-items:center;justify-content:center;flex-direction:column}
.round svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.wind svg{width:14px;height:14px;stroke:#6EC1FF;stroke-width:2.6}
.wind span{font-size:10px;font-weight:600}
.title{flex:1;min-width:0;text-align:center}
#holeTitle{font-size:24px;letter-spacing:.5px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#holeSub{font-size:12px;color:#D3DDD6;margin-top:3px}
#chips{position:absolute;top:66px;left:8px;right:8px;display:flex;gap:6px;justify-content:center;flex-wrap:wrap;pointer-events:none}
.chip{pointer-events:auto;padding:4px 10px;border-radius:99px;background:#0B1310B3;border:1px solid #FFFFFF1A;font-size:12px;white-space:nowrap}
.chip:empty{display:none}
#chipTurn.mine{background:#2FBF6A;color:#06140B;border-color:#2FBF6A;font-weight:700}
#chipTurn.wait{background:#0B1310D9;border-color:#F2C14E;color:#F2C14E}
#ticker{position:absolute;top:96px;left:12px;right:12px;text-align:center;font-size:11px;color:#D3DDD6;text-shadow:0 1px 2px #000;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#carryLabel{position:absolute;padding:4px 8px;border-radius:8px;background:#0B1310D9;font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none}
#toast{position:absolute;left:50%;top:118px;transform:translateX(-50%);padding:8px 14px;border-radius:99px;background:#0B1310E6;border:2px solid #F2C14E;display:flex;gap:8px;align-items:center;white-space:nowrap;pointer-events:none;max-width:370px}
#toast b{font-family:'Barlow Condensed',sans-serif;font-size:20px}
#toast span{font-size:12px;color:#D3DDD6;overflow:hidden;text-overflow:ellipsis}
#zoomCtl{position:absolute;left:10px;top:300px;display:flex;flex-direction:column;gap:8px}
#zoomCtl button{width:40px;height:40px;border-radius:50%;border:1px solid #FFFFFF26;background:#0B1310B3;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center}
#zoomCtl svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}

#meter{position:absolute;inset:0;pointer-events:none}
#meter .head{position:absolute;right:8px;top:176px;width:84px;display:flex;flex-direction:column;align-items:center;gap:4px}
#meterLabel{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#D3DDD6;white-space:nowrap}
#readout{min-width:72px;padding:2px 8px;border-radius:10px;background:#0B1310D9;text-align:center;font-size:26px;line-height:1.1;white-space:nowrap}
#track{position:absolute;right:22px;top:232px;width:34px;height:400px;border-radius:17px;background:#0B1310E0;border:2px solid #FFFFFF2E;box-shadow:0 10px 28px #00000099;overflow:hidden}
#track>div{position:absolute;left:0;right:0}
#over{top:0;background:repeating-linear-gradient(135deg,#E5484D55 0 6px,#E5484D22 6px 12px)}
#fill{left:3px!important;right:3px!important;border-radius:12px;background:linear-gradient(0deg,#2E9E5B 0%,#7CCB5A 45%,#F2C14E 78%,#FF7A3D 92%,#E5484D 100%);background-position:bottom;box-shadow:0 0 14px #F2C14E66}
#zRed{background:#E5484D}#zYel{background:#F2C14E}#zGrn{background:#2FBF6A;box-shadow:0 0 10px #2FBF6A}
#meter.window #zGrn{animation:pulse .45s infinite alternate}
@keyframes pulse{to{background:#7CF2A8;box-shadow:0 0 18px #7CF2A8}}
#impact{height:2px;background:#fff}
#lockLine{height:3px;background:#fff;box-shadow:0 0 8px #fff}
#ticks div{position:absolute;right:62px;font-size:10px;font-weight:600;color:#D3DDD6;text-shadow:0 1px 2px #000;white-space:nowrap}
#targetMark{position:absolute;right:60px;display:flex;align-items:center;gap:3px;filter:drop-shadow(0 1px 2px #000)}
#targetMark span{font-size:10px;font-weight:700;color:#F2C14E}
#impactLbl{position:absolute;right:62px;font-size:10px;font-weight:700;letter-spacing:.5px;text-shadow:0 1px 2px #000}
#marker{position:absolute;right:13px;width:52px;height:8px;border-radius:4px;background:#fff;box-shadow:0 0 12px #fff,0 0 0 2px #0B1310}
#hint{position:absolute;right:12px;bottom:136px;width:220px;text-align:right;font-size:13px;font-weight:700;color:#fff;text-shadow:0 1px 3px #000,0 0 8px #000;pointer-events:none}
#hint.now{color:#7CF2A8;font-size:17px}

#bar{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 22px;background:linear-gradient(#0B131000,#0B1310F0 24%);display:flex;align-items:center;gap:10px}
#bagBtn{width:66px;height:66px;flex:none;border-radius:50%;border:2px solid #F2C14E;background:radial-gradient(circle at 35% 30%,#2A3A31,#121B16);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;gap:2px;padding:0}
#clubBig{font-size:24px}
#clubSmall{font-size:10px;font-weight:700;letter-spacing:1px;color:#F2C14E}
#clubSmall:empty{display:none}
#bagBtn.wide #clubBig{font-size:13px;letter-spacing:.3px}
#shapeBtn{width:56px;height:56px;flex:none;border-radius:50%;border:1px solid #FFFFFF33;background:#121B16;display:flex;align-items:center;justify-content:center;padding:0}
#shapeTxt{font-size:10px;font-weight:800;letter-spacing:.5px}
#bagBtn:disabled,#shapeBtn:disabled{opacity:.5}
.info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#clubLine{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#infoLine{font-size:12px;line-height:15px;color:#C3CFC7;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.spacer{width:92px;height:60px;flex:none}
#actionBtn{position:absolute;right:14px;bottom:22px;width:92px;height:60px;border-radius:30px;border:0;background:#F2C14E;color:#1A1406;font-size:22px;letter-spacing:1px;box-shadow:0 6px 18px #00000080;touch-action:none;transition:background .15s,transform .1s;-webkit-user-select:none;user-select:none}
#actionBtn.hold{background:#fff}
#actionBtn.practice{background:#20302A;color:#F2F5F0;border:2px dashed #F2C14E}
#liveBtn{position:absolute;right:14px;bottom:90px;width:150px;height:38px;border-radius:19px;border:1px solid #FFFFFF33;background:#0B1310D9;color:#D3DDD6;font-size:15px;letter-spacing:.5px}
#liveBtn.go{background:#F2C14E;color:#1A1406;border-color:#F2C14E;box-shadow:0 4px 14px #00000080}
#liveBtn:disabled{opacity:.6}
#meter.practice #track{border-style:dashed;border-color:#F2C14E99}
#actionBtn.wait{background:#3A4A40;color:#C3CFC7}
#actionBtn.now{background:#2FBF6A;color:#06140B;transform:scale(1.06)}
#actionBtn.locked{background:#2A332E;color:#8A988F;font-size:16px}
#actionBtn.shake{animation:shake .25s}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

#scrim{position:absolute;inset:0;background:#050906A6}
#fan{position:absolute;inset:0;pointer-events:none}
#fan button{pointer-events:auto;position:absolute;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:0 6px 16px #00000066;background:radial-gradient(circle at 35% 30%,#2A3A31,#121B16);border:1px solid #FFFFFF33;line-height:1;padding:0}
#fan button.on{background:#F2C14E;color:#1A1406;border:2px solid #FFE3A0}
#fan button b{font-family:'Barlow Condensed',sans-serif;font-size:15px}
#fan button small{font-size:9px;opacity:.85}
#fan .lbl{position:absolute;font-family:'Barlow Condensed',sans-serif;font-size:18px;font-weight:700;letter-spacing:1px;color:#F2C14E}






#sheet .row{display:flex;gap:10px}
#sheet .row button{flex:1;height:50px;border-radius:14px;font-weight:700;font-size:15px}
.ghost{background:transparent;border:1px solid #FFFFFF33}

/* ---- swipe control ---- */
#swipe{position:absolute;inset:0;z-index:40;touch-action:none;-webkit-user-select:none;user-select:none}
#swBox{position:absolute;border-radius:18px;border:2px solid #FFFFFFB0;background:linear-gradient(#FFFFFF1F,#FFFFFF0D);-webkit-backdrop-filter:blur(4px) brightness(.85);backdrop-filter:blur(4px) brightness(.85);box-shadow:0 0 0 2000px #050B08C4, inset 0 0 24px #FFFFFF12;pointer-events:none;box-sizing:border-box}
#swGuide{position:absolute;left:50%;top:10px;bottom:10px;width:0;border-left:2px dashed #FFFFFF8C;transform:translateX(-1px)}
#swBall{position:absolute;left:50%;top:11px;width:22px;height:22px;margin-left:-11px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#DCE3DE 60%,#9AA6A0);box-shadow:0 3px 6px #0008, 0 0 0 6px #FFFFFF26}
#swDemo{position:absolute;left:50%;top:22px;width:0;height:0;display:none}
#swBox.demo #swDemo{display:block}
#swDemo i{position:absolute;left:-17px;top:-17px;width:34px;height:34px;border-radius:50%;background:#FFFFFF40;border:2px solid #FFFFFFB0;animation:swdemo 2.4s cubic-bezier(.45,0,.3,1) infinite}
#swDemo svg{position:absolute;left:14px;top:12px;width:22px;height:22px;fill:none;stroke:#F2C14E;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;animation:swarrow 2.4s infinite}
@keyframes swdemo{0%{transform:translateY(0);opacity:0}8%{opacity:1}50%{transform:translateY(var(--pull,200px))}62%{transform:translateY(var(--pull,200px))}80%{transform:translateY(-30px);opacity:1}92%,100%{transform:translateY(-30px);opacity:0}}
@keyframes swarrow{0%,55%{transform:rotate(0);opacity:1}60%,100%{transform:translateY(-8px) rotate(180deg);opacity:1}}
#swSvg{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}
#swHead{position:absolute;left:0;right:0;text-align:center;pointer-events:none}
#swLabel{font-size:18px;letter-spacing:1.5px;color:#D3DDD6}
#swRead{font-size:46px;line-height:1;color:#fff;margin-top:2px}
#swInfo{font:600 13px/18px Inter,sans-serif;color:#C3CFC7;margin-top:4px}
#swHint{position:absolute;left:18px;right:18px;text-align:left;font:500 13px/19px Inter,sans-serif;color:#D3DDD6;pointer-events:none;max-width:300px;margin:0 auto}
#swHint b{display:inline-block;width:18px;height:18px;border-radius:50%;background:#F2C14E;color:#1A1406;text-align:center;font:700 12px/18px Inter,sans-serif;margin-right:6px}
#swCancel{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);height:40px;padding:0 22px;border-radius:20px;border:1px solid #FFFFFF40;background:#0B1310;color:#D3DDD6;font:600 14px Inter,sans-serif}
#stage:has(#swipe:not([hidden])) #hint{visibility:hidden}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.duo .big-btn{padding:14px 16px;min-width:0}
.duo .big-btn span{font-size:23px}
.seg button small{display:block;font-size:11px;font-weight:500;opacity:.7;line-height:1.1}
#pgSet button{padding:4px 8px;flex:1 1 0}
#sheetBody .field{display:block;margin:0 0 12px}
#sheetBody .field>span{display:block;margin-bottom:6px;color:#9AA8A0;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}
#swGauge{position:absolute;width:12px;border-radius:6px;background:#FFFFFF1F;border:1px solid #FFFFFF40;pointer-events:none}
#swGFill{position:absolute;left:0;right:0;bottom:0;height:0;border-radius:6px;background:#F2C14E;transition:height .05s linear}
#swTop,#swTarget{position:absolute;left:-5px;right:-5px;height:0;border-top:2px solid #FFFFFF8C}
#swTarget{border-top:3px solid #F2C14E}
#swTop span,#swTarget span{position:absolute;left:calc(100% + 6px);top:-10px;white-space:nowrap;font:700 12px/18px Inter,sans-serif;color:#D3DDD6}
#swTarget span{color:#F2C14E}
#slopeLegend{position:absolute;left:50%;transform:translateX(-50%);top:102px;display:flex;gap:9px;padding:5px 10px;border-radius:12px;background:#0B1310CC;font:600 11px/14px Inter,sans-serif;color:#D3DDD6;white-space:nowrap;pointer-events:none;z-index:6}
#slopeLegend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:4px;vertical-align:-1px}
#slopeLegend .ln i{width:12px;height:0;border-top:2px solid #6FA07A;border-radius:0;vertical-align:3px}
/* relief (Rules of Golf) */
#relief{position:absolute;left:0;right:0;bottom:0;z-index:45;padding:0 10px 10px;pointer-events:none}
#relief .card{pointer-events:auto;background:#0F1814F2;border:1px solid #FFFFFF26;border-radius:20px;padding:16px 14px 12px;box-shadow:0 -8px 30px #0008}
#reliefTitle{font-size:26px;line-height:1;color:#F2C14E}
#reliefSub{font-size:13px;color:#C3CFC7;margin:6px 0 10px}
#reliefOpts{display:flex;flex-direction:column;gap:8px}
#reliefOpts button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 14px;border-radius:14px;border:1px solid #F2C14E80;background:#1A2720;color:#fff}
#reliefOpts button b{font-size:15px}
#reliefOpts button small{font-size:12px;color:#AFC0B5}
#reliefOpts button.ghost{border-color:#FFFFFF26;background:transparent}
#swGLbl{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);font:700 10px/12px Inter,sans-serif;letter-spacing:1px;color:#9AA8A0}
#swGBand{position:absolute;left:-3px;right:-3px;border-radius:3px;background:#2FBF6A59;border:1px solid #2FBF6A}
#swGFill{z-index:1;opacity:.9}
#holeIntro{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse 70% 30% at 50% 50%,#050B0899,#0000);cursor:pointer}
#holeIntro .hi-card{text-align:center;color:#fff;text-shadow:0 2px 12px #000a}
#hiTitle{font-size:64px;line-height:.95;letter-spacing:2px}
#hiName{font-size:26px;color:#F2C14E;letter-spacing:3px}
#hiInfo{font:600 15px Inter,sans-serif;margin-top:6px;color:#E1E9E4}
.hi-tap{display:inline-block;margin-top:16px;padding:10px 20px;border-radius:22px;background:#F2C14E;color:#1A1406;font:700 15px Inter,sans-serif;text-shadow:none;animation:hipulse 1.6s ease-in-out infinite}
@keyframes hipulse{50%{transform:scale(1.05)}}
#stage:has(#holeIntro:not([hidden])) #liveBtn,#stage:has(#holeIntro:not([hidden])) #hint{visibility:hidden}
#stage:has(#holeIntro:not([hidden])) :is(#bar,#actionBtn,#zoomCtl,#chips,#ticker,#hud,#chatBtn){opacity:0;pointer-events:none;transition:opacity .3s}

#sheet .row.grid2{flex-wrap:wrap}
#sheet .row.grid2 button{flex:1 1 calc(50% - 5px)}

/* login + handicap */
.auth .brand{margin-top:10vh}
.auth-card{margin-top:auto;display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:22px;background:#0B1310E6;border:1px solid #FFFFFF1A}
.auth-card form{display:flex;flex-direction:column;gap:12px}
.hcp-chip{padding:2px 8px;border-radius:99px;background:#F2C14E;color:#1A1406;font-size:12px;font-weight:700}
.hcp-chip:empty{display:none}
.hcp-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:18px;background:linear-gradient(135deg,#1E3A27,#16211B);border:1px solid #F2C14E55}
.hcp-card .big{font-family:'Barlow Condensed',sans-serif;font-size:46px;line-height:.9;color:#F2C14E;min-width:92px;flex:none;white-space:nowrap;text-align:center}
.hcp-card .big small{display:block;font-family:Inter,sans-serif;font-size:11px;color:#C3CFC7;font-weight:600;letter-spacing:1px}
.hcp-card .txt{font-size:13px;color:#C3CFC7;line-height:1.4}
.hcp-card .txt b{color:#F2F5F0;font-size:15px}
.hcp-dots{display:flex;gap:5px;margin-top:6px}
.hcp-dots i{width:16px;height:16px;border-radius:50%;border:2px solid #F2C14E}
.hcp-dots i.on{background:#F2C14E}
.cta.ghost{background:transparent;border:1px solid #FFFFFF33;color:#F2F5F0;height:50px;font-size:15px}
.item .diff{font-size:11px;color:#A9B8AE;display:block;text-align:right}
.item.used .pill{background:#2FBF6A;color:#06140B}
.stand em small{font-size:11px;font-weight:600;color:#A9B8AE;margin-left:2px}
#fan button small.avg{color:#6EC1FF;font-weight:700}
table.clubs{width:100%;border-collapse:collapse;font-size:14px}
table.clubs th,table.clubs td{padding:9px 6px;border-bottom:1px solid #FFFFFF14;text-align:right}
table.clubs th:first-child,table.clubs td:first-child{text-align:left}
table.clubs thead th{font-size:11px;color:#9AA8A0;font-weight:600;letter-spacing:.5px;text-transform:uppercase}
table.clubs td b{font-family:'Barlow Condensed',sans-serif;font-size:20px}
table.clubs td small{color:#9AA8A0;font-size:11px;margin-left:3px}
table.clubs .bar{display:inline-block;width:46px;height:5px;border-radius:3px;background:#FFFFFF1A;vertical-align:middle;margin-right:6px;overflow:hidden}
table.clubs .bar i{display:block;height:100%;background:#2FBF6A}
#fan button.on small.avg{color:#0B3F75}

/* ---------------- guided tour */
#tour{position:fixed;inset:0;z-index:200;pointer-events:none;font-family:Inter,sans-serif}
#tour[hidden]{display:none}
#tour .tour-block{position:absolute;inset:0;pointer-events:auto}
#tour .tour-spot{position:absolute;border-radius:18px;box-shadow:0 0 0 200vmax #030806C2,0 0 0 3px #F2C14E,0 0 26px 6px #F2C14E66;transition:left .45s cubic-bezier(.3,.8,.3,1),top .45s cubic-bezier(.3,.8,.3,1),width .45s cubic-bezier(.3,.8,.3,1),height .45s cubic-bezier(.3,.8,.3,1),box-shadow .3s,opacity .3s;pointer-events:none;animation:tourIn .35s ease-out}
#tour.light .tour-spot{box-shadow:0 0 0 200vmax #03080633}
#tour.moving .tour-spot{box-shadow:0 0 0 200vmax #030806F2}
#tour.closing{opacity:0;transition:opacity .2s}
#tour .tour-card{position:absolute;pointer-events:auto;box-sizing:border-box;padding:16px 16px 12px;border-radius:22px;background:linear-gradient(160deg,#1B3324,#0F1A14);border:1px solid #F2C14E66;box-shadow:0 18px 50px #000A;color:#F2F5F0;transition:top .45s cubic-bezier(.3,.8,.3,1),opacity .25s,transform .25s}
#tour .tour-card.swap{opacity:0;transform:translateY(8px) scale(.98)}
#tour .tour-card.faded{opacity:.12;pointer-events:none}
#tour.moving .tour-card{opacity:0}
#tour .tour-step{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#F2C14E}
#tour .tour-title{margin:2px 0 6px;font-size:28px;line-height:1;letter-spacing:.5px}
#tour .tour-text{margin:0;font-size:15px;line-height:1.45;color:#D3DDD6}
#tour .tour-wait{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:13px;color:#C3CFC7}
#tour .tour-wait:empty{display:none}
#tour .tour-wait i{width:14px;height:14px;border-radius:50%;border:2px solid #2FBF6A;transition:background .3s}
#tour .tour-wait i.on{background:#2FBF6A}
#tour .tour-wait span{margin-left:4px}
#tour .tour-btns{display:flex;align-items:center;gap:8px;margin-top:14px}
#tour .tour-btns span{flex:1}
#tour .tour-btns button{height:42px;padding:0 14px;border-radius:12px;border:1px solid #FFFFFF26;background:#FFFFFF0D;color:#F2F5F0;font-weight:600;font-size:14px}
#tour .tour-btns .tour-skip{border:0;background:none;color:#9AA8A0;padding:0 4px}
#tour .tour-btns .tour-next{background:#F2C14E;border-color:#F2C14E;color:#1A1406;font-weight:700}
@keyframes tourIn{from{opacity:0}to{opacity:1}}

/* the little top-down scenes at the top of a card */
#tour .tour-art{display:none;height:76px;margin:-4px 0 8px;overflow:hidden;border-radius:14px;box-shadow:inset 0 0 0 1px #FFFFFF1A}
#tour .tour-art.on{display:block}
#tour .tour-art svg{display:block;width:100%;height:100%}

/* the finger */
#tour .tour-hand{position:absolute;width:0;height:0;display:none}
#tour .tour-hand.on{display:block}
#tour .tour-hand i{position:absolute;left:-18px;top:-18px;width:36px;height:36px;border-radius:50%;background:#FFFFFF4D;border:2px solid #fff;box-shadow:0 0 0 6px #FFFFFF26,0 4px 10px #0007}
#tour .tour-hand i.b{display:none}
#tour .tour-hand.tap i{animation:tourTap 1.4s ease-in-out infinite}
@keyframes tourTap{0%,100%{transform:scale(1);opacity:.9}45%{transform:scale(.72);opacity:1}55%{transform:scale(.72)}}
#tour .tour-hand.drag i{animation:tourDrag 2.4s ease-in-out infinite}
@keyframes tourDrag{0%,100%{transform:translate(0,0)}40%{transform:translate(-46px,-26px)}70%{transform:translate(30px,-12px)}}
#tour .tour-hand.swing i{animation:tourSwing 2.4s cubic-bezier(.45,0,.3,1) infinite}
@keyframes tourSwing{0%{transform:translateY(-60px) scale(1);opacity:0}10%{opacity:1;transform:translateY(-60px) scale(.85)}45%{transform:translateY(40px) scale(.85)}52%{transform:translateY(40px) scale(.85)}66%{transform:translateY(-150px) scale(.85);opacity:1}80%,100%{transform:translateY(-170px) scale(1);opacity:0}}
#tour .tour-hand.pinch i{animation:tourPinchA 2.2s ease-in-out infinite}
#tour .tour-hand.pinch i.b{display:block;animation:tourPinchB 2.2s ease-in-out infinite}
@keyframes tourPinchA{0%,100%{transform:translate(-14px,14px)}50%{transform:translate(-62px,62px)}}
@keyframes tourPinchB{0%,100%{transform:translate(14px,-14px)}50%{transform:translate(62px,-62px)}}

.tour-link{background:none;border:0;color:#C3CFC7;font-size:14px;text-decoration:underline;text-underline-offset:3px;padding:6px;align-self:center}

/* friends */
.big-btn{position:relative}
.badge{position:absolute;top:10px;right:12px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#E5484D;color:#fff;font:700 12px/20px Inter,sans-serif;font-style:normal;text-align:center}
.add-friend{display:flex;gap:8px}
.add-friend input{flex:1;min-width:0;height:50px;border-radius:14px;border:1px solid #FFFFFF26;background:#16211B;color:#F2F5F0;padding:0 14px;font-size:16px}
.add-friend button{height:50px;padding:0 18px;border-radius:14px;border:0;font-weight:700;font-size:15px}
.err.ok{background:#2FBF6A22;border-color:#2FBF6A}
.item .acts,.invite-card .acts{display:flex;gap:6px;flex:none}
.item .acts button,.invite-card .acts button{height:36px;padding:0 12px;border-radius:10px;border:1px solid #FFFFFF26;background:#FFFFFF0D;color:#F2F5F0;font-weight:600;font-size:13px}
.item .acts button.gold,.invite-card .acts button.gold{background:#F2C14E;border-color:#F2C14E;color:#1A1406}
.item .acts button:disabled{opacity:.5}
.dot.on{box-shadow:0 0 0 3px #2FBF6A66}
.invite-card{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,#2B4A1F,#16211B);border:1px solid #F2C14E88;margin-bottom:10px;animation:noticeIn .35s ease-out}
.invite-card .grow small{display:block;color:#C3CFC7;font-size:12px}
#notice{position:fixed;left:12px;right:12px;top:calc(10px + env(safe-area-inset-top));z-index:150;max-width:460px;margin:0 auto;animation:noticeIn .35s ease-out}
@keyframes noticeIn{from{transform:translateY(-14px);opacity:0}to{transform:none;opacity:1}}
.sec-form{display:flex;flex-direction:column;gap:10px}
.cta.danger{color:#FF8A8A;border-color:#E5484D66}

/* ---------- aerial course background behind every menu page ---------- */
#bg{position:fixed;inset:0;z-index:0;display:flex;justify-content:center;overflow:hidden;background:#0B1310;pointer-events:none}
#bg i{flex:none;height:100%;background:center/cover no-repeat;filter:saturate(1.08)}
#bg i.one{width:100%}
#bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0B131040 0%,#0B1310B0 45%,#0B1310F0 80%);transition:background .5s}
body.dim #bg::after{background:linear-gradient(180deg,#0B1310B8 0%,#0B1310D9 35%,#0B1310EE 100%)}
body.dim #bg i{filter:saturate(1.08) blur(2px)}
.page{z-index:1}
#scr-game{z-index:2}
.page:not(.home) .field input,.page:not(.home) .seg button:not(.on),.page:not(.home) .item,.page:not(.home) .cards button:not(.on){background-color:#16211BE6}

/* dropdown */
.select{position:relative;display:block}
.select select{appearance:none;-webkit-appearance:none;width:100%;height:52px;border-radius:14px;border:1px solid #FFFFFF26;background:#16211BE6;color:#F2F5F0;padding:0 44px 0 14px;font:600 16px Inter,sans-serif;cursor:pointer}
.select::after{content:"";position:absolute;right:18px;top:50%;width:9px;height:9px;border-right:2px solid #F2C14E;border-bottom:2px solid #F2C14E;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.select select:focus{outline:2px solid #F2C14E;outline-offset:1px}
.lbl-row{display:flex;align-items:center;justify-content:space-between}
.link-btn{background:none;border:0;color:#F2C14E;font-weight:700;font-size:13px;padding:4px 0}

/* hole overview */
.overview .ov-head,.side-panel .ov-head,#sheetBody .ov-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;margin-bottom:10px}
.ov-head b{font-family:'Barlow Condensed',sans-serif;font-size:26px;letter-spacing:.5px}
.ov-head small{color:#A9B8AE;font-size:12px}
.ov-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ov-hole{position:relative;border-radius:12px;overflow:hidden;background:#16211B;border:2px solid transparent;aspect-ratio:240/400}
.ov-hole img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.ov-hole::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0B131000 45%,#0B1310E6)}
.ov-hole .no{position:absolute;left:6px;top:6px;z-index:1;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:#0B1310D9;font:700 12px/22px Inter,sans-serif;text-align:center}
.ov-hole .meta{position:absolute;left:7px;right:7px;bottom:6px;z-index:1;font-size:11px;line-height:1.25;color:#D3DDD6}
.ov-hole .meta b{display:block;font-size:12px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-hole .sc{position:absolute;right:6px;top:6px;z-index:1;min-width:22px;height:22px;border-radius:11px;font:800 12px/22px Inter,sans-serif;text-align:center;color:#06140B;background:#E8F4EC}
.ov-hole .sc.u{background:#2FBF6A}.ov-hole .sc.o{background:#F2C14E}.ov-hole .sc.oo{background:#FF7A7A}
.ov-hole.cur{border-color:#F2C14E;box-shadow:0 0 0 3px #F2C14E44}
.ov-hole.done{opacity:.78}
.overview-col{display:none}

/* ---------- game side panels (wide screens) ---------- */
.side-panel{display:none}
#courseBtn{margin-left:-2px}
#courseBtn svg{stroke-width:2}

/* ---------- desktop ---------- */
@media (min-width: 960px){
  body.dim #bg::after{background:linear-gradient(90deg,#0B1310CC,#0B1310B3 50%,#0B1310CC)}
  .page:not(.home) .page-in{max-width:560px;margin:32px auto;padding:28px 28px 32px;border-radius:28px;background:#0B1310D0;border:1px solid #FFFFFF14;box-shadow:0 30px 80px #0008;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  .page-in.split{max-width:1180px !important;display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:36px;align-items:start}
  .page-in.split .main{display:flex;flex-direction:column;gap:16px;min-width:0}
  .overview-col{display:block;position:sticky;top:28px;max-height:calc(100vh - 56px);overflow:auto;padding:4px}
  .overview-col .ov-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
  .home .page-in{max-width:1180px;display:grid;grid-template-columns:minmax(0,1fr) 440px;grid-template-rows:auto 1fr auto;column-gap:80px;padding:32px 48px}
  .home .me-chip{grid-column:2;justify-self:end}
  .home .brand{grid-column:1;grid-row:2;align-self:center;margin:0}
  .home .brand h1{font-size:clamp(80px,7vw,130px)}
  .home .brand p{font-size:20px;max-width:520px}
  .home .home-actions,.home .auth-card{grid-column:2;grid-row:2;align-self:center;margin:0}
  .home .foot{grid-column:1 / -1}
  .auth .page-in{grid-template-rows:1fr auto}
  .auth .brand,.auth .auth-card{grid-row:1}
}
/* wide screens: the course in a portrait column in the middle, standings and holes on the sides */
@media (min-aspect-ratio: 5/4) and (min-width: 900px){
  #scr-game #viewport{left:calc(50% - min(50vw, 30.5vh));right:auto;width:min(100vw, 61vh);box-shadow:0 0 0 1px #FFFFFF14,0 0 60px #000A}
  #scr-game{background:#0B1310}
  .side-panel{display:block;position:fixed;top:0;bottom:0;width:calc(50vw - 30.5vh);overflow:auto;padding:28px clamp(16px,2.5vw,40px);box-sizing:border-box}
  .side-panel.left{left:0}.side-panel.right{right:0}
  .side-panel:empty{display:none}
  .side-panel h3{margin:0 0 12px;font:700 26px/1 'Barlow Condensed',sans-serif;letter-spacing:1px}
  .side-panel .ov-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
  .side-panel .stand{margin-bottom:16px}
  #scr-game:has(.side-panel.right:not(:empty)) #courseBtn{display:none}
}

/* ---------- create round (panel design) ---------- */
.create .page-in.cr-panel{gap:0}
.cr-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:20px}
.cr-head .back{margin-top:6px;flex:none}
.cr-head h2{margin:0;font:800 30px/1.1 Inter,sans-serif;letter-spacing:-.3px}
.cr-head p{margin:4px 0 0;color:#C3CFC7;font-size:15px}
.cr-body{display:flex;flex-direction:column;gap:18px}
.cr-form{display:flex;flex-direction:column;gap:12px;min-width:0}
.cr-lbl{font-size:15px;font-weight:700;color:#E7EEE9;margin-top:4px}
.cr-input{height:46px;border-radius:12px;border:1px solid #FFFFFF26;background:#16211BE6;color:#F2F5F0;padding:0 14px;font-size:16px}
.cr-input::placeholder{color:#8E9C94}
.cr-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cr-row.top{align-items:flex-start}
.cr-row.top .cr-k{padding-top:11px}
.cr-k{width:86px;flex:none;font-size:15px;font-weight:700;color:#E7EEE9}
.cr-k.sm{width:auto;font-size:13px;font-weight:600;color:#C3CFC7}
.cr-row .select{flex:1;min-width:160px}
.cr-row .select select{height:46px;font-size:15px}
.vsep{width:1px;height:28px;background:#FFFFFF22}
.stepper.box{gap:0;border:1px solid #FFFFFF26;border-radius:12px;background:#16211BE6;overflow:hidden}
.stepper.box button{width:42px;height:42px;border:0;border-radius:0;background:none;font-size:20px}
.stepper.box button:disabled{opacity:.3}
.stepper.box b{min-width:44px;font-size:18px;border-left:1px solid #FFFFFF1A;border-right:1px solid #FFFFFF1A;line-height:42px}
.chips{display:flex;flex-wrap:wrap;gap:8px;flex:1;min-width:0}
.chips button{min-height:40px;padding:0 14px;border-radius:10px;border:1px solid #FFFFFF22;background:#16211BE6;font-size:14px;font-weight:600}
.cr-hr{border:0;border-top:1px solid #FFFFFF1F;margin:8px 0 4px}
.cr-desc{margin:-2px 0 0;color:#A9B8AE;font-size:14px}
.link-btn.more{align-self:flex-start;text-decoration:underline;text-underline-offset:3px;font-size:15px;padding:2px 0}
.link-btn.more::after{content:"›";display:inline-block;margin-left:6px;transition:transform .2s}
.link-btn.more.open::after{transform:rotate(90deg)}
/* selected = green with a yellow tick, like the design */
.create .chk button{position:relative}
.create .chk button.on{background:#3F6B35;border-color:#7DB55C;color:#F2F5F0}
.create .chk button.on::after{content:"";position:absolute;right:12px;top:50%;width:6px;height:12px;border:solid #F2C14E;border-width:0 2.5px 2.5px 0;transform:translateY(-65%) rotate(45deg)}
.create .seg.chk button.on,.create .chips.chk button.on{padding-right:34px}
.create .cards.chk button.on::after{top:20px}
.create .cards.chk button.on{box-shadow:inset 0 0 0 1px #7DB55C}
.create .cards button{min-height:68px;padding:12px 40px 12px 16px}
.create .cards button b{font-size:17px}
/* tuck the rules away */
.tune{border:1px solid #FFFFFF26;border-radius:14px;background:#16211BB3}
.tune summary{display:flex;align-items:center;gap:14px;padding:14px 18px;cursor:pointer;list-style:none}
.tune summary::-webkit-details-marker{display:none}
.tune summary svg{width:24px;height:24px;flex:none;fill:none;stroke:#E7EEE9;stroke-width:1.8;stroke-linecap:round}
.tune summary div{flex:1;min-width:0}
.tune summary b{display:block;font-size:16px}
.tune summary small{display:block;color:#A9B8AE;font-size:13px;margin-top:2px}
.tune .chev{width:10px;height:10px;border-right:2px solid #E7EEE9;border-bottom:2px solid #E7EEE9;transform:rotate(45deg);margin:-4px 4px 0;transition:transform .2s}
.tune[open] .chev{transform:rotate(-135deg);margin-top:4px}
.tune-in{display:flex;flex-direction:column;gap:14px;padding:4px 18px 18px}
/* course card */
.cr-course{border:1px solid #FFFFFF26;border-radius:18px;overflow:hidden;background:#16211BE6;display:flex}
.cr-pic{position:relative;overflow:hidden;cursor:pointer;background:#24402A}
.cr-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 22%;transform:scale(1.35);opacity:0;transition:opacity .4s,transform .8s}
.cr-pic img.in{opacity:1;transform:scale(1.25)}
.cr-info{padding:16px 18px;display:flex;flex-direction:column;gap:2px;min-width:0}
.cr-info h3{margin:0;font:800 24px/1.15 Inter,sans-serif}
.cr-place{color:#C3CFC7;font-size:15px}
.cr-stats{margin:10px 0 14px;font-size:15px;color:#E7EEE9}
.cr-see{height:42px;border-radius:12px;border:1px solid #E7EEE9AA;background:none;color:#F2F5F0;font-weight:600;font-size:15px}
.cr-see:hover{background:#FFFFFF0F}
/* footer */
.cr-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;position:sticky;bottom:0;z-index:3;margin:18px -16px calc(-28px - env(safe-area-inset-bottom));padding:14px 16px calc(14px + env(safe-area-inset-bottom));background:#0E1812F2;border-top:1px solid #FFFFFF1A;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.cr-foot small{display:block;color:#C3CFC7;font-size:13px;font-weight:600}
.cr-foot b{display:block;font-size:16px;margin-top:2px}
.cr-foot .cta{width:auto;min-width:150px;height:52px;padding:0 22px;font-size:17px;display:flex;align-items:center;justify-content:center;gap:10px}
.cr-foot .cta span{font-size:20px}
/* phones: course card as a compact strip on top */
@media (max-width: 959px){
  .cr-body{flex-direction:column-reverse;gap:16px}
  .cr-body{display:flex}
  .cr-course{flex-direction:row;min-height:118px;order:0}
  .cr-pic{width:104px;flex:none}
  .cr-info{padding:12px 14px;flex:1}
  .cr-info h3{font-size:19px}.cr-place{font-size:13px}
  .cr-stats{margin:4px 0 8px;font-size:13px}
  .cr-see{height:34px;font-size:13px;align-self:flex-start;padding:0 14px}
  .cr-k{width:70px}
  .cr-row .vsep{display:none}
  .cr-foot b{font-size:14px}
  .cr-foot .cta{min-width:0}
}
@media (min-width: 960px){
  .create .page-in.cr-panel{max-width:1040px !important;padding:28px 40px 0 !important}
  .cr-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start}
  .cr-course{flex-direction:column;position:sticky;top:24px}
  .cr-pic{height:420px}
  .cr-head{margin-left:-4px}
  .cr-foot{margin:28px -40px 0;padding:18px 40px;border-radius:0 0 28px 28px;position:sticky;bottom:0}
}

/* ---------- sheet / modal: a window with its own scroll and a close cross ---------- */
#sheet{position:fixed;inset:0;z-index:60;background:#050906C7;display:flex;align-items:flex-end;justify-content:center;animation:shFade .2s ease-out}
#sheet .card{width:100%;max-width:560px;max-height:86vh;max-height:86dvh;display:flex;flex-direction:column;overflow:hidden;border-radius:24px 24px 0 0;background:linear-gradient(180deg,#14201A,#0F1814);border:1px solid #FFFFFF1F;border-bottom:0;box-shadow:0 -20px 60px #0009;animation:shUp .28s cubic-bezier(.2,.8,.3,1)}
.sheet-head{display:flex;align-items:center;gap:12px;padding:18px 16px 14px 20px;border-bottom:1px solid #FFFFFF14;flex:none}
#sheetTitle{flex:1;min-width:0;font-size:30px;line-height:1;letter-spacing:.5px}
.sheet-x{width:40px;height:40px;flex:none;border-radius:50%;border:1px solid #FFFFFF26;background:#FFFFFF0D;display:flex;align-items:center;justify-content:center;color:#E7EEE9;transition:background .15s}
.sheet-x:hover{background:#FFFFFF1F}
.sheet-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
#sheetBody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px 20px;font-size:13px;color:#C3CFC7;scrollbar-width:thin;scrollbar-color:#F2C14E66 transparent}
#sheetBody::-webkit-scrollbar{width:10px}
#sheetBody::-webkit-scrollbar-track{background:transparent;margin:6px}
#sheetBody::-webkit-scrollbar-thumb{background:#F2C14E55;border-radius:10px;border:3px solid transparent;background-clip:padding-box}
#sheetBody::-webkit-scrollbar-thumb:hover{background:#F2C14EAA;background-clip:padding-box}
#sheet .row{flex:none;padding:14px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #FFFFFF14;background:#0F1814}
#sheet .row:empty,#sheet .row:not(:has(button:not(#shClose))){display:none}
#shClose{display:none}
@keyframes shFade{from{opacity:0}to{opacity:1}}
@keyframes shUp{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
@media (min-width: 700px){
  #sheet{align-items:center;padding:24px}
  #sheet .card{border-radius:24px;border-bottom:1px solid #FFFFFF1F;max-height:min(86vh,900px);max-width:760px}
  #sheet .row{padding-bottom:16px}
}
#sheetBody .ov-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}

.cr-row .br{display:none}
@media (max-width: 959px){
  /* phones: both course and holes are dropdowns; the course preview sits right under them */
  .cr-row.top{align-items:center}
  .cr-row.top .cr-k{padding-top:0}
  .cr-row .br{display:block;flex-basis:100%;height:0}
  .cr-k.sm{width:70px;font-size:15px;font-weight:700;color:#E7EEE9}
  .cr-body{flex-direction:column}
  .cr-form .cr-course{margin:2px 0 4px}
  .cr-foot .cta{white-space:nowrap;padding:0 18px;font-size:16px}
  .cr-foot b{font-size:14px;line-height:1.3}
}

/* profile pictures */
img.av{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 2px #0B1310,0 0 0 3.5px var(--c,#F2C14E);cursor:pointer;background:#16211B}
img.av.sm{width:22px;height:22px}
img.av.lg{width:56px;height:56px;border-radius:14px;box-shadow:none;cursor:default}
img.av.on{box-shadow:0 0 0 2px #0B1310,0 0 0 3.5px var(--c),0 0 0 6px #2FBF6A66}
.dot.pic{width:22px;height:22px;background-size:cover;background-position:center}
.pic-row{display:flex;align-items:center;gap:16px}
.pic{width:84px;height:84px;flex:none;border-radius:50%;border:2px solid #F2C14E;padding:0;overflow:hidden;background:#16211B;cursor:pointer}
.pic img{width:100%;height:100%;object-fit:cover;display:block}
.pic span{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font:800 34px Inter,sans-serif;color:#0B1310}
.pic-btns{display:flex;gap:8px}
.ghost-sm{height:38px;padding:0 14px;border-radius:10px;border:1px solid #FFFFFF33;background:#FFFFFF0D;color:#F2F5F0;font-weight:600;font-size:14px}
.pic-msg{margin:8px 0 0;font-size:13px;color:#A9B8AE;line-height:1.4}
.pic-msg.bad{color:#FF8A8A}
.av-big{display:flex;justify-content:center;margin:6px 0 12px}
.av-big img{width:220px;height:220px;border-radius:20px;object-fit:cover}
.admin-link{display:flex;align-items:center;justify-content:center;text-decoration:none;margin-bottom:8px}

.or{display:flex;align-items:center;gap:10px;color:#9AA8A0;font-size:13px}
.or::before,.or::after{content:"";flex:1;height:1px;background:#FFFFFF26}
.cta.google{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px;background:#fff;color:#1F1F1F;text-decoration:none;border:0;height:54px}
.cta.google svg{width:22px;height:22px}

/* ---------- front page (logged in) ---------- */
body.on-home #bg::after{background:linear-gradient(180deg,#0B131026 0%,#0B131066 30%,#0B1310C8 75%,#0B1310EE 100%)}
#scr-home .page-in{gap:0}
.hm-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hm-logo{font-size:30px;line-height:1;letter-spacing:.5px;color:#fff;text-shadow:0 2px 12px #0008}
#scr-home .me-chip{align-self:auto;background:#0B1310B3;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
#scr-home .hcp-chip{background:#D9E0DB;color:#16211B}
#scr-home .brand{margin:8vh 0 6px}
#scr-home .brand h1,#scr-home .brand p{display:none}
#scr-home .kicker{font-size:13px;letter-spacing:3px;text-transform:uppercase;text-shadow:0 1px 8px #000A}
.hm-card{display:flex;flex-direction:column;gap:14px;margin-bottom:22px}
.hm-card h2{font-size:clamp(40px,11.5vw,54px);line-height:1;margin:0;letter-spacing:.3px;text-shadow:0 2px 18px #000A}
.hm-sub{margin:-8px 0 10px;color:#E7EEE9;font-size:17px;text-shadow:0 1px 8px #000A}
#homeInvites:empty{display:none}
.hm-resume{display:flex;flex-direction:column;gap:14px;padding:14px;border-radius:22px;background:#0E1812D9;border:1px solid #FFFFFF24;box-shadow:0 18px 40px #0007;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.rs-card{display:flex;align-items:center;gap:16px;padding:0;border:0;background:none;text-align:left;width:100%}
.rs-pic{width:100px;height:100px;flex:none;border-radius:14px;background:#2B4A1F center/cover no-repeat;box-shadow:0 0 0 1px #FFFFFF1A}
.rs-info{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.rs-live{display:flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#E7EEE9}
.rs-live i{width:10px;height:10px;border-radius:50%;background:#2FBF6A;box-shadow:0 0 0 3px #2FBF6A33;animation:rsPulse 2s ease-in-out infinite}
@keyframes rsPulse{50%{box-shadow:0 0 0 6px #2FBF6A10}}
#rsName{font-size:26px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#rsWhere{color:#C3CFC7;font-size:14px}
.rs-prog{display:flex;align-items:center;gap:10px;margin-top:6px}
.rs-bar{flex:1;height:8px;border-radius:4px;background:#FFFFFF26;overflow:hidden}
.rs-bar i{display:block;height:100%;width:0;border-radius:4px;background:#4FD18B;transition:width .6s ease-out}
.rs-prog em{font-style:normal;font-weight:700;font-size:13px;min-width:34px;text-align:right}
.hm-gold{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:56px;border:0;border-radius:14px;background:#F2C14E;color:#1A1406;font:700 26px/1 'Barlow Condensed',sans-serif;letter-spacing:.3px;box-shadow:0 8px 22px #F2C14E33;transition:transform .12s,filter .15s}
.hm-gold svg{position:absolute;right:20px;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hm-gold:hover{filter:brightness(1.05)}.hm-gold:active{transform:scale(.98)}
.hm-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hm-out{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;padding:0 10px;border-radius:14px;border:1.5px solid #FFFFFFA6;background:#0B131080;color:#F2F5F0;font-weight:600;font-size:15px;min-width:0;transition:background .15s}
.hm-out span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-out:hover{background:#FFFFFF14}
.hm-out svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.hm-out svg.fill{fill:currentColor;stroke:none}
.hm-card.no-resume #hmCreate{background:#F2C14E;border-color:#F2C14E;color:#1A1406}
.hm-sep{display:flex;align-items:center;gap:14px;margin:6px 0 0;color:#C3CFC7;font-size:12px;font-weight:600;letter-spacing:3px;text-transform:uppercase}
.hm-sep::before,.hm-sep::after{content:"";flex:1;height:1px;background:#FFFFFF33}
.hm-train{gap:12px}
.hm-tr{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:16px 10px;border-radius:18px;border:1px solid #FFFFFF2E;background:#0B131099;text-align:center;transition:background .15s}
.hm-tr:hover{background:#16211BE6}
.hm-tr svg{width:30px;height:30px;flex:none;fill:none;stroke:#F2F5F0;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hm-tr b{display:block;font-size:18px;line-height:1.2}
.hm-tr small{display:block;color:#C3CFC7;font-size:14px;margin-top:2px}
.hm-link{position:relative;display:flex;align-items:center;gap:10px;align-self:center;margin-top:4px;padding:6px 10px;border:0;background:none;color:#F2F5F0;font-size:17px}
.hm-link u{text-underline-offset:4px}
.hm-link svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.hm-link .badge{top:-4px;right:-16px}
#scr-home .tour-link{color:#F2F5F0;font-size:16px;margin-top:-4px}
#scr-home .foot{margin-top:auto;font-size:12px;color:#FFFFFFB3}
@media (min-width: 960px){
  body.on-home #bg::after{background:linear-gradient(90deg,#0B1310B0 0%,#0B131066 42%,#0B131050 100%)}
  #scr-home .page-in{max-width:1240px;grid-template-columns:minmax(0,1fr) 500px;grid-template-rows:auto 1fr auto;column-gap:64px;padding:36px 56px 26px}
  .hm-top{grid-column:1 / -1}
  .hm-logo{font-size:40px}
  #scr-home .brand{grid-column:1;grid-row:2;align-self:center;margin:0 0 40px}
  #scr-home .brand h1{display:block;font-size:clamp(96px,9.5vw,156px);line-height:.86;margin:16px 0 18px;letter-spacing:1px;text-shadow:0 6px 40px #0009}
  #scr-home .brand p{display:block;font-size:24px;color:#F2F5F0;text-shadow:0 2px 12px #000A}
  #scr-home .kicker{font-size:18px;letter-spacing:4.5px}
  .hm-card{grid-column:2;grid-row:2;align-self:center;margin:24px 0;padding:30px 26px 22px;border-radius:28px;background:#0E1812E0;border:1px solid #FFFFFF24;box-shadow:0 30px 80px #0009;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
  .hm-card h2{font-size:54px;margin-bottom:6px;text-shadow:none}
  .hm-sub{display:none}
  .hm-resume{padding:0;border:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .rs-card{padding:16px;border-radius:18px;border:1px solid #FFFFFF26;background:#FFFFFF08;transition:background .15s}
  .rs-card:hover{background:#FFFFFF10}
  .rs-pic{width:132px;height:118px}
  #rsName{font-size:30px}
  #rsWhere{font-size:16px}
  .hm-gold{height:58px;font-size:28px}
  .hm-out{height:52px;font-size:16px}
  .hm-tr{flex-direction:row;justify-content:flex-start;gap:14px;padding:14px 16px;text-align:left}
  .hm-tr b{font-size:19px}
  #scr-home .foot{grid-column:1 / -1;align-self:end}
}

/* ---------- desktop game: hole on its side, top bar, bottom bar, sidebar (body.desk is set by app.js) ---------- */
#dk,.dk-val,.dk-chev{display:none}
body.desk #dk{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(330px,25vw,400px);grid-template-rows:76px minmax(0,1fr);grid-template-areas:"top top" "map side";background:#0B1310;z-index:1}
body.desk #dk.noside{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "map"}
body.desk #dk.noside .dk-side{display:none}
body.desk .side-panel,body.desk #hud,body.desk #bar,body.desk #courseBtn,body.desk #meter,body.desk #chipScore{display:none!important}
.dk-top{grid-area:top;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:0 24px;background:#0E1612;border-bottom:1px solid #FFFFFF17;position:relative;z-index:3}
.dk-l{display:flex;align-items:center;min-width:0}
.dk-sep{width:1px;height:34px;background:#FFFFFF2E;margin:0 22px 0 18px}
.dk-logo{font-size:36px;letter-spacing:.5px;line-height:1;color:#fff}
body.desk #menuBtn{width:44px;height:44px;border:0;background:none;border-radius:10px}
body.desk #menuBtn:hover{background:#FFFFFF12}
body.desk #menuBtn svg{width:26px;height:26px;stroke-width:2.2}
.dk-t .title{text-align:center}
body.desk #holeTitle{font-size:32px;letter-spacing:.6px}
body.desk #holeSub{font-size:16px;margin-top:4px;color:#C3CFC7}
.dk-me{justify-self:end;display:flex;align-items:center;gap:12px;font-size:19px;font-weight:600}
.dk-me .av,.dk-me .dot{width:34px;height:34px}
.dk-me .hcp-chip{background:#1E2A23;color:#E7EEE9;border:1px solid #FFFFFF26;font-size:14px;padding:4px 12px}
.dk-mapwrap{grid-area:map;display:flex;flex-direction:column;min-width:0;min-height:0}
.dk-map{position:relative;flex:1;min-height:0;overflow:hidden;background:#0B1310}
body.desk #scr-game #viewport{position:absolute;inset:0;left:0;width:auto;box-shadow:none}
.dk-ov{position:absolute;inset:0;pointer-events:none;z-index:2}
.dk-ov>*{position:absolute}
.dk-tl{left:20px;top:20px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.dk-tr{right:20px;top:20px}
.dk-tc{left:50%;top:22px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;width:min(460px,40%)}
.dk-bl{left:20px;bottom:24px}
.dk-bc{left:50%;bottom:16px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;width:min(640px,70%);text-align:center}
body.desk #chips{position:static;display:flex;gap:10px;justify-content:flex-start;flex-wrap:nowrap}
body.desk .chip{padding:9px 18px;font-size:18px;font-weight:600;background:#0B1310D9;border-color:#FFFFFF24}
body.desk #chipTurn.mine{font-family:'Barlow Condensed',sans-serif;font-size:21px;font-weight:700;letter-spacing:.5px;padding:7px 20px}
body.desk #chipTurn:empty{display:none}
.dk-compass{pointer-events:auto;width:58px;height:58px;border-radius:50%;background:#0B1310D9;border:1px solid #FFFFFF24;display:flex;align-items:center;justify-content:center}
.dk-compass svg{width:46px;height:46px;transition:transform .5s ease}
.dk-compass text{fill:#fff;font:700 10px Inter,sans-serif}
.dk-compass path{fill:#fff}
body.desk .wind{position:static;width:auto;height:46px;flex-direction:row;gap:10px;padding:0 18px;border-radius:23px;background:#0B1310D9}
body.desk .wind svg{width:22px;height:22px}
body.desk .wind span{font-size:18px;font-weight:700}
body.desk #zoomCtl{position:static;gap:10px}
body.desk #zoomCtl button{width:50px;height:50px;border-radius:12px;background:#0B1310D9;font-size:26px}
body.desk #zoomCtl svg{width:22px;height:22px}
body.desk #hint{position:static;width:auto;text-align:center;font-size:16px}
body.desk #hint:empty{display:none}
.dk-help{font-size:16px;color:#F2F5F0;text-shadow:0 1px 3px #000,0 0 10px #000}
body.desk #toast{position:static;transform:none;max-width:100%}
body.desk #toast b{font-size:24px}body.desk #toast span{font-size:15px}
body.desk #ticker{position:static;font-size:14px;max-width:100%}
body.desk #slopeLegend{position:static}
body.desk #carryLabel{transform:scale(var(--k));transform-origin:0 0}
.dk-bar{display:flex;align-items:center;gap:clamp(16px,1.6vw,28px);padding:0 clamp(18px,1.6vw,28px);height:104px;flex:none;overflow:hidden;background:#0E1612;border-top:1px solid #FFFFFF17;position:relative;z-index:3}
.dk-f{display:flex;flex-direction:column;gap:7px}
.dk-f[hidden]{display:none}
.dk-f small,.dk-stat small{white-space:nowrap;font-size:13px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#C3CFC7}
body.desk #bagBtn,body.desk #shapeBtn{width:clamp(140px,11vw,200px);height:52px;border-radius:12px;border:1.5px solid #FFFFFFB3;background:#0B1310;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px;gap:8px;color:#F2F5F0}
body.desk #bagBtn:hover,body.desk #shapeBtn:hover{background:#16211B}
body.desk #clubBig,body.desk #clubSmall,body.desk #shapeTxt{display:none}
body.desk .dk-val{display:block;font:700 26px/1 'Barlow Condensed',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.desk .dk-chev{display:block;width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.dk-vsep{width:1px;height:60px;background:#FFFFFF24;flex:none}
.dk-stats{display:flex;gap:clamp(18px,2.2vw,44px);min-width:0;flex:1;overflow:hidden}
.dk-stat{display:flex;flex-direction:column;gap:7px;min-width:0}
.dk-stat b{font:700 32px/1 'Barlow Condensed',sans-serif;white-space:nowrap}
.dk-stat.wide{flex:1;min-width:0}
.dk-stat.wide b{font:600 17px/32px Inter,sans-serif;overflow:hidden;text-overflow:ellipsis}
.dk-acts{display:flex;align-items:center;gap:14px;flex:none}
body.desk #actionBtn,body.desk #liveBtn{position:static;width:auto;min-width:120px;height:56px;padding:0 22px;white-space:nowrap;border-radius:12px;box-shadow:none;font:700 26px/1 'Barlow Condensed',sans-serif;letter-spacing:.3px}
body.desk #actionBtn{background:#F2C14E;color:#1A1406;border:0}
body.desk #actionBtn.practice{background:#0B1310;color:#F2F5F0;border:1.5px solid #FFFFFFB3;font:600 19px/1 Inter,sans-serif}
body.desk #actionBtn.practice:hover{background:#16211B}
body.desk #actionBtn.locked,body.desk #actionBtn.wait{background:#1E2A23;color:#8A988F;border:1px solid #FFFFFF1A}
body.desk #liveBtn{background:#0B1310;color:#F2F5F0;border:1.5px solid #FFFFFFB3;font:600 19px/1 Inter,sans-serif}
body.desk #liveBtn.go{background:#F2C14E;color:#1A1406;border:0;font:700 28px/1 'Barlow Condensed',sans-serif;padding:0 30px;box-shadow:0 8px 22px #F2C14E33}
.dk-menu{position:fixed;z-index:90;display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:16px;background:#14201A;border:1px solid #FFFFFF26;box-shadow:0 20px 50px #000B;max-height:70vh;overflow:auto}
.dk-menu[hidden]{display:none}
.dk-menu-h{padding:6px 10px 8px;font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:#C3CFC7}
.dk-menu button{display:grid;grid-template-columns:1fr auto 64px;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;border:1px solid transparent;background:none;color:#F2F5F0;text-align:left}
.dk-menu.shape button{grid-template-columns:90px 1fr}
.dk-menu button:hover{background:#FFFFFF10}
.dk-menu button.on{border-color:#F2C14E;background:#F2C14E1F}
.dk-menu button b{font:700 21px/1 'Barlow Condensed',sans-serif}
.dk-menu button small{font-size:14px;color:#C3CFC7;text-align:right}
.dk-menu.shape button small{text-align:left}
.dk-menu button small.avg{color:#6EC1FF;font-weight:700}
/* sidebar */
.dk-side{grid-area:side;background:#0E1612;border-left:1px solid #FFFFFF17;overflow-y:auto;padding:20px 22px 28px;scrollbar-width:thin;scrollbar-color:#F2C14E55 transparent}
.dks-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:14px;background:#16211B;border:1px solid #FFFFFF14;margin-bottom:22px}
.dks-tabs button{height:44px;border-radius:10px;border:1.5px solid transparent;background:none;color:#C3CFC7;font:700 21px/1 'Barlow Condensed',sans-serif;letter-spacing:.3px}
.dks-tabs button.on{border-color:#F2C14E;color:#fff;background:#0B1310}
.dks-k{font-size:13px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#C3CFC7}
.dks-round h3{margin:4px 0 2px;font-size:30px;line-height:1.05}
.dks-round .muted{font-size:16px}
.dks-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 16px}
.dks-chip{padding:6px 14px;border-radius:99px;border:1px solid #FFFFFF26;font-size:14px;color:#E7EEE9}
.dks-link{background:none;border:0;padding:0;color:#E7EEE9;font-size:15px;text-decoration:underline;text-underline-offset:3px}
.dks-pl{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:#16211B;border:1px solid #FFFFFF14;margin-bottom:8px}
.dks-pl .av,.dks-pl .dot{width:38px;height:38px}
.dks-pl .grow{flex:1;min-width:0}
.dks-pl b{display:block;font-size:17px}
.dks-pl small{display:block;font-size:14px;color:#C3CFC7}
.dks-pl em{font:700 30px/1 'Barlow Condensed',sans-serif;font-style:normal;padding-left:14px;border-left:1px solid #FFFFFF1F}
.dks-h{margin:24px 0 10px;font:700 24px/1 'Barlow Condensed',sans-serif;letter-spacing:.3px}
.dks-sec{border-top:1px solid #FFFFFF1F;margin-top:24px;padding-top:20px}
.dks-sc{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:10px}
.dks-sc th{text-align:left;font-weight:500;color:#E7EEE9;padding:6px 0;width:46px}
.dks-sc td{text-align:center;padding:6px 0;font-weight:600}
.dks-sc td.cur span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;border:2px solid #F2C14E}
.dks-sc tr.pl td{color:#C3CFC7;font-weight:500}
.dks-sc .under{color:#E5484D}.dks-sc .over{color:#6EC1FF}
.dks-sc+.dks-sc{border-top:1px solid #FFFFFF14}
.dks-hole{display:flex;gap:16px;align-items:center;margin-top:12px}
.dks-hole img{width:136px;height:116px;object-fit:cover;border-radius:12px;border:1px solid #FFFFFF26;flex:none}
.dks-hole .grow{flex:1;min-width:0}
.dks-hole b{display:block;font:700 30px/1 'Barlow Condensed',sans-serif}
.dks-hole small{display:block;font-size:16px;color:#C3CFC7;margin-top:4px}
.dks-nav{display:flex;align-items:center;justify-content:space-between;margin-top:14px}
.dks-nav button{width:46px;height:42px;border-radius:10px;border:1px solid #FFFFFF26;background:#0B1310;color:#F2F5F0;display:flex;align-items:center;justify-content:center}
.dks-nav button:disabled{opacity:.35}
.dks-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.dks-nav span{font-size:16px;font-weight:600}
.dks-log{display:flex;flex-direction:column;gap:8px}
.dks-log div{display:flex;gap:12px;align-items:baseline;font-size:15px}
.dks-log i{font-style:normal;font:700 18px/1 'Barlow Condensed',sans-serif;color:#F2C14E;width:22px;flex:none}
.dks-log b{font-weight:600}
.dks-log span{color:#C3CFC7}
.dks-empty{text-align:center;font-style:italic;color:#C3CFC7;font-size:16px;padding:6px 0}
.dk-side .ov-grid{grid-template-columns:repeat(3,1fr)}
@media (max-width: 1399px){
  body.desk .dk-vsep{display:none}
  body.desk .dk-logo{font-size:30px}
  body.desk .dk-stat b{font-size:28px}
  body.desk .dk-val{font-size:23px}
  body.desk #liveBtn.go{font-size:24px;padding:0 22px}
}

/* first Google sign-in: link to an existing user or make a new one */
.au-g{padding:14px 16px;border-radius:16px;background:#2FBF6A14;border:1px solid #2FBF6A66;margin-bottom:14px}
.au-g b{display:block;font-size:15px;word-break:break-word}
.au-g p{margin:6px 0 12px;font-size:14px;color:#D3DDD6;line-height:1.45}

/* desktop: the swing box keeps its phone size on screen although the stage is scaled up */
body.desk #swBall,body.desk #swDemo i,body.desk #swDemo svg{transform-box:fill-box}
body.desk #swBall{transform:scale(var(--k))}
body.desk #swDemo{transform:scale(var(--k));transform-origin:0 0}
body.desk #swGauge{width:calc(12px * var(--k));border-radius:calc(6px * var(--k))}
body.desk #swGauge span{transform:scale(var(--k));transform-origin:0 50%}
body.desk #swGauge #swGLbl{transform:translateX(-50%) scale(var(--k));transform-origin:50% 100%}
body.desk #swBox{border-radius:calc(18px * var(--k));border-width:calc(2px * var(--k))}
body.desk #swHead{width:max-content;max-width:420px}
body.desk #swRead{font-size:54px}
body.desk #swHint{width:max-content;max-width:340px;font-size:15px;line-height:22px}
body.desk #swCancel{height:44px;font-size:15px}
body.desk #swLabel{font-size:21px}
body.desk #swInfo{font-size:15px;line-height:20px}

/* loading screen while a hole is fetched and drawn */
#loader{position:absolute;inset:0;z-index:95;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 40%,#16261C,#0B1310 70%);transition:opacity .35s}
#loader.out{opacity:0;pointer-events:none}
.ld-card{width:min(420px,84vw);display:flex;flex-direction:column;align-items:center;text-align:center}
.ld-ball{width:56px;height:56px;margin-bottom:18px;position:relative}
.ld-ball i{position:absolute;left:12px;top:0;width:32px;height:32px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#DCE3DE 60%,#9AA6A0);animation:ldBounce 1s cubic-bezier(.3,0,.6,1) infinite}
.ld-ball::after{content:"";position:absolute;left:14px;bottom:0;width:28px;height:6px;border-radius:50%;background:#0007;animation:ldShadow 1s cubic-bezier(.3,0,.6,1) infinite}
@keyframes ldBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(18px)}}
@keyframes ldShadow{0%,100%{transform:scale(.6);opacity:.5}50%{transform:scale(1);opacity:.9}}
.ld-k{font-size:12px;font-weight:700;letter-spacing:3px;color:#F2C14E}
.ld-title{font-size:30px;line-height:1.1;margin:6px 0 18px;min-height:33px}
.ld-track{width:100%;height:10px;border-radius:5px;background:#FFFFFF1C;overflow:hidden;box-shadow:inset 0 0 0 1px #FFFFFF14}
.ld-track i{display:block;height:100%;width:0;border-radius:5px;background:linear-gradient(90deg,#2FBF6A,#7CCB5A 60%,#F2C14E);transition:width .45s ease-out}
.ld-step{margin-top:12px;font-size:15px;color:#D3DDD6;min-height:20px}
/* desktop: no text on top of the swing box – just the box, the speed gauge and a small cancel */
body.desk #swHead,body.desk #swHint{display:none}
body.desk #swCancel{height:38px;padding:0 18px;font-size:14px}
#scr-game:has(#swipe:not([hidden])) .dk-bc{visibility:hidden}

/* add to home screen */
.hm-install{display:flex;align-items:center;gap:8px;align-self:center;margin-top:-4px;padding:8px 14px;border-radius:99px;border:1px solid #FFFFFF2E;background:#0B131080;color:#E7EEE9;font-size:14px}
.hm-install[hidden],.install-link[hidden]{display:none}
.hm-install svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.a2hs{display:flex;flex-direction:column;gap:10px}
.a2hs-icon{width:72px;height:72px;border-radius:17px;align-self:center;box-shadow:0 8px 24px #0008}
.a2hs p{margin:0;text-align:center;color:#D3DDD6}
.a2hs ol{margin:4px 0;padding-left:22px;display:flex;flex-direction:column;gap:10px;font-size:16px}
.ios-share{width:20px;height:20px;vertical-align:-4px;fill:none;stroke:#6EC1FF;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width: 400px){.hm-out{font-size:14px;gap:7px;padding:0 8px}.hm-out svg{width:18px;height:18px}}

/* home-screen app on iPhone: the page runs behind the status bar, so the game's top and bottom keep clear of the notch and home bar */
:root{--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px)}
#hud{padding-top:calc(14px + var(--sat))}
#chips{top:calc(66px + var(--sat))}
#ticker{top:calc(96px + var(--sat))}
#toast{top:calc(118px + var(--sat))}
#slopeLegend{top:calc(102px + var(--sat))}
#bar{padding-bottom:calc(22px + var(--sab))}
#liveBtn{bottom:calc(90px + var(--sab))}
#hint{bottom:calc(136px + var(--sab))}
#swCancel{bottom:calc(22px + var(--sab))}

/* "get more out of the game" popup */
#a2hsPop{position:fixed;inset:0;z-index:140;display:flex;align-items:flex-end;justify-content:center;background:#050906B8;padding:0 12px calc(12px + var(--sab));animation:shFade .25s ease-out}
#a2hsPop[hidden]{display:none}
.a2p-card{position:relative;width:min(440px,100%);border-radius:26px;background:linear-gradient(#17271D,#0E1812);border:1px solid #FFFFFF24;box-shadow:0 30px 80px #000C;padding:24px 22px 18px;text-align:center;animation:a2pIn .45s cubic-bezier(.2,.9,.3,1.15)}
@keyframes a2pIn{from{transform:translateY(40px) scale(.96);opacity:0}}
.a2p-x{position:absolute;right:12px;top:12px;width:36px;height:36px;border-radius:50%;border:1px solid #FFFFFF26;background:#0B1310;color:#C3CFC7;font-size:20px;line-height:1}
.a2p-icon{width:84px;height:84px;border-radius:20px;box-shadow:0 10px 30px #000A;display:block;margin:2px auto 14px}
.a2p-k{font-size:12px;font-weight:700;letter-spacing:2.5px;color:#F2C14E;text-transform:uppercase}
.a2p-card h3{margin:6px 0 4px;font:700 30px/1.05 'Barlow Condensed',sans-serif;letter-spacing:.3px}
.a2p-sub{margin:0 0 14px;color:#D3DDD6;font-size:15px;line-height:1.4}
.a2p-ben{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.a2p-ben span{padding:5px 10px;border-radius:99px;background:#2FBF6A1F;border:1px solid #2FBF6A55;font-size:12.5px;color:#CFEFD9}
.a2p-steps{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left}
.a2p-steps li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:#0B131099;border:1px solid #FFFFFF14;font-size:15px;line-height:1.35}
.a2p-steps i{flex:none;width:26px;height:26px;border-radius:50%;background:#F2C14E;color:#1A1406;font:700 15px/26px Inter,sans-serif;font-style:normal;text-align:center}
.a2p-btns{display:flex;gap:10px}
.a2p-btns button{flex:1;height:50px;border-radius:14px;font-size:16px;font-weight:600}
.a2p-later{border:1px solid #FFFFFF33;background:#0B1310;color:#E7EEE9}
.a2p-ok{border:0;background:#F2C14E;color:#1A1406;font:700 22px/1 'Barlow Condensed',sans-serif!important;letter-spacing:.3px}
.a2p-arrow{position:fixed;left:50%;bottom:calc(2px + var(--sab));transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;color:#F2C14E;font-size:12px;font-weight:700;text-shadow:0 1px 4px #000;pointer-events:none;animation:a2pBob 1.2s ease-in-out infinite}
.a2p-arrow svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@keyframes a2pBob{50%{transform:translate(-50%,6px)}}
#a2hsPop.has-arrow{padding-bottom:calc(52px + var(--sab))}
.a2p-card{max-height:calc(100dvh - 70px - var(--sab) - var(--sat));overflow-y:auto;padding:20px 18px 16px}
.a2p-icon{width:62px;height:62px;border-radius:15px;margin:0 auto 10px}
.a2p-card h3{font-size:26px}
.a2p-sub{font-size:14px;margin-bottom:12px}
.a2p-ben{margin-bottom:12px}
.a2p-steps{gap:6px;margin-bottom:14px}
.a2p-steps li{padding:8px 10px;font-size:14.5px}
.a2p-btns button{height:46px}
.a2p-arrow{padding:3px 10px 0;border-radius:10px 10px 0 0;background:#050906}

/* join page */
.jn-code{padding:16px;border-radius:20px;background:#0E1812E6;border:1px solid #FFFFFF1F;display:flex;flex-direction:column;gap:10px}
.jn-k{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#F2C14E}
.jn-code #jnCode{font:700 30px/1 'Barlow Condensed',sans-serif;letter-spacing:10px;text-align:center;text-transform:uppercase}
.jn-code small{font-size:13px}
.jn-sec{display:flex;flex-direction:column;gap:8px}
.jn-h{display:flex;align-items:center;justify-content:space-between}
.jn-h .sub{margin:6px 0 0}
.jn-refresh{width:38px;height:38px;border-radius:50%;border:1px solid #FFFFFF26;background:#0B1310B3;color:#E7EEE9;display:flex;align-items:center;justify-content:center}
.jn-refresh svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.jn-refresh.spin svg{animation:jnSpin .6s linear}
@keyframes jnSpin{to{transform:rotate(360deg)}}
.jn-empty{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#0B131099;border:1px dashed #FFFFFF2E}
.jn-empty>svg{width:28px;height:28px;flex:none;fill:none;stroke:#C3CFC7;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.jn-empty>div{flex:1;min-width:0}
.jn-empty b{display:block;font-size:15px}
.jn-empty small{display:block;font-size:13px;color:#C3CFC7;margin-top:2px}
.jn-mk{flex:none;height:38px;padding:0 14px;border-radius:12px;border:0;background:#F2C14E;color:#1A1406;font-weight:700}
.jn-game{align-items:center}
.jn-pic{width:52px;height:52px;border-radius:12px;object-fit:cover;flex:none;border:1px solid #FFFFFF26}
.jn-game small{display:block}
.jn-join{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none}
.jn-join em{font-style:normal;font-weight:700;font-size:13px;color:#F2C14E}
/* ---------------------------------------------------------------- tournaments */
.jn-tour{align-items:center}
.jn-tour.live{border-color:#2FBF6A88;box-shadow:inset 3px 0 0 #2FBF6A}
.jn-tour.cancelled,.jn-tour.done{opacity:.7}
.jn-tour small{display:block}
.tr-date{width:52px;height:52px;flex:none;border-radius:12px;background:#F2C14E1F;border:1px solid #F2C14E66;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.tr-date b{font:700 22px/1 'Barlow Condensed',sans-serif;color:#F2C14E}
.tr-date small{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#E7EEE9;margin-top:2px}
.tr-when{color:#F2C14E;font-weight:600}
.jn-tour.live .tr-when{color:#2FBF6A}
.tr-req{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.tr-req i{font-style:normal;font-size:11px;font-weight:600;padding:2px 7px;border-radius:999px;background:#FFFFFF14;border:1px solid #FFFFFF26;color:#E7EEE9}
.tr-req i.n{background:transparent;border-color:transparent;color:#8A988F;padding-left:2px}
.tr-act{white-space:nowrap}
.tr-act.ok{color:#2FBF6A!important}
.tr-act.off{color:#8A988F!important}
.tr-sheet{display:flex;flex-direction:column;gap:12px}
.tr-sheet h3{margin:0;font-size:26px;line-height:1.05}
.tr-sheet .tr-when.big{font-size:14px}
.tr-info{margin:0;font-size:14px;line-height:1.4;color:#D5DED8;white-space:pre-line}
.tr-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tr-facts div{padding:9px 11px;border-radius:12px;background:#0B1310B3;border:1px solid #FFFFFF14;min-width:0}
.tr-facts small{display:block;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#8A988F}
.tr-facts b{display:block;font-size:14px;margin-top:2px;overflow-wrap:anywhere}
.tr-reqs{display:flex;flex-wrap:wrap;gap:6px}
.tr-reqs span{font-size:12.5px;font-weight:600;padding:5px 10px;border-radius:999px;background:#F2C14E1A;border:1px solid #F2C14E55;color:#F6D98C}
.ok-box{padding:10px 12px;border-radius:12px;background:#2FBF6A22;border:1px solid #2FBF6A;font-size:13px}
.tb-h{margin:4px 0 0;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#F2C14E}
.tb{display:flex;flex-direction:column;gap:4px}
.tb-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#0B1310B3;border:1px solid #FFFFFF10;font-size:14px}
.tb-row.me{border-color:#F2C14E88;background:#F2C14E14}
.tb-row .tb-pl{width:22px;text-align:right;font-weight:700;color:#F2C14E;flex:none}
.tb-row .dot{width:12px;height:12px;border-radius:50%;flex:none}
.tb-row b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.tb-row small{color:#8A988F;font-size:11.5px}
.tb-row em{font-style:normal;font-weight:700;min-width:48px;text-align:right}
.tb-row:not(.done):not(.playing){opacity:.65}
.tb-row:not(.done):not(.playing) em{font-weight:500;font-size:12px}
.hm-tour{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;margin-bottom:12px;border-radius:16px;border:1.5px solid #2FBF6A;background:#0B1310D9;color:#F2F5F0;text-align:left;animation:hmTourIn .4s ease}
.hm-tour[hidden]{display:none}
.hm-tour .tr-ic{width:38px;height:38px;border-radius:50%;background:#2FBF6A26;display:flex;align-items:center;justify-content:center;flex:none}
.hm-tour .tr-ic svg{width:20px;height:20px;fill:none;stroke:#2FBF6A;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hm-tour .grow{flex:1;min-width:0}
.hm-tour b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-tour small{display:block;font-size:12.5px;color:#C3CFC7}
.hm-tour em{font-style:normal;font-weight:700;font-size:14px;color:#1A1406;background:#2FBF6A;padding:8px 12px;border-radius:10px;flex:none}
@keyframes hmTourIn{from{opacity:0;transform:translateY(6px)}}
.hm-tour.wait{border-color:#F2C14E}
.hm-tour.wait .tr-ic{background:#F2C14E26}
.hm-tour.wait .tr-ic svg{stroke:#F2C14E}
.hm-tour.wait em{background:#F2C14E}
.tr-req i.lv{background:#E5484D;border-color:#E5484D;color:#fff}
.jn-tour.is-live .tr-date small{letter-spacing:0;font-size:11px;font-weight:700}
.tr-when.big.on{color:#2FBF6A}
.tr-when.big.on::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#E5484D;margin-right:7px;vertical-align:1px;animation:trPulse 1.2s ease-in-out infinite}
@keyframes trPulse{50%{opacity:.25}}
.tr-lvl{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:12px;background:#0B1310B3;border:1px solid #FFFFFF14;font-size:13px;line-height:1.35}
.lvl-b{flex:none;font:700 12px/1 Inter,sans-serif;letter-spacing:.5px;text-transform:uppercase;padding:6px 9px;border-radius:8px;color:#0B1310}
.lvl-b.beg{background:#8FD6A2}
.lvl-b.ovet{background:#F2C14E}
.lvl-b.pro{background:#1A1406;color:#F2C14E;border:1.5px solid #F2C14E}
#pfHcp{flex-wrap:wrap}
.lvl-card{flex:1 0 100%;display:flex;gap:12px;align-items:flex-start;margin-top:12px;padding-top:12px;border-top:1px solid #FFFFFF1A;font-size:13px;line-height:1.4}
.lvl-card b{display:block;margin-bottom:2px}
.lvl-card small{color:#C3CFC7}
.tb-seg{margin:-2px 0 2px}
.tb-row.playing,.tb-row.done{opacity:1}
.tb-row.playing em{font-weight:700;font-size:14px}
.tb-row small{min-width:52px;text-align:right}
.tr-ingame{margin:0 0 12px;width:100%}
/* ---------------------------------------------------------------- chat */
.ch-box{display:flex;flex-direction:column;gap:10px;min-height:0}
.ch-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow-y:auto;overscroll-behavior:contain;padding:12px;border-radius:16px;background:#0B1310B3;border:1px solid #FFFFFF14;scrollbar-width:thin;scrollbar-color:#F2C14E55 transparent}
.ch-empty{color:#8A988F;font-size:13px;text-align:center;padding:14px 0}
.ch-m{align-self:flex-start;max-width:85%;padding:8px 11px 6px;border-radius:14px 14px 14px 4px;background:#1C2A22;border:1px solid #FFFFFF12}
.ch-m.me{align-self:flex-end;border-radius:14px 14px 4px 14px;background:#F2C14E26;border-color:#F2C14E55}
.ch-m b{display:block;font-size:12px;font-weight:700;margin-bottom:2px}
.ch-m p{margin:0;font-size:14px;line-height:1.35;color:#F2F5F0;overflow-wrap:anywhere}
.ch-m small{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:3px;font-size:10.5px;color:#8A988F}
.ch-rep{width:22px;height:22px;margin:-4px -6px -4px 0;padding:0;border:0;background:none;color:#8A988F;display:inline-flex;align-items:center;justify-content:center;border-radius:6px}
.ch-rep:hover{color:#FF7A7A;background:#FFFFFF0D}
.ch-rep svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ch-quick{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.ch-quick::-webkit-scrollbar{display:none}
.ch-quick button{flex:none;height:34px;padding:0 12px;border-radius:17px;border:1px solid #FFFFFF24;background:#16211B;color:#F2F5F0;font-size:13px;font-weight:600;white-space:nowrap}
.ch-quick button:active{background:#F2C14E33}
.ch-form{display:flex;gap:8px}
.ch-form[hidden],.ch-quick[hidden]{display:none}
.ch-in{flex:1;min-width:0;height:46px;padding:0 14px;border-radius:14px;border:1px solid #FFFFFF2E;background:#0B1310;color:#F2F5F0;font-size:16px}
.ch-in:focus{outline:none;border-color:#F2C14E}
.ch-form button{flex:none;height:46px;padding:0 18px;border-radius:14px;border:0;background:#F2C14E;color:#1A1406;font-weight:700;font-size:15px}
.ch-ban{padding:10px 12px;border-radius:12px;background:#F2C14E1A;border:1px solid #F2C14E66;font-size:13px;color:#F2E2B8}
.ch-note{font-size:11px;color:#7E8C84;text-align:center}
#lbChatWrap .ch-list{max-height:220px}
#sheet.chat-sheet .card{height:78vh;height:78dvh}
#sheet.chat-sheet #sheetBody{display:flex;flex-direction:column}
#sheet.chat-sheet .ch-box{flex:1}
#sheet.chat-sheet .ch-list{flex:1;max-height:none}
#sheet.chat-sheet .row:empty{display:none}
.chat-btn{position:absolute;right:10px;top:300px;width:44px;height:44px;border-radius:50%;border:1px solid #FFFFFF26;background:#0B1310B3;color:#F2F5F0;display:flex;align-items:center;justify-content:center;z-index:5}
.chat-btn[hidden]{display:none}
.chat-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.chat-btn i,.dks-tabs i{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#E5484D;color:#fff;font:700 11px/18px Inter,sans-serif;font-style:normal;text-align:center}
.chat-btn i[hidden],.dks-tabs i[hidden]{display:none}
.chat-pop{position:fixed;left:50%;top:calc(var(--sat,0px) + 128px);z-index:55;transform:translate(-50%,-8px);max-width:min(86vw,420px);padding:9px 14px;border-radius:14px;border:1px solid #FFFFFF26;background:#0B1310EE;color:#F2F5F0;font-size:13.5px;line-height:1.35;text-align:left;box-shadow:0 10px 30px #0008;opacity:0;transition:opacity .25s,transform .25s;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.chat-pop[hidden]{display:none}
.chat-pop.in{opacity:1;transform:translate(-50%,0)}
.chat-pop.out{opacity:0;transform:translate(-50%,-8px)}
.chat-pop b{font-weight:700;margin-right:4px}
body.desk .chat-btn{display:none}
body.desk .chat-pop{top:96px;left:calc(50% - 190px)}
.dks-tabs:has(> :nth-child(3)){grid-template-columns:1fr 1fr 1fr}
.dks-tabs button{position:relative}
.dk-side.chat{display:flex;flex-direction:column}
.dk-side.chat .ch-box{flex:1;min-height:0}
.dk-side.chat .ch-list{flex:1;max-height:none}
.ch-quote{padding:10px 12px;border-radius:12px;background:#0B1310;border:1px solid #FFFFFF1A;font-size:14px;color:#F2F5F0;margin-bottom:14px;overflow-wrap:anywhere}
.rp-reasons{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.rp-reasons label{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;background:#16211B;border:1px solid #FFFFFF14;font-size:14px;color:#F2F5F0}
.rp-reasons input{accent-color:#F2C14E;width:18px;height:18px}
#rpNote{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:12px;border:1px solid #FFFFFF2E;background:#0B1310;color:#F2F5F0;font:15px Inter,sans-serif;resize:vertical}
.rp-done{text-align:center;padding:16px 4px}
.rp-done b{display:block;font-size:17px;color:#F2F5F0;margin-bottom:6px}
.notice .nt{padding:12px 14px;border-radius:14px;background:#F2C14E14;border:1px solid #F2C14E55;margin-bottom:10px}
.notice .nt.chatban{background:#E5484D14;border-color:#E5484D88}
.notice .nt b{font-size:15px;color:#F2F5F0}
.notice .nt p{margin:4px 0 6px;font-size:14px;color:#E1E8E3}
.fhint{display:block;margin-top:8px;font-size:12px}
/* ---------------------------------------------------------------- your turn: same look as the hole intro */
.turn-ov{position:fixed;inset:0;z-index:58;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse 75% 32% at 50% 50%,#050B08B3,#0000);cursor:pointer;animation:shFade .25s ease-out}
.turn-ov[hidden]{display:none}
.turn-card{text-align:center;color:#fff;text-shadow:0 2px 12px #000a;display:flex;flex-direction:column;align-items:center}
#turnK{font-size:64px;line-height:.95;letter-spacing:2px}
#turnSub{font-size:26px;color:#F2C14E;letter-spacing:3px;text-transform:uppercase}
#turnInfo{font:600 15px Inter,sans-serif;margin-top:6px;color:#E1E9E4;display:flex;gap:8px;justify-content:center}
#turnInfo span:not(:empty)+span::before{content:'·';margin-right:8px}
#turnClock{font-variant-numeric:tabular-nums}
#turnClock.hurry{color:#FF7A7A}
.turn-go{border:0;cursor:pointer;min-width:120px}
.turn-later{margin-top:12px;border:0;background:none;color:#E1E9E4;font:600 13px Inter,sans-serif;text-decoration:underline;text-underline-offset:3px;opacity:.85}
body.turn-on #stage :is(#bar,#actionBtn,#liveBtn,#hint,#zoomCtl,#ticker,#chatBtn,#carryLabel){opacity:0;pointer-events:none;transition:opacity .3s}
body.desk .turn-ov{top:76px;right:clamp(330px,25vw,400px)}
#chipTurn.hurry{background:#E5484D;border-color:#E5484D;color:#fff;animation:hipulse 1s ease-in-out infinite}
#swClub{position:absolute;border-radius:50%;border:2px solid #F2C14E;background:#F2C14E2E;box-shadow:0 0 0 1px #0006;pointer-events:none}
#swClub[hidden]{display:none}
/* difficulty switch on the driving range and the putting green */
.lv-seg{position:absolute;top:118px;left:50%;transform:translateX(-50%);display:flex;border-radius:99px;background:#0B1310D9;border:1px solid #FFFFFF26;overflow:hidden;z-index:4}
.lv-seg[hidden]{display:none}
.lv-seg button{height:32px;padding:0 13px;border:0;background:none;color:#C3CFC7;font:600 12px Inter,sans-serif}
.lv-seg button.on{background:#F2C14E;color:#1A1406}
#stage:has(#holeIntro:not([hidden])) .lv-seg,body.turn-on .lv-seg{opacity:0;pointer-events:none}
body.desk .lv-seg{position:static;transform:none;margin-top:10px;width:max-content}
body.desk .lv-seg button{height:40px;padding:0 16px;font-size:14px}
#stage:has(#slopeLegend:not([hidden])) .lv-seg{top:152px}
/* the green-reading legend doubles as the switch between arrows, flow and colours */
#slopeLegend{pointer-events:auto;cursor:pointer;align-items:center}
#slopeLegend .lg-mode{display:inline-flex;align-items:center;gap:4px;padding:2px 8px 2px 9px;margin:-2px 2px -2px -4px;border-radius:8px;background:#F2C14E;color:#1A1406;font-weight:700}
#slopeLegend .lg-mode svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* tournament leaderboard (TV style) */
.lb{border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#14261C,#0E1A14);border:1px solid #FFFFFF1F;font-variant-numeric:tabular-nums}
.lb-top{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:10px;padding:11px 14px 10px;background:linear-gradient(90deg,#1E3A27,#16261C);border-bottom:2px solid #F2C14E}
.lb-top b{font:700 20px/1.05 'Barlow Condensed',sans-serif;letter-spacing:.3px;color:#F2F5F0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-top span{grid-row:2;font-size:12px;color:#B9C7BE}
.lb-top em{grid-row:1/3;grid-column:2;align-self:center;font:700 12px/1 Inter,sans-serif;letter-spacing:1px;font-style:normal;padding:6px 9px;border-radius:6px;background:#FFFFFF14;color:#DDE6E0}
.lb-top em.on{background:#E5484D;color:#fff}
.lb-top em.on::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#fff;margin-right:6px;vertical-align:1px;animation:trPulse 1.2s ease-in-out infinite}
.lb-head,.lb-row{display:grid;grid-template-columns:38px minmax(0,1fr) 62px 44px;align-items:center;column-gap:6px;padding:0 12px}
.lb-head{height:28px;font:700 10.5px/1 Inter,sans-serif;letter-spacing:1px;color:#8FA197;border-bottom:1px solid #FFFFFF14}
.lb-head span:nth-child(n+3),.lb-row>span:nth-child(n+3){text-align:right}
.lb-row{height:40px;border-bottom:1px solid #FFFFFF0D}
.lb-row:nth-child(odd){background:#FFFFFF05}
.lb-row.me{background:#F2C14E1F;box-shadow:inset 3px 0 0 #F2C14E}
.lb-pos{font:700 18px/1 'Barlow Condensed',sans-serif;color:#F2F5F0}
.lb-name{display:flex;align-items:center;gap:8px;min-width:0;font:600 17px/1 'Barlow Condensed',sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#F2F5F0}
.lb-name i{flex:none;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 1.5px #0B1310}
.lb-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-tot{font:700 20px/1 'Barlow Condensed',sans-serif;color:#F2F5F0}
.lb-tot.under,.lb-key .under{color:#FF7B72}
.lb-tot small{font:500 11.5px/1.1 Inter,sans-serif;color:#8FA197;text-transform:none;letter-spacing:0}
.lb-thru{font:600 17px/1 'Barlow Condensed',sans-serif;color:#C9D5CD}
.lb .fin{color:#F2C14E;font-weight:700}
.lb-row.wait .lb-name{color:#B9C7BE}
.lb-sep{padding:7px 12px 5px;font:700 10.5px/1 Inter,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#8FA197;background:#0B1310;border-bottom:1px solid #FFFFFF0D}
.lb-key{padding:8px 12px 10px;font-size:11px;color:#8FA197;line-height:1.4}
.lb-key b{font-weight:700}

.lb-row.tap{cursor:pointer}
.lb-row.tap:active{background:#FFFFFF14}
.lb-row.open{background:#FFFFFF10}
.lb-card{padding:10px 10px 12px;background:#0A130E;border-bottom:1px solid #FFFFFF14;animation:hmTourIn .2s ease}
.pc{width:100%;border-collapse:collapse;table-layout:fixed;font:600 13px/1 Inter,sans-serif;font-variant-numeric:tabular-nums;margin-bottom:8px}
.pc th{width:46px;text-align:left;font:700 10px/1 Inter,sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#8FA197;padding:4px 0}
.pc td{text-align:center;padding:3px 0;color:#DDE6E0}
.pc tr:first-child td{color:#8FA197;font-size:11px}
.pc tr.par td{color:#B9C7BE;font-weight:500}
.pc tr.rc td{color:#F2C14E;font-size:10px;letter-spacing:-1px;height:12px}
.pc td.s{width:38px;color:#F2F5F0;border-left:1px solid #FFFFFF1A}
.pm{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;font:700 14px/1 'Barlow Condensed',sans-serif;color:#F2F5F0}
.pm.birdie{border:1.5px solid #FF7B72;border-radius:50%}
.pm.eagle{border:1.5px solid #FF7B72;border-radius:50%;box-shadow:0 0 0 2px #0A130E,0 0 0 3.5px #FF7B72}
.pm.bogey{border:1.5px solid #8FB8FF}
.pm.dbl{border:1.5px solid #8FB8FF;box-shadow:0 0 0 2px #0A130E,0 0 0 3.5px #8FB8FF}
.pc-sum{display:flex;flex-wrap:wrap;gap:6px 14px;padding:2px 2px 0;font-size:12.5px;color:#B9C7BE}
.pc-sum b{color:#F2F5F0}
.pc-sum .under{color:#FF7B72}

.tb-tabs{display:flex;gap:4px;border-bottom:1px solid #FFFFFF1F;margin:-4px 0 2px}
.tb-tabs button{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 12px 9px;border:0;border-bottom:2.5px solid transparent;margin-bottom:-1px;background:none;color:#9AA8A0;font:600 14px Inter,sans-serif;cursor:pointer}
.tb-tabs button small{font-size:11px;font-weight:700;padding:1px 6px;border-radius:99px;background:#FFFFFF14;color:#B9C7BE}
.tb-tabs button.on{color:#F2F5F0;border-bottom-color:#F2C14E}
.tb-tabs button.on small{background:#F2C14E;color:#1A1406}

/* medals and the trophy cabinet */
.md{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;font:800 12px/1 Inter,sans-serif;font-style:normal;color:#2A1C00;box-shadow:inset 0 -2px 0 #0003,0 0 0 1.5px #0005}
.md.gold{background:radial-gradient(circle at 35% 30%,#FFF3B0,#F2C14E 45%,#B8860B)}
.md.silver{background:radial-gradient(circle at 35% 30%,#FFFFFF,#C9D1D6 45%,#8C979E);color:#1C2226}
.md.bronze{background:radial-gradient(circle at 35% 30%,#FFD9B0,#CD7F32 45%,#8A4E1C);color:#2A1300}
.md.none{background:#FFFFFF14;color:#B9C7BE;box-shadow:none}
.lb-name .md{width:16px;height:16px;margin-left:2px;font-size:0}
.md-note{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;line-height:1.4;color:#B9C7BE}
.md-note .md{width:20px;height:20px;font-size:10px;margin-top:1px}
.md-note b{color:#F2F5F0}
.trophy{border-radius:16px;background:linear-gradient(160deg,#1E3A27,#121D17);border:1px solid #F2C14E44;padding:12px 14px;margin-bottom:18px}
.tc-lvl{display:flex;align-items:center;gap:10px;padding:6px 0}
.tc-lvl>small{margin-left:auto;color:#9AA8A0;font-size:12px}
.tc-m{display:flex;gap:10px;align-items:center}
.tc-m span{display:flex;align-items:center;gap:4px}
.tc-m b{font:700 16px/1 'Barlow Condensed',sans-serif}
.tc-m small{color:#9AA8A0;font-size:12px}
.tc-list{margin-top:8px;border-top:1px solid #FFFFFF1A;padding-top:6px}
.tc-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #FFFFFF0D}
.tc-row:last-child{border-bottom:0}
.tc-row .grow{flex:1;min-width:0}
.tc-row b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-row small{display:block;font-size:12px;color:#9AA8A0}
.tc-row em{font:700 18px/1 'Barlow Condensed',sans-serif;font-style:normal}
.tc-empty{font-size:13px;color:#C3CFC7;line-height:1.45}
.idle-note{display:block;color:#FFB37A!important;font-weight:600}
.hm-tour.idle{border-color:#FF9F43}
.hm-tour.idle .tr-ic{background:#FF9F4326}
.hm-tour.idle .tr-ic svg{stroke:#FF9F43}
.hm-tour.idle em{background:#FF9F43}

/* Ørnehøj's logo on the course overview */
.ov-brand{position:relative;display:flex;align-items:center;justify-content:center;height:96px;margin:0 0 12px;border-radius:14px;overflow:hidden;background:#0E1A13 url(course/ornehoj/course_bg.jpg) 50% 42%/cover no-repeat}
.ov-brand::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,#0B131066 0%,#0B1310CC 75%),linear-gradient(180deg,#0B131033,#0B1310AA)}
.ov-brand::after{content:'';position:absolute;inset:0;border-radius:14px;box-shadow:inset 0 0 0 1px #FFFFFF1F}
.ov-brand img{position:relative;height:64px;width:auto;filter:drop-shadow(0 2px 8px #000A)}
.side-panel .ov-brand,.dk-side .ov-brand{height:76px}.side-panel .ov-brand img,.dk-side .ov-brand img{height:50px}

/* profile pictures: home, leaderboards, flights, your turn */
#scr-home .me-chip{padding:5px 14px 5px 5px}
#scr-home .me-chip .dot{border:0;width:32px;height:32px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font:700 15px/1 Inter,sans-serif;color:#0B1310;background-size:cover;background-position:center;box-shadow:0 0 0 2px #0B1310,0 0 0 3.5px var(--c,#F2C14E)}
img.av.xs{width:22px;height:22px;box-shadow:0 0 0 1.5px #0B1310,0 0 0 3px var(--c,#F2C14E)}
.lb-name img.av{flex:none}
.tr-flight{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:9px 11px;border-radius:12px;background:#2FBF6A1A;border:1px solid #2FBF6A55;color:#E7EEE9;font-size:13.5px}
.tr-flight b{color:#7BE3A4;font-weight:700}
.tr-flight span{display:inline-flex;align-items:center;gap:6px}
.tr-admin{align-self:flex-start;font-size:13px;font-weight:600;color:#F2C14E;text-decoration:none;padding:6px 10px;border-radius:8px;border:1px dashed #F2C14E77}
#turnAv{display:flex;justify-content:center;margin-bottom:10px}
img.av.turn,.av-ini{width:64px;height:64px;border-radius:50%;box-shadow:0 0 0 3px #0B1310,0 0 0 6px var(--c,#F2C14E)}
.av-ini{display:flex;align-items:center;justify-content:center;font:800 28px/1 Inter,sans-serif;color:#0B1310}

.mine-acts{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.mine-x{font-size:12px;font-weight:600;color:#FF9C9C;padding:3px 8px;border-radius:8px;border:1px solid #E5484D55;background:#E5484D14;cursor:pointer}
.jn-ban{margin:0 0 12px}
