/* GTA6 Hintbook — iOS 26 Liquid Glass × Flighty × Apple Sports Design System */
:root {
  color-scheme: dark;
  --bg-deep: #10152c;
  --bg-mid: #171d3d;
  --ink: #ffffff;
  --ink-soft: rgba(244, 247, 255, 0.82);
  --muted: rgba(214, 224, 248, 0.66);
  --faint: rgba(205, 218, 248, 0.44);

  /* True translucent crystal glass (white-tinted optical frost, never muddy black) */
  --glass-fill: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.175) 0%,
    rgba(255, 255, 255, 0.075) 52%,
    rgba(255, 255, 255, 0.115) 100%
  );
  --glass-crystal-fill: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.095) 55%,
    rgba(255, 255, 255, 0.145) 100%
  );
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass-border-strong: rgba(255, 255, 255, 0.38);
  --glass-specular: inset 0 1px 0.5px rgba(255, 255, 255, 0.58), inset 0 -1px 0.5px rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 20px 46px -14px rgba(5, 8, 24, 0.52), 0 4px 14px rgba(4, 7, 20, 0.26);
  --glass-blur: blur(26px) saturate(195%) brightness(1.05);

  /* Accents */
  --coral: #ff4785;
  --cyan: #38e2ff;
  --amber: #ffb347;
  --mint: #34eba8;
  --sky: #56a8ff;
  --violet: #a970ff;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --spring: cubic-bezier(0.22, 1.25, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(120% 90% at 50% 0%, #1d2552 0%, #111631 58%, #0c1024 100%);
  color: var(--ink);
  overflow-x: hidden;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

@media (min-width: 820px) {
  body {
    padding-bottom: 36px;
  }
}

/* ==========================================================================
   1. LIVING VICE TWILIGHT SCENE & TOPOGRAPHIC COASTLINE (MAKES GLASS POP)
   ========================================================================== */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(65% 55% at 16% 12%, rgba(255, 52, 132, 0.42), transparent 68%),
    radial-gradient(62% 52% at 86% 18%, rgba(0, 217, 255, 0.38), transparent 68%),
    radial-gradient(58% 54% at 22% 76%, rgba(255, 148, 58, 0.28), transparent 70%),
    radial-gradient(65% 60% at 84% 84%, rgba(132, 68, 255, 0.36), transparent 72%),
    linear-gradient(180deg, #17204a 0%, #111737 52%, #0d1229 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  will-change: transform;
  mix-blend-mode: screen;
}

.orb-coral {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  top: -8%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 62, 138, 0.78) 0%, rgba(255, 62, 138, 0) 70%);
  animation: orbDriftA 22s ease-in-out infinite alternate;
}

.orb-cyan {
  width: min(70vw, 500px);
  height: min(70vw, 500px);
  top: 4%;
  right: -12%;
  background: radial-gradient(circle, rgba(34, 224, 255, 0.72) 0%, rgba(34, 224, 255, 0) 70%);
  animation: orbDriftB 26s ease-in-out infinite alternate;
}

.orb-gold {
  width: min(64vw, 440px);
  height: min(64vw, 440px);
  top: 44%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 162, 66, 0.56) 0%, rgba(255, 162, 66, 0) 70%);
  animation: orbDriftB 29s ease-in-out infinite alternate-reverse;
}

.orb-violet {
  width: min(68vw, 480px);
  height: min(68vw, 480px);
  bottom: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(152, 82, 255, 0.64) 0%, rgba(152, 82, 255, 0) 70%);
  animation: orbDriftA 24s ease-in-out infinite alternate-reverse;
}

.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(215, 240, 255, 0.72);
}

@keyframes orbDriftA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(42px, 34px, 0) scale(1.1);
  }
}

@keyframes orbDriftB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-38px, 44px, 0) scale(1.08);
  }
}

/* ==========================================================================
   2. LIQUID CRYSTAL GLASS SURFACES & SPECULAR INTERACTION
   ========================================================================== */
