/* Highland Mini Golf: one estate scene behind the match controls. */
#app > .golf-shell,
#app .online-game-panel > .golf-shell {position:relative;isolation:isolate;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);background:#cfddcf;color:#554d3d;}
#app .golf-shell .site-header {height:62px;min-height:62px;border:0;z-index:4;padding:6px max(14px,env(safe-area-inset-left,0px));}
#app .golf-shell .brand-button,#app .golf-shell .pause-game {width:44px;height:44px;min-height:44px;min-width:44px;padding:0;border:1px solid #b8a46d;background:linear-gradient(#fffdf2,#e9e0c8);border-radius:50%;box-shadow:0 2px 6px #263b3033;color:#51483a;font-size:0;}
#app .golf-shell .brand-mark,#app .golf-shell .brand-dot,#app .golf-shell .all-games,#app .golf-shell .reset-game,#app .golf-shell .fullscreen-button {display:none;}
#app .golf-shell .brand-button::before {content:'⌂';font:30px Georgia,serif;}
#app .golf-shell .pause-game {position:absolute;top:calc(env(safe-area-inset-top,0px) + 9px);right:max(14px,env(safe-area-inset-right,0px));z-index:5;}
#app .golf-shell .pause-game::before {content:'Ⅱ';font:27px Georgia,serif;}
#app .golf-shell .game-title-row {position:absolute;top:calc(env(safe-area-inset-top,0px) + 8px);left:66px;right:66px;z-index:3;justify-content:center;margin:0;pointer-events:none;}
#app .golf-shell .game-title-row>div:first-child {background:linear-gradient(#fffaf0,#eee5cb);border:1px solid #bca468;box-shadow:0 2px 6px #263b3033,inset 0 0 0 3px #fff9e5;border-radius:22px;padding:10px 25px;}
#app .golf-shell .game-title-row h1 {font:700 clamp(21px,3vw,34px)/1 Georgia,serif;letter-spacing:-.6px;white-space:nowrap;color:#4d4638;}
#app .golf-shell .eyebrow,#app .golf-shell .purple,#app .golf-shell .round-tag {display:none;}
#app .golf-shell .arcade-main {padding:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:36px 30px minmax(0,1fr);gap:4px;}
#app .golf-shell .scoreboard {grid-row:1;grid-column:1;display:flex;justify-content:center;gap:7px;margin:0 auto;width:min(600px,calc(100% - 24px));z-index:3;}
#app .golf-shell .score-tile {flex:1;max-width:145px;padding:5px 8px;justify-content:center;gap:7px;border-radius:16px;background:color-mix(in srgb,var(--player) 28%,#fff9e9);border:1px solid #c8b88f;box-shadow:0 2px 4px #33443125;color:#594f3e;}
#app .golf-shell .score-tile strong {font-size:11px;}
#app .golf-shell .score-tile b {font-size:12px;margin:0;color:#594f3e;letter-spacing:0;}
#app .golf-shell .score-tile.current-turn,#app .golf-shell .score-tile.is-current {outline:2px solid var(--player);outline-offset:1px;}
#app .golf-shell .score-tile .colour-dot {display:none;}
#app .golf-shell .arcade-toolbar {grid-row:2;grid-column:1;min-height:0;justify-content:center;z-index:3;}
#app .golf-shell .arcade-status {font:600 11px/1.2 system-ui;color:#4e4d38;background:#fff8e4e8;border:1px solid #d4c39a;border-radius:15px;padding:5px 12px;text-align:center;max-width:calc(100% - 16px);}
#app .golf-shell .arcade-stage:not(.card-stage) {position:absolute;inset:0;aspect-ratio:auto;width:100%;height:100%;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#739342;}
#app .golf-shell .arcade-canvas {display:block;width:100%;height:100%;object-fit:fill;touch-action:none;}
#app .golf-shell .arcade-controls {display:none;}
#app .golf-shell .golf-tools {position:absolute;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 10px);display:flex;align-items:center;justify-content:space-between;gap:8px;z-index:4;pointer-events:none;}
#app .golf-shell .golf-tools button {pointer-events:auto;min-height:40px;min-width:64px;background:#fff9e8ec;border:1px solid #b7a46f;border-radius:18px;color:#534c3e;font:600 11px system-ui;padding:9px 12px;box-shadow:0 2px 6px #273b3033;}
#app .golf-shell .golf-hole-name {font:600 11px Georgia,serif;color:#534c3e;background:#fff9e8e8;border:1px solid #b7a46f;border-radius:18px;padding:8px 14px;text-align:center;}
#app .golf-shell:has(>.arcade-overlay:not([hidden])) .golf-tools {visibility:hidden;}
#app .golf-shell>.arcade-overlay {position:absolute;inset:0;z-index:8;background:#344a334d;backdrop-filter:blur(5px);}
#app .golf-shell>.arcade-overlay[hidden] {display:none;}
#app .golf-shell .arcade-overlay-card {width:min(440px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:26px;background:linear-gradient(#fffdf2,#f0e7d1);border:2px solid #d5bd83;border-radius:24px;box-shadow:0 10px 40px #243a3440;color:#554d3e;}
#app .golf-shell .arcade-overlay-card h2 {font:700 30px/1.1 Georgia,serif;letter-spacing:-.5px;color:#514936;}
#app .golf-shell .arcade-overlay-card p {font:12px/1.7 system-ui;color:#72634e;}
#app .golf-shell .overlay-icon,#app .golf-shell .countdown-number {color:#8a976b;}
#app .golf-shell .primary {background:linear-gradient(#668c73,#416f5c);border:1px solid #304e41;color:#fff9e6;border-radius:14px;min-height:46px;}
#app .golf-shell .text-button {color:#5d6348;}
#app .golf-shell .golf-scorecard {width:100%;margin:12px auto 4px;border-collapse:collapse;font:clamp(10px,2.8vw,13px)/1.4 system-ui;font-variant-numeric:tabular-nums;color:#514936;}
#app .golf-shell .golf-scorecard caption {padding:0 0 8px;color:#5b674d;font-weight:700;}
#app .golf-shell .golf-scorecard :is(th,td) {padding:8px 4px;border-bottom:1px solid #d4c39a;text-align:center;}
#app .golf-shell .golf-scorecard th:first-child {text-align:left;white-space:nowrap;}
#app .golf-shell .golf-scorecard tr>*:last-child {background:#dce6cc;}
#app .golf-shell .golf-scorecard tbody th span {display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%;}
#app .golf-shell .arcade-overlay-card .golf-score-note {margin:4px 0 14px;font-size:11px;}
@media(max-width:460px){
 #app .golf-shell .game-title-row>div:first-child{padding:12px 10px;}
 #app .golf-shell .game-title-row h1{font-size:clamp(17px,5.1vw,24px);}
 #app .golf-shell .score-tile{padding:5px 4px;gap:4px;}#app .golf-shell .score-tile strong,#app .golf-shell .score-tile b{font-size:10px;}
 #app .golf-shell .golf-hole-name{font-size:10px;padding:8px;}
}
@media(max-height:500px){
 #app .golf-shell .site-header{height:52px;min-height:52px;}
 #app .golf-shell .game-title-row{top:5px;}#app .golf-shell .game-title-row>div:first-child{padding:9px 20px;}#app .golf-shell .game-title-row h1{font-size:24px;}
 #app .golf-shell .arcade-main{grid-template-rows:28px minmax(0,1fr);}
 #app .golf-shell .arcade-toolbar{position:absolute;top:54px;left:8px;max-width:47%;}
 #app .golf-shell .arcade-status{font-size:10px;}
 #app .golf-shell .scoreboard{width:48%;margin-left:auto;margin-right:12px;height:28px;}
 #app .golf-shell .score-tile strong,#app .golf-shell .score-tile b{font-size:9px;}
 #app .golf-shell .arcade-stage:not(.card-stage){grid-row:2;}
 #app .golf-shell .golf-tools{bottom:6px;}#app .golf-shell .golf-tools button{min-height:34px;}
}
#app .golf-shell .golf-camera-label{pointer-events:auto;display:flex;gap:6px;align-items:center;font:600 11px system-ui;color:#534c3e;background:#fff9e8ec;border:1px solid #b7a46f;border-radius:18px;padding:5px 9px;}
#app .golf-shell .golf-camera-label select{max-width:150px;min-height:32px;border:0;background:transparent;color:#534c3e;font:600 11px system-ui;}
@media(max-width:460px){#app .golf-shell .golf-camera-label{font-size:0;padding:3px 6px;}#app .golf-shell .golf-camera-label select{font-size:10px;max-width:113px;}#app .golf-shell .golf-hole-name{max-width:125px;}}

#app .golf-shell .arcade-canvas{position:absolute;inset:0;}
#app .golf-shell.golf-opening .scoreboard,#app .golf-shell.golf-opening .golf-camera-label{visibility:hidden;}
#app .golf-shell .golf-tools [hidden]{display:none;}
/* Keep the relocated pause control above the header's transparent hit area. */
#app .golf-shell .arcade-toolbar{z-index:5;}

/* Keep the active player's cue clear of the match HUD. */
#app .golf-shell .golf-turn-label{position:absolute;top:calc(env(safe-area-inset-top,0px) + 142px);left:50%;transform:translateX(-50%);z-index:3;border:1px solid var(--turn-colour);border-radius:18px;background:#fff9e8ed;padding:6px 12px;font:600 11px system-ui;color:#354835;pointer-events:none;white-space:nowrap;}
#app .golf-shell .golf-turn-label::before{content:'';display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--turn-colour);margin-right:7px;box-shadow:inset -2px -2px 3px #0003;}
#app .golf-shell .golf-turn-label[hidden]{display:none;}
@media(max-height:500px){#app .golf-shell .golf-turn-label{top:86px;}}
#app .golf-shell .golf-putt-speed{position:absolute;right:max(10px,env(safe-area-inset-right,0px));top:53%;transform:translateY(-50%);z-index:4;display:grid;justify-items:center;gap:4px;min-width:51px;padding:8px 5px;color:#534c3e;background:#fff9e8eb;border:1px solid #b7a46f;border-radius:14px;font:600 11px system-ui;pointer-events:none;}
#app .golf-shell .golf-putt-speed[hidden]{display:none;}
#app .golf-shell .golf-putt-track{position:relative;width:18px;height:clamp(60px,16dvh,110px);}
#app .golf-shell .golf-putt-track progress{position:absolute;top:50%;left:50%;width:clamp(56px,15dvh,103px);height:9px;transform:translate(-50%,-50%) rotate(-90deg);accent-color:var(--grip,#60906b);}
#app .golf-shell .golf-wind{position:absolute;left:max(10px,env(safe-area-inset-left,0px));top:max(177px,23%);z-index:4;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 6px;max-width:165px;padding:6px 10px;color:#3e5038;background:#fff9e8eb;border:1px solid #b7a46f;border-radius:15px;font:600 11px system-ui;pointer-events:none;}
#app .golf-shell .golf-wind[hidden]{display:none;}
#app .golf-shell .golf-wind-arrow{display:inline-block;font-size:16px;line-height:1;}
#app .golf-shell .golf-wind-advice{grid-column:1 / -1;line-height:1.3;}
@media(max-height:500px){#app .golf-shell .golf-wind{top:104px;}}

#app .golf-shell .golf-putt-speed[data-display="power"] .golf-speed-value{font-size:20px;font-weight:800;line-height:1.2;color:#244b35;font-variant-numeric:tabular-nums;}
#app .golf-shell .golf-putt-speed[data-display="power"] .golf-meter-title{font-size:13px;font-weight:800;}

/* Reserve independent navigation targets; Pause must not be positioned from the toolbar. */
#app .golf-shell .site-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;}
#app .shell.golf-shell .site-header button.game-home{position:static;inset:auto;grid-column:1;grid-row:1;align-self:center;}
#app .golf-shell .site-header .pause-game{position:static;inset:auto;grid-column:3;grid-row:1;z-index:5;}
#app .golf-shell .site-header .game-title-row{position:static;inset:auto;grid-column:2;grid-row:1;min-width:0;display:flex;justify-content:center;}
#app .golf-shell .site-header .game-title-row>div:first-child{min-width:0;max-width:100%;padding:7px 12px;}
#app .golf-shell .site-header .game-title-row h1{white-space:normal;text-align:center;font-size:clamp(16px,3vw,28px);line-height:1.05;}
#app .golf-shell .golf-turn-label{max-width:calc(100% - 28px);white-space:normal;text-align:center;box-sizing:border-box;}
@media(max-height:500px){
 #app .golf-shell .site-header{height:52px;min-height:52px;padding-block:4px;}
 #app .golf-shell .arcade-toolbar{top:calc(env(safe-area-inset-top,0px) + 56px);left:max(8px,env(safe-area-inset-left));max-width:46%;}
 #app .golf-shell .scoreboard{width:48%;margin-right:max(12px,env(safe-area-inset-right));}
 #app .golf-shell .golf-turn-label{top:calc(env(safe-area-inset-top,0px) + 92px);left:max(10px,env(safe-area-inset-left));transform:none;max-width:calc(100% - 90px);}
 #app .golf-shell .golf-wind{top:calc(env(safe-area-inset-top,0px) + 132px);max-width:150px;font-size:10px;padding:5px 8px;}

 #app .golf-shell .golf-putt-speed{top:52%;padding:5px;}
 #app .golf-shell .golf-putt-track{height:52px;}#app .golf-shell .golf-putt-track progress{width:48px;}
}

#app .golf-shell .golf-turn-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
#app .golf-shell .score-tile strong{min-width:0;overflow:hidden;text-overflow:ellipsis;}
#app .golf-shell .golf-wind{top:max(196px,23%);}
@media(max-height:500px){
 #app .golf-shell .arcade-status{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
 #app .golf-shell .golf-turn-label{top:calc(env(safe-area-inset-top,0px) + 100px);}
 #app .golf-shell .golf-wind{top:calc(env(safe-area-inset-top,0px) + 148px);}
}

#app .golf-shell .score-tile{flex-direction:column;gap:1px;}
#app .golf-shell .site-header [hidden]{display:none!important;}
#app .golf-shell[data-online="true"] .online-seat-badge{position:static;grid-column:3;grid-row:1;max-width:44px;justify-self:center;align-self:center;font:600 10px/1.15 system-ui;white-space:normal;text-align:center;}

#app .golf-shell .score-tile strong,#app .golf-shell .score-tile b{line-height:1.1;}
@media(max-height:500px){#app .golf-shell .score-tile{padding:3px 4px;}}

/* Use the usable screen width when a landscape phone has side safe areas. */
#app .golf-shell .golf-tools{left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));}
#app .golf-shell .golf-wind{top:max(calc(env(safe-area-inset-top,0px) + 196px),23%);}
@media(max-height:500px){
 #app .golf-shell .arcade-toolbar{max-width:calc((100% - max(8px,env(safe-area-inset-left,0px)) - max(12px,env(safe-area-inset-right,0px)))/2 - 6px);}
 #app .golf-shell .scoreboard{width:calc((100% - max(8px,env(safe-area-inset-left,0px)) - max(12px,env(safe-area-inset-right,0px)))/2 - 6px);}
 #app .golf-shell .golf-turn-label{max-width:calc(100% - max(10px,env(safe-area-inset-left,0px)) - max(10px,env(safe-area-inset-right,0px)) - 70px);}
 #app .golf-shell .golf-wind{top:calc(env(safe-area-inset-top,0px) + 148px);}
}
