/* Layout: a live 3D solar system fixed behind frosted pastel-tinted panels. */
:root {
  color-scheme: dark;

  /* Dreamy Pastels Palette: #efd9ce - #dec0f1 - #b79ced - #957fef - #7161ef */
  --pastel-cream: #efd9ce;
  --pastel-lavender: #dec0f1;
  --pastel-wisteria: #b79ced;
  --pastel-iris: #957fef;
  --pastel-violet: #7161ef;

  /* Core Theme Tokens */
  --bg: #0b0918;
  --ink: #efd9ce;
  --muted: #dec0f1;
  --line: rgba(183, 156, 237, 0.22);
  --panel: rgba(18, 14, 38, 0.78);
  --panel-2: rgba(29, 23, 58, 0.82);

  /* Accent & Status Tokens */
  --ir: #957fef;
  --ir-soft: rgba(149, 127, 239, 0.18);
  --cool: #b79ced;
  --ok: #dec0f1;
  --warn: #efd9ce;

  /* Typography */
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Orbitron', system-ui, sans-serif;
  --font-subtle: 'Redaction 35', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.015em;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 16px 28px;
  min-height: 100%;
  overflow-x: hidden;
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  touch-action: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(113, 97, 239, 0.14), transparent 55%),
    radial-gradient(ellipse at 78% 75%, rgba(183, 156, 237, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 30%, rgba(11, 9, 24, 0.35), rgba(11, 9, 24, 0.86) 75%);
}

body.tour .veil {
  opacity: 0.14;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--pastel-wisteria);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--pastel-cream);
  margin: 0;
  text-wrap: balance;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pastel-cream);
  letter-spacing: 0.04em;
}

.brand svg {
  flex: none;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.tabs button {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--pastel-lavender);
  font-weight: 500;
  font-size: 13px;
  min-height: 40px;
  transition: background 0.2s, color 0.2s;
}

.tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--pastel-iris), var(--pastel-violet));
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(113, 97, 239, 0.35);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(11, 9, 24, 0.45), inset 0 1px 0 rgba(239, 217, 206, 0.07);
  padding: 16px;
  min-width: 0;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 66ch;
}

.intro h1 {
  font-size: clamp(24px, 4.1vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.intro p {
  margin: 0;
  color: var(--pastel-lavender);
  font-size: 13.5px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--pastel-cream);
  margin-bottom: 12px;
}

.step i {
  font-style: normal;
  font-family: var(--font-subtle);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ir-soft);
  color: var(--pastel-cream);
  font-size: 14px;
  border: 1px solid rgba(183, 156, 237, 0.45);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--pastel-cream);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--pastel-wisteria);
  background: rgba(149, 127, 239, 0.14);
}

.chip[aria-pressed="true"] {
  background: rgba(149, 127, 239, 0.24);
  border-color: var(--pastel-iris);
  color: var(--pastel-cream);
  box-shadow: 0 0 12px rgba(149, 127, 239, 0.2);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pastel-wisteria);
}

.tip {
  margin: 12px 0 0;
  color: var(--pastel-lavender);
  font-family: var(--font-subtle);
  font-size: 15px;
  line-height: 1.45;
}

.tip b {
  color: var(--pastel-cream);
  font-weight: 600;
}

.stage {
  margin-top: 14px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070512;
  aspect-ratio: 1 / 1;
  max-height: min(78vh, 640px);
  width: 100%;
  margin-inline: auto;
}

#sky {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  image-rendering: auto;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(18, 14, 38, 0.82);
  font-family: var(--font-subtle);
  font-size: 13.5px;
  color: var(--pastel-cream);
  border: 1px solid var(--line);
  pointer-events: none;
}

.readout {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 150px;
  font-family: var(--font-subtle);
  font-size: 13px;
  color: var(--pastel-lavender);
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(11, 9, 24, 0.95);
}

.transport {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(222, 192, 241, 0.35);
  background: linear-gradient(135deg, var(--pastel-iris), var(--pastel-violet));
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 14px rgba(113, 97, 239, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.play:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(149, 127, 239, 0.45);
}

.scrub {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input[type=range] {
  width: 100%;
  accent-color: var(--pastel-iris);
  height: 28px;
  background: transparent;
}

.dates {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-subtle);
  font-size: 13px;
  color: var(--pastel-lavender);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-subtle);
  font-size: 13.5px;
}