.glass-pane {
  position: relative;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-specular), var(--glass-shadow);
  overflow: hidden;
}

.glass-crystal {
  position: relative;
  background: var(--glass-crystal-fill);
  backdrop-filter: blur(30px) saturate(210%) brightness(1.08);
  -webkit-backdrop-filter: blur(30px) saturate(210%) brightness(1.08);
  border: 1px solid var(--glass-border-strong);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.68),
    inset 0 -1px 1px rgba(255, 255, 255, 0.14),
    0 18px 44px -10px rgba(4, 7, 22, 0.56);
}

/* Pointer-tracked liquid specular reflection */
[data-glass]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, -20%),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 65%
  );
  opacity: var(--mo, 0.55);
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   3. LAYOUT, SKIP LINK & VIEW TRANSITIONS
   ========================================================================== */
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0d1229;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 14px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 14px;
}

@media (min-width: 820px) {
  .wrap {
    max-width: 760px;
    padding: 0 22px;
  }
}

.app-stage {
  padding-top: 8px;
}

.app-stage.stage-enter {
  animation: stageEnter 0.28s var(--ease-out) both;
}

@keyframes stageEnter {
  from {
    opacity: 0.01;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================================
   4. FLOATING TOP LIQUID-GLASS CAPSULE DOCK (HEADER)
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 16, 36, 0.52) 0%, rgba(12, 16, 36, 0) 100%);
}

.top-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 680px;
  padding: 6px 8px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(28, 36, 74, 0.56) 0%, rgba(20, 26, 58, 0.44) 100%);
}

@media (min-width: 960px) {
  .top-dock {
    width: auto;
    max-width: min(1040px, calc(100vw - 28px));
    padding: 6px 9px;
    gap: 8px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  transition: transform 0.2s var(--spring);
}
.brand:active {
  transform: scale(0.96);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4785 0%, #ff8a4c 55%, #38e2ff 130%);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 4px 12px rgba(255, 71, 133, 0.42);
}

.dock-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.desk-nav,
.desk-only {
  display: none;
}

@media (min-width: 960px) {
  .desk-nav {
    position: relative;
    display: flex;
    align-items: center;
  }
  .desk-only {
    display: block;
  }
}

.desk-nav ul {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desk-nav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(240, 245, 255, 0.8);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.18s var(--spring);
}

.desk-nav a:hover {
  color: #fff;
}
.desk-nav a:active {
  transform: scale(0.95);
}

.desk-nav a[aria-current='page'] {
  color: #fff;
}

/* Fallback active pill before JS measures glider */
.desk-nav:not(.has-glider) a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.65);
}

.nav-glider,
.nav-hover {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: var(--gw, 0px);
  border-radius: 999px;
  pointer-events: none;
  transform: translate3d(var(--gx, 0px), 0, 0);
}

.nav-glider {
  z-index: 1;
  opacity: var(--go, 0);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.8),
    0 4px 14px rgba(8, 12, 32, 0.28);
  transition:
    transform 0.44s var(--spring),
    width 0.36s var(--spring),
    opacity 0.2s ease;
}

.nav-hover {
  z-index: 0;
  width: var(--hw, 0px);
  opacity: var(--ho, 0);
  transform: translate3d(var(--hx, 0px), 0, 0);
  background: rgba(255, 255, 255, 0.1);
  transition:
    transform 0.26s var(--ease-out),
    width 0.24s var(--ease-out),
    opacity 0.18s ease;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-search {
  display: none;
}

@media (min-width: 820px) {
  .top-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.2s ease, transform 0.18s var(--spring);
  }
  .top-search:hover,
  .top-search[aria-current='page'] {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  .top-search:active {
    transform: scale(0.95);
  }
}

.top-search kbd,
.search-kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.48);
  color: #fff;
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.18s var(--spring);
}
.top-chip:hover {
  background: rgba(255, 255, 255, 0.2);
}
.top-chip:active {
  transform: scale(0.96);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(52, 235, 168, 0.25), 0 0 10px var(--mint);
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.65;
  }
}

