/* ===========================================================
   WISH ISSUE — Y2K game dev site
   Tokens

   HOW TO CHANGE FONTS (2 steps, both required):
   1) Pick a font at https://fonts.google.com, copy its <link> tag.
   2) Replace BOTH of these:
      a. The Google Fonts <link href="https://fonts.googleapis.com/css2?family=...">
         line in the <head> of EVERY .html file (index, projects,
         resources, connect, favorites, guestbook — all 6).
      b. The matching variable right below in :root — e.g. to swap
         the "VT323" pixel font, change --font-pixel here AND swap
         "VT323" for your new font name in the <link> on every page.
   There are 4 font roles you can swap independently:
      --font-display → big headings (currently "Bungee")
      --font-pixel    → nav links, buttons, tags, retro UI text (currently "VT323")
      --font-body     → paragraphs (currently "Space Grotesk")
      --font-marker   → stickers/badges, hand-drawn accents (currently "Permanent Marker")
   =========================================================== */
:root {
  --white: #ffffff;
  --mist: #f4effc;          /* soft lavender-white section bg */
  --purple: #8a2be2;        /* primary blueviolet */
  --purple-deep: #4b0082;   /* indigo — shadows, headers */
  --ink: #241041;           /* near-black purple text */
  --magenta: #ff4fd8;       /* hot accent — used sparingly */
  --chrome-1: #ffffff;
  --chrome-2: #e3d7ff;
  --chrome-3: #b9a3ec;
  --line: #d9c9fb;

  --font-display: "Bungee", system-ui, sans-serif;
  --font-pixel: "VT323", monospace;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-marker: "Permanent Marker", "Bungee", cursive;

  --artstation: #13141a;
  --youtube: #ff0033;
  --discord: #5865f2;
  --sketchfab: #1caad9;

  --radius-pill: 999px;
  --radius-card: 22px;
  --shadow-glow: 0 8px 30px rgba(138, 43, 226, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================================
   Background sparkle field (decorative, behind content)
   =========================================================== */
.sparkle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sparkle-field span {
  position: absolute;
  color: var(--purple);
  opacity: 0.35;
  font-size: 14px;
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1.15) rotate(15deg); }
}

/* ===========================================================
   Cursor sparkle trail (JS-driven particles)
   =========================================================== */
.cursor-spark {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  color: var(--purple);
  font-size: 14px;
  animation: sparkFade 700ms ease-out forwards;
}
@keyframes sparkFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(90deg) translateY(-14px); }
}

/* ===========================================================
   Chrome liquid-pill navigation
   =========================================================== */
.nav-shell {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  margin-bottom: 8px;
}
.nav-pill {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--chrome-1) 0%, var(--chrome-2) 45%, var(--chrome-3) 70%, var(--chrome-1) 100%);
  background-size: 220% 220%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.9);
  animation: chromeShift 9s ease-in-out infinite;
}
@keyframes chromeShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--purple-deep);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: var(--font-pixel);
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--purple);
  color: var(--white);
}
.nav-itch {
  font-family: var(--font-pixel);
  font-size: 18px;
  background: var(--ink);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
}
.nav-itch:hover { background: var(--magenta); }

.nav-toggle { display: none; }

/* ===========================================================
   Marquee ticker
   =========================================================== */
.marquee {
  overflow: hidden;
  background: var(--purple-deep);
  color: var(--white);
  padding: 8px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-pixel);
  font-size: 20px;
  letter-spacing: 1px;
}
.marquee-track span {
  padding-right: 40px;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .nav-pill { animation: none; }
}

/* ===========================================================
   Sections / layout
   =========================================================== */
main { position: relative; z-index: 1; }