.meta span {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--pastel-lavender);
}

.meta .ok {
  color: var(--pastel-cream);
  border-color: rgba(183, 156, 237, 0.45);
}

.meta .warn {
  color: var(--pastel-wisteria);
  border-color: rgba(149, 127, 239, 0.45);
}

.ctrl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ctrl:last-child {
  margin-bottom: 0;
}

.ctrl label,
.ctrl .lbl {
  font-weight: 600;
  font-size: 13px;
  color: var(--pastel-cream);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ctrl label output {
  font-family: var(--font-subtle);
  color: var(--pastel-wisteria);
  font-weight: 400;
  font-size: 14px;
}

.hint {
  font-family: var(--font-subtle);
  font-size: 14px;
  line-height: 1.4;
  color: var(--pastel-lavender);
  opacity: 0.88;
  margin: 0;
}

.seg {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}

.seg button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 8px 6px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pastel-lavender);
  transition: background 0.2s, color 0.2s;
}

.seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--pastel-iris), var(--pastel-violet));
  color: #ffffff;
  font-weight: 600;
}

.swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sw {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--font-subtle);
  font-size: 14px;
  font-weight: 400;
  color: #120e26;
}

.sw.all {
  width: auto;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--pastel-cream), var(--pastel-lavender), var(--pastel-wisteria), var(--pastel-iris), var(--pastel-violet));
  color: #120e26;
  font-weight: 600;
}

.sw[aria-pressed="true"] {
  border-color: var(--pastel-cream);
  box-shadow: 0 0 0 2px rgba(239, 217, 206, 0.28);
}

#spec {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: 8px;
  background: rgba(11, 9, 24, 0.72);
}

.more summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--pastel-cream);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::after {
  content: "+";
  color: var(--pastel-wisteria);
  font-size: 20px;
}

.more[open] summary::after {
  content: "\2212";
}

.more .inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.coords input[type=text] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--pastel-cream);
  font-family: var(--font-body);
  font-size: 12.5px;
}

.coords label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-subtle);
  font-size: 14px;
  color: var(--pastel-lavender);
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--pastel-cream);
  border-radius: 10px;
  padding: 9px 14px;
  min-height: 40px;
  font-weight: 500;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}

.btn:hover {
  border-color: var(--pastel-wisteria);
  background: rgba(149, 127, 239, 0.16);
}

.btn.primary {
  background: linear-gradient(135deg, var(--pastel-iris), var(--pastel-violet));
  color: #ffffff;
  border-color: var(--pastel-iris);
  font-weight: 600;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--pastel-cream);
  min-height: 32px;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--pastel-iris);
}

