/* Abyssal Basket — small details: a submersible viewport, specimen tags on the creatures,
   a field caption under the jellyfish, depth-scale rules and a sonar ping on the gauge.
   Colours are literal (94 242 224 = the aqua glow) so the file works on every page. */

/* ---------- specimen tags (positioned by creatures.js) ---------- */
.specimen { position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s ease-out; }
.specimen i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgb(94 242 224 / .85); box-shadow: 0 0 10px rgb(94 242 224 / .55); }
.specimen i::after { content: ""; position: absolute; left: 3px; top: 8px; width: 1px; height: 40px; background: linear-gradient(to bottom, rgb(94 242 224 / .7), rgb(94 242 224 / .12)); }
.specimen div { position: absolute; left: 0; top: 54px; display: grid; gap: 5px; white-space: nowrap; }
.specimen em { font: italic 400 18px/1 "Bodoni Moda", Georgia, serif; color: #e6f6f5; }
.specimen span { font: 500 10.5px/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8fb5b6; }

/* ---------- field caption under the jellyfish (home hero, positioned by abysse.js) ---------- */
.jelly-cap { position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none; opacity: 0; display: grid; justify-items: center; gap: 6px; text-align: center; }
.jelly-cap::before { content: ""; width: 1px; height: 34px; margin-bottom: 4px; background: linear-gradient(to bottom, rgb(94 242 224 / .1), rgb(94 242 224 / .6)); }
.jelly-cap em { font: italic 400 19px/1 "Bodoni Moda", Georgia, serif; color: #e6f6f5; }
.jelly-cap span { font: 500 10.5px/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8fb5b6; }

/* ---------- submersible viewport: corner marks and a live readout along the left edge ---------- */
#hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#hud .c { position: absolute; width: 18px; height: 18px; border: 0 solid rgb(94 242 224 / .38); }
#hud .tl { left: 14px; top: 84px; border-left-width: 1px; border-top-width: 1px; }
#hud .tr { right: 14px; top: 84px; border-right-width: 1px; border-top-width: 1px; }
#hud .bl { left: 14px; bottom: 14px; border-left-width: 1px; border-bottom-width: 1px; }
#hud .br { right: 14px; bottom: 14px; border-right-width: 1px; border-bottom-width: 1px; }
#hud .read {
  position: absolute; left: 21px; bottom: 44px; transform-origin: 0 100%; transform: rotate(-90deg) translateY(100%);
  display: flex; gap: 22px; white-space: nowrap;
  font: 500 10.5px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #6f9293;
}
#hud .read b { font-weight: 500; color: #cfe9e8; font-variant-numeric: tabular-nums; }
@media (max-width: 1099px) { #hud { display: none; } }

/* ---------- depth-scale rule after each section label ---------- */
.zone-tag::after, html[data-da="abyss"] .col-head .label::after, html[data-da="abyss"] .hero-copy .label::after {
  content: ""; display: inline-block; width: 96px; height: 7px; margin-left: 6px; vertical-align: middle;
  background:
    repeating-linear-gradient(90deg, rgb(94 242 224 / .45) 0 1px, transparent 1px 12px) bottom left / 100% 4px no-repeat,
    linear-gradient(rgb(94 242 224 / .3), rgb(94 242 224 / .3)) bottom left / 100% 1px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent);
}

/* ---------- sonar ping from the depth gauge ---------- */
.gauge-mark::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgb(94 242 224 / .9);
  animation: sonar 3.2s cubic-bezier(.2, .6, .3, 1) infinite;
}
@keyframes sonar { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }

@media (max-width: 1099px) { .specimen, .jelly-cap { display: none; } }
@media (prefers-reduced-motion: reduce) { .gauge-mark::after { animation: none; opacity: 0; } .specimen { transition: none; } }

