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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand {
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(255,255,255,0.7);
}

.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px #fff; }

/* HERO / BANNER */
.hero { position: relative; width: 100%; }

.banner {
  width: 100%;
  height: 300px;
  background: linear-gradient(120deg, #0a0a0a, #1c1c1c, #050505, #151515);
  background-size: 300% 300%;
  animation: bannerShift 12s ease infinite;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@keyframes bannerShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-card {
  max-width: 560px;
  margin: -90px auto 0;
  padding: 45px 35px 35px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 8px 50px rgba(0, 0, 0, 0.7);
  position: relative;
}

.avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: -110px auto 16px;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #000;
  background: #111;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(255,255,255,0.4);
  animation: avatarPulse 3.5s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(255,255,255,0.35); }
  50% { box-shadow: 0 0 45px rgba(255,255,255,0.6); }
}

.decoration {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 160px;
  height: 160px;
  pointer-events: none;
}

.status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #747f8d;
  border: 3px solid #000;
}
.status-dot.online { background: #3ba55d; }
.status-dot.idle { background: #faa61a; }
.status-dot.dnd { background: #ed4245; }

.name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.tag {
  color: #ffffffcc;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.tm { font-size: 0.7rem; vertical-align: super; }

.bio {
  color: #e8e8e8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(255,255,255,0.25);
}

.account-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 8px 18px;
  min-width: 120px;
}

.stat-label {
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 3px;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.custom-status {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  padding: 8px 18px;
  margin: 0 auto 14px;
  max-width: 320px;
  width: fit-content;
}
.status-emoji { font-size: 1rem; }
.status-text {
  font-size: 0.9rem;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-box {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 10px 16px;
  margin: 0 auto 24px;
  max-width: 320px;
}
.music-icon { font-size: 1.3rem; }
.music-info { display: flex; flex-direction: column; text-align: right; overflow: hidden; }
.music-track { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { font-size: 0.75rem; color: #bbb; }

.links.icon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
  transform: translateY(-3px) scale(1.08);
}

/* UPDATES */
.updates-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.update-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: 3px solid #fff;
  border-radius: 14px;
  padding: 22px 26px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.update-card:hover {
  transform: translateX(-4px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.update-date {
  display: inline-block;
  font-size: 0.78rem;
  color: #bbb;
  background: rgba(255,255,255,0.08);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.update-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.update-card p { color: #ccc; line-height: 1.7; font-size: 0.92rem; }

/* FREE WRITING */
.write-box {
  max-width: 700px;
  margin: 40px auto 0;
}

.write-box textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.8;
  resize: vertical;
}

.write-box textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.write-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.btn-outline {
  background: transparent;
}

.write-status {
  font-size: 0.85rem;
  color: #9effa0;
}

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 6% 40px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 0 0 14px rgba(255,255,255,0.6);
}

.section-sub {
  text-align: center;
  color: #bbb;
  margin-bottom: 30px;
}

/* ABOUT */
.about-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.15);
}

.about-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-shadow: 0 0 12px #fff;
}

.about-card h3 { margin-bottom: 10px; }
.about-card p { color: #ccc; line-height: 1.7; font-size: 0.95rem; }

/* GAMES */
.games-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.game-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.game-card h3 { margin-bottom: 6px; }
.game-desc { color: #aaa; font-size: 0.85rem; margin-bottom: 14px; }

.game-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #ddd;
}

.game-area {
  position: relative;
  width: 100%;
  height: 260px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.orb {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #999);
  box-shadow: 0 0 18px rgba(255,255,255,0.8);
  cursor: pointer;
  animation: orbPop 0.9s ease-out forwards;
}

@keyframes orbPop {
  0% { transform: scale(0); opacity: 0; }
  15% { transform: scale(1.1); opacity: 1; }
  85% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.4); opacity: 0; }
}

#snake-canvas {
  background: #050505;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  margin-bottom: 16px;
}

.btn-neon {
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-neon:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 25px rgba(255,255,255,0.7);
}

/* FEEDBACK */
.feedback-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-form input,
.feedback-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder { color: #999; }

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.35);
}

.fb-status {
  text-align: center;
  color: #9effa0;
  font-size: 0.9rem;
  min-height: 20px;
}

/* BADGES */
.badges-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.badges-status,
.badges-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 30px 0;
}

.badge-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(255,255,255,0.12);
}

.badge-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.35));
}

.badge-title-wrap { min-width: 0; }

.badge-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-rarity {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}

.badge-rarity span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.badge-rarity span.filled { background: var(--rarity-color, #fff); box-shadow: 0 0 6px var(--rarity-color, #fff); }

.badge-desc {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.6;
}

.badge-info {
  font-size: 0.78rem;
  color: #bbb;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px 10px;
  width: fit-content;
}

.badge-progress-wrap { margin-top: 4px; }

.badge-progress-bar {
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.badge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8f8fff, #fff);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.badge-progress-label {
  font-size: 0.72rem;
  color: #999;
  margin-top: 5px;
}

/* TOOLS */
.tools-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
}

.tool-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(10px);
}

.tool-card h3 { margin-bottom: 6px; }
.tool-desc { color: #aaa; font-size: 0.85rem; margin-bottom: 16px; }

.tool-form {
  display: flex;
  gap: 10px;
}

.tool-form-stack { flex-direction: column; }

.tool-form input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 0;
}

.tool-form input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.tool-form input::placeholder { color: #999; }

.tool-status {
  min-height: 18px;
  font-size: 0.82rem;
  color: #9effa0;
  margin-top: 10px;
}

.tool-status.tool-error { color: #ff9e9e; }

.tool-result-box {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #ddd;
  line-height: 1.8;
}

.tool-result-box:empty { margin-top: 0; }

.tool-results {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.lookup-basic {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.lookup-presence {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
}

.lookup-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000;
  box-shadow: 0 0 14px rgba(255,255,255,0.4);
}

.lookup-username { font-weight: 700; margin-bottom: 3px; }
.lookup-status { font-size: 0.82rem; color: #bbb; }

.tool-note { color: #999; font-size: 0.82rem; margin-top: 8px; }

.avatar-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
}

.avatar-link-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-link-url {
  flex: 1;
  font-size: 0.78rem;
  color: #bbb;
  overflow-wrap: anywhere;
}

.copy-btn {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.copy-btn:hover { background: #fff; color: #000; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 50px 20px 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
}

.footer p { color: #ffffff88; font-size: 0.8rem; margin-top: 20px; }

@media (max-width: 500px) {
  .name { font-size: 1.5rem; }
  .banner { height: 200px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.8rem; }
  .badges-grid { grid-template-columns: 1fr; }
  .tool-form { flex-direction: column; }
  .lookup-presence { flex-wrap: wrap; }
  .avatar-link-box { flex-wrap: wrap; }
}
