/* ═══════════════════════════════════════════════════════════════
   POLAR STATION — youxi--1--98 index stylesheet
   A riveted arctic research mast above pack ice: cold gauge
   glass, drill strata, supply sledges, morse tape from base.
   Structure classes are site-exclusive (s98-*).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0E1B26;
  --panel: #152635;
  --panel-2: #1D3346;
  --accent: #7FD6F2;
  --accent2: #F2E8DC;
  --text: #EAF4F9;
  --soft: #8FB0C4;
  --line: rgba(127,214,242,.25);
  --ice: #CFE9F5;
  --ice-deep: #9CCFE6;
  --flag: #E8543F;
  --fh: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --fb: 'Segoe UI', sans-serif;
  --fm: 'Courier New', monospace;
  --sec-gap: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(127, 214, 242,.14), transparent 60%),
    radial-gradient(ellipse at 88% 108%, rgba(127, 214, 242,.06), transparent 55%),
    repeating-linear-gradient(180deg, rgba(127,214,242,.035) 0 2px, transparent 2px 42px),
    var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; display: block; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 18px; }
.sec { margin-top: var(--sec-gap); min-width: 0; }

/* ══════════════════════════════════════════════════════════════
   SECTION PANEL — insulated hull plate
   ══════════════════════════════════════════════════════════════ */
.sec {
  position: relative;
  background: linear-gradient(180deg, rgba(29,51,70,.66), rgba(21,38,53,.5) 58%, rgba(14,27,38,.4));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 16px 18px;
  box-shadow: 0 12px 26px -16px rgba(0,0,0,.75), inset 0 1px 0 rgba(234,244,249,.06);
}
.sec::after {
  content: '';
  position: absolute; left: -6px; right: -6px; bottom: -7px; height: 9px;
  background: linear-gradient(180deg, #28455C, #16293A);
  border-radius: 3px;
  box-shadow: 0 5px 9px -4px rgba(0,0,0,.85), inset 0 1px 0 rgba(207,233,245,.18);
}
.sec:nth-of-type(even) {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(127,214,242,.07), transparent 70%),
    linear-gradient(180deg, rgba(29,51,70,.55), rgba(14,27,38,.4));
}

/* ══════════════════════════════════════════════════════════════
   CALLOUT — cold-tagged label
   ══════════════════════════════════════════════════════════════ */