section { padding: 72px 0; }
.section-mist { background: var(--mist); }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--purple-deep);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; max-width: 62ch; }

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 56ch;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  padding: 64px 0 40px;
  text-align: center;
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  margin: 0 0 6px;
  background: linear-gradient(120deg, var(--purple-deep), var(--purple) 40%, var(--magenta) 60%, var(--purple));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chromeShift 6s ease-in-out infinite;
}
.hero-sub {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--purple);
  margin: 0 auto 28px;
}
.hero p.lead { margin-left: auto; margin-right: auto; text-align: center; }

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  font-family: var(--font-pixel);
  font-size: 19px;
  letter-spacing: 0.5px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 2px solid var(--purple-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-solid {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
  color: var(--purple-deep);
}

/* ===========================================================
   Cards / grid — "jewel case" tiles
   =========================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--purple-deep);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: 6px 6px 0 var(--purple);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--purple);
}
.card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  width: 26px;
  height: 26px;
  background: var(--magenta);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.tag {
  font-family: var(--font-pixel);
  font-size: 15px;
  background: var(--mist);
  color: var(--purple-deep);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}
.card-link {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--purple);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ===========================================================
   itch.io embed frame
   =========================================================== */
.itch-embed {
  background: var(--white);
  border: 2px solid var(--purple-deep);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 6px 6px 0 var(--purple);
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}
.itch-embed iframe { border: none; max-width: 100%; }
.embed-note {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--purple);
  background: var(--mist);
  border: 1px dashed var(--purple);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0 0;
}

/* ===========================================================
   Resource list
   =========================================================== */
.res-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--white);
  border: 2px solid var(--purple-deep);
  border-radius: 16px;
  padding: 16px 20px;
}
.res-item:hover { background: var(--mist); }
.res-name { font-family: var(--font-display); font-size: 1rem; color: var(--purple-deep); }
.res-desc { font-size: 0.92rem; margin: 4px 0 0; color: var(--ink); }
.res-visit {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--white);
  background: var(--purple);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
}
.res-visit:hover { background: var(--purple-deep); }

/* ===========================================================
   Guestbook page
   =========================================================== */
.guest-frame-wrap {
  background: var(--white);
  border: 2px solid var(--purple-deep);
  border-radius: var(--radius-card);
  box-shadow: 6px 6px 0 var(--purple);
  padding: 4px;
  overflow: hidden;
}
.guest-frame-wrap iframe {
  width: 100%;
  height: 640px;
  border: none;
  border-radius: 16px;
}
.setup-box {
  margin-top: 28px;
  background: var(--mist);
  border: 1px dashed var(--purple);
  border-radius: 16px;
  padding: 20px 24px;
}
.setup-box h3 { margin-bottom: 10px; }
.setup-box code {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* ===========================================================
   Visitor counter (decorative, Y2K classic)
   =========================================================== */
.counter-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--purple-deep);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}
.counter-digits {
  background: var(--ink);
  color: #baffc9;
  font-family: var(--font-pixel);
  font-size: 20px;
  letter-spacing: 3px;
  padding: 2px 10px;
  border-radius: 6px;
}

/* ===========================================================
   Footer
   =========================================================== */
footer {
  background: var(--purple-deep);
  color: var(--white);
  padding: 40px 0 28px;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-pixel);
  font-size: 17px;
  color: #e3d7ff;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: #cbb8f2;
  text-align: center;
  margin-top: 20px;
}

/* ===========================================================
   Focus states / accessibility
   =========================================================== */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

/* ===========================================================
   Sticker / badge accent (marker font) — used sparingly
   =========================================================== */
.sticker {
  display: inline-block;
  font-family: var(--font-marker);
  font-size: 0.85rem;
  color: var(--white);
  background: var(--magenta);
  padding: 4px 12px;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--purple-deep);
  letter-spacing: 0.5px;
}
.fav-btn.is-saved .sticker { display: inline-block; }

/* ===========================================================
   Thumbnail cards (projects / resources / art)
   =========================================================== */
