/* Home V3: one calm hero with the roadmap map, then a second section for the realities.
   Loaded after dark-preview.css, forms.css and catwall.css, so it only overrides layout. */
.v3 {
  --rainbow-nv: linear-gradient(100deg, #ff453a 0%, #ff9f0a 17%, #ffe900 33%, #64ff00 50%, #00eadb 67%, #008cff 83%, #ff49cf 100%);
  --px: "WC Digits", "Pixelify Sans", monospace;
  --label: "Silkscreen", "WC Digits", "Pixelify Sans", monospace;
  --read: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1400px;
  overflow-x: clip;
}

/* ---- Header: logo, four links, two socials, the radio ---------------------- */
.v3-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  max-width: none; margin: 0; padding: 14px var(--gutter);
  background: rgba(12, 13, 15, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.v3-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rainbow-nv); opacity: .55; }
.v3-header .menu { display: flex; gap: 28px; margin: 0 0 0 12px; padding: 0; border: 0; width: auto; order: 0; }
.v3-header .menu > a, .v3-header .menu > button { font-size: 17px; min-height: 0; padding: 6px 0; }
.v3-header .v3-docs { padding: 4px 10px !important; border: 1px solid transparent; border-image: var(--rainbow-nv) 1; }
.v3-header .socials { margin-left: auto; padding: 0; border: 0; gap: 14px; display: flex; }
.v3-header .social { width: 30px; height: 30px; display: grid; place-items: center; }
.v3-header .social svg { width: 18px; height: 18px; fill: currentColor; }
.v3-header .mini-radio { margin-left: 4px; }

