.g3-root{--g3-active:#f0785d;--g3-forest:#183e35;--g3-lime:#d4ef83;color:var(--ink,#202842);max-width:1150px;margin:auto;font-family:inherit}.g3-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.g3-eyebrow{font-size:10px;font-weight:850;letter-spacing:1.9px;color:#527466}.g3-title{font-size:26px;letter-spacing:-.7px;margin:3px 0 0;line-height:1.1}.g3-hole-badge{background:#e8f0e5;border:1px solid #d5e0d1;color:#345241;border-radius:20px;padding:8px 12px;font-size:12px;font-weight:800;white-space:nowrap}.g3-stage{position:relative;overflow:hidden;border-radius:19px;background:linear-gradient(#c9e6ef,#eaf5e9);height:clamp(280px,48vw,560px);min-height:260px;isolation:isolate;box-shadow:inset 0 0 0 1px #25483419}.g3-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.g3-dragging .g3-canvas{cursor:grabbing}.g3-course-hud{position:absolute;inset:14px 14px auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none}.g3-distance-box{display:flex;flex-direction:column;align-items:flex-start;background:#143a33e8;color:white;border:1px solid #ffffff36;box-shadow:0 8px 25px #0e312c1b;border-radius:13px;padding:10px 15px;min-width:100px;backdrop-filter:blur(8px)}.g3-active-name{max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:800;color:#d4edbe}.g3-distance-value{font-size:30px;font-weight:850;line-height:1.2;letter-spacing:-1px}.g3-lie{font-size:11px;color:#d8e6db}.g3-button{font:inherit;cursor:pointer;border:1px solid #d5e0d7;border-radius:11px;background:#fff;color:#294a3a;min-height:44px;font-weight:750;touch-action:none;-webkit-tap-highlight-color:transparent;transition:background .15s,box-shadow .15s}.g3-button:focus-visible,.g3-range:focus-visible{outline:3px solid #b5c976;outline-offset:3px}.g3-button:disabled{opacity:.5;cursor:default}.g3-view-button{pointer-events:auto;background:#ffffffec;font-size:12px;padding:9px 13px;border-color:#fff;box-shadow:0 5px 16px #163c3114}.g3-view-button[aria-pressed=true]{background:#e4f0cf}.g3-bottom-hud{position:absolute;inset:auto 13px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px;pointer-events:none}.g3-wind,.g3-camera-note{background:#163e32d9;color:#fff;border:1px solid #ffffff2a;font-weight:700;font-size:11px;padding:7px 10px;border-radius:9px;backdrop-filter:blur(6px)}.g3-camera-note{background:#ffffffdd;color:#365b45}.g3-player-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.g3-player-grid.g3-solo{grid-template-columns:1fr}.g3-player{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #dce5dc;border-radius:12px;background:#f7f9f4;min-width:0}.g3-player.is-active{border-color:var(--g3-player-color);box-shadow:inset 3px 0 var(--g3-player-color);background:white}.g3-player.is-holed{background:#e7f2e4}.g3-player-identity{display:flex;align-items:center;gap:7px;min-width:0}.g3-player-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px}.g3-avatar{font-size:19px}.g3-player-result{font-size:11px;font-weight:700;line-height:1.4;text-align:right;color:#55715c;flex-shrink:0}.g3-shot-panel{background:#f3f6ee;border:1px solid #dce5d5;border-radius:16px;padding:12px}.g3-clubs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.g3-club{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;text-align:left;column-gap:9px;padding:10px 12px;min-height:61px}.g3-club-icon{grid-row:1/3;align-self:center;display:grid;place-items:center;width:30px;height:34px;background:#e8eee1;border-radius:9px;color:#537247;font-size:17px;font-weight:900}.g3-club strong{font-size:13px;align-self:end}.g3-club small{font-size:11px;font-weight:600;color:#74906e}.g3-club[aria-pressed=true]{background:var(--g3-forest);border-color:var(--g3-forest);color:#fff;box-shadow:0 4px 10px #204a3420}.g3-club[aria-pressed=true] .g3-club-icon{background:var(--g3-lime);color:#25422c}.g3-club[aria-pressed=true] small{color:#d8e8c1}.g3-adjustments{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:12px 1px}.g3-range-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:750;color:#5a7053;margin-bottom:5px}.g3-range-title strong{color:#203f2c;font-size:13px}.g3-range-row{display:flex;gap:8px;align-items:center}.g3-step{min-width:40px;width:40px;min-height:40px;flex-shrink:0;font-size:22px;line-height:1;padding:0;background:#fff}.g3-range{min-width:0;width:100%;height:35px;cursor:pointer;accent-color:#52774b;touch-action:none}.g3-shot-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #d8e3cf;padding-top:10px}.g3-prediction{display:flex;flex-direction:column;gap:3px;min-width:0}.g3-prediction strong{font-size:14px;color:#29472e}.g3-prediction span{font-size:11px;color:#6b7d60;line-height:1.35}.g3-prediction.g3-warning span{color:#a9592f;font-weight:750}.g3-hit{background:var(--g3-forest);color:#fff;border:0;padding:12px 30px;border-radius:11px;min-width:150px;min-height:48px;font-size:15px;box-shadow:0 5px 12px #1e493727}.g3-hit:not(:disabled):active{transform:translateY(1px);background:#285b45}.g3-status{font-size:12px;font-weight:750;color:#3e6045;line-height:1.5;margin:10px 0 5px;min-height:18px}.g3-hint{font-size:12px;line-height:1.5;color:#6d7f69;margin:5px 0}.g3-keyboard{font-size:10px;color:#7e8d77;line-height:1.4;margin:3px 0}.g3-render-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;background:#eff4e9;color:#2c4935;z-index:5}.g3-render-error strong{font-size:20px}.g3-render-error p{max-width:400px;font-size:14px;line-height:1.6}
@media(pointer:coarse){.g3-keyboard{display:none}.g3-step{min-width:44px;width:44px;min-height:44px}.g3-range{height:44px}}
@media(max-width:700px){.g3-title{font-size:20px}.g3-hole-badge{font-size:10px;padding:7px 9px}.g3-heading{gap:7px}.g3-stage{height:350px}.g3-player{padding:8px;flex-wrap:wrap;gap:3px}.g3-player-result{font-size:10px}.g3-player-name{font-size:12px}.g3-shot-panel{padding:9px}.g3-clubs{gap:5px}.g3-club{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 4px;text-align:center;min-height:68px}.g3-club-icon{width:26px;height:23px;border-radius:6px;font-size:13px}.g3-club strong{font-size:11px;align-self:center}.g3-club small{font-size:10px}.g3-adjustments{gap:12px;padding:9px 0}.g3-range-row{gap:4px}.g3-step{min-width:32px;width:32px;min-height:44px;font-size:20px}.g3-hit{padding:10px 18px;min-width:125px;font-size:14px}.g3-prediction strong{font-size:12px}.g3-prediction span{font-size:10px}.g3-course-hud{inset:10px 10px auto}.g3-distance-box{padding:8px 11px;min-width:82px}.g3-distance-value{font-size:25px}.g3-active-name{max-width:120px;font-size:10px}.g3-view-button{font-size:10px;padding:7px 10px;max-width:130px}.g3-bottom-hud{inset:auto 9px 9px}.g3-wind,.g3-camera-note{font-size:9px;padding:6px 8px}.g3-status,.g3-hint{font-size:11px}}
@media(max-width:430px){.g3-stage{height:300px;min-height:250px}.g3-title{font-size:17px}.g3-eyebrow{font-size:8px;letter-spacing:1.4px}.g3-hole-badge{font-size:9px}.g3-player-grid{gap:7px;margin:9px 0}.g3-player-result{width:100%;text-align:left;padding-left:25px}.g3-player-name{max-width:110px}.g3-adjustments{gap:10px}.g3-step{min-width:30px;width:30px}.g3-shot-footer{gap:6px}.g3-hit{min-width:105px;padding:10px 13px}.g3-prediction span{max-width:170px}.g3-hint{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.g3-root{max-width:1150px}.g3-heading{margin-bottom:7px}.g3-stage{height:clamp(270px,69dvh,390px)}.g3-title{font-size:21px}.g3-shot-panel{padding:9px}.g3-clubs{grid-template-columns:repeat(4,1fr)}.g3-player-grid{margin:8px 0}.g3-course-hud{inset:10px 12px auto}.g3-distance-value{font-size:24px}.g3-distance-box{padding:7px 11px}}
/* A turn-based game can use vertical space on a phone: keep the actual shot
   controls readable instead of shrinking them to fit an arcade-sized panel. */
.g3-root{font-size:16px}.g3-heading{flex-wrap:wrap}.g3-heading>div{flex:1 1 200px}.g3-eyebrow{font-size:12px}.g3-title{font-size:26px}.g3-hole-badge{font-size:14px;white-space:normal;line-height:1.45}.g3-active-name{font-size:14px}.g3-lie{font-size:12px}.g3-view-button{font-size:14px;min-height:44px}.g3-wind,.g3-camera-note{font-size:12px}.g3-player-name{font-size:14px}.g3-player-result{font-size:12px}.g3-club strong{font-size:14px}.g3-club small{font-size:12px}.g3-range-title,.g3-range-title strong{font-size:14px}.g3-step{min-width:44px;width:44px;min-height:44px}.g3-prediction strong{font-size:14px}.g3-prediction span{font-size:12px}.g3-status,.g3-hint{font-size:14px;line-height:1.5}.g3-keyboard{font-size:12px}.g3-adjustment{min-width:0}.g3-adjustments{column-gap:12px}.g3-range-row{gap:4px}
@media(max-width:700px){.g3-heading>div{flex-basis:190px}.g3-title{font-size:22px}.g3-hole-badge{padding:7px 10px}.g3-club{min-height:82px;padding:8px 3px}.g3-club-icon{width:28px;height:25px;font-size:14px}.g3-view-button{max-width:155px;padding:7px 10px}.g3-active-name{max-width:130px}.g3-distance-box{min-width:95px}.g3-player-result{font-size:12px}.g3-player-name{max-width:150px}.g3-shot-footer{align-items:flex-start}.g3-hit{font-size:16px;min-height:48px}.g3-status{margin-top:12px}.g3-camera-note{max-width:180px;text-align:right}.g3-hint{margin-top:7px}}
@media(max-width:430px){.g3-title{font-size:20px}.g3-eyebrow{letter-spacing:1.2px}.g3-hole-badge{font-size:14px}.g3-player-name{max-width:110px}.g3-player-result{padding-left:0}.g3-view-button{max-width:135px}.g3-camera-note{max-width:155px;font-size:12px}.g3-wind{font-size:12px}.g3-clubs{gap:4px}.g3-club strong{font-size:14px}.g3-club small{font-size:12px}.g3-step{min-width:44px;width:44px;min-height:44px}.g3-range-title{font-size:14px}.g3-prediction span{max-width:170px}.g3-hit{min-width:110px}.g3-hint{font-size:14px}}

/* Keep the course and the shot controls in view together. The shared match
   strip repeats the scorecards below, so the active golf screen uses its own HUD. */
.play-shell:has(.g3-root){max-width:1360px;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.play-shell:has(.g3-root)>.play-top{min-height:44px;margin-bottom:6px;gap:10px}
.play-shell:has(.g3-root) .play-title p,.play-shell:has(.g3-root)>.match-strip{display:none}
.play-shell:has(.g3-root) .play-title h1{font-size:20px;line-height:1.2}
.play-shell:has(.g3-root) .play-top-actions .icon-btn{width:44px;height:44px}
.play-shell:has(.g3-root) .arena.shared{max-width:none}
.play-shell:has(.g3-root) .arena.shared>.player-panel{border:0;border-radius:16px}
.play-shell:has(.g3-root) .game-content{min-height:0;padding:8px;overflow:visible}
.play-shell:has(.g3-root) .round-footer{margin:2px auto 0;min-height:36px;gap:0}
.play-shell:has(.g3-root) .round-footer>span{display:none}
.play-shell:has(.g3-root) .round-footer button{font-size:14px;min-height:36px;padding:8px 14px}
.g3-range{height:44px}

@media(orientation:landscape) and (min-width:520px){
 .g3-root{max-width:1280px;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.58fr);grid-template-areas:"heading heading" "stage players" "stage shot" "stage status" "stage hint" "stage keyboard";grid-template-rows:auto auto auto auto 1fr auto;gap:8px 16px;align-items:start}
 .g3-heading{grid-area:heading;margin:0 0 2px;min-width:0}
 .g3-heading>div{flex:1 1 auto;min-width:0}
 .g3-stage{grid-area:stage;width:100%;height:clamp(340px,calc(100dvh - 210px),650px);min-height:0;align-self:stretch}
 .g3-player-grid{grid-area:players;margin:0;gap:8px;min-width:0;align-self:start}
 .g3-player{flex-wrap:wrap;gap:3px 8px;padding:8px 10px}
 .g3-player-identity{width:100%}
 .g3-player-name{max-width:100%;font-size:14px}
 .g3-player-result{width:100%;text-align:left;padding-left:0;font-size:12px;line-height:1.3}
 .g3-shot-panel{grid-area:shot;min-width:0;padding:10px;align-self:start}
 .g3-clubs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .g3-club{min-width:0;min-height:54px;padding:7px 8px;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;text-align:left;gap:1px 7px}
 .g3-club-icon{width:28px;height:30px;font-size:16px}
 .g3-club strong{font-size:14px;align-self:end}
 .g3-club small{font-size:12px}
 .g3-adjustments{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0}
 .g3-range-title{font-size:14px;margin-bottom:3px}
 .g3-range-title strong{font-size:14px}
 .g3-range-row{gap:4px}
 .g3-step{min-width:44px;width:44px;min-height:44px}
 .g3-range{height:44px}
 .g3-shot-footer{gap:8px;padding-top:8px;align-items:center}
 .g3-hit{min-width:118px;min-height:48px;padding:9px 16px;font-size:16px}
 .g3-prediction strong{font-size:14px}
 .g3-prediction span{font-size:12px;line-height:1.3}
 .g3-status{grid-area:status;margin:0;min-height:0;font-size:14px;line-height:1.4}
 .g3-hint{grid-area:hint;align-self:start;margin:0;font-size:14px;line-height:1.4}
 .g3-keyboard{grid-area:keyboard;margin:0;font-size:12px;line-height:1.35}
}

@media(orientation:landscape) and (min-width:520px) and (max-height:600px){
 .play-shell:has(.g3-root){padding:4px max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .play-shell:has(.g3-root)>.play-top{margin-bottom:3px;gap:8px}
 .play-shell:has(.g3-root) .play-brand{display:none}
 .play-shell:has(.g3-root) .play-title{text-align:left;min-width:0;flex:1}
 .play-shell:has(.g3-root) .play-title h1{font-size:18px}
 .play-shell:has(.g3-root) .game-content{padding:4px}
 .play-shell:has(.g3-root) .round-footer{margin-top:0}
 .g3-root{grid-template-columns:minmax(0,1fr) clamp(238px,36vw,290px);grid-template-areas:"heading shot" "stage shot" "players shot" "status status";grid-template-rows:auto minmax(0,1fr) auto auto;gap:5px 8px;align-items:start}
 .g3-heading{flex-wrap:nowrap;justify-content:flex-start;gap:6px;margin:0;min-height:28px}
 .g3-heading>div{display:none}
 .g3-hole-badge{font-size:14px;line-height:1.3;padding:4px 8px;border-radius:9px;white-space:nowrap}
 .g3-stage{height:clamp(120px,calc(100dvh - 215px),385px);min-height:0;border-radius:12px;align-self:stretch}
 .g3-player-grid{gap:6px;align-self:start}
 .g3-player{min-height:42px;padding:4px 6px;gap:1px;border-radius:9px}
 .g3-player-identity{gap:4px}
 .g3-player-name{font-size:14px;max-width:130px}
 .g3-avatar{font-size:16px}
 .g3-player-result{font-size:12px;line-height:1.25;white-space:normal}
 .g3-shot-panel{padding:6px;align-self:stretch;border-radius:12px;display:flex;flex-direction:column;justify-content:space-between;gap:4px}
 .g3-clubs{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .g3-club{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;padding:4px 2px;gap:2px;text-align:center;border-radius:8px}
 .g3-club-icon{display:none}
 .g3-club strong{font-size:14px;line-height:1.2;align-self:center;white-space:nowrap}
 .g3-club small{font-size:12px;line-height:1.2}
 .g3-adjustments{grid-template-columns:minmax(0,1fr);gap:4px;padding:3px 0}
 .g3-range-title{font-size:14px;line-height:1.2;margin-bottom:1px}
 .g3-range-row{gap:4px}
 .g3-step{min-width:44px;width:44px;min-height:44px;font-size:20px}
 .g3-range{height:44px}
 .g3-shot-footer{gap:6px;padding-top:5px;align-items:center}
 .g3-prediction strong{font-size:14px;line-height:1.2}
 .g3-prediction span{font-size:12px;line-height:1.2;overflow-wrap:anywhere;max-width:none}
 .g3-hit{min-width:105px;min-height:48px;padding:7px 10px;font-size:14px;line-height:1.2}
 .g3-status{font-size:14px;line-height:1.3;margin:0;min-height:0}
 .g3-hint,.g3-keyboard{display:none}
 .g3-course-hud{inset:7px 7px auto;gap:6px}
 .g3-distance-box{min-width:80px;padding:5px 8px;border-radius:9px}
 .g3-distance-value{font-size:23px}
 .g3-active-name{max-width:108px;font-size:14px;line-height:1.2}
 .g3-lie{font-size:12px;line-height:1.2}
 .g3-view-button{font-size:14px;min-height:44px;padding:6px 8px;max-width:130px;line-height:1.2}
 .g3-bottom-hud{inset:auto 7px 7px}
 .g3-wind{font-size:12px;padding:4px 7px;line-height:1.2}
 .g3-camera-note{display:none}
}
