*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#07110c;color:#f4f0e6}button,a{color:inherit;font:inherit}button{cursor:pointer}a{text-decoration:none}button{border:0;background:transparent}#surface{position:absolute;width:min(100vw,177.7778vh);height:min(100vh,56.25vw);left:50%;top:50%;transform:translate(-50%,-50%);container-type:inline-size;overflow:hidden}#film,#tracerLayer,#shade{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#tracerLayer{pointer-events:none;z-index:2}#shade{pointer-events:none;background:linear-gradient(270deg,#03110bc9,transparent 62%);z-index:1}#shade[data-side=left]{background:linear-gradient(90deg,#03110bc9,transparent 62%)}header{position:absolute;top:4%;left:4%;right:4%;display:flex;justify-content:space-between;align-items:center;z-index:4;font:italic 2cqw var(--display-font, Georgia, serif)}header small{display:block;font:8px var(--ui-font, Arial, sans-serif);letter-spacing:.35em;margin-top:5px}header>a:last-child{font:12px var(--ui-font, Arial, sans-serif)}#note{position:absolute;top:22%;width:30%;right:16%;z-index:3;transform-origin:center;pointer-events:none}#note[data-side=left]{left:16%;right:auto}#note[data-index="0"]{border:1px solid #ffffff42;padding:2cqw;top:19%}h1{font:normal 4.2cqw var(--display-font, Georgia, serif);margin:0 0 1cqw;line-height:1.06}#meta,#pro{font:9px var(--ui-font, Arial, sans-serif);letter-spacing:.18em}#meta{display:block;margin-bottom:1cqw}#yards{font:11px/1.9 var(--ui-font, Arial, sans-serif);margin:1cqw 0}p{font:italic 1.65cqw/1.5 var(--display-font, Georgia, serif);margin:1cqw 0}#reading{height:2px;background:#ffffff25;width:100%;margin-top:1.4cqw}#reading span{display:block;height:100%;width:0;background:#e8e6df}#next{pointer-events:auto;display:inline-block;padding:10px 18px;border:1px solid #ffffff55;border-radius:30px;font:12px var(--ui-font, Arial, sans-serif);margin-top:15px}#next[hidden]{display:none}#transport{position:absolute;bottom:7%;left:4%;right:4%;display:flex;gap:20px;align-items:center;z-index:4;font:11px var(--ui-font, Arial, sans-serif)}#timeline{flex:1}#scrub{width:100%;height:3px;accent-color:#e5e8e0}#stops{display:flex;justify-content:space-between;margin-top:9px}#stops button{font:10px var(--ui-font, Arial, sans-serif);padding:5px 0}#toggle{border:1px solid #ffffff44;border-radius:24px;padding:10px}footer{position:absolute;bottom:2%;left:4%;right:4%;display:flex;justify-content:space-between;font:8px var(--ui-font, Arial, sans-serif);letter-spacing:.15em;z-index:4}#status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:14px var(--ui-font, Arial, sans-serif);z-index:6}#status[hidden]{display:none}

[hidden]{display:none!important}

