/* =====================================================================
   t0ga.com — v2
   ===================================================================== */

/* Registered so they can animate: a spinning ring, and aurora colours
   that glide between pages instead of snapping. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --c1   { syntax: "<color>"; inherits: true;  initial-value: #3d45b8; }
@property --c2   { syntax: "<color>"; inherits: true;  initial-value: #7c4dc4; }
@property --c3   { syntax: "<color>"; inherits: true;  initial-value: #1c6b8a; }

:root {
  color-scheme: dark;

  --bg:    #06070a;
  --ink:   #eceef5;
  --ink-2: #a7acbd;
  --ink-3: #6d7285;
  --ink-4: #41455a;
  --line:  rgba(255,255,255,.07);
  --line-2:rgba(255,255,255,.12);

  --accent:   #9aa8ff;
  --accent-2: #7ee0f0;
  --accent-3: #c4a6ff;

  --green: #3fbf7f;
  --amber: #f0a73a;
  --red:   #ef5a5a;
  --grey:  #6c7384;

  --ease:   cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.3, 1.25, .4, 1);
  --soft:   cubic-bezier(.4, 0, .2, 1);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1040px;
  --pad: clamp(18px, 5vw, 40px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ================================================================= base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: --c1 1.4s var(--soft), --c2 1.4s var(--soft), --c3 1.4s var(--soft);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0a0b12; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* Each page tints the aurora its own way. */
body[data-page="home"]       { --c1: #3d45b8; --c2: #7c4dc4; --c3: #1c6b8a; }
body[data-page="links"]      { --c1: #2f4cb0; --c2: #1f7f99; --c3: #5b3fb0; }
body[data-page="collection"] { --c1: #3a3fa8; --c2: #8a5a2c; --c3: #6b3fa6; }
body[data-page="lists"]      { --c1: #2f6bb0; --c2: #2f9a86; --c3: #6b3fa6; }

/* ============================================================= aurora */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  opacity: .55;
  will-change: transform;
}
.b1 {
  width: 70vmax; height: 70vmax; left: -18vmax; top: -30vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c1) 70%, transparent), transparent);
  animation: drift1 28s ease-in-out infinite;
}
.b2 {
  width: 60vmax; height: 60vmax; right: -22vmax; top: -12vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c2) 55%, transparent), transparent);
  animation: drift2 34s ease-in-out infinite;
}
.b3 {
  width: 55vmax; height: 55vmax; left: 20vmax; bottom: -38vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c3) 50%, transparent), transparent);
  animation: drift3 40s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(6vmax, 5vmax) scale(1.08) } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-5vmax, 7vmax) scale(1.1) } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-7vmax, -4vmax) scale(1.05) } }

.spot {
  position: absolute; width: 640px; height: 640px; left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154,168,255,.07), transparent);
  transform: translate3d(var(--sx, -999px), var(--sy, -999px), 0) translate(-50%, -50%);
  transition: opacity .6s var(--soft);
}
.grain {
  position: absolute; inset: -50%; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(3,4,6,.75) 100%);
}

/* =============================================================== glass */
.pill {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 30px -12px rgba(0,0,0,.65);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: 999px;
}

/* ============================================================== chrome */
.chrome {
  position: fixed; z-index: 40;
  top: calc(var(--safe-t) + 16px); left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.counter { justify-self: start; }
.audio   { justify-self: end; }

.counter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  font: 500 12.5px/1 var(--mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.counter svg { width: 15px; height: 15px; fill: currentColor; opacity: .8; }

/* tabs */
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; }
.tabs a {
  position: relative; z-index: 1;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink-3);
  transition: color .35s var(--soft);
}
.tabs a:hover { color: var(--ink-2); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tab-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 14px -6px rgba(0,0,0,.6);
  transition: transform .6s var(--spring), width .6s var(--spring);
}
.tab-ink.no-anim { transition: none; }

