/* ============================================================
   ROOT VARS — cybergoth dollette palette
   ============================================================ */
:root {
  --black: #07000c;
  --darkbg: #0f0016;
  --cardbg: #130019;
  --hotpink: #ff0099;
  --neon: #ff33bb;
  --magenta: #cc0066;
  --deepmag: #80003a;
  --lite: #ff80cc;
  --silver: #d4b8d8;
  --silvlit: #f0ddf5;
  --white: #fff0fb;
  --gold: #ffcc00;
  --glow: rgba(255, 0, 153, 0.55);
  --glowsm: rgba(255, 0, 153, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

/* ============================================================
   BODY — the STICKER CANVAS
   ============================================================ */
body {
  background-color: var(--black);
  /* hot-pink polka-dot grid — your sticker canvas backdrop */
  background-image:
    radial-gradient(circle, rgba(255, 0, 153, 0.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 0, 153, 0.07) 1px, transparent 1px);
  background-size: 28px 28px, 14px 14px;
  background-position: 0 0, 7px 7px;
  min-height: 100vh;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 16px;
  color: var(--white);
  cursor: crosshair;
  overflow-x: hidden;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hotpink), var(--magenta));
  border-radius: 0;
}

/* ============================================================
   STICKER CANVAS LAYER
   ============================================================ */
#stickercanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sticker {
  position: absolute;
  pointer-events: none;
  font-size: clamp(18px, 2.5vw, 36px);
  animation: stk-float 4s ease-in-out infinite;
  user-select: none;
}

@keyframes stk-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--r, 0deg));
  }
}

/* ============================================================
   CENTER CONTENT BOX — the main stage
   ============================================================ */
#centerbox {
  position: relative;
  width: 960px;
  margin: 24px auto 30px;
  background: var(--darkbg);
  border: 4px double var(--hotpink);
  box-shadow:
    0 0 0 1px var(--magenta),
    0 0 30px var(--glow),
    0 0 80px rgba(255, 0, 153, 0.15),
    inset 0 0 40px rgba(255, 0, 153, 0.04);
}

.main-container {
  position: relative; /* Keeps main box in front of the floating GIFs */
  z-index: 10;
}

/* ============================================================
   MARQUEE TICKER RIBBON
   ============================================================ */
.ticker {
  background: linear-gradient(90deg, var(--black), var(--deepmag), var(--black));
  border-bottom: 2px dashed var(--hotpink);
  padding: 4px 0;
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon);
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px var(--hotpink);
}

.tinner {
  white-space: nowrap;
  display: inline-block;
  animation: tmove 38s linear infinite;
}

@keyframes tmove {
  from { transform: translateX(960px); }
  to { transform: translateX(-100%); }
}

/* ============================================================
   HEADER / BANNER
   ============================================================ */
header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #000008 0%, #160020 30%, #1f0030 60%, #0f0018 100%);
  border-bottom: 4px dashed var(--hotpink);
  padding: 22px 20px 0;
  text-align: center;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 153, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 153, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 0, 153, 0.13) 0%, transparent 70%);
}

.eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--silver);
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-shadow: 0 0 6px var(--magenta);
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.sitetitle {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  color: var(--white);
  text-shadow:
    0 0 4px #fff,
    0 0 12px var(--hotpink),
    0 0 30px var(--hotpink),
    0 0 60px var(--magenta),
    0 0 100px rgba(255, 0, 153, 0.4);
}

.tm { color: var(--lite); text-shadow: 0 0 4px var(--lite), 0 0 20px var(--hotpink), 0 0 50px var(--magenta); }
.tg { color: var(--hotpink); text-shadow: 0 0 4px var(--hotpink), 0 0 20px var(--neon), 0 0 50px var(--hotpink); }
.td { color: var(--silver); text-shadow: 0 0 4px var(--silvlit), 0 0 20px var(--lite), 0 0 50px var(--hotpink); }

.tagline {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--lite);
  letter-spacing: 2px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 8px var(--glow);
}

.pillrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

.pc {
  display: inline-block;
  height: 12px;
  flex: 1;
  max-width: 44px;
}

