
:root {
  --bg:          #ffffff;
  --text:        #2a1040;
  --pink:        #F4A0C0;
  --pink-hot:    #FF69B4;
  --pink-dark:   #C06080;
  --pink-pale:   #FFE8F2;
  --cream:       #F8F0E8;
  --gold:        #FFD700;
  --cyan:        #4ECDC4;
  --brown:       #5A3F3F;
  --white:       #F8F8FF;
  --glow-pink:   0 0 8px #F4A0C0, 0 0 22px rgba(244,160,192,0.5);
  --glow-gold:   0 0 8px #FFD700, 0 0 18px rgba(255,215,0,0.4);
  --glow-cyan:   0 0 8px #4ECDC4, 0 0 18px rgba(78,205,196,0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255,75,159,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100vh;
  font-family: 'Fredoka One', 'Comic Sans MS', cursive, sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ================================================
   STACKING ORDER
   blob-field-layer: z-index 1 (physics background)
   content:          z-index 2
   gooey-cursor:     z-index 9995
   sparkles:         z-index 9999
   ================================================ */

.site-header,
.main-content,
.site-footer,
.brand-nav,
.brand-hero,
.content-wrap,
.other-brands {
  position: relative;
  z-index: 2;
}

/* ================================================
   HEADER
   ================================================ */

.site-header {
  text-align: center;
  padding: 2.5rem 2rem 0.75rem;
}

.site-logo {
  height: 60px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(244,160,192,0.6));
}

.site-logo:focus,
.site-logo:focus-visible,
a:has(.site-logo):focus,
a:has(.site-logo):focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
  border-radius: 50%;
}

.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3.5vw, 2.6rem);
  color: var(--pink);
  text-shadow: var(--glow-pink), 4px 4px 0 var(--pink-dark);
  letter-spacing: 2px;
  line-height: 1.5;
}

.dot-net {
  color: var(--gold);
  text-shadow: var(--glow-gold), 4px 4px 0 #8B6800;
}

.site-tagline {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.45rem;
  color: var(--cyan);
  letter-spacing: 4px;
  margin-top: 0.6rem;
  text-shadow: var(--glow-cyan);
  animation: pulse-text 3.5s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ================================================
   MAIN SPLATTER LAYOUT
   ================================================ */

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem 1.5rem;
  width: 100%;
}

.splatter-stage {
  position: relative;
  width:  min(92vw, 580px);
  height: min(92vw, 580px);
}

.splash-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* min() enforces a square regardless of container/viewport aspect ratio —
     aspect-ratio alone can stretch a canvas element on some Safari versions */
  width:  min(75%, 70vh);
  height: min(75%, 70vh);
  display: block;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
}

.splatter-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ================================================
   BRAND ITEMS
   ================================================ */

.brand-item {
  position: absolute;
  transform: translate(-50%, -50%);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.brand-visual {
  position: relative;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 3.4s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  filter: drop-shadow(0 5px 14px rgba(0,0,0,0.65));
}

.brand-item:hover .brand-visual {
  transform: scale(1.14) rotate(-4deg);
  animation-play-state: paused;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.35))
          drop-shadow(0 0 18px rgba(255,75,159,0.55));
}

.brand-visual svg { display: block; }

/* specificity (0,2,0) beats .brand-visual svg (0,1,1) — keeps hover hidden */
.brand-visual .b-default { display: block; }
.brand-visual .b-hover   { display: none;  }

.brand-item:hover .brand-visual .b-default { display: none;  }
.brand-item:hover .brand-visual .b-hover   { display: block; }

/* — Individual sizes & positions — */

#brand-ha              { top: 30%; left: 30%; }
#brand-ha .brand-visual svg { width: 128px; height: 128px; }

#brand-lpr             { top: 48%; left: 72%; }
#brand-lpr .brand-visual svg { width: 108px; height: 108px; }

#brand-pf              { top: 76%; left: 50%; }
#brand-pf .brand-visual svg  { width: 148px; height: 106px; }

#brand-hamru           { top: 25%; left: 50%; }
#brand-hamru .brand-visual svg { width: 110px; height: 118px; }

#brand-bd              { top: 30%; left: 67%; }
#brand-bd .brand-visual svg   { width: 120px; height: 100px; }

#brand-ascii           { top: 50%; left: 23%; }
#brand-ascii .brand-visual svg { width: 152px; height: 84px; }

/* Brand labels (appear on hover) */