.foot {
  color: var(--pastel-lavender);
  font-family: var(--font-subtle);
  font-size: 14px;
  line-height: 1.5;
  max-width: 90ch;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.foot b {
  color: var(--pastel-cream);
}

.foot code {
  font-family: var(--font-subtle);
  color: var(--pastel-wisteria);
  background: rgba(149, 127, 239, 0.14);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Space tour */
.tourui {
  display: none;
}

body.tour #viewer {
  display: none;
}

body.tour .tourui {
  display: block;
}

.labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.lab {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  border: 1px solid var(--line);
  background: rgba(18, 14, 38, 0.78);
  color: var(--pastel-cream);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transform: translate(-50%, -140%);
  backdrop-filter: blur(8px);
  will-change: transform;
}

.lab:hover,
.lab.on {
  border-color: var(--pastel-iris);
  background: rgba(113, 97, 239, 0.28);
  color: var(--pastel-cream);
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(0deg, rgba(11, 9, 24, 0.94), rgba(11, 9, 24, 0));
  pointer-events: none;
}

.dock > * {
  pointer-events: auto;
  max-width: 1180px;
  width: 100%;
  margin-inline: auto;
}

.info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.info h2 {
  font-size: 20px;
}

.info p {
  margin: 4px 0 0;
  color: var(--pastel-lavender);
  font-size: 13px;
  max-width: 60ch;
}

.info .fact {
  font-family: var(--font-subtle);
  font-size: 13.5px;
  color: var(--pastel-wisteria);
}

.tcontrols {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tcontrols input[type=range] {
  width: 130px;
}

.scroller {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.scroller .chip {
  flex: none;
}

.helptxt {
  color: var(--pastel-lavender);
  font-family: var(--font-subtle);
  font-size: 13.5px;
  text-align: center;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .stage {
    max-height: none;
  }

  .top {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---- Object Lab and analysis panels ---- */
.sec-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tune {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.group:first-of-type {
  padding-top: 0;
}

.group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.group > .lbl {
  font-weight: 600;
  font-size: 13px;
  color: var(--pastel-cream);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.group > .lbl output {
  font-family: var(--font-subtle);
  color: var(--pastel-wisteria);
  font-weight: 400;
  font-size: 14px;
}

.group > .lbl small {
  font-family: var(--font-subtle);
  color: var(--pastel-lavender);
  font-weight: 400;
  font-size: 13.5px;
}

details.group.collapsible > summary {
  cursor: pointer;
  padding: 3px;
  list-style: none;
  align-items: center;
  user-select: none;
}

details.group.collapsible > summary::-webkit-details-marker {
  display: none;
}

details.group.collapsible > summary::after {
  content: "+";
  color: var(--pastel-wisteria);
  font-family: var(--font-subtle);
  font-size: 18px;
  line-height: 1;
}

details.group.collapsible[open] > summary::after {
  content: "\2212";
}

details.group.collapsible .group-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.seg.four {
  --cols: 4;
}

.seg.four button {
  font-size: 11.5px;
  padding: 8px 2px;
}

.specbar {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pastel-violet) 0%, var(--pastel-iris) 25%, var(--pastel-wisteria) 50%, var(--pastel-lavender) 75%, var(--pastel-cream) 100%);
  opacity: 0.92;
}

.specbar i {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: var(--pastel-cream);
  box-shadow: 0 0 8px var(--pastel-cream);
  transform: translateX(-50%);
  transition: left 0.15s;
}

.specbar-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-subtle);
  font-size: 13px;
  color: var(--pastel-lavender);
}

.chip .n {
  font-family: var(--font-subtle);
  font-size: 13px;
  color: var(--pastel-lavender);
}

.chip.sm {
  min-height: 34px;
  padding: 5px 11px;
  font-size: 12px;
}

.linkbtn {
  background: none;
  border: 0;
  color: var(--pastel-wisteria);
  font-family: var(--font-subtle);
  font-size: 14px;
  padding: 4px;
  text-decoration: underline;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--c, var(--line));
  color: var(--c, var(--pastel-cream));
  background: color-mix(in srgb, var(--c, #957fef) 16%, transparent);
}

.simtag {
  font-family: var(--font-subtle);
  font-size: 13px;
  color: var(--pastel-cream);
  border: 1px solid rgba(239, 217, 206, 0.35);
  border-radius: 6px;
  padding: 2px 8px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 26px 8px;
  color: var(--pastel-lavender);
  font-size: 13px;
}

.empty svg {
  opacity: 0.85;
}

.det-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.det-head h3 {
  font-size: 20px;
  line-height: 1.2;
}

.det-head .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.det p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--pastel-cream);
}

.det .look {
  color: var(--pastel-wisteria);
  font-size: 13px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0 18px;
  margin: 10px 0 14px;
}

.facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.facts dt {
  font-family: var(--font-subtle);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pastel-lavender);
}

.facts dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--pastel-cream);
  overflow-wrap: anywhere;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  background: var(--panel-2);
  border-radius: 8px;
  padding: 7px 10px;
  min-height: 38px;
  font-size: 12.5px;
  color: var(--pastel-cream);
  transition: border-color 0.2s, background 0.2s;
}

.li:hover {
  border-color: var(--pastel-wisteria);
}

.li.on {
  border-color: var(--pastel-iris);
  background: var(--ir-soft);
}

.li .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.li .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.li .v {
  font-family: var(--font-subtle);
  font-size: 13.5px;
  color: var(--pastel-lavender);
}

