:root { --background: hsl(0 0% 4%); --foreground: hsl(0 0% 95%); --card: hsl(0 0% 6%); --secondary: hsl(0 0% 12%); --muted: hsl(0 0% 12%); --muted-foreground: hsl(0 0% 55%); --accent: hsl(0 0% 15%); --accent-foreground: hsl(0 0% 95%); --border: hsl(0 0% 15%); --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
* { box-sizing: border-box; border-color: var(--border); }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }

.entry { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; cursor: pointer; transition: opacity .8s ease; }
.entry.hide { opacity: 0; pointer-events: none; }
.entry-logo { max-width: 500px; width: 80vw; object-fit: contain; }
.entry-text { margin: 0; font-size: 1.125rem; font-weight: 300; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-foreground); animation: pulse-soft 2s ease-in-out infinite; }
@keyframes pulse-soft { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.legal-link { background: none; border: none; padding: 0; font-size: 10px; color: hsl(0 0% 55% / .4); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.legal-link:hover { color: hsl(0 0% 55% / .7); }

.warning-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: hsl(47 96% 53% / .95); color: #000; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px 32px; }
@keyframes slide-down { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-right: 10px; border: 2px solid rgba(255,255,255,.2); }
.nav-name { font-size: 15px; font-weight: 600; letter-spacing: .05em; }

#main { position: relative; z-index: 10; animation: fade-in 1s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.section { max-width: 56rem; margin: 0 auto; padding: 6rem 24px; }
.section-title { font-size: 30px; font-weight: 700; text-align: center; margin: 0 0 3rem; }

.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; padding: 0 24px; }
.hero-meta { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 8px; font-size: 12px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero-heading { font-size: clamp(48px, 8vw, 72px); font-weight: 700; line-height: 1.05; margin: 0 0 16px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.rot-line { display: flex; align-items: center; justify-content: center; height: 2rem; font-size: 18px; font-family: var(--font-mono); color: var(--muted-foreground); }
.rot-badge { display: inline-flex; justify-content: center; min-width: 120px; padding: 2px 8px; color: var(--foreground); overflow: hidden; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.rot-word { display: inline-block; }
.rot-word.in { animation: rot-in .35s cubic-bezier(.22,1,.36,1) both; }
.rot-word.out { animation: rot-out .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes rot-in { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes rot-out { from { transform: translateY(0); } to { transform: translateY(-130%); } }
.type-line { height: 1.5rem; margin: 16px 0 0; font-size: 14px; font-family: var(--font-mono); color: var(--muted-foreground); }
.type-cursor { color: var(--foreground); margin-left: 1px; }
.type-cursor.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted-foreground); animation: bob 2s ease-in-out infinite; }
.scroll-hint span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; cursor: help; position: relative;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.3));
}
.badge svg { width: 100%; height: 100%; }
.badge img { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; }
.badge .badge-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #171717; border: 1px solid rgba(255,255,255,.15);
  font-size: .7rem; padding: .35rem .6rem; border-radius: 8px; white-space: nowrap;
  color: currentColor; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.badge:hover .badge-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

.glow-card { position: relative; border-radius: 20px; background: #0f0f0f; border: 1px solid rgb(255 255 255 / .12); isolation: isolate; transition: transform .2s; }
.glow-card:hover { transform: translateY(-2px); }
.glow-card::before, .glow-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s; z-index: -1; }
.glow-card:hover::before, .glow-card:hover::after { opacity: 1; }
.glow-card::before { padding: 1px; background: radial-gradient(280px circle at var(--mx,50%) var(--my,50%), var(--gc-1), transparent 65%), radial-gradient(360px circle at calc(100% - var(--mx,50%)) calc(100% - var(--my,50%)), var(--gc-2), transparent 65%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.glow-card::after { background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--gc-2) 12%, transparent), transparent 70%); }
.card-body { padding: 24px; }
.card-title { font-size: 18px; font-weight: 600; margin: 0 0 4px; text-align: center; }
.card-sub { font-size: 14px; color: var(--muted-foreground); margin: 0; text-align: center; }
.card-desc { font-size: 14px; color: var(--muted-foreground); line-height: 1.65; margin: 0; text-align: center; }
.cards-stack > * + * { margin-top: 32px; }
.about-p { max-width: 42rem; margin: 0 auto 24px; color: var(--muted-foreground); line-height: 1.75; text-align: center; white-space: pre-line; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.about-p a { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; }
.about-p a:hover { color: var(--muted-foreground); }

.links-grid {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.link-icon-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color, #fff);
  transition: all .3s ease;
  text-decoration: none;
}
.link-icon-btn:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.link-icon-btn svg {
  width: 34px;
  height: 34px;
}

/* ===== Discord banner ===== */
.discord-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 340px;
  width: 100%;
  margin: 0 auto .75rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  opacity: 1;
  transform: translateY(0);
  transition: box-shadow .3s ease;
}
.discord-banner:hover { box-shadow: 0 12px 40px rgba(88,101,242,.25); }
.db-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.db-title { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-sub { font-size: .85rem; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.dp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 96px; height: 96px;
}
.dp-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.2);
  transition: transform .3s ease;
}
.dp-avatar:hover { transform: scale(1.04); }
.dp-status-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: transparent;
}

