@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Silkscreen&display=swap');

/* ============================================
   SLEEPING CAT — global styles
   ============================================ */

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

:root {
  --bg:          #07071a;
  --bg2:         #0d0b22;
  --panel:       #0f0d24;
  --panel-alt:   #110e28;
  --border:      #2a2060;
  --border-hi:   #5533aa;
  --accent:      #7755cc;
  --accent2:     #aa88ff;
  --accent3:     #cc99ff;
  --moon:        #f5e6a3;
  --moon-dim:    #c8b870;
  --text:        #cbbfff;
  --text-bright: #e8e0ff;
  --text-dim:    #6655aa;
  --text-muted:  #9988bb;
  --red:         #cc4466;
  --scrollbar:   #2a2060;
  --scrollbar-thumb: #5533aa;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

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

/* ---- CUSTOM CURSOR ---- */
#cursor {
  position: fixed; pointer-events: none; z-index: 99999;
  font-size: 18px; line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
  user-select: none;
}
#cursor.clicking { transform: translate(-50%,-50%) scale(0.8); }

/* ---- STARS BG ---- */
#stars-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.star {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle var(--dur,2s) var(--delay,0s) infinite alternate;
}
@keyframes twinkle { from { opacity: 0.1; } to { opacity: 1; } }

.shoot {
  position: absolute; height: 1px; width: 100px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), transparent);
  animation: shoot var(--sdur,7s) var(--sdelay,0s) infinite linear;
  opacity: 0;
}
@keyframes shoot {
  0%   { opacity:0; transform: translate(-100px,0) rotate(-25deg); }
  8%   { opacity:1; }
  25%  { opacity:0; transform: translate(700px,300px) rotate(-25deg); }
  100% { opacity:0; }
}

/* ---- LAYOUT ---- */
#site-wrap {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---- HEADER BANNER ---- */
#site-header {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
#site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #5533aa08, transparent 60%);
  pointer-events: none;
}
.header-title {
  font-family: 'Silkscreen', monospace;
  font-size: 1.6rem;
  color: var(--accent3);
  text-shadow: 0 0 16px #aa88ff66;
  letter-spacing: 2px;
}
.header-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 1px;
}
.header-moon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 20px #f5e6a355;
  position: relative; flex-shrink: 0;
}
.header-moon::after {
  content: '';
  position: absolute; top: 8px; left: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel);
}

/* ---- MAIN GRID ---- */
#main-grid {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 1rem;
  align-items: start;
}