/* X link in the nav */
.x-link { text-decoration: none; transition: border-color .15s ease-out, color .15s ease-out; }
.x-link svg { width: 12px; height: 12px; }
.x-link:hover { border-color: rgb(94 242 224 / .9); color: #e6f6f5; }
/* phones: brand, status, X and pause on one line */
@media (max-width: 430px) {
  .nav-right { gap: 6px; }
  .pill { padding: 6px 8px; gap: 6px; font-size: 10px; letter-spacing: .08em; }
  :root .brand b, :root[data-da="abyss"] .brand b { font-size: 15.5px; }
  .brand { gap: 8px; }
}

/* ---------- expedition log before launch: dives to come ---------- */
.log li.ghost { opacity: .85; }
.log li.ghost + li.ghost { opacity: .5; }
.log li.ghost + li.ghost + li.ghost { opacity: .28; }
.log li.ghost .dive { color: #8fb5b6; }
.log li.ghost .bars { height: 22px; gap: 4px; }
.log li.ghost .bars span {
  position: relative; background: none; box-shadow: none; border-radius: 4px;
  border: 1px dashed rgb(94 242 224 / calc(.25 + var(--o, .6) * .35));
}
.log li.ghost .bars b {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  font: 500 9.5px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .08em; color: rgb(207 233 232 / .8);
}
.log li.ghost .amt { color: #cfe9e8; }
.log-note { margin: 22px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.6; color: #8fb5b6; }

/* zones that hold little before launch don't need a full screen of water each */
.zone.abyss { min-height: auto; }
.hadal { justify-content: flex-start; min-height: 80svh; }

/* nav mark: the generated luminous jellyfish */
.brand .brand-mark { width: 32px; height: 32px; display: block; filter: drop-shadow(0 0 6px rgb(168 85 247 / .45)); }
@media (max-width: 430px) { .brand .brand-mark { width: 28px; height: 28px; } }

/* company logos next to tickers: a light round chip so every brand icon reads the same on the dark water */
.stock-cell { display: flex; align-items: center; gap: 14px; }
.stock-logo {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #eef4f4; box-shadow: 0 0 0 1px rgb(94 242 224 / .18), 0 0 18px rgb(94 242 224 / .12);
}
.stock-logo img { width: 20px; height: 20px; display: block; }
@media (max-width: 760px) { .stock-cell { gap: 10px; } .stock-logo { width: 30px; height: 30px; } .stock-logo img { width: 17px; height: 17px; } }
/* the logo column costs ~50px: tighter cell padding keeps the signals table inside its panel */
html[data-da="abyss"] table.sig :is(td, th) { padding-left: 9px; padding-right: 9px; }
html[data-da="abyss"] table.sig :is(td, th):first-child { padding-left: 16px; }
html[data-da="abyss"] table.sig :is(td, th):last-child { padding-right: 16px; }
html[data-da="abyss"] table.sig .stock-cell { gap: 12px; }
/* chip sizes */
.stock-logo.md { width: 30px; height: 30px; } .stock-logo.md img { width: 17px; height: 17px; }
.stock-logo.sm { width: 20px; height: 20px; display: inline-grid; vertical-align: -5px; margin-right: 7px; box-shadow: 0 0 0 1px rgb(94 242 224 / .18); }
.stock-logo.sm img { width: 12px; height: 12px; }

/* home: logo + ticker in the first column */
.row .tk { display: flex; align-items: center; gap: 14px; }
@media (min-width: 761px) { .rows-head, .row { grid-template-columns: 190px minmax(0, 1fr) minmax(140px, 1.3fr) 112px 112px; } }
@media (max-width: 760px) { .row .tk { gap: 10px; } .row .tk .stock-logo { width: 30px; height: 30px; } .row .tk .stock-logo img { width: 17px; height: 17px; } }

/* my basket: logo + ticker */
html[data-da="abyss"] .my-head, html[data-da="abyss"] .my-row { grid-template-columns: 130px minmax(0, 1fr) 160px; }
html[data-da="abyss"] .my-row .stock-cell { gap: 10px; }
/* phones keep the original two-line row (logo + ticker, then bar), only the first column grows */
@media (max-width: 600px) { html[data-da="abyss"] .my-row { grid-template-columns: 124px minmax(0, 1fr); } }
/* my basket: the address field may shrink so the View button stays on screen on phones */
.addr-form input { min-width: 0; flex: 1 1 auto; }
.addr-form .btn { flex: none; }
@media (max-width: 600px) { .connect-row .addr-form { flex: 1 1 100%; } }   /* the field takes its own line under the demo button */
/* phones: logo, name, status, X and pause on a single line */
@media (max-width: 430px) {
  .brand .brand-mark { width: 24px; height: 24px; }
  .brand { gap: 7px; }
  .nav-right .icon-btn { width: 32px; height: 32px; }
}
/* phones, home header: with the sound button there is no room for the status word,
   so the pill keeps only its dot (the word stays for screen readers; the hero says it too) */
@media (max-width: 430px) {
  .nav-row .pill { padding: 0; width: 32px; height: 32px; justify-content: center; }
  .nav-row .pill .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
