/* The drafting paper, hierarchy and color of the September mockups.
  Gameplay fields keep their own palette and precise square geometry. */
:root{
  --craft-card:linear-gradient(135deg,#182e49aa,#10213788);
  --craft-border:rgba(151,182,213,.25);
  --craft-shadow:inset 0 1px 0 #ffffff08,0 4px 18px #020b171a;
  --craft-grid:rgba(130,176,215,.055);
  --craft-radius:12px;
}
:root[data-theme="light"]{
  --craft-card:linear-gradient(135deg,#f6f1e3,#eee8d8);
  --craft-border:rgba(73,99,122,.22);
  --craft-shadow:inset 0 1px 0 #ffffffaa,0 3px 14px #554b2c09;
  --craft-grid:rgba(63,103,143,.06);
}
.btn,body[data-phase="intro"] #controls .btn,.res-actions>#btn-challenge,.res-actions>#btn-card,
body[data-phase="reveal"] #controls>.btn.primary{border-radius:var(--craft-radius)}
.btn.primary{box-shadow:inset 0 1px 0 #ffffff24,0 3px 8px #00000012}
.btn.ghost{border-color:var(--craft-border)}
.estimate-field .numrow{border-radius:var(--craft-radius);border-color:var(--craft-border)}
.estimate-field .numrow button{border-radius:10px}
.estimate-field .numrow:focus-within{box-shadow:0 0 0 2px var(--line)}
dialog:not(.page-dialog){border-radius:20px;border-color:var(--craft-border)}
.tabs{border-radius:10px}.tabs>button{border-radius:7px}
.app-nav{background:var(--ground);border-top-color:var(--craft-border)}
body[data-phase="intro"] #app{gap:18px}
body[data-phase="intro"] .stage{overflow:visible;background:none}
body[data-phase="intro"] #play{gap:10px}
.home-blueprint{padding:12px 0 0;border:0;background:none;box-shadow:none;overflow:visible;gap:0}
.home-blueprint::before{inset:-16px 0 -12px;z-index:-1;border:0;clip-path:none;opacity:1;background-image:linear-gradient(var(--craft-grid) 1px,transparent 1px),linear-gradient(90deg,var(--craft-grid) 1px,transparent 1px);background-size:22px 22px;mask-image:radial-gradient(ellipse at center,#000 5%,transparent 72%);-webkit-mask-image:radial-gradient(ellipse at center,#000 5%,transparent 72%)}
.blueprint-edition{font:400 .72rem/1.4 var(--font-ui);letter-spacing:.1em;margin-bottom:22px}
.home-headline{margin:0;text-transform:uppercase;text-align:center;font:900 clamp(3rem,13vw,4rem)/.95 var(--display);letter-spacing:.015em;color:var(--ink);background:var(--ground);box-shadow:0 0 20px 12px var(--ground)}
.home-promise{margin:12px 0 0;color:var(--ink-2);font-size:.88rem;line-height:1.4;text-align:center}
.home-blueprint .eye-trace{width:min(100%,310px);height:175px;margin-top:6px}
.home-blueprint .trace-target{stroke:var(--sketch-blue);stroke-dasharray:none;opacity:.32}
.home-blueprint .trace-eye{opacity:.6}.home-blueprint .trace-pencil{stroke-width:2.7}
.home-blueprint .trace-construction{opacity:.2;stroke-width:.6}
.home-blueprint[data-daily-state="complete"] .eye-trace,.home-blueprint[data-daily-state="in-progress"] .eye-trace{height:110px;width:200px;margin-top:0}
.home-blueprint[data-daily-state="complete"] .blueprint-edition,.home-blueprint[data-daily-state="in-progress"] .blueprint-edition{margin-bottom:8px}
body[data-phase="intro"] .intro{padding-top:4px;padding-bottom:6px;text-align:center;align-items:center}
body[data-phase="intro"] .intro .big{font-size:2.4rem;line-height:1.05;text-transform:uppercase}
.home-saved-total{justify-content:center}.home-saved-total strong{font:900 4.8rem/1 var(--display)}
body[data-phase="intro"] .dock{margin-top:0}
body[data-phase="intro"] #controls{gap:18px}
.daily-preview{margin-top:0}.daily-preview-heading{font-size:.76rem;line-height:1.35}
.daily-preview ol{gap:7px;margin-top:10px}
.daily-preview li{border:1px solid var(--craft-border);border-radius:9px;background:var(--craft-card);box-shadow:var(--craft-shadow);padding:11px 3px 10px;gap:7px;font-size:.76rem;color:var(--ink-2)}
.daily-preview .ui-icon{border:0;border-radius:0;background:none;width:24px;height:24px;padding:0;color:var(--ink)}
.home-secondary{width:100%;border-top:1px solid var(--craft-border);padding-top:6px;gap:8px}
.home-streak{font-size:.82rem}
.result-ticket,body.native-app[data-phase="results"] .result-ticket{border-color:var(--craft-border);border-radius:var(--craft-radius);box-shadow:var(--craft-shadow);background-color:var(--paper);background-size:16px 16px,16px 16px,80px 80px,80px 80px}
.result-story,body.native-app[data-phase="results"] .result-story{max-width:none;border-top-color:var(--craft-border);font-size:.9rem}
.result-shots-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:var(--ink-2);font-size:.76rem;margin-top:8px;margin-bottom:-4px}
.results>.tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0}
.results>.tiles .tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:110px;padding:12px 3px 9px;border:1px solid #ffffff22;border-radius:9px;text-align:center;color:#14263a;background:var(--score-paper)!important;box-shadow:inset 0 1px 0 #ffffff3b,0 3px 8px #0000000b}
:is(.tile,.daily-preview li).g-good{--score-paper:#9DDBB5}:is(.tile,.daily-preview li).g-ok{--score-paper:#EBD27C}:is(.tile,.daily-preview li).g-meh{--score-paper:#EEB28C}:is(.tile,.daily-preview li).g-bad{--score-paper:#ECA09E}
.results>.tiles .tile:hover{filter:brightness(1.04)}
.results>.tiles .tile:active{transform:scale(.97)}
.results>.tiles .tile .em{order:1;background:none;border:0;width:20px;height:20px;color:inherit}
.results>.tiles .tile .em svg{width:20px;height:20px}
.results>.tiles .tile .s{order:2;color:inherit;font:900 2rem/1 var(--display)}
.results>.tiles .tile-copy{order:3;flex:none;width:100%}
.results>.tiles .tile .nm{font-size:.76rem;font-weight:700;line-height:1.15;overflow-wrap:anywhere;color:inherit}
.results>.tiles .tile-detail,.results>.tiles .shot-miniature,.results>.tiles .tile>svg{display:none}
.res-actions{margin-top:8px}.res-actions .btn.primary{min-height:56px}
.result-meta{border-top:1px solid var(--craft-border);padding-top:16px}
.results>.field-details>summary{list-style-position:outside;margin-left:1.1em;padding-left:.2em}
@media(max-height:740px){
  .blueprint-edition{margin-bottom:16px}.home-headline{font-size:3rem}
  .home-blueprint .eye-trace{height:125px;width:230px}.home-promise{margin-top:10px}
  body[data-phase="intro"] #controls{gap:14px}.daily-preview li{padding-block:9px}
}
@media(max-width:359px){
  .results>.tiles{display:flex;flex-direction:column;gap:7px}
  .results>.tiles .tile{flex-direction:row;min-height:52px;padding:8px 12px;gap:12px;text-align:left}
  .results>.tiles .tile-copy{order:2;flex:1;width:auto}.results>.tiles .tile .nm{font-size:.88rem}
  .results>.tiles .tile .s{order:3;font-size:1.8rem}
  .results>.tiles .tile>svg{display:block;order:4;color:inherit}
  .home-streak{font-size:.76rem}.home-streak svg{max-width:35px}.daily-preview ol{gap:4px}
}
html.enlarged-text .home-blueprint{padding:8px 0 0}
html.enlarged-text .home-headline{font-size:2.7rem}
html.enlarged-text .home-blueprint .eye-trace{height:80px;width:180px}
html.enlarged-text .home-promise{font-size:.88rem}
html.enlarged-text .daily-preview li{font-size:.82rem}
html.enlarged-text .results>.tiles{display:flex;flex-direction:column;gap:10px}
html.enlarged-text .results>.tiles .tile{flex-direction:row;align-items:center;min-height:64px;padding:12px;gap:14px;text-align:left}
html.enlarged-text .results>.tiles .tile-copy{order:2;flex:1;width:auto}
html.enlarged-text .results>.tiles .tile .nm{font-size:.9rem}
html.enlarged-text .results>.tiles .tile .s{order:3;font-size:1.65rem}
html.enlarged-text .results>.tiles .tile>svg{display:block;order:4;color:inherit}
@media(prefers-reduced-motion:reduce){.results>.tiles .tile:active{transform:none}}

/* Paper, ink and depth: one material across Today and the destinations. */
:root {
  --sheet-fine:rgba(172,205,235,.07);--sheet-rule:rgba(172,205,235,.15);
  --sheet-glow:rgba(37,84,144,.16);--sheet-edge:rgba(4,16,35,.15);
  --craft-card:linear-gradient(140deg,#244971,#18385d);
  --craft-border:rgba(181,210,238,.3);--craft-radius:14px;
  --perfect-ink:#f7d985;--perfect-edge:#c9a75b;
}
:root[data-theme="light"] {
  --ground:#F4EEDC;--paper:#FBF7E9;--chip:#E9E6D9;--ink:#17283C;--ink-2:#4D6072;--ink-3:#586B7A;
  --sheet-fine:rgba(59,104,140,.055);--sheet-rule:rgba(59,104,140,.09);
  --sheet-glow:rgba(255,255,247,.64);--sheet-edge:rgba(126,102,51,.055);
  --craft-card:linear-gradient(145deg,#f6f1e3,#eee8d8);
  --craft-border:rgba(67,95,117,.23);--perfect-ink:#695016;--perfect-edge:#94722a;
}
body,.page-dialog,#welcome {
  background-color:var(--ground);
  background-image:radial-gradient(ellipse at 50% 35%,var(--sheet-glow),transparent 75%),radial-gradient(ellipse at center,transparent 48%,var(--sheet-edge)),linear-gradient(var(--sheet-rule) 1px,transparent 1px),linear-gradient(90deg,var(--sheet-rule) 1px,transparent 1px),linear-gradient(var(--sheet-fine) 1px,transparent 1px),linear-gradient(90deg,var(--sheet-fine) 1px,transparent 1px);
  background-size:100% 100%,100% 100%,100px 100px,100px 100px,20px 20px,20px 20px;
  background-attachment:fixed;
}
.app-nav {background:color-mix(in srgb,var(--ground) 95%,transparent);backdrop-filter:blur(14px)}
.header-round,.icon-btn {flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.header-round>svg,.icon-btn>svg {width:24px;height:24px;flex:none;aspect-ratio:1;fill:none;stroke:currentColor;stroke-width:1.7}
.header-actions {flex:none;gap:8px}.header-round {border-radius:50%;color:var(--ink-2)}
.destination-header {gap:8px}.destination-header>:is(.destination-account,.you-settings) {margin-left:auto}
.destination-header .you-settings {position:static;margin:0;flex:none}
html[data-input-modality="pointer"] :is(button,a,summary):focus {outline:none}
html[data-input-modality="keyboard"] :is(button,a,summary):focus-visible {outline:2px solid var(--focus);outline-offset:3px}
.home-blueprint {justify-items:start;isolation:auto;background:none;box-shadow:none}
.home-blueprint::before {display:none}.blueprint-edition {font-size:.72rem;margin-bottom:8px}
.home-blueprint .eye-trace {width:100%;height:clamp(160px,25svh,235px);margin:0 auto -4px}
.home-blueprint .trace-eye {opacity:.64}.trace-rough {opacity:.25;stroke-width:.8}
.home-blueprint .trace-construction {opacity:.36;stroke-width:.55}
.trace-pencil-light {stroke-width:1.2;opacity:.65}
.home-headline {width:100%;font:900 clamp(3.5rem,15vw,5rem)/.91 var(--display);letter-spacing:.005em;text-align:left;background:none;box-shadow:none;padding-left:2px;text-wrap:balance}
.home-promise {text-align:left;font:500 .72rem/1.7 var(--font-ui);text-transform:uppercase;letter-spacing:.16em;margin:16px 0 5px;padding-left:3px}
.home-promise br {display:none}.home-promise br::after {content:" "}
.home-blueprint[data-daily-state="complete"] .eye-trace,.home-blueprint[data-daily-state="in-progress"] .eye-trace {width:220px;height:130px}
.daily-preview li {background:linear-gradient(135deg,#284a6699,#142941bb);border-color:#749aba55;color:var(--ink);padding:14px 3px 12px;gap:8px;min-height:82px}
:root[data-theme="light"] .daily-preview li {background:linear-gradient(140deg,#e8f0ee,#dae5e5);border-color:#b5c9ce;box-shadow:inset 0 1px 0 #fff9,0 3px 8px #554b2c0a}
.daily-preview .ui-icon {width:29px;height:29px;color:var(--shot-ink,#a8d1e8);filter:drop-shadow(0 0 7px #a8d1e811)}
.daily-preview [data-family="draw"] {--shot-ink:#aacff4}.daily-preview [data-family="tap"] {--shot-ink:#d4c2f1}.daily-preview [data-family="adjust"] {--shot-ink:#e9ce92}.daily-preview [data-family="timing"] {--shot-ink:#a5daca}.daily-preview [data-family="estimate"] {--shot-ink:#d6bdec}
:root[data-theme="light"] .daily-preview [data-family="draw"] {--shot-ink:#35658c}:root[data-theme="light"] .daily-preview [data-family="tap"] {--shot-ink:#705a92}:root[data-theme="light"] .daily-preview [data-family="adjust"] {--shot-ink:#856529}:root[data-theme="light"] .daily-preview [data-family="timing"] {--shot-ink:#2b746b}:root[data-theme="light"] .daily-preview [data-family="estimate"] {--shot-ink:#805d8f}
.home-streak {gap:9px;min-width:0}.home-streak>svg {flex:none;max-width:100px}.streak-scale {display:inline-flex;align-items:center;gap:3px;color:var(--pencil);flex:none}.streak-scale svg {width:25px;height:24px;flex:none}.streak-scale small {font:600 .7rem/1 var(--font-ui)}
.results>.tiles .is-perfect {border:2px solid var(--perfect-edge);background:linear-gradient(135deg,#fff1bc,#e9cc7d)!important;box-shadow:inset 0 0 0 2px #fff8,0 0 15px #d1b7641c;position:relative}
.results>.tiles .is-perfect .em {color:#6c501b}.perfect-note {display:inline-flex;align-items:center;gap:5px;color:var(--perfect-ink);font:600 .83rem/1.2 var(--font-ui);margin-left:auto;letter-spacing:0}.perfect-note svg {width:20px;height:20px}
.compare-ready,.compare-ready>.row {background:transparent!important;border:0!important;padding:0;box-shadow:none}
.compare-ready>.row {display:flex;flex-direction:column;align-items:stretch;gap:6px}
.compare-ready #btn-signin-results {font-size:.8rem;text-align:center;min-height:44px;background:transparent}
.res-actions {gap:10px}.share-status:empty {display:none}
#dlg-reveal {position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,500px);max-width:100%;max-height:calc(100dvh - max(18px,var(--safe-area-inset-top,env(safe-area-inset-top))));border:1px solid var(--craft-border);border-bottom:0;border-radius:24px 24px 0 0;overflow-y:auto;overscroll-behavior:contain;background:var(--paper);padding:0;box-shadow:0 -15px 60px #0003}
#dlg-reveal::backdrop {background:#02091788;backdrop-filter:blur(3px)}
#dlg-reveal .dlg {padding:0 22px calc(20px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom)));gap:14px}
.sheet-grip {width:38px;height:4px;border-radius:4px;background:var(--ink-3);opacity:.55;margin:10px auto 2px}
#dlg-reveal h2 {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;font-size:2rem}
#dlg-reveal .icon-btn {background:var(--surface-soft);border:0;border-radius:50%;font:400 28px/1 var(--font-ui)}
#dlg-reveal .recap-score {display:flex;align-items:baseline;gap:4px;font:900 3.4rem/.95 var(--display);margin:0}
#dlg-reveal .recap-score small {font-size:1.1rem;color:var(--ink-2)}
#dlg-reveal .recap-image {width:min(100%,calc(100dvh - 365px - var(--safe-area-inset-top,env(safe-area-inset-top)) - var(--safe-area-inset-bottom,env(safe-area-inset-bottom))));min-width:min(100%,180px);align-self:center;border-radius:8px}
#dlg-reveal .recap-measurement {font-size:.85rem;margin:0;line-height:1.4}
#dlg-reveal .shot-legend {font-size:.76rem;margin:0}#dlg-reveal .shot-feedback {margin:0}
#dlg-reveal .recap-standing {font-size:.85rem;font-weight:600;margin:0;color:var(--ink)}.recap-standing:empty {display:none}
#dlg-reveal #practice-shot {min-height:48px;font-size:.9rem}
.enlarged-text #dlg-reveal .recap-image {width:100%;max-width:320px}
.enlarged-text #dlg-reveal .recap-score {flex-wrap:wrap;line-height:1.2}
.welcome {display:flex;flex-direction:column;min-height:100svh;padding:calc(12px + var(--safe-area-inset-top,env(safe-area-inset-top))) 28px calc(18px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom)));gap:12px;text-align:center;overflow:visible}
.welcome-topline {display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink-2);font-size:.64rem;letter-spacing:.18em}
.welcome-brand .welcome-wordmark {font:900 clamp(3.5rem,16vw,4.8rem)/1 var(--display);letter-spacing:.02em;margin:9px 0 0}
.welcome-brand h1 {font-size:.75rem;text-transform:uppercase;letter-spacing:.18em;margin:10px 0 0;font-weight:600}
.welcome-brand>p:last-child {font-size:.8rem;margin-top:8px}
.welcome-art {height:clamp(90px,15svh,155px);margin:0;display:flex;justify-content:center;align-items:center}.welcome-draft {display:none}
#welcome-eye {width:100%;height:100%}#welcome-eye .eye-trace {width:100%;height:100%;max-width:290px}
.welcome-note {position:relative;max-width:310px;width:90%;margin:0 auto 16px;padding:15px 16px;border:1px solid var(--craft-border);background:var(--craft-card);box-shadow:var(--craft-shadow);text-align:left;transform:rotate(-3deg);font:400 .8rem/1.5 var(--font-ui);color:var(--ink-2)}
.welcome-note b {position:absolute;right:-9px;bottom:-16px;transform:rotate(-7deg);border:2px solid currentColor;color:var(--pencil);font:900 1.2rem/1 var(--display);letter-spacing:.06em;padding:6px 8px;background:var(--paper)}
.welcome-actions {margin-top:auto;display:grid;gap:11px}.welcome #welcome-signin {margin:0;padding:0}.welcome .signin-actions {gap:10px}
.welcome-or {display:flex;align-items:center;gap:12px;color:var(--ink-2);font-size:.7rem;text-transform:uppercase;letter-spacing:.12em}.welcome-or::before,.welcome-or::after {content:"";height:1px;background:var(--craft-border);flex:1}
.welcome #welcome-guest {border-color:var(--craft-border);border-radius:12px;min-height:48px;background:var(--craft-card);font-size:.9rem}
.welcome-legal {font-size:.7rem!important;line-height:1.65;margin-top:0!important}
.result-field {margin-top:8px}.field-summary {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px 14px;border:1px solid var(--craft-border);border-radius:14px;background:var(--craft-card)}
.field-plot {position:relative;min-width:0;padding-top:24px}.field-plot .cols {height:65px;gap:3px}.field-plot .col {flex:1}.field-plot .col i {background:var(--ink-3);border-radius:2px 2px 0 0;opacity:.58;min-height:0}.field-plot .col.me i {background:var(--pencil);opacity:1}
.field-position {position:absolute;top:0;left:var(--position);transform:translateX(-50%);font-size:.7rem;font-weight:600;color:var(--ink);white-space:nowrap}.field-position::after {content:"";display:block;width:1px;height:8px;background:var(--pencil);margin:1px auto 0}
.field-average {border-left:1px solid var(--craft-border);padding-left:16px;display:flex;flex-direction:column;font-size:.72rem;color:var(--ink-2)}.field-average strong {font:900 2rem/1.15 var(--display);color:var(--ink);margin:4px 0}.field-average small {font:400 .72rem var(--font-ui)}
.field-population {display:flex;justify-content:space-between;gap:10px;color:var(--ink-2);font-size:.7rem;padding:7px 2px}.field-standing {font-weight:600;color:var(--ink)}
@media(max-height:740px){.home-blueprint .eye-trace {height:155px}.home-headline {font-size:3.4rem}.home-promise {margin-top:11px;font-size:.66rem}.welcome{gap:9px}.welcome-art{height:90px}.welcome-note{padding:10px 13px;font-size:.72rem;margin-bottom:12px}.welcome-brand .welcome-wordmark{font-size:3.5rem}.welcome-brand h1{margin-top:7px}.welcome-actions{gap:8px}}
@media(max-width:359px){.home-headline{font-size:3.2rem}.home-promise br{display:initial}.home-streak {font-size:.76rem;flex-wrap:wrap;justify-content:flex-end}.home-streak>svg{max-width:85px}.welcome{padding-inline:20px}.field-summary{gap:10px;padding:14px 10px}.field-average{padding-left:10px}.field-average strong{font-size:1.6rem}}
@media(prefers-reduced-motion:reduce){#dlg-reveal{scroll-behavior:auto}.trace-pencil,.trace-pencil-light{animation:none!important;stroke-dashoffset:0!important}}
[data-focus-origin="pointer"]:focus {outline:none}
[data-focus-origin="keyboard"]:focus-visible {outline:2px solid var(--focus);outline-offset:3px}
.score-chip.is-perfect .n {color:var(--perfect-ink);text-shadow:0 0 20px #e7c56c20}
.score-chip.is-perfect .score-line {border-left:3px solid var(--perfect-edge);padding-left:12px}
@media(max-height:620px){.home-blueprint .eye-trace{height:118px}.home-blueprint[data-daily-state="complete"] .eye-trace,.home-blueprint[data-daily-state="in-progress"] .eye-trace{height:85px}.home-headline{font-size:3rem}.blueprint-edition{margin-bottom:4px}.home-promise{margin-top:10px}.welcome-art{height:75px}.welcome-note{display:none}.welcome .welcome-brand .welcome-wordmark{font-size:3rem}}

/* The supplied eye-as-O lettering and rough target mark are the shared brand. */
.logo-dark {display:none}.logo-light {display:block}
[data-theme="dark"] .logo-light {display:none}[data-theme="dark"] .logo-dark {display:block}
.brand-lockup {display:block;line-height:0;min-width:0}
.brand-lockup img {width:100%;height:100%;object-fit:contain}
.wordmark .brand-name {display:flex;width:190px;max-width:100%;height:44px;align-items:center}
.wordmark .brand-lockup {width:100%;height:44px}
.header-round:active,#btn-account:active {transform:none}
.welcome-brand .welcome-wordmark {width:min(100%,330px);height:88px;margin:9px auto 0}
.welcome-wordmark .brand-lockup {height:100%}
.welcome #welcome-signin .signin-more>summary {font-weight:600;text-decoration:underline;text-underline-offset:4px}
@media(max-width:360px){.wordmark .brand-name{width:170px}}
@media(max-height:740px){.welcome-brand .welcome-wordmark{height:63px}}
@media(max-height:620px){.welcome-brand .welcome-wordmark{height:52px}}
