/* G9 visual system. The course remains the game, not a decorative backdrop.
   Home-only layout rules are scoped away from the native TV overscan layout. */
:root{--bg:#0a251e;--panel:#12392d;--ink:#f4f4e9;--muted:#bdcec1;--line:#36594b;--lime:#d0ed84}
html:not(.fire-tv) body{background:radial-gradient(ellipse at 50% 0,#153c2e 0,#0a251e 62%)}
html:not(.fire-tv) #lobby{max-width:1100px;padding:30px 0 40px}
html:not(.fire-tv) #lobby .lobby-intro{margin-bottom:24px;text-align:left}
html:not(.fire-tv) #lobby .lobby-intro h1{justify-content:flex-start;font-size:clamp(30px,3.2vw,44px);line-height:1.1}
html:not(.fire-tv) #lobby .lobby-intro .lede{margin:10px 0 0;max-width:none;font-size:16px}
html:not(.fire-tv) #lobby .lobby-actions{display:grid;grid-template-columns:1fr;gap:14px}
html:not(.fire-tv) #lobby .lobby-actions>.daily-game{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);min-height:330px;padding:0;gap:0;background:#10382d;color:var(--ink);border:1px solid #53715b;border-radius:18px;overflow:hidden;box-shadow:0 12px 36px #00150e38}
#lobby .daily-course-copy{position:relative;z-index:1;padding:32px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px}
#lobby .daily-course-copy h2{font-size:clamp(40px,4.6vw,64px);line-height:1.04;margin:0 0 4px;color:var(--ink)}
#lobby .daily-course-copy>p{max-width:390px;margin:0;color:#d6e2d7;font-size:16px;line-height:1.55}
#lobby .daily-course-copy .daily-label{font-size:14px;font-variant-numeric:tabular-nums;color:#e5eccf;margin-top:3px}
#lobby .daily-course-copy #daily-reset{font-size:13px;color:var(--muted)}
html:not(.fire-tv) #lobby .lobby-actions>.daily-game #start{width:min(100%,280px);min-height:52px;margin:8px 0 0;background:var(--lime);color:#132b20;border:1px solid var(--lime);border-radius:9px;box-shadow:none;font-size:17px}
html:not(.fire-tv) #lobby .lobby-actions>.daily-game #start:hover{background:#e0f4a9;border-color:#e0f4a9}
#lobby .daily-course-visual{display:block!important;position:relative;min-height:330px;height:100%;margin:0;border:0;border-radius:0;overflow:hidden;background:#456342}
#lobby .daily-course-visual canvas{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:330px;object-fit:contain}
#lobby .home-practice,#lobby .home-learn{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-height:64px;padding:16px 20px;border:1px solid #496b52;border-radius:11px;background:#183e2d;color:var(--ink);text-decoration:none}
#lobby .home-practice strong,#lobby .home-learn strong{font-size:18px;line-height:1.3}
#lobby .home-practice span,#lobby .home-learn span{color:var(--muted);font-size:14px;line-height:1.4}
#lobby a.home-practice:hover,#lobby .home-learn:hover{background:#214b35}
#lobby .home-more{border-top:1px solid var(--line);padding-top:4px;margin-top:4px}
#lobby .home-more>summary{min-height:50px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;color:#d3e0d4;font-size:15px;list-style:none}
#lobby .home-more>summary::after{content:'+';font-size:22px;color:var(--lime)}
#lobby .home-more[open]>summary::after{content:'−'}
#lobby .home-more .home-minis{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0;min-height:0}
#lobby .home-more .home-minis h2{font-size:22px}
#lobby .home-more .links-home,#lobby .career-home{min-height:56px;background:#12382b;border-color:#365748;border-radius:9px}
#lobby .game-settings,#lobby .home-clubhouse{border-color:#365748;background:transparent}
html:not(.fire-tv) #playing .course-panel{border-color:#44664f;box-shadow:none}
html:not(.fire-tv) #playing .shot-panel{background:#103329;border-color:#36594b;box-shadow:none}
html:not(.fire-tv) #playing .swing-dial{border-color:#46644b;background:#0d2d23}
html:not(.fire-tv) #playing .map-button{background:#0b281eea;border-color:#b5c9ae66;color:#fff}
html:not(.fire-tv) #playing .green-read-tip{color:#e7edd8;background:#103127;border-color:#36594b;font-size:14px}
html:not(.fire-tv) #playing .aim-toolbar{background:#10342a}
html:not(.fire-tv) #playing .course-metrics{border-color:#36594b}
/* Non-layout polish deliberately leaves the established mobile controller intact. */
#playing .hole-banner{background:#0a241be8;backdrop-filter:none}
#playing .hole-banner strong{font-size:clamp(36px,6vw,68px)}
#playing .putting-commentary{border-color:#49684d}
@media(min-width:901px){
 html:not(.fire-tv) #playing .play-grid{grid-template-columns:minmax(0,1fr) minmax(286px,31%)}
}
@media(max-width:650px){
 html:not(.fire-tv) #lobby{padding:20px 0 32px}
 html:not(.fire-tv) #lobby .lobby-intro{margin-bottom:18px}
 html:not(.fire-tv) #lobby .lobby-intro h1{font-size:30px}
 html:not(.fire-tv) #lobby .lobby-intro .lede{font-size:14px;margin-top:8px}
 html:not(.fire-tv) #lobby .lobby-actions>.daily-game{grid-template-columns:1fr;min-height:0;border-radius:13px}
 #lobby .daily-course-copy{padding:22px;gap:9px}
 #lobby .daily-course-copy h2{font-size:42px}
 #lobby .daily-course-copy>p{font-size:15px}
 #lobby .daily-course-visual{grid-row:1;min-height:135px;height:135px}
 #lobby .daily-course-visual canvas{min-height:135px;height:135px}
 html:not(.fire-tv) #lobby .lobby-actions>.daily-game #start{width:100%;margin-top:5px}
 #lobby .home-practice,#lobby .home-learn{padding:14px 16px;min-height:64px;flex-wrap:wrap;gap:5px}
}
@media(prefers-reduced-motion:reduce){#lobby *,#playing *{scroll-behavior:auto}}
/* Practice is one open row, not a card inside a card. */
#lobby div.home-practice{padding:0;background:transparent;border:0;gap:16px;flex-wrap:wrap}
#lobby div.home-practice .home-learn{flex:1 1 280px;justify-content:center;text-align:center;min-height:58px;padding:14px 18px;font-weight:700}
#lobby div.home-practice #home-practice{min-height:48px;display:flex;align-items:center;justify-content:center;flex:0 1 auto;padding:10px 6px;color:var(--muted);font-size:15px}
#first-shots{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:12px 16px;margin:10px 0 14px;background:#123b2b;border-left:3px solid var(--lime);border-radius:6px}
#first-shots-title{font-size:16px;line-height:1.4;color:#f4f4e9}
#first-shots-note{font-size:14px;line-height:1.45;color:#d5e3d5;max-width:640px}
.first-shots-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.first-shots-actions .primary{width:auto;min-height:44px;padding:9px 16px;font-size:15px}
.first-shots-actions .secondary,.first-shots-actions .quiet-link{min-height:44px;padding:8px 12px;font-size:14px}
@media(max-width:650px){
 #lobby div.home-practice{gap:4px}
 #lobby div.home-practice .home-learn{flex-basis:100%}
 #lobby div.home-practice #home-practice{flex-basis:100%;min-height:44px;padding:6px}
 #first-shots{padding:10px 12px;gap:6px;margin:8px 0}
 #first-shots-note{font-size:13px}
 .first-shots-actions{width:100%;gap:6px}
}
/* Phase changes are state feedback, not a looping distraction on the course. */
html:not(.fire-tv) #playing .swing-dial[data-phase=power]{border-color:#9ab963}
html:not(.fire-tv) #playing .swing-dial[data-phase=impact]{border-color:#e1ba70}
#lobby .daily-course-visual>figcaption{position:absolute;inset:auto 0 0;padding:42px 18px 16px;background:linear-gradient(transparent,#0b251eef);pointer-events:none;color:#f4f4e9}
#lobby .daily-course-visual>figcaption strong{display:block;font:400 22px/1.15 Georgia,serif}
#lobby .daily-course-visual>figcaption span{display:block;margin-top:5px;font-size:12px;color:#d7e8b3}
#lobby .daily-course-copy .daily-fairness{font-size:12px;line-height:1.5;color:var(--muted)}
@media(max-width:650px){#lobby .daily-course-visual>figcaption{padding:28px 14px 9px}#lobby .daily-course-visual>figcaption strong{font-size:18px}#lobby .daily-course-visual>figcaption span{font-size:11px;margin-top:3px}}
#lobby .daily-course-visual>figcaption{z-index:1}
/* Guided practice may grow with text zoom. Keep every action reachable instead
   of shrinking the course/dial to zero inside the ordinary fixed game shell. */
#first-shots{flex:none}
html.mini-active:not(.mini-tv):has(#first-shots:not([hidden])) main{overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:24px}
html.mini-active:not(.mini-tv) #mini-playing:has(#first-shots:not([hidden])){height:auto;min-height:100%}
html.mini-active:not(.mini-tv) #mini-playing:has(#first-shots:not([hidden])) .mini-layout{flex:1 0 420px;min-height:420px}
html.mini-active:not(.mini-tv) #mini-playing:has(#first-shots:not([hidden])) .mini-controls{overflow:auto}
@media(max-width:950px) and (orientation:portrait){
 html.mini-active:not(.mini-tv) #mini-playing:has(#first-shots:not([hidden])) .mini-layout{flex-basis:520px;min-height:520px}
 html.mini-active:not(.mini-tv) #mini-playing:has(#first-shots:not([hidden])) .mini-course{min-height:220px}
 html.mini-active:not(.mini-tv) #mini-playing:has(#first-shots:not([hidden])) .mini-controls{min-height:280px;max-height:none}
}
@media(max-width:950px) and (orientation:landscape){html.mini-active:not(.mini-tv) #mini-playing:has(#first-shots:not([hidden])) .mini-layout{flex-basis:340px;min-height:340px}}