/* ==========================================================================
   5. MOBILE iOS 26 LIQUID-GLASS FLOATING TAB BAR + SEARCH ORB
   ========================================================================== */
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 12px calc(10px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 14, 32, 0.68) 0%, rgba(10, 14, 32, 0) 100%);
}

@media (min-width: 820px) {
  .tabs {
    display: none;
  }
}

.tabs-dock {
  pointer-events: auto;
  position: relative;
  flex: 1;
  max-width: 340px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(30, 38, 78, 0.58) 0%, rgba(20, 26, 56, 0.46) 100%);
}

.dock-glider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  z-index: 0;
  width: var(--gw, 0px);
  opacity: var(--go, 0);
  border-radius: 999px;
  pointer-events: none;
  transform: translate3d(var(--gx, 0px), 0, 0);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    0 6px 16px rgba(6, 9, 25, 0.32);
  transition:
    transform 0.44s var(--spring),
    width 0.36s var(--spring),
    opacity 0.2s ease;
}

.tabs-dock a {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 4px 6px;
  border-radius: 999px;
  color: rgba(235, 242, 255, 0.78);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.18s var(--spring);
  -webkit-tap-highlight-color: transparent;
}

.tabs-dock a:active {
  transform: scale(0.91);
}

.tabs-dock a[aria-current='page'] {
  color: #fff;
}

.tabs-dock:not(.has-glider) a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.7);
}

.tabs-orb {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(30, 38, 78, 0.58) 0%, rgba(20, 26, 56, 0.46) 100%);
  transition: transform 0.22s var(--spring), background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.tabs-orb:active {
  transform: scale(0.9);
}

.tabs-orb[aria-current='page'] {
  background: linear-gradient(145deg, rgba(255, 71, 133, 0.55), rgba(56, 226, 255, 0.4));
  border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   6. SEGMENTED GLASS RIBBON (INNER PAGES)
   ========================================================================== */
.ribbon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  margin: 4px 0 14px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ribbon::-webkit-scrollbar {
  display: none;
}

.ribbon-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: 0;
  width: var(--gw, 0px);
  opacity: var(--go, 0);
  border-radius: 999px;
  pointer-events: none;
  transform: translate3d(var(--gx, 0px), 0, 0);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.78);
  transition:
    transform 0.42s var(--spring),
    width 0.34s var(--spring),
    opacity 0.2s ease;
}

.ribbon-tab {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  text-align: center;
  padding: 7px 13px;
  border-radius: 999px;
  color: rgba(236, 242, 255, 0.76);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.16s var(--spring);
}
.ribbon-tab:hover,
.ribbon-tab.active {
  color: #fff;
}
.ribbon-tab:active {
  transform: scale(0.95);
}
.ribbon:not(.has-glider) .ribbon-tab.active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   7. MODULAR CARD STACKS & HERO CARD
   ========================================================================== */
.home-stack,
.sheet,
.faq-ledger {
  display: grid;
  gap: 14px;
}

.hero-card,
.page-head,
.folio-section,
.demo-card {
  padding: 22px 20px;
}

@media (min-width: 640px) {
  .hero-card,
  .page-head,
  .folio-section,
  .demo-card {
    padding: 26px 26px;
  }
}

.hero-pill-row,
.folio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.live-pill,
.subtle-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.live-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.subtle-pill {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink-soft);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5.2vw, 2.32rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

h3 {
  margin: 4px 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.018em;
}

p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 0.98rem;
  line-height: 1.52;
  color: rgba(242, 246, 255, 0.86);
  margin-bottom: 16px;
}

.page-head .lead:last-child {
  margin-bottom: 0;
}

a {
  color: #8be9ff;
  text-underline-offset: 3px;
}
a:hover {
  color: #fff;
}

