/* The playing table. The course remains an exact, top-down 2D canvas. */
.game-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.course-visible{background:#eeeedf;color:#244734}
#app.game-experience{--game-ink:#214631;--game-soft:#6b7b61;--game-paper:#f6f4e8;--game-lime:#dce9ab;--game-coral:#ce7e62}
#app.course-session{display:grid;grid-template-columns:252px minmax(0,1fr);grid-template-rows:65px 44px auto minmax(0,1fr) auto 28px;grid-template-areas:"panel hud" "panel players" "panel online" "panel stage" "panel shots" "panel hint";column-gap:25px;max-width:1280px;margin:0 auto;padding:22px 26px calc(14px + env(safe-area-inset-bottom));padding-top:max(22px,env(safe-area-inset-top))}
.course-session #hud{grid-area:hud;padding:0 3px 13px;gap:12px;background:transparent;border:0;min-width:0}
.course-session #hud .stat{align-items:flex-start;min-width:54px;padding-left:14px;border-left:1px solid #a9b69366}
.course-session #hud .stat:first-child{border-left:0;padding-left:0}
.course-session #hud .lbl{color:#6b7b61;font-size:9px;letter-spacing:.11em;line-height:1.5}
.course-session #hud .val{font-size:29px;line-height:1.1;font-weight:700;letter-spacing:-.055em;color:var(--game-ink);font-variant-numeric:tabular-nums}
.course-session #hud .stat:nth-child(3){background:#244a34;padding:8px 15px;border:0;border-radius:12px;min-width:73px}
.course-session #hud .stat:nth-child(3) .lbl{color:#c7d5ad;font-size:8px}.course-session #hud .stat:nth-child(3) .val{color:#edf2d8;font-size:27px}
.course-session #hud .btns{gap:7px}.course-session #hud .ibtn{width:44px;height:44px;border:1px solid #ccd4bc;border-radius:12px;background:#f7f6eb;color:#466341}
.course-session #hud .ibtn:hover{background:#e3e9d2;border-color:#aab99a}.course-session #hud .ibtn[aria-pressed=true]{background:#e8e7dc;color:#8c806b}
.course-session #players{grid-area:players;justify-content:flex-start;align-items:center;min-width:0;padding:0 0 10px;background:transparent;border:0;gap:7px;scroll-padding-inline:4px}
.course-session .chip{opacity:1;color:#6e7d65;background:#e5e8d9;border:1px solid transparent;padding:4px 11px 4px 5px;font-size:11px;gap:7px}
.course-session .chip.on{color:#23482f;background:#f9f9ed;border-color:#879d6f;box-shadow:0 2px 6px #28482b07}.course-session .chip.on .cav{box-shadow:0 0 0 2px #dce9ab}
.course-session .chip.absent{opacity:.5}.course-session .cscore{font-weight:700;color:#607252;font-size:10px}.course-session .cname{max-width:126px}
.course-session #online-bar{grid-area:online;min-width:0;margin:0 0 7px;padding:7px 11px;border:1px solid #d7dfc7;border-radius:9px;background:#e4ead6;color:#496439;font-size:10px}
.course-session #online-state::before{background:#688747}.course-session #online-bar.stale{background:#f0e3ce;border-color:#dec9a8;color:#886846}.course-session #online-bar button{color:inherit;min-height:28px}
.course-session #stage{grid-area:stage;min-width:0;min-height:0;border-radius:24px;isolation:isolate;border:1px solid #cbd5bb;background-color:#dfe5d1;background-image:radial-gradient(ellipse at 50% 46%,#eef0dd 0%,#e5e9d4 45%,#dce3cd 100%);box-shadow:inset 0 1px 1px #fff9,0 4px 12px #2d4a2e04;overflow:hidden}
.course-session #stage::before,.course-session #stage::after{content:"";position:absolute;pointer-events:none;border:1px solid #7e9b6720;z-index:-1;transform:rotate(-23deg);border-radius:45%}
.course-session #stage::before{width:380px;height:620px;left:-290px;top:8%;box-shadow:0 0 0 22px #88a16908,0 0 0 46px #88a16906,0 0 0 72px #88a16904}
.course-session #stage::after{width:370px;height:500px;right:-295px;bottom:4%;box-shadow:0 0 0 30px #88a16907,0 0 0 60px #88a16904}
.course-session canvas{filter:drop-shadow(0 9px 10px #28442c18);border-radius:20px;max-width:100%;outline-offset:-2px}
.course-session canvas:focus-visible{outline:2px solid #7a9957}
.course-session #toast{top:14px;max-width:calc(100% - 22px);white-space:normal;text-align:center;font-size:11px;line-height:1.4;padding:10px 16px;background:#214934f2;color:#f1f1dc;border:1px solid #dfebbd40;box-shadow:0 7px 22px #21483220}
.course-session #shot-controls{grid-area:shots;min-width:0;padding:12px 5px 0;background:transparent;color:#466341}
.course-session .shot-topline{gap:10px;flex-wrap:nowrap}.course-session .shot-power{flex:1;max-width:330px;gap:11px}.course-session .power-label{color:#6b7b61;font-size:9px;letter-spacing:.09em}
.course-session .power-track{flex:1;max-width:170px;min-width:35px;width:auto;height:7px;background:#cfd8be;box-shadow:inset 0 1px 2px #41632e12}
.course-session .power-track>span{background:linear-gradient(90deg,#92ae65,#d9b966 65%,#d67c61);transition:width .08s linear}.course-session #shot-percent{color:#365732;font-size:12px;font-weight:700;width:34px}
.course-session .shot-actions{gap:5px}.course-session #bAudioSettings,.course-session #bControls{min-height:40px;padding:5px 10px;border:1px solid #d0d8c0;border-radius:9px;background:#f4f4e7;color:#567148;font-size:10px;text-decoration:none}
.course-session #bAudioSettings:hover,.course-session #bControls:hover{background:#e4eacf}.course-session #bControls[aria-expanded=true]{background:#dfe8c9;border-color:#a8bb86}
.course-session #shot-help{max-width:none;padding:12px 14px;margin:10px 0 0;background:#f4f5e8;border-color:#ccd7b8;border-radius:12px}
.course-session #shot-help p{color:#627753;font-size:11px;line-height:1.6}.course-session #shot-help strong{color:#355630}.course-session #shot-help kbd{background:#e9eddc;border-color:#bdcba8;color:#42653b}
.course-session #hint{grid-area:hint;padding:6px 4px 0;background:none;color:#7a896d;font-size:10px;line-height:1.5;text-align:left}
.course-session .sound-panel{top:83px;right:26px;border-color:#ccd7bb;box-shadow:0 20px 55px #233f2c30}
#app.game-experience #overlay{position:fixed;inset:0;padding:max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom));background:#213b2d8f;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);overflow:auto;overscroll-behavior:contain}
body.club-shell #app #overlay{padding:0;background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none}
#app.local-setup #hud,#app.local-setup #players,#app.local-setup #hint{visibility:hidden}
#app.local-setup #stage{background:#e9ecdc}#app.local-setup canvas{opacity:.25}
#app.local-setup #overlay{background:#e9eddeeb}

/* Nine non-interactive steps: a scorecard for orientation, never level navigation. */
#course-panel[hidden]{display:none!important}
#course-panel{grid-area:panel;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;padding:22px 20px 16px;background:#f8f7ec;border:1px solid #d7dfc7;border-radius:23px;box-shadow:0 3px 12px #30472f04;color:var(--game-ink);scrollbar-width:thin;scrollbar-color:#cbd4b9 transparent}
.course-brand{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding-bottom:21px;border-bottom:1px solid #dfe4d2;margin-bottom:21px}
.course-brand-mark{width:34px;height:34px;display:grid;place-items:center;background:#274d35;color:#dce9a7;border-radius:50%;transform:rotate(-8deg)}
.course-brand-mark svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.course-brand>span:nth-child(2){font-size:11px;font-weight:700;line-height:1.03;letter-spacing:-.045em}.course-brand strong{display:block;font-size:18px;font-weight:800;letter-spacing:-.045em}.course-brand small{display:block;width:100%;font-size:7px;font-weight:700;letter-spacing:.14em;color:#889676;margin-top:3px}
.hole-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.course-kicker{font-size:8px;font-weight:650;letter-spacing:.09em;color:#728063}.course-kicker b{font-size:12px;font-weight:800;color:#395b35;letter-spacing:0;margin:0 3px}.course-par{font-size:8px;font-weight:650;letter-spacing:.04em;border:1px solid #d4ddbe;background:#e8eed9;padding:5px 8px;border-radius:6px;color:#617945}.course-par b{font-size:10px;margin-left:3px}
.hole-brief h1{margin:0 0 6px;font-size:27px;line-height:1.08;letter-spacing:-.045em;font-weight:750}.hole-brief p{font-size:10px;color:#7d8b6c;margin:0;line-height:1.5}
.course-route{flex:1;margin:24px 0 20px}.course-route-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.course-route-heading h2{margin:0;font-size:10px;font-weight:700;letter-spacing:-.01em}.course-route-heading>span{font-size:9px;color:#819270;letter-spacing:.03em;font-variant-numeric:tabular-nums}
.course-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}.course-steps li{position:relative;display:flex;align-items:center;gap:9px;border-radius:9px;padding:5px 7px 5px 5px;min-height:32px;color:#839074;border:1px solid transparent}
.course-steps li+li::before{content:"";position:absolute;left:15px;top:-5px;width:1px;height:5px;background:#d6dec7}.step-dot{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#e9edde;color:#7c8c69;font-size:9px;flex:0 0 auto;font-weight:650}.step-name{font-size:10px;flex:1;line-height:1.15}.step-name small{display:none;font-size:8px;font-weight:400;line-height:1.4}.step-score{font-variant-numeric:tabular-nums;font-size:10px;font-weight:700;min-width:14px;text-align:center;color:#8f9a82}
.course-steps .is-complete{color:#5c724b}.course-steps .is-complete .step-dot{background:#dfe8c6;color:#587044}.course-steps .is-complete .step-score{color:#526d42}.course-steps .is-current{background:#e6eccf;color:#294c32;border-color:#d6e0b7;font-weight:700}.course-steps .is-current .step-dot{background:#2d5238;color:#eef1d6}.course-steps .is-current .step-score{color:#36562e}.course-steps .is-current::after{content:"";height:4px;width:4px;border-radius:50%;background:#a9c476;position:absolute;left:13px;bottom:0;transform:translateY(50%)}
.course-advice{display:flex;align-items:flex-start;gap:9px;border-radius:12px;background:#eeecd9;padding:13px 11px;margin-top:auto}.advice-spark{font-size:22px;line-height:1;color:#c2865c}.course-advice h2{font-size:9px;margin:0 0 5px;font-weight:700;color:#6c704a}.course-advice p{font-size:10px;line-height:1.55;color:#808065;margin:0}
.course-turn{display:flex;align-items:center;gap:9px;margin-top:17px;padding-top:16px;border-top:1px solid #dce2cf;min-width:0}.course-turn>div{min-width:0;flex:1}.course-turn>div>span{display:block;font-size:8px;color:#889275;margin-bottom:4px}.course-turn strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#365433}.course-turn>#course-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:21px;background:var(--player-color,#fff);border:1px solid #d8dfc9;flex-shrink:0}.turn-indicator{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#8daa64;box-shadow:0 0 0 4px #8daa6415}
#course-panel[data-state=rolling] .turn-indicator{background:#d29d68;box-shadow:0 0 0 4px #d29d6815}#course-panel[data-state=disconnected] .turn-indicator{background:#bd8465;box-shadow:0 0 0 4px #bd846515}

/* Local setup, round results and the real nine-hole scorecard. */
.round-moment{display:flex;align-items:center;gap:10px;padding:11px 12px;margin:15px 0 0;border-radius:12px;background:#e9eed7;text-align:left;color:#47643a}.round-moment>span{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#dbe7b8;font-size:21px}.round-moment p{margin:0!important;line-height:1.5}.round-moment strong{display:block;font-size:10px;font-weight:700}.round-moment small{display:block;font-size:9px;color:#788667;margin-top:3px}
.result-kicker{display:block;font-size:8px;font-weight:750;letter-spacing:.1em;color:#7c8c67;line-height:1.5;margin-bottom:18px}
.card.local-card{width:min(94vw,740px);max-width:740px;display:grid;grid-template-columns:.9fr 1.1fr;padding:9px;text-align:left;background:#f8f7ed;border-radius:26px;border-color:#fff9;box-shadow:0 24px 70px #2e482728;gap:0}
.local-story{position:relative;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;padding:29px 26px 24px;background:#254e36;border-radius:19px;color:#edf2d9;min-height:460px}
.local-story::before,.local-story::after{content:"";z-index:-1;position:absolute;border:1px solid #dceaac18;border-radius:48%;width:295px;height:420px;left:76px;top:39px;transform:rotate(28deg);box-shadow:0 0 0 24px #dceaac04,0 0 0 48px #dceaac03}
.local-story::after{left:-155px;top:210px;box-shadow:none}.local-story .result-kicker{color:#acbf90;font-size:6.5px;letter-spacing:.1em;margin:0 0 19px}.local-story .logo{width:55px;height:55px;margin:0 0 16px;padding:5px;border:1px solid #dcebb322;border-radius:16px;background:#ffffff06}
.local-story h1{font-size:44px!important;font-weight:650;line-height:1.02;letter-spacing:-.055em!important;margin:0 0 16px!important;color:#eef0db}.local-story h1 em{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#dceaab;font-size:1.23em;letter-spacing:-.05em}
.local-story>p{font-size:11px;color:#b0c59c;line-height:1.65;max-width:185px;margin:0 0 29px}.local-course-facts{display:flex;gap:21px;margin-top:auto;padding-top:18px;border-top:1px solid #dceaac20}.local-course-facts>span{font-size:8px;color:#a1b990}.local-course-facts b{display:block;font-size:23px;font-weight:550;letter-spacing:-.07em;line-height:1.2;color:#e5edc6;margin-bottom:4px}.local-story-foot{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#95af81;margin-top:31px}.local-story-foot>span{font-size:24px;color:#d5e5a2;line-height:1}
.local-setup-form{padding:29px 26px 22px;min-width:0;align-self:center}.local-setup-form>.result-kicker{font-size:7px;margin-bottom:10px;color:#899775}.local-setup-form h2{font-size:25px;line-height:1.12;letter-spacing:-.04em;font-weight:750;margin:0 0 10px}.local-setup-form .local-intro{font-size:11px;color:#7b896c;margin-bottom:22px;line-height:1.6}
.local-card .pcount{justify-content:space-between;color:#61764e;gap:10px;padding:0 0 13px;margin:0 0 13px;border-bottom:1px solid #dce3cf;font-size:11px;font-weight:600}.player-stepper{display:flex;align-items:center;gap:12px}.local-card .pcount b{font-size:17px;min-width:16px;text-align:center;color:#35592f}.local-card .pcount .ibtn{width:36px;height:36px;border-color:#d3dec0;border-radius:10px;font-size:18px;background:#eff2e2;color:#46663a}.local-card .pcount .ibtn:disabled{opacity:.32;cursor:default}.local-card .pcount .ibtn:hover:not(:disabled){background:#e0e9c8}
.local-roster .prow{gap:10px;margin:9px 0}.local-card .av{width:43px;height:43px;font-size:25px;border:1px solid #b9cba0;position:relative;box-shadow:0 2px 4px #26462209}.local-card .av::after{content:"+";font:700 9px system-ui;display:grid;place-items:center;position:absolute;bottom:-2px;right:-3px;width:13px;height:13px;background:#d8e7b4;border:1px solid #9fb886;border-radius:50%;color:#4b713b}
.local-card .nm{height:43px;font-size:13px;padding:0 12px;border-color:#d1dcc1;border-radius:9px;background:#fffdf5;color:#35542f}.local-card .nm::placeholder{color:#9ba78b;font-size:11px}.local-card .nm:focus{border-color:#8fa971;box-shadow:0 0 0 3px #8eaa6715}
.local-card .avgrid{padding:8px;margin:5px -3px 12px;gap:3px;border:1px solid #d9e3c6;background:#e8efda}.local-card .avopt{height:31px;font-size:21px;border-radius:6px}.local-card .avopt.sel{background:#fdfdf5;border-color:#84a05f}
.local-setup-form .local-avatar-hint{font-size:9px;color:#8a9878;line-height:1.5;margin:10px 0 0}.local-record{display:flex;align-items:center;gap:10px;margin:16px 0 0;padding:10px 11px;border-radius:10px;border:1px solid #e3dcc3;background:#f0eedc;color:#969069;font-size:8px}.local-record>span:first-child{color:#ad9863;font-size:22px}.local-record b{display:block;font-size:11px;color:#79704b;font-weight:650;margin-top:3px}
.local-card .local-start{display:flex;width:100%;justify-content:space-between;align-items:center;min-height:48px;font-size:12px;margin-top:20px;padding:13px 15px;border-radius:10px;background:#274f35;color:#ecf0d4}.local-card .local-start:hover:not(:disabled){background:#38613f}.local-start>span{font-size:17px;font-weight:400}.local-setup-form .local-play-hint{text-align:center;font-size:8px;color:#8e9b7c;margin:10px 0 21px}.local-back{font-size:10px;color:#7a8a67;min-height:36px;text-decoration:none}
.card.result-card{width:min(92vw,400px);padding:28px 27px;border-radius:24px;background:#f7f6e9;border-color:#fff9;box-shadow:0 22px 70px #122b2730}.result-card .result-kicker{font-size:8px;color:#8b9879;margin:0 0 22px}.result-seal{display:grid;place-items:center;margin:0 auto 18px;width:61px;height:61px;border-radius:50%;background:#e4eccb;color:#567e43;border:1px solid #d6e1b8;font-size:32px;transform:rotate(-9deg)}
.result-card h2{font-size:19px;letter-spacing:-.035em;font-weight:650;color:#557147}.result-card .big{font-size:37px;letter-spacing:-.06em;color:#294d33;line-height:1.15;margin:9px 0}.result-card .sub{font-size:11px;color:#8b997b;margin-bottom:13px}.result-card .btn{width:100%;min-height:48px;margin-top:17px;font-size:12px;border-radius:11px;background:#dce9ab;color:#35512b}.result-card .bigav{width:61px;height:61px;font-size:35px;border-color:#dce5c3;margin-bottom:15px}
.card.scorecard-card{width:min(94vw,580px);border-radius:25px;padding:25px 26px 22px;max-height:100%;box-shadow:0 22px 70px #122b2730}.scorecard-heading{position:relative;padding:3px 4px 16px;border-bottom:1px solid #dce3ca;margin-bottom:16px}.scorecard-heading .result-kicker{font-size:8px;margin-bottom:16px}.scorecard-heading h2{font-size:21px;font-weight:650;letter-spacing:-.03em;margin-bottom:6px}.scorecard-heading .big{font-size:33px;letter-spacing:-.055em;color:#2c5234;line-height:1.1;margin:8px 0}.scorecard-heading .sub{font-size:11px;line-height:1.6;color:#7d9168;margin-bottom:0}.scorecard-heading .record{display:inline-block;background:#e5edca;border:1px solid #d4e1b2;color:#5a7940;font-size:9px;font-weight:650;padding:5px 10px;border-radius:20px;margin-top:8px}.scorecard-heading .bigav{width:49px;height:49px;font-size:29px;border-color:#d7e2bd;margin-bottom:11px}
.scorecard-card .rlist{margin:14px 0 20px}.scorecard-card .rrow,.result-card .rrow{padding:9px 11px;border-color:#dbe2cc;background:#f9faee;border-radius:11px;font-size:11px;gap:8px}.scorecard-card .rrow.win,.result-card .rrow.win{background:#e8eecf;border-color:#cddbaf}.scorecard-card .rpos{font-size:11px;color:#84996a}.scorecard-card .rname,.result-card .rname{color:#3f6136}.scorecard-card .rlab,.result-card .rlab{color:#8b9b72;font-size:10px}.scorecard-card .rstk,.result-card .rstk{color:#426536;font-size:15px}
.score-table-wrap{overflow-x:auto;margin-bottom:17px}.score-table{table-layout:fixed;font-size:11px;border-collapse:collapse;margin:0;color:#6b7e57}.score-table caption{text-align:left;font-size:10px;font-weight:700;color:#668050;margin-bottom:12px}.score-table thead th{font-size:8px;letter-spacing:.03em;color:#95a280;font-weight:650;border-bottom:1px solid #d5dfc1;height:33px}.score-table th:first-child{width:40%;text-align:left}.score-table thead th:nth-child(2){width:11%}.score-table tbody th{font-size:10px;font-weight:500;color:#7e8f6b}.score-table tbody td,.score-table tbody th{height:31px;padding:3px 5px;border-bottom:1px solid #e6ebd9}.score-hole-number{font-size:8px;display:inline-block;min-width:22px;color:#a0ad8f}.score-hole-name{font-size:10px;color:#6c805b}.score-table .cav{width:22px;height:22px;font-size:14px;border:1px solid #d6e0bf}.score-table td.neg,.score-table td.pos{color:inherit}.score-table td>span{width:23px;height:23px;display:inline-grid;place-items:center;border-radius:50%;font-size:11px}.score-table td.neg>span{background:#e0ebc1;color:#64833f}.score-table td.pos>span{color:#bd896a}.score-table td.even>span{color:#6b8357}.score-table tfoot th,.score-table tfoot td{padding:13px 5px 7px;font-size:12px;border:0;color:#34582d;font-weight:750}.score-table tfoot th{font-size:10px}.scorecard-card>.btn{display:flex;justify-content:center;align-items:center;gap:20px;width:100%;min-height:45px;background:#2e5538;color:#edf2d8;font-size:12px;border-radius:10px;margin-top:0}.scorecard-card>.btn:hover:not(:disabled){background:#436842}.scorecard-card>.btn>span{font-size:17px;font-weight:400}
.game-experience button:focus-visible,.game-experience input:focus-visible{outline:2px solid #7e9c57;outline-offset:3px}

@media(min-width:901px) and (max-height:820px){
  #app.course-session{padding-top:14px;padding-bottom:10px;grid-template-rows:59px 39px auto minmax(0,1fr) auto 24px}
  #course-panel{padding:18px 16px 14px}.course-brand{padding-bottom:15px;margin-bottom:15px}.course-brand small{display:none}.hole-brief h1{font-size:25px}.course-route{margin:17px 0 15px}.course-steps li{min-height:27px;padding:3px 6px 3px 4px}.course-steps{gap:2px}.step-dot{width:19px;height:19px}.course-steps li+li::before{left:14px;top:-4px;height:4px}.course-advice{padding:11px 10px}.course-turn{margin-top:13px;padding-top:12px}.course-session #hud .val{font-size:26px}
}
@media(max-width:1100px) and (min-width:901px){#app.course-session{grid-template-columns:225px minmax(0,1fr);column-gap:18px;padding-left:18px;padding-right:18px}.course-session .cname{max-width:88px}.course-session .chip{padding-right:8px;font-size:10px}.course-session .shot-actions{gap:4px}.course-session #bAudioSettings,.course-session #bControls{padding-inline:8px}}
@media(max-width:900px){
  #app.course-session{grid-template-columns:minmax(0,1fr);grid-template-rows:53px 36px auto auto minmax(100px,1fr) auto;grid-template-areas:"hud" "players" "panel" "online" "stage" "shots";padding:calc(8px + env(safe-area-inset-top)) 14px calc(10px + env(safe-area-inset-bottom));column-gap:0;max-width:650px}
  .course-session #hud{padding:0 2px 9px;gap:8px}.course-session #hud .stat{min-width:40px;padding-left:11px}.course-session #hud .lbl{font-size:7px}.course-session #hud .val{font-size:24px}.course-session #hud .stat:nth-child(3){min-width:58px;padding:5px 11px;border-radius:10px}.course-session #hud .stat:nth-child(3) .val{font-size:23px}.course-session #hud .stat:nth-child(3) .lbl{font-size:7px}.course-session #hud .ibtn{width:40px;height:40px;border-radius:11px}.course-session #hud .btns{gap:6px}
  .course-session #players{padding-bottom:7px;gap:6px}.course-session .chip{padding:3px 8px 3px 4px;gap:6px;font-size:10px}.course-session .cname{max-width:94px}.course-session .chip.on .cname::before{content:"TURNO · ";font-size:6px;letter-spacing:.02em;color:#7f9662;font-weight:700}.course-session .cav{width:22px;height:22px;font-size:15px}.course-session .cscore{font-size:9px}
  #course-panel{display:grid;grid-template-columns:1fr;grid-template-areas:"brief" "advice" "route";padding:7px 11px 9px;margin:0 0 9px;overflow:visible;background:#f5f5e7;border-radius:13px;border-color:#d7dfc7;box-shadow:none}
  .course-brand,.course-turn,.course-route-heading{display:none}.hole-brief{grid-area:brief;display:flex;align-items:center;gap:9px;min-width:0}.hole-topline{display:contents}.course-kicker{white-space:nowrap;flex-shrink:0;font-size:7px;letter-spacing:.01em}.course-kicker b{font-size:11px;margin-inline:1px}.hole-brief h1{order:1;margin:0;font-size:17px;letter-spacing:-.035em;line-height:1.2;flex:1;min-width:0}.course-par{order:2;margin-left:auto;flex-shrink:0;padding:4px 6px;font-size:7px;border-radius:5px}.course-par b{font-size:9px;margin-left:1px}.hole-brief>p{display:none}
  .course-advice{grid-area:advice;display:block;background:none;padding:0;margin:4px 0 0;border-radius:0;min-width:0}.course-advice h2,.advice-spark{display:none}.course-advice p{font-size:9px;line-height:1.45;color:#899371;margin:0}
  .course-route{grid-area:route;margin:7px 0 0;min-width:0}.course-steps{flex-direction:row;justify-content:space-between;gap:5px}.course-steps li{flex:1;min-width:0;min-height:0;padding:0;justify-content:center;border:0;border-radius:5px;background:#e5ead6;height:20px}.step-dot{height:20px;width:100%;font-size:8px;border-radius:5px;background:none;color:#8a9b73}.step-name,.step-score{display:none}.course-steps li+li::before{display:none}.course-steps .is-current{background:#315739;border:0}.course-steps .is-current .step-dot{background:none;color:#edf1d5}.course-steps .is-complete{background:#d6e2b5}.course-steps .is-complete .step-dot{background:none;color:#6e8449}.course-steps .is-current.is-complete .step-dot{color:#edf1d5}.course-steps .is-current::after{height:3px;width:3px;left:auto;bottom:2px;transform:none;background:#ddea9d}
  .course-session #stage{border-radius:19px}.course-session #online-bar{margin:0 0 7px;padding:3px 9px;font-size:9px;border-radius:8px}.course-session #online-bar button{font-size:9px;min-height:27px}
  .course-session #shot-controls{padding:8px 1px 0}.course-session .shot-topline{gap:7px;min-height:40px}.course-session .shot-power{gap:7px}.course-session .power-label{font-size:7px;letter-spacing:.04em}.course-session .power-track{max-width:130px;height:6px}.course-session #shot-percent{width:30px;font-size:10px}.course-session .shot-actions{gap:4px}.course-session #bAudioSettings,.course-session #bControls{min-height:39px;padding:5px 8px;font-size:9px}.course-session #bAudioSettings svg{width:13px;height:13px}.course-session #hint{display:none}.course-session #shot-help{margin-top:6px;padding:10px 12px}.course-session #shot-help p{font-size:10px}.course-session .sound-panel{top:69px;right:14px}
  #app.game-experience #overlay{padding:16px}.card.local-card{width:min(95vw,720px)}
}
@media(max-width:600px){
  #app.course-session{padding-left:10px;padding-right:10px}.course-session #hud{gap:6px}.course-session #hud .stat{min-width:38px;padding-left:9px}.course-session #hud .btns{gap:5px}.course-session #hud .ibtn{width:39px;height:40px}.course-session #players{justify-content:flex-start}.course-session .cname{max-width:83px}
  #app.game-experience #overlay{padding:13px}.card.local-card{display:block;padding:0;width:min(94vw,415px);border-radius:22px;overflow:auto;max-height:100%}.local-story{display:grid;grid-template-columns:1fr auto;min-height:0;padding:21px 23px 19px;border-radius:0;color:#edf2d9}.local-story>.result-kicker{grid-column:1/-1;font-size:7px;margin:0 0 14px}.local-story .logo{position:absolute;right:22px;top:36px;width:47px;height:47px;margin:0}.local-story h1{font-size:34px!important;margin:0 0 11px!important;grid-column:1/-1;line-height:1}.local-story h1 br{display:none}.local-story h1 em{margin-left:4px;font-size:1.1em}.local-story>p{font-size:10px;max-width:215px;line-height:1.5;margin:0;grid-column:1/-1}.local-course-facts{grid-column:1/-1;margin-top:17px;padding-top:12px;gap:26px}.local-course-facts>span{display:flex;align-items:baseline;gap:6px;font-size:8px}.local-course-facts b{display:inline;font-size:17px;margin:0}.local-story-foot{display:none}.local-story::before{top:-40px;left:180px;height:320px}.local-story::after{display:none}
  .local-setup-form{padding:23px 23px 19px}.local-setup-form>.result-kicker{font-size:7px;margin-bottom:7px}.local-setup-form h2{font-size:23px}.local-setup-form .local-intro{font-size:10px;margin-bottom:16px}.local-card .pcount{font-size:11px;margin-bottom:11px;padding-bottom:10px}.local-card .pcount .ibtn{min-width:40px;min-height:40px}.local-card .nm{font-size:16px;height:44px}.local-card .nm::placeholder{font-size:12px}.local-card .av{width:44px;height:44px;font-size:25px}.local-card .avopt{height:33px;font-size:22px}.local-card .local-start{min-height:48px;margin-top:17px;font-size:12px}.local-setup-form .local-play-hint{font-size:8px;margin-bottom:12px}.local-back{font-size:10px;min-height:40px}.local-record{margin-top:13px}
  .card.result-card{padding:26px 23px}.result-card .big{font-size:35px}.result-card .result-kicker{font-size:7px}.card.scorecard-card{width:min(95vw,460px);padding:22px 18px 19px;border-radius:22px}.scorecard-heading .result-kicker{font-size:7px;margin-bottom:13px}.scorecard-heading h2{font-size:19px}.scorecard-heading .big{font-size:29px}.scorecard-card .rrow{padding:8px 9px}.score-table th:first-child{width:37%}.score-hole-number{min-width:17px;font-size:7px}.score-hole-name{font-size:8px}.score-table tbody th,.score-table tbody td{height:29px;padding:3px 2px}.score-table td>span{font-size:10px;width:21px;height:21px}.scorecard-card>.btn{font-size:11px;gap:12px}
}
@media(max-width:370px){
  #app.course-session{padding-inline:8px}.course-session #hud{gap:4px}.course-session #hud .stat{min-width:35px;padding-left:7px}.course-session #hud .val{font-size:22px}.course-session #hud .stat:nth-child(3){min-width:47px;padding:5px 9px}.course-session #hud .ibtn{width:35px}.course-session #hud .btns{gap:4px}.course-session .chip{font-size:9px;padding-right:7px}.course-session .cname{max-width:80px}.hole-brief{gap:6px}.hole-brief h1{font-size:16px}.course-kicker{font-size:6px}.course-kicker b{font-size:10px}.course-advice p{font-size:8px}.course-session .power-label{font-size:6px}.course-session .shot-power{gap:5px}.course-session #bAudioSettings,.course-session #bControls{padding-inline:7px;font-size:8px}.course-session .power-track{min-width:28px}.course-session #shot-percent{width:26px;font-size:9px}.local-setup-form{padding:21px}.local-story{padding-inline:21px}.local-story h1{font-size:30px!important}.local-story .logo{width:39px;height:39px;right:20px;top:37px}.local-card .avopt{height:30px;font-size:20px}.score-hole-name{display:none}.score-table th:first-child{width:17%}.score-hole-number{font-size:10px}.scorecard-heading .big{font-size:26px}
}
@media(max-height:650px) and (max-width:900px){
  #app.course-session{grid-template-rows:47px 31px auto auto minmax(90px,1fr) auto;padding-top:calc(4px + env(safe-area-inset-top));padding-bottom:calc(5px + env(safe-area-inset-bottom))}.course-session #hud{padding-bottom:7px}.course-session #hud .ibtn{height:37px}.course-session #hud .val{font-size:21px}.course-session #hud .stat:nth-child(3){padding:3px 10px}.course-session #hud .stat:nth-child(3) .val{font-size:21px}#course-panel{padding:5px 9px 7px;margin-bottom:6px}.course-advice{display:none}.course-route{margin-top:6px}.course-session #shot-controls{padding-top:4px}.course-session #bAudioSettings,.course-session #bControls{min-height:35px}.course-session .shot-topline{min-height:35px}.course-session #shot-help{max-height:100px;overflow:auto}
}
@media(prefers-reduced-motion:reduce){.course-session .chip,.course-session .power-track>span,.game-experience .card{transition:none}}

/* Field-first layout: the score rail is optional, and never an ad-sized gutter. */
#app.course-session{grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);grid-template-rows:48px 34px auto minmax(0,1fr) auto;grid-template-areas:"hud hud" "players panel" "online online" "stage stage" "shots shots";max-width:none;width:100%;height:100%;height:100dvh;min-height:0;gap:0 16px;padding:calc(7px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));margin:0}
.course-session #hud{padding:0 2px 5px;justify-content:flex-start;gap:20px;min-height:0}
.course-session #hud .stat{flex-direction:row;align-items:center;gap:8px;min-width:0;padding-left:20px}
.course-session #hud .lbl{font-size:8px;line-height:1.2;letter-spacing:.08em}
.course-session #hud .val,.course-session #hud .stat:nth-child(3) .val{font-size:22px;line-height:1;font-weight:700;letter-spacing:-.045em}
.course-session #hud .stat:nth-child(3){min-width:0;padding:8px 13px;border-radius:10px;gap:9px}
.course-session #hud .stat:nth-child(3) .lbl{font-size:8px}
.course-session #hud .btns{margin-left:auto;gap:5px}
.course-session #hud .ibtn{width:42px;height:42px;border-radius:11px}
.course-session #players{padding:0 0 5px;gap:5px;align-self:stretch}
.course-session .chip{padding:3px 10px 3px 4px;font-size:10px;gap:6px}
.course-session .cav{width:21px;height:21px;font-size:14px}.course-session .cname{max-width:120px}
.course-session .chip.on .cname::before{content:"TURNO · ";font-size:6px;letter-spacing:.02em;color:#7f9662}
.course-session #online-bar{padding:1px 10px;margin:1px 0 5px;font-size:9px;line-height:1.4;border-radius:7px}
.course-session #online-bar button{min-height:26px;font-size:9px}
.course-session #stage{border-radius:16px;min-height:0}
.course-session canvas{border-radius:12px}
.course-session #shot-controls{padding:5px 3px 0;position:relative}
.course-session .shot-topline{gap:12px;min-height:44px}
.course-session .shot-power{max-width:380px;gap:10px}
.course-session .power-label{font-size:8px;letter-spacing:.055em}.course-session .power-track{max-width:220px;height:6px}.course-session #shot-percent{font-size:11px}
.course-session .shot-actions{margin-left:auto;gap:5px}
.course-session #bAudioSettings,.course-session #bControls,.course-session #bCoursePanel{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;min-width:44px;padding:7px 11px;border:1px solid #cbd6bb;border-radius:10px;background:#f4f4e7;color:#567148;font-family:inherit;font-size:10px;cursor:pointer;text-decoration:none}
.course-session #bCoursePanel:hover{background:#e4eacf}.course-session #bCoursePanel[aria-expanded=true]{color:#f2f3dc;background:#2c5338;border-color:#2c5338}
.course-session #bCoursePanel svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7}
.course-session #shot-help{position:absolute;right:0;bottom:calc(100% + 8px);z-index:7;width:min(440px,100%);max-height:min(55dvh,270px);overflow:auto;margin:0;box-shadow:0 12px 35px #23482a26}
.course-session #hint{display:none}.course-session .sound-panel{top:61px;right:14px}
#app.course-session:not(.course-panel-open) #course-panel{display:flex;justify-content:center;padding:0 2px 5px 0;margin:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:hidden}
#app.course-session:not(.course-panel-open) #course-panel>:not(.hole-brief){display:none}
#app.course-session:not(.course-panel-open) .hole-brief{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
#app.course-session:not(.course-panel-open) .hole-topline{display:contents}
#app.course-session:not(.course-panel-open) .course-kicker{font-size:7px;letter-spacing:.02em;white-space:nowrap;flex-shrink:0}
#app.course-session:not(.course-panel-open) .course-kicker b{font-size:10px;margin-inline:2px}
#app.course-session:not(.course-panel-open) .hole-brief h1{order:1;flex:0 1 auto;min-width:0;font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;letter-spacing:-.02em}
#app.course-session:not(.course-panel-open) .course-par{order:2;padding:4px 6px;margin:0;font-size:7px;border-radius:5px;white-space:nowrap;flex-shrink:0}
#app.course-session:not(.course-panel-open) .course-par b{font-size:9px;margin-left:2px}
#app.course-session:not(.course-panel-open) .hole-brief>p{display:none}
#app.course-session.course-panel-open{grid-template-columns:minmax(0,1fr) 244px;grid-template-areas:"hud panel" "players panel" "online panel" "stage panel" "shots panel";column-gap:13px}
#app.course-panel-open #course-panel{display:flex;flex-direction:column;overflow:auto;padding:17px 16px 14px;margin:0;border-radius:17px;border:1px solid #d7dfc7;background:#f8f7ec;box-shadow:0 3px 12px #30472f04}
#app.course-panel-open .course-brand{display:flex;padding-bottom:15px;margin-bottom:16px}
#app.course-panel-open .course-brand small{display:none}
#app.course-panel-open .hole-brief{display:block;flex:none}
#app.course-panel-open .hole-topline{display:flex;margin-bottom:8px}
#app.course-panel-open .hole-brief h1{font-size:23px;margin:0 0 6px;white-space:normal;line-height:1.1}
#app.course-panel-open .hole-brief>p{display:block;font-size:9px}
#app.course-panel-open .course-route{display:block;margin:17px 0;flex:none}
#app.course-panel-open .course-route-heading{display:flex}
#app.course-panel-open .course-steps{display:flex;flex-direction:column;gap:2px}
#app.course-panel-open .course-steps li{flex:none;justify-content:flex-start;gap:7px;min-height:27px;height:auto;padding:3px 6px 3px 4px;border:1px solid transparent;border-radius:8px;background:none}
#app.course-panel-open .course-steps .is-current{background:#e6eccf;border-color:#d6e0b7;color:#294c32}
#app.course-panel-open .step-dot{width:19px;height:19px;border-radius:50%;background:#e9edde;color:#7c8c69;font-size:8px}
#app.course-panel-open .course-steps .is-current .step-dot{background:#2d5238;color:#eef1d6}
#app.course-panel-open .course-steps .is-complete .step-dot{background:#dfe8c6;color:#587044}
#app.course-panel-open .step-name,#app.course-panel-open .step-score{display:block;font-size:9px}
#app.course-panel-open .step-name small{display:none}#app.course-panel-open .course-steps li::before,#app.course-panel-open .course-steps li::after{display:none}
#app.course-panel-open .course-advice{display:flex;margin-top:auto;padding:10px;background:#eeecd9;border-radius:10px}
#app.course-panel-open .course-advice h2,#app.course-panel-open .advice-spark{display:block}#app.course-panel-open .course-advice p{font-size:9px}
#app.course-panel-open .course-turn{display:flex;margin-top:13px;padding-top:12px}
@media(min-width:1500px){#app.course-session{padding-inline:24px;column-gap:24px}#app.course-session.course-panel-open{grid-template-columns:minmax(0,1fr) 264px;column-gap:20px}}
@media(max-width:900px){
  #app.course-session,#app.course-session.course-panel-open{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:46px 30px auto minmax(0,1fr) auto;grid-template-areas:"hud hud" "players panel" "online online" "stage stage" "shots shots";column-gap:9px;padding:calc(4px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .course-session #hud{gap:13px;padding:0 0 4px}.course-session #hud .stat{padding-left:13px;gap:5px}.course-session #hud .lbl{font-size:7px}.course-session #hud .val,.course-session #hud .stat:nth-child(3) .val{font-size:21px}.course-session #hud .stat:nth-child(3){padding:7px 10px;gap:6px}.course-session #hud .stat:nth-child(3) .lbl{font-size:7px}
  .course-session #hud .ibtn{width:42px;height:42px}.course-session #players{padding-bottom:4px}.course-session .chip{font-size:9px;padding:3px 7px 3px 3px;gap:5px}.course-session .cname{max-width:90px}.course-session .cscore{font-size:8px}.course-session .chip.on .cname::before{display:none}
  #app.course-session:not(.course-panel-open) .hole-brief{gap:6px}#app.course-session:not(.course-panel-open) .hole-brief h1{font-size:11px}#app.course-session:not(.course-panel-open) .course-kicker{display:none}#app.course-session:not(.course-panel-open) .course-par{font-size:6px;padding:3px 5px}
  .course-session #stage{border-radius:12px}.course-session #shot-controls{padding:3px 0 0}.course-session .shot-topline{gap:7px;min-height:44px}.course-session .shot-power{gap:6px}.course-session .power-label{font-size:7px}.course-session #shot-percent{font-size:10px;width:28px}.course-session .power-track{min-width:20px}
  .course-session #bAudioSettings,.course-session #bControls,.course-session #bCoursePanel{padding:6px 8px;font-size:9px;min-height:44px}.course-session .shot-actions{gap:3px}
  #app.course-session.course-panel-open #course-panel{position:fixed;z-index:8;right:max(8px,env(safe-area-inset-right));top:calc(53px + env(safe-area-inset-top));bottom:calc(56px + env(safe-area-inset-bottom));width:min(285px,calc(100% - 28px));max-height:calc(100dvh - 120px);box-shadow:0 12px 45px #173d2e33;padding:17px;overscroll-behavior:contain}
  #app.course-panel-open .course-brand{padding-bottom:13px;margin-bottom:15px}#app.course-panel-open .course-kicker{font-size:8px}#app.course-panel-open .course-par{margin:0;order:0}
  #app.course-panel-open .course-route{margin:17px 0}#app.course-panel-open .course-steps{gap:2px}#app.course-panel-open .course-steps li{min-height:29px}#app.course-panel-open .step-name{font-size:10px}
  .course-session .sound-panel{top:54px;right:9px}
}
@media(max-width:470px){
  .course-session #hud{gap:7px}.course-session #hud .stat{padding-left:7px;gap:4px}.course-session #hud .lbl{font-size:6px;letter-spacing:.035em}.course-session #hud .val,.course-session #hud .stat:nth-child(3) .val{font-size:19px}.course-session #hud .stat:nth-child(3){padding:7px 8px;gap:4px}.course-session #hud .stat:nth-child(3) .lbl{font-size:6px}.course-session #hud .btns{gap:3px}.course-session #hud .ibtn{width:40px;height:42px}
  .course-session .power-label{display:none}.course-session .shot-power{gap:6px}.course-session #bAudioSettings,.course-session #bControls,.course-session #bCoursePanel{padding:6px 7px;font-size:8px}.course-session .shot-topline{gap:7px}.course-session .power-track{min-width:20px;max-width:100px}
}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
  #app.course-session,#app.course-session.course-panel-open{grid-template-rows:43px auto minmax(0,1fr) 44px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"hud players" "online online" "stage stage" "shots shots";padding-top:max(3px,env(safe-area-inset-top));padding-bottom:max(3px,env(safe-area-inset-bottom))}
  .course-session #hud{gap:8px}.course-session #hud .stat{padding-left:8px;gap:4px}.course-session #hud .val,.course-session #hud .stat:nth-child(3) .val{font-size:18px}.course-session #hud .lbl{font-size:6px}.course-session #hud .stat:nth-child(3){padding:7px 8px}.course-session #hud .ibtn{width:40px;height:40px}.course-session #players{justify-content:flex-end;padding-bottom:4px}.course-session #hud .btns{margin-left:4px}
  #app.course-session:not(.course-panel-open) #course-panel{display:none}.course-session #stage{border-radius:9px}.course-session #shot-controls{padding-top:0}.course-session .shot-topline{min-height:44px}.course-session #bAudioSettings,.course-session #bControls,.course-session #bCoursePanel{min-height:42px}.course-session #toast{top:7px;padding:7px 12px;font-size:10px}
  #app.course-session.course-panel-open #course-panel{top:46px;bottom:48px;max-height:none}.course-session .sound-panel{top:47px}
}