#cmap {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 380;
  display: block;
  border-radius: 8px;
  background: rgba(11, 9, 24, 0.72);
  cursor: pointer;
}

.grid.even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .grid.even {
    grid-template-columns: minmax(0, 1fr);
  }
}

[hidden] {
  display: none !important;
}

/* ---- Collapsible Visitor Sticky-Note Board (EmmaxPlay itchy-bobcat-50) ---- */
.notes-drawer,
.notes-drawer * {
  font-family: var(--font-subtle);
}

.notes-drawer > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  color: var(--pastel-cream);
  font-size: 17px;
  letter-spacing: 0.02em;
  user-select: none;
}

.notes-drawer > summary::-webkit-details-marker {
  display: none;
}

.notes-drawer > summary::after {
  content: "+";
  color: var(--pastel-wisteria);
  font-size: 22px;
  line-height: 1;
}

.notes-drawer[open] > summary::after {
  content: "\2212";
}

.notes-sum-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notes-badge {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ir-soft);
  border: 1px solid rgba(183, 156, 237, 0.38);
  color: var(--pastel-lavender);
}

.notes-inner {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notes-intro {
  margin: 0;
  color: var(--pastel-lavender);
  font-size: 15px;
  max-width: 72ch;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Composer Form */
.note-form {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.note-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  color: var(--pastel-lavender);
}

.note-field input[type="text"],
.note-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(11, 9, 24, 0.72);
  color: var(--pastel-cream);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-subtle);
  font-size: 14.5px;
  line-height: 1.45;
  resize: vertical;
}

.note-field input[type="text"]::placeholder,
.note-field textarea::placeholder {
  color: rgba(222, 192, 241, 0.45);
}

.note-kind-seg {
  display: inline-flex;
  background: rgba(11, 9, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.note-kind-seg button {
  border: 0;
  background: transparent;
  color: var(--pastel-lavender);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  transition: background 0.2s, color 0.2s;
}

.note-kind-seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--pastel-iris), var(--pastel-violet));
  color: #ffffff;
}

.note-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.note-tint-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--pastel-lavender);
}

.tint-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(11, 9, 24, 0.65);
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tint-dot:hover {
  transform: scale(1.12);
}

.tint-dot[aria-pressed="true"] {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--pastel-iris);
}

.note-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--pastel-cream);
  cursor: pointer;
}

.note-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--pastel-iris);
}

.note-photo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px dashed rgba(183, 156, 237, 0.35);
  background: rgba(11, 9, 24, 0.45);
  transition: border-color 0.2s, background 0.2s;
}

.note-photo-bar.dragover {
  border-color: var(--pastel-cream);
  background: rgba(149, 127, 239, 0.18);
}

.note-photo-hint {
  font-size: 13px;
  color: var(--pastel-lavender);
  opacity: 0.78;
}

.note-btn {
  border: 1px solid var(--line);
  background: rgba(18, 14, 38, 0.85);
  color: var(--pastel-cream);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 13.5px;
  transition: border-color 0.2s, background 0.2s;
}

.note-btn:hover {
  border-color: var(--pastel-wisteria);
  background: rgba(149, 127, 239, 0.18);
}

.note-btn.primary {
  background: linear-gradient(135deg, var(--pastel-iris), var(--pastel-violet));
  border-color: var(--pastel-iris);
  color: #ffffff;
  padding: 8px 15px;
  font-size: 14.5px;
}

.note-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 150px;
  background: #070512;
}

.note-preview img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.note-preview-rm {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(239, 217, 206, 0.4);
  background: rgba(11, 9, 24, 0.85);
  color: var(--pastel-cream);
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.note-submit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.note-status {
  font-size: 13.5px;
  color: var(--pastel-wisteria);
}

/* Notes Board & Filters */
.notes-board-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.notes-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notes-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.notes-filters button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--pastel-lavender);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13.5px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.notes-filters button[aria-pressed="true"] {
  background: rgba(149, 127, 239, 0.26);
  border-color: var(--pastel-iris);
  color: var(--pastel-cream);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
  align-items: start;
}