.callout { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 24px; }
.callout b {
  flex: none;
  font-family: var(--fm);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(180deg, #A5E2F6, var(--accent));
  padding: 4px 12px;
  border-radius: 3px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  box-shadow: 0 3px 8px -2px rgba(0,0,0,.6);
}
.callout span {
  flex: 1; min-width: 0;
  font-family: var(--fm);
  font-size: 10.5px;
  color: var(--soft);
  letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.callout::after { content: ''; flex: 1; border-top: 1.5px dashed var(--line); }
.co-flag {
  flex: none; font-style: normal;
  font-size: 12px;
  color: var(--flag);
  animation: s98flag 2.6s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}
@keyframes s98flag { from { transform: rotate(-8deg);} to { transform: rotate(8deg);} }

/* ══════════════════════════════════════════════════════════════
   s98 HEADER — riveted mast with truss + pennants
   ══════════════════════════════════════════════════════════════ */
.hdr {
  position: relative; z-index: 50;
  background: linear-gradient(180deg, #1B3145, #12212F);
  border-bottom: 3px solid #0B1520;
}
.hdr-in { display: flex; align-items: center; gap: 10px; padding: 12px 0 10px; }
.hdr-name {
  flex: 1; min-width: 0;
  font-family: var(--fh);
  font-size: 18px; font-weight: 700;
  letter-spacing: .05em;
  color: var(--ice);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s98-call {
  display: block;
  font-family: var(--fm);
  font-size: 8px; letter-spacing: .3em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
  opacity: .85;
}
.hdr-search {
  flex: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: rgba(0,0,0,.25);
}
/* truss band: X-crossed steel */
.s98-tower { background: rgba(0,0,0,.28); padding: 5px 10px 7px; }
.s98-truss { display: flex; gap: 3px; height: 18px; align-items: stretch; }
.s98-truss i {
  flex: 1;
  background:
    linear-gradient(115deg, transparent 42%, #35536B 42%, #35536B 58%, transparent 58%),
    linear-gradient(65deg, transparent 42%, #35536B 42%, #35536B 58%, transparent 58%),
    linear-gradient(180deg, #24404F 0 2px, #182C3C 2px 100%);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(207,233,245,.14);
}
.s98-truss i:nth-child(3n+2) { filter: brightness(1.18); }
/* pennant row: little signal flags */
.s98-pennants { display: flex; gap: 10px; justify-content: center; padding-top: 5px; }
.s98-pennants i {
  width: 12px; height: 9px;
  background: linear-gradient(180deg, var(--accent), #4FA8CC);
  clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
  animation: s98pennant 2.2s ease-in-out infinite alternate;
  transform-origin: 0 50%;
  opacity: .9;
}
.s98-pennants i:nth-child(2) { background: linear-gradient(180deg, var(--flag), #B03222); animation-delay: .3s; }
.s98-pennants i:nth-child(3) { animation-delay: .6s; }
.s98-pennants i:nth-child(4) { background: linear-gradient(180deg, var(--accent2), #C9BBA8); animation-delay: .9s; }
.s98-pennants i:nth-child(5) { animation-delay: 1.2s; }
.s98-pennants i:nth-child(6) { background: linear-gradient(180deg, var(--flag), #B03222); animation-delay: 1.5s; }
.s98-pennants i:nth-child(7) { animation-delay: 1.8s; }
@keyframes s98pennant { from { transform: rotate(-12deg) skewX(6deg);} to { transform: rotate(10deg) skewX(-4deg);} }

/* ══════════════════════════════════════════════════════════════
   NAV + SEARCH — frost-proof console
   ══════════════════════════════════════════════════════════════ */
.nav-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; }
.nav-chips::-webkit-scrollbar { display: none; }
.nchip {
  flex: none;
  font-family: var(--fm);
  font-size: 12px; font-weight: 700;
  color: var(--text);
  background: linear-gradient(180deg, rgba(127,214,242,.08), rgba(127,214,242,0) 45%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,.4), inset 0 1px 0 rgba(234,244,249,.08);
  transition: transform .16s ease, box-shadow .16s ease;
}
.nchip.on {
  background: linear-gradient(180deg, #A5E2F6, #66BFE2);
  color: #0B1520;
  border-color: var(--ice);
}
.nchip:active { transform: translateY(1px); }

.srch-bar { display: flex; gap: 8px; margin-top: 12px; }
.srch-input {
  flex: 1; min-width: 0;
  background: rgba(9,17,25,.7);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 10px 13px;
  font-family: var(--fm);
  font-size: 13px;
  color: var(--ice);
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45);
}
.srch-input::placeholder { color: rgba(143,176,196,.6); }
.srch-input:focus { border-color: var(--accent); box-shadow: inset 0 2px 6px rgba(0,0,0,.45), 0 0 0 2px rgba(127,214,242,.2); }
.srch-go {
  flex: none;
  font-family: var(--fm);
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  color: #0B1520;
  background: linear-gradient(180deg, #A5E2F6, #66BFE2);
  border: 1px solid rgba(0,0,0,.3);
  border-radius: 4px;
  padding: 0 16px;
  box-shadow: 0 3px 0 #2A6D88, 0 7px 14px -4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .16s ease;
}
.srch-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #2A6D88; }

/* ══════════════════════════════════════════════════════════════
   LOADING
   ══════════════════════════════════════════════════════════════ */
.loading-full { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.loading-bar { width: 120px; height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; margin: 0 auto 12px; }
.loading-bar::after { content: ''; display: block; width: 40%; height: 100%; background: var(--accent); border-radius: 2px; animation: ldslide 1s infinite; }
@keyframes ldslide { 0% { transform: translateX(-100%);} 100% { transform: translateX(350%);} }
.loading-txt { font-family: var(--fm); font-size: 11px; letter-spacing: .18em; color: var(--soft); }

/* ══════════════════════════════════════════════════════════════
   s98 HERO — the gauge observation window
   ══════════════════════════════════════════════════════════════ */
.gauge-hero {
  display: block;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid #3A5D77;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(207,233,245,.18);
  position: relative;
}
.gauge-hero::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 8px;
  background: linear-gradient(115deg, transparent 0 30%, rgba(207,233,245,.09) 30% 34%, transparent 34% 52%, rgba(207,233,245,.05) 52% 56%, transparent 56%);
  pointer-events: none;
  z-index: 2;
}
.gh-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px;
  font-family: var(--fm);
  font-size: 9px; letter-spacing: .2em;
  color: var(--accent);
  background: rgba(9,17,25,.6);
  border-bottom: 1px solid var(--line);
}
.gh-top b { color: var(--accent2); }
.gh-mid { display: flex; align-items: center; gap: 14px; padding: 14px 14px 6px; }
.gh-view {
  flex: none;
  width: 112px; height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #2C4A61;
  box-shadow: 0 0 0 2px rgba(127,214,242,.35), 0 6px 14px rgba(0,0,0,.55), inset 0 0 12px rgba(0,0,0,.5);
  background: #0A141E;
  position: relative;
}
.gh-view img { width: 100%; height: 100%; object-fit: cover; }
.gh-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(180deg, rgba(127,214,242,.3), transparent);
  animation: s98scan 3s linear infinite;
}
@keyframes s98scan { from { transform: translateY(-100%);} to { transform: translateY(510%);} }
.gh-body { flex: 1; min-width: 0; }
.gh-k {
  display: block;
  font-family: var(--fm);
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.gh-nm {
  display: block;
  font-family: var(--fh);
  font-size: 21px; font-weight: 700;
  color: var(--ice);
  margin-top: 5px; line-height: 1.2;
  overflow-wrap: break-word;
}
.gh-ds {
  display: block;
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.gh-read {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px 12px;
}
.gh-read i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px; letter-spacing: .12em;
  color: var(--accent2);
  border: 1px solid rgba(242,232,220,.4);
  border-radius: 3px;
  padding: 2px 7px;
}
.gh-read em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px; letter-spacing: .12em;
  color: #0B1520;
  background: var(--accent);
  border-radius: 3px;
  padding: 2px 8px;
}
.gh-stars { color: var(--accent); font-size: 12px; letter-spacing: 2px; margin-left: auto; }
.gh-stars i { font-style: normal; }
.gh-stars i.off { opacity: .22; }

/* tk-div: ration-tin cards (kept, re-tinted) */
.tk-div { display: flex; gap: 16px; justify-content: center; padding: 4px 0 14px; }
.tk-div i {
  width: 46px; height: 30px;
  background: linear-gradient(180deg, #1D3346, #152635);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
  box-shadow: 0 4px 7px rgba(0,0,0,.45);
  transform: rotate(-2deg);
}
.tk-div i:nth-child(2n) { transform: rotate(2.4deg); }
.tk-div i:nth-child(3) { transform: rotate(-1deg); }
.tk-div i::before {
  content: '';
  position: absolute; top: 5px; left: 5px; right: 5px;
  height: 1.4px;
  background: rgba(127,214,242,.5);
  box-shadow: 0 4.5px 0 rgba(127,214,242,.3);
}
.tk-div i::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 4px;
  border: 1px solid rgba(207,233,245,.5);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   1) s98 TUBES — ice-core tube rack
   ══════════════════════════════════════════════════════════════ */
.s98-tubes {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(9,17,25,.5), rgba(9,17,25,.3));
  border: 1px solid rgba(58,93,119,.6);
  border-radius: 8px;
  padding: 16px 10px 14px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.5);
}
.s98-tubes::before {
  content: '';
  position: absolute; left: 10px; right: 10px; top: 5px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #3A5D77 8%, #3A5D77 92%, transparent);
  border-radius: 2px;
}
.s98-tube { display: flex; align-items: center; gap: 12px; }
.s98-tube-vial {
  flex: none;
  width: 34px; height: 56px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, rgba(207,233,245,.22), rgba(127,214,242,.08));
  border: 1.5px solid rgba(207,233,245,.5);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(127,214,242,.25), 0 2px 5px rgba(0,0,0,.4);
}
.s98-tube-vial img {
  position: absolute; left: 3px; right: 3px; bottom: 3px;
  height: 38px; width: calc(100% - 6px);
  object-fit: cover;
  border-radius: 4px;
}
.s98-tube-cap {
  position: absolute; left: 2px; right: 2px; top: 0;
  height: 9px;
  background: linear-gradient(180deg, #EAF4F9, #B9D9E8);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.s98-tube-marks {
  position: absolute; left: 3px; top: 12px; bottom: 12px; width: 3px;
  background: repeating-linear-gradient(180deg, rgba(207,233,245,.75) 0 2px, transparent 2px 8px);
}
.s98-tube-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.s98-tube-nm { font-weight: 700; font-size: 14px; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s98-tube-ds { font-size: 11.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s98-tube-rating {
  flex: none;
  font-family: var(--fm);
  font-size: 10px; font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(127,214,242,.45);
  border-radius: 3px;
  padding: 3px 7px;
}

/* ══════════════════════════════════════════════════════════════
   2) s98 BERGS — floes drifting above their reflections
   ══════════════════════════════════════════════════════════════ */
.s98-bergs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.s98-berg { text-align: center; }
.s98-berg-ice {
  display: block;
  background: linear-gradient(180deg, #EAF6FB, #B9D9E8 60%, #8FBDD4);
  border-radius: 10px 10px 4px 4px;
  padding: 8px;
  clip-path: polygon(14% 0, 86% 0, 100% 22%, 92% 100%, 8% 100%, 0 22%);
  box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.6);
}
.s98-berg-ice img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 2px solid rgba(255,255,255,.7); }
.s98-berg::after {
  content: '';
  display: block;
  height: 8px;
  margin: 2px 14% 0;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(127,214,242,.35), transparent);
  transform: scaleY(-.6);
  opacity: .8;
}
.s98-berg-name {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--ice);
  margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s98-berg-tag {
  display: inline-block;
  font-family: var(--fm);
  font-size: 8.5px; letter-spacing: .1em;
  color: var(--bg);
  background: var(--accent);
  border-radius: 2px;
  padding: 1px 6px;
  margin-top: 3px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   3) s98 CORES — drill strata rows
   ══════════════════════════════════════════════════════════════ */
.s98-cores { display: flex; flex-direction: column; gap: 9px; position: relative; padding-left: 44px; }
.s98-cores::before {
  content: '';
  position: absolute; left: 24px; top: 4px; bottom: 4px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(127,214,242,.4) 0 5px, transparent 5px 10px);
}
.s98-core {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(90deg, rgba(127,214,242,.07), transparent 30%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}
.s98-core-depth {
  position: absolute; left: -44px;
  width: 44px; text-align: center;
  font-family: var(--fm);
  font-size: 9px; font-weight: 700;
  color: var(--accent2);
}
.s98-core-stripes {
  flex: none;
  width: 14px; height: 44px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(207,233,245,.4);
  background: linear-gradient(180deg, #EAF6FB 0 25%, #9CCFE6 25% 50%, #6FA9C4 50% 75%, #3F6F8A 75% 100%);
  position: relative;
}
.s98-core-stripes i { position: absolute; left: 0; right: 0; height: 1px; background: rgba(14,27,38,.4); }
.s98-core-stripes i:nth-child(1) { top: 30%; }
.s98-core-stripes i:nth-child(2) { top: 55%; }
.s98-core-stripes i:nth-child(3) { top: 80%; }
.s98-core img { width: 44px; height: 44px; border-radius: 4px; flex: none; border: 1px solid rgba(207,233,245,.3); }
.s98-core-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s98-core-nm { font-weight: 700; font-size: 13.5px; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s98-core-ds { font-size: 11px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════════════════
   4) s98 SLEDS — supply crates on runners
   ══════════════════════════════════════════════════════════════ */
.s98-sleds { display: flex; gap: 11px; overflow-x: auto; padding: 14px 2px 12px; scrollbar-width: none; position: relative; }
.s98-sleds::-webkit-scrollbar { display: none; }
.s98-sleds::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7A6248 4%, #5C4632 96%, transparent);
  border-radius: 2px;
}
.s98-sled { flex: none; width: 84px; text-align: center; }
.s98-sled-flag {
  display: block;
  width: 10px; height: 16px;
  margin: 0 auto 4px;
  background: linear-gradient(180deg, var(--flag), #B03222);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 82%, 0 62%);
}
.s98-sled:nth-child(3n) .s98-sled-flag { background: linear-gradient(180deg, var(--accent2), #C9BBA8); }
.s98-sled-crate {
  display: block;
  background: linear-gradient(180deg, #243A2E, #18291F);
  border: 1.5px solid #3E5A48;
  border-radius: 3px;
  padding: 7px 6px 9px;
  box-shadow: 0 4px 9px rgba(0,0,0,.5), inset 0 1px 0 rgba(207,233,245,.1);
}
.s98-sled-crate img { width: 66px; height: 66px; border-radius: 3px; margin: 0 auto; border: 1px solid rgba(207,233,245,.25); }
.s98-sled-nm {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--ice);
  margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   5) s98 READINGS — dials + gauge faces
   ══════════════════════════════════════════════════════════════ */
.s98-readings { display: flex; flex-direction: column; gap: 12px; }
.s98-dials { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.s98-dial {
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid #3A5D77;
  border-radius: 8px;
  padding: 12px 6px 8px;
  box-shadow: inset 0 1px 0 rgba(207,233,245,.15), 0 4px 10px -4px rgba(0,0,0,.6);
  position: relative;
}
.s98-dial::before {
  content: '';
  position: absolute; left: 50%; top: -4px;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EAF4F9, #5E86A0 75%);
}
.s98-dial b {
  display: block;
  font-family: var(--fm);
  font-size: 20px; font-weight: 800;
  color: var(--accent);
}
.s98-dial span {
  display: block;
  font-family: var(--fm);
  font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--soft);
  margin-top: 2px;
}
.s98-gauges { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.s98-gauge { text-align: center; }
.s98-gauge-face {
  display: block;
  position: relative;
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #3A5D77;
  background: radial-gradient(circle at 50% 38%, #1A3247, #0D1B27 75%);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 0 0 2px rgba(9,17,25,.8), inset 0 2px 4px rgba(207,233,245,.1);
}
.s98-gauge-face img {
  position: absolute; inset: 8%;
  width: 84%; height: 84%;
  object-fit: cover;
  border-radius: 50%;
  opacity: .92;
}
.s98-needle {
  position: absolute; left: 50%; top: 50%;
  width: 2.5px; height: 34%;
  margin-left: -1.25px;
  background: linear-gradient(180deg, var(--flag), transparent);
  transform-origin: 50% 100%;
  transform: rotate(38deg);
  border-radius: 2px;
  z-index: 2;
}
.s98-gauge:nth-child(2) .s98-needle { transform: rotate(-14deg); }
.s98-gauge:nth-child(3) .s98-needle { transform: rotate(80deg); }
.s98-gauge:nth-child(4) .s98-needle { transform: rotate(-42deg); }
.s98-gauge-nm {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--ice);
  margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   6) s98 PASSES — boarding pass stubs
   ══════════════════════════════════════════════════════════════ */
.s98-passes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.s98-pass {
  background: linear-gradient(180deg, #DCEFF7, #BCD9E8);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 12px -4px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.65);
  position: relative;
}
.s98-pass::before, .s98-pass::after {
  content: '';
  position: absolute; top: 42px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
}
.s98-pass::before { left: -6px; }
.s98-pass::after { right: -6px; }
.s98-pass-top {
  display: flex; justify-content: space-between;
  padding: 7px 12px 6px;
  border-bottom: 2px dashed rgba(14,27,38,.4);
  font-family: var(--fm);
  font-size: 9px; font-weight: 700; letter-spacing: .18em;
  color: #24536E;
}
.s98-pass-top span { color: var(--flag); }
.s98-pass-mid { display: flex; align-items: center; gap: 10px; padding: 8px 12px 9px; }
.s98-pass-mid img { width: 46px; height: 46px; border-radius: 4px; flex: none; border: 1px solid rgba(14,27,38,.3); }
.s98-pass-nm {
  flex: 1; min-width: 0;
  font-family: var(--fh);
  font-size: 13.5px; font-weight: 700;
  color: #0E1B26;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s98-pass-bar {
  display: block;
  height: 10px;
  background: repeating-linear-gradient(90deg, #0E1B26 0 2px, transparent 2px 5px);
  margin: 0 10px 7px;
  border-radius: 1px;
}

/* ══════════════════════════════════════════════════════════════
   7) s98 RADIO — morse transmission card
   ══════════════════════════════════════════════════════════════ */
.s98-radio {
  display: flex; flex-wrap: wrap; align-items: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(127,214,242,.05) 26px 27px),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1.5px solid #3A5D77;
  border-radius: 8px;
  padding: 24px 14px 14px;
  position: relative;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(207,233,245,.12);
}
.s98-morse {
  position: absolute; left: 0; right: 0; top: 5px;
  display: flex; gap: 5px; justify-content: center; align-items: center;
  height: 8px;
}
.s98-morse i {
  height: 4px; border-radius: 2px;
  background: var(--accent);
  opacity: .55;
  animation: s98morseblink 2.4s ease-in-out infinite;
}
.s98-morse i:nth-child(2n) { width: 12px; }
.s98-morse i:nth-child(2n+1) { width: 4px; }
.s98-morse i:nth-child(3n) { width: 20px; opacity: .3; }
.s98-morse i:nth-child(4n) { animation-delay: .4s; }
.s98-morse i:nth-child(5n) { animation-delay: .8s; }
@keyframes s98morseblink { 0%, 100% { opacity: .55;} 50% { opacity: .15;} }
.s98-radio-head {
  flex: 1 1 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 2px 8px;
  font-family: var(--fm);
  font-size: 9px; letter-spacing: .22em;
  color: var(--accent);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 10px;
}
.s98-radio-head span { color: var(--flag); }
.s98-radio-img {
  flex: 0 0 96px;
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(207,233,245,.6);
  box-shadow: 0 5px 12px rgba(0,0,0,.5);
}
.s98-radio-b { flex: 1; min-width: 0; padding-left: 13px; }
.s98-radio-nm {
  display: block;
  font-family: var(--fh);
  font-size: 17px; font-weight: 700;
  color: var(--ice);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s98-radio-ds {
  display: block;
  font-size: 12px;
  color: var(--soft);
  margin-top: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.s98-radio-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.s98-radio-foot em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px; letter-spacing: .12em;
  color: var(--bg);
  background: var(--accent);
  border-radius: 3px;
  padding: 2px 8px;
}
.s98-radio-foot i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 11px; font-weight: 800;
  color: var(--accent2);
  margin-left: auto;
  border: 1.5px solid rgba(242,232,220,.5);
  border-radius: 4px;
  padding: 4px 10px;
}

/* ══════════════════════════════════════════════════════════════
   8) s98 ROUTES — waypoint flag board
   ══════════════════════════════════════════════════════════════ */
.s98-routes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.s98-route {
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 4px solid var(--flag);
  border-radius: 4px;
  padding: 11px 12px;
  transition: transform .15s ease;
}
.s98-route:nth-child(2n) { border-left-color: var(--accent); }
.s98-route-flag {
  flex: none;
  font-size: 15px;
  color: var(--accent2);
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.s98-route-b { min-width: 0; }
.s98-route-b b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ice); font-family: var(--fh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s98-route-b i { font-style: normal; font-family: var(--fm); font-size: 9.5px; color: var(--soft); letter-spacing: .08em; }
.s98-route:active { transform: translateY(1px); }

/* ══════════════════════════════════════════════════════════════
   9) s98 TAPE ARCHIVE — punched field data
   ══════════════════════════════════════════════════════════════ */
.s98-tapebox {
  background: rgba(9,17,25,.4);
  border: 1px solid rgba(58,93,119,.6);
  border-radius: 8px;
  padding: 0 10px 12px;
}
.s98-tape-top {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 -10px 14px;
  padding: 8px 14px 9px;
  background: linear-gradient(180deg, #22445C, #16293A);
  border-bottom: 1px solid rgba(58,93,119,.8);
  border-radius: 8px 8px 0 0;
  font-family: var(--fm);
  font-size: 9.5px; letter-spacing: .22em;
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(207,233,245,.15);
}
.s98-tape-top::before {
  content: '';
  width: 40px; height: 6px;
  margin-right: 10px;
  background: repeating-linear-gradient(90deg, #0B1520 0 4px, transparent 4px 7px);
  border-radius: 2px;
  opacity: .7;
}
.s98-tape-top span { color: var(--soft); letter-spacing: .1em; }
.arc-list { display: flex; flex-direction: column; gap: 9px; }
.arc.s98-tape-row {
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(90deg, rgba(127,214,242,.06), transparent 24%), #F2E8DC;
  border-radius: 3px;
  padding: 9px 12px 9px 10px;
  box-shadow: inset 0 0 0 1px rgba(14,27,38,.2), 0 3px 8px -3px rgba(0,0,0,.55);
}
.arc.s98-tape-row .arc-code { font-family: var(--fm); font-size: 10.5px; font-weight: 700; color: #24536E; width: 32px; flex: none; }
.arc.s98-tape-row img { width: 44px; height: 44px; border-radius: 3px; flex: none; box-shadow: 1px 2px 4px rgba(14,27,38,.3); }
.arc.s98-tape-row .arc-b { flex: 1; min-width: 0; }
.arc.s98-tape-row .arc-nm { display: block; font-size: 13.5px; font-weight: 700; color: #0E1B26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arc.s98-tape-row .arc-ds { display: block; font-size: 11px; color: #5A7585; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arc.s98-tape-row .arc-tag {
  flex: none;
  font-style: normal;
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: #B03A2B;
  border: 1px solid rgba(176,58,43,.5);
  border-radius: 2px;
  padding: 2px 6px;
}

/* ══════════════════════════════════════════════════════════════
   FILTER + EMPTY
   ══════════════════════════════════════════════════════════════ */
.filter-hd { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.filter-back {
  flex: none;
  font-family: var(--fm);
  font-size: 12.5px; font-weight: 700;
  color: #0B1520;
  background: linear-gradient(180deg, #A5E2F6, #66BFE2);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.3);
  padding: 7px 12px;
  box-shadow: 0 3px 0 #2A6D88;
}
.filter-back:active { transform: translateY(2px); box-shadow: 0 1px 0 #2A6D88; }
.filter-title {
  flex: 1; min-width: 0;
  font-family: var(--fh);
  font-size: 17px; font-weight: 700;
  color: var(--ice);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.filter-cnt {
  flex: none;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--bg);
  background: var(--accent);
  border-radius: 3px;
  padding: 3px 8px;
}
.empty-space { text-align: center; padding: 42px 0 26px; }
.s98-empty { font-size: 30px; color: var(--soft); opacity: .6; }
.empty-space span { display: block; margin-top: 12px; font-family: var(--fm); font-size: 11px; letter-spacing: .14em; color: var(--soft); }
.more-wrap { text-align: center; margin-top: 15px; }
.more-btn {
  font-family: var(--fm);
  font-size: 12.5px; font-weight: 700;
  color: #0B1520;
  background: linear-gradient(180deg, #A5E2F6, #66BFE2);
  border: 1px solid rgba(0,0,0,.3);
  border-radius: 4px;
  padding: 10px 22px;
  box-shadow: 0 3px 0 #2A6D88, 0 7px 14px -4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5);
}
.more-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #2A6D88; }

/* ══════════════════════════════════════════════════════════════
   s98 FOOTER — ice-warning chevron band
   ══════════════════════════════════════════════════════════════ */
.foot {
  margin-top: 44px;
  padding: 20px 0 30px;
  text-align: center;
  border-top: 1.5px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.22));
}
.s98-iceband {
  height: 12px;
  margin: 0 0 20px;
  background: repeating-linear-gradient(115deg, var(--accent) 0 16px, #0E1B26 16px 32px);
  opacity: .55;
  border-top: 1px solid rgba(127,214,242,.4);
  border-bottom: 1px solid rgba(127,214,242,.4);
}
.foot-name {
  font-family: var(--fh);
  font-size: 16px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent);
}
.foot-links { display: flex; justify-content: center; gap: 22px; margin-top: 12px; }
.foot-links a { display: inline; font-size: 12.5px; color: var(--soft); text-decoration: underline; }
.foot-fine { margin-top: 12px; font-family: var(--fm); font-size: 10px; letter-spacing: .14em; color: var(--soft); opacity: .75; }

/* totop */
.totop-btn {
  position: fixed;
  right: 16px; bottom: 24px;
  z-index: 60;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  color: #0B1520;
  background: linear-gradient(180deg, #A5E2F6, #66BFE2);
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 5px;
  box-shadow: 0 3px 0 #2A6D88, 0 8px 16px -4px rgba(0,0,0,.5);
}
.totop-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #2A6D88; }

/* ══════════════════════════════════════════════════════════════
   narrow screens
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 660px) {
  .sec::after { left: 0; right: 0; }
  .s98-cores { padding-left: 34px; }
  .s98-core-depth { left: -34px; width: 34px; font-size: 8px; }
  .s98-passes { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .s98-radio-img { flex: 0 0 78px; width: 78px; height: 78px; }
  .s98-truss i:nth-child(n+7) { display: none; }
}
