/* nathanbaker.lol · Oceanic Navigator (js/ocean/). Loaded only when it opens; everything here is under .oc, so
   nothing else on the site is touched. The site's tokens (site.css :root) are used throughout: --ink, --mono,
   --display, --m, --ease. The house rules (CLAUDE.md): reading text sentence case 12-13 px; pressable things are
   bounded controls in tracked caps; the pale blue warp glow means chosen / the way on. */

/* (the site's own tokens, from site.css's :root: this page doesn't load site.css) */
.oc { --ink: rgb(238 236 230 / .94); --ink-2: rgb(238 236 230 / .66); --ink-3: rgb(238 236 230 / .44); --line: rgb(238 236 230 / .09);
  --display: "Krona One", "Michroma", "Eurostile", "Microgramma", "Arial Black", sans-serif; --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --tsize: clamp(26px, 4.6vw, 54px); --track: .16em; --m: clamp(26px, 5.5vw, 68px); }
.oc { position: fixed; inset: 0; z-index: 55; background: #000; color: var(--ink); font: 400 12px/1.6 var(--mono);
  opacity: 0; transition: opacity .9s var(--ease); -webkit-tap-highlight-color: transparent; overscroll-behavior: none; --zone: #7cc8ff; --act: 170 205 255; }
.oc.on { opacity: 1; }
.oc-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.oc button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oc button:focus-visible { outline: 1px solid rgb(var(--act) / .7); outline-offset: 3px; }
.oc-hud { position: absolute; inset: 0; pointer-events: none; }
.oc-hud > * { position: absolute; }
.oc-head, .oc-gauges, .oc-zones, .oc-exit, .oc-tools, .oc-hint, .oc-rail, .oc-toast { text-shadow: 0 0 6px rgb(0 0 0 / .9), 0 0 18px rgb(0 0 0 / .6); }

/* things rise in after the fade, one after another, as the site's pages do */
.oc-rise { opacity: 0; transform: translateY(8px); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.oc.on .oc-rise { opacity: 1; transform: none; }

/* ---- the corner: the zone, and the gauges under it ---- */
.oc-head { left: calc(var(--m) + env(safe-area-inset-left, 0px)); top: calc(var(--m) * .62 + env(safe-area-inset-top, 0px)); pointer-events: none; }
.oc-head::before { content: ""; position: absolute; inset: -60px -140px -50px -140px; z-index: -1; background: radial-gradient(closest-side, rgb(0 0 0 / .34), transparent); pointer-events: none; }
.oc-kicker { margin: 0 0 6px; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.oc-zone { margin: 0; font: 400 clamp(18px, 2.3vw, 32px)/1.15 var(--display); letter-spacing: var(--track); text-transform: uppercase; white-space: nowrap; }
.oc-zone span { display: inline-block; }
.oc-nick { margin: 8px 0 0; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.oc-nick::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--zone); box-shadow: 0 0 7px var(--zone); transition: background 1.2s var(--ease), box-shadow 1.2s var(--ease); }

.oc-gauges { left: calc(var(--m) + env(safe-area-inset-left, 0px)); top: calc(var(--m) * .62 + var(--tsize) * 1.1 + 62px + env(safe-area-inset-top, 0px)); margin: 0; width: 214px; }
.oc-g { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 1px 6px; border-top: 1px solid rgb(238 236 230 / .11); }
.oc-g:last-child { border-bottom: 1px solid rgb(238 236 230 / .11); }
.oc-g dt { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.oc-g dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oc-g b { font-weight: 400; font-size: 13px; letter-spacing: .04em; }
.oc-g i { font-style: normal; margin-left: 4px; font-size: 10px; color: var(--ink-2); }
.oc-g span { display: block; font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3); }
.oc-g-depth { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
.oc-g-depth dd { text-align: left; }
.oc-g-depth b { font: 300 clamp(26px, 2.8vw, 38px)/1.05 var(--mono); letter-spacing: .01em; }
.oc-g-depth i { font-size: 13px; }
.oc-g-depth span { font-size: 10.5px; margin-top: 2px; }

/* ---- jump to a zone ---- */
.oc-zones { left: calc(var(--m) + env(safe-area-inset-left, 0px)); top: calc(var(--m) * .62 + var(--tsize) * 1.1 + 300px + env(safe-area-inset-top, 0px)); width: 214px; pointer-events: auto; }
.oc-label { margin: 0 0 6px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.oc-zones button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 2px 5px 0; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); transition: color .5s var(--ease); }
.oc-zones button i { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--hue); opacity: .45; transition: opacity .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.oc-zones .n { flex: 1; text-align: left; }
.oc-zones .r { font-size: 9px; letter-spacing: .06em; color: rgb(238 236 230 / .3); font-variant-numeric: tabular-nums; }
.oc-zones button:hover, .oc-zones button:focus-visible { color: var(--ink); }
.oc-zones button:hover i { opacity: 1; }
.oc-zones button.on { color: var(--ink); text-shadow: 0 0 8px rgb(190 210 255 / .45), 0 0 6px rgb(0 0 0 / .9); }
.oc-zones button.on i { opacity: 1; transform: scale(1.4); box-shadow: 0 0 6px var(--hue), 0 0 12px var(--hue); }

/* ---- the way out ---- */
.oc-exit { right: calc(var(--m) + env(safe-area-inset-right, 0px)); top: calc(var(--m) * .62 + env(safe-area-inset-top, 0px) + 4px); display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2) !important; pointer-events: auto; transition: color .5s var(--ease); }
.oc-exit svg { width: 14px; height: 14px; color: rgb(var(--act)); filter: drop-shadow(0 0 4px rgb(var(--act) / .7)); }
.oc-exit span { position: relative; }
.oc-exit span::after { content: ""; position: absolute; left: 0; right: .26em; bottom: -3px; height: 1px; background: currentColor; opacity: .5; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.oc-exit:hover, .oc-exit:focus-visible { color: var(--ink) !important; }
.oc-exit:hover span::after, .oc-exit:focus-visible span::after { transform: scaleX(1); }

/* ---- the sonar map ---- */
.oc-rail { right: calc(var(--m) * .55 + env(safe-area-inset-right, 0px)); top: calc(var(--m) * .62 + 64px + env(safe-area-inset-top, 0px)); bottom: calc(118px + env(safe-area-inset-bottom)); width: 150px; pointer-events: auto; cursor: ns-resize; touch-action: none; }
.oc-rail canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.oc-rail-note { position: absolute; right: 22px; bottom: -22px; margin: 0; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: rgb(238 236 230 / .26); white-space: nowrap; }
.oc-rail-tip { position: absolute; right: 30px; margin: -9px 0 0; padding: 2px 8px; border-radius: 999px; background: rgb(6 10 20 / .8); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateX(-118px); transition: opacity .25s var(--ease); pointer-events: none; }
.oc-rail:hover .oc-rail-tip { opacity: 1; }

/* ---- the scope ---- */
.oc-scope { left: calc(var(--m) + env(safe-area-inset-left, 0px)); bottom: calc(26px + env(safe-area-inset-bottom)); width: 128px; height: 128px; pointer-events: auto; cursor: pointer; border-radius: 50%; }

/* ---- lamps, the log ---- */
.oc-tools { right: calc(var(--m) * .55 + 22px + env(safe-area-inset-right, 0px)); bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; gap: 10px; pointer-events: auto; }
.oc .oc-tools button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 7px; border: 1px solid rgb(238 236 230 / .2); border-radius: 999px; background: rgb(5 8 16 / .45);
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); transition: color .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease); }
.oc .oc-tools button:hover, .oc .oc-tools button:focus-visible { color: var(--ink); border-color: rgb(238 236 230 / .42); }
.oc-tools button i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; transition: opacity .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease); }
.oc-tools button em { font-style: normal; letter-spacing: .1em; color: var(--ink-3); }
.oc .oc-tools .oc-lamp[aria-pressed="true"] { color: var(--ink); border-color: rgb(var(--act) / .55); background: rgb(14 22 48 / .7); box-shadow: 0 0 12px rgb(130 175 255 / .2); }
.oc-lamp[aria-pressed="true"] i { opacity: 1; background: rgb(255 238 210); box-shadow: 0 0 6px rgb(255 230 190 / .9); }
.oc .oc-tools .oc-logbtn[aria-expanded="true"] { color: var(--ink); border-color: rgb(var(--act) / .55); background: rgb(14 22 48 / .7); }
.oc-logbtn i { background: rgb(var(--act)) !important; opacity: .8 !important; box-shadow: 0 0 6px rgb(150 190 255 / .8); }