/* audio */
.audio { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; }
.audio-btn { display: grid; place-items: center; width: 26px; height: 26px; color: var(--ink-2); transition: color .3s var(--soft); }
.audio-btn svg { width: 17px; height: 17px; fill: currentColor; }
.audio-btn:hover { color: var(--ink); }
.audio-btn[aria-pressed="true"] { color: var(--accent); }
.audio-btn .ico-loud { display: none; }
.audio-btn[aria-pressed="true"] .ico-loud  { display: block; }
.audio-btn[aria-pressed="true"] .ico-muted { display: none; }
.vol { -webkit-appearance: none; appearance: none; width: 76px; height: 16px; background: none; cursor: pointer; }
.vol::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill, 39%), rgba(255,255,255,.14) var(--fill, 39%));
}
.vol::-moz-range-track    { height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); }
.vol::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--accent); }
.vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transition: transform .2s var(--soft);
}
.vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.vol:hover::-webkit-slider-thumb, .vol:focus-visible::-webkit-slider-thumb { transform: scale(1.25); }
.vol:focus-visible { outline: none; }

/* =========================================================== page system */
main { position: relative; z-index: 1; }
.page { min-height: 100svh; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 128px var(--pad) 120px; }

/* View Transitions: only the page content crossfades; chrome and aurora stay put. */
.page:not([hidden]) { view-transition-name: page; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(page) { animation: vt-out .32s var(--soft) both; }
::view-transition-new(page) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vt-in  { from { opacity: 0; transform: scale(1.015) translateY(10px); filter: blur(8px); } }

/* Staggered entrances. Invisible only once JS has proven it can reveal them. */
.js [data-in] { opacity: 0; }
.page.is-in [data-in] {
  opacity: 1;
  /* backwards, not both: once finished, the element's own transform (hover
     lift, magnetism) takes over instead of being pinned to the last frame. */
  animation: rise 1s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 75ms + 80ms);
}
.page.is-done [data-in] { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
[data-in="1"]{--i:1} [data-in="2"]{--i:2} [data-in="3"]{--i:3} [data-in="4"]{--i:4}
[data-in="5"]{--i:5} [data-in="6"]{--i:6} [data-in="7"]{--i:7} [data-in="8"]{--i:8}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ================================================================= home */
.stage {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 110px 20px 90px;
  overflow: hidden;
}
.stage-items { position: absolute; inset: 0; pointer-events: none; }

/* position + parallax  >  entrance  >  rotation  >  float */
.st {
  position: absolute;
  transform: translate(-50%, -50%) translate3d(calc(var(--px, 0) * var(--depth, 0) * 1px), calc(var(--py, 0) * var(--depth, 0) * 1px), 0);
}
.st-in  { transform-origin: center; }
.st-rot { transform: rotate(var(--r, 0deg)); }
.st-img {
  display: block; width: 100%; height: auto;
  border-radius: var(--rad, 14px);
  opacity: var(--op, 1);
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04);
  user-select: none; -webkit-user-drag: none;
}
.st.float .st-img { animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-11px) rotate(.6deg) } }
.page.is-in .st-in { opacity: 1; animation: st-in 1.2s var(--ease) backwards; animation-delay: calc(420ms + var(--si, 0) * 70ms); }
.js .st-in { opacity: 0; }
.page.is-done .st-in { animation: none; opacity: 1; }
@keyframes st-in { from { opacity: 0; transform: scale(.82); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

.profile { position: relative; z-index: 50; text-align: center; max-width: 34rem; }

.avatar-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 26px; }
.avatar {
  position: relative; z-index: 2;
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; background: rgba(255,255,255,.05);
  opacity: 0; transition: opacity .7s var(--soft);
}
.avatar.loaded { opacity: 1; }
.avatar-ring {
  position: absolute; inset: -5px; z-index: 1; border-radius: 50%;
  background: conic-gradient(from var(--spin), var(--accent), var(--accent-3), var(--accent-2), var(--accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: spin 8s linear infinite;
}
.avatar-ring::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: inherit; filter: blur(22px); opacity: .45;
  -webkit-mask: none; mask: none;
}
@keyframes spin { to { --spin: 360deg; } }
.status {
  position: absolute; z-index: 3; right: 4px; bottom: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 4px solid var(--bg); background: var(--grey);
  transition: background .5s var(--soft);
}
.status[data-status="online"]  { background: var(--green); }
.status[data-status="idle"]    { background: var(--amber); }
.status[data-status="dnd"]     { background: var(--red); }
.status[data-status="online"]::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green); animation: ping 2.4s var(--soft) infinite;
}
@keyframes ping { from { transform: scale(.8); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }

.name {
  font-size: clamp(3.1rem, 10vw, 5.4rem);
  font-weight: 600; letter-spacing: -.06em; line-height: .95;
  padding: 0 .04em .06em;
}
.name .ch {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 25%, #b8bfe8 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .name .ch { opacity: 0; }
.page.is-in .name .ch { opacity: 1; animation: letter 1.1s var(--ease) backwards; animation-delay: calc(160ms + var(--ci) * 70ms); }
.page.is-done .name .ch { animation: none; opacity: 1; }
@keyframes letter {
  from { opacity: 0; transform: translateY(.35em) rotate(4deg); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.handle { margin-top: 12px; color: var(--ink-3); font: 500 13px/1.4 var(--mono); letter-spacing: .01em; }
.badges { display: inline-flex; gap: 4px; vertical-align: -2px; }
.badges:not(:empty) { margin-left: 6px; }
.badges svg { width: 15px; height: 15px; fill: var(--accent); }

.activity {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 6px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: 12.5px; color: var(--ink-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.activity.playing { color: var(--accent); border-color: rgba(154,168,255,.25); }
.activity .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.activity .eq i { width: 2px; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.activity .eq i:nth-child(1) { height: 5px; }
.activity .eq i:nth-child(2) { height: 10px; animation-delay: .2s; }
.activity .eq i:nth-child(3) { height: 7px; animation-delay: .4s; }
@keyframes eq { 0%,100% { transform: scaleY(.35) } 50% { transform: scaleY(1) } }

.bio {
  margin: 22px auto 0; max-width: 28rem;
  color: var(--ink-2); font-size: 16px; line-height: 1.7;
  text-wrap: pretty; white-space: pre-wrap;
}
.bio:empty { display: none; }

.leave {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 34px; padding: 7px 20px 7px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 40px -16px rgba(0,0,0,.8);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform .5s var(--ease), border-color .4s var(--soft), background .4s var(--soft);
}
.leave:hover { border-color: rgba(154,168,255,.35); background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); }
.leave-ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 6px 18px -6px rgba(154,168,255,.8);
}
.leave-ico svg { width: 16px; height: 16px; fill: #0b0c14; }
.leave-arrow { color: var(--ink-3); transition: transform .4s var(--ease), color .3s; }
.leave:hover .leave-arrow { transform: translateX(4px); color: var(--ink); }

/* =========================================================== page heads */
.page-head { margin-bottom: 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.page-title {
  margin-top: 16px;
  font-size: clamp(2.3rem, 6.5vw, 3.9rem);
  font-weight: 600; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #aeb5dc 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.page-sub { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.page-sub .sep { margin: 0 6px; opacity: .5; }
.sub-title { margin: 56px 0 18px; font-size: 13px; font-weight: 500; color: var(--ink-3); font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ================================================================ links */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.link {
  --brand: var(--accent);
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s var(--soft), background .4s var(--soft);
}
.link::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--brand) 18%, transparent), transparent 70%);
  opacity: 0; transition: opacity .45s var(--soft);
}
.link:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand) 35%, transparent); }
.link:hover::before { opacity: 1; }
.link-ico {
  position: relative; flex: none;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: color-mix(in oklab, var(--brand) 13%, rgba(255,255,255,.02));
  border: 1px solid color-mix(in oklab, var(--brand) 24%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.link-ico svg { width: 21px; height: 21px; fill: var(--brand); }
.link-text { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.link-name { font-size: 15px; font-weight: 500; letter-spacing: -.015em; }
.link-handle { font: 12.5px/1.3 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-arrow {
  position: relative; margin-left: auto; flex: none;
  color: var(--ink-4); font-size: 17px;
  transition: transform .45s var(--ease), color .35s var(--soft);
}
.link:hover .link-arrow { transform: translate(3px, -3px); color: var(--ink); }

/* =========================================================== collection */
.value {
  position: relative; overflow: hidden;
  padding: clamp(28px, 6vw, 52px) clamp(22px, 5vw, 48px);
  border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.8);
}
.value-glow {
  position: absolute; left: 50%; top: -55%; width: 90%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(154,168,255,.22), transparent);
  pointer-events: none;
}
.value-label { position: relative; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.value-figure {
  position: relative; margin-top: 16px;
  font-size: clamp(3rem, 13vw, 6rem);
  font-weight: 600; letter-spacing: -.06em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #c1c7ee 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.value-figure .cur { font-size: .48em; vertical-align: .62em; margin-right: .06em; opacity: .55; }
.stats { position: relative; display: flex; justify-content: center; gap: clamp(28px, 9vw, 72px); margin-top: 30px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-n { font: 500 22px/1 var(--mono); font-variant-numeric: tabular-nums; }
.stat-l { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.flag {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(239,90,90,.35); color: var(--red); border-radius: 999px;
}

.holdings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)); gap: 14px; }
.holding { perspective: 900px; }
.holding-in {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .7s var(--ease), border-color .4s var(--soft), box-shadow .5s var(--soft);
}
.holding.tilting .holding-in { transition: transform .1s linear, border-color .4s var(--soft), box-shadow .5s var(--soft); }
.holding:hover .holding-in { border-color: var(--line-2); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9); }
.holo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.14) 44%, rgba(154,168,255,.22) 50%, rgba(126,224,240,.16) 56%, transparent 72%);
  background-size: 260% 260%;
  background-position: var(--hx, 50%) var(--hy, 50%);
  mix-blend-mode: color-dodge;
  opacity: 0; transition: opacity .45s var(--soft);
}
.holding.tilting .holo { opacity: 1; }
.h-thumb {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(154,168,255,.08), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.h-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 18px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.55)); }
.h-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.h-cat { font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.h-name { font-size: 14px; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; }
.h-set { font-size: 12px; color: var(--ink-3); }
.h-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.h-value { font: 500 16px/1 var(--mono); font-variant-numeric: tabular-nums; }
.h-meta { display: flex; gap: 8px; align-items: center; }
.h-qty { font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--ink-2); }
.h-delta { font: 500 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.h-delta.up { color: var(--green); }
.h-delta.down { color: var(--red); }

.skel {
  border-radius: 20px; min-height: 320px;
  background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%);
  background-size: 300% 100%; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0 } to { background-position: -100% 0 } }