.pc:nth-child(odd) { background: linear-gradient(90deg, var(--hotpink), var(--magenta)); }
.pc:nth-child(even) { background: linear-gradient(90deg, var(--deepmag), #2a0040); }

/* ============================================================
   NAV BAR
   ============================================================ */
nav {
  display: flex;
  background: linear-gradient(180deg, #1a0026, #0d0018);
  border-bottom: 3px dashed var(--hotpink);
}

.nl {
  flex: 1;
  text-align: center;
  padding: 8px 3px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--lite);
  text-decoration: none;
  border-right: 1px solid rgba(255, 0, 153, 0.3);
  transition: background 0.15s, color 0.15s, text-shadow 0.15s;
  letter-spacing: 0.3px;
}

.nl:last-child { border-right: none; }
.nl:hover, .nl.act { background: var(--hotpink); color: var(--black); text-shadow: none; text-decoration: none; }

/* ============================================================
   BODY LAYOUT — classic 3-col table
   ============================================================ */
#maintable {
  width: 100%;
  border-collapse: collapse;
  background: var(--darkbg);
}

#maintable td { vertical-align: top; }

#leftcol {
  width: 185px;
  border-right: 3px dotted var(--hotpink);
  padding: 0;
  background: var(--cardbg);
}

#maincol { padding: 0; }

#rightcol {
  width: 175px;
  border-left: 3px dotted var(--hotpink);
  padding: 0;
  background: var(--cardbg);
}

/* ============================================================
   SECTION BOXES
   ============================================================ */
.box { border-bottom: 2px dashed rgba(255, 0, 153, 0.35); }

