/* Field Guide test version. Sage ground, basalt text, hi-vis amber for anything you press. */
@font-face{font-family:"Barlow";font-weight:400;font-display:swap;src:url(fonts/barlow-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-weight:500;font-display:swap;src:url(fonts/barlow-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-weight:600;font-display:swap;src:url(fonts/barlow-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:600;font-display:swap;src:url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:700;font-display:swap;src:url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2")}
:root{
  --sage:#E4E7DF; --sage-2:#D6DBD0; --basalt:#1E2622; --basalt-2:#3A4540;
  --juniper:#3E5A49; --topo:#8C6B47; --amber:#F0A830; --amber-ink:#2A1E05;
  --muted:#5E6A63; --line:#C3CABE; --white:#FAFBF8;
  --display:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;
  --body:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
  --st:env(safe-area-inset-top,0px); --sb:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;background:var(--basalt)}
body{color:var(--basalt);font-family:var(--body);font-size:16px;overscroll-behavior:none;-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
h1,h2,h3{font-family:var(--display);font-weight:600;line-height:1.05;text-wrap:balance}

#app{position:relative;height:100%;max-width:560px;margin:0 auto;background:var(--sage);display:flex;flex-direction:column;overflow:hidden}
.view{flex:1;min-height:0;display:none;flex-direction:column}
.view.on{display:flex}
.scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.spacer{height:24px}
.top{padding:calc(var(--st) + 18px) 20px 4px}
.greet{font-size:38px}
.sub{color:var(--muted);font-size:16px;margin-top:2px}

/* install hint */
.install{margin:16px 20px 0;padding:14px 16px;border-radius:16px;background:var(--white);border:1.5px dashed var(--juniper);display:grid;gap:6px}
.install b{font-family:var(--display);font-size:21px;font-weight:600}
.install span{font-size:15px;line-height:1.45;color:var(--basalt-2)}
.install svg{width:17px;height:17px;vertical-align:-3px}
.install button{justify-self:start;font-weight:600;color:var(--juniper);padding:4px 0}

/* resume */
.resume{margin:18px 20px 4px;background:var(--basalt);color:var(--white);border-radius:18px;padding:14px 14px 14px 18px;display:flex;align-items:center;gap:14px;width:calc(100% - 40px)}
.resume .t{flex:1;min-width:0}
.resume .k{font-size:13px;color:#AEB9B2}
.resume .n{font-family:var(--display);font-size:23px;font-weight:600;margin-top:2px}
.playbtn{width:56px;height:56px;border-radius:50%;background:var(--amber);color:var(--amber-ink);display:grid;place-items:center;flex:none}
.playbtn svg{width:24px;height:24px}

/* region cards */
.region{margin:16px 20px 0;border-radius:22px;overflow:hidden;background:var(--white);display:block;width:calc(100% - 40px);box-shadow:0 1px 0 var(--line)}
.region .art{height:160px;position:relative}
.region.soon .art{height:110px}
.art svg,.heroart svg,.cover svg,.thumb svg{position:absolute;inset:0;width:100%;height:100%}
.region .meta{padding:14px 18px 16px}
.region h2{font-size:30px}
.region.soon h2{font-size:26px}
.region .row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px;color:var(--muted);font-size:15px}
.badge{font-size:13px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--sage);color:var(--juniper);white-space:nowrap}
.badge.soon{color:var(--topo)}
.locate{margin:18px 20px 0;display:flex;align-items:center;gap:10px;color:var(--juniper);font-weight:600;padding:8px 0}
.locate svg{width:22px;height:22px}

/* region detail */
.hero{height:calc(240px + var(--st));position:relative;flex:none}
.heroart{position:absolute;inset:0}
.back{position:absolute;top:calc(var(--st) + 10px);left:14px;width:44px;height:44px;border-radius:50%;background:rgba(250,251,248,.88);display:grid;place-items:center;z-index:2}
.back svg{width:22px;height:22px}
.hero .title{position:absolute;left:20px;right:20px;bottom:16px;color:#FAFBF8}
.hero h1{font-size:46px;text-shadow:0 2px 12px rgba(0,0,0,.3)}
.hero .title p{font-size:16px;opacity:.95;text-shadow:0 1px 6px rgba(0,0,0,.3)}
.bigplay{margin:16px 20px 0;height:60px;border-radius:16px;background:var(--amber);color:var(--amber-ink);font-family:var(--display);font-size:24px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;width:calc(100% - 40px)}
.bigplay svg{width:22px;height:22px}
.dl{margin:10px 20px 0;display:flex;align-items:center;gap:12px;font-size:15px;color:var(--basalt-2)}
.dl button{font-weight:600;color:var(--juniper);display:flex;align-items:center;gap:8px;padding:8px 0}
.dl svg{width:20px;height:20px}
.dl .meter{flex:1;height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.dl .meter i{display:block;height:100%;background:var(--juniper);width:0}
.dl .ok{color:var(--juniper);font-weight:600;display:flex;align-items:center;gap:6px}
.seg{display:flex;margin:14px 20px 4px;background:var(--sage-2);border-radius:12px;padding:4px}
.seg button{flex:1;padding:10px 0;border-radius:9px;font-weight:600;font-size:15px;color:var(--muted);text-align:center}
.seg button.on{background:var(--white);color:var(--basalt)}
.ch{display:flex;align-items:center;gap:14px;padding:13px 20px;border-bottom:1px solid var(--line);width:100%}
.ch .num{width:34px;height:34px;border-radius:50%;border:2px solid var(--juniper);display:grid;place-items:center;font-family:var(--display);font-weight:600;font-size:17px;color:var(--juniper);flex:none}
.ch.done .num{background:var(--sage-2)}
.ch.playing .num{background:var(--juniper);color:var(--white)}
.ch .nm{flex:1;min-width:0}
.ch .nm b{display:block;font-family:var(--display);font-weight:600;font-size:21px}
.ch .nm span{font-size:14px;color:var(--muted)}
.ch .d{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.ch .d small{display:block;font-size:12px;color:var(--juniper);font-weight:600}
.kb{padding:6px 20px 10px}
.kb h3{font-size:22px;margin:18px 0 4px}
.kb p{font-size:16px;line-height:1.5;color:var(--basalt-2)}
.kb p+p{margin-top:8px}
.kb .upd{font-size:13px;color:var(--muted);margin-top:16px}

/* player */
.player{background:var(--sage)}
.ptop{display:flex;justify-content:space-between;align-items:center;padding:calc(var(--st) + 6px) 14px 6px}
.ptop .ttl{font-size:14px;color:var(--muted);text-align:center}
.iconbtn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
.iconbtn svg{width:24px;height:24px}
.cover{margin:8px 24px 0;aspect-ratio:342/220;max-height:36vh;border-radius:24px;overflow:hidden;position:relative;flex:none}
.pinfo{padding:18px 24px 0}
.pinfo h1{font-size:38px}
.pinfo p{color:var(--muted);font-size:16px;margin-top:2px}
.scrub{margin:18px 24px 0}
.bar{height:28px;position:relative;cursor:pointer;touch-action:none}
.bar::before{content:"";position:absolute;left:0;right:0;top:10px;height:8px;border-radius:4px;background:var(--line)}
.bar i{position:absolute;left:0;top:10px;height:8px;background:var(--juniper);border-radius:4px}
.bar b{position:absolute;top:14px;width:22px;height:22px;border-radius:50%;background:var(--juniper);transform:translate(-50%,-50%)}
.times{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.ctrls{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:12px}
.ctrls .skip{width:58px;height:58px;display:grid;place-items:center;position:relative}
.ctrls .skip svg{width:40px;height:40px}
.ctrls .skip span{position:absolute;font-size:11px;font-weight:600;top:23px}
.ctrls .main{width:86px;height:86px;border-radius:50%;background:var(--amber);color:var(--amber-ink);display:grid;place-items:center}
.ctrls .main svg{width:34px;height:34px}
.prow{display:flex;justify-content:space-between;gap:8px;margin:16px 24px 0;flex-wrap:wrap}
.chip{padding:10px 14px;border-radius:999px;background:var(--white);font-weight:600;font-size:15px;font-variant-numeric:tabular-nums}
.chip.alt{background:var(--sage)}
.marks{margin:16px 0 0;border-top:1px solid var(--line)}
.marks h3{font-size:20px;padding:12px 24px 4px}
.mk{display:flex;justify-content:space-between;gap:12px;padding:11px 24px;width:100%;font-size:16px}
.mk span{color:var(--muted);font-variant-numeric:tabular-nums}
.mk.on{color:var(--juniper);font-weight:600}

/* drive */
.drive{background:#000;color:#F4F1E6;padding-bottom:var(--sb)}
.drive .dtop{display:flex;justify-content:space-between;align-items:center;padding:calc(var(--st) + 8px) 20px 8px}
.drive .exit{font-size:17px;font-weight:600;color:#cfd3cc;padding:10px 4px}
.drive .reg{font-size:16px;color:#9aa39d}
.drive .dname{font-family:var(--display);font-weight:600;font-size:54px;line-height:1;padding:10px 24px 0}
.drive .dchap{font-size:18px;color:#9aa39d;padding:8px 24px 12px}
.drive .dbar{height:6px;background:#2a2f2c;margin:0 24px;border-radius:3px;overflow:hidden}
.drive .dbar i{display:block;height:100%;background:var(--amber);width:0}
.drive .dmain{flex:1;min-height:160px;margin:18px 24px;border-radius:32px;background:var(--amber);color:var(--amber-ink);display:grid;place-items:center}
.drive .dmain svg{width:110px;height:110px}
.drive .drow{display:flex;gap:12px;padding:0 24px 24px}
.drive .drow button{flex:1;height:92px;border-radius:24px;background:#1b1f1d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:16px;font-weight:600}
.drive .drow svg{width:34px;height:34px}

/* browse */
.mapwrap{margin:16px 20px 0;border-radius:22px;overflow:hidden;background:#CFD6C8;position:relative;aspect-ratio:350/300}
.mapwrap svg{position:absolute;inset:0;width:100%;height:100%}
.blist{margin-top:8px}
.blist .item{display:flex;align-items:center;gap:14px;padding:12px 20px;border-bottom:1px solid var(--line);width:100%}
.blist .thumb{width:62px;height:62px;border-radius:14px;overflow:hidden;flex:none;position:relative}
.blist .txt{flex:1;min-width:0}
.blist b{font-family:var(--display);font-size:22px;font-weight:600;display:block}
.blist span{font-size:14px;color:var(--muted)}
.blist .act{font-weight:600;font-size:15px;white-space:nowrap;color:var(--juniper)}

/* settings */
.set h3{font-size:22px;margin:22px 20px 6px}
.srow{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 20px;background:var(--white);border-bottom:1px solid var(--line);font-size:17px;width:100%}
.srow small{display:block;font-size:14px;color:var(--muted);margin-top:2px}
.srow.link{color:var(--juniper);font-weight:600}
.srow .rm{color:#9B3B2A;font-weight:600;font-size:15px;white-space:nowrap}
.tog{width:52px;height:32px;border-radius:16px;background:var(--line);position:relative;flex:none;transition:background .2s}
.tog::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.tog.on{background:var(--juniper)}
.tog.on::after{left:23px}
.about{padding:18px 20px 0;font-size:14px;color:var(--muted);line-height:1.5;display:grid;gap:10px}
.about b{color:var(--basalt)}

/* onboarding */
.onb{background:var(--basalt);color:var(--white)}
.onb .art{height:44%;min-height:220px;position:relative;flex:none}
.onb .body{padding:22px 28px calc(var(--sb) + 20px);flex:1;display:flex;flex-direction:column}
.onb h1{font-size:44px}
.onb p{font-size:18px;line-height:1.45;color:#cdd5cf;margin-top:12px}
.onb .go{margin-top:auto;height:62px;border-radius:16px;background:var(--amber);color:var(--amber-ink);font-family:var(--display);font-size:24px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px}
.onb .go svg{width:22px;height:22px}
.onb .skipit{margin-top:8px;color:#AEB9B2;font-weight:600;font-size:16px;padding:12px;text-align:center}

/* banner */
.banner{position:absolute;left:10px;right:10px;top:calc(var(--st) + 10px);background:rgba(250,251,248,.98);border-radius:20px;padding:12px 10px 12px 14px;display:flex;gap:12px;align-items:center;z-index:20;box-shadow:0 12px 30px rgba(0,0,0,.28);animation:drop .45s cubic-bezier(.2,.8,.2,1)}
@keyframes drop{from{transform:translateY(-140%)}to{transform:none}}
.banner .ic{width:44px;height:44px;border-radius:12px;background:var(--juniper);display:grid;place-items:center;color:#fff;flex:none}
.banner .ic svg{width:26px;height:26px}
.banner .btext{flex:1;min-width:0}
.banner b{display:block;font-size:16px}
.banner .btext span{font-size:14px;color:var(--muted)}
.banner .bclose{width:36px;height:36px;display:grid;place-items:center;color:var(--muted)}
.banner .bclose svg{width:18px;height:18px}

/* mini player + tabs */
.mini{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--white);border-top:1px solid var(--line);width:100%;flex:none}
.mini .mt{flex:1;min-width:0}
.mini .mt b{display:block;font-family:var(--display);font-size:18px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini .mt span{font-size:13px;color:var(--muted)}
.mini .playbtn{width:46px;height:46px}
.tabs{display:flex;justify-content:space-around;border-top:1px solid var(--line);background:var(--white);padding:8px 0 calc(var(--sb) + 8px);flex:none}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:13px;font-weight:500;color:var(--muted);min-width:80px;padding:4px}
.tab svg{width:26px;height:26px}
.tab.on{color:var(--basalt)}
.tab.on svg{color:var(--juniper)}
.toast{position:absolute;left:50%;bottom:calc(var(--sb) + 140px);transform:translateX(-50%);background:var(--basalt);color:var(--white);padding:10px 16px;border-radius:12px;font-size:15px;max-width:calc(100% - 40px);z-index:30;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.extbtn{display:flex;align-items:center;justify-content:center;margin:16px 0 4px;height:56px;border-radius:16px;background:var(--basalt);color:var(--white);font-family:var(--display);font-size:22px;font-weight:600;text-decoration:none;text-align:center;padding:0 16px}
.signup{display:inline-block;margin-top:18px;font-weight:600;color:var(--juniper);font-size:17px}

/* photos and brand bar */
.photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.25),rgba(0,0,0,0) 35%,rgba(0,0,0,.55));pointer-events:none}
.hero .title{z-index:1}
.brandbar{display:flex;align-items:center;gap:10px;padding:calc(var(--st) + 14px) 20px 0}
.brandbar img{height:22px;width:auto}
.brandbar span{font-family:var(--display);font-weight:700;font-size:19px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-left:10px;border-left:2px solid var(--line)}
.top.tight{padding-top:10px}

/* TrailRecon theme */
body.tr{--sage:#111314;--sage-2:#1F2325;--basalt:#F1F2F2;--basalt-2:#C8CCCC;--juniper:#E62028;--amber:#E62028;--amber-ink:#FFFFFF;--muted:#9AA0A2;--line:#2B3033;--white:#1A1D1F;background:#111314}
body.tr #app{background:var(--sage)}
body.tr .resume{background:#1F2325;border:1px solid #2B3033}
body.tr .resume .k{color:#9AA0A2}
body.tr .back{background:rgba(17,19,20,.75);color:#fff}
body.tr .onb{background:#0B0C0D}
body.tr .install{background:#1A1D1F;border-color:#E62028}
body.tr .drive .dmain{background:#E62028;color:#fff}
body.tr .drive .dbar i{background:#E62028}
body.tr .mapwrap{background:#1F2325}
body.tr .badge{background:#2B3033;color:#F1F2F2}
body.tr .badge.soon{color:#AEB2B2}
body.tr .bar::before{background:#2B3033}
body.tr .ch .num{border-color:#AEB2B2;color:#F1F2F2}
body.tr .ch.playing .num{background:#E62028;border-color:#E62028}
body.tr .extbtn{background:#F1F2F2;color:#111314}
body.tr .mk.on{color:#FF4A51}
body.tr .dl .ok,body.tr .dl button,body.tr .locate,body.tr .srow.link,body.tr .install button,body.tr .signup,body.tr .blist .act{color:#FF4A51}

/* feedback */
.fbline{display:block;margin:18px 20px 0;color:var(--juniper);font-weight:600;font-size:16px;padding:6px 0}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sheet{position:absolute;inset:0;z-index:40;display:flex;align-items:flex-end}
.sheetbg{position:absolute;inset:0;background:rgba(30,38,34,.5)}
.sheetbox{position:relative;width:100%;background:var(--sage);border-radius:22px 22px 0 0;padding:22px 20px calc(var(--sb) + 18px);display:grid;gap:12px;animation:up .28s cubic-bezier(.2,.8,.2,1)}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.sheetbox h2{font-size:30px}
.fbctx{color:var(--muted);font-size:15px;margin-top:-6px}
.fbctx:empty{display:none}
.kinds{display:flex;flex-wrap:wrap;gap:8px}
.kinds button{padding:9px 13px;border-radius:999px;background:var(--white);font-weight:600;font-size:15px;border:1.5px solid var(--line)}
.kinds button[aria-pressed="true"]{background:var(--basalt);color:var(--white);border-color:var(--basalt)}
.sheetbox textarea{width:100%;font:inherit;font-size:17px;padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--white);color:var(--basalt);resize:vertical;min-height:120px}
.sheetbox textarea:focus{outline:3px solid var(--amber);outline-offset:1px}
.sheetacts{display:flex;justify-content:flex-end;gap:10px}
.sheetacts .send{background:var(--amber);color:var(--amber-ink);font-family:var(--display);font-weight:700;font-size:21px;padding:10px 26px;border-radius:12px}
.fbnote{font-size:14px;color:var(--muted)}
body.tr .fbline{color:#FF4A51}