/* ---- words that come and go ---- */
.oc-hint { left: 50%; bottom: calc(66px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; transition: opacity 1.4s var(--ease) !important; }
.oc.on .oc-hint { transform: translateX(-50%); }   /* (centred: the rise's transform: none would undo it) */
.oc.on .oc-hint.gone { opacity: 0; }
.oc-toast { left: calc(var(--m) + env(safe-area-inset-left, 0px)); bottom: calc(172px + env(safe-area-inset-bottom)); display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px; pointer-events: none; }
.oc-t { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 15px 8px; border: 1px solid rgb(var(--act) / .35); border-radius: 999px; background: rgb(6 10 22 / .72);
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); white-space: nowrap; pointer-events: auto; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .9s var(--ease-out); box-shadow: 0 0 18px rgb(110 160 255 / .12); }
.oc-t.on { opacity: 1; transform: none; }
.oc-t i { width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--act)); box-shadow: 0 0 7px rgb(150 190 255 / .95); }
.oc-t .k { color: rgb(var(--act)); }

/* a zone's title as you enter it */
.oc-title { left: 50%; top: 40%; width: min(520px, 84vw); transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); text-shadow: 0 0 10px rgb(0 0 0 / .9), 0 0 30px rgb(0 0 0 / .6); }
.oc-title.on { opacity: 1; }
.oc-title-k { margin: 0 0 10px; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.oc-title h3 { margin: 0; font: 400 clamp(22px, 4vw, 46px)/1.1 var(--display); letter-spacing: .2em; text-transform: uppercase; transition: letter-spacing 7s var(--ease-out); }
.oc-title.on h3 { letter-spacing: .26em; }
.oc-title-b { margin: 16px auto 0; max-width: 440px; font-size: 12px; line-height: 1.7; color: rgb(238 236 230 / .78); }

/* corner marks round whatever's under the pointer, and its name */
.oc-ret { left: 0; top: 0; width: 0; height: 0; --r: 30px; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.oc-ret.on { opacity: 1; }
.oc-ret i { position: absolute; width: 9px; height: 9px; border: 1px solid rgb(var(--act) / .85); filter: drop-shadow(0 0 3px rgb(var(--act) / .6)); transition: transform .45s var(--ease-out); }
.oc-ret i:nth-child(1) { left: calc(var(--r) * -1); top: calc(var(--r) * -1); border-width: 1px 0 0 1px; }
.oc-ret i:nth-child(2) { right: calc(var(--r) * -1); top: calc(var(--r) * -1); border-width: 1px 1px 0 0; }
.oc-ret i:nth-child(3) { left: calc(var(--r) * -1); bottom: calc(var(--r) * -1); border-width: 0 0 1px 1px; }
.oc-ret i:nth-child(4) { right: calc(var(--r) * -1); bottom: calc(var(--r) * -1); border-width: 0 1px 1px 0; }
.oc-ret:not(.on) i:nth-child(1) { transform: translate(-8px, -8px); } .oc-ret:not(.on) i:nth-child(2) { transform: translate(8px, -8px); }
.oc-ret:not(.on) i:nth-child(3) { transform: translate(-8px, 8px); } .oc-ret:not(.on) i:nth-child(4) { transform: translate(8px, 8px); }
.oc-ret span { position: absolute; left: 0; top: calc(var(--r) + 12px); transform: translateX(-50%); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--ink); text-shadow: 0 0 6px rgb(0 0 0 / .95), 0 0 14px rgb(0 0 0 / .7); }

/* ---- the card ---- */
.oc-card { right: calc(var(--m) * .55 + 168px + env(safe-area-inset-right, 0px)); top: calc(var(--m) * .62 + 56px + env(safe-area-inset-top, 0px)); bottom: calc(80px + env(safe-area-inset-bottom)); width: min(372px, 34vw);
  display: flex; flex-direction: column; gap: 10px; pointer-events: auto; opacity: 0; transform: translateX(14px); transition: opacity .55s var(--ease), transform .8s var(--ease-out); }
.oc-card.on { opacity: 1; transform: none; }
.oc-card[hidden] { display: none; }
/* (the window is clear: the specimen is drawn into the canvas beneath it) */
.oc-view { position: relative; flex: none; height: clamp(170px, 30vh, 260px); border: 1px solid rgb(var(--act) / .16); border-radius: 3px; cursor: grab; touch-action: none; box-shadow: inset 0 0 40px rgb(0 0 0 / .4); }
.oc-view:active { cursor: grabbing; }
.oc-vhint { position: absolute; left: 14px; bottom: 8px; margin: 0; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: rgb(238 236 230 / .4); pointer-events: none; }
.oc-scale { position: absolute; right: 14px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; pointer-events: none; }
.oc-scale i { display: block; width: var(--w, 60px); height: 5px; border: 1px solid rgb(238 236 230 / .55); border-top: 0; }
.oc-scale span { font-size: 9px; letter-spacing: .12em; color: rgb(238 236 230 / .7); }
.oc-info { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px 20px 16px; border-radius: 14px; background: rgb(5 8 16 / .72); border: 1px solid rgb(238 236 230 / .08);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); scrollbar-width: thin; scrollbar-color: rgb(238 236 230 / .2) transparent; }
@media (pointer: coarse) { .oc-info { background: rgb(5 8 16 / .88); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.oc-kindrow { display: flex; justify-content: space-between; align-items: center; }
.oc-kind { margin: 0; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.oc-kind i { display: inline-block; width: 5px; height: 5px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--hue); box-shadow: 0 0 6px var(--hue); }
.oc-step { display: flex; gap: 4px; }
.oc .oc-step button { width: 26px; height: 24px; border-radius: 999px; border: 1px solid rgb(238 236 230 / .16); font-size: 14px; line-height: 1; color: var(--ink-2); transition: color .4s var(--ease), border-color .4s var(--ease); }
.oc .oc-step button:hover { color: var(--ink); border-color: rgb(var(--act) / .5); }
.oc-name { margin: 12px 0 0; font: 400 clamp(17px, 1.6vw, 23px)/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.oc-sci { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); }
.oc-sci i { font-style: italic; }
.oc-tag { margin: 10px 0 14px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--act) / .85); }
.oc-rows { margin: 0; }
.oc-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 1px; border-top: 1px solid rgb(238 236 230 / .1); }
.oc-rows > div:last-child { border-bottom: 1px solid rgb(238 236 230 / .1); }
.oc-rows dt { flex: none; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgb(238 236 230 / .55); white-space: nowrap; }
.oc-rows dd { margin: 0; font-size: 11.5px; line-height: 1.5; text-align: right; color: var(--ink); }
.oc-facts { margin: 14px 0 0; padding: 0; list-style: none; }
.oc-facts li { position: relative; margin: 0 0 9px; padding-left: 16px; font-size: 12px; line-height: 1.65; color: rgb(238 236 230 / .84); }
.oc-facts li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: rgb(var(--act) / .8); box-shadow: 0 0 5px rgb(var(--act) / .7); }
.oc-src { margin: 12px 0 0; font-size: 9.5px; line-height: 1.6; color: var(--ink-3); }
.oc .oc-close { align-self: flex-start; padding: 6px 14px 7px; border: 1px solid rgb(238 236 230 / .2); border-radius: 999px; background: rgb(5 8 16 / .55); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); transition: color .4s var(--ease), border-color .4s var(--ease); }
.oc .oc-close:hover, .oc .oc-close:focus-visible { color: var(--ink); border-color: rgb(238 236 230 / .45); }