/* ---- PANEL / WINDOW ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.panel:hover { border-color: var(--border-hi); }

.panel-title {
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-family: 'Silkscreen', monospace;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
}
.panel-title .dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.dot-red   { background: #cc4466; }
.dot-yellow{ background: #ccaa33; }
.dot-green { background: #44aa66; }

.panel-body { padding: 0.75rem; }

/* ---- NAV ---- */
.nav-section { margin-bottom: 0.8rem; }
.nav-section-label {
  font-size: 0.65rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.35rem; padding-left: 0.2rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.nav-section-label::before {
  content: ''; display: block;
  width: 12px; height: 1px; background: var(--accent);
}
.nav-link {
  display: block; padding: 0.28rem 0.5rem;
  font-size: 0.78rem; color: var(--text-muted);
  text-decoration: none; border-radius: 6px;
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active {
  background: var(--border);
  color: var(--accent2);
  padding-left: 0.8rem;
}

/* ---- DIVIDER ---- */
.div {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  margin: 0.65rem 0;
}

/* ---- STAT ROWS ---- */
.stat { display: flex; align-items: flex-start; gap: 0.4rem; margin-bottom: 0.4rem; }
.s-icon { font-size: 0.85rem; width: 20px; flex-shrink: 0; padding-top: 1px; }
.s-label { color: var(--text-dim); font-size: 0.72rem; min-width: 72px; padding-top: 2px; }
.s-val { color: var(--text); font-size: 0.8rem; font-weight: 600; }

/* HP BAR */
.hp-bar { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.hp-seg { width: 13px; height: 9px; border-radius: 2px; background: var(--accent2); box-shadow: 0 0 4px #aa88ff44; }
.hp-seg.empty { background: #2a2060; box-shadow: none; }

/* BADGE */
.badge {
  display: inline-block; background: #1a0f35;
  border: 1px solid var(--border-hi); border-radius: 20px;
  padding: 1px 7px; font-size: 0.65rem; color: #9977ee; margin-left: 3px;
}

/* WARN BOX */
.warn-box {
  background: var(--panel-alt); border: 1px solid #3322aa;
  border-radius: 7px; padding: 0.35rem 0.65rem;
  font-size: 0.74rem; color: #9977cc; margin-top: 0.45rem;
}

/* LORE BOX */
.lore-box {
  background: var(--bg2); border-left: 2px solid var(--accent);
  padding: 0.38rem 0.7rem; font-size: 0.76rem;
  color: var(--text-muted); border-radius: 0 6px 6px 0;
  font-style: italic; line-height: 1.5;
}

/* ---- PFP ---- */
.pfp-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 16px #7755cc44;
  background: #10102a;
  animation: pfpGlow 3s infinite alternate;
}
@keyframes pfpGlow {
  from { box-shadow: 0 0 8px #7755cc33; }
  to   { box-shadow: 0 0 22px #aa88ff66; }
}
.pfp-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---- UPDATES LOG ---- */
.update-item { margin-bottom: 0.55rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--border); }
.update-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.update-date { font-size: 0.65rem; color: var(--accent); font-family: 'Silkscreen', monospace; margin-bottom: 2px; }
.update-text { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* ---- NOW PLAYING ---- */
.now-playing {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem; background: var(--bg2);
  border-radius: 8px; border: 1px solid var(--border);
}
.np-art {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.np-title { font-size: 0.75rem; font-weight: 700; color: var(--text-bright); }
.np-artist { font-size: 0.65rem; color: var(--text-dim); }
.np-bar {
  width: 100%; height: 3px; background: var(--border);
  border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.np-progress {
  height: 100%; background: var(--accent2);
  border-radius: 2px; width: 40%;
  animation: progressPulse 3s infinite alternate;
}
@keyframes progressPulse { from { width:20%; } to { width:75%; } }

/* ---- SITE BUTTONS (88x31) ---- */
.site-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.site-btn {
  width: 88px; height: 31px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-family: 'Silkscreen', monospace;
  color: var(--accent2); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: center; line-height: 1.2;
}
.site-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 6px #7755cc44;
}
.site-btn.own { border-color: var(--accent); color: var(--accent3); }

/* ---- WELCOME BOX ---- */
.welcome-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }
.welcome-text a { color: var(--accent2); text-decoration: none; }
.welcome-text a:hover { text-decoration: underline; }

/* ---- SECTION MINI LABEL ---- */
.sec-mini {
  font-size: 0.62rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-dim);
  margin: 0.7rem 0 0.3rem;
}

/* ---- FLOATING PARTICLES ---- */
.particle {
  position: fixed; pointer-events: none; z-index: 1;
  font-size: 0.75rem; color: #aa88ff66;
  animation: floatUp var(--fdur,7s) var(--fdelay,0s) infinite linear;
  opacity: 0;
}
@keyframes floatUp {
  0%   { opacity:0; transform: translateY(100vh) scale(0.7); }
  15%  { opacity:0.5; }
  85%  { opacity:0.2; }
  100% { opacity:0; transform: translateY(-10vh) scale(1.1); }
}

/* ---- FOOTER ---- */
#site-footer {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  padding: 1rem 0 0;
}

/* ---- PAGE TRANSITIONS ---- */
.page-fade { animation: pageFade 0.5s ease; }
@keyframes pageFade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  #main-grid { grid-template-columns: 1fr; }
}

/* ---- GALLERY SLOTS ---- */
.gal-slot {
  border-radius: 8px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.gal-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.gal-slot img:hover { opacity: 0.85; }
.gal-slot.gal-empty {
  border: 1px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; color: var(--text-dim);
}
.gal-slot.gal-empty span { font-size: 1.3rem; line-height: 1; }
.gal-slot.gal-empty small { font-size: 0.62rem; letter-spacing: 1px; }