.brand-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.52rem;
  color: white;
  background: rgba(30, 10, 30, 0.82);
  border: 1px solid rgba(244,160,192,0.4);
  padding: 3px 7px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.7;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.brand-item:hover .brand-label {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   FLOAT ANIMATION
   ================================================ */

@keyframes float {
  0%, 100% { transform: translateY(0px)   rotate(0deg);  }
  33%       { transform: translateY(-8px)  rotate(1.5deg); }
  66%       { transform: translateY(-3px)  rotate(-1deg); }
}

/* ================================================
   INTERACTIVE BLOB FIELD (injected by JS as <canvas>)
   All styles set inline by JS; nothing needed here.
   ================================================ */

/* ================================================
   GOOEY CURSOR TRAIL (injected by JS)
   The SVG feColorMatrix threshold merges overlapping
   blobs into organic shapes — no background needed.
   ================================================ */

.gooey-cursor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9995;
  filter: url(#cursor-goo);
}

.gooey-blob {
  position: absolute;
  border-radius: 50%;
  background: #FF4B9F;
  transform: translate(-50%, -50%);
  animation: goo-fade 0.95s ease-out forwards;
}

@keyframes goo-fade {
  0%   { opacity: 1;   transform: translate(-50%, -50%) scale(1);    }
  60%  { opacity: 0.9; transform: translate(-50%, -50%) scale(0.85); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.15); }
}

/* sparkle trail removed */

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  text-align: center;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(244,160,192,0.4);
  width: 100%;
  max-width: 640px;
}

.footer-stars {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.deco-star {
  color: var(--gold);
  text-shadow: var(--glow-gold);
  font-size: 1.1rem;
  animation: twinkle 2.2s ease-in-out infinite;
}
.deco-star:nth-child(2) { animation-delay: 0.44s; color: var(--pink); text-shadow: var(--glow-pink); }
.deco-star:nth-child(3) { animation-delay: 0.88s; }
.deco-star:nth-child(4) { animation-delay: 1.32s; color: var(--cyan);  text-shadow: var(--glow-cyan); }
.deco-star:nth-child(5) { animation-delay: 1.76s; }

@keyframes twinkle {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.3; transform: scale(0.75); }
}

.visitor-counter {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.25rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  text-shadow: var(--glow-cyan);
}

.vcount-num {
  display: inline-block;
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.55);
  padding: 0 8px;
  letter-spacing: 5px;
}