/* ---- the log ---- */
.oc-log { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 90vw); max-height: 78vh; display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.oc-log[hidden] { display: none; }
.oc-log-in { overflow: auto; padding: 20px 22px; border-radius: 16px; background: rgb(5 8 16 / .82); border: 1px solid rgb(238 236 230 / .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); scrollbar-width: thin; }
.oc-log h3 { margin: 0; font: 400 18px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.oc-log-sub { margin: 6px 0 10px; font-size: 11px; color: var(--ink-3); }
.oc-log h4 { display: flex; justify-content: space-between; margin: 16px 0 4px; font-weight: 400; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.oc-log h4::before { content: ""; width: 5px; height: 5px; margin: 5px 10px 0 0; border-radius: 50%; background: var(--hue); box-shadow: 0 0 6px var(--hue); }
.oc-log h4 span { margin-left: auto; color: var(--ink-3); }
.oc-log ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.oc-log li { border-top: 1px solid rgb(238 236 230 / .08); }
.oc-log li button, .oc-log li.no { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 1px; font-size: 11.5px; text-align: left; }
.oc-log li button { color: var(--ink); transition: color .4s var(--ease); }
.oc-log li button:hover { color: rgb(var(--act)); }
.oc-log li button i { flex: none; width: 4px; height: 4px; margin-bottom: 2px; border-radius: 50%; background: rgb(var(--act)); box-shadow: 0 0 5px rgb(var(--act)); }
.oc-log li span { margin-left: auto; font-size: 9.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oc-log li.no .q { margin: 0; font-size: 11.5px; color: rgb(238 236 230 / .3); }
.oc .oc-log-close { align-self: center; padding: 6px 14px 7px; border: 1px solid rgb(238 236 230 / .2); border-radius: 999px; background: rgb(5 8 16 / .6); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

/* ---- smaller screens ---- */
@media (max-height: 760px) and (min-width: 721px) { .oc-zones { display: none; } }
@media (max-width: 1100px) and (min-width: 721px) { .oc-card { width: min(340px, 40vw); } }
@media (max-width: 720px) {
  .oc-head { top: calc(14px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); }
  .oc-kicker { display: none; }
  .oc-zone { font-size: 17px; letter-spacing: .14em; }
  .oc-nick { margin-top: 5px; font-size: 8.5px; }
  .oc-gauges { top: calc(78px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); width: auto; display: grid; grid-template-columns: auto auto; gap: 0 18px; }
  .oc-g { border: 0 !important; padding: 2px 0; display: block; }
  .oc-g dt { font-size: 8px; }
  .oc-g dd { text-align: left; }
  .oc-g b { font-size: 12px; }
  .oc-g span { display: none; }
  .oc-g-depth { grid-column: 1 / -1; }
  .oc-g-depth b { font-size: 28px; }
  .oc-g-depth span { display: inline; margin-left: 10px; }
  .oc-exit { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
  .oc-exit span { display: none; }
  .oc-exit svg { width: 18px; height: 18px; }
  .oc-rail { right: calc(6px + env(safe-area-inset-right, 0px)); width: 46px; top: calc(64px + env(safe-area-inset-top, 0px)); bottom: calc(150px + env(safe-area-inset-bottom)); }
  .oc-rail-note { display: none; }
  .oc-scope { display: none; }
  .oc-zones { top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); left: 0; right: 0; width: auto; display: flex; gap: 6px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .oc-zones::-webkit-scrollbar { display: none; }
  .oc-label { display: none; }
  .oc-zones button { flex: none; width: auto; padding: 6px 11px 7px; border: 1px solid rgb(238 236 230 / .16); border-radius: 999px; background: rgb(5 8 16 / .5); font-size: 8.5px; }
  .oc-zones .r { display: none; }
  .oc-zones button.on { border-color: rgb(var(--act) / .5); background: rgb(14 22 48 / .7); }
  .oc-tools { left: 16px; right: auto; bottom: calc(22px + env(safe-area-inset-bottom)); }
  .oc-hint { bottom: calc(112px + env(safe-area-inset-bottom)); font-size: 8.5px; letter-spacing: .14em; white-space: normal; width: min(300px, 86vw); text-align: center; line-height: 1.7; }
  .oc-toast { left: 50%; transform: translateX(-50%); align-items: center; bottom: calc(142px + env(safe-area-inset-bottom)); }
  .oc-title { top: 34%; }
  .oc-title-b { font-size: 11.5px; }
  .oc-card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 74vh; height: 74vh; gap: 0; padding: 0; transform: translateY(24px); }
  .oc-card.on { transform: none; }
  .oc-view { height: 30vh; margin: 0 12px 8px; }
  .oc-info { border-radius: 18px 18px 0 0; padding: 16px 18px calc(64px + env(safe-area-inset-bottom)); }
  .oc .oc-close { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .oc-log ul { grid-template-columns: 1fr; }
  /* (a card open: the sheet has the screen; what would show through it steps aside) */
  .oc.carded .oc-zones, .oc.carded .oc-tools, .oc.carded .oc-hint, .oc.carded .oc-toast, .oc.carded .oc-rail, .oc.carded .oc-gauges { opacity: 0 !important; pointer-events: none; transition: opacity .4s var(--ease); }
  .oc-info { background: rgb(5 8 16 / .94); }
  .oc .oc-close { background: rgb(8 12 24 / .96); }
}
@media (prefers-reduced-motion: reduce) { .oc-rise, .oc-title, .oc-t, .oc-card { transition-duration: .01s !important; } }

/* ---- the expedition (hud.js): the field log's ring, the scan, contacts, auto play, a controller ---- */
.oc-ring { width: 13px; height: 13px; margin: -2px 0 -2px -3px; transform: rotate(-90deg); flex: none; }
.oc-ring circle { fill: none; stroke: rgb(238 236 230 / .22); stroke-width: 2; }
.oc-ring .k { stroke: rgb(var(--act)); stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 2px rgb(var(--act) / .8)); transition: stroke-dashoffset 1.2s var(--ease-out); }
.oc-autobtn i { background: rgb(var(--act)) !important; }
.oc .oc-tools .oc-autobtn[aria-pressed="true"] { color: var(--ink); border-color: rgb(var(--act) / .55); background: rgb(14 22 48 / .7); box-shadow: 0 0 12px rgb(130 175 255 / .2); }
.oc-autobtn[aria-pressed="true"] i { opacity: 1 !important; box-shadow: 0 0 6px rgb(var(--act)); animation: oc-blink 1.6s var(--ease) infinite; }
@keyframes oc-blink { 50% { opacity: .35; } }

/* the scan: a ring that closes round what's being scanned */
.oc-scan { left: 0; top: 0; width: 0; height: 0; --r: 40px; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.oc-scan.on { opacity: 1; }
.oc-scan svg { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); overflow: visible; transform: rotate(-90deg); }
.oc-scan circle { fill: none; vector-effect: non-scaling-stroke; }
.oc-scan .b { stroke: rgb(var(--act) / .18); stroke-width: 1; stroke-dasharray: 2 5; }
.oc-scan .k { stroke: rgb(var(--act)); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgb(var(--act) / .85)); }
.oc-scan span { position: absolute; left: 0; top: calc(var(--r) + 10px); transform: translateX(-50%); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: rgb(var(--act)); text-shadow: 0 0 6px rgb(0 0 0 / .95); font-variant-numeric: tabular-nums; }

/* an unlogged contact out of view: a chevron at the edge, pointing to it */
.oc-contact { left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.oc-contact.on { opacity: 1; }
.oc-contact i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; transform: rotate(var(--a, 0rad)); }
.oc-contact i::before { content: ""; position: absolute; inset: 4px; border: solid rgb(var(--act) / .9); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); filter: drop-shadow(0 0 4px rgb(var(--act) / .8)); animation: oc-pulse 1.8s var(--ease) infinite; }
.oc-contact span { position: absolute; left: 0; top: 14px; transform: translateX(-50%); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--act) / .8); text-shadow: 0 0 6px rgb(0 0 0 / .95); white-space: nowrap; }
@keyframes oc-pulse { 50% { opacity: .4; } }

