:root {
  --paper: #f2ede3;
  --paper-2: #ebe4d6;
  --ink: #17160f;
  --ink-2: #3a372b;
  --muted: #7a7565;
  --accent: oklch(0.72 0.18 35);    /* coral */
  --accent-ink: #1a1a0a;
  --tint-streaks: oklch(0.86 0.12 55);   /* warm peach */
  --tint-pure:    oklch(0.82 0.11 180);  /* soft teal */
  --tint-ai:      oklch(0.78 0.13 300);  /* lilac */
  --tint-ghost:   oklch(0.90 0.01 90);
  --grid: rgba(23,22,15,0.07);
  --card-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 20px 40px -20px rgba(23,22,15,0.18), 0 6px 12px -8px rgba(23,22,15,0.12);
  --card-shadow-hover: 0 1px 0 rgba(0,0,0,0.05), 0 40px 80px -30px rgba(23,22,15,0.35), 0 10px 20px -10px rgba(23,22,15,0.18);
}


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  font-family: "Geist", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ───────── World (draggable canvas) ───────── */
.world {
  position: fixed;
  inset: 0;
  cursor: grab;
  background:
    radial-gradient(circle at center, transparent 0, var(--paper) 100%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  background-attachment: local;
}
.world.grabbing { cursor: grabbing; }

.scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

/* ───────── Cards ───────── */
.card {
  position: absolute;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s cubic-bezier(.2,.9,.3,1.2), box-shadow 0.3s ease;
  cursor: pointer;
  transform-origin: center;
  overflow: hidden;
  border: 1px solid rgba(23,22,15,0.08);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  z-index: 10;
}

.card .label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
}

/* Pin */
.pin {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 -2px 3px rgba(0,0,0,0.15);
  z-index: 3;
}

/* ─── Streaks card (tall polaroid w/ phone mock) ─── */
.card--streaks {
  width: 340px;
  padding: 24px 20px 22px;
  background: var(--paper-2);
  transform: rotate(-4deg);
}
.card--streaks:hover { transform: rotate(-2deg) scale(1.03); }
.card--streaks .frame {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 10px;
  background: var(--tint-streaks);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tiny phone illustration (geometric, non-branded) */
.phone-mock {
  width: 58%;
  aspect-ratio: 9/18;
  background: #1a1a14;
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35);
  transform: rotate(-6deg) translateY(4px);
  position: relative;
}
.phone-mock::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 6px;
  background: #000;
  border-radius: 3px;
}
.phone-mock .screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #f0e8d8 100%);
  border-radius: 16px;
  padding: 16px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.phone-mock .row {
  height: 14px;
  border-radius: 4px;
  background: rgba(23,22,15,0.08);
  display: flex;
  align-items: center;
  padding: 0 5px;
  font-size: 0;
  gap: 3px;
}
.phone-mock .row.done { background: var(--accent); }
.phone-mock .row .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(23,22,15,0.3); }
.phone-mock .row.done .dot { background: var(--accent-ink); }
.phone-mock .row .bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(23,22,15,0.2); }
.phone-mock .row.done .bar { background: rgba(23,22,15,0.5); }

.card--streaks .meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;}
.card--streaks h3 { font-size: 42px; }
.card--streaks p { margin-top: 10px; }

/* ─── Pure Life card (postcard / travel) ─── */
.card--pure {
  width: 380px;
  padding: 0;
  transform: rotate(3deg);
  background: var(--paper-2);
}
.card--pure:hover { transform: rotate(1deg) scale(1.03); }

.postcard-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--tint-pure);
  position: relative;
  overflow: hidden;
}
.stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: rotate(-6deg);
  border: 1px dashed rgba(23,22,15,0.3);
  z-index: 2;
}
.card--pure .body { padding: 22px 24px 26px; }
.card--pure h3 { font-size: 38px; margin-bottom: 8px; }
.card--pure h3 em { font-style: italic; }

/* ─── AI card (wrapped / mysterious) ─── */
.card--ai {
  width: 300px;
  aspect-ratio: 1 / 1.25;
  padding: 24px;
  background: var(--tint-ai);
  color: var(--ink);
  transform: rotate(-6deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.card--ai:hover { transform: rotate(-3deg) scale(1.03); }
.card--ai .orb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.card--ai .orb-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.8), transparent 40%),
    radial-gradient(circle at 60% 70%, oklch(0.6 0.2 320), oklch(0.3 0.15 280));
  filter: blur(0.5px);
  box-shadow: 0 20px 40px -10px rgba(60,30,90,0.4);
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}
.card--ai .tag-row { display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; position: relative;}
.card--ai .tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23,22,15,0.1);
  border: 1px solid rgba(23,22,15,0.15);
}
.card--ai .bottom { position: relative; z-index: 1; }
.card--ai h3 { font-size: 34px; }