/* ==========================================================================
   8. FROSTED COMMAND SEARCH BAR & LIVE RESULTS
   ========================================================================== */
.glass-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(10, 14, 34, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 2px 6px rgba(4, 7, 22, 0.32), 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.glass-search:focus-within {
  background: rgba(10, 14, 34, 0.48);
  border-color: rgba(120, 232, 255, 0.72);
  box-shadow:
    inset 0 2px 6px rgba(4, 7, 22, 0.35),
    0 0 0 4px rgba(56, 226, 255, 0.18);
}

.glass-search.slim {
  padding: 9px 13px;
  margin-bottom: 14px;
}

.search-icon {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.glass-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.96rem;
  outline: none;
}

.glass-search input::placeholder {
  color: rgba(226, 235, 255, 0.56);
}

.search-kbd {
  display: none;
}
@media (min-width: 720px) {
  .search-kbd {
    display: inline-block;
  }
}

.results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.results:empty {
  display: none;
}

.result {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  color: #fff;
  transition: background 0.18s ease, transform 0.18s var(--spring);
}
.result:hover {
  background: rgba(255, 255, 255, 0.17);
  transform: translateY(-1px);
}
.result strong {
  font-size: 0.95rem;
}
.result span {
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.result .muted {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.topic-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.16s var(--spring);
}
.topic-chip:hover {
  background: rgba(255, 255, 255, 0.2);
}
.topic-chip:active {
  transform: scale(0.94);
}

/* ==========================================================================
   9. FLIGHTY-INSPIRED LAUNCH BOARDING PASS WIDGET
   ========================================================================== */
.launch-pass {
  display: block;
  padding: 20px 20px 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    145deg,
    rgba(255, 84, 146, 0.22) 0%,
    rgba(255, 255, 255, 0.12) 48%,
    rgba(56, 226, 255, 0.2) 100%
  );
  transition: transform 0.26s var(--spring), border-color 0.22s ease;
}

.launch-pass:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
}
.launch-pass:active {
  transform: scale(0.988);
}

.pass-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.pass-port {
  display: flex;
  flex-direction: column;
}
.pass-port.right {
  text-align: right;
  align-items: flex-end;
}

.pass-port small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(230, 238, 255, 0.68);
}

.pass-port strong {
  font-size: clamp(1.5rem, 5vw, 1.95rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.pass-port span {
  font-size: 0.78rem;
  color: rgba(235, 242, 255, 0.8);
}

.pass-route {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 112px;
}

.route-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.route-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.75), rgba(56, 226, 255, 0.85));
  border-radius: 2px;
}

.route-line i {
  position: absolute;
  right: 16%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 0 10px #38e2ff;
}

.pass-route small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(226, 236, 255, 0.64);
}

/* Ticket perforation with edge cutouts */
.pass-perf {
  position: relative;
  margin: 15px -20px 14px;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.pass-perf::before,
.pass-perf::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(15, 20, 44, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.pass-perf::before {
  margin-left: -29px;
}
.pass-perf::after {
  margin-right: -29px;
}
.pass-perf span {
  flex: 1;
  margin: 0 10px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.26);
}

.pass-clock,
.countdown .clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
}

.pass-clock > div,
.countdown .clock > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(10, 14, 34, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pass-clock strong,
.countdown .clock strong {
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #fff;
}

.pass-clock small,
.countdown .clock small {
  margin-top: 2px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(226, 236, 255, 0.68);
}

.countdown {
  margin: 14px 0 16px;
}

.pass-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(235, 242, 255, 0.82);
}

.pass-cta {
  font-weight: 700;
  color: #9beeff;
}

/* ==========================================================================
   10. iOS 26 GROUPED SQUIRCLE HUB CARDS
   ========================================================================== */