/* EmmaxPlay itchy-bobcat-50 Sticky Note Card */
.sticky-card {
  position: relative;
  border-radius: 10px;
  color: #16112c;
  box-shadow:
    0 10px 22px rgba(7, 5, 18, 0.45),
    0 2px 5px rgba(7, 5, 18, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

/* Subtle Dreamy Pastel Paper Variants */
.sticky-card[data-tint="cream"] {
  background: linear-gradient(165deg, #f5e5dd 0%, #efd9ce 100%);
}

.sticky-card[data-tint="lavender"] {
  background: linear-gradient(165deg, #e7d1f6 0%, #dec0f1 100%);
}

.sticky-card[data-tint="wisteria"] {
  background: linear-gradient(165deg, #cbb6f3 0%, #b79ced 100%);
}

.sticky-card[data-tint="iris"] {
  background: linear-gradient(165deg, #b8abf7 0%, #a695f5 100%);
}

/* Gentle sticky-note tilt that straightens on hover */
.sticky-card:nth-child(odd) {
  transform: rotate(-0.65deg);
}

.sticky-card:nth-child(even) {
  transform: rotate(0.6deg);
}

.sticky-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 16px 30px rgba(7, 5, 18, 0.58),
    0 4px 10px rgba(113, 97, 239, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  z-index: 2;
}

/* Folded corner hint at bottom-right */
.sticky-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 50%, rgba(18, 14, 38, 0.14) 52%, rgba(18, 14, 38, 0.06) 100%);
  border-top-left-radius: 5px;
  pointer-events: none;
}

/* EmmaxPlay .tools header with 3 dots */
.sticky-card .tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(22, 17, 44, 0.1);
  background: rgba(255, 255, 255, 0.18);
}

.sticky-card .dots-group {
  display: flex;
  align-items: center;
}

.sticky-card .circle {
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
}

.sticky-card .box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sticky-card .red.box {
  background-color: #ff605c;
}

.sticky-card .yellow.box {
  background-color: #ffbd44;
}

.sticky-card .green.box {
  background-color: #00ca4e;
}

.sticky-card .tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-tag {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(22, 17, 44, 0.1);
  color: #16112c;
}

.sticky-tag.problem {
  background: rgba(113, 97, 239, 0.22);
  color: #120e26;
}

.sticky-del {
  border: 0;
  background: transparent;
  color: rgba(22, 17, 44, 0.55);
  font-size: 15px;
  line-height: 1;
  padding: 0 3px;
}

.sticky-del:hover {
  color: #120e26;
}

/* EmmaxPlay .card__content */
.sticky-card .card__content {
  padding: 11px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticky-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: rgba(22, 17, 44, 0.72);
}

.sticky-author {
  font-weight: 700;
  color: #120e26;
  font-size: 14.5px;
}

.sticky-context {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(22, 17, 44, 0.08);
  color: rgba(22, 17, 44, 0.82);
}

.sticky-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #16112c;
  word-break: break-word;
}

.sticky-photo {
  margin-top: 2px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(22, 17, 44, 0.16);
  background: #0b0918;
  cursor: zoom-in;
}

.sticky-photo img {
  width: 100%;
  max-height: 145px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sticky-photo:hover img {
  transform: scale(1.03);
}

.notes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 12px;
  color: var(--pastel-lavender);
  font-size: 14.5px;
}

/* Photo Lightbox */
.note-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 5, 18, 0.84);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.note-lightbox-card {
  position: relative;
  max-width: min(92vw, 760px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.note-lightbox-card img {
  max-height: 75vh;
  width: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.note-lightbox-card p {
  margin: 10px 0 0;
  font-family: var(--font-subtle);
  font-size: 14.5px;
  color: var(--pastel-cream);
  text-align: center;
}

.note-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pastel-wisteria);
  background: var(--bg);
  color: var(--pastel-cream);
  font-size: 18px;
  display: grid;
  place-items: center;
}

@media (max-width: 820px) {
  .notes-layout {
    grid-template-columns: 1fr;
  }
}

/* ==================== Field Guide Tab Styles ==================== */
body:not(.guide) #guide {
  display: none;
}

body.guide #viewer,
body.guide #tour,
body.guide #labels {
  display: none !important;
}