/* ─── GitHub card ─── */
.card--github {
  width: 280px;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(5deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: transparent;
  min-height: 340px;
}
.card--github:hover { transform: rotate(3deg) scale(1.03); }

/* ─── Games card (arcade vibes) ─── */
.card--games {
  width: 320px;
  padding: 0;
  transform: rotate(-3deg);
  background: var(--paper-2);
  overflow: hidden;
}
.card--games:hover { transform: rotate(-1deg) scale(1.03); }
.games-screen {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at center, oklch(0.35 0.08 280) 0%, oklch(0.15 0.05 280) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 4px solid #0a0a0a;
}
.games-screen .scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}
.games-screen .games-title {
  font-family: "Geist Mono", monospace;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 12px oklch(0.82 0.19 115 / 0.6), 0 2px 0 #000;
  z-index: 2;
  animation: glowPulse 2.2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 1; }
}
.games-screen .pixels {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; gap: 5px;
  z-index: 2;
}
.games-screen .pixels span {
  width: 10px; height: 10px;
  background: var(--c);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--c);
  animation: pixelBlink 1.6s steps(1) infinite;
}
.games-screen .pixels span:nth-child(2){ animation-delay: 0.2s;}
.games-screen .pixels span:nth-child(3){ animation-delay: 0.4s;}
.games-screen .pixels span:nth-child(4){ animation-delay: 0.6s;}
.games-screen .pixels span:nth-child(5){ animation-delay: 0.8s;}
.games-screen .pixels span:nth-child(6){ animation-delay: 1.0s;}
.games-screen .pixels span:nth-child(7){ animation-delay: 1.2s;}
@keyframes pixelBlink {
  0%, 70% { opacity: 1; }
  70%, 100% { opacity: 0.2; }
}
.card--games .games-body { padding: 18px 22px 22px; }
.card--games h3 { font-size: 34px; }

/* ─── Journey path (SVG behind cards) ─── */
.journey {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.journey path {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  opacity: 0.35;
  animation: dashMove 2.6s linear infinite;
}
.journey .arrowhead {
  fill: var(--ink-2);
  opacity: 0.55;
}
@keyframes dashMove {
  to { stroke-dashoffset: -32; }
}
.journey-label {
  position: absolute;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

/* ─── Ghost / coming-soon cards ─── */
.card--ghost {
  background: transparent;
  border: 2px dashed rgba(23,22,15,0.2);
  box-shadow: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  transition: all 0.3s ease;
}
.card--ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: scale(1.02);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
}
.card--ghost h3 {
  font-size: 28px;
  font-style: italic;
  color: var(--ink-2);
}
.card--ghost .shape {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(23,22,15,0.05);
  margin-bottom: auto;
}
.card--ghost .shape.sq { border-radius: 8px; transform: rotate(12deg); }
.card--ghost .shape.tr {
  background: transparent;
  width: 0; height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43px solid rgba(23,22,15,0.06);
  border-radius: 0;
}

/* ─── Intro card (name/tagline) ─── */
.card--intro {
  width: 520px;
  padding: 38px 40px 34px;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(1.5deg);
  border-color: transparent;
}
.card--intro:hover { transform: rotate(0deg) scale(1.02); }
.card--intro h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 0.92;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.card--intro h1 em { color: var(--accent); font-style: italic; }
.card--intro p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  max-width: 380px;
  line-height: 1.5;
}
.card--intro .tiny {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card--intro .tiny::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,240,90,0.8); }
  50% { box-shadow: 0 0 0 8px rgba(200,240,90,0); }
}

/* ─── Floating sticker / arrow decorations ─── */
.deco {
  position: absolute;
  pointer-events: none;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--ink-2);
}

.squiggle {
  stroke: var(--ink-2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* ───────── Chrome (top bar + minimap + tweaks) ───────── */
.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}
.chrome > * { pointer-events: auto; }

.top-bar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(23,22,15,0.08);
  border-radius: 999px;
  box-shadow: 0 4px 16px -8px rgba(23,22,15,0.15);
  font-family: "Geist", sans-serif;
  font-size: 13px;
}

.top-bar a, .top-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.top-bar a:hover, .top-bar button:hover { background: rgba(23,22,15,0.06); }

.top-bar .sep {
  width: 1px;
  align-self: stretch;
  background: rgba(23,22,15,0.1);
  margin: 4px 2px;
}