.hole-switch{font:12px var(--ui-font, Arial, sans-serif);display:flex;align-items:center;gap:10px}.hole-switch select{color:#f4f0e6;background:#122018;border:1px solid #ffffff55;border-radius:20px;padding:8px 12px}footer b{font-weight:normal}

html,body{overscroll-behavior:none}#surface{touch-action:none}#scrub,button,a,select{touch-action:manipulation}

/* Tee introduction: accepted lower scorecard row, separate from spatial Pro notes. */
#teeIntro{position:absolute;z-index:3;left:5.625%;right:5.625%;bottom:15%;display:grid;grid-template-columns:240fr 150fr 440fr 485fr;gap:2.1875cqw;align-items:center;border-top:1px solid #eee6d066;border-bottom:1px solid #eee6d033;padding:1.5cqw 0;pointer-events:none}
#teeIntro small{display:block;font:normal .5625cqw var(--ui-font, Arial, sans-serif);letter-spacing:.125cqw}
#teeHole{font:normal 4.125cqw/1.03 var(--display-font, Georgia, serif);letter-spacing:-.125cqw;margin:.8125cqw 0 1cqw;white-space:nowrap}
#teeMeta{font:.5625cqw var(--ui-font, Arial, sans-serif);letter-spacing:.1cqw;white-space:nowrap}
#teeMap{height:12.8125cqw;width:100%;object-fit:contain}
#teeIntro p{font:italic 1.4375cqw/1.4 var(--display-font, Georgia, serif);margin:.875cqw 0 0}
.teeYardBlock{border-left:1px solid #eee6d033;padding-left:1.75cqw}
#teeYards{display:flex;justify-content:space-between;gap:1cqw;margin-top:1.5cqw}
#teeYards small{font-size:.5625cqw;letter-spacing:.0875cqw;text-transform:uppercase;opacity:.67;margin-bottom:.5625cqw}
#teeYards strong{font:normal 1.9375cqw var(--display-font, Georgia, serif)}
#shade[data-tee=true]{background:linear-gradient(rgba(8,20,16,.2) 35%,rgba(8,20,16,.26) 52%,rgba(8,20,16,.95) 92%)}


#teeHeading{text-transform:uppercase}

/* Hole 1: option 1, course atlas. Departure remains frame-linked. */
#surface[data-tee-layout=atlas] #teeIntro{inset:0;display:block;border:0;padding:0}
#surface[data-tee-layout=atlas] #teeIntro> *{position:absolute}
#surface[data-tee-layout=atlas] .teeTitle{top:25.55%;left:16.25%;width:43.75%;text-align:center}
#surface[data-tee-layout=atlas] .teeTitle small{font-size:.625cqw;letter-spacing:.1875cqw}
#surface[data-tee-layout=atlas] #teeHole{font-size:5.1875cqw;margin:1.25cqw 0 1.125cqw}
#surface[data-tee-layout=atlas] #teeMeta{font-size:.625cqw;letter-spacing:.125cqw}
#surface[data-tee-layout=atlas] #teeMap{top:18.33%;right:9.375%;width:15.625%;height:58.89%}
#surface[data-tee-layout=atlas] .teeYardBlock{top:45.4%;left:16.25%;width:43.75%;border:0;padding:0;text-align:center}
#surface[data-tee-layout=atlas] .teeYardBlock>small{display:none}
#surface[data-tee-layout=atlas] #teeYards{margin:0;justify-content:center;gap:1.75cqw}
#surface[data-tee-layout=atlas] #teeYards>div{min-width:2.875cqw}
#surface[data-tee-layout=atlas] #teeYards strong{font-size:1.5cqw}
#surface[data-tee-layout=atlas] .teeCopy{top:54.8%;left:20.31%;width:35.625%;text-align:center}
#surface[data-tee-layout=atlas] #teeHeading{display:none}
#surface[data-tee-layout=atlas] #teeBody{font-size:1.5625cqw;line-height:1.5;margin:0}
#surface[data-tee-layout=atlas] #shade[data-tee=true]{background:#0814109c}


#film{object-fit:contain}.hole-switch select{background:transparent}#note{width:28%;top:24%;right:8%}#note[data-side=left]{left:6%;right:auto}h1{font-size:3.1cqw}#pro{font-size:.75cqw}#body{font-size:1.55cqw}#teeYards{flex-wrap:wrap}#surface[data-tee-layout=atlas] #teeYards{gap:.8cqw}#surface[data-tee-layout=atlas] #teeYards small{font-size:.43cqw;white-space:nowrap}#surface[data-tee-layout=atlas] #teeYards strong{font-size:1.45cqw}#transport{bottom:8%;font-size:.85cqw}#stops button{font-size:.75cqw}#play{min-width:45px}footer{bottom:4.8%;font-size:.5cqw}#arrival{position:absolute;inset:0;z-index:15;background:#e5e8e9}#arrival video{width:100%;height:100%;object-fit:contain}#arrival button{position:absolute;bottom:8%;right:6%;border:1px solid white;padding:12px 20px}.powered{position:absolute;right:4%;bottom:1.5%;z-index:6;font: .65cqw var(--ui-font, Arial, sans-serif);display:flex;gap:8px;align-items:center}.powered img{width:7cqw}.source-credit{position:absolute;left:4%;bottom:1.8%;z-index:6;font:.5cqw var(--ui-font, Arial, sans-serif);color:#eee9}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #eee;outline-offset:3px}



html.entering #arrival{display:block!important}


/* One typography scale for all Pro notes; green placement follows this frame. */

#arrival{z-index:0;pointer-events:none}
#arrival button{pointer-events:auto}
html.arriving #shade{opacity:calc(.85 * var(--arrival-reveal,0))!important}
html.arriving #teeIntro,html.arriving header,html.arriving #transport,html.arriving footer,html.arriving .powered,html.arriving .source-credit{opacity:var(--arrival-reveal,0)!important}
html.arriving #transport{pointer-events:none}

#surface[data-tee-layout=atlas] .explore-cue{position:absolute;left:64%;top:38%;width:8%;text-align:center;font: .75cqw var(--ui-font, Arial, sans-serif);letter-spacing:.08em;line-height:1.5;white-space:nowrap}.explore-arrow{display:block;font:2.2cqw var(--ui-font, Arial, sans-serif);margin-top:.7cqw;animation:explore-bounce 1.7s ease-in-out infinite}@keyframes explore-bounce{0%,100%{translate:0 0}50%{translate:0 .65cqw}}@media(prefers-reduced-motion:reduce){.explore-arrow{animation:none}}

.hole-switch{position:relative;display:block;background:transparent;border:0;box-shadow:none}.hole-switch summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;padding:8px 12px;background:transparent;border:1px solid #ffffff55;border-radius:20px}.hole-switch summary::-webkit-details-marker{display:none}#holeOptions{position:absolute;top:100%;right:0;min-width:85px;display:flex;flex-direction:column;align-items:flex-end;gap:4px;padding:5px 0;background:transparent;border:0;box-shadow:none}.hole-switch:not([open]) #holeOptions{display:none}#holeOptions a{display:block;padding:7px 0;font:12px var(--ui-font, Arial, sans-serif);white-space:nowrap;background:transparent;border:0;box-shadow:none}#holeOptions a:hover{text-decoration:none}.hole-switch summary:focus-visible{outline:2px solid #eee;outline-offset:3px}


/* Mobile typography and framing. Desktop atlas geometry above remains unchanged. */
@media (max-width:1024px), (pointer:coarse) and (max-width:1366px) {
  #surface { --safe-left:max(16px,env(safe-area-inset-left)); --safe-right:max(16px,env(safe-area-inset-right)); }
  header { top:max(10px,env(safe-area-inset-top)); left:var(--safe-left); right:var(--safe-right); font-size:20px; }
  .hole-switch summary { min-height:36px; }
  #holeOptions { max-height:60vh; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; }
  #holeOptions a { min-height:36px; padding:10px 5px; }
  #surface[data-hole] #note[data-index] { top:19%; width:39%; right:var(--safe-right); }
  #surface[data-hole] #note[data-index][data-side=left] { left:var(--safe-left); right:auto; }
  #title { font-size:clamp(26px,3.8cqw,38px); line-height:1.05; margin:0 0 8px; }
  #pro { font-size:10px; letter-spacing:.16em; }
  #body { font-size:clamp(17px,2.1cqw,22px); line-height:1.35; margin:8px 0 0; }
  #reading { margin-top:10px; }
  #next { font-size:12px; min-height:36px; padding:9px 14px; margin-top:9px; }
  #transport { left:var(--safe-left); right:var(--safe-right); bottom:max(30px,env(safe-area-inset-bottom)); gap:12px; font-size:13px; align-items:center; }
  #play { min-width:48px; min-height:44px; }
  #scrub { display:block; margin:0; height:18px; }
  #stops { margin-top:0; gap:3px; }
  #stops button { min-height:28px; padding:3px 0; font-size:11px; line-height:1.1; }
  footer { bottom:18px; left:var(--safe-left); right:var(--safe-right); font-size:8px; }
  .source-credit { left:var(--safe-left); bottom:5px; font-size:8px; }
  .powered { right:var(--safe-right); bottom:5px; font-size:8px; gap:5px; }
  .powered img { width:72px; }
  #surface[data-tee-layout=atlas] .teeTitle { top:16%; left:5%; width:64%; }
  #surface[data-tee-layout=atlas] .teeTitle small { font-size:8px; letter-spacing:.15em; }
  #surface[data-tee-layout=atlas] #teeHole { font-size:clamp(32px,5cqw,48px); margin:8px 0; }
  #surface[data-tee-layout=atlas] #teeMeta { font-size:10px; letter-spacing:.08em; }
  #surface[data-tee-layout=atlas] .teeYardBlock { top:38%; left:5%; width:64%; }
  #surface[data-tee-layout=atlas] #teeYards { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px; }
  #surface[data-tee-layout=atlas] #teeYards>div { min-width:0; }
  #surface[data-tee-layout=atlas] #teeYards small { font-size:8px; letter-spacing:0; white-space:normal; min-height:18px; line-height:1.1; margin-bottom:3px; }
  #surface[data-tee-layout=atlas] #teeYards strong { font-size:18px; }
  #surface[data-tee-layout=atlas] .teeCopy { top:52%; left:7%; width:60%; }
  #surface[data-tee-layout=atlas] #teeBody { font-size:clamp(16px,2cqw,20px); line-height:1.3; }
  #surface[data-tee-layout=atlas] #teeMap { top:14%; right:4%; width:18%; height:63%; }
  #surface[data-tee-layout=atlas] .explore-cue { left:69%; top:49%; width:10%; font-size:9px; white-space:normal; }
  .explore-arrow { font-size:26px; margin-top:6px; }
}
/* Phone and tablet landscape use the same cover crop for flight and arrival. */
@media (orientation:landscape) and (max-width:1024px), (orientation:landscape) and (pointer:coarse) and (max-width:1366px) {
  #surface { width:100%; height:100%; }
  #film,#arrival video { object-fit:cover; }
}
/* Short landscape needs more horizontal room, not smaller paragraph text. */
@media (orientation:landscape) and (max-height:450px) and (max-width:1024px) {
  #surface[data-hole] #note[data-index] { top:17%; width:43%; }
  #title { font-size:28px; margin-bottom:5px; }
  #body { font-size:17px; line-height:1.28; margin-top:6px; }
  #surface[data-tee-layout=atlas] .teeTitle { top:14%; }
  #surface[data-tee-layout=atlas] #teeHole { font-size:34px; margin:5px 0; }
  #surface[data-tee-layout=atlas] .teeYardBlock { top:34%; }
  #surface[data-tee-layout=atlas] .teeCopy { top:49%; }
  #surface[data-tee-layout=atlas] #teeBody { font-size:16px; line-height:1.25; }
}
/* Upright fallback stays a centered 16:9 scene. Long copy scrolls in place. */
@media (orientation:portrait) and (max-width:600px) {
  #surface { --safe-left:10px; --safe-right:10px; touch-action:pan-y pinch-zoom; }
  header { top:5px; font-size:15px; }
  .hole-switch summary { padding:4px 8px; min-height:28px; font-size:11px; }
  #holeOptions { max-height:calc(56.25vw - 38px); }
  #holeOptions a { min-height:28px; padding:7px 3px; font-size:11px; }
  #surface[data-hole] #note[data-index] { top:17%; width:62%; right:10px; }
  #surface[data-hole] #note[data-index][data-side=left] { left:10px; }
  #title { font-size:22px; margin:0 0 3px; }
  #pro { font-size:8px; }
  #body { font-size:13px; line-height:1.25; margin-top:4px; max-height:calc(56.25cqw - 145px); min-height:42px; overflow-y:auto; scrollbar-width:thin; }
  #body,#teeBody { pointer-events:auto; touch-action:pan-y; overscroll-behavior:contain; }
  #reading { margin-top:5px; }
  #next { min-height:26px; font-size:10px; padding:5px 10px; margin-top:5px; }
  #transport { bottom:18px; gap:5px; font-size:11px; }
  #play { min-width:38px; min-height:32px; }
  #scrub { height:15px; }
  #stops button { font-size:9px; min-height:23px; padding:2px 0; }
  footer { display:none; }
  .source-credit { font-size:7px; bottom:4px; }
  .powered { font-size:7px; bottom:4px; gap:3px; }
  .powered img { width:54px; }
  #surface[data-tee-layout=atlas] .teeTitle { top:15%; left:3%; width:73%; }
  #surface[data-tee-layout=atlas] .teeTitle small { font-size:6px; }
  #surface[data-tee-layout=atlas] #teeHole { font-size:23px; margin:3px 0; }
  #surface[data-tee-layout=atlas] #teeMeta { font-size:8px; }
  #surface[data-tee-layout=atlas] .teeYardBlock { top:36%; left:3%; width:73%; }
  #surface[data-tee-layout=atlas] #teeYards { grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px 5px; }
  #surface[data-tee-layout=atlas] #teeYards small { font-size:6.5px; min-height:0; margin-bottom:1px; white-space:nowrap; }
  #surface[data-tee-layout=atlas] #teeYards strong { font-size:13px; }
  #surface[data-tee-layout=atlas] .teeCopy { top:60%; left:3%; width:73%; }
  #surface[data-tee-layout=atlas] #teeBody { font-size:12px; line-height:1.25; max-height:calc(22.5cqw - 58px); min-height:25px; overflow-y:auto; scrollbar-width:thin; }
  #surface[data-tee-layout=atlas] #teeMap { top:19%; right:1%; width:15%; height:36%; }
  #surface[data-tee-layout=atlas] .explore-cue { left:78%; top:58%; width:20%; font-size:8px; line-height:1.1; }
  .explore-arrow { font-size:18px; margin-top:2px; }
}

/* Utility text must remain legible over bright sand without a filled panel. */
#transport,footer,.source-credit,.powered {
  text-shadow:0 1px 2px #000,0 0 5px #000c;
}
.source-credit { color:#f4f0e6; }
#scrub { filter:drop-shadow(0 1px 1px #0009); }
@media (orientation:portrait) and (max-width:600px) {
  #note:has(#next:not([hidden])) #body { max-height:calc(56.25cqw - 188px); min-height:20px; }
}

/* Keep long notes and the next-hole action above controls on small landscape phones. */
@media (orientation:landscape) and (max-width:740px) and (max-height:450px) {
  #surface { touch-action:pan-y pinch-zoom; }
  #surface[data-hole] #note[data-index] { width:50%; }
  #body { max-height:calc(83vh - 150px); overflow-y:auto; scrollbar-width:thin; pointer-events:auto; touch-action:pan-y; overscroll-behavior:contain; }
  #note:has(#next:not([hidden])) #body { max-height:calc(83vh - 195px); }
}
/* A shallow footer-only veil supports utility text over the Hole 9 bunker. */
#surface::after { content:""; position:absolute; left:0; right:0; bottom:0; height:18%; z-index:3; pointer-events:none; background:linear-gradient(transparent,rgba(0,0,0,.58)); }

/* Desktop uses a viewport UI layer over cover-cropped 16:9 flight media. */
@media (pointer:fine){
  #surface{width:100vw;height:100vh}
  #film,#arrival video{object-fit:cover}
}
