@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Caveat:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0018;
  color: #c8b8e8;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  line-height: 1.5;
  min-height: 100vh;
}

/* the glowy background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% 90%, rgba(120,40,220,.3) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 90% 10%, rgba(60,180,80,.15) 0%, transparent 60%),
    linear-gradient(160deg, #0a0018 0%, #0d0025 50%, #080014 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.06) 2px,
    rgba(0,0,0,.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* cursor sparkles */
#trail-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
}


.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}

.star.green { background: #80ff60; }
.star.purple { background: #c060ff; }

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 1; transform: scale(1.8); }
}


#splash {
  position: fixed;
  inset: 0;
  background: #050008;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-inner {
  text-align: center;
  padding: 40px;
}

.splash-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #50ff30, #fff, #c060ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.7;
}

.splash-sub {
  font-size: 22px;
  color: #7a50c0;
  margin-bottom: 20px;
}

.splash-divider {
  width: 130px;
  height: 1px;
  background: linear-gradient(to right, transparent, #9040e0, transparent);
  margin: 0 auto 24px;
}

#enter-btn {
  background: transparent;
  border: 1px solid #6020b0;
  color: #c060ff;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  padding: 12px 28px;
  cursor: pointer;
  margin-bottom: 16px;
  line-height: 1.8;
}

#enter-btn:hover {
  background: rgba(120,30,220,.15);
  border-color: #c060ff;
  box-shadow: 0 0 20px rgba(160,60,255,.3);
}

.splash-warning {
  font-size: 16px;
  color: #3a2060;
  letter-spacing: 2px;
}


#site-wrap {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

/* nav bar */
#topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,1,18,.97);
  border-bottom: 1px solid #3a1060;
}

#topnav::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, transparent, #6020b0, #c060ff, #6020b0, transparent);
}

.nav-links {
  display: flex;
}

.nav-tab {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: #7050a0;
  text-decoration: none;
  padding: 6px 16px;
  border-right: 1px solid #1e0840;
}

.nav-tab:hover {
  background: rgba(100,30,180,.2);
  color: #d080ff;
}

.nav-tab.active {
  color: #c060ff;
  border-bottom: 2px solid #c060ff;
  background: rgba(120,40,200,.25);
}

#layout {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

#sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#col-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.panel {
  background: rgba(8,2,22,.88);
  border: 1px solid #2a0850;
  border-radius: 4px;
  overflow: hidden;
}

.panel::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, transparent, #5010a0, #c060ff, #5010a0, transparent);
}

.panel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 2px;
  color: #b060f0;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #1e0840;
  background: rgba(15,4,35,.6);
  line-height: 1.6;
}

.panel-warning {
  border-color: #6020b0;
}

.warning-text {
  font-size: 17px;
  color: #8060a8;
  padding: 10px;
}

/* bio stuff */
.bio-block {
  text-align: center;
  padding: 10px;
}

.avatar-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  border: 2px solid #5020a0;
  border-radius: 4px;
  background: #0d0025;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #9040d0;
  letter-spacing: 2px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.status-line {
  font-size: 16px;
  color: #5a3080;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #80ff50;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #80ff50; }
  50% { opacity: .4; box-shadow: 0 0 12px #c0ff80; }
}

.bio-info {
  padding: 0 10px 10px;
}

.bio-row {
  font-size: 17px;
  color: #9080b0;
  margin-bottom: 3px;
}

.bio-lbl {
  color: #5a3880;
}


.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}

.contact-link {
  font-size: 18px;
  color: #9060c8;
  text-decoration: none;
  padding: 4px 6px;
  display: block;
}

.contact-link:hover {
  color: #e0a0ff;
  background: rgba(80,20,160,.3);
}

.nav-panel-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
}

.nav-panel-link {
  font-size: 18px;
  color: #7050a0;
  text-decoration: none;
  padding: 3px 6px;
  display: block;
}

.nav-panel-link:hover {
  color: #c060ff;
  background: rgba(80,20,160,.25);
}

/* about me / home text */
.home-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  font-size: 20px;
  color: #a090c8;
  line-height: 1.6;
}

.home-text p:first-child {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #c060ff;
  line-height: 1.8;
}


.blog-posts {
  display: flex;
  flex-direction: column;
}

.blog-post {
  padding: 10px 12px;
  border-bottom: 1px solid #1e0840;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-date {
  font-size: 15px;
  color: #4a2880;
  margin-bottom: 2px;
}

.blog-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #b060f0;
  margin-bottom: 6px;
  line-height: 1.8;
}

.blog-body {
  font-size: 18px;
  color: #9080b0;
}

/* chat box placeholder */
.chat-stub {
  padding: 20px;
  text-align: center;
  font-size: 17px;
  color: #5a3880;
  border: 1px dashed #2a0850;
  margin: 10px;
  border-radius: 3px;
  line-height: 1.7;
}

