:root {
  --ink: #2d1e0c;
  --muted-ink: rgba(45, 30, 12, 0.66);
  --glass-line: rgba(255, 242, 210, 0.80);
  --glass-fill: rgba(255, 235, 180, 0.07);
  --fallback-bg: #6b5538;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--fallback-bg);
  color: var(--ink);
  font-family: var(--font-main);
  user-select: none;
}

/* hero-section no longer needed 鈥?remove if present */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--fallback-bg);
  transition: opacity 0.6s ease;
}

.loading-overlay p {
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(36, 59, 66, 0.13);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* UI-only overlay. The video and WebGL cursor remain separate layers. */
.hud-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* Replaceable image notes sit in the open space beside the specimen. */
.specimen-notes {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.specimen-note {
  position: absolute;
  top: var(--note-top);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: min(210px, 17vw);
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 235, 198, 0.82);
  cursor: none !important;
  pointer-events: auto;
  text-align: left;
  opacity: 0;
  animation: noteReveal 700ms cubic-bezier(.22,.8,.24,1) forwards;
  animation-delay: var(--note-delay);
  translate: var(--note-shift, 0) 0;
}

/* Large, translucent sign plates sit behind the copy like background bubbles. */
.specimen-note::before {
  position: absolute;
  top: 50%;
  z-index: -1;
  width: min(var(--bubble-size, 190px), 17vw);
  aspect-ratio: 1;
  border: 1px solid rgba(212, 135, 74, 0.07);
  border-radius: 50%;
  background-color: transparent;
  background-image: var(--note-background);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 22px rgba(212, 135, 74, 0.025), 0 0 24px rgba(212, 135, 74, 0.015);
  content: '';
  opacity: 0.10;
  pointer-events: none;
  transform: translateY(-50%) rotate(var(--bubble-rotate, 0deg));
  mix-blend-mode: screen;
  filter: brightness(1.10) saturate(0.86) contrast(1.02);
}

.specimen-note.left::before { left: -10px; }
.specimen-note.right::before { right: -10px; }

.specimen-note-copy,
.specimen-note-index,
.specimen-note-rule { position: relative; z-index: 2; }

.specimen-note.left { left: clamp(38px, 7.5vw, 132px); }
.specimen-note.right { right: clamp(38px, 7.5vw, 132px); flex-direction: row-reverse; text-align: right; }

.specimen-note-index,
.specimen-note-meta {
  color: rgba(212, 135, 74, 0.82);
  font-size: 8px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.specimen-note-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.specimen-note-icon {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: clamp(25px, 2.35vw, 36px);
  height: clamp(25px, 2.35vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(212, 135, 74, 0.28);
  background: rgba(212, 135, 74, 0.06);
  opacity: 0.62;
  transition: opacity 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.specimen-note-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: sepia(0.62) saturate(0.62) hue-rotate(326deg) brightness(0.78) contrast(1.28);
}

.specimen-note-label {
  color: rgba(255, 238, 205, 0.86);
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 500;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.specimen-note-rule {
  width: 34px;
  height: 1px;
  background: rgba(212, 135, 74, 0.52);
  transition: width 220ms ease, background 220ms ease;
}

.specimen-note:hover,
.specimen-note:focus-visible {
  outline: none;
}

.specimen-note:hover .specimen-note-label,
.specimen-note:focus-visible .specimen-note-label { color: rgba(255, 219, 160, 1); }
.specimen-note:hover .specimen-note-rule,
.specimen-note:focus-visible .specimen-note-rule { width: 52px; background: rgba(212, 135, 74, 0.95); }
.specimen-note:hover .specimen-note-icon,
.specimen-note:focus-visible .specimen-note-icon { opacity: 0.92; border-color: rgba(212, 135, 74, 0.82); transform: scale(1.08); }

.note-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 12;
  width: min(260px, 28vw);
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(212, 135, 74, 0.60);
  background: rgba(17, 9, 3, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 24px rgba(212, 135, 74, 0.10);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.note-preview.is-visible { opacity: 1; }

.note-preview-media {
  position: relative;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: rgba(42, 21, 9, 0.92);
}

.note-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.62) saturate(0.68) hue-rotate(326deg) contrast(1.05);
}

.note-preview-media img[src*="padar-island"] {
  filter: none;
}

.note-preview-media img[src*="padar-peak"] {
  filter: none;
}

.note-preview-media img[src*="bvlgari"] {
  filter: none;
}

.note-preview-media img[src*="alasharum"] {
  filter: none;
  object-fit: cover;
  object-position: center 72%;
}

.note-preview-media img[src*="glasssea"] {
  filter: none;
}

.note-preview-media img[src*="big-snake"] {
  filter: none;
}

.note-preview-media img[src*="tt-of-bats"] {
  filter: none;
}

.note-preview-media img[src*="pink-beach"] {
  filter: none;
}

.note-preview-media img[src*="mount-bromo"] {
  filter: none;
}

.note-preview-media img[src*="paragliding"] {
  filter: none;
}

.note-preview-index {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 235, 198, 0.35);
  background: rgba(17, 9, 3, 0.68);
  color: rgba(255, 235, 198, 0.78);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.note-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 3px 4px;
}

.note-preview-copy strong {
  color: rgba(255, 238, 205, 0.92);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.note-preview-copy span {
  color: rgba(200, 168, 118, 0.68);
  font-size: 10px;
  line-height: 1.45;
}

@keyframes noteReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Amber viewfinder corner brackets */
.hud-corner {
  position: absolute;
  width: clamp(22px, 2vw, 32px);
  height: clamp(22px, 2vw, 32px);
  border-color: rgba(212, 135, 74, 0.90);
  border-style: solid;
}

.hud-corner::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212, 135, 74, 0.95);
  content: '';
}

.hud-corner.top-left    { top: 4.2%; left: 2.25%; border-width: 2px 0 0 2px; }
.hud-corner.top-left::after    { left: -2px; bottom: -2px; }
.hud-corner.top-right   { top: 4.2%; right: 2.25%; border-width: 2px 2px 0 0; }
.hud-corner.top-right::after   { right: -2px; bottom: -2px; }
.hud-corner.bottom-left  { bottom: 4.8%; left: 2.25%; border-width: 0 0 2px 2px; }
.hud-corner.bottom-left::after  { left: -2px; top: -2px; }
.hud-corner.bottom-right { bottom: 4.8%; right: 2.25%; border-width: 0 2px 2px 0; }
.hud-corner.bottom-right::after { right: -2px; top: -2px; }

/* 鈹€鈹€ Top navigation 鈥?flat gradient strip, no pill 鈹€鈹€ */
.hud-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 3.5vw, 60px);
  height: clamp(64px, 8.5vh, 84px);
  background: linear-gradient(180deg, rgba(12, 6, 1, 0.82) 0%, rgba(12, 6, 1, 0) 100%);
  border-bottom: 1px solid rgba(212, 135, 74, 0.20);
  pointer-events: auto;
}