/* auto play's bar */
.oc-auto { left: 50%; top: calc(var(--m) * .62 + env(safe-area-inset-top, 0px) - 4px); transform: translate(-50%, -10px); width: min(420px, 40vw); padding: 11px 16px 12px; border-radius: 14px; background: rgb(5 8 16 / .72); border: 1px solid rgb(var(--act) / .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: auto; opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease-out); box-shadow: 0 0 22px rgb(110 160 255 / .08); }
.oc-auto.on { opacity: 1; transform: translate(-50%, 0); }
.oc-auto[hidden] { display: none; }
.oc-auto-row { display: flex; align-items: baseline; gap: 14px; }
.oc-auto-k { margin: 0; flex: none; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--act)); }
.oc-auto-k i { display: inline-block; width: 5px; height: 5px; margin: 0 8px 1px 0; border-radius: 50%; background: rgb(var(--act)); box-shadow: 0 0 6px rgb(var(--act)); animation: oc-blink 1.6s var(--ease) infinite; }
.oc-auto-n { margin-left: 6px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.oc-auto-name { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.oc-auto.going .oc-auto-name::before { content: "Diving to "; color: var(--ink-3); }
.oc-auto-bar { position: relative; height: 2px; margin: 9px 0 10px; background: rgb(238 236 230 / .1); border-radius: 2px; overflow: hidden; }
.oc-auto-bar i { position: absolute; inset: 0; background: rgb(var(--act)); box-shadow: 0 0 6px rgb(var(--act)); transform-origin: left; transform: scaleX(0); }
.oc-auto.going .oc-auto-bar i { animation: oc-slide 1.4s var(--ease) infinite; transform: scaleX(.25) !important; }
@keyframes oc-slide { from { translate: -30% 0; } to { translate: 130% 0; } }
.oc-auto-btns { display: flex; gap: 8px; justify-content: flex-end; }
.oc .oc-auto-btns button { padding: 5px 12px 6px; border: 1px solid rgb(238 236 230 / .18); border-radius: 999px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); transition: color .4s var(--ease), border-color .4s var(--ease); }
.oc .oc-auto-btns button:hover, .oc .oc-auto-btns button:focus-visible { color: var(--ink); border-color: rgb(var(--act) / .5); }
.oc .oc-auto-btns .oc-auto-pace { margin-right: auto; border-color: transparent; letter-spacing: .12em; color: var(--ink-3); }
.oc.autoing .oc-hint, .oc.on.autoing .oc-hint { opacity: 0; }

/* toasts: a count, and news (a zone surveyed) */
.oc-t em { font-style: normal; margin-left: 2px; color: var(--ink-3); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.oc-t-note i { background: var(--hue, rgb(var(--act))); box-shadow: 0 0 8px var(--hue, rgb(var(--act))); }
.oc-t-note { border-color: rgb(238 236 230 / .28); }

/* the card's chip: logged, studied */
.oc-chip { display: inline-flex; align-items: center; gap: 7px; margin: -6px 0 14px; padding: 3px 10px 4px; border: 1px solid rgb(238 236 230 / .14); border-radius: 999px; font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.oc-chip i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid rgb(var(--act) / .8); }
.oc-chip.st { color: rgb(var(--act)); border-color: rgb(var(--act) / .35); }
.oc-chip.st i { background: rgb(var(--act)); box-shadow: 0 0 6px rgb(var(--act)); }

/* the field log, as the expedition's board */
.oc-log-how { margin: 0 0 6px; font-size: 11px; line-height: 1.6; color: rgb(238 236 230 / .6); }
.oc-log h4 em { margin-left: 12px; font-style: normal; font-size: 8.5px; letter-spacing: .2em; color: var(--hue); text-shadow: 0 0 8px var(--hue); }
.oc-zbar { position: relative; height: 2px; margin: 2px 0 6px; background: rgb(238 236 230 / .07); border-radius: 2px; overflow: hidden; }
.oc-zbar i { position: absolute; inset: 0; background: var(--hue); opacity: .75; transform-origin: left; transform: scaleX(var(--k)); box-shadow: 0 0 6px var(--hue); }
.oc-log li.st button i { box-shadow: 0 0 0 2px rgb(5 8 16), 0 0 0 3px rgb(var(--act) / .8), 0 0 8px rgb(var(--act)); }
.oc-log li.no button { color: rgb(238 236 230 / .42); }
.oc-log li.no button:hover, .oc-log li.no button:focus-visible { color: var(--ink-2); }
.oc-log li.no b { flex: none; width: 13px; font-weight: 400; font-size: 10px; text-align: center; color: rgb(var(--act) / .6); }
.oc-log li.no .q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-style: italic; color: inherit; }
.oc-log li button:focus-visible { outline: none; color: rgb(var(--act)); background: rgb(var(--act) / .06); }
.oc-log-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid rgb(238 236 230 / .08); font-size: 9.5px; color: var(--ink-3); }
.oc .oc-forget { padding: 5px 12px 6px; border: 1px solid rgb(238 236 230 / .16); border-radius: 999px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); transition: color .4s var(--ease), border-color .4s var(--ease); }
.oc .oc-forget:hover, .oc .oc-forget:focus-visible, .oc .oc-forget[data-sure] { color: rgb(255 190 170); border-color: rgb(255 170 150 / .4); }

