/* Blue hour after a storm: dusk sky, alpenglow on the Swans, snow sheets, safety amber for anything you press.
   Phone first. Wide screens: the valley fills the left, the sheet stays a phone-width column. */
@font-face { font-family: Bowlby; src: url(../fonts/bowlbyone-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: BarlowC; font-weight: 600; src: url(../fonts/barlowcondensed-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: BarlowC; font-weight: 800; src: url(../fonts/barlowcondensed-800.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 400; src: url(../fonts/barlow-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 600; src: url(../fonts/barlow-600.woff2) format('woff2'); font-display: swap; }
:root {
  --ink: #0d1a30; --dusk: #14294a; --slate: #49669a; --alpen: #f0a39b; --amber: #ffb000; --snow: #f3f8fd; --drift: #dce8f4; --sign: #00694b; --soft: #4b5f7d;
  --display: Bowlby, Impact, sans-serif; --cond: BarlowC, 'Arial Narrow', sans-serif; --body: Barlow, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--dusk); }
body { display: flow-root; margin: 0; background: var(--dusk); color: var(--ink); font: 400 17px/1.5 var(--body); min-height: 100vh; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sign:focus-visible, .flag:focus-visible, .gary-poke:focus-visible, .gary-off:focus-visible { outline-offset: 2px; border-radius: 8px; box-shadow: 0 0 0 7px var(--ink); z-index: 2; }  /* amber on dark, so it shows on snow and on the map */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.trap { position: absolute; left: -9999px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.02; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 9vw, 2.6rem); } h2 { font-size: 1.35rem; margin-top: 1.2rem; } h3 { font: 800 1.35rem/1.1 var(--cond); margin: 0; }
p { margin: 0; text-wrap: pretty; } .lead { font-size: 1.15rem; } small, .tiny { font-size: .85rem; color: var(--soft); }

.paint-amber { --c: #ffb000; } .paint-lake { --c: #2f8fd8; } .paint-huck { --c: #8457c9; } .paint-pine { --c: #1f9d63; } .paint-barn { --c: #e0483a; } .paint-ice { --c: #8fd3ea; }

.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); color: #fff; }
.mark { text-decoration: none; font: 400 1.7rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; display: inline-block; padding-bottom: 7px; position: relative; }
.mark span { background: linear-gradient(#fff 0 42%, #b9d3ee 43% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: 0; height: 7px; transform: skewX(-24deg);
  background: repeating-linear-gradient(90deg, var(--amber) 0 12px, var(--ink) 12px 20px); }
.top nav { display: flex; gap: 1.1rem; font: 600 1.1rem var(--cond); } .top nav a { text-decoration: none; padding: 8px 0; }

.sheet { background: var(--snow); border-radius: 26px 26px 0 0; padding: 30px max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left)); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.sheet > * { min-width: 0; }
body:not(.home) { background: linear-gradient(#101f3d, #26406f 34vh, #6d78ab 64vh, #f0a39b 100vh) fixed; }
body:not(.home) .sheet { margin-top: 84px; min-height: 72vh; }
.say:not(:empty) { position: fixed; z-index: 9; left: 16px; right: 16px; top: 74px; max-width: 448px; margin-inline: auto; } .say p { background: var(--ink); color: #fff; border-left: 0; border-radius: 12px; padding: 12px 16px; font-weight: 600; box-shadow: 0 10px 30px #0006; }

.btn { font: 800 1.15rem/1 var(--cond); letter-spacing: .01em; color: var(--ink); background: var(--amber); border: 2.5px solid var(--ink); border-radius: 12px; padding: 13px 18px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); } .btn.ghost { background: #fff; } .btn.big { font-size: 1.45rem; width: 100%; padding: 18px; border-radius: 16px; }
@media (hover: hover) { .btn:hover { background: #ffc43d; } .btn.ghost:hover { background: var(--drift); } }
.link { border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; padding: 6px; color: inherit; }
.row { display: flex; flex-wrap: wrap; gap: 12px; } .row form { display: flex; gap: 10px; flex-wrap: wrap; } .cta { display: grid; gap: 14px; }

/* the valley */
.stage { position: relative; height: 68svh; min-height: 440px; overflow: hidden; background: linear-gradient(#101f3d 0, #26406f 34%, #6d78ab 60%, #dd9c9d 84%, #f7c4ae 100%); touch-action: pan-y; cursor: grab; }
.stage.still { padding-top: 154px; background: url(../map/valley.webp?v=2) center top / min(100%, 80svh) auto no-repeat content-box border-box, linear-gradient(#101f3d 0, #26406f 34%, #6d78ab 60%, #dd9c9d 84%, #f7c4ae 100%); cursor: auto; }  /* valley.js sets it when the 3D map cannot run */
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#signs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero { position: absolute; left: 18px; top: 74px; pointer-events: none; } .hero h1 { color: #fff; font-size: clamp(2rem, 10.2vw, 3.5rem); line-height: .98; text-shadow: 0 3px 0 var(--ink), 0 8px 26px #0d1a3099; }
.hero h1 span { display: block; font-size: .66em; color: var(--amber); margin-top: .12em; white-space: nowrap; }
.stage-note { position: absolute; left: 18px; right: 18px; bottom: 34px; color: #fff; font: 600 .82rem/1.2 var(--cond); text-shadow: 0 0 2px var(--ink), 0 0 3px var(--ink), 0 0 5px var(--ink), 0 1px 9px var(--ink); pointer-events: none; }
.sign { text-decoration: none; position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.sign > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--sign); color: #fff; border: 1.5px solid #fff; border-radius: 5px; padding: 2px 7px; font: 600 .88rem/1.25 var(--cond); box-shadow: 0 0 0 1.5px var(--sign), 0 4px 10px #0d1a3088; }
.sign i { font-style: normal; font-weight: 800; background: var(--amber); color: var(--ink); border-radius: 3px; padding: 0 5px; } .sign, .shield, .landmark { transition: opacity .4s; } .sign.dim, .shield.dim, .landmark.dim { opacity: 0; pointer-events: none; } .sign.dim { visibility: hidden; } .sign.hop { opacity: 0; transition-duration: .2s; }
.leads { position: absolute; inset: 0; width: 100%; height: 100%; } .lead-edge { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; opacity: .75; } .lead { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; } .lead-dot { r: 4px; fill: #fff; stroke: var(--sign); stroke-width: 2.5; }
.shield, .landmark { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.shield { font: 800 .66rem/1 var(--cond); color: var(--ink); background: #fff; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px; border: 1.5px solid var(--ink); } .shield.us { border-radius: 4px 4px 9px 9px; } .shield.mt { border-radius: 3px; }
.landmark { white-space: normal; width: min-content; text-align: center; font: italic 600 .78rem/1.05 var(--cond); letter-spacing: .05em; color: #f3f8fd; text-shadow: 0 0 2px #0d1a30, 0 0 2px #0d1a30, 0 0 4px #0d1a30, 0 0 7px #0d1a30; }
.flag { position: absolute; left: 0; top: 0; width: 30px; will-change: transform; pointer-events: auto; filter: drop-shadow(0 4px 6px #0d1a30aa); } .flag .badge { width: 30px; } .flag::after { content: ''; position: absolute; inset: -6px; }
.lip { position: relative; margin-top: -24px; z-index: 2; }
.tally { display: flex; justify-content: space-between; gap: 14px; font: 600 1.1rem/1.1 var(--cond); } .tally span { display: flex; align-items: center; gap: 8px; } .tally b { font: 400 1.9rem/1 var(--display); }

.badge { width: 100%; height: auto; display: block; overflow: visible; } .badge-name { font: 800 17px BarlowC, 'Arial Narrow', sans-serif; fill: #0d1a30; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } .wall a { text-decoration: none; display: grid; gap: 4px; text-align: center; justify-items: center; align-content: start; } .wall .badge { max-width: 150px; transition: transform .18s; } .wall b { font: 800 1.1rem/1.15 var(--cond); margin-top: 6px; }
.wall a:hover .badge { transform: translateY(-5px) rotate(-2deg); } .parked .badge { filter: grayscale(.85) opacity(.65); }
.poster { display: grid; place-items: center; background: linear-gradient(var(--dusk), var(--slate) 60%, var(--alpen)); border-radius: 20px; padding: 24px; } .badge.huge { width: min(230px, 64vw); }
.hit { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; } .hit > div { display: grid; gap: 8px; justify-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; } .steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; } .steps li::before { content: counter(s); font: 400 1.9rem/1 var(--display); grid-row: span 2; } .steps b { font: 800 1.2rem/1.2 var(--cond); }
.note { background: #ffe7ab; border-radius: 12px; padding: 12px 16px; font-weight: 600; } .review { background: #fff; border-radius: 12px; padding: 12px 16px; }
.job { background: #fff; border: 2px solid var(--drift); border-radius: 16px; padding: 16px; display: grid; gap: 10px; justify-items: start; } .job.mine { border-color: var(--ink); }
.beacon { background: var(--dusk); color: #fff; border-radius: 20px; padding: 20px; display: grid; gap: 10px; position: relative; overflow: hidden; } .beacon h2 { margin: 0; } .beacon.on { background: radial-gradient(circle at 85% 0, #ffb000aa, transparent 62%), var(--dusk); } .beacon .btn.ghost { color: var(--ink); } .beacon .pick > span { color: var(--ink); } .beacon .pick input:checked + span { background: var(--amber); color: var(--ink); }
.credit { display: flex; gap: 16px; align-items: center; background: #fff; border: 2px solid var(--drift); border-radius: 16px; padding: 14px 18px; } .credit b { font: 400 3rem/1 var(--display); }

.form { display: grid; gap: 18px; min-width: 0; } .form label:not(.pick):not(.check):not(.trap) { display: grid; gap: 6px; font: 800 1.1rem/1.2 var(--cond); } .form small { font: 400 .85rem/1.3 var(--body); }
input:not([type=radio]):not([type=checkbox]), select, textarea { font: 400 1.05rem var(--body); color: var(--ink); background: #fff; border: 2px solid #b4c6da; border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 50px; } input:focus, select:focus, textarea:focus { border-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { font: 800 1.1rem/1.2 var(--cond); padding: 0; margin-bottom: 8px; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; } .pick { position: relative; } .pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; } .pick > span { display: grid; place-items: center; min-height: 46px; padding: 8px 16px; background: #fff; border: 2px solid #b4c6da; border-radius: 12px; font: 600 1.1rem/1.1 var(--cond); } .pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; } .pick input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.picks.rigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .pick.art > span { padding: 8px; } .pick.art svg { width: 100%; height: auto; display: block; } .pick.art input:checked + span { background: #ffe7ab; border-color: var(--ink); } .pick.dot > span { width: 48px; padding: 0; background: var(--c); border-color: #fff; box-shadow: 0 0 0 2px #b4c6da; border-radius: 50%; } .pick.dot input:checked + span { background: var(--c); box-shadow: 0 0 0 4px var(--ink); }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; } .check input { width: 24px; height: 24px; accent-color: var(--ink); flex: none; } .filter { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; } .filter .btn { grid-column: 1 / -1; }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; } th { text-align: left; font: 800 1rem var(--cond); } td, th { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--drift); white-space: nowrap; } .void td { text-decoration: line-through; color: var(--soft); } .pill { background: var(--drift); border-radius: 99px; padding: 2px 10px; font: 600 1rem var(--cond); } .pill.pending, .pill.open { background: #ffe7ab; } .pill.active, .pill.done { background: #bfe8d3; } .pill.banned { background: #f6c3bd; }
.foot { background: var(--dusk); color: #d3e1f1; padding: 26px 20px 40px; display: grid; gap: 10px; font-size: .92rem; } .foot .tiny { color: #9db3d0; } .foot p:nth-child(2) { display: flex; gap: 18px; }

@media (min-width: 900px) {
  .stage.still { padding-top: 210px; } .split { display: grid; grid-template-columns: minmax(0, 1fr) 480px; height: 100vh; } .stage { height: 100vh; } .lip { margin: 0; border-radius: 0; overflow-y: auto; padding-top: 84px; }
  .home .top nav { color: var(--ink); } .home .foot { display: none; } .home .lip .foot { display: grid; } .hero { left: 40px; top: 96px; } .top { padding-inline: 36px; } .stage-note { left: 40px; bottom: 24px; } .flag, .flag .badge { width: 46px; } .sign > span { font-size: 1.05rem; } .shield { font-size: .8rem; min-width: 23px; height: 23px; } .landmark { font-size: .95rem; }
  body:not(.home) .sheet { max-width: 480px; margin-inline: auto; border-radius: 26px; margin-block: 100px 40px; padding-inline: 32px; } body.desk .sheet { max-width: 860px !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