/* music player */
.player-wrap {
  padding: 10px;
}

.now-playing-track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.track-art {
  width: 38px;
  height: 38px;
  background: #0d0025;
  border: 1px solid #3a1060;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #9040d0;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 18px;
  color: #d090ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 15px;
  color: #6040a0;
}

.progress-bar {
  height: 4px;
  background: #0d0025;
  border: 1px solid #2a0850;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #4010a0, #c060ff);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.ctrl-btn {
  background: rgba(40,10,80,.45);
  border: 1px solid #2a0850;
  color: #9040d0;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.ctrl-btn:hover {
  background: rgba(80,20,160,.5);
  color: #d080ff;
}

.ctrl-btn.play {
  width: 34px;
  height: 34px;
  background: rgba(60,15,120,.6);
  border-color: #5020a0;
}

.time-display {
  font-size: 14px;
  color: #4a2880;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.vol-icon {
  font-size: 14px;
  color: #4a2880;
}

.vol-slider {
  width: 100%;
  height: 3px;
  accent-color: #9040d0;
  cursor: pointer;
  flex: 1;
}

.win-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #2a0850, transparent);
  margin: 8px 0;
}

.now-playing-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vinyl {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(#0d0025 0deg, #1a0040 60deg, #0d0025 120deg, #1a0040 180deg, #0d0025 240deg, #1a0040 300deg, #0d0025 360deg);
  border: 2px solid #3a1060;
  position: relative;
  animation: spin 4s linear infinite;
  animation-play-state: paused;
  flex-shrink: 0;
}

.vinyl::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c060ff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.np-info {
  flex: 1;
  min-width: 0;
}

.np-label {
  font-size: 12px;
  color: #4a2880;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.np-song {
  font-size: 17px;
  color: #d090ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-band {
  font-size: 14px;
  color: #6040a0;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex-shrink: 0;
}

.eq-bar {
  width: 3px;
  background: linear-gradient(to top, #4010a0, #c060ff);
  border-radius: 1px;
  animation: eq var(--s, .7s) ease-in-out infinite alternate var(--d2, 0s);
}

@keyframes eq {
  from { height: 4px; }
  to { height: var(--h, 18px); }
}


.updates-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  padding: 7px 10px;
  border-bottom: 1px solid #150530;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-size: 14px;
  color: #4a2880;
  flex-shrink: 0;
}

.update-text {
  font-size: 17px;
  color: #8060a8;
}


.gb-entries {
  max-height: 180px;
  overflow-y: auto;
}

.gb-entries::-webkit-scrollbar { width: 4px; }
.gb-entries::-webkit-scrollbar-track { background: #080014; }
.gb-entries::-webkit-scrollbar-thumb { background: #4a1080; border-radius: 2px; }

.gb-entry {
  padding: 7px 10px;
  border-bottom: 1px solid #150530;
}

.gb-entry:last-child {
  border-bottom: none;
}

.gb-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.gb-user {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #b060f0;
  line-height: 1.8;
}

.gb-date {
  font-size: 14px;
  color: #3a1860;
}

.gb-msg {
  font-size: 17px;
  color: #8060a8;
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #1e0840;
}

.gb-form input,
.gb-form textarea {
  background: rgba(8,2,20,.85);
  border: 1px solid #2a0850;
  border-radius: 3px;
  padding: 5px 8px;
  color: #b090d8;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  outline: none;
  resize: none;
  width: 100%;
}

.gb-form input:focus,
.gb-form textarea:focus {
  border-color: #6020b0;
}

.gb-form input::placeholder,
.gb-form textarea::placeholder {
  color: #2a1040;
}

.gb-submit {
  align-self: flex-end;
  background: rgba(50,12,100,.5);
  border: 1px solid #4a1080;
  border-radius: 3px;
  color: #c060ff;
  padding: 4px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  line-height: 1.8;
}

.gb-submit:hover {
  background: rgba(90,20,170,.65);
  border-color: #9040d0;
  color: #f0c0ff;
}


.neighbors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
}

.neighbors-grid a {
  display: block;
  line-height: 0;
}

.neighbors-grid img {
  width: 88px;
  height: 31px;
  display: block;
}

.neighbor-placeholder {
  font-size: 16px;
  color: #4a2880;
  text-align: center;
  border: 1px dashed #2a0850;
  padding: 12px;
  border-radius: 3px;
  width: 100%;
  line-height: 1.7;
}


#site-footer {
  text-align: center;
  padding: 16px;
  font-size: 16px;
  color: #3a1860;
  border-top: 1px solid #1e0840;
  margin-top: 10px;
}

/* pills (keeping just in case) */
.mood-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
}

.pill {
  background: rgba(50,12,100,.5);
  border: 1px solid #3a1060;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 16px;
  color: #a060d8;
}