/* Brand: 2脳2 block mark + stacked text */
.header-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: clamp(20px, 1.7vw, 26px);
  height: clamp(20px, 1.7vw, 26px);
}

.mark-block {
  border: 1.2px solid rgba(212, 135, 74, 0.75);
}

.mark-block.filled {
  background: rgba(212, 135, 74, 0.80);
  border-color: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-name {
  color: rgba(255, 238, 205, 0.95);
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 600;
  letter-spacing: 0.30em;
}

.brand-sub {
  color: rgba(212, 135, 74, 0.75);
  font-size: clamp(7px, 0.52vw, 9px);
  font-weight: 400;
  letter-spacing: 0.55em;
}

/* Centre nav 鈥?absolutely centred so brand/cta don't push it */
.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.nav-link {
  position: relative;
  color: rgba(220, 195, 155, 0.65);
  font-size: clamp(10px, 0.68vw, 11px);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(212, 135, 74, 0.90);
  transition: width 220ms ease;
}

.nav-link:hover { color: rgba(255, 225, 170, 0.96); }
.nav-link:hover::after { width: 100%; }

/* CTA 鈥?sharp-cornered amber outline button */
.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: clamp(7px, 0.9vh, 10px) clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(212, 135, 74, 0.70);
  background: transparent;
  color: rgba(212, 135, 74, 0.90);
  font-size: clamp(9px, 0.63vw, 11px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  flex: 0 0 auto;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-enter:hover {
  background: rgba(212, 135, 74, 0.14);
  border-color: rgba(212, 135, 74, 1);
  color: rgba(255, 210, 150, 1);
}

.enter-arrow { transition: transform 180ms ease; }
.btn-enter:hover .enter-arrow { transform: translateX(3px); }

/* 鈹€鈹€ Bottom-corner status labels (replace removed sidebars + pill) 鈹€鈹€ */
.hud-status-bl,
.hud-status-br {
  position: absolute;
  bottom: 8.5%;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hud-status-bl { left: 3.2%; }
.hud-status-br { right: 3.8%; flex-direction: row-reverse; }

.status-code {
  color: rgba(212, 135, 74, 0.88);
  font-size: clamp(10px, 0.70vw, 12px);
  font-weight: 500;
  letter-spacing: 0.20em;
}

.status-sep {
  color: rgba(212, 135, 74, 0.35);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.status-msg {
  color: rgba(200, 168, 118, 0.60);
  font-size: clamp(9px, 0.60vw, 10px);
  font-weight: 400;
  letter-spacing: 0.24em;
}

.scan-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(212, 135, 74, 0.90);
  animation: scanPulse 2.4s ease-in-out infinite;
}

.scan-text {
  color: rgba(200, 168, 118, 0.60);
  font-size: clamp(9px, 0.60vw, 10px);
  font-weight: 400;
  letter-spacing: 0.24em;
}

@keyframes scanPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%       { opacity: 1;    transform: scale(1.3); }
}

/* The reference only keeps a centred, floating timeline ornament. */
.hud-footer {
  position: absolute;
  bottom: 4.85%;
  left: 50%;
  width: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-center {
  width: clamp(235px, 18.4vw, 310px);
}

.track-bar {
  display: flex;
  align-items: center;
  width: 100%;
}

.track-dot { display: none; }

.track-line-wrapper {
  position: relative;
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
}

.track-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
    rgba(212, 135, 74, 0.55) 0 44%,
    transparent 44% 56%,
    rgba(212, 135, 74, 0.55) 56% 100%);
}

.track-notch {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(9px, 1.2vh, 12px);
  height: clamp(9px, 1.2vh, 12px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(212, 135, 74, 0.75);
  border-radius: 50%;
  background: rgba(212, 135, 74, 0.90);
  box-shadow: 0 0 8px rgba(212, 135, 74, 0.45);
}

.bug-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 165, 91, 0.86));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scan-dot { animation: none; }
}

@media (max-width: 1050px) {
  .hud-header { padding-inline: 22px; }
}

@media (max-width: 760px) {
  .header-nav  { display: none; }
  .hud-status-br { display: none; }
  .hud-status-bl { left: 5%; }
  .specimen-note:nth-child(n + 7) { display: none; }
  .specimen-note { width: auto; }
  .specimen-note { translate: 0 0; }
  .specimen-note.left { left: 14px; }
  .specimen-note.right { right: 14px; }
}