/* expedition complete */
.oc-done { inset: 0; display: grid; place-items: center; pointer-events: auto; background: radial-gradient(closest-side, rgb(0 0 0 / .55), rgb(0 0 0 / .2)); opacity: 0; transition: opacity .9s var(--ease); }
.oc-done.on { opacity: 1; }
.oc-done[hidden] { display: none; }
.oc-done-in { width: min(460px, 88vw); padding: 26px 26px 22px; text-align: center; border-radius: 18px; background: rgb(5 8 16 / .82); border: 1px solid rgb(var(--act) / .25); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 40px rgb(110 160 255 / .12); }
.oc-done-k { margin: 0 0 10px; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.oc-done h3 { margin: 0; font: 400 clamp(20px, 3vw, 30px)/1.15 var(--display); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 18px rgb(var(--act) / .45); }
.oc-done-b { margin: 14px auto 16px; max-width: 360px; font-size: 12px; line-height: 1.7; color: rgb(238 236 230 / .78); }
.oc-done dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0 0 18px; text-align: left; }
.oc-done dl div { padding: 7px 0 0; border-top: 1px solid rgb(238 236 230 / .1); }
.oc-done dt { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.oc-done dd { margin: 2px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.oc-done-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.oc .oc-done-btns button { padding: 6px 14px 7px; border: 1px solid rgb(238 236 230 / .2); border-radius: 999px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.oc .oc-done-btns button:hover, .oc .oc-done-btns button:focus-visible { color: var(--ink); border-color: rgb(var(--act) / .55); }
.oc .oc-done-btns .oc-done-close { color: var(--ink); border-color: rgb(var(--act) / .55); background: rgb(14 22 48 / .7); }

/* a game controller: the reticle in the middle, and what the buttons do here */
.oc-aim { left: 50%; top: 50%; width: 0; height: 0; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.oc.pad .oc-aim { opacity: 1; }
.oc.carded .oc-aim, .oc.pad-menu .oc-aim { opacity: 0; }
.oc-aim i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgb(var(--act) / .45); box-shadow: 0 0 8px rgb(var(--act) / .2); }
.oc-aim i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: rgb(var(--act)); box-shadow: 0 0 5px rgb(var(--act)); }
.oc-pad { left: 50%; bottom: calc(66px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; display: flex; gap: 14px; white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-shadow: 0 0 6px rgb(0 0 0 / .9); }
.oc.pad .oc-pad { opacity: 1; }
.oc.pad .oc-hint, .oc.on.pad .oc-hint { opacity: 0; }
.oc.carded .oc-pad { left: calc(var(--m) + 150px + env(safe-area-inset-left, 0px)); transform: none; bottom: calc(30px + env(safe-area-inset-bottom)); }
.oc-pad span { display: inline-flex; align-items: center; gap: 6px; }
.oc-pad .g { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; border: 1px solid rgb(238 236 230 / .35); font: 500 9px/1 var(--mono); letter-spacing: 0; color: var(--ink); }
.oc-pad .g-a { color: #7fe08a; border-color: rgb(127 224 138 / .6); } .oc-pad .g-b { color: #ff8a80; border-color: rgb(255 138 128 / .6); }
.oc-pad .g-x { color: #79b8ff; border-color: rgb(121 184 255 / .6); } .oc-pad .g-y { color: #ffd76a; border-color: rgb(255 215 106 / .6); }
.oc-pad .g-lb, .oc-pad .g-rb { border-radius: 4px; }
/* the pad's focus: the warp glow round the button it's on */
.oc.pad button:focus-visible, .oc.pad [tabindex="0"]:focus-visible, .oc.pad button:focus { outline: none; box-shadow: 0 0 0 1px rgb(var(--act) / .85), 0 0 14px rgb(var(--act) / .45) !important; border-radius: 999px; }
.oc.pad-menu .oc-hud::after { content: "Menu · D-pad to move · A to press · B to close"; position: absolute; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--act)); text-shadow: 0 0 6px rgb(0 0 0 / .9); }
@media (max-width: 720px) {
  .oc-auto { width: auto; left: 12px; right: 12px; top: auto; transform: translateY(10px); bottom: calc(66px + env(safe-area-inset-bottom)); }
  .oc.carded .oc-auto { bottom: auto; top: calc(10px + env(safe-area-inset-top, 0px)); transform: none; padding: 8px 12px 9px; }
  .oc-auto.on { transform: none; }
  .oc.autoing .oc-zones { opacity: 0; pointer-events: none; }
  .oc-tools { gap: 6px; }
  .oc .oc-tools button { padding: 6px 10px 7px; }
  .oc-tools .oc-lamp em, .oc-tools .oc-logbtn span { display: none; }
  .oc-pad { display: none; }
  .oc-done dl { grid-template-columns: 1fr 1fr; }
}
