/* =========================================================
   fonii · foniivox — all about me
   minimal. soft. a little unhinged.
   ========================================================= */

:root {
  --bg0: #120e1f;
  --bg1: #1d1733;
  --bg2: #2a1f47;
  --ink: #f4eeff;
  --ink-soft: #cabfe6;
  --ink-faint: #8d83ad;
  --accent: #b9a3ff;
  --accent-2: #ffd98a;   /* the crescent yellow */
  --pink: #ffb3d1;
  --card: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.12);
  --glow: rgba(185,163,255,.45);
  --font: "Quicksand", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  /* plushcore cursors (puffy pastel stars) — used everywhere, no system cursor */
  --cur: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3E%3Cpath%20d='M16%202Q19%2013%2030%2016Q19%2019%2016%2030Q13%2019%202%2016Q13%2013%2016%202Z'%20fill='%23ffb3d1'%20stroke='%23ffffff'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='11.5'%20cy='11.5'%20r='1.5'%20fill='%23ffffff'/%3E%3C/svg%3E") 16 16;
  --cur-ptr: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3E%3Cpath%20d='M16%202Q19%2013%2030%2016Q19%2019%2016%2030Q13%2019%202%2016Q13%2013%2016%202Z'%20fill='%23ffd98a'%20stroke='%23ffffff'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='11.5'%20cy='11.5'%20r='1.5'%20fill='%23ffffff'/%3E%3C/svg%3E") 16 16;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(70% 60% at 75% 8%, #41306e 0%, transparent 60%),
    radial-gradient(55% 55% at 12% 88%, #5a3370 0%, transparent 60%),
    radial-gradient(40% 50% at 95% 95%, #2c4a6e 0%, transparent 60%),
    linear-gradient(160deg, var(--bg0), var(--bg1) 55%, var(--bg0));
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- plushcore cursor (stars everywhere — never the system cursor) ---------- */
* { cursor: var(--cur), auto; }
a, button, .tag, .soc-btn, .tab, .audio-btn, .shape, .enter, label, input[type="range"], .pet { cursor: var(--cur-ptr), auto; }

/* ---------- ambient overlays ---------- */
#stars { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 340px; height: 340px; z-index: -1; display: none;
  background: radial-gradient(circle, var(--glow), transparent 65%); filter: blur(6px); pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 38%, transparent 52%, rgba(0,0,0,.55));
}
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3d glass shapes + orbs ---------- */
.scene { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; transition: transform .25s ease-out; }
.shape { position: absolute; perspective: 800px; animation: floatY 13s ease-in-out infinite; pointer-events: auto; cursor: pointer; }
.sh1 { top: 13%; left: 7%;  --s: 96px; animation-duration: 14s; }
.sh2 { top: 60%; left: 12%; --s: 60px; animation-duration: 17s; }
.sh3 { top: 20%; right: 8%; --s: 80px; animation-duration: 15s; }
.sh4 { bottom: 16%; right: 24%; --s: 52px; animation-duration: 19s; }
.cube { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: spin3d 24s linear infinite; transition: filter .3s; }
.sh2 .cube { animation-duration: 30s; animation-direction: reverse; }
.sh3 .cube { animation-duration: 27s; }
.sh4 .cube { animation-duration: 22s; animation-direction: reverse; }
.shape:hover .cube { filter: drop-shadow(0 0 16px var(--glow)); }
.cube .face {
  position: absolute; width: var(--s); height: var(--s);
  background: linear-gradient(135deg, rgba(185,163,255,.20), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 26px rgba(185,163,255,.20);
  backface-visibility: visible; transition: border-color .3s, box-shadow .3s;
}
.shape:hover .cube .face { border-color: rgba(255,255,255,.55); box-shadow: inset 0 0 34px rgba(185,163,255,.4); }
.cube.wire .face { background: none; border-color: rgba(255,217,138,.5); box-shadow: none; }
.cube .face:nth-child(1) { transform: rotateY(0deg)   translateZ(calc(var(--s) / 2)); }
.cube .face:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .face:nth-child(3) { transform: rotateY(90deg)  translateZ(calc(var(--s) / 2)); }
.cube .face:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .face:nth-child(5) { transform: rotateX(90deg)  translateZ(calc(var(--s) / 2)); }
.cube .face:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

/* crack open + reform */
.shape.cracked { animation: burst .55s var(--ease) forwards !important; pointer-events: none; }
.shape.reform  { animation: reform .6s var(--ease) both !important; }
@keyframes burst  { 0% { transform: scale(1); opacity: 1; } 35% { transform: scale(1.4) rotate(10deg); opacity: 1; } 100% { transform: scale(.12) rotate(-16deg); opacity: 0; } }
@keyframes reform { 0% { transform: scale(.12); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.orb { position: absolute; border-radius: 50%; filter: blur(18px); opacity: .45; animation: floatY 15s ease-in-out infinite; pointer-events: none; }
.orb1 { width: 130px; height: 130px; top: 68%; right: 11%; background: radial-gradient(circle at 35% 30%, var(--accent-2), transparent 70%); animation-duration: 16s; }
.orb2 { width: 90px;  height: 90px;  top: 14%; left: 42%; background: radial-gradient(circle at 35% 30%, var(--pink), transparent 70%); animation-duration: 19s; }
.orb3 { width: 170px; height: 170px; bottom: 6%; left: 26%; background: radial-gradient(circle at 35% 30%, var(--accent), transparent 70%); animation-duration: 21s; }
.orb4 { width: 110px; height: 110px; top: 38%; left: 2%; background: radial-gradient(circle at 35% 30%, #8ad7ff, transparent 70%); opacity: .35; animation-duration: 23s; }
.orb5 { width: 80px;  height: 80px;  top: 6%; right: 30%; background: radial-gradient(circle at 35% 30%, var(--accent), transparent 70%); opacity: .35; animation-duration: 18s; }

@keyframes spin3d { from { transform: rotateX(0) rotateY(0) rotateZ(0); } to { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* quote pops + shards from cracked cubes */
.quote-pop {
  position: fixed; z-index: 55; pointer-events: none; white-space: nowrap;
  font-family: var(--font); font-weight: 700; font-size: .95rem; color: var(--ink);
  padding: .55em 1.05em; border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 20px var(--glow);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.quote-pop.show { opacity: 1; transform: translateY(-8px) scale(1); }
.shard {
  position: fixed; z-index: 54; width: 8px; height: 8px; border-radius: 2px; pointer-events: none;
  transform: translate(-50%, -50%); animation: shardFly .8s var(--ease) forwards;
}
@keyframes shardFly { to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(240deg); opacity: 0; } }

/* ---------- enter screen ---------- */
.enter {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: pointer;
  background: rgba(12,9,22,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: opacity .8s var(--ease), visibility .8s;
}
.enter.gone { opacity: 0; visibility: hidden; }
.enter-inner { text-align: center; animation: rise 1s var(--ease) both; }
.enter-pfp {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line);
  box-shadow: 0 0 0 5px rgba(185,163,255,.18), 0 14px 50px rgba(0,0,0,.5);
  animation: float 5s ease-in-out infinite;
}
.enter-text { margin-top: 22px; font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; }
.enter-sub { margin-top: 6px; color: var(--accent); font-size: .85rem; letter-spacing: .14em; }

/* ---------- card ---------- */
.wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.wrap::before {
  content: ""; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,163,255,.28), transparent 65%); filter: blur(46px);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .95; transform: translate(-50%, -50%) scale(1.12); } }
.card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 380px; text-align: center; padding: 38px 30px 30px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(255,255,255,.06);
  transition: transform .15s ease-out;
  animation: pop .8s var(--ease) both;
}
/* edge highlight — the glass rim */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 38%, transparent 62%, rgba(255,255,255,.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
/* slow specular sweep */
.card::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 55%; height: 100%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg); animation: sheen 8s ease-in-out infinite;
}
.card > * { position: relative; z-index: 2; }
@keyframes sheen { 0%, 62% { left: -70%; } 100% { left: 140%; } }

.pfp-wrap { position: relative; width: 140px; margin: 0 auto 18px; }
.pfp-wrap::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--pink), var(--accent-2), var(--accent));
  filter: blur(8px); opacity: .7; animation: spin 8s linear infinite;
}
.pfp {
  position: relative; width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.85); box-shadow: 0 12px 36px rgba(0,0,0,.45); display: block;
}