/* ---- Hero: copy left, map right ------------------------------------------ */
.v3-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.45fr); align-items: center;
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vh, 72px) var(--gutter) clamp(56px, 9vh, 96px);
  min-height: calc(100svh - 64px);
}
.v3-copy h1 { margin: 18px 0 20px; font-size: clamp(44px, 4.6vw, 76px); line-height: .98; }
.v3-collection { margin: 0; font: 400 12px/1.6 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.v3-collection b { font-weight: 400; color: var(--text); }
.v3 .hero-lead { font-family: var(--read); font-size: 17px; max-width: 34ch; color: #cfd3d7; margin-top: 18px; }
.v3 .hero-actions { margin-top: 28px; }
.v3-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: 400 10px var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.v3-scroll i { font-style: normal; font-size: 14px; animation: v3-bob 1.6s steps(2) infinite; }
@keyframes v3-bob { 50% { transform: translateY(4px); } }

/* ---- The map (same component as the docs) -------------------------------- */
.map-wrap { position: relative; }
.map { position: relative; line-height: 0; border: 1px solid transparent; border-image: var(--rainbow-nv) 1; box-shadow: 0 30px 80px -30px rgba(0, 234, 219, .25), 0 20px 60px -20px rgba(255, 73, 207, .2); }
.map img { display: block; width: 100%; height: auto; }
.spot { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; transition: backdrop-filter .15s; }
.spot:hover::before, .spot.on::before { -webkit-backdrop-filter: brightness(1.35) saturate(1.35); backdrop-filter: brightness(1.35) saturate(1.35); }
.spot i { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(#ff453a, #ff453a) 0 0/14px 2px, linear-gradient(#ff453a, #ff453a) 0 0/2px 14px,
    linear-gradient(#ffe900, #ffe900) 100% 0/14px 2px, linear-gradient(#ffe900, #ffe900) 100% 0/2px 14px,
    linear-gradient(#00eadb, #00eadb) 0 100%/14px 2px, linear-gradient(#00eadb, #00eadb) 0 100%/2px 14px,
    linear-gradient(#ff49cf, #ff49cf) 100% 100%/14px 2px, linear-gradient(#ff49cf, #ff49cf) 100% 100%/2px 14px;
  background-repeat: no-repeat; filter: drop-shadow(-1px 0 rgba(255, 69, 58, .8)) drop-shadow(1px 0 rgba(0, 234, 219, .8));
  animation: v3-pulse 2.4s ease-in-out infinite; }
.spot:nth-of-type(2) i { animation-delay: -.6s; } .spot:nth-of-type(3) i { animation-delay: -1.2s; } .spot:nth-of-type(4) i { animation-delay: -1.8s; }
@keyframes v3-pulse { 50% { inset: -5px; opacity: .75; } }
.spot.plaza i { opacity: .5; } .spot.plaza:hover i, .spot.plaza.on i { opacity: 1; }
.spot:hover i, .spot.on i { inset: -6px; }
.spot.is-glitch { animation: v3-glitch 420ms steps(2, end); }
@keyframes v3-glitch { 0%, 100% { filter: none; translate: 0 0; } 20% { filter: drop-shadow(-3px 0 #00e4ff) drop-shadow(3px 0 #ff4940); translate: 2px 0; } 45% { filter: drop-shadow(3px 0 #62ff00) drop-shadow(-2px 0 #ff49cf); translate: -2px 0; } 70% { filter: drop-shadow(-2px 0 #ffe600) drop-shadow(2px 0 #00c8ff); translate: 1px 0; } }
.spot .tag {
  position: absolute; top: 100%; left: 0; margin-top: 6px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 6px 9px; white-space: nowrap; text-align: left; line-height: 1.2;
  background: rgba(12, 13, 15, .94); border: 1px solid transparent; border-image: var(--rainbow-nv) 1; box-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
}
.spot.l .tag { left: auto; right: 0; }
.spot.up .tag { top: auto; bottom: 100%; margin: 0 0 6px; }
.spot.plaza .tag { left: 50%; transform: translateX(-50%); }
.spot .tag b { font: 400 9px var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spot .tag strong { font: 700 14px/1.1 var(--px); background: var(--rainbow-nv); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot .tag em { display: none; font: 400 9px var(--label); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: #ffe900; }
.spot:hover .tag em, .spot:focus-visible .tag em { display: block; }
.realm {
  position: absolute; inset: 0; z-index: 5;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 22px 28px; line-height: 1.4;
  background: rgba(8, 9, 10, .84); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.realm[hidden] { display: none; }
.realm-art { width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
.realm.in .realm-art { animation: v3-realm .5s steps(5) both; }
.realm.in .realm-txt { animation: v3-txt .4s .15s both; }
@keyframes v3-realm { 0% { opacity: 0; transform: scale(.7); filter: drop-shadow(-6px 0 #ff453a) drop-shadow(6px 0 #00eadb); } 60% { opacity: 1; transform: scale(1.04) translateX(-3px); filter: drop-shadow(4px 0 #ffe900) drop-shadow(-4px 0 #ff49cf); } 100% { transform: none; } }
@keyframes v3-txt { from { opacity: 0; transform: translateY(8px); } }
.realm-txt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.realm-txt b { font: 400 11px var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.realm-txt strong { font: 700 clamp(24px, 2.6vw, 36px)/1.05 var(--px); background: var(--rainbow-nv); -webkit-background-clip: text; background-clip: text; color: transparent; }
.realm-txt em { font: 400 11px var(--label); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: #ffe900; }
.realm-txt p { margin: 4px 0 0; font: 400 16px/1.5 var(--read); color: #e2e5e8; }
.realm-txt .lock { margin-top: 6px; font: 400 10px var(--label); letter-spacing: .08em; text-transform: uppercase; color: #0c0d0f; background: #ffe900; padding: 4px 7px; }
.realm-txt .lock[hidden] { display: none; }
.realm-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; font: 400 20px/1 var(--label); color: var(--text); background: var(--surface); border: 1px solid transparent; border-image: var(--rainbow-nv) 1; cursor: pointer; }
.realm-art.r-fog { animation: v3-fog 3s steps(1) infinite; }
@keyframes v3-fog { 0%, 86%, 100% { transform: none; opacity: 1; } 88% { transform: translateX(-4px); opacity: .6; } 90% { transform: translateX(3px); } }

/* ---- Second section: the realities you can visit today -------------------- */
.v3-realities { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.v3-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 6vh, 56px); }
.v3-head h2 { margin: 10px 0 12px; font: 700 clamp(34px, 3.6vw, 52px)/1.05 var(--px); }
.v3-head p:not(.eyebrow) { margin: 0; font: 400 17px/1.5 var(--read); color: #b9bec4; }
.v3-cards.destinations { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); padding: 0; max-width: none; }
.v3-cards .card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 16px 24px; text-align: center; background: transparent; border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.v3-cards .card:hover, .v3-cards .card:focus-visible { border-color: transparent; border-image: var(--rainbow-nv) 1; transform: translateY(-4px); }
.v3-cards .district-art { width: min(100%, 220px); }
.v3-cards h3 { margin: 0 0 6px; font: 700 22px/1.15 var(--px); }
.v3-cards p { margin: 0; font: 400 15px/1.5 var(--read); color: #b9bec4; }
.v3-go { display: inline-block; margin-top: 12px; font: 400 11px var(--label); letter-spacing: .08em; text-transform: uppercase; color: #64ff00; }
.v3-go.v3-soon { color: #ffe900; }
.v3-cards :is(.card--whitelist, .card--arcade):not(:hover):not(:focus-visible) .district-art { filter: saturate(.6) brightness(.85); }
.v3-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 5vh, 48px); }
.v3-pill { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; min-width: 230px; text-align: left; background: var(--surface); border: 1px solid var(--line); }
.v3-pill b { font: 700 17px var(--px); }
.v3-pill span { font: 400 13px var(--read); color: var(--muted); }
.v3-pill:hover, .v3-pill:focus-visible { border-color: transparent; border-image: var(--rainbow-nv) 1; }

/* ---- Strip + footer -------------------------------------------------------- */
.v3 .cat-strip { margin: 0; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.v3-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; margin: 0; padding: 18px var(--gutter) 22px; border-top: 1px solid var(--line); }
.v3-foot-socials { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.v3-foot-socials a { color: #c8ccd0; }
.v3-foot-socials a:hover { color: var(--text); text-shadow: -1px 0 #00eadb, 1px 0 #ff49cf; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .v3-hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .v3-cards.destinations { grid-template-columns: repeat(2, 1fr); }
  .v3-scroll { display: none; }
}
@media (max-width: 760px) {
  .v3-header { gap: 14px; flex-wrap: wrap; padding: 10px 16px; }
  .v3-header .menu { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
  .v3-header .menu > a, .v3-header .menu > button { font-size: 15px; }
  .v3-hero { padding: 24px 16px 40px; gap: 24px; }
  .spot:not(.on) .tag { display: none; }
  .realm { position: static; grid-template-columns: 1fr; margin-top: 8px; padding: 16px; background: var(--surface); border: 1px solid transparent; border-image: var(--rainbow-nv) 1; }
  .realm-art { max-width: 240px; margin: 0 auto; }
  .v3-cards.destinations { grid-template-columns: 1fr 1fr; gap: 10px; }
  .v3-cards .card { padding: 14px 8px 18px; }
  .v3-cards p { font-size: 13px; }
  .v3-pill { min-width: 0; width: 100%; }
  .v3-realities { padding: 48px 16px; }
  .v3-footer { padding: 16px; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .spot i, .realm.in .realm-art, .realm.in .realm-txt, .realm-art.r-fog, .v3-scroll i { animation: none; } }
/* round 2: map takes more room; GIPHY mark is a solid block, draw it smaller; footer links */
@media (min-width: 1101px) { .v3-hero { grid-template-columns: minmax(300px, .7fr) minmax(0, 1.6fr); max-width: 1520px; } }
.v3-header .social.giphy svg { width: 15px; height: 18px; }
.v3-foot-socials button { padding: 0; font: inherit; color: #c8ccd0; background: none; border: 0; cursor: pointer; }
.v3-foot-socials button:hover { color: var(--text); text-shadow: -1px 0 #00eadb, 1px 0 #ff49cf; }
.v3-sep { color: var(--line); }
.v3-copy h1 { font-size: clamp(40px, 3.7vw, 64px); }
.v3-copy h1 .hero-line { white-space: nowrap; }
.v3-hero { min-height: calc(100svh - 64px); padding-top: clamp(24px, 4vh, 48px); }
/* round 3 mobile: keep logo + socials on one row, no forced full-screen hero */
@media (max-width: 1100px) { .v3-hero { min-height: 0; } }
@media (max-width: 760px) {
  .v3-header .socials { order: 2; width: auto; margin-left: auto; justify-content: flex-end; gap: 10px; }
  .v3-header .brand { width: 150px; }
  .v3-hero { padding-top: 20px; }
}
/* music toggle (the radio is gone) */
.v3-music { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; margin-left: 4px; color: var(--muted); border: 1px solid var(--line); background: none; cursor: pointer; }
.v3-music svg { width: 15px; height: 15px; fill: currentColor; }
.v3-music .v3-wave { display: none; } .v3-music.is-on .v3-wave { display: inline; } .v3-music.is-on .v3-mute { display: none; }
.v3-music:hover, .v3-music.is-on { color: var(--text); border-color: transparent; border-image: var(--rainbow-nv) 1; }
.v3-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.v3-eq i { width: 2px; height: 2px; background: currentColor; }
.v3-music.is-on .v3-eq i { animation: v3-eq 900ms steps(4, end) infinite; }
.v3-music.is-on .v3-eq i:nth-child(1) { background: #64ff00; } .v3-music.is-on .v3-eq i:nth-child(2) { background: #00eadb; animation-delay: -300ms; } .v3-music.is-on .v3-eq i:nth-child(3) { background: #ff49cf; animation-delay: -600ms; }
@keyframes v3-eq { 0%, 100% { height: 2px; } 25% { height: 10px; } 50% { height: 5px; } 75% { height: 12px; } }
@media (prefers-reduced-motion: reduce) { .v3-music.is-on .v3-eq i { animation: none; height: 7px; } }
@media (max-width: 760px) { .v3-music { order: 2; } }
/* round 4: one-line collection, footer marks next to the names */
.v3-collection { white-space: nowrap; }
.v3-foot-socials { align-items: center; }
.v3-foot-socials a { display: inline-flex; align-items: center; gap: 7px; }
.v3-foot-socials svg { width: 15px; height: 15px; flex: none; }
.v3-foot-socials a[title="X"] svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .v3-collection { white-space: normal; } }

/* audit fixes (Fable): mobile header not sticky, cards side by side, map placeholder, contrast */
@media (max-width: 760px) { .v3-header { position: relative; } .v3-cards .card--pets { grid-column: auto; } }
.map { background: radial-gradient(ellipse at 50% 55%, #1b1f24, #0c0d0f 70%); aspect-ratio: 1672 / 941; }
.v3-collection { color: #cfd3d7; }
/* header socials: all white, same size, glitch + name tag on hover. Order: X, GIPHY, Telegram, TikTok, Instagram */
.v3-header .v3-socials { gap: 6px; }
.v3-soc { position: relative; display: grid; place-items: center; width: 32px; height: 32px; color: #f6f7f5; }
.v3-soc svg { width: 17px; height: 17px; }
.v3-soc[data-label="GIPHY"] svg { width: 15px; height: 18px; }
.v3-soc:hover svg, .v3-soc:focus-visible svg { animation: v3-glitch 420ms steps(2, end); filter: drop-shadow(-1px 0 #00eadb) drop-shadow(1px 0 #ff49cf); }
.v3-soc::after {
  content: attr(data-label); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 4px 7px; font: 400 9px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); background: #0c0d0f; border: 1px solid transparent; border-image: var(--rainbow-nv) 1;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.v3-soc:hover::after, .v3-soc:focus-visible::after { opacity: 1; }
@media (max-width: 760px) { .v3-header .v3-socials { gap: 2px; } .v3-soc { width: 28px; } .v3-soc::after { display: none; } }
.v3-soc::after { top: calc(100% + 22px); z-index: 30; box-shadow: 3px 3px 0 rgba(0,0,0,.55); }
.v3-soc::after { top: calc(100% + 30px); }

/* ---- Option 2: corridor of doors (replaces the card grid) ------------------ */
.v3-corridor { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 8px; border-top: 1px solid var(--line); }
.v3-corridor-head { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.v3-corridor-head h2 { margin: 0; font: 700 clamp(28px, 2.6vw, 40px)/1 var(--px); }
.v3-live { font: 400 10px var(--label); letter-spacing: .1em; text-transform: uppercase; color: #64ff00; padding: 4px 7px; border: 1px solid rgba(100, 255, 0, .4); }
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; gap: clamp(14px, 2.4vw, 36px); }
.door { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; color: var(--text); background: none; border: 0; cursor: pointer; text-align: center; }
.door-art { position: relative; display: block; width: 100%; aspect-ratio: 1; background: radial-gradient(ellipse at 50% 60%, #1b1f24, #111316 70%); border: 1px solid var(--line); overflow: hidden; transition: transform .15s; }
.door-art img { width: 100%; height: 100%; object-fit: contain; padding: 10px; filter: saturate(.55) brightness(.72); transition: filter .15s, transform .15s; image-rendering: pixelated; }
.door:hover .door-art, .door:focus-visible .door-art { border-color: transparent; border-image: var(--rainbow-nv) 1; transform: translateY(-4px); }
.door:hover .door-art img, .door:focus-visible .door-art img { filter: none; transform: scale(1.05); animation: v3-glitch 420ms steps(2, end); }
.door-name { font: 700 19px/1.1 var(--px); }
.door:hover .door-name, .door:focus-visible .door-name { background: var(--rainbow-nv); -webkit-background-clip: text; background-clip: text; color: transparent; }
.led { display: inline-flex; align-items: center; gap: 6px; font: 400 9px var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.led::before { content: ""; width: 6px; height: 6px; background: currentColor; box-shadow: 0 0 6px currentColor; }
.door[data-state="live"] .led { color: #64ff00; }
.door[data-state="soon"] .led { color: #ffe900; }
.door[data-state="soon"] .led::before { animation: v3-blink 1.4s steps(2) infinite; }
@keyframes v3-blink { 50% { opacity: .25; } }
.door-tip { max-width: 22ch; font: 400 13px/1.4 var(--read); color: #b9bec4; }
/* the cat strip is the corridor floor */
.v3 .cat-strip.v3-floor { margin: 18px calc(50% - 50vw) 0; padding: 8px 0 14px; border-top: 0; opacity: 1; }
.v3-floor .cat-strip__viewport { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr 1fr; gap: 14px; }
  .door-tip { font-size: 12px; }
  .v3-corridor { padding: 32px 16px 4px; }
}
@media (prefers-reduced-motion: reduce) { .door[data-state="soon"] .led::before, .door:hover .door-art img { animation: none; } }

/* ---- Hero trimmed (Fable audit): natural height, narrow copy column, bigger map ---- */
.v3-hero { min-height: 0 !important; padding: 36px var(--gutter) 44px; }
@media (min-width: 1101px) { .v3-hero { grid-template-columns: 300px minmax(0, 1fr); max-width: 1560px; gap: 48px; } }
.v3-copy h1 { margin-top: 0; }
.v3 .hero-actions { margin-top: 24px; }
.v3-hint { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 5px 8px; font: 400 10px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: rgba(12, 13, 15, .9); border: 1px solid transparent; border-image: var(--rainbow-nv) 1; animation: v3-blink 1.6s steps(2) infinite; pointer-events: none; }
.map-wrap.is-open .v3-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .v3-hint { animation: none; } }
.v3-collection { white-space: normal; } .v3-collection b, .v3-collection span { display: block; white-space: nowrap; } .v3-collection span { color: var(--muted); }
/* doors always lit; hover still lifts, glitches and frames in rainbow */
.door-art img { filter: none; }

/* ---- One column grid for everything: header, hero, corridor and footer share the same edges ---- */
.v3 { --wide: 1560px; --edge: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); }
.v3-header, .v3-footer { padding-inline: var(--edge); }
.v3-hero, .v3-corridor { max-width: none; padding-inline: var(--edge); }
@media (min-width: 1101px) { .v3-hero { grid-template-columns: 360px minmax(0, 1fr); max-width: none; } }
/* the title never runs into the map: it sizes to its 360 px column */
.v3-copy h1 { font-size: clamp(40px, 3.6vw, 60px); }
.v3 { --edge: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))); }
.v3 main { display: block; } .v3-hero, .v3-corridor { width: 100%; min-width: 0; box-sizing: border-box; } .map-wrap { min-width: 0; }
/* live Codex Pets on the plaza, under the doors */
.plaza-cats { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pcat { position: absolute; aspect-ratio: 96 / 104; background-size: 1700% 100%; background-repeat: no-repeat; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.pcat.is-glitch { animation: v3-glitch 420ms steps(2, end); }
.map .spot { z-index: 1; }
.v3-hint { display: inline-flex; align-items: center; gap: 7px; }
.v3-hint svg { width: 10px; height: 12px; }
/* "Pick a reality": the site's text glitch on hover and now and then on its own; doors flicker too */
@keyframes v3-title-glitch {
  0%, 100% { transform: none; clip-path: none; text-shadow: none; }
  20% { transform: translateX(-3px); clip-path: inset(0 0 55% 0); text-shadow: 3px 0 #00eadb, -3px 0 #ff49cf; }
  40% { transform: translateX(3px); clip-path: inset(45% 0 0 0); text-shadow: -3px 0 #ffe900, 3px 0 #ff453a; }
  60% { transform: translateX(-1px); clip-path: none; text-shadow: 2px 0 #64ff00, -2px 0 #008cff; }
}
.v3-corridor-head h2:hover, .v3-corridor-head h2.is-glitch { animation: v3-title-glitch 460ms steps(2, end); background: var(--rainbow-nv); -webkit-background-clip: text; background-clip: text; color: transparent; }
.door.is-glitch .door-art img { animation: v3-glitch 420ms steps(2, end); }
.door.is-glitch .door-art { border-color: transparent; border-image: var(--rainbow-nv) 1; }
@media (prefers-reduced-motion: reduce) { .v3-corridor-head h2:hover, .v3-corridor-head h2.is-glitch, .door.is-glitch .door-art img { animation: none; } }
@media (max-width: 760px) { .v3-music { height: 36px; min-width: 44px; justify-content: center; } }
.door-chip { margin-top: -4px; font: 400 9px var(--label); letter-spacing: .08em; text-transform: uppercase; color: #cfd3d7; }
.map-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; image-rendering: pixelated; }

/* UX fixes: chapter list under the map on phones */
.map-list { display: none; }
@media (max-width: 760px) {
  .map-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 0; }
  .map-list button { min-height: 44px; padding: 8px 10px; text-align: left; font: 600 14px/1.2 var(--px); color: var(--text); background: var(--surface); border: 1px solid var(--line); }
  .map-list button b { display: block; font: 400 9px var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .v3-hint { display: none; }
}
.v3 .map{background-image:url(data:image/webp;base64,UklGRkgDAABXRUJQVlA4IDwDAABQDgCdASo4ACAAPp06lkmloyIhN+gAsBOJbACdMoQQFmfAWfTwF9s95gPOb88DfE95J/v1ACZPVAjm5woqB7Pn3voqlx/651/m4u59u2r0NXycyNHHnwzadJqQDDlTnysKlzdLY6iKdpWgWwP+KUZLlPvXCaRsfpgsmAAA/vbSO0YUcoeo5qwP9GWsxWOgLHMOQqpzyj5s56r3r12HbT9pDp3KAiQNvpMfGJp3ZvVmFp3nHWqR2RYH6e+ijsrUPySkTdwJo08KjRXKsBuHIbfNVnFM4MCpsPOKCA2tyTe3FskSLqeu7yTzeWLnAEO/krcatH+78OpogEi76SiJHDwCVJmQSTCrY67mCesNFFSBSdXw83PnhddKRgtTsLCCOUzr6/XR135S3/ZXRnMfng5Vmej0aNNKPc/eBVbEDn3BQd/cSb7DxwKZVtG5wjbhX6joSP7+001jjJtxd5EMZqddmwE5NluAj6TqedKei6F9FvusIeKNUub9olO00eCRVkfMe5q1clAMq0TpfOxGK6VCFWfipb4xkBI18AzbRhGK3x18Ba33rPYFyrar3sFw89XUjvI8kuGBw4DO+NxV9eBHc4Brhwm+65mfRWpRzf8EzACMVcky3s9NSG7Ok7rS8+9xisV23vPrIkA9NWMzsBC+IQGoadyKiRJYLTdZQI76sms1pj2bDEFgEU0XnZC8vQVva05i0by/Zl7QW1+xHdPPkAplxYiuKuQRnzJFCpzU39YZ7YT88/ORV8c9Nv/AOf3d85aKPfXN+RaY4PxCGA1poDuCrAFregkYDmQ1MDTVTsCwZDUq10vjx4wIM4ENDlEASnhq5mtcsxwuQjUFanicgI6hNCyH00ZYjhTED/viDNLWq+UJ3oKVpZOuY/HXNdtxXWbFkur1R3pnq81TgEdj/3fslXB+FbHi6xPybGeQqYvjKDeW6TUL45GSeH+8uP8XcZUHb3bKQFR0MOr11O+4ulDJ+VKMr8WCbt2/pFqTGxGswLzEst0yDuhn5eOj6dbmmRyvUfhXaK9thLPBbE0H8rUCpCnGI5rGiB0Z/F4hm4A8jNLoJngi4avdjTFmX4CIwF//I3aLSegAAAA=);background-size:cover;image-rendering:auto}
/* hero: two ways in (Plush Pets first, the District second) */
.v3 .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.v3-cta2 { font-size: 16px; color: var(--text); padding: 8px 0; border-bottom: 1px solid transparent; border-image: var(--rainbow-nv) 1; }
.v3-cta2:hover { text-shadow: -1px 0 #00eadb, 1px 0 #ff49cf; }
@media (min-width: 761px) and (max-width: 1240px) { .v3-header .menu { gap: 18px; } .v3-header .menu > a, .v3-header .menu > button { font-size: 15px; } }
@media (min-width: 1101px) { .v3 .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; } }
/* medium screens: header stays on one row (the music button was dropping to a second line) */
@media (min-width: 761px) and (max-width: 1240px) {
  .v3-header { gap: 14px; flex-wrap: nowrap; }
  .v3-header .brand { width: 160px; flex: none; }
  .v3-header .menu { gap: 14px; margin-left: 4px; }
  .v3-header .menu > a, .v3-header .menu > button { font-size: 14px; white-space: nowrap; }
  .v3-header .v3-socials { gap: 0; }
  .v3-soc { width: 26px; }
  .v3-music { padding: 0 7px; } .v3-music .v3-eq { display: none; }
}