.hub-card {
  padding: 18px 0 6px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hub-card .card-head {
  padding: 0 20px 6px;
  margin-bottom: 2px;
}

.card-head span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-list li {
  position: relative;
}

/* Authentic iOS inset hairline divider */
.hub-list li + li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 68px;
  right: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.hub-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  text-decoration: none;
  color: #fff;
  transition: background 0.18s ease, transform 0.18s var(--spring);
  -webkit-tap-highlight-color: transparent;
}

.hub-row:hover {
  background: rgba(255, 255, 255, 0.08);
}
.hub-row:active {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(0.988);
}

.squircle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.squircle.coral {
  background: linear-gradient(145deg, #ff5492, #ff2e6d);
}
.squircle.cyan {
  background: linear-gradient(145deg, #2ce6ff, #0099dd);
}
.squircle.amber {
  background: linear-gradient(145deg, #ffc14d, #f57e1f);
}
.squircle.mint {
  background: linear-gradient(145deg, #3bf0b2, #12b57f);
}
.squircle.sky {
  background: linear-gradient(145deg, #5eb2ff, #2c6fff);
}
.squircle.violet {
  background: linear-gradient(145deg, #b57cff, #7840f5);
}
.squircle.peach {
  background: linear-gradient(145deg, #ff8f6b, #f25268);
}

.hub-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hub-text strong {
  font-size: 0.96rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  color: #fff;
}
.hub-text small {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.73rem;
  font-weight: 650;
  color: rgba(244, 247, 255, 0.9);
  white-space: nowrap;
}

.chev {
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s var(--spring), color 0.2s ease;
}
.hub-row:hover .chev {
  transform: translateX(3px);
  color: #fff;
}

/* ==========================================================================
   11. INTERACTIVE CLUE PEEL ACCORDION (SMOOTH UNBLUR)
   ========================================================================== */
.sample-title {
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.sample-title span {
  color: var(--muted);
}

.ladder {
  display: grid;
  gap: 9px;
}

details.step {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease;
}

details.step[open] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

details.step.answer {
  background: linear-gradient(145deg, rgba(255, 84, 146, 0.16), rgba(255, 168, 76, 0.12));
  border-color: rgba(255, 138, 175, 0.32);
}

details.step > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease;
}
details.step > summary::-webkit-details-marker {
  display: none;
}
details.step > summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.75rem;
  font-weight: 750;
  color: #fff;
  flex-shrink: 0;
}

details.step.answer .step-num {
  background: rgba(255, 92, 148, 0.32);
  border-color: rgba(255, 160, 192, 0.45);
}

.step-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 680;
  color: #fff;
}

.step-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
}

details.step .open-lbl {
  display: none;
}
details.step[open] .closed-lbl {
  display: none;
}
details.step[open] .open-lbl {
  display: inline;
}

.step-body {
  overflow: hidden;
}

.step-inner {
  padding: 2px 16px 15px 53px;
  color: rgba(246, 249, 255, 0.92);
  font-size: 0.93rem;
}

@media (max-width: 460px) {
  .step-inner {
    padding-left: 16px;
  }
}

/* ==========================================================================
   12. INNER PAGE COMPONENTS: METERS, CHECKLISTS, ATLAS, CAST & LEDGERS
   ========================================================================== */
.eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8be9ff;
}

.crumbs {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge.ok {
  background: rgba(52, 235, 168, 0.2);
  border: 1px solid rgba(52, 235, 168, 0.45);
  color: #7ef7c9;
}
.badge.warn {
  background: rgba(255, 179, 71, 0.2);
  border: 1px solid rgba(255, 179, 71, 0.45);
  color: #ffd38a;
}

.meters-group {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.sub-meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.meter {
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(10, 14, 34, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 7px;
}
.meter-label .count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}
.bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  transition: width 0.45s var(--ease-out);
}

.notes-list,
.numbered-steps,
.sources {
  margin: 12px 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}

.chapter-block + .chapter-block {
  margin-top: 18px;
}
.chapter-heading {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #fff;
}

.items,
.ruled-list,
.time-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.items li,
.ruled-list li,
.time-ledger li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.items li:last-child,
.ruled-list li:last-child,
.time-ledger li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hub-card .ruled-list {
  padding: 0 20px 10px;
}

.ruled-list li {
  justify-content: space-between;
  align-items: center;
}
.ruled-list li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}
.ruled-list li small {
  font-weight: 500;
  color: var(--muted);
}

.time-ledger li {
  flex-direction: column;
  gap: 3px;
}
.time-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.93rem;
}
.time-row span {
  font-weight: 700;
  color: #9beeff;
  font-variant-numeric: tabular-nums;
}
.time-ledger small {
  color: var(--muted);
}

.check input,
.check-pill input {
  width: 20px;
  height: 20px;
  accent-color: var(--mint);
  cursor: pointer;
}

.item-body {
  flex: 1;
  min-width: 0;
}
.item-top a {
  color: #fff;
  font-weight: 680;
  text-decoration: none;
}
.item-top a:hover {
  text-decoration: underline;
}

li.is-done .item-top a {
  opacity: 0.62;
  text-decoration: line-through;
}
body.hide-done li.is-done {
  display: none;
}

.meta-inline,
.muted,
.footnote {
  color: var(--muted);
  font-size: 0.85rem;
}
.footnote {
  margin-top: 12px;
  font-size: 0.8rem;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.meta-strip > * {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.entry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}
.entry-actions {
  display: flex;
  gap: 8px;
}

.region-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.region-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 650;
  transition: background 0.18s ease, transform 0.16s var(--spring);
}
.region-jump:hover {
  background: rgba(255, 255, 255, 0.2);
}
.region-jump span {
  font-size: 0.7rem;
  color: #9beeff;
}

.atlas-tagline {
  font-weight: 650;
  color: #ffd0e3;
  margin: 4px 0 8px;
}

.dossier-item {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.dossier-item:first-of-type {
  border-top: 0;
  padding-top: 6px;
}
.dossier-item:last-child {
  padding-bottom: 0;
}
.dossier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.meta-link {
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

/* Filter row & buttons */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.filter-row .glass-search {
  flex: 1 1 220px;
  margin-bottom: 0;
}
.seg-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(10, 14, 34, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.seg {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.seg.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.45);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s var(--spring);
}
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.glass-btn:active {
  transform: scale(0.96);
}
.glass-btn.primary {
  background: linear-gradient(145deg, rgba(255, 71, 133, 0.72), rgba(56, 226, 255, 0.52));
  border-color: rgba(255, 255, 255, 0.48);
}

.sync-drawer {
  margin-top: 12px;
}
.sync-drawer summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.drawer-body {
  margin-top: 10px;
}
.drawer-body textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 14, 34, 0.4);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.sync-alert {
  padding: 14px;
  border-radius: 16px;
  background: rgba(56, 226, 255, 0.16);
  border: 1px solid rgba(56, 226, 255, 0.4);
  margin: 12px 0;
}

/* ==========================================================================
   13. QUICK BAR, PAGER & FOOTER
   ========================================================================== */
.quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 18px;
}

.text-action {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.16s var(--spring);
}
.text-action:hover {
  background: rgba(255, 255, 255, 0.12);
}
.text-action:active {
  transform: scale(0.95);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px;
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: background 0.18s ease, transform 0.18s var(--spring);
}
.pager-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pager-link:active {
  transform: scale(0.97);
}
.pager-link.next {
  text-align: right;
  align-items: flex-end;
}
.pager-link small {
  font-size: 0.73rem;
  font-weight: 650;
  color: var(--muted);
}
.pager-link strong {
  font-size: 0.92rem;
}

.foot {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  padding: 18px 0 12px;
  text-align: center;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-links a:hover {
  color: #fff;
}
.foot-links span {
  color: var(--faint);
}
.foot-note {
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 4px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