/* ================================================================ lists */
.subtabs {
  position: relative; display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 26px;
  border-radius: 999px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button {
  position: relative; z-index: 1; flex: none;
  padding: 8px 17px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-3);
  transition: color .35s var(--soft);
}
.subtabs button:hover { color: var(--ink-2); }
.subtabs button[aria-selected="true"] { color: var(--ink); }
.sub-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .6s var(--spring), width .6s var(--spring);
}
.sub-ink.no-anim { transition: none; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.025); color: var(--ink-3);
  font: 500 12.5px/1.3 var(--sans);
  transition: color .3s var(--soft), border-color .3s var(--soft), background .3s var(--soft);
}
.chip:hover { color: var(--ink-2); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: rgba(154,168,255,.4); background: rgba(154,168,255,.12); }
.chip b { font-family: var(--mono); font-weight: 500; opacity: .55; margin-left: 5px; font-size: 11.5px; }

.titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr)); gap: 16px 14px; }
.tcard { display: flex; flex-direction: column; gap: 9px; }
.tcard-art {
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.85);
  transition: transform .55s var(--ease), border-color .4s var(--soft), box-shadow .5s var(--soft);
}
.tcard:hover .tcard-art { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 50px -20px rgba(0,0,0,.95); }
.tcard-art img { width: 100%; height: 100%; object-fit: cover; }
.tcard-art .noart { display: grid; place-items: center; height: 100%; color: var(--ink-4); font: 500 11px/1 var(--mono); }
.score {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  min-width: 26px; padding: 4px 7px; border-radius: 8px;
  background: rgba(6,7,10,.82); backdrop-filter: blur(8px);
  font: 500 12px/1 var(--mono); text-align: center;
  border: 1px solid rgba(255,255,255,.14);
}
.score.hi  { color: #8ae6b0; border-color: rgba(63,191,127,.45); }
.score.mid { color: #f3cf86; border-color: rgba(240,167,58,.4); }
.score.low { color: #f0a3a3; border-color: rgba(239,90,90,.4); }
.badge-like { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 13px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.tcard-name { font-size: 13px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-meta { font: 11.5px/1.3 var(--mono); color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stars { color: #f0c264; letter-spacing: .5px; font-size: 12px; }
.progress-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.watchlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.wl {
  display: flex; align-items: baseline; gap: 8px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.022);
  transition: border-color .3s var(--soft), background .3s var(--soft), transform .4s var(--ease);
}
.wl:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.wl-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-year { margin-left: auto; font: 11.5px/1 var(--mono); color: var(--ink-4); flex: none; }

/* tier lists */
.tier { margin-bottom: 34px; }
.tier-title { font-size: 17px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 12px; }
.tier-rows { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); }
.trow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); min-height: 78px; }
.trow:last-child { border-bottom: 0; }
.trow-label {
  flex: none; width: 74px; display: grid; place-items: center; padding: 8px;
  font: 600 17px/1.1 var(--sans); color: #0b0c14; text-align: center;
  word-break: break-word; background: var(--tc, var(--accent));
}
.trow-items { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; align-content: flex-start; }
.titem { width: 52px; height: 74px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.05); flex: none;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.8); }
.titem img { width: 100%; height: 100%; object-fit: cover; }
.trow-empty { align-self: center; color: var(--ink-4); font: 11.5px/1 var(--mono); padding-left: 4px; }

.list-empty {
  padding: 50px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 18px;
  color: var(--ink-3); font-size: 14px;
}
.list-empty b { display: block; color: var(--ink-2); font-weight: 500; font-size: 15px; margin-bottom: 5px; }
.list-err { color: var(--red); }

@media (max-width: 720px) {
  .titles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 13px 10px; }
  .tcard-name { font-size: 12px; }
  .trow-label { width: 56px; font-size: 15px; }
  .titem { width: 42px; height: 60px; }
  .subtabs { width: 100%; }
}