body.guide #space,
body.guide .veil {
  opacity: 0.16;
  pointer-events: none;
}

#guide {
  padding-bottom: 36px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(149, 127, 239, 0.22), transparent 55%),
    rgba(22, 18, 46, 0.84);
}

.guide-eyebrow {
  display: inline-block;
  font: 600 11px/1.2 'Orbitron', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dec0f1;
  background: rgba(113, 97, 239, 0.22);
  border: 1px solid rgba(183, 156, 237, 0.35);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.guide-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.25;
  color: #efd9ce;
}

.guide-hero p,
.guide-lead {
  margin: 0;
  font: 15px/1.6 'Redaction 35', Georgia, serif;
  color: rgba(239, 217, 206, 0.9);
}

.guide-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guide-stat {
  background: rgba(11, 9, 24, 0.62);
  border: 1px solid rgba(183, 156, 237, 0.24);
  border-radius: 12px;
  padding: 12px 14px;
}

.guide-stat strong {
  display: block;
  font: 700 15px/1.3 'Orbitron', sans-serif;
  color: #dec0f1;
  margin-bottom: 4px;
}

.guide-stat span {
  display: block;
  font: 13px/1.4 'Redaction 35', Georgia, serif;
  color: rgba(239, 217, 206, 0.78);
}

.guide-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font: 14.5px/1.55 'Redaction 35', Georgia, serif;
  color: rgba(239, 217, 206, 0.9);
}

.guide-list strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: #dec0f1;
}

.guide-spectrum-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
}

.guide-spectrum-bar span {
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
  font: 700 11px/1.25 'Orbitron', sans-serif;
  color: #0b0918;
  box-shadow: 0 4px 14px rgba(11, 9, 24, 0.35);
}

.guide-lens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-mini-card,
.guide-filter-item,
.guide-recipe-card {
  background: rgba(11, 9, 24, 0.56);
  border: 1px solid rgba(183, 156, 237, 0.22);
  border-radius: 12px;
  padding: 14px;
}

.guide-mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #efd9ce;
}

.guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.guide-mini-card p,
.guide-filter-item p,
.guide-recipe-card p {
  margin: 0;
  font: 14px/1.55 'Redaction 35', Georgia, serif;
  color: rgba(239, 217, 206, 0.86);
}

.guide-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.guide-filter-item h3,
.guide-recipe-card h3 {
  margin: 0 0 6px;
  font: 600 14px/1.35 'Orbitron', sans-serif;
  color: #dec0f1;
}

.guide-recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.guide-recipe-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-recipe-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 156, 237, 0.55);
}

.guide-recipe-card .btn {
  margin-top: auto;
}

@media (max-width: 860px) {
  .guide-hero,
  .guide-lens-grid,
  .guide-filter-grid,
  .guide-recipe-grid {
    grid-template-columns: 1fr;
  }

  .guide-spectrum-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==================== Animated Navigation Arrow Callouts ==================== */
.nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

.nav-hints {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 6px;
  pointer-events: none;
}

.nav-hint {
  pointer-events: auto;
  appearance: none;
  background: none;
  border: 0;
  padding: 2px 4px;
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  font: italic 13px/1.1 'Redaction 35', Georgia, serif;
  letter-spacing: 0.02em;
  color: #dec0f1;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(11, 9, 24, 0.95);
  transition: color 0.2s ease, opacity 0.25s ease, transform 0.2s ease;
}

.nav-hint:hover {
  color: #efd9ce;
}

.nav-hint .nav-arrow {
  color: #957fef;
  filter: drop-shadow(0 0 6px rgba(149, 127, 239, 0.55));
  transition: color 0.2s ease, filter 0.2s ease;
}

.nav-hint:hover .nav-arrow {
  color: #efd9ce;
  filter: drop-shadow(0 0 8px rgba(239, 217, 206, 0.65));
}

.nav-hint-explore .nav-arrow {
  animation: nudgeUpRight 2.2s ease-in-out infinite;
}

.nav-hint-guide .nav-arrow {
  animation: nudgeUpLeft 2.2s ease-in-out infinite;
}

/* Soften each hint while its destination tab is already open */
body:not(.tour):not(.guide) .nav-hint-explore,
body.guide .nav-hint-guide {
  opacity: 0.45;
}

@keyframes nudgeUpRight {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2.5px, -2.5px);
  }
}