.thumb-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.thumb-card-body { padding: 20px 22px 22px; }
.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 2px solid var(--purple-deep);
  position: relative;
}
.thumb.thumb-small { aspect-ratio: 21 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.thumb-fallback::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 8px, transparent 8px 16px);
}
.thumb-emoji { font-size: 2.6rem; filter: drop-shadow(2px 2px 0 rgba(36,16,65,0.35)); z-index: 1; }

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.fav-btn {
  font-family: var(--font-pixel);
  font-size: 17px;
  background: var(--white);
  color: var(--purple-deep);
  border: 2px solid var(--purple-deep);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.fav-btn:hover { transform: translateY(-1px); }
.fav-btn.is-saved { background: var(--magenta); color: var(--white); border-color: var(--magenta); }

/* ===========================================================
   Search + filter chips (scales to massive lists)
   =========================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 28px 0 8px;
}
.search-input {
  flex: 1 1 220px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 18px;
  border: 2px solid var(--purple-deep);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
}
.search-input:focus-visible { outline: 3px solid var(--magenta); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-pixel);
  font-size: 16px;
  background: var(--white);
  border: 2px solid var(--purple-deep);
  color: var(--purple-deep);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-transform: lowercase;
}
.chip:hover { background: var(--mist); }
.chip-active { background: var(--purple); color: var(--white); border-color: var(--purple); }

.load-more-row { text-align: center; margin-top: 32px; }
.btn-more {
  font-family: var(--font-pixel);
  font-size: 18px;
  background: var(--white);
  border: 2px solid var(--purple-deep);
  color: var(--purple-deep);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.btn-more:hover { background: var(--purple); color: var(--white); }

.empty-state {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--purple);
  background: var(--mist);
  border: 1px dashed var(--purple);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  grid-column: 1 / -1;
}

/* ===========================================================
   Toast (favorite save feedback)
   =========================================================== */
.wi-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-pixel);
  font-size: 18px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 999;
}
.wi-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===========================================================
   Connect page — social integrations (ArtStation / YouTube / Discord / Sketchfab)
   =========================================================== */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.connect-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius-card);
  color: var(--white) !important;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--purple-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.connect-tile:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--purple-deep); }
.connect-tile .connect-glyph { font-size: 1.8rem; }
.connect-tile h3 { color: var(--white); margin-bottom: 2px; }
.connect-tile p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0; }
.connect-tile.tile-artstation { background: var(--artstation); }
.connect-tile.tile-youtube { background: var(--youtube); }
.connect-tile.tile-discord { background: var(--discord); }
.connect-tile.tile-sketchfab { background: var(--sketchfab); }
.connect-tile.tile-itch { background: var(--purple-deep); }

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.art-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--purple-deep);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--purple);
  transition: transform 0.15s ease;
}
.art-tile:hover { transform: translate(-2px, -2px); }
.art-tile .thumb { aspect-ratio: 1 / 1; border-bottom: 2px solid var(--purple-deep); }
.art-tile-title {
  font-family: var(--font-pixel);
  font-size: 16px;
  padding: 8px 12px;
  margin: 0;
  color: var(--purple-deep);
}

.sketchfab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.sketchfab-embed-wrap {
  border: 2px solid var(--purple-deep);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--purple);
}
.sketchfab-embed-wrap iframe { width: 100%; height: 320px; display: block; border: none; }

.embed-frame-wrap {
  border: 2px solid var(--purple-deep);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--purple);
}
.embed-frame-wrap iframe { width: 100%; display: block; border: none; }

/* ===========================================================
   Favorites page
   =========================================================== */
