html, body {
  min-height: 100%;
}
body {
  font-family: "Comic Sans MS", "Chalkboard", cursive, sans-serif;
  margin: 0;
  background-color: #2b2b2b;
  color: #f5f5f5;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 4em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../asstes/173011812238_o.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}
.page-title {
  font-size: 3em;
  color: #fff;
  text-align: center;
  margin: 1em 0 0.5em;
  text-shadow: 3px 3px 0 rgb(10, 10, 16), -3px -3px 0 green;
  transform-style: preserve-3d;
  display: inline-block;
  animation: titleSpinRGB 2.8s linear infinite;
}
@keyframes titleSpinRGB {
  0% {
    transform: rotateY(0deg) rotateZ(0deg) scale(1);
    font-size: 2.7em;
    filter: drop-shadow(0 0 2px #ff00ff) drop-shadow(0 0 4px #00f6ff);
  }
  25% {
    transform: rotateY(90deg) rotateZ(90deg) scale(1.08);
    font-size: 3.1em;
    filter: drop-shadow(0 0 2px #ff4d4d) drop-shadow(0 0 4px #00f6ff);
  }
  50% {
    transform: rotateY(180deg) rotateZ(180deg) scale(1.15);
    font-size: 3.4em;
    filter: drop-shadow(0 0 2px #00ff66) drop-shadow(0 0 4px #ff00ff);
  }
  75% {
    transform: rotateY(270deg) rotateZ(270deg) scale(1.08);
    font-size: 3.1em;
    filter: drop-shadow(0 0 2px #00f6ff) drop-shadow(0 0 4px #ff4d4d);
  }
  100% {
    transform: rotateY(360deg) rotateZ(360deg) scale(1);
    font-size: 2.7em;
    filter: drop-shadow(0 0 2px #ff00ff) drop-shadow(0 0 4px #00f6ff);
  }
}
marquee {
  background: #000;
  color: rgb(243, 247, 243);
  font-size: 1.5em;
  border: 4px dashed rgb(200, 200, 200);
}
.err {
  color: #fff;
  background: #000;
  padding: 0.5em;
  font-family: monospace;
}
.box {
  margin: 2em;
  padding: 1em;
  border: 5px ridge #8a8a8a;
  background: #3a3a3a;
  color: #f5f5f5;
  display: inline-block;
  box-shadow: -10px -10px 0 4px #1a1a1a;
  transform: rotate(-3deg) translateX(10px);
}
button, a.btn {
  font-size: 1.3em;
  border: 6px ridge #8a8a8a;
  background: #4b4b4b;
  color: #fff;
  cursor: pointer;
  margin: 0.3em;
  text-decoration: none;
  display: inline-block;
  padding: 0.1em 0.4em;
}
.box a.btn:nth-child(even) {
  transform: rotate(4deg) translateY(-3px);
}
.box a.btn:nth-child(odd) {
  transform: rotate(-5deg) translateX(2px);
}
.box ul {
  list-style: none;
  padding: 0;
}
.box li {
  border-bottom: 2px dashed #999;
  padding: 0.6em 0;
  width: 900px;
}
.box a {
  color: #fff;
  text-decoration: none;
}
.box a:hover {
  color: #00f6ff;
  text-decoration: underline;
}
.blink { animation: blinker 1s step-start infinite; }
@keyframes blinker { 50% { opacity: 0; } }
.piano-section {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  max-width: 90vw;
  text-align: center;
  z-index: 200;
  background: rgba(10,10,10,0.35);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.piano { height: 140px; }
.piano-hint {
  margin-bottom: 0.8em;
  font-size: 1em;
  color: #ddd;
}
.piano {
  display: inline-flex;
  position: relative;
  height: 180px;
  user-select: none;
}
.piano-key {
  width: 60px;
  height: 180px;
  border: 1px solid #222;
  background: #fff;
  color: #000;
  position: relative;
  z-index: 1;
  margin-right: -1px;
  box-shadow: inset 0 -8px 0 #ccc, 0 6px 0 #222;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.piano-key:last-child {
  margin-right: 0;
}
.piano-key.black {
  width: 42px;
  height: 115px;
  background: #111;
  color: #fff;
  position: absolute;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -6px 0 #000, 0 6px 0 #111;
}
.piano-key.active {
  transform: translateY(4px);
  background: #ffeb8f;
}
.piano-key.black.active {
  background: #ffd54f;
}
.piano-hint {
  font-family: monospace;
  letter-spacing: 0.08em;
}
.rainbow {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 1.6em;
  font-weight: bold;
}
#music-toggle {
  position: relative;
  top: auto;
  left: auto;
  background: #555;
  color: white;
  border: 4px ridge #fff;
  padding: 0.2em 0.5em;
  font-size: 1.1em;
  z-index: 20;
  cursor: pointer;
  display: inline-block;
  margin: 0.3em;
}
#github-link {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #111;
  color: #fff;
  border: 4px ridge #8a8a8a;
  padding: 0.2em 0.5em;
  font-size: 1.1em;
  z-index: 100;
  text-decoration: none;
}

#float {
  position: fixed;
  font-size: 2em;
  z-index: 95;
}
.float-gif {
  position: fixed;
  width: 70px;
  height: auto;
  z-index: 95;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}
#terminal-window {
  position: fixed;
  left: 10px;
  bottom: 10px;
  width: 320px;
  max-width: calc(100vw - 20px);
  background: #0f0f0f;
  border: 2px solid #4d4d4d;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  z-index: 30;
  font-family: monospace;
  color: #00ff66;
  overflow: hidden;
}
#terminal-bar {
  background: #2a2a2a;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
#terminal-body {
  padding: 10px;
  min-height: 160px;
  font-size: 0.95em;
  line-height: 1.4;
}
#terminal-input-line {
  display: flex;
  gap: 6px;
  align-items: center;
}
#terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #00ff66;
  font-family: monospace;
  font-size: 0.95em;
  width: 100%;
}
#runtime-info {
  position: fixed;
  right: 10px;
  bottom: 10px;
  background: #111;
  color: #fff;
  border: 3px solid #666;
  padding: 0.3em 0.6em;
  font-family: monospace;
  z-index: 90;
}
.profile-card {
  position: relative;
  float: right;
  width: 500px;
  height: 500px;
  max-width: calc(200vw - 24px);
  background: #3a3a3a;
  border: 6px ridge #8a8a8a;
  box-shadow: -14px -14px 0 5px #1a1a1a;
  padding: 1.2em;
  margin: 1.2em 2em 1.2em 1em;
  z-index: 20;
  transform: rotate(2deg);
}
.profile-card img {
  width: 100%;
  max-width: 180px;
  display: block;
  margin: 0 auto 0.8em;
  border: 4px solid #fff;
}
.profile-card h3 {
  margin: 0 0 0.5em;
  color: #fff;
  font-size: 1.25em;
}
.profile-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 1em;
  color: #f5f5f5;
}
.about-box {
  max-width: 920px;
  width: calc(100% - 2em);
  padding: 1.2em;
}
.about-hero {
  display: flex;
  gap: 1.2em;
  align-items: flex-start;
  margin-bottom: 1em;
}
.about-photo {
  width: 220px;
  max-width: 100%;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.about-intro {
  flex: 1;
}
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.7em;
  padding: 0.35em 0.7em;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 3px ridge #8a8a8a;
}
.github-btn:hover {
  color: #00f6ff;
}
.github-icon {
  font-size: 1.1em;
}
.skill-section {
  margin-top: 1em;
  display: grid;
  gap: 0.8em;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.skill-group {
  background: rgba(255,255,255,0.08);
  border: 2px dashed #8a8a8a;
  padding: 0.8em;
}
.skill-title {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #fff;
  font-size: 1.02em;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}
.badge {
  display: inline-block;
  height: 28px;
  width: auto;
  border-radius: 6px;
}
.profile-links {
  display: flex;
  gap: 0.6em;
  justify-content: center;
  margin: 0.8em 0;
}
.profile-link {
  display: inline-block;
  padding: 0.25em 0.6em;
  background: #4b4b4b;
  color: #fff;
  text-decoration: none;
  border: 2px ridge #8a8a8a;
  font-size: 0.95em;
}
.profile-link:hover {
  color: #00f6ff;
}
.discord-presence {
  display: block;
  margin-top: 0.8em;
}
.discord-presence img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 2px solid #666;
  border-radius: 8px;
}
a.back {
  display: inline-block;
  margin: 1em;
  font-size: 1.3em;
  border: 6px ridge #bbb;
  background: #fff;
  color: blue;
  text-decoration: none;
  padding: 0.1em 0.4em;
}
.date {
  color: #7cff7c;
  font-size: 0.8em;
  margin-left: 0.5em;
}
.friends-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.friends-board {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(17, 17, 17, 0.78);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border-radius: 0;
  pointer-events: auto;
}
.page-title,
a.back {
  position: relative;
  z-index: 20;
}
.friend-card {
  position: absolute;
  display: inline-block;
  min-width: 220px;
  max-width: 280px;
  width: auto;
  padding: 2px;
  border-radius: 16px;
  color: #222;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  will-change: left, top;
  overflow: hidden;
  isolation: isolate;
  background: conic-gradient(from 0deg, red, yellow, lime, cyan, blue, magenta, red);
  animation: rgbSpin 2.8s linear infinite;
}
.friend-card::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d0d0df2, rgba(24, 24, 24, 0.9));
  z-index: 0;
}
.friend-card > * {
  position: relative;
  z-index: 1;
  padding: 0.9em;
}
.friend-card:hover {
  transform: scale(1.03);
  z-index: 5;
}
.friend-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.6em;
  font-size: 1.6em;
  background: linear-gradient(135deg, #ff6b81, #ffb347);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}
.friend-avatar img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  display: block;
}
.friend-name {
  margin: 0 0 0.25em;
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
}
.friend-description {
  margin: 0;
  font-size: 0.82em;
  line-height: 1.45;
  color: #d8d8d8;
}
.friend-link {
  display: inline-block;
  margin-top: 0.7em;
  font-size: 0.9em;
  color: #0f5bff;
  text-decoration: none;
  font-weight: 600;
}
.friend-link:hover {
  text-decoration: underline;
}
@keyframes rgbSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1000px) {
  .profile-card {
    float: none;
    margin: 1.2em 2em;
    width: 200px;
    transform: none;
  }
}