.name {
  font-size: 2.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1;
  background: linear-gradient(120deg, #fff, var(--accent) 50%, var(--pink) 80%, var(--accent-2));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nameShift 7s ease infinite;
  filter: drop-shadow(0 2px 18px var(--glow));
}
@keyframes nameShift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.tag {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 12px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .95rem; color: var(--ink);
  background: rgba(88,101,242,.16); border: 1px solid rgba(120,130,255,.35); border-radius: 999px;
  padding: .5em 1em; transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.tag:hover { transform: translateY(-2px); background: rgba(88,101,242,.28); box-shadow: 0 8px 24px rgba(88,101,242,.35); }
.tag .dc { width: 20px; height: 20px; color: #aab4ff; }
.tag-copy { font-size: .72rem; color: var(--ink-faint); letter-spacing: .06em; text-transform: lowercase; }
.tag.copied .tag-copy { color: var(--accent-2); }

.bio { margin-top: 20px; color: var(--ink-soft); line-height: 1.6; font-size: 1.02rem; min-height: 3.3em; }
.bio b { color: var(--accent); font-weight: 700; text-shadow: 0 0 18px var(--glow); }
.type-caret { display: inline-block; margin-left: 1px; color: var(--accent); font-weight: 400; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- socials ---------- */
.socials { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.soc-btn {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, color .25s, background .25s;
}
.soc-btn svg { width: 24px; height: 24px; }
.soc-btn:hover { transform: translateY(-3px) scale(1.06); }
.soc-btn.roblox:hover  { color: #fff; border-color: #ff5151; background: rgba(255,81,81,.16); box-shadow: 0 10px 26px rgba(255,81,81,.35); }
.soc-btn.discord:hover { color: #fff; border-color: #7782ff; background: rgba(88,101,242,.18); box-shadow: 0 10px 26px rgba(88,101,242,.4); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 22px 0 16px; }

/* ---------- tabs ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.tab {
  font-family: var(--font); font-weight: 600; font-size: .85rem; cursor: pointer;
  color: var(--ink-faint); background: none; border: 0; padding: .5em 1.15em; border-radius: 999px;
  transition: color .25s, background .25s;
}
.tab:hover { color: var(--ink-soft); }
.tab.is-active { background: var(--accent); color: #1a1430; box-shadow: 0 6px 18px var(--glow); }

.tab-body { margin-top: 16px; min-height: 118px; overflow: hidden; }
.panel { display: none; }
.panel.is-active { display: block; animation: slideIn .42s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.about-text { color: var(--ink-soft); line-height: 1.6; font-size: .98rem; }
.about-text + .about-text { margin-top: 12px; }
.fun-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fun-list li {
  color: var(--ink-soft); font-size: 1rem; display: flex; align-items: center; gap: .55em; justify-content: center;
}
.fun-list li::before { content: "✦"; color: var(--accent-2); font-size: .9em; }

.now-playing {
  display: inline-flex; align-items: center; gap: .6em; color: var(--ink-faint);
  font-size: .82rem; letter-spacing: .02em;
}
.np-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.np-eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 4px; animation: eq 1s ease-in-out infinite; }
.np-eq i:nth-child(2) { animation-delay: .2s; }
.np-eq i:nth-child(3) { animation-delay: .4s; }
.np-eq i:nth-child(4) { animation-delay: .6s; }
body.paused .np-eq i { animation-play-state: paused; height: 4px; }

/* ---------- audio bar ---------- */
.audio-bar {
  position: fixed; bottom: 20px; right: 20px; z-index: 40; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 8px;
  backdrop-filter: blur(14px); opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.audio-bar.show { opacity: 1; transform: none; }
.audio-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--ink); cursor: pointer; transition: background .2s, transform .2s; display: grid; place-items: center; }
.audio-btn:hover { background: rgba(255,255,255,.16); transform: scale(1.06); }
.audio-btn svg { width: 19px; height: 19px; display: block; }
.audio-vol { width: 80px; accent-color: var(--accent); cursor: pointer; }

/* ---------- web pet (shrimp) ---------- */
.pet { position: fixed; left: 0; top: 0; z-index: 45; cursor: var(--cur-ptr), grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: left, top; }
.pet.grab { cursor: var(--cur-ptr), grabbing; }
.pet-sprite { transform-origin: 50% 100%; transition: transform .05s linear; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.pet-sprite svg { width: 56px; height: 56px; display: block; }
.pet-body { transform-origin: 50% 100%; }
.pet.walking .pet-body { animation: walkbob .42s ease-in-out infinite; }
.pet.grab .pet-body { animation: wiggle .35s ease-in-out infinite; }
@keyframes walkbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes wiggle  { 0%, 100% { transform: rotate(-7deg) scale(1.08); } 50% { transform: rotate(7deg) scale(1.08); } }

/* ---------- now playing + visualizer ---------- */
.np-note { color: var(--accent); font-size: 1rem; }
.viz { width: 100%; height: 42px; margin-top: 12px; display: block; }

/* ---------- fonii's clock ---------- */
.clock {
  position: fixed; top: 16px; left: 16px; z-index: 40; display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font); font-weight: 600; font-size: .82rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .5em .95em .5em .8em;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.clock.show { opacity: 1; transform: none; }
.clock svg { width: 16px; height: 16px; color: var(--accent); }
.clock-time { color: var(--ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.clock-tz { font-size: .66rem; color: var(--ink-faint); letter-spacing: .1em; }

/* ---------- plushcore sparkle trail ---------- */
.spark {
  position: fixed; z-index: 4; width: 13px; height: 13px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2032%2032'%3E%3Cpath%20d='M16%202Q19%2013%2030%2016Q19%2019%2016%2030Q13%2019%202%2016Q13%2013%2016%202Z'%20fill='%23ffd98a'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: sparkPop .6s var(--ease) forwards;
}
@keyframes sparkPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(var(--r, 0deg)); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(1) rotate(var(--r, 0deg)); }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 60;
  background: var(--accent); color: #1a1430; font-weight: 700; font-size: .85rem;
  padding: .7em 1.3em; border-radius: 999px; box-shadow: 0 12px 36px var(--glow);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; }
}
@media (max-width: 440px) {
  .card { padding: 32px 22px 26px; }
  .name { font-size: 2rem; }
}