.tl-track { position: relative; margin-bottom: 32px; }
.tl-line { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); transform: translateY(-50%); }
.tl-dots { position: relative; display: flex; justify-content: space-between; }
.tl-dot-col { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; padding: 0; color: inherit; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted-foreground); background: var(--background); transition: all .3s; }
.tl-dot-col:hover .tl-dot { border-color: var(--foreground); }
.tl-dot.active { background: var(--foreground); border-color: var(--foreground); transform: scale(1.25); }
.tl-dot.past { background: var(--muted-foreground); border-color: var(--muted-foreground); }
.tl-label { font-size: 12px; font-family: var(--font-mono); color: var(--muted-foreground); transition: color .2s; display: none; }
@media (min-width: 640px) { .tl-label { display: block; } }
.tl-label.active { color: var(--foreground); }
.tl-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.icon-btn { padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: none; color: var(--muted-foreground); display: inline-flex; transition: color .2s, border-color .2s; }
.icon-btn:hover:not(:disabled) { color: var(--foreground); border-color: var(--foreground); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: none; color: var(--muted-foreground); font-size: 14px; transition: color .2s, border-color .2s; }
.pill-btn:hover { color: var(--foreground); border-color: var(--foreground); }
.tl-body { transition: opacity .25s, transform .25s; }
.tl-counter { margin: 16px 0 0; text-align: center; font-size: 12px; font-family: var(--font-mono); color: var(--muted-foreground); }

.link-name { display: flex; align-items: baseline; gap: 8px; justify-content: center; }
.link-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.footer { padding-bottom: 7rem; }
.footer-inner { border-top: 1px solid var(--border); padding-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-id { display: flex; align-items: center; gap: 12px; }
.footer-id img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; opacity: .6; }
.footer-id span { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.footer-tagline { margin: 0; font-size: 12px; color: var(--muted-foreground); letter-spacing: .12em; text-transform: uppercase; text-align: center; }

.show-player { position: fixed; bottom: 24px; right: 24px; z-index: 50; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: hsl(0 0% 12% / .8); backdrop-filter: blur(8px); border: 1px solid var(--border); color: var(--muted-foreground); transition: color .2s; }
.show-player:hover { color: var(--foreground); }
.player { position: fixed; bottom: 24px; right: 24px; z-index: 50; border-radius: 16px; background: hsl(0 0% 12% / .8); backdrop-filter: blur(12px); border: 1px solid var(--border); width: auto; max-width: calc(100vw - 48px); transition: width .3s; }
.player.expanded { width: 380px; }
.player-top { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 8px 12px 0; }
.pl-mini-btn { background: none; border: none; padding: 2px; color: var(--muted-foreground); display: inline-flex; transition: color .2s; }
.pl-mini-btn:hover { color: var(--foreground); }
.player-main { display: flex; align-items: center; gap: 12px; padding: 4px 16px 12px; }
.player-art-wrap { flex-shrink: 0; cursor: pointer; }
.player-art { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.player.expanded .player-art { width: 64px; height: 64px; }
.spin { animation: spin 4s linear infinite; animation-play-state: paused; }
.spin.playing { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.pl-title { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player.expanded .pl-title { font-size: 14px; }
.pl-artist { margin: 0; font-size: 10px; color: var(--muted-foreground); line-height: 1.25; }
.player-controls-row { display: flex; align-items: center; gap: 6px; }
.pl-time { font-size: 10px; font-family: var(--font-mono); color: var(--muted-foreground); font-variant-numeric: tabular-nums; min-width: 28px; }
.pl-time:first-child { text-align: right; }
.range { -webkit-appearance: none; appearance: none; flex: 1; height: 14px; background: transparent; cursor: pointer; min-width: 60px; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 9999px; background: linear-gradient(to right, hsl(0 0% 95% / .6) 0%, hsl(0 0% 95% / .6) var(--fill, 0%), var(--border) var(--fill, 0%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--foreground); margin-top: -3px; opacity: 0; transition: opacity .15s; }
.range:hover::-webkit-slider-thumb { opacity: 1; }
.range::-moz-range-track { height: 4px; border-radius: 9999px; background: var(--border); }
.range::-moz-range-progress { height: 4px; border-radius: 9999px; background: hsl(0 0% 95% / .6); }
.range::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: var(--foreground); }
.player-buttons { display: flex; align-items: center; gap: 6px; }
.pl-btn { background: none; border: none; padding: 4px; color: var(--muted-foreground); display: inline-flex; align-items: center; justify-content: center; transition: color .2s; }
.pl-btn:hover { color: var(--foreground); }
.pl-btn.play { color: var(--foreground); }
.vol-wrap { display: flex; align-items: center; gap: 4px; color: var(--muted-foreground); }
.range.vol { width: 54px; min-width: 54px; flex: none; }
.ic-collapse { display: none; }
.player.expanded .ic-expand { display: none; }
.player.expanded .ic-collapse { display: block; }

.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .6); backdrop-filter: blur(4px); padding: 24px; }
#coverModal { cursor: zoom-out; background: rgb(0 0 0 / .85); }
#coverModalImg { max-width: 80vmin; max-height: 80vmin; border-radius: 16px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.modal-box { width: 100%; max-width: 28rem; border-radius: 14px; border: 1px solid var(--border); background: hsl(0 0% 12% / .95); backdrop-filter: blur(12px); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-title { margin: 0; font-size: 16px; font-weight: 700; }
.modal-message { margin: 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.65; }

.spark { position: fixed; z-index: 300; pointer-events: none; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: spark-fade .6s ease-out forwards; }
@keyframes spark-fade { from { opacity: .9; transform: translate(0,0) scale(1); } to { opacity: 0; transform: translate(var(--sx,0), var(--sy,14px)) scale(.2); } }
.click-spark { position: fixed; z-index: 300; pointer-events: none; width: 8px; height: 2px; border-radius: 2px; background: #ddd; animation: click-burst .35s ease-out forwards; }
@keyframes click-burst { from { opacity: 1; transform: rotate(var(--ang)) translateX(4px) scaleX(1); } to { opacity: 0; transform: rotate(var(--ang)) translateX(26px) scaleX(.3); } }
.fade-in { animation: fade-in .4s ease both; }