.top-bar .dot-accent {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

.top-bar svg { width: 14px; height: 14px; }

/* Minimap */
.minimap {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 170px;
  height: 110px;
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(23,22,15,0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 16px -8px rgba(23,22,15,0.15);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.minimap .mm-surface {
  position: relative;
  width: 100%;
  height: 80px;
  background: rgba(23,22,15,0.03);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}
.mm-dot {
  position: absolute;
  border-radius: 2px;
  background: var(--ink-2);
  opacity: 0.45;
}
.mm-view {
  position: absolute;
  border: 1.5px solid var(--accent);
  background: rgba(200,240,90,0.1);
  border-radius: 3px;
  pointer-events: none;
}

/* Hint */
.hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: hintFade 0.8s ease 2.4s forwards;
}
.hint .key {
  padding: 3px 7px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  font-size: 10px;
}
@keyframes hintFade {
  to { opacity: 1; }
}

/* Zoom controls */
.zoom {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(23,22,15,0.08);
  border-radius: 10px;
}
.zoom button {
  width: 32px; height: 32px;
  border: 0; background: transparent;
  color: var(--ink); cursor: pointer;
  border-radius: 6px; font-size: 16px;
  font-family: "Geist Mono", monospace;
}
.zoom button:hover { background: rgba(23,22,15,0.06); }

/* ───────── Intro overlay ───────── */
.intro {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  overflow: hidden;
  cursor: pointer;
}
.intro.done { opacity: 0; pointer-events: none; transition: opacity 0.7s ease; }

.intro-name {
  font-family: "Instrument Serif", serif;
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
  animation: nameSlideIn 0.9s cubic-bezier(.2,.9,.3,1.1) both;
}
.intro-name em {
  font-style: italic;
  color: var(--accent);
}
@keyframes nameSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cursor-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.big-cursor {
  width: 160px;
  height: 192px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18));
  animation: cursorFloat 3.4s ease-in-out infinite, cursorNudge 5s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes cursorFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes cursorNudge {
  0%, 70%, 100% { filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18)); }
  80%           { filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18)) drop-shadow(0 0 0 var(--accent)); }
  85%           { filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18)) drop-shadow(0 0 12px var(--accent)); }
  90%           { filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18)); }
}
.cursor-label {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 34px;
  color: var(--ink);
  animation: labelPulse 2s ease-in-out infinite;
  letter-spacing: -0.01em;
}
.cursor-label::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: var(--accent);
  margin: 6px auto 0;
  border-radius: 2px;
}
@keyframes labelPulse {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-2px); }
}
.cursor-ripple {
  position: absolute;
  top: 70px; left: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: ripple 2.6s ease-out infinite;
}
@keyframes ripple {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.4); }
  30%  { opacity: 0.8; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(3); }
}
.intro-text {
  font-family: "Instrument Serif", serif;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
  display: none;
}
.intro-text em { color: var(--accent); font-style: italic; }
.intro-text .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordIn 0.7s cubic-bezier(.2,.9,.3,1.1) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}
.intro-sub {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: wordIn 0.6s ease 2s forwards;
}

/* ───────── Detail overlay ───────── */
.detail {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.detail.open { opacity: 1; pointer-events: auto; }

.detail-panel {
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: 40px;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(.2,.9,.3,1.1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
}
.detail.open .detail-panel { transform: translateY(0) scale(1); }

.detail-panel .eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.detail-panel .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);}
.detail-panel h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 68px;
  line-height: 0.95;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.detail-panel h2 em { font-style: italic; color: var(--accent); }
.detail-panel .lede {
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.detail-panel p { color: var(--ink-2); line-height: 1.6; margin: 0 0 14px; }
.detail-panel ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 22px 0;}
.detail-panel ul li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.detail-panel ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 2px;
  background: var(--accent);
}
.detail-panel .actions {
  display: flex; gap: 10px; margin-top: 28px;
  flex-wrap: wrap;
}
.btn-primary, .btn-ghost {
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23,22,15,0.15);
}
.btn-ghost:hover { background: rgba(23,22,15,0.04); }

.detail-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(23,22,15,0.1);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

.detail-panel .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(23,22,15,0.1);
  border: 1px solid rgba(23,22,15,0.1);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
}
.stat-grid .stat { background: var(--paper); padding: 18px 16px; }
.stat-grid .k {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-grid .v {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  line-height: 1.1;
  margin-top: 4px;
  color: var(--ink);
}

/* ───────── Responsive ───────── */
@media (max-width: 640px) {
  .top-bar { font-size: 11px; padding: 4px;}
  .top-bar a, .top-bar button { padding: 6px 10px; }
  .top-bar .label-text { display: none; }
  .minimap { display: none; }
  .zoom {
    right: auto;
    top: auto;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    border-radius: 999px;
    padding: 4px 8px;
  }
  .zoom button { width: 40px; height: 40px; font-size: 18px; }
  .detail-panel h2 { font-size: 44px; }
  .detail-panel { padding: 28px 22px; }
}