.favorites-toolbar { display: flex; justify-content: flex-end; margin-top: 8px; }
.btn-clear {
  font-family: var(--font-pixel);
  font-size: 16px;
  background: none;
  border: 1px dashed var(--purple);
  color: var(--purple);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.btn-clear:hover { background: var(--mist); }

/* ===========================================================
   Mascot — "Wishy" the star sprite
   =========================================================== */
.mascot-svg { display: block; }
.mascot-svg.mascot-idle .mascot-body,
.mascot-svg.mascot-idle.mascot-body { transform-origin: 60px 60px; animation: mascotBob 3.4s ease-in-out infinite; }
.mascot-svg .mascot-body { transform-origin: 60px 60px; }
.mascot-svg.mascot-idle .mascot-eye { transform-origin: center; animation: mascotBlink 4.6s ease-in-out infinite; }
.mascot-svg.mascot-idle .mascot-sparkle { transform-origin: 97px 28px; animation: mascotSparkle 3s linear infinite; }
.mascot-svg.mascot-sleepy .mascot-eye { transform: scaleY(0.15); transform-origin: center; }
.mascot-svg.mascot-sleepy .mascot-sparkle { opacity: 0; }
.mascot-svg.mascot-sleepy .mascot-body { animation: mascotSway 5s ease-in-out infinite; transform-origin: 60px 60px; }
/* Custom PNG/GIF mascots (an <img>, not our inline SVG with inner parts) float as a whole image. */
img.mascot-svg.mascot-idle { animation: mascotBob 3.4s ease-in-out infinite; transform-origin: center; }
img.mascot-svg.mascot-sleepy { animation: mascotSway 5s ease-in-out infinite; transform-origin: center; }
/* Hero mascot PNG: animations disabled, image stays static */
.hero-mascot img.mascot-svg { animation: none !important; }
@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
@keyframes mascotSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes mascotBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
@keyframes mascotSparkle {
  0% { transform: rotate(0deg) scale(1); opacity: 0.9; }
  50% { transform: rotate(180deg) scale(1.35); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-svg .mascot-body, .mascot-svg .mascot-eye, .mascot-svg .mascot-sparkle,
  img.mascot-svg { animation: none !important; }
}

/* Floating mascot buddy — fixed corner widget with a speech bubble */
.mascot-buddy {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.mascot-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 4px 10px rgba(36, 16, 65, 0.35)); /* soft grounding shadow instead of a solid circle */
}
.mascot-btn:hover { transform: scale(1.08) rotate(-4deg); }
.mascot-btn:focus-visible { outline: 2px solid var(--purple-deep); outline-offset: 4px; border-radius: 8px; }
.mascot-bubble {
  order: -1;
  max-width: 220px;
  font-family: var(--font-pixel);
  font-size: 17px;
  color: var(--purple-deep);
  background: var(--white);
  border: 2px solid var(--purple-deep);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 4px 4px 0 var(--purple);
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-bottom: 8px;
}
.mascot-bubble.show { opacity: 1; transform: translateY(0) scale(1); }

/* Hero mascot slot (bigger, decorative) */
.hero-mascot { display: flex; justify-content: center; margin: 0 0 8px; }

/* Empty state with mascot */
.empty-state-mascot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state-mascot p { margin: 0; max-width: 46ch; }

@media (max-width: 720px) {
  .mascot-buddy { right: 12px; bottom: 12px; }
  .mascot-bubble { max-width: 170px; font-size: 15px; }
}

/* ===========================================================
   Custom cursor (desktop, fine-pointer devices only)
   =========================================================== */
body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active input,
body.custom-cursor-active .card,
body.custom-cursor-active .chip { cursor: none; }

.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  pointer-events: none;
  z-index: 1000;
}
.custom-cursor svg, .custom-cursor img { display: block; filter: drop-shadow(0 0 6px rgba(138,43,226,0.55)); transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), opacity 0.2s ease; }
.custom-cursor.cursor-hover svg, .custom-cursor.cursor-hover img { transform: scale(1.6) rotate(24deg); }
.custom-cursor.cursor-click svg, .custom-cursor.cursor-click img { transform: scale(0.7); }
.custom-cursor.cursor-hidden { opacity: 0; }

/* ===========================================================
   Scroll reveal
   =========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   Hero title letter pop-in
   =========================================================== */
.hero-title.letters-pop span {
  display: inline-block;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px) scale(0.7) rotate(-6deg);
  animation: letterPop 0.55s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay: calc(var(--i) * 40ms);
}
@keyframes letterPop { to { opacity: 1; transform: none; } }

/* ===========================================================
   Star burst (favorite-save confetti)
   =========================================================== */
.burst-star {
  position: fixed;
  z-index: 998;
  pointer-events: none;
  font-size: 18px;
  animation: burstOut 0.6s ease-out forwards;
}
@keyframes burstOut {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; }
}

/* Subtle extra hover motion on interactive tiles */
.connect-tile:hover { transform: translate(-3px, -3px) rotate(-0.6deg); }
.art-tile:hover { transform: translate(-2px, -2px) rotate(0.6deg); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 720px) {
  .nav-pill { flex-wrap: wrap; border-radius: 26px; }
  .nav-links { order: 3; width: 100%; justify-content: center; padding-top: 6px; }
  section { padding: 52px 0; }
  footer .wrap { flex-direction: column; text-align: center; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}
