/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.45rem 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-link:hover { color: #fff; }

.topbar-divider {
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Pastel palette */
  --rose:     #f5ddd0;
  --lavender: #ddd4f0;
  --mint:     #c8eedd;
  --peach:    #fde8cc;
  --sky:      #cce5f5;
  --yellow:   #fdf0c8;

  /* Base */
  --bg:       #fdf8f4;
  --bg-2:     #fffaf6;
  --text:     #3b1f0e;
  --text-mid: #6b3d22;
  --text-muted: #a07050;
  --border:   #eeddd0;
  --accent:   #b8735a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'Nunito', system-ui, sans-serif;
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --shadow-sm:  0 2px 12px rgba(160, 100, 70, 0.10);
  --shadow-md:  0 6px 30px rgba(160, 100, 70, 0.15);
  --shadow-lg:  0 12px 48px rgba(160, 100, 70, 0.18);
  --transition: 0.22s ease;
}

/* ── Dark mode overrides ── */
[data-theme="dark"] {
  --bg:         #1e1e1e;
  --bg-2:       #2a2a2a;
  --border:     #3a3a3a;
  --text:       #f0e6d6;
  --text-mid:   #d4a882;
  --text-muted: #8a6040;
  --accent:     #d4956a;
  --rose:       #4a2510;
  --lavender:   #2a1f40;
  --mint:       #0f3020;
  --peach:      #4a2c10;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:  0 6px 30px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.5);
}

[data-theme="dark"] .navbar {
  background: rgba(30, 30, 30, 0.88);
}

[data-theme="dark"] body,
[data-theme="dark"] {
  background-image: url('bg1.webp'), url('bg1.png'); /* WebP first, PNG fallback */
}

/* ── Light mode: text over image ── */
:root:not([data-theme="dark"]) .hero-title,
:root:not([data-theme="dark"]) .hero-role,
:root:not([data-theme="dark"]) .hero-bio,
:root:not([data-theme="dark"]) .section-title,
:root:not([data-theme="dark"]) .section-subtitle,
:root:not([data-theme="dark"]) .section-eyebrow {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
}

:root:not([data-theme="dark"]) .accent-text {
  color: #ffd89b;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Subtle dark scrim behind sections in light mode so text pops */
:root:not([data-theme="dark"]) .contact,
:root:not([data-theme="dark"]) .spotify-section {
  background: rgba(0,0,0,0.18);
}

[data-theme="dark"] .blob-1 { opacity: 0.18; }
[data-theme="dark"] .blob-2 { opacity: 0.18; }
[data-theme="dark"] .blob-3 { opacity: 0.18; }

[data-theme="dark"] .pin { color: var(--text); }
[data-theme="dark"] .pin-icon { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .btn-outline { background: rgba(255,255,255,0.05); border-color: var(--border); }
[data-theme="dark"] .footer { background: #181818; }

/* Theme toggle icons */
.theme-toggle .icon-light { display: inline; }
.theme-toggle .icon-dark  { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark  { display: inline; }

html { scroll-behavior: smooth; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 245, 230, 0.18);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] body::before {
  background: rgba(8, 12, 22, 0.72);
}

body > * { position: relative; z-index: 1; }

body {
  background: url('bg2.webp') center center / cover no-repeat, url('bg2.png') center center / cover no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }


/* ── Navbar stars ── */
.navbar { overflow: visible; }
.nav-star {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  opacity: 0;
  animation: navTwinkle var(--dur, 2s) ease-in-out var(--delay, 0s) infinite;
  font-style: normal;
  line-height: 1;
  z-index: 0;
}
@keyframes navTwinkle {
  0%, 100% { opacity: 0;   transform: scale(0.4) rotate(0deg);   }
  40%, 60% { opacity: 0.9; transform: scale(1.3) rotate(180deg); }
}

/* ── Button glitter sparkles ── */
.btn { overflow: visible; }
.btn-spark {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  font-style: normal;
  line-height: 1;
  animation: sparkFly 0.65s ease forwards;
  z-index: 20;
}
@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(0,0) scale(1.2); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* ── Background canvas ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure all page content sits above canvas */
.navbar, .hero, .contact, .footer { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 30px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(253, 245, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.navbar.scrolled { border-color: var(--border); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.lang-btn.active {
  background: var(--bg-2);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) { color: var(--text); }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   DECORATIVE BLOBS
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.blob-1 {
  width: 380px; height: 380px;
  background: var(--rose);
  top: -80px; right: -60px;
}

.blob-2 {
  width: 280px; height: 280px;
  background: var(--lavender);
  bottom: 10%; left: -80px;
}

.blob-3 {
  width: 200px; height: 200px;
  background: var(--peach);
  top: 40%; right: 10%;
}

/* ============================================================
   HERO / ABOUT
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 3rem;
  padding: 9rem 5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ── Desktop info card ── */
.hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-card-inner {
  background: rgba(255,255,255,0.6);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .hero-card-inner {
  background: rgba(40,30,20,0.55);
}

.hc-avatar {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  animation: floatAvatar 3s ease-in-out infinite;
}

@keyframes floatAvatar {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hc-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
}

.hc-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--rose);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
}

.hc-divider {
  width: 40px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  margin: 0.25rem 0;
}

.hc-stats {
  display: flex;
  gap: 1.5rem;
  margin: 0.25rem 0;
}

.hc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hc-stat-val { font-size: 1.5rem; }

.hc-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hc-contact {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--peach);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-top: 0.25rem;
  transition: background var(--transition), color var(--transition);
  word-break: break-all;
}

.hc-contact:hover { background: var(--accent); color: #fff; }

.status-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.1s;
  user-select: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48c78e;
  flex-shrink: 0;
  box-shadow: 0 0 6px 2px rgba(72,199,142,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
}

/* Status edit overlay */
.status-edit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.status-edit-overlay.open {
  display: flex;
}
.status-edit-box {
  background: var(--card-bg, #1a1f2e);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.5rem;
  width: min(340px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-edit-box label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-edit-box input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  outline: none;
  box-sizing: border-box;
}
.status-edit-box input:focus {
  border-color: #48c78e;
}
.status-swatches {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.2); }
.swatch.selected { border-color: #fff; transform: scale(1.15); }

.swatch-green  { background: #48c78e; }
.swatch-cyan   { background: #00d4ff; }
.swatch-purple { background: #b07aff; }
.swatch-pink   { background: #ff6eb4; }
.swatch-orange { background: #ffaa40; }
.swatch-red    { background: #ff5c5c; }
.swatch-silver { background: #c8d6e5; }

.status-changepw-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-align: left;
  margin-top: 0.25rem;
}
.status-changepw-toggle:hover { color: rgba(255,255,255,0.7); }

.status-edit-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.status-edit-actions button {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.status-save-btn { background: #48c78e; color: #fff; }
.status-cancel-btn { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.2s;
}

.accent-text { color: var(--accent); }

.hero-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 1.5em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.3s;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.4s;
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.5s;
}

/* Equal-width buttons */
.hero-cta .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { box-shadow: var(--shadow-lg); opacity: 0.9; }

.btn-outline {
  background: rgba(255,255,255,0.9);
  color: var(--text-mid);
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.btn-outline:hover {
  border-color: transparent;
  color: var(--accent);
  background: #fff;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: 5rem 3rem 6rem;
  position: relative;
}

.section-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 3rem;
}

/* ── Pinterest pin grid ── */
.pin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
}

.pin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.pin:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

/* Per-card pastel backgrounds */
.pin[data-color="rose"]     { background: var(--rose); }
.pin[data-color="lavender"] { background: var(--lavender); }
.pin[data-color="mint"]     { background: var(--mint); }
.pin[data-color="peach"]    { background: var(--peach); }

.pin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  flex-shrink: 0;
}

.pin-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pin-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.pin-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.pin-arrow {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 1.1rem;
  color: rgba(0,0,0,0.25);
  transition: transform var(--transition), color var(--transition);
}

.pin:hover .pin-arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2rem 3rem;
  background: #fdf0e6;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-stack {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ============================================================
   FLOATING COMPANIONS
   ============================================================ */
.cmp-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: auto;
  z-index: 9999;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.cmp-icon {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 28px;
  line-height: 1;
  display: block;
  user-select: none;
}

#cstar {
  color: #fff;
  text-shadow: 0 0 8px #fff, 0 0 18px #fff;
  animation: cstarGlow 2s ease-in-out infinite;
}

#cjup {
  font-size: 28px;
  animation: cjupGlow 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #f5c518) drop-shadow(0 0 14px #f5c518);
}

@keyframes cstarGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1)    rotate(0deg);   opacity: 0.8;
             text-shadow: 0 0 6px #fff, 0 0 14px #fff; }
  50%       { transform: translate(-50%, -50%) scale(1.3)  rotate(180deg); opacity: 1;
             text-shadow: 0 0 12px #fff, 0 0 28px #fff, 0 0 48px #fff; }
}

@keyframes cjupGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85;
             filter: drop-shadow(0 0 5px #f5c518) drop-shadow(0 0 12px #f5c518); }
  50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 1;
             filter: drop-shadow(0 0 10px #f5c518) drop-shadow(0 0 26px #f5c518); }
}

/* Jupiter orbital ring */
.cjup-ring {
  position: absolute;
  top: 0; left: 0;
  width: 52px; height: 18px;
  border: 2px solid #f5c518;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(0deg);
  animation: ringOrbit 2.8s linear infinite;
  pointer-events: none;
  opacity: 0.7;
  box-shadow: 0 0 4px #f5c518, 0 0 10px #f5c518;
}

@keyframes ringOrbit {
  from { transform: translate(-50%, -50%) rotateX(62deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(62deg) rotateZ(360deg); }
}

#cmoon {
  font-size: 28px;
  animation: cmoonGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #c8d8ff) drop-shadow(0 0 14px #8899dd);
}

@keyframes cmoonGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85;
             filter: drop-shadow(0 0 5px #c8d8ff) drop-shadow(0 0 12px #8899dd); }
  50%       { transform: translate(-50%, -50%) scale(1.14); opacity: 1;
             filter: drop-shadow(0 0 10px #ddeeff) drop-shadow(0 0 22px #aabbff); }
}

/* Kuromi label offset */
#ckuromi-wrap .cmp-label {
  left: 10px;
}

/* Kuromi companion */
#ckuromi {
  animation: none; /* glow lives on the img */
}
#ckuromi img {
  height: 52px;
  width: auto;
  display: block;
  animation: ckuromiGlow 3.2s ease-in-out infinite;
  transform-origin: center bottom;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: none;   /* pass all touches to parent — kills iOS image save menu */
}

/* Long-press activation flash */
#ckuromi-wrap.kuromi-activating #ckuromi img {
  animation: kuromiActivate 0.32s ease forwards;
}
@keyframes kuromiActivate {
  0%   { filter: drop-shadow(0 0 8px #d878a8);  transform: translate(-50%,-50%) scale(1);    }
  50%  { filter: drop-shadow(0 0 26px #b85888) drop-shadow(0 0 42px #8848b8); transform: translate(-50%,-50%) scale(1.22); }
  100% { filter: drop-shadow(0 0 14px #9868c8); transform: translate(-50%,-50%) scale(1.1);  }
}

@keyframes ckuromiGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px #d080a8) drop-shadow(0 0 11px #9858883a);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.07);
    filter: drop-shadow(0 0 8px #e090b8) drop-shadow(0 0 18px #a06898) drop-shadow(0 0 30px #8050a048);
    opacity: 1;
  }
}

/* Flying ships */
.flyship {
  position: fixed;
  font-size: 30px;
  z-index: 8000;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.65));
  will-change: transform, opacity;
}

.flyship-trail {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 3px 1px rgba(255,255,255,0.35), 0 0 6px 2px rgba(255,210,120,0.18);
  z-index: 7999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease-out;
  will-change: opacity;
}

.cmp-label {
  position: absolute;
  left: 0;
  top: 32px;
  display: inline-block;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-family: var(--font-sans);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  letter-spacing: 0;           /* remove letter-spacing — it shifts visual center on longer words */
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  animation: cmpLabelFadeIn 1.2s ease 2.5s forwards;
}

@keyframes cmpLabelFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 0.85; transform: translateX(-50%) translateY(0); }
}

.cmp-bubble {
  position: fixed;
  top: 0; left: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transform: translateY(4px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cmp-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SPOTIFY SECTION
   ============================================================ */
.spotify-section {
  padding: 4rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.spotify-title {
  margin-bottom: 1.8rem;
}

.spotify-wrap {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.18),
              0 8px 40px rgba(29, 185, 84, 0.12),
              0 2px 12px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;
}

.spotify-wrap:hover {
  box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.4),
              0 12px 50px rgba(29, 185, 84, 0.22),
              0 4px 18px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   WHO MODAL
   ============================================================ */
.who-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.who-overlay.open { opacity: 1; pointer-events: all; }

.who-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(580px, 92vw);
  min-height: 320px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  z-index: 9001;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  padding: 2.5rem 2rem 2rem;
}
.who-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

[data-theme="dark"] .who-modal {
  background: rgba(20, 20, 30, 0.55);
  border-color: rgba(255,255,255,0.1);
}

.who-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none; border: none;
  font-size: 1rem; cursor: pointer;
  color: var(--text-muted);
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.who-close:hover { background: var(--border); color: var(--text); }

.who-body {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 0.75rem;
}

.projects-body {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.project-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.project-card:hover { background: rgba(0,0,0,0.08); }

a.project-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.project-card:hover { transform: translateY(-1px); }

[data-theme="dark"] .project-card { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .project-card:hover { background: rgba(255,255,255,0.08); }

.project-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; }

.project-info { display: flex; flex-direction: column; gap: 0.3rem; }

.project-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.project-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.project-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--peach);
  color: var(--accent);
  letter-spacing: 0.03em;
}

[data-theme="dark"] .project-tags span {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
}

/* Force readable text inside modals regardless of theme */
.who-modal .project-title { color: #1a1a2e; }
.who-modal .project-desc  { color: #3a3a4a; }
.who-modal .project-tags span { background: rgba(0,0,0,0.08); color: #3a3a4a; }
.who-modal .project-card  { border-color: rgba(0,0,0,0.1); }

[data-theme="dark"] .who-modal .project-title { color: #f0e6d6; }
[data-theme="dark"] .who-modal .project-desc  { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .who-modal .project-tags span { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
[data-theme="dark"] .who-modal .project-card  { border-color: rgba(255,255,255,0.1); }

/* ============================================================
   CHANGELOG
   ============================================================ */
.changelog-hero-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 0;
  margin-top: 28px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.changelog-hero-link:hover {
  opacity: 1;
  color: var(--accent);
}

.changelog-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 8000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.changelog-overlay.open { opacity: 1; pointer-events: all; }

/* ── Language WIP overlay ─────────────────────────────────────── */
.lang-wip-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 30, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lang-wip-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.lang-wip-content {
  text-align: center;
  padding: 2rem;
}
.lang-wip-text {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.lang-wip-sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
}
.lang-wip-close {
  margin-top: 1.6rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #fff;
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.15s;
  touch-action: manipulation;
}
.lang-wip-close:active {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0.96);
}

.changelog-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 8001;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.changelog-panel.open { transform: translateX(0); }

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.changelog-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 700;
}
.changelog-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.changelog-close:hover { color: var(--text); }

.changelog-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border);
}

.changelog-list li {
  position: relative;
  padding: 0 0 1.6rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 0.5rem;
}

.cl-dot {
  position: absolute;
  left: -5px;
  top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.cl-dot--first { background: var(--text-muted); }

.cl-date {
  grid-column: 1;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.cl-text {
  grid-column: 2;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}

/* ============================================================
   FLOATING ISLAND
   ============================================================ */
#island-widget {
  position: fixed;
  left: -30px;
  top: 50%;
  background: none;
  border: none;
  padding: 0;
  transform: translateY(-50%);
  z-index: 5000;
  display: block;
  text-decoration: none;
  cursor: pointer;
  animation: isleFloat 4s ease-in-out infinite;
  transition: filter 0.3s ease;
}

#island-canvas {
  display: block;
  background: transparent;
}

#island-widget:hover {
  filter: brightness(1.12) drop-shadow(0 0 18px rgba(180,220,120,0.25));
}

@keyframes isleFloat {
  0%, 100% { transform: translateY(-50%) translateY(0px); }
  50%       { transform: translateY(-50%) translateY(-9px); }
}

/* ── Vinyl widget ── */
#vinyl-widget {
  position: fixed;
  left: -8px;
  top: calc(50% + 80px);
  background: none;
  border: none;
  padding: 0;
  z-index: 5000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(
    #1a1a1a 0deg, #2a2a2a 30deg, #111 60deg, #222 90deg,
    #1a1a1a 120deg, #2a2a2a 150deg, #111 180deg, #222 210deg,
    #1a1a1a 240deg, #2a2a2a 270deg, #111 300deg, #222 330deg, #1a1a1a 360deg
  );
  box-shadow: 0 0 10px rgba(0,0,0,0.6), inset 0 0 6px rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vinylSpin 4s linear infinite;
  transition: filter 0.3s, box-shadow 0.3s;
}

.vinyl-disc::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #c8a96e, #8b6914);
  box-shadow: 0 0 6px rgba(200,169,110,0.5);
}

.vinyl-label {
  position: relative;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  z-index: 1;
  margin-top: 18px;
}

#vinyl-widget:hover .vinyl-disc {
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(200,169,110,0.5));
  box-shadow: 0 0 18px rgba(200,169,110,0.3);
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Sukiyaki widget ── */
#sukiyaki-widget {
  position: fixed;
  left: -8px;
  top: calc(50% + 144px);   /* sits just below the vinyl disc */
  background: none;
  border: none;
  padding: 0;
  z-index: 5000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sukiyaki-disc {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    #7a2a10 0%, #4a1508 55%, #2a0a04 100%);
  box-shadow: 0 0 10px rgba(180,60,10,0.55), inset 0 0 6px rgba(255,160,80,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s, box-shadow 0.3s;
  overflow: visible;
}

.sukiyaki-icon {
  font-size: 26px;
  position: relative;
  z-index: 1;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* Steam wisps */
.steam {
  position: absolute;
  bottom: calc(100% + 2px);
  width: 5px;
  border-radius: 5px;
  background: rgba(255, 245, 235, 0.75);
  filter: blur(1.5px);
  animation: steamRise 2s ease-in infinite;
  pointer-events: none;
}
.steam-1 { left: 28%; height: 14px; animation-delay: 0s;    animation-duration: 1.9s; }
.steam-2 { left: 48%; height: 20px; animation-delay: 0.55s; animation-duration: 2.1s; }
.steam-3 { left: 66%; height: 12px; animation-delay: 1.1s;  animation-duration: 1.8s; }

@keyframes steamRise {
  0%   { opacity: 0;   transform: translateY(0)     skewX(0deg)  scaleX(1);   }
  15%  { opacity: 0.9; }
  50%  { opacity: 0.6; transform: translateY(-18px)  skewX(6deg)  scaleX(1.3); }
  100% { opacity: 0;   transform: translateY(-44px)  skewX(-5deg) scaleX(1.6); }
}

#sukiyaki-widget:hover .sukiyaki-disc {
  filter: brightness(1.35) drop-shadow(0 0 10px rgba(220,90,20,0.55));
  box-shadow: 0 0 18px rgba(200,70,10,0.45);
}

/* ── Vinyl "available soon" toast ── */
.vinyl-toast {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(20, 8, 40, 0.88);
  color: #e8c8ff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(200, 120, 255, 0.35);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(160, 60, 255, 0.3);
}
.vinyl-toast::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20, 8, 40, 0.88);
  border-bottom: none;
}
.vinyl-toast.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 8px));
}

/* Tree toast: arrow points left, no vertical translate override */
.tree-toast {
  transform: translateY(-50%) !important;
  max-width: 220px;
  white-space: normal;
  text-align: left;
}
.tree-toast.show {
  opacity: 1;
  transform: translateY(-50%) !important;
}
.tree-toast::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(20, 8, 40, 0.88);
  border-left: none;
  border-top: none;
  border-bottom: none;
  bottom: auto;
}

/* Island panel */
.island-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 8000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.island-overlay.open { opacity: 1; pointer-events: all; }

.island-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(360px, 92vw);
  background: rgba(10, 18, 12, 0.92);
  border-right: 1px solid rgba(100,200,80,0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 8001;
  padding: 2.5rem 1.8rem 2rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.island-panel.open { transform: translateX(0); }

.island-panel-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none; border: none;
  font-size: 1rem; cursor: pointer;
  color: rgba(255,255,255,0.5);
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.island-panel-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.island-panel-body {
  padding: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Environment panel ── */
.env-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.env-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.env-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.env-updated {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.env-refresh {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, transform 0.3s;
}
.env-refresh:hover { background: rgba(255,255,255,0.15); color: #fff; }
.env-refresh.spinning { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.env-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.env-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.env-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}
.env-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.env-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.env-badge-neutral  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.env-badge-good     { background: #22c55e33; color: #4ade80; }
.env-badge-moderate { background: #eab30833; color: #fbbf24; }
.env-badge-usg      { background: #f9731633; color: #fb923c; }
.env-badge-unhealthy{ background: #ef444433; color: #f87171; }
.env-badge-very     { background: #9333ea33; color: #c084fc; }
.env-badge-caution  { background: #eab30833; color: #fbbf24; }
.env-badge-warning  { background: #f9731633; color: #fb923c; }
.env-badge-danger   { background: #ef444433; color: #f87171; }
.env-badge-extreme  { background: #9333ea33; color: #c084fc; }

.env-news-section { display: flex; flex-direction: column; gap: 0.6rem; }
.env-news-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.env-news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.env-news-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
.env-news-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.env-news-item-summary {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.env-news-item-date {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.2rem;
}
.env-news-loading {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}
.env-error {
  font-size: 0.72rem;
  color: #f87171;
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   TABLET (≤ 960px) — collapse hero to single column
   ============================================================ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 8rem 3rem 4rem;
    text-align: center;
  }
  .hero-cta  { justify-content: center; max-width: 380px; margin: 0 auto; }
  .hero-cta .btn { flex: 1; }
  .status-bar { align-self: center; }
  .hero-bio  { margin-left: auto; margin-right: auto; }
  .hero-card { display: none; }
}

/* ============================================================
   MOBILE (≤ 700px)
   ============================================================ */
@media (max-width: 700px) {
  .navbar { padding: 0.875rem 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.875rem 1.5rem; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-controls { gap: 0.5rem; }
  .lang-btn { padding: 0.2rem 0.45rem; font-size: 0.68rem; }

  .hero {
    padding: 7rem 1.25rem 3.5rem;
    gap: 0;
  }
  .hero-cta { max-width: 100%; }

  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }

  .pin-grid { grid-template-columns: 1fr; max-width: 100%; }

  .contact { padding: 3.5rem 1.25rem; }
  .section-inner { text-align: center; }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem;
  }

  .blob-1 { width: 180px; height: 180px; top: -40px; right: -40px; }
  .blob-2 { width: 130px; height: 130px; }
  .blob-3 { display: none; }

  /* Larger tap targets */
  .btn { padding: 0.9rem 1.6rem; font-size: 1rem; min-height: 48px; }

  /* Safe area for notched phones */
  .footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

/* ── Birthday gate overlay ─────────────────────────────────────── */
#bdGateOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(20,0,30,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#bdGateOverlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
#bdGateBox {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,180,220,0.3);
  border-radius: 28px;
  padding: 36px 28px 28px;
  max-width: 300px;
  width: 88%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(200,80,180,0.3);
}
.bd-lock { font-size: 40px; margin-bottom: 10px; }
.bd-hint {
  color: rgba(255,220,240,0.9);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.bd-hint span { opacity: 0.6; font-size: 12px; }
#bdInputWrap {
  position: relative;
  margin-bottom: 14px;
  cursor: text;
}
#bdHeartDisplay {
  font-size: 28px;
  letter-spacing: 4px;
  min-height: 54px;
  color: #ff6fa3;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,180,220,0.35);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  transition: font-size 0.1s;
  word-break: break-all;
}
#bdRealInput {
  position: fixed;
  left: -9999px;
  top: 50%;
  width: 1px;
  height: 1px;
  font-size: 16px;
  padding: 0; margin: 0;
  border: 0; outline: 0;
  background: transparent;
  color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
#bdError {
  color: #ff6fa3;
  font-size: 13px;
  min-height: 18px;
}