.best-viewed {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 0.95rem;
  color: rgba(42,16,64,0.35);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.copyright {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 0.9rem;
  color: rgba(42,16,64,0.3);
  letter-spacing: 1px;
}

/* ================================================
   BRAND PAGES — shared styles
   ================================================ */

body.brand-page {
  --accent:       #F4A0C0;
  --accent-dark:  #C06080;
  --accent-pale:  #FFE8F2;
  --accent-glow:  0 0 10px var(--accent), 0 0 24px rgba(244,160,192,0.4);
}

body.brand-hamster-angels  { --accent: #FFD700; --accent-dark: #8B6800; --accent-pale: #FFF8DC; --accent-glow: 0 0 10px #FFD700, 0 0 24px rgba(255,215,0,0.4); }
body.brand-low-poly-rodents{ --accent: #4ECDC4; --accent-dark: #2A7E78; --accent-pale: #E0FAFA; --accent-glow: 0 0 10px #4ECDC4, 0 0 24px rgba(78,205,196,0.4); }
body.brand-prehistoric-fish{ --accent: #9AAC8E; --accent-dark: #4A5C3E; --accent-pale: #EEF3E8; --accent-glow: 0 0 10px #9AAC8E, 0 0 24px rgba(154,172,142,0.4); }
body.brand-hamru           { --accent: #FFAA33; --accent-dark: #8B5A00; --accent-pale: #FFF3DC; --accent-glow: 0 0 10px #FFAA33, 0 0 24px rgba(255,170,51,0.4); }
body.brand-billy-daisy     { --accent: #C8A8E8; --accent-dark: #6A4A98; --accent-pale: #F0E8FC; --accent-glow: 0 0 10px #C8A8E8, 0 0 24px rgba(200,168,232,0.4); }
body.brand-ascii-aquarium  { --accent: #00FF88; --accent-dark: #008844; --accent-pale: #E0FFF2; --accent-glow: 0 0 10px #00FF88, 0 0 24px rgba(0,255,136,0.4); }

.brand-page .brand-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.brand-page .back-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  text-shadow: var(--accent-glow);
  letter-spacing: 0.5px;
}
.brand-page .back-btn:hover {
  background: var(--accent);
  color: #fff;
  text-shadow: none;
}

.brand-page .brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem 2rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.brand-page .hero-mascot {
  filter: drop-shadow(0 12px 36px rgba(0,0,0,0.7))
          drop-shadow(0 0 28px var(--accent));
  animation: float 3.8s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

.brand-page .brand-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 4vw, 2.2rem);
  color: var(--accent);
  text-shadow: var(--accent-glow), 4px 4px 0 var(--accent-dark);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.brand-page .brand-tagline {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: rgba(42,16,64,0.6);
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

/* Content blob panels */

.brand-page .content-wrap {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-page .blob-panel {
  background: rgba(42,16,64,0.03);
  border: 2px solid rgba(42,16,64,0.1);
  border-radius: 24px;
  padding: 1.6rem 2rem;
  position: relative;
}

.brand-page .blob-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  border: 2px solid var(--accent);
  opacity: 0.3;
}

.brand-page .panel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: var(--accent-glow);
}

.brand-page .panel-body {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(42,16,64,0.8);
}

/* Gallery placeholder grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.gallery-placeholder {
  aspect-ratio: 1;
  background: rgba(42,16,64,0.03);
  border: 2px dashed rgba(42,16,64,0.18);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(42,16,64,0.3);
  font-size: 0.5rem;
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
}

.gallery-placeholder:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-placeholder .ph-icon {
  font-size: 2rem;
}

/* Other brands nav strip */

.brand-page .other-brands {
  max-width: 760px;
  width: 100%;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.brand-page .other-brands-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: rgba(42,16,64,0.4);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-align: center;
}

.brand-page .brands-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.brand-page .brand-chip {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: rgba(42,16,64,0.65);
  text-decoration: none;
  background: rgba(42,16,64,0.05);
  border: 1px solid rgba(42,16,64,0.15);
  padding: 6px 16px;
  border-radius: 99px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.brand-page .brand-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ================================================
   HAMRU / HAMRUS — Pokédex components
   ================================================ */

.dex-card {
  background: rgba(255,170,51,0.05);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dex-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dex-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: rgba(42,16,64,0.4);
  letter-spacing: 1px;
}

.dex-name-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

.dex-types { display: flex; gap: 0.4rem; margin-left: auto; }

.dex-type-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  color: #fff;
  background: var(--accent);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.dex-body {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.dex-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.dex-stat-row { display: flex; align-items: baseline; gap: 0.75rem; }

.dex-stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  color: rgba(42,16,64,0.4);
  letter-spacing: 1px;
  min-width: 60px;
}

.dex-stat-value {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.dex-flavor {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(42,16,64,0.7);
  border-top: 1px solid rgba(42,16,64,0.1);
  padding-top: 0.75rem;
}

.dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.dex-thumb {
  aspect-ratio: 1;
  background: rgba(42,16,64,0.03);
  border: 2px solid rgba(42,16,64,0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  color: rgba(42,16,64,0.35);
  letter-spacing: 0.3px;
  text-align: center;
  gap: 5px;
  padding: 0.5rem;
  transition: border-color 0.15s, color 0.15s;
}

.dex-thumb:hover  { border-color: rgba(42,16,64,0.25); }

.dex-thumb.unlocked {
  border-color: var(--accent);
  color: var(--accent);
}

.dex-thumb.unlocked:hover { border-color: var(--accent); color: var(--accent); filter: brightness(1.2); }

.dex-thumb-icon  { font-size: 1.6rem; line-height: 1; }
.dex-thumb-label { opacity: 0.7; }

/* ================================================
   BILLY & DAISY — Character card components
   ================================================ */

.char-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) { .char-cards { grid-template-columns: 1fr; } }

.char-card {
  background: rgba(42,16,64,0.03);
  border: 2px solid rgba(42,16,64,0.1);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  transition: border-color 0.2s;
}

.char-card:hover { border-color: var(--accent); }

.char-card-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-shadow: var(--accent-glow);
}

.char-card-desc {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(42,16,64,0.75);
}

.char-card-facts {
  list-style: none;
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: rgba(42,16,64,0.55);
  letter-spacing: 0.5px;
  text-align: left;
  width: 100%;
}

.char-card-facts li::before { content: '> '; color: var(--accent); }

/* ================================================
   ASCII AQUARIUM — Terminal components
   ================================================ */

.terminal-window {
  background: rgba(10, 22, 40, 0.92);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08),
              0 0 30px rgba(0,255,136,0.08);
  font-family: 'Courier New', 'Lucida Console', monospace;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.term-titlebar {
  background: #F4A0C0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red    { background: #FF5F57; }
.term-dot.yellow { background: #FEBC2E; }
.term-dot.green  { background: #28C840; }

.term-window-title {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 1px;
  margin-left: 8px;
  font-family: 'Courier New', monospace;
}

.ascii-tank {
  padding: 1.2rem 1.5rem;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 1rem;
  line-height: 1.7;
  color: #4ECDC4;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}

.fish-c  { color: #4ECDC4; }
.fish-g  { color: #7FE87F; }
.fish-p  { color: #FF9EC5; }
.fish-y  { color: #FFE840; }
.bubble  { color: #88BBFF; }
.seaweed { color: #4A8A3A; }
.seafloor{ color: rgba(154,172,142,0.45); }

.terminal-window .ascii-tank a {
  color: inherit;
  text-decoration: none;
}

/* ================================================
   RESPONSIVE TWEAKS
   ================================================ */

@media (max-width: 520px) {
  .site-title { letter-spacing: 0; }
  .site-tagline { font-size: 1.1rem; letter-spacing: 2px; }
  .brand-page .brand-name { font-size: 0.9rem; }
  .brand-page .blob-panel { padding: 1.2rem 1.2rem; }
}