@keyframes nudgeUpLeft {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-2.5px, -2.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-hint-explore .nav-arrow,
  .nav-hint-guide .nav-arrow {
    animation: none;
  }
}

/* ==================== Space Tour Top-Left Fun Fact Card (afraid-lionfish-0 style) ==================== */
.tour-fact-slot {
  position: relative;
  z-index: 6;
  width: min(330px, calc(100vw - 32px));
  margin-top: 6px;
  pointer-events: auto;
}

.lionfish-card {
  position: relative;
  border-radius: 16px;
  padding: 15px 16px 14px;
  background: linear-gradient(155deg, rgba(20, 16, 44, 0.78), rgba(11, 9, 24, 0.86));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 14px 34px rgba(5, 4, 14, 0.72),
    inset 0 1px 0 rgba(239, 217, 206, 0.14);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  overflow: hidden;
}

/* Luminous gradient border ring */
.lionfish-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(239, 217, 206, 0.42),
    rgba(183, 156, 237, 0.22) 45%,
    rgba(113, 97, 239, 0.55)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.78;
  transition: opacity 0.32s ease;
}

/* Subtle top-right violet ambient glow on hover */
.lionfish-card::after {
  content: '';
  position: absolute;
  top: -45px;
  right: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 127, 239, 0.28), transparent 70%);
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.lionfish-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 42px rgba(5, 4, 14, 0.82),
    0 0 28px rgba(113, 97, 239, 0.28);
}

.lionfish-card:hover::before {
  opacity: 1;
}

.lionfish-card:hover::after {
  opacity: 0.95;
  transform: scale(1.15);
}

.lionfish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lionfish-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 10px/1.2 'Orbitron', sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0b0918;
  background: linear-gradient(135deg, #efd9ce, #dec0f1);
  box-shadow: 0 3px 10px rgba(222, 192, 241, 0.25);
}

.lionfish-badge[data-cat="Planets"] {
  background: linear-gradient(135deg, #dec0f1, #b79ced);
}

.lionfish-badge[data-cat="Deep Space"] {
  background: linear-gradient(135deg, #b79ced, #957fef);
  color: #0b0918;
}

.lionfish-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lionfish-counter {
  font: 12px/1 'Redaction 35', Georgia, serif;
  color: rgba(239, 217, 206, 0.65);
}

.lionfish-min {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(183, 156, 237, 0.3);
  background: rgba(11, 9, 24, 0.65);
  color: #dec0f1;
  font: 700 14px/1 'Orbitron', sans-serif;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lionfish-min:hover {
  background: rgba(113, 97, 239, 0.32);
  border-color: #efd9ce;
  color: #efd9ce;
}

.lionfish-body {
  margin-top: 11px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lionfish-body.swapping {
  opacity: 0;
  transform: translateY(4px);
}

.lionfish-card.is-collapsed .lionfish-body {
  display: none;
}

.lionfish-title {
  margin: 0 0 6px;
  font: 600 13.5px/1.35 'Orbitron', sans-serif;
  letter-spacing: 0.02em;
  color: #efd9ce;
}

.lionfish-text {
  margin: 0;
  font: 14px/1.55 'Redaction 35', Georgia, serif;
  color: rgba(239, 217, 206, 0.88);
}

.lionfish-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(183, 156, 237, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lionfish-hint {
  font: italic 11.5px/1.2 'Redaction 35', Georgia, serif;
  color: rgba(222, 192, 241, 0.65);
}

.lionfish-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(183, 156, 237, 0.42);
  background: rgba(113, 97, 239, 0.22);
  color: #efd9ce;
  font: 600 11px/1 'Orbitron', sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.lionfish-btn:hover {
  background: linear-gradient(135deg, #957fef, #7161ef);
  border-color: #efd9ce;
  color: #0b0918;
  box-shadow: 0 4px 14px rgba(113, 97, 239, 0.45);
}

.lionfish-btn:active {
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .tour-fact-slot {
    width: 100%;
  }
}