/* ================================================================ sheet */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(3,4,7,.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .45s var(--soft) both;
}
.sheet-panel {
  position: relative; width: min(620px, 100%); max-height: calc(100dvh - 48px); overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26,28,38,.94), rgba(13,14,20,.96));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 50px 140px -30px rgba(0,0,0,.9);
  animation: pop .6s var(--ease) both;
  overscroll-behavior: contain;
}
.sheet.is-closing .sheet-scrim { animation: fade .3s var(--soft) reverse both; }
.sheet.is-closing .sheet-panel { animation: pop-out .3s var(--soft) both; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(6px); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet-grab { display: none; }

.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 26px 0; }
.sheet-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.sheet-sub { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.icon-btn {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.05); color: var(--ink-2);
  transition: background .3s var(--soft), color .3s var(--soft), transform .4s var(--ease);
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { background: rgba(255,255,255,.1); color: var(--ink); transform: rotate(90deg); }

.sheet-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 18px; }

/* segmented control */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; padding: 9px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: color .3s var(--soft); }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg-ink {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .5s var(--spring);
}
.seg[data-mode="note"] .seg-ink { transform: translateX(100%); }

.mode { display: flex; flex-direction: column; gap: 14px; animation: mode-in .5s var(--ease); }
@keyframes mode-in { from { opacity: 0; transform: translateY(6px); } }