.boxhd {
  background: linear-gradient(90deg, #33001a, #1a000d);
  color: var(--hotpink);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 7px 10px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--magenta);
  text-shadow: 0 0 8px var(--hotpink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.boxhd.silver {
  background: linear-gradient(90deg, #1a1030, #0d0820);
  color: var(--silver);
  border-color: var(--silver);
  text-shadow: 0 0 6px rgba(212, 184, 216, 0.8);
}

.boxhd.gold {
  background: linear-gradient(90deg, #1a1200, #0d0900);
  color: var(--gold);
  border-color: var(--gold);
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

.boxbody { padding: 10px; }

/* ============================================================
   AVATAR
   ============================================================ */
.avwrap {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 2px dashed rgba(255, 0, 153, 0.35);
}

.av {
  width: 90px;
  height: 90px;
  margin: 0 auto 8px;
  background: radial-gradient(circle at 35% 35%, #330022, #0a0010);
  border: 3px solid var(--hotpink);
  box-shadow: 
    0 0 14px var(--glow), 
    0 0 30px rgba(255, 0, 153, 0.2), 
    inset 0 0 10px rgba(255, 0, 153, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  animation: avpulse 3.5s ease-in-out infinite;
}

@keyframes avpulse {
  0%, 100% { box-shadow: 0 0 14px var(--glow), 0 0 30px rgba(255, 0, 153, 0.2); }
  50% { box-shadow: 0 0 22px var(--hotpink), 0 0 55px var(--glow), 0 0 90px rgba(255, 0, 153, 0.15); }
}

.avname {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--hotpink);
  text-shadow: 0 0 8px var(--glow);
  letter-spacing: 0.5px;
}

.avname small {
  display: block;
  color: var(--silver);
  font-size: 6px;
  margin-top: 4px;
  opacity: 0.7;
}

/* ============================================================
   STATUS / VITALS TABLE
   ============================================================ */
.vt {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vt tr { border-bottom: 1px solid rgba(255, 0, 153, 0.15); }

.vt td {
  padding: 4px 3px;
  vertical-align: top;
}

.vt td:first-child {
  color: rgba(255, 128, 204, 0.65);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  width: 55px;
  padding-right: 4px;
  line-height: 1.8;
}

.vv { color: var(--white); }

/* ============================================================
   DIARY LOG
   ============================================================ */
.dlog {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.dlog li {
  line-height: 1.4;
  border-left: 2px solid var(--magenta);
  padding-left: 6px;
}

.ld {
  display: block;
  color: var(--hotpink);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  margin-bottom: 1px;
}

/* ============================================================
   NAV LINKS (left column)
   ============================================================ */
.navlink {
  display: block;
  padding: 6px 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--lite);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 153, 0.2);
  transition: background 0.12s, color 0.12s, padding-left 0.1s;
  letter-spacing: 0.3px;
}

.navlink:before { content: '▶ '; color: var(--magenta); font-size: 7px; }

.navlink:hover {
  background: var(--hotpink);
  color: var(--black);
  padding-left: 14px;
  text-decoration: none;
}

.navlink:hover:before { color: var(--black); }

/* ============================================================
   UPDATES BOX (center, top)
   ============================================================ */
.updates {
  font-size: 14px;
  line-height: 1.8;
  color: var(--white);
}

.updates .ud {
  border-left: 3px solid var(--hotpink);
  padding-left: 8px;
  margin-bottom: 8px;
}

.ud-date {
  color: var(--hotpink);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  display: block;
  margin-bottom: 2px;
  text-shadow: 0 0 6px var(--glow);
}

/* ============================================================
   WELCOME TEXT
   ============================================================ */
.wtxt {
  font-size: 15px;
  line-height: 1.85;
  color: var(--silvlit);
}

.wtxt p + p { margin-top: 8px; }
.wtxt strong { color: var(--hotpink); text-shadow: 0 0 6px var(--glow); }
.wtxt em { color: var(--lite); font-style: normal; }

.wtags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.wtag {
  background: rgba(255, 0, 153, 0.15);
  border: 1px dashed var(--hotpink);
  color: var(--lite);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 3px 7px;
  letter-spacing: 0.3px;
  transition: background 0.12s;
}

.wtag:hover { background: var(--hotpink); color: var(--black); }

/* ============================================================
   DIARY ENTRY
   ============================================================ */
.ddate {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--hotpink);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--glow);
}

.dbody {
  font-size: 15px;
  line-height: 1.9;
  color: var(--white);
  border-left: 3px solid var(--hotpink);
  padding-left: 12px;
  font-style: italic;
}

.rdmore {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
  letter-spacing: 0.5px;
  transition: letter-spacing 0.15s, color 0.15s;
}

.rdmore:hover {
  letter-spacing: 2px;
  color: var(--hotpink);
  text-shadow: 0 0 8px var(--glow);
  text-decoration: none;
}

/* ============================================================
   GUESTBOOK
   ============================================================ */
.gbes { display: flex; flex-direction: column; gap: 8px; }

.gbe {
  background: rgba(255, 0, 153, 0.06);
  border: 1px solid rgba(255, 0, 153, 0.3);
  border-left: 3px solid var(--hotpink);
  padding: 7px 9px;
}

.gbn { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--neon); }
.gbt { font-size: 12px; color: rgba(255, 128, 204, 0.5); margin-left: 6px; }
.gbm { margin-top: 4px; font-size: 14px; color: var(--white); line-height: 1.5; }

/* ============================================================
   NOW PLAYING
   ============================================================ */
.np {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.vinyl {
  font-size: 44px;
  animation: vspin 5s linear infinite paused;
  transform-origin: center;
  display: block;
}

.vinyl.spin { animation-play-state: running; }

@keyframes vspin { to { transform: rotate(360deg); } }

.tn {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--hotpink);
  text-shadow: 0 0 6px var(--glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.ta { font-size: 13px; color: var(--silver); margin: 2px 0 6px; }

.tbar {
  width: 100%;
  height: 4px;
  background: rgba(255, 0, 153, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.tfill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--magenta), var(--hotpink), var(--neon));
  border-radius: 2px;
  transition: width 1s linear;
}

.tctrl { display: flex; gap: 10px; justify-content: center; }

.cb {
  cursor: pointer;
  font-size: 18px;
  color: var(--lite);
  transition: color 0.12s, transform 0.1s;
}

.cb:hover { color: var(--hotpink); transform: scale(1.2); }

/* ============================================================
   BLINKIES
   ============================================================ */
.bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

.bk {
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 7.5px;
  text-align: center;
  padding: 5px 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: bkanim 1.1s step-start infinite;
  letter-spacing: 0.3px;
}

@keyframes bkanim {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.5; filter: brightness(1.6); }
}

.bk:nth-child(2) { animation-delay: 0.28s; }
.bk:nth-child(3) { animation-delay: 0.55s; }
.bk:nth-child(4) { animation-delay: 0.82s; }
.bk:nth-child(5) { animation-delay: 0.14s; }
.bk:nth-child(6) { animation-delay: 0.7s; }

/* ============================================================
   FRIENDS GRID
   ============================================================ */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

.ft {
  color: #fff;
  text-align: center;
  padding: 7px 3px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  filter: saturate(0.75);
}

.ft:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  filter: saturate(1.1) brightness(1.15);
}

/* full-width friends */
.fgrid-full { display: flex; flex-direction: column; gap: 3px; }
.fgrid-full .ft { font-size: 8px; padding: 6px; }

/* ============================================================
   WEBRINGS
   ============================================================ */
.wrrow {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 153, 0.07);
  border: 1px solid rgba(255, 0, 153, 0.28);
  padding: 5px 8px;
  margin-bottom: 4px;
}

.wrn {
  flex: 1;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--white);
}

