@import url('https://fonts.googleapis.com/css2?family=Chewy&family=VT323&display=swap');

:root {
  --green: #39d353;
  --dark-green: #087f23;
  --lime: #b8ff57;
  --mint: #dffff0;
  --pink: #ff76c8;
  --yellow: #fff36b;
  --ink: #17331f;
  --white: #fffdf2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  background:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.75) 2px, transparent 3px) 0 0/28px 28px,
    linear-gradient(135deg, #b7ff7a 0%, #7df59a 45%, #eaffbf 100%);
  min-height: 100vh;
  cursor: default;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.05) 50%, rgba(0,0,0,.025) 50%);
  background-size: 100% 4px;
  mix-blend-mode: multiply;
  z-index: 10;
}

a { color: #075d1b; font-weight: 900; }

button, input, textarea { font: inherit; }

.page {
  width: min(1050px, calc(100% - 24px));
  margin: 18px auto 40px;
  background: rgba(246,255,226,.88);
  border: 4px solid #0d8f29;
  box-shadow: 0 10px 0 #146523, 0 18px 35px rgba(0,80,20,.25);
}

.topbar {
  background: linear-gradient(#70ff70, #22bf42);
  padding: 10px 14px;
  border-bottom: 3px solid #0b721e;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  font-family: Chewy, cursive;
  font-size: 34px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 2px 2px #12691f, 0 0 7px #ffff88;
  white-space: nowrap;
}

.brand span { color: #fff36b; }

.brand small { color: #ff73cf; }

nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 7px; }

nav a {
  text-decoration: none;
  color: #fff;
  background: #0b8c27;
  border: 2px solid #075d1b;
  padding: 5px 9px;
  box-shadow: 2px 2px 0 #075d1b;
  font-size: 12px;
}

nav a:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #075d1b; }

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #fff36b;
  color: #c71970;
  border-bottom: 3px dotted #ff66bb;
  font-family: VT323, monospace;
  font-size: 23px;
  padding: 2px 0;
}

.marquee div {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 16s linear infinite;
}

@keyframes scroll { to { transform: translateX(-100%); } }

main { padding: 18px; }

.hero {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
}

.profile-card, .intro, .box, .guestbook {
  border: 3px solid #0b8c27;
  background: var(--white);
  box-shadow: 5px 5px 0 rgba(8,127,35,.35);
}

.profile-card { padding: 10px; text-align: center; }

.profile-title, h1, h2 {
  font-family: Chewy, cursive;
  letter-spacing: 1px;
}

.profile-title {
  background: #ff78c8;
  color: white;
  border: 2px solid #c71970;
  padding: 4px;
  text-shadow: 1px 1px #8a174f;
  margin-bottom: 10px;
}

.avatar-wrap {
  background: radial-gradient(circle, #fff 0 10%, #c5ff6a 11% 45%, #44d65e 46%);
  border: 3px dashed #ff4db6;
  padding: 12px;
}

.avatar {
  width: 125px;
  height: 125px;
  margin: auto;
  border-radius: 50%;
  border: 5px solid #fff;
  outline: 3px solid #0b8c27;
  display: grid;
  place-items: center;
  font: 54px Chewy, cursive;
  color: white;
  background: linear-gradient(145deg, #ff78c8, #a946e8);
  text-shadow: 3px 3px #722c83;
  box-shadow: inset 0 0 18px rgba(255,255,255,.6);
}

.online {
  margin-top: 10px;
  color: #087f23;
  font-size: 12px;
  font-weight: 900;
}

.tiny { font-size: 11px; line-height: 1.45; }

.buttons button, form button, .player-controls button {
  background: linear-gradient(#e7ff8a, #78e84f);
  border: 2px solid #187e25;
  color: #15541e;
  font-weight: 900;
  padding: 6px 8px;
  margin: 3px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #187e25;
}

.buttons button:hover, form button:hover, .player-controls button:hover {
  filter: brightness(1.1);
  transform: rotate(-1deg);
}

.counter {
  margin-top: 12px;
  padding: 7px;
  background: #222;
  color: #7dff72;
  border: 2px inset #888;
  font-family: VT323, monospace;
  font-size: 16px;
}

#counter { font-size: 26px; }

.intro { padding: 15px; }

h1 {
  margin: 0 0 7px;
  color: #0b8c27;
  font-size: 37px;
  text-shadow: 2px 2px #b8ff57;
}

h2 {
  margin: -1px -1px 12px;
  padding: 7px;
  background: linear-gradient(90deg, #58e95d, #d8ff6a);
  color: #0b6d20;
  border-bottom: 3px dotted #ff67bd;
  font-size: 27px;
}

.blink { color: #e10078; font-weight: 900; animation: blink 1.1s steps(2,end) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.highlight {
  background: #ff75c7;
  color: white;
  padding: 2px 5px;
  font-weight: 900;
}

.quote {
  margin: 18px 0;
  padding: 12px;
  background: #e8ffd3;
  border: 3px double #ff69bb;
  color: #8b1554;
  font-family: Georgia, serif;
  font-style: italic;
  text-align: center;
}

.quote span { font-size: 30px; color: #0b8c27; }

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.status-grid div {
  padding: 8px;
  border: 2px dotted #54bb49;
  background: #f4ffd9;
  font-size: 12px;
}

.green { color: #078725; font-weight: 900; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.box { padding: 12px; }

.player {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 12px;
  align-items: center;
}

.album {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: white;
  background: linear-gradient(135deg, #ff70c6, #72e74e);
  border: 3px solid #138428;
  transform: rotate(-3deg);
}

.player small { display: block; margin-top: 3px; color: #56705b; }

.fake-progress {
  height: 10px;
  background: #d4e4ce;
  border: 2px inset #8fa98d;
  margin: 10px 0;
}

.fake-progress span {
  display: block;
  width: 67%;
  height: 100%;
  background: linear-gradient(90deg, #ff72c8, #a8ff4c);
}

.player-controls { text-align: center; }

.player-controls button.play { border-radius: 50%; }

.chaos-list { list-style: none; padding: 0; margin: 0; line-height: 2; font-size: 13px; }
.chaos-list li:nth-child(odd) { color: #a50d63; }
.chaos-list li:nth-child(even) { color: #087f23; }

.friends { margin-top: 20px; }

.center { text-align: center; }

.friend-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.friend {
  text-align: center;
  font-size: 10px;
  color: #8a1555;
}

.friend div {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: white;
  font: 32px Chewy, cursive;
  background: linear-gradient(135deg, #ff75c8, #55dd58);
  border: 3px solid #087f23;
  box-shadow: 3px 3px 0 #ff8bd0;
  margin-bottom: 5px;
}

.guestbook {
  margin-top: 20px;
  padding: 12px;
}

.guest-entry {
  border: 2px dashed #6dca55;
  padding: 8px;
  margin: 8px 0;
  background: #f7ffe7;
  font-size: 13px;
}

.guest-entry p { margin: 5px 0 0; }

form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

input, textarea {
  border: 2px solid #087f23;
  background: #fffff2;
  padding: 8px;
  color: #17331f;
}

textarea { min-height: 70px; resize: vertical; }

footer {
  text-align: center;
  margin-top: 20px;
  padding: 18px 10px;
  background: #32c94c;
  border-top: 4px solid #087f23;
  color: white;
  text-shadow: 1px 1px #087f23;
}

.badges { margin-top: 10px; display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.badges span {
  background: #222;
  color: #7dff72;
  border: 2px outset #aaa;
  padding: 3px 6px;
  font: 12px VT323, monospace;
}

.sparkle {
  position: fixed;
  color: #fff;
  text-shadow: 0 0 7px #ff4fbb;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}

.sparkle-1 { left: 4%; top: 20%; font-size: 28px; }
.sparkle-2 { right: 6%; top: 35%; font-size: 34px; animation-delay: 1s; }
.sparkle-3 { right: 10%; bottom: 12%; font-size: 22px; animation-delay: 2s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(20deg); }
}

@media (max-width: 760px) {
  .hero, .two-col { grid-template-columns: 1fr; }
  .friend-grid { grid-template-columns: repeat(4, 1fr); }
  nav { margin-left: 0; width: 100%; }
  h1 { font-size: 30px; }
}

@media (max-width: 430px) {
  main { padding: 10px; }
  .status-grid { grid-template-columns: 1fr; }
  .brand { font-size: 29px; }
}

/* Real YouTube / 2009-style music player */
.retro-player {
  background: #111;
  border: 4px ridge #9a9a9a;
  padding: 8px;
  box-shadow: inset 0 0 0 2px #333, 4px 4px 0 #087f23;
}

.player-screen {
  background: #071d09;
  color: #7dff72;
  border: 2px inset #8e9b8e;
  padding: 7px 9px;
  font-family: VT323, monospace;
  text-shadow: 0 0 5px #54ff4d;
}

.player-label {
  font-size: 15px;
  letter-spacing: 1px;
}

.player-subtitle {
  color: #d9ff65;
  font-size: 22px;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.equalizer {
  height: 22px;
  display: flex;
  align-items: end;
  gap: 3px;
  margin-bottom: 4px;
}

.equalizer i {
  display: block;
  width: 6px;
  background: #61ff5b;
  box-shadow: 0 0 5px #61ff5b;
  animation: eq 650ms ease-in-out infinite alternate;
}

.equalizer i:nth-child(1) { height: 8px; animation-delay: -100ms; }
.equalizer i:nth-child(2) { height: 17px; animation-delay: -300ms; }
.equalizer i:nth-child(3) { height: 12px; animation-delay: -500ms; }
.equalizer i:nth-child(4) { height: 21px; animation-delay: -200ms; }
.equalizer i:nth-child(5) { height: 9px; animation-delay: -450ms; }
.equalizer i:nth-child(6) { height: 18px; animation-delay: -150ms; }
.equalizer i:nth-child(7) { height: 13px; animation-delay: -350ms; }
.equalizer i:nth-child(8) { height: 20px; animation-delay: -250ms; }
.equalizer i:nth-child(9) { height: 10px; animation-delay: -550ms; }
.equalizer i:nth-child(10) { height: 16px; animation-delay: -400ms; }

@keyframes eq {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1.1); }
}

.youtube-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  background: #000;
  border: 2px inset #888;
}

.youtube-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-note {
  margin-top: 7px;
  padding: 5px;
  text-align: center;
  background: #202020;
  color: #7dff72;
  font: 15px VT323, monospace;
  border: 1px solid #555;
}