.canvas-wrap {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 18px; background: #0c0e14;
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 20px rgba(0,0,0,.5);
}
#pad { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.canvas-hint {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4);
  transition: opacity .4s var(--soft);
}
.canvas-hint.gone { opacity: 0; }

.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-sep { width: 1px; height: 22px; background: var(--line-2); }
.swatches, .sizes { display: flex; align-items: center; gap: 6px; }
.sw {
  width: 24px; height: 24px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .3s var(--spring), box-shadow .3s var(--soft);
}
.sw:hover { transform: scale(1.12); }
.sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); transform: scale(1.05); }
.sz { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; transition: background .25s var(--soft); }
.sz i { display: block; border-radius: 50%; background: var(--ink-2); }
.sz[aria-checked="true"] { background: rgba(255,255,255,.08); }
.sz[aria-checked="true"] i { background: var(--ink); }
.tool {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: var(--ink-3); background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: color .25s var(--soft), background .25s var(--soft), border-color .25s var(--soft);
}
.tool svg { width: 17px; height: 17px; fill: currentColor; }
.tool:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.tool[aria-pressed="true"] { color: var(--accent); border-color: rgba(154,168,255,.4); background: rgba(154,168,255,.1); }
.tool:disabled { opacity: .35; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field-l { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field-l em { font-style: normal; color: var(--ink-4); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 13px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
  font-size: 14.5px; resize: none;
  transition: border-color .25s var(--soft), background .25s var(--soft), box-shadow .25s var(--soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(154,168,255,.5); background: rgba(0,0,0,.36); box-shadow: 0 0 0 4px rgba(154,168,255,.1); }
.field textarea { line-height: 1.6; min-height: 150px; }
.count { position: absolute; right: 12px; bottom: 10px; font: 11px/1 var(--mono); color: var(--ink-4); }

.who { display: flex; flex-direction: column; gap: 12px; }
.who-name { transition: opacity .35s var(--soft), max-height .45s var(--ease); max-height: 120px; }
.who.anon .who-name { opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; }

.switch { display: inline-flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; width: fit-content; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.1); transition: background .35s var(--soft); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .45s var(--spring); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-msg { min-height: 1.2em; font-size: 13px; color: var(--red); text-align: center; }
.form-msg:empty { min-height: 0; }

.send {
  position: relative; overflow: hidden;
  display: grid; place-items: center; height: 50px; border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0b0c14; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 12px 34px -12px rgba(154,168,255,.75), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--soft), opacity .3s;
}
.send::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-100%);
}
.send:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(154,168,255,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.send:hover::after { animation: shine 1s var(--soft); }
@keyframes shine { to { transform: translateX(100%); } }
.send:disabled { opacity: .45; pointer-events: none; }
.send .spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(11,12,20,.25); border-top-color: #0b0c14; animation: rot .8s linear infinite; }
.send.busy .send-label { display: none; }
.send.busy .spinner { display: block; }
@keyframes rot { to { transform: rotate(360deg); } }

.ghost-btn {
  height: 44px; padding: 0 22px; border-radius: 13px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .3s var(--soft), color .3s var(--soft);
}
.ghost-btn:hover { background: rgba(255,255,255,.08); color: var(--ink); }

.sheet-done { padding: 34px 26px 34px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.done-mark { width: 76px; height: 76px; margin-bottom: 10px; }
.done-mark svg { width: 100%; height: 100%; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke: rgba(154,168,255,.3); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) .1s forwards; }
.done-mark path { stroke: var(--accent); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sheet-done h3 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.sheet-done p { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.sheet-done p b { color: var(--ink); font-weight: 500; font-family: var(--mono); }
.sheet-done.waiting .done-mark path { stroke: var(--amber); }
.sheet-done.waiting .done-mark circle { stroke: rgba(240,167,58,.3); }

/* ================================================================ mobile */
@media (max-width: 720px) {
  .chrome { top: calc(var(--safe-t) + 12px); grid-template-columns: 1fr 1fr; }
  .tabs {
    position: fixed; left: 50%; bottom: calc(var(--safe-b) + 14px); transform: translateX(-50%);
    z-index: 45;
  }
  .tabs a { padding: 9px 17px; font-size: 13.5px; }
  .counter { height: 34px; padding: 0 12px; }
  .audio { height: 34px; padding: 0 12px 0 6px; }
  .vol { width: 62px; }

  .wrap { padding: 96px var(--pad) 130px; }
  .stage { padding: 88px 18px 120px; }
  .avatar-wrap, .avatar { width: 112px; height: 112px; }
  .avatar-wrap { margin-bottom: 22px; }
  .bio { font-size: 15px; }
  .link-grid { grid-template-columns: 1fr; gap: 10px; }
  .holdings { grid-template-columns: 1fr 1fr; gap: 10px; }
  .h-thumb img { padding: 12px; }
  .h-body { padding: 11px 12px 13px; }
  .h-name { font-size: 13px; }
  .page-head { margin-bottom: 30px; }

  .sheet { padding: 0; place-items: end stretch; }
  .sheet-panel {
    width: 100%; max-height: calc(100dvh - 20px);
    border-radius: 26px 26px 0 0; border-bottom: 0;
    padding-bottom: var(--safe-b);
    animation: slide-up .55s var(--ease) both;
  }
  .sheet.is-closing .sheet-panel { animation: slide-down .32s var(--soft) both; }
  .sheet-grab { display: block; width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 10px auto 0; }
  .sheet-head { padding: 16px 20px 0; }
  .sheet-body { padding: 18px 20px 22px; }
  .tool-sep { display: none; }
}
@keyframes slide-up   { from { transform: translateY(100%); } }
@keyframes slide-down { to   { transform: translateY(100%); } }

@media (max-width: 360px) { .holdings { grid-template-columns: 1fr; } }

/* Hover affordances stick after a tap on touch screens. */
@media (hover: none) {
  .link:hover, .leave:hover { transform: none; }
  .link::before { display: none; }
}

/* ======================================================= reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-in], .js .name .ch, .js .st-in { opacity: 1; }
  ::view-transition-old(page), ::view-transition-new(page) { animation: none; }
}