.wra {
  color: var(--hotpink);
  font-size: 14px;
  transition: color 0.12s, transform 0.1s;
}

.wra:hover { color: var(--neon); transform: scale(1.3); text-decoration: none; }

/* ============================================================
   MY LINKS
   ============================================================ */
.mlb {
  display: block;
  text-align: center;
  padding: 5px 6px;
  color: #fff !important;
  font-family: 'Press Start 2P', monospace;
  font-size: 7.5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.3px;
  transition: transform 0.1s, filter 0.1s;
  text-decoration: none !important;
  margin-bottom: 3px;
}

.mlb:hover { transform: translateX(-3px); filter: brightness(1.3); }

/* ============================================================
   FIXATION LIST
   ============================================================ */
.fi { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.fi-icon { font-size: 20px; flex-shrink: 0; }
.fi strong { color: var(--lite); font-size: 13px; display: block; }
.fi small { color: var(--silver); font-size: 12px; opacity: 0.8; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(180deg, #0f0018, #07000c);
  border-top: 4px dashed var(--hotpink);
  text-align: center;
  padding: 14px 10px 18px;
  font-size: 15px;
  color: var(--silver);
}

footer strong { color: var(--hotpink); text-shadow: 0 0 8px var(--glow); }

.fsub { margin-top: 5px; font-size: 13px; color: rgba(212, 184, 216, 0.5); }
.fsub a { color: var(--neon); }

.fxrow { display: flex; justify-content: center; gap: 0; padding: 6px 0; overflow: hidden; }

.fxrow span {
  display: inline-block;
  width: 24px;
  height: 10px;
  animation: fxpulse 1.8s ease-in-out infinite;
}

.fxrow span:nth-child(odd) { background: var(--hotpink); animation-delay: 0s; }
.fxrow span:nth-child(even) { background: var(--magenta); animation-delay: 0.9s; }

@keyframes fxpulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================================
   BLINK UTILITY
   ============================================================ */
.blink { animation: doblnk 1s step-start infinite; }

@keyframes doblnk {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   CURSOR SPARKLE PARTICLES
   ============================================================ */
.cp {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: cpdie 0.7s ease-out forwards;
  font-style: normal;
}

@keyframes cpdie {
  0% { transform: scale(1) translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: scale(0.1) translateY(-28px) rotate(180deg); opacity: 0; }
}

/* ============================================================
   SCANLINE effect on boxes
   ============================================================ */
.scanline { position: relative; overflow: hidden; }

.scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 3px);
  animation: scan 8s linear infinite;
}

@keyframes scan {
  from { background-position: 0 0; }
  to { background-position: 0 48px; }
}

/* ============================================================
   FLOATING GIFS
   ============================================================ */
.side-gif {
  position: fixed;
  z-index: -1;
  width: 120px;
}

.top-left { top: 15%; left: 3%; } 
.bottom-left { top: 60%; left: 3%; } 
.top-right { top: 15%; right: 3%; } 
.bottom-right { top: 60%; right: 3%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width: 980px) {
  #centerbox { width: 100%; margin: 0; }
  #leftcol { width: 160px; }
  #rightcol { width: 155px; }
  .sitetitle { font-size: 30px; }
}