/* Nunu List v0.4: a livelier skin over app.css and servers.css, plus Premium, levels, hearts, the filter panel,
   the three-tap finder and the owner's animated showcase. Every animation stops under prefers-reduced-motion. */

/* ---------- tokens ---------- */
:root {
  --bg: #f6f2ea; --surface: #fffdf8; --surface-2: #efe8dc; --field-1: #e4d9c7; --field-dark: #1b1720;
  --ink: #1c1820; --muted: #625b66; --paper: #fbf7f0;
  --accent: #ff5b2e; --accent-ink: #1c0d06; --accent-soft: #ffe2d6;
  --violet: #6d4aff; --violet-ink: #ffffff; --violet-soft: #ebe5ff;
  --lime: #c6f432; --gold: #e9a800; --heart: #ff3d6e;
  --line: rgba(28, 24, 32, .08);
  --lift: 0 18px 40px -18px rgba(40, 20, 10, .28);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --focus: #1c1820;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121113; --surface: #1c1a1f; --surface-2: #28252c; --field-1: #353039; --field-dark: #0a090b;
    --ink: #f4f0f6; --muted: #aaa3b0; --paper: #f4f0f6;
    --accent: #ff7447; --accent-ink: #1c0d06; --accent-soft: #3a1c12;
    --violet: #9f8bff; --violet-ink: #120c2a; --violet-soft: #241d40;
    --gold: #ffc93d; --heart: #ff5c86; --line: rgba(255, 255, 255, .07);
    --lift: 0 18px 44px -16px rgba(0, 0, 0, .7); --focus: #f4f0f6;
  }
}
:root[data-theme="dark"] {
  --bg: #121113; --surface: #1c1a1f; --surface-2: #28252c; --field-1: #353039; --field-dark: #0a090b;
  --ink: #f4f0f6; --muted: #aaa3b0; --paper: #f4f0f6;
  --accent: #ff7447; --accent-ink: #1c0d06; --accent-soft: #3a1c12;
  --violet: #9f8bff; --violet-ink: #120c2a; --violet-soft: #241d40;
  --gold: #ffc93d; --heart: #ff5c86; --line: rgba(255, 255, 255, .07);
  --lift: 0 18px 44px -16px rgba(0, 0, 0, .7); --focus: #f4f0f6;
}

/* ---------- the page: two slow colour clouds behind everything ---------- */
body.site { position: relative; overflow-x: hidden; }
body.site::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(38vmax 30vmax at 12% 8%, var(--accent-soft), transparent 70%), radial-gradient(34vmax 28vmax at 92% 30%, var(--violet-soft), transparent 70%); /* taste-skill-ignore: ambient colour field */
  animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3vmax, 4vmax, 0) rotate(6deg); } }

/* ---------- header ---------- */
.site-bar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s; }
.site-bar.scrolled { box-shadow: 0 1px 0 var(--line); } /* taste-skill-ignore: sticky bar edge */
.wordmark .mark { transition: transform .4s var(--spring); }
.wordmark:hover .mark { transform: rotate(-8deg) scale(1.08); }
.site-links a { position: relative; font-weight: 500; }
.site-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.site-links a:hover::after, .site-links a[aria-current="page"]::after { transform: scaleX(1); }
.me-link { gap: 8px; padding-right: 10px; }
.me-ring { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--accent) var(--p), var(--surface-2) 0); flex: none; }
.me-ring .av { width: 32px; height: 32px; border: 2px solid var(--surface); box-sizing: content-box; width: 30px; height: 30px; }
.me-lv { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); letter-spacing: 0; }

/* ---------- buttons with a bit of spring ---------- */
.btn { transition: transform .25s var(--spring), background-color .18s, color .18s, box-shadow .2s; }
.site .btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 70%, transparent); background: var(--accent); color: var(--accent-ink); filter: saturate(1.15); }
.site .btn-solid:active { transform: translateY(0) scale(.96); }
.site .btn-quiet { background: var(--surface); }
.site .btn-quiet:hover { background: var(--surface-2); transform: translateY(-1px); }

/* ---------- shared bits ---------- */
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--accent); margin-bottom: 12px; }
.tag-cat { --hue: var(--accent); background: color-mix(in srgb, var(--hue) 16%, var(--surface)); color: var(--ink); gap: 6px; }
.tag-cat:hover { background: color-mix(in srgb, var(--hue) 28%, var(--surface)); }
.chip { background: var(--surface); }
.chip > span[aria-hidden] { font-size: 16px; color: inherit; }
.chip-n { font-size: 12px; color: var(--muted); }
.chip.on { background: var(--ink); color: var(--bg); }
.chip-dice:hover > span[aria-hidden] { animation: roll .6s var(--spring); }
@keyframes roll { to { transform: rotate(360deg); } }
.prem { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: #fff; background: linear-gradient(100deg, #6d4aff, #c04bff, #ff5b8a, #6d4aff); background-size: 300% 100%; animation: sheen 6s linear infinite; } /* taste-skill-ignore: Premium label */
.prem svg { width: 13px; height: 13px; fill: currentColor; }
@keyframes sheen { to { background-position: 300% 0; } }
.spot-pill, .rank-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.spot-pill { background: var(--lime); color: #1a2200; }
.rank-pill { background: var(--surface-2); color: var(--ink); }
.pill-prem { background: var(--violet-soft); color: var(--violet); }
.xp-hint { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }

/* level tiers: ring and chip colours */
.lv-t1 { --lv: #9a929f; } .lv-t2 { --lv: #2fb36b; } .lv-t3 { --lv: #3b82f6; } .lv-t4 { --lv: #8b5cf6; } .lv-t5 { --lv: #ff7a1a; } .lv-t6 { --lv: #e9a800; }
.lv { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; color: #fff; background: var(--lv); white-space: nowrap; }
.ring { display: inline-grid; place-items: center; border-radius: 50%; padding: 2px; background: conic-gradient(from 0deg, var(--lv), color-mix(in srgb, var(--lv) 35%, transparent), var(--lv)); flex: none; animation: spin 8s linear infinite; }
.ring > img, .ring > .av { animation: spin 8s linear infinite reverse; border: 2px solid var(--surface); }
@keyframes spin { to { transform: rotate(360deg); } }
.person { display: inline-flex; align-items: center; gap: 7px; min-width: 0; text-decoration: none; font-weight: 600; }
.person .av { border-radius: 50%; object-fit: cover; flex: none; }
.person .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.person:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.nm-gold, .is-gold .nm { background: linear-gradient(90deg, #b7791f, #ffd75e, #b7791f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 4s linear infinite; } /* taste-skill-ignore: level 10 golden name */

/* ---------- reveal on scroll (site.js adds .rv / .in) ---------- */
.js .rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- home: hero ---------- */
.h2-hero { padding-top: clamp(28px, 5vw, 72px); }
.live-pill { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); font-size: 14.5px; margin-bottom: 20px; animation: rise .7s var(--ease) both; }
.live-pill b { font-weight: 700; }
.h2-copy h1 span:last-child { color: var(--accent); }
.h-rot { font-size: clamp(26px, 3.2vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin-top: 10px; display: flex; gap: .3em; animation: rise .8s var(--ease) .06s both; }
.rot { position: relative; display: inline-block; height: 1.15em; overflow: hidden; min-width: 12ch; }
.rot > span { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--violet); opacity: 0; transform: translateY(100%); animation: word 16s infinite; animation-delay: calc(var(--w) * 2s); }
@keyframes word { 0% { opacity: 0; transform: translateY(100%); } 2%, 11% { opacity: 1; transform: none; } 13%, 100% { opacity: 0; transform: translateY(-100%); } }
.h2-sub { max-width: 40ch; }
.stack-wrap { position: relative; }
.stack-card { border-radius: 26px; box-shadow: none; }
.stack-card.is-top { box-shadow: var(--lift); } /* taste-skill-ignore: floating stack */
.stack-card.is-premium.is-top { outline: 2px solid var(--violet); outline-offset: -2px; }
.stack .mini-bump { background: var(--accent); color: var(--accent-ink); }
.orbit { position: absolute; inset: -30px -10px auto auto; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.orbit i { position: absolute; font-style: normal; font-size: clamp(22px, 2.4vw, 34px); left: calc(8% + var(--o) * 16%); top: calc(-6% + (var(--o) * 37%) % 100%); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--o) * -.9s); filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); } /* taste-skill-ignore: floating emoji */
.orbit i:nth-child(odd) { top: auto; bottom: calc(-14% + var(--o) * 3%); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.stack { z-index: 1; }

/* live ticker */
.ticker { display: flex; align-items: center; gap: 0; margin: clamp(28px, 4vw, 48px) var(--m) 0; background: var(--field-dark); color: var(--paper); border-radius: 999px; overflow: hidden; height: 52px; }
.tk-live { display: inline-flex; align-items: center; height: 100%; padding: 0 18px 0 20px; font-weight: 700; font-size: 14px; background: var(--accent); color: var(--accent-ink); flex: none; z-index: 1; }
.tk-live .dot-on { background: var(--accent-ink); }
.tk-track { display: flex; width: max-content; animation: strip 60s linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
.tk-set { display: flex; }
.tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; white-space: nowrap; text-decoration: none; font-size: 15px; opacity: .88; transition: opacity .15s; }
.tk:hover { opacity: 1; }
.tk b { font-weight: 700; }
.tk em { font-style: normal; font-size: 13px; opacity: .55; }

/* premium + spotlight sections */
.prem-title { background: linear-gradient(100deg, #6d4aff, #c04bff, #ff5b8a, #6d4aff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; } /* taste-skill-ignore: Premium heading */

/* ---------- server cards ---------- */
.sgrid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.sgrid-item { display: grid; }
.js .sgrid-item { animation: cardin .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.scard { border-radius: 24px; padding: 20px; gap: 12px; background: var(--surface); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s var(--ease), box-shadow .3s, background-color .2s; will-change: transform; }
.scard:hover { --ty: -5px; background: var(--surface); box-shadow: var(--lift); }
.scard .srv-ic { transition: transform .4s var(--spring); }
.scard:hover .srv-ic { transform: rotate(-6deg) scale(1.06); }
.scard-id h3 { font-size: 18.5px; }
.scard-sum { overflow-wrap: anywhere; }
.scard-by { display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; font-size: 14px; min-width: 0; }
.scard-by .person { min-width: 0; }
.scard-stats { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.scard-rate { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.scard-hearts { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--heart); }
.i-heart { width: 16px; height: 16px; fill: currentColor; }
.scard-join { transition: transform .25s var(--spring); }
.scard:hover .scard-join { transform: scale(1.06); }
/* Premium: a moving gradient frame */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.scard.is-premium { background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), #6d4aff, #c04bff, #ff5b8a, #ffb347, #6d4aff) border-box; border: 2.5px solid transparent; animation: frame 5s linear infinite; } /* taste-skill-ignore: Premium frame */
@keyframes frame { to { --ang: 360deg; } }
.scard.is-premium::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 40% at 100% 0%, color-mix(in srgb, var(--violet) 14%, transparent), transparent); } /* taste-skill-ignore: Premium wash */
.scard.is-spot { outline: 2.5px solid var(--lime); outline-offset: -2.5px; }

/* ---------- three-tap finder ---------- */
.finder-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); background: var(--field-dark); color: var(--paper); border-radius: 32px; padding: clamp(28px, 4vw, 56px); }
.finder-copy h2 { font-size: clamp(36px, 4.4vw, 68px); letter-spacing: -0.05em; line-height: .98; }
.finder-copy p:not(.kicker) { margin-top: 16px; color: #b9b2be; max-width: 34ch; }
.finder-form { display: grid; gap: 22px; }
.fd-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.fd-step legend { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; margin-bottom: 12px; padding: 0; }
.fd-step legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.fd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fd-cat input, .seg-pick input, .f-switch input { position: absolute; opacity: 0; pointer-events: none; }
.fd-cat span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); cursor: pointer; font-size: 15px; transition: background-color .2s, transform .25s var(--spring); }
.fd-cat i { font-style: normal; font-size: 20px; transition: transform .35s var(--spring); }
.fd-cat span:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.fd-cat input:checked + span { background: var(--hue); color: #fff; transform: scale(1.03); }
.fd-cat input:checked + span i { transform: scale(1.25) rotate(-8deg); }
.fd-cat input:focus-visible + span, .seg-pick input:focus-visible + span, .f-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.finder .seg-pick label span { background: rgba(255,255,255,.06); color: var(--paper); }
.finder .seg-pick label span:hover { background: rgba(255,255,255,.12); }
.finder .seg-pick input:checked + span { background: var(--paper); color: #1b1720; }
.fd-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.fd-count { font-size: 18px; color: #b9b2be; }
.fd-count b { font-size: 34px; color: var(--paper); font-weight: 600; letter-spacing: -0.03em; margin-right: 4px; display: inline-block; font-variant-numeric: tabular-nums; }
.fd-count b.pop { animation: pop2 .4s var(--spring); }
@keyframes pop2 { 40% { transform: scale(1.25); color: var(--accent); } }

/* the segmented pickers used by the finder and the filter panel */
.seg-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-pick label { position: relative; }
.seg-pick label span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 14.5px; cursor: pointer; transition: background-color .15s, color .15s, transform .2s var(--spring); }
.seg-pick label span:hover { transform: translateY(-1px); }
.seg-pick input:checked + span { background: var(--ink); color: var(--bg); }

/* categories */
.cat-tile { --hue: var(--accent); position: relative; overflow: hidden; padding: 20px; border-radius: 22px; transition: background-color .25s, transform .3s var(--spring), color .2s; }
.cat-emo { font-size: 30px; display: block; margin-bottom: 8px; transition: transform .4s var(--spring); width: max-content; }
.cat-tile:hover { background: var(--hue); color: #fff; transform: translateY(-4px) rotate(-.6deg); }
.cat-tile:hover .cat-emo { transform: scale(1.25) rotate(-10deg); }
.cat-tile:hover span, .cat-tile:hover em { color: inherit; opacity: .9; }

/* play the list */
.play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.play-copy h2 { font-size: clamp(40px, 5vw, 80px); letter-spacing: -0.055em; line-height: .95; }
.play-copy > p:not(.kicker) { margin-top: 16px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.play-xp { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 460px; }
.play-xp li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-weight: 500; }
.play-xp b { margin-left: auto; color: var(--accent); font-weight: 800; }
.play-ladder, .ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.play-ladder li, .rung { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--surface); transition: transform .3s var(--spring); }
.play-ladder li { grid-template-columns: 48px minmax(0, 1fr); }
.play-ladder li:hover, .rung:hover { transform: translateX(6px); }
.play-ladder li > div, .rung > div { display: grid; gap: 2px; }
.play-ladder b, .rung b { font-weight: 600; font-size: 17px; }
.play-ladder span:not(.rung-lv), .rung p { color: var(--muted); font-size: 14.5px; }
.rung-lv { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--lv); color: #fff; font-weight: 800; font-size: 20px; }
.play-ladder li.got, .rung.got { background: color-mix(in srgb, var(--lv, var(--accent)) 10%, var(--surface)); }
.rung-need { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* owners + cta */
.own-copy h2 { font-size: clamp(34px, 4vw, 62px); line-height: 1; }
.own-points li::before { background: var(--accent); border-radius: 50%; }
.cta2 { position: relative; overflow: hidden; }
.cta-float { position: absolute; inset: 0; pointer-events: none; }
.cta-float i { position: absolute; font-style: normal; font-size: clamp(26px, 3vw, 44px); right: calc(4% + (var(--o) * 11%) % 46%); top: calc(10% + (var(--o) * 29%) % 80%); opacity: .9; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--o) * -.7s); }
.cta2 > *:not(.cta-float) { position: relative; }
.cta2 .btn-paper:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- server list + filters ---------- */
.list-head { align-items: end; }
.list-head.has-cat .list-title h1 { color: var(--ink); }
.list-emoji { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; font-size: 40px; background: color-mix(in srgb, var(--hue) 18%, var(--surface)); margin-bottom: 16px; animation: wob 3.5s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) scale(1.05); } }
.cat-chips .chip { gap: 6px; }
.browse { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); padding: 8px var(--m) 0; align-items: start; }
.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; background: var(--surface); border-radius: 24px; padding: 20px; scrollbar-width: thin; }
.filters form { display: grid; gap: 20px; }
.f-head { display: flex; align-items: center; gap: 10px; }
.f-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; flex: 1; }
.f-reset { font-size: 14px; color: var(--muted); }
.f-close { display: none; }
.f-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.f-group legend, .f-label { font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 0; }
.f-group legend { margin-bottom: 10px; }
.filters .seg-pick label span { min-height: 34px; padding: 0 12px; font-size: 14px; }
.filters .select, .f-input { width: 100%; height: 42px; border: 0; border-radius: 12px; background: var(--bg); padding: 0 12px; font-size: 15px; color: var(--ink); }
.f-input:focus, .filters .select:focus { outline: 2px solid var(--accent); }
.f-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.f-tags .tag { border: 0; cursor: pointer; font: inherit; font-size: 13px; }
.f-tags .tag.on { background: var(--ink); color: var(--bg); }
.f-toggles { gap: 6px; }
.f-switch { position: relative; display: block; cursor: pointer; }
.f-switch span { display: grid; grid-template-columns: 1fr 40px; column-gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background-color .15s; }
.f-switch span:hover { background: var(--bg); }
.f-switch span::after { content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 40px; height: 24px; border-radius: 999px; background: var(--surface-2) radial-gradient(circle at 12px 12px, #fff 8px, transparent 8.5px); transition: background .25s var(--ease); } /* taste-skill-ignore: switch knob */
.f-switch input:checked + span::after { background: var(--accent) radial-gradient(circle at 28px 12px, #fff 8px, transparent 8.5px); } /* taste-skill-ignore: switch knob */
.f-switch b { font-weight: 600; font-size: 15px; }
.f-switch small { color: var(--muted); font-size: 13px; }
.js .f-apply { display: none; }
.filters-open { display: none; }
.f-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; margin-left: 4px; }
.filters-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.results { min-width: 0; transition: opacity .2s; }
.results.loading { opacity: .45; pointer-events: none; }
.res-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.list-count { font-size: 17px; color: var(--muted); }
.list-count b { color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.res-right { display: flex; align-items: center; gap: 8px; }
.surprise .dice { display: inline-block; transition: transform .5s var(--spring); }
.surprise:hover .dice { transform: rotate(200deg) scale(1.2); }
.fchips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; animation: rise .3s var(--ease) both; }
.fchip span[aria-hidden] { opacity: .7; font-size: 16px; }
.fchip:hover span[aria-hidden] { opacity: 1; }
.fchip-clear { display: inline-flex; align-items: center; height: 32px; padding: 0 8px; font-size: 14px; color: var(--muted); }
.empty-art { font-size: 44px; animation: bob 4s ease-in-out infinite; display: inline-block; }
.list-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--violet); color: var(--violet-ink); }
.list-cta p { margin-top: 10px; }
.list-cta-btn { background: var(--violet-ink); color: var(--violet); }
.list-cta-btn:hover { transform: translateY(-2px) rotate(-1deg); }

/* ---------- server page ---------- */
.srvpage { --hue: var(--accent); }
.srv-hero { position: relative; }
.srv-hero-ic { position: relative; }
.srv-hero-ic::before { content: ""; position: absolute; inset: -10px; border-radius: 34%; background: color-mix(in srgb, var(--hue) 28%, transparent); z-index: -1; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08) rotate(6deg); } }
.srvpage.is-premium .srv-hero-ic::before { background: conic-gradient(#6d4aff, #c04bff, #ff5b8a, #ffb347, #6d4aff); animation: breathe 4s ease-in-out infinite, spin 10s linear infinite; } /* taste-skill-ignore: Premium halo */
.srv-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.srv-hero h1 { overflow-wrap: anywhere; }
.srv-hero-sum { overflow-wrap: anywhere; }
.meta-rate { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.srv-hero-act { min-width: 220px; }
.srv-hero-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.heart-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; position: relative; transition: transform .25s var(--spring), background-color .2s, color .2s; }
.heart-btn .i-heart { width: 20px; height: 20px; fill: none; stroke: var(--heart); stroke-width: 2.2; transition: transform .3s var(--spring), fill .2s; }
.heart-btn:hover .i-heart { transform: scale(1.18); }
.heart-btn.on { background: color-mix(in srgb, var(--heart) 14%, var(--surface)); color: var(--heart); }
.heart-btn.on .i-heart { fill: var(--heart); }
.heart-btn.pulse .i-heart { animation: beat .6s var(--spring); }
@keyframes beat { 30% { transform: scale(1.5); } 60% { transform: scale(.9); } }
.heart-btn.is-static { cursor: default; }
.burst { position: absolute; left: 30px; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--heart); animation: fly .7s var(--ease) forwards; transform: rotate(var(--a)) translateX(0); }
@keyframes fly { to { transform: rotate(var(--a)) translateX(34px) scale(.2); opacity: 0; } }
.srv-showcase { margin: 0 0 clamp(28px, 4vw, 48px); }
.srv-about p { overflow-wrap: anywhere; }
.rv-text, .rv-reply p, .by-bio { overflow-wrap: anywhere; }
.by-card { background: var(--surface); border-radius: 22px; padding: 20px 22px; display: grid; gap: 10px; }
.by-card h2 { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.by-card .person { font-size: 18px; flex-wrap: wrap; }
.by-bio { color: var(--ink); font-size: 15px; }
.by-since { font-size: 13.5px; }
.rv-item { animation: none; }
.rv-top { justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.rv-top .person { font-size: 16px; }
.bump-box { background: var(--accent-soft); }
.bump-box .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.bump-box .btn:hover:not([disabled]) svg { transform: translateY(-3px); }
.bumped { animation: launch .9s var(--spring); }
@keyframes launch { 25% { transform: translateY(4px) scale(.96); } 55% { transform: translateY(-10px) scale(1.06); } }

/* ---------- the showcase (owner's animated page) ---------- */
.sc { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; color: var(--sc-ink); background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--sc-a2) 26%, transparent), transparent 60%), linear-gradient(160deg, var(--sc-bg), var(--sc-bg2)); padding: clamp(24px, 4vw, 56px); } /* taste-skill-ignore: owner theme */
.sc-in { position: relative; z-index: 1; display: grid; gap: clamp(24px, 3vw, 40px); }
.sc-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.sc-b { min-width: 0; }
.sc-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sc-a1); border: 1.5px solid color-mix(in srgb, var(--sc-a1) 50%, transparent); margin-bottom: 20px; } /* taste-skill-ignore: owner theme */
.sc-title { font-size: clamp(36px, 5vw, 68px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; overflow-wrap: anywhere; }
.sc-hl { display: block; background: linear-gradient(90deg, var(--sc-a1), var(--sc-a2), var(--sc-a1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s linear infinite; } /* taste-skill-ignore: owner theme */
.sc-lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--sc-muted); max-width: 52ch; overflow-wrap: anywhere; }
.sc-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; margin-top: 26px; border-radius: 16px; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(100deg, var(--sc-a1), var(--sc-a2)); box-shadow: 0 12px 30px -10px var(--sc-a1); transition: transform .3s var(--spring), box-shadow .3s; } /* taste-skill-ignore: owner theme */
.sc-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px -12px var(--sc-a1); }
.sc-h { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.sc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sc-split .sc-cards { grid-template-columns: 1fr; }
.sc-card { display: grid; gap: 6px; padding: 20px 22px; border-radius: 20px; background: color-mix(in srgb, var(--sc-card) 86%, transparent); border: 1px solid color-mix(in srgb, var(--sc-a1) 22%, transparent); transition: transform .4s var(--spring), border-color .3s; } /* taste-skill-ignore: owner theme */
.sc-card:hover { transform: translateY(-4px) rotate(0deg) !important; border-color: var(--sc-a1); }
.sc-ic { font-size: 28px; line-height: 1; margin-bottom: 6px; display: block; }
.sc-card b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.sc-card span:not(.sc-ic) { color: var(--sc-muted); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.sc-m-lively .sc-card { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.6s); }
.sc-m-lively .sc-split .sc-card:nth-child(odd) { --tilt: 1.6deg; } .sc-m-lively .sc-split .sc-card:nth-child(even) { --tilt: -1.4deg; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) * -1)); } }
.sc-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sc-stats li { display: grid; gap: 2px; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--sc-card) 86%, transparent); }
.sc-stats b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.04em; color: var(--sc-a1); line-height: 1.05; }
.sc-stats span { color: var(--sc-muted); }
.sc-marquee { overflow: hidden; margin: 0 calc(-1 * clamp(24px, 4vw, 56px)); padding: 14px 0; background: linear-gradient(90deg, var(--sc-a1), var(--sc-a2)); color: #fff; transform: rotate(-1.2deg); } /* taste-skill-ignore: owner theme */
.sc-mq { display: flex; width: max-content; animation: strip 26s linear infinite; }
.sc-mq-set { display: flex; }
.sc-mq-set span { padding: 0 22px; font-size: clamp(18px, 2vw, 26px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.sc-mq-set span::after { content: "✦"; margin-left: 44px; opacity: .7; }
.sc-m-off .sc-mq { animation: none; }
.sc-ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sc-ul li { position: relative; padding: 12px 16px 12px 48px; border-radius: 14px; background: color-mix(in srgb, var(--sc-card) 80%, transparent); overflow-wrap: anywhere; }
.sc-ul li::before { position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--sc-a1); color: var(--sc-bg); }
.sc-check li::before { content: "✓"; }
.sc-dot li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; left: 21px; top: 19px; }
.sc-number { counter-reset: n; }
.sc-number li { counter-increment: n; }
.sc-number li::before { content: counter(n); }
.sc-text p { color: var(--sc-muted); line-height: 1.65; max-width: 70ch; overflow-wrap: anywhere; }
.sc-text p + p { margin-top: 12px; }
.sc-faq { display: grid; gap: 8px; }
.sc-faq details { border-radius: 16px; background: color-mix(in srgb, var(--sc-card) 84%, transparent); padding: 0 18px; }
.sc-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after { content: "+"; float: right; color: var(--sc-a1); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.sc-faq details[open] summary::after { transform: rotate(45deg); }
.sc-faq p { padding-bottom: 16px; color: var(--sc-muted); overflow-wrap: anywhere; }
/* reveal inside the showcase */
.js .sc:not(.sc-m-off) .sc-b { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .sc.in .sc-b { opacity: 1; transform: none; }
.js .sc.in .sc-split .sc-b + .sc-b { transition-delay: .15s; }
/* particles */
.sc-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sc-fx i { position: absolute; left: var(--x); top: -6%; width: calc(14px * var(--s)); height: calc(14px * var(--s)); animation: fall var(--d) linear infinite; animation-delay: var(--w); opacity: .85; }
@keyframes fall { from { transform: translate3d(0, 0, 0) rotate(var(--r)); } to { transform: translate3d(40px, 115cqh, 0) rotate(calc(var(--r) + 540deg)); } }
.sc { container-type: inline-size; }
.sc-fx-petals .sc-fx i { background: color-mix(in srgb, var(--sc-a1) 80%, #fff); border-radius: 80% 0 80% 0; }
.sc-fx-snow .sc-fx i { background: #fff; border-radius: 50%; width: calc(7px * var(--s)); height: calc(7px * var(--s)); opacity: .8; }
.sc-fx-embers .sc-fx i { top: auto; bottom: -6%; background: var(--sc-a1); border-radius: 50%; width: calc(6px * var(--s)); height: calc(6px * var(--s)); box-shadow: 0 0 10px var(--sc-a1); animation-name: rise2; } /* taste-skill-ignore: ember glow */
.sc-fx-bubbles .sc-fx i { top: auto; bottom: -6%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--sc-a2) 70%, #fff); width: calc(18px * var(--s)); height: calc(18px * var(--s)); animation-name: rise2; }
@keyframes rise2 { from { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .9; } to { transform: translate3d(-30px, -110cqh, 0); opacity: 0; } }
.sc-fx-stars .sc-fx i, .sc-fx-sparkles .sc-fx i { top: var(--y); animation: twinkle var(--d) ease-in-out infinite; animation-delay: var(--w); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); background: #fff; }
.sc-fx-sparkles .sc-fx i { background: var(--sc-a1); }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0deg); opacity: .15; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.sc-m-off .sc-fx i, .sc-m-off .sc-hl { animation: none; }

/* ---------- showcase editor ---------- */
.sc-editor { display: grid; gap: 16px; padding: 20px; border-radius: 20px; background: var(--bg); }
.sce-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sce-head h3 { font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.sce-head .help { margin-top: 6px; max-width: 60ch; }
.sce-limits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.sce-limits li { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); }
.sce-limits li.on { background: var(--ok-soft); color: var(--ok); }
.sce-limits li.off { background: var(--warn-soft); color: var(--warn); }
.sce-limits li.prem-li { background: var(--violet-soft); color: var(--violet); }
.sce-tpl { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border: 0; border-radius: 999px; background: var(--surface); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: transform .25s var(--spring); }
.tpl:hover { transform: translateY(-2px); }
.tpl span { width: 24px; height: 24px; border-radius: 50%; }
.tpl-sakura span { background: linear-gradient(135deg, #ff7ab6, #c48bff); } .tpl-midnight span { background: linear-gradient(135deg, #5ad1ff, #8b7bff); } /* taste-skill-ignore: theme swatch */
.tpl-arcade span { background: linear-gradient(135deg, #c6f432, #ff4fd8); } .tpl-forest span { background: linear-gradient(135deg, #7be0a2, #e8d06a); } /* taste-skill-ignore: theme swatch */
.tpl-none span { background: var(--surface-2); }
.sce-quick { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.sce-quick .help { flex-basis: 100%; }
.sce-quick label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.sce-quick .select { min-width: 150px; height: 42px; background: var(--bg); color: var(--ink); }
.tpl-simple span { background: linear-gradient(135deg, #5ad1ff, #ff7ab6); } /* taste-skill-ignore: theme swatch */
.sce-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.sce-code { font-family: var(--mono); font-size: 13px !important; line-height: 1.5 !important; tab-size: 2; white-space: pre; }
.sce-act { display: flex; gap: 8px; margin-top: 4px; }
.sce-preview { border-radius: 20px; background: var(--surface); min-height: 200px; display: grid; place-items: center; overflow: hidden; }
.sce-preview > .sc { width: 100%; align-self: stretch; border-radius: 20px; }
.sce-preview .sc-title { font-size: clamp(28px, 3vw, 44px); }
.sce-preview .sc-split { grid-template-columns: 1fr; }
.sce-ref summary { cursor: pointer; font-weight: 600; }
.sce-ref-body { display: grid; gap: 8px; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.sce-ref-body ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.sce-ref code { color: var(--ink); }

/* ---------- insights perks ---------- */
.perk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.perk-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--surface); }
.perk-card > div { flex: 1; min-width: 0; }
.perk-card p { font-size: 14px; margin-top: 2px; }
.perk-ic { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--bg); flex: none; }
.perk-card.live { background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }
.perk-card.live .perk-ic { animation: wob 2.5s ease-in-out infinite; }
.perk-card.is-premium { background: var(--violet-soft); }

/* ---------- levels page ---------- */
.lv-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(40px, 6vw, 88px) var(--m) 0; }
.lv-copy h1 { font-size: clamp(48px, 7vw, 112px); letter-spacing: -0.06em; line-height: .92; }
.lv-copy p { margin: 22px 0 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.lv-me { display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: 30px; background: var(--surface); flex-wrap: wrap; }
.lv-demo { opacity: .85; }
.lv-ring { position: relative; width: var(--sz); height: var(--sz); flex: none; }
.lv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lv-track { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.lv-fill { fill: none; stroke: var(--lv); stroke-width: 12; stroke-linecap: round; stroke-dashoffset: var(--off); animation: ringfill 1.4s var(--ease) both .2s; }
@keyframes ringfill { from { stroke-dashoffset: 440; } }
.lv-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lv-ring small { font-size: 14px; color: var(--muted); font-weight: 600; }
.lv-ring b { font-size: 60px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.lv-me-txt { flex: 1; min-width: 200px; display: grid; gap: 8px; }
.lv-xp b { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.lv-next { font-size: 15px; }
.xpbar { display: block; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.xpbar > span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); animation: barfill 1.2s var(--ease) both .3s; } /* taste-skill-ignore: progress bar */
@keyframes barfill { from { width: 0; } }
.earn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.earn { display: grid; gap: 4px; padding: 20px; border-radius: 22px; background: var(--surface); transition: transform .3s var(--spring); }
.earn:hover { transform: translateY(-4px) rotate(-.6deg); }
.earn-ic { font-size: 30px; margin-bottom: 6px; }
.earn b { font-size: 17px; font-weight: 600; }
.earn em { font-style: normal; font-weight: 800; color: var(--accent); font-size: 20px; }
.earn span:last-child { color: var(--muted); font-size: 14px; }
.lv-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lv-split h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; margin-bottom: 18px; }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.top-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 18px; background: var(--surface); }
.top-list li:nth-child(1) .top-n { background: #ffcf3d; color: #3a2a00; } .top-list li:nth-child(2) .top-n { background: #d8dde3; color: #222; } .top-list li:nth-child(3) .top-n { background: #f0a868; color: #3a1d00; }
.top-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); font-weight: 800; }
.top-xp { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xp-log li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface); }
.xp-log small { display: block; color: var(--muted); font-size: 12.5px; }
.xp-log b { color: var(--accent); font-weight: 800; }

/* ---------- profile ---------- */
.prof-av { display: inline-grid; place-items: center; border-radius: 50%; }
.prof-av.ring { padding: 4px; }
.lvcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 22px; margin-bottom: 12px; border-radius: 22px; background: var(--surface); text-decoration: none; transition: transform .3s var(--spring); }
.lvcard:hover { transform: translateY(-3px); }
.lvcard-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--lv); color: #fff; font-size: 30px; font-weight: 800; }
.lvcard-txt { display: grid; gap: 4px; }
.lvcard-txt b { font-size: 19px; font-weight: 600; }
.lvcard-txt > span:not(.xpbar) { color: var(--muted); font-size: 14.5px; }
.prof-sec .sgrid { margin-top: 4px; }

/* ---------- level up ---------- */
.levelup { border: 0; border-radius: 32px; padding: 40px 32px 28px; width: min(440px, calc(100% - 32px)); text-align: center; background: var(--surface); color: var(--ink); overflow: visible; box-shadow: 0 40px 100px -20px rgba(0,0,0,.45); } /* taste-skill-ignore: dialog */
.levelup::backdrop { background: rgba(12, 8, 16, .6); backdrop-filter: blur(4px); }
.levelup[open] { animation: lvpop .6s var(--spring); }
@keyframes lvpop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.lu-kicker { font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.levelup h2 { font-size: 28px; font-weight: 600; margin: 6px 0 18px; display: grid; }
.levelup h2 b { font-size: 120px; font-weight: 800; letter-spacing: -0.06em; line-height: .9; background: linear-gradient(120deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: level number */
.lu-perks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; text-align: left; }
.lu-perks li { display: grid; padding: 12px 16px; border-radius: 16px; background: var(--bg); }
.lu-perks span { color: var(--muted); font-size: 14px; }
.levelup p { margin-bottom: 20px; color: var(--muted); }
.levelup .btn { width: 100%; }
.lu-more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 10px; height: 14px; background: var(--c); border-radius: 2px; animation: conf var(--d) cubic-bezier(.2, .6, .4, 1) forwards; animation-delay: var(--w); }
@keyframes conf { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }

/* toast with XP */
.toast.xp { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .browse { grid-template-columns: 260px minmax(0, 1fr); }
  .play, .lv-head, .lv-split { grid-template-columns: 1fr; }
  .finder-in { grid-template-columns: 1fr; }
  .perk-row { grid-template-columns: 1fr; }
  .sce-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters-open { display: inline-flex; justify-self: start; }
  .js .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 86vh; z-index: 80; border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .35s var(--ease); box-shadow: 0 -20px 60px rgba(0,0,0,.3); padding-bottom: calc(20px + env(safe-area-inset-bottom)); } /* taste-skill-ignore: bottom sheet */
  body.filters-on .filters { transform: none; }
  body.filters-on::after { content: ""; position: fixed; inset: 0; background: rgba(10, 8, 12, .5); z-index: 70; }
  .js .f-apply { display: inline-flex; }
  .f-close { display: inline-grid; }
  .sc-split { grid-template-columns: 1fr; }
  .list-cta { grid-template-columns: 1fr; }
  .orbit { display: none; }
  .ticker { border-radius: 18px; }
}
@media (max-width: 600px) {
  .me-lv { display: none; }
  .ticker { height: 46px; margin-left: 12px; margin-right: 12px; }
  .tk-live { padding: 0 12px; }
  .fd-cats { grid-template-columns: 1fr 1fr; }
  .play-xp { grid-template-columns: 1fr 1fr; }
  .srv-hero-act { min-width: 0; }
  .res-right { width: 100%; }
  .res-right .select { flex: 1; }
  .lv-me { padding: 20px; gap: 18px; }
  .lv-ring { --sz: 120px !important; }
  .lv-ring b { font-size: 44px; }
  .top-list li { grid-template-columns: 30px minmax(0, 1fr); }
  .top-xp { grid-column: 2; font-size: 14px; color: var(--muted); }
  .sc { border-radius: 22px; }
  .rung { grid-template-columns: 44px minmax(0, 1fr); }
  .rung > .pill, .rung-need { grid-column: 2; justify-self: start; }
  .levelup h2 b { font-size: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  body.site::before, .rot > span, .orbit i, .cta-float i, .tk-track, .prem, .prem-title, .scard.is-premium, .ring, .ring > img, .nm-gold, .is-gold .nm, .sc-fx i, .sc-mq, .sc-hl, .sc-card, .list-emoji, .empty-art, .srv-hero-ic::before { animation: none !important; }
  .rot > span:first-child { opacity: 1; transform: none; }
  .js .rv, .js .sc .sc-b, .js .sgrid-item { opacity: 1 !important; transform: none !important; animation: none !important; }
  .scard { transform: none !important; }
}

/* ---------- v0.4.2: scrollable chip rows with arrows ---------- */
.hscroll { position: relative; }
.hscroll .cat-chips { scroll-behavior: smooth; padding-top: 6px; padding-bottom: 10px; }
.hscroll.fade-r .cat-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent); }
.hscroll.fade-l .cat-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px); mask-image: linear-gradient(90deg, transparent, #000 90px); }
.hscroll.fade-l.fade-r .cat-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); }
.hs-btn { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -22px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); transition: transform .25s var(--spring), opacity .2s; } /* taste-skill-ignore: floating arrow */
.hs-btn[hidden] { display: none; }
.hs-btn:hover { transform: scale(1.12); }
.hs-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hs-prev { left: calc(var(--m) - 6px); }
.hs-next { right: calc(var(--m) - 6px); }
@media (hover: none) { .hs-btn { width: 34px; height: 34px; margin-top: -19px; } }

/* ---------- v0.4.2: footer, always a deep night colour ---------- */
.site-foot { display: none; }
.nfoot { position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(72px, 9vw, 140px); padding: clamp(44px, 6vw, 88px) var(--m) 22px;
  background: #130f18; color: #efe9f4; border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.nf-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 26vmax at 8% 0%, rgba(255, 91, 46, .28), transparent 70%), radial-gradient(36vmax 26vmax at 95% 20%, rgba(109, 74, 255, .32), transparent 70%), radial-gradient(30vmax 20vmax at 50% 110%, rgba(198, 244, 50, .12), transparent 70%); /* taste-skill-ignore: footer light */
  animation: drift 24s ease-in-out infinite alternate; }
.nf-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.nf-mark { color: #fff; }
.nf-invite { margin-top: 22px; font-size: clamp(30px, 3.4vw, 54px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; max-width: 15ch; }
.nf-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nf-btn { background: var(--accent); color: #1c0d06; }
.nf-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(255, 91, 46, .8); }
.nf-btn-line { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.nf-btn-line:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.nf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nf-cols h2 { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a49aae; margin-bottom: 16px; }
.nf-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.nf-cols a { color: #efe9f4; text-decoration: none; font-size: 16px; opacity: .86; transition: opacity .15s, color .15s, transform .2s var(--spring); display: inline-block; }
.nf-cols a:hover { opacity: 1; color: #ff8a5f; transform: translateX(3px); }
.nf-name { margin: clamp(40px, 6vw, 80px) 0 0 -.04em; font-size: clamp(84px, 21vw, 360px); font-weight: 700; letter-spacing: -0.065em; line-height: .82; white-space: nowrap;
  background: linear-gradient(100deg, #ff5b2e, #ff4f9a 30%, #8b6bff 60%, #c6f432 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 14s linear infinite alternate; } /* taste-skill-ignore: footer wordmark */
.nf-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #a49aae; } /* taste-skill-ignore: footer rule */
@media (max-width: 900px) {
  .nf-top { grid-template-columns: 1fr; }
  .nf-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .nf-cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .nf-act .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .nf-glow, .nf-name { animation: none; } }

/* ---------- v0.4.2 polish ---------- */
/* Premium label as a ribbon on the card's top edge, so long names keep their room */
.scard.is-premium { overflow: visible; }
.scard.is-premium .scard-top > .prem { position: absolute; top: -13px; right: 18px; z-index: 3; height: 26px; box-shadow: 0 6px 16px -6px rgba(109, 74, 255, .7); } /* taste-skill-ignore: Premium ribbon */
/* dark sections that would melt into the dark page get a violet night of their own */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .finder-in, :root:not([data-theme="light"]) .cta2 {
    background: radial-gradient(60% 80% at 100% 0%, rgba(139, 107, 255, .22), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(255, 91, 46, .14), transparent 70%), #1a1522; } /* taste-skill-ignore: dark section light */
}
:root[data-theme="dark"] .finder-in, :root[data-theme="dark"] .cta2 {
  background: radial-gradient(60% 80% at 100% 0%, rgba(139, 107, 255, .22), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(255, 91, 46, .14), transparent 70%), #1a1522; } /* taste-skill-ignore: dark section light */

/* ---------- v0.4.3: smooth scrolling ----------
   Only transform and opacity animate continuously (the GPU does those without the main thread).
   Everything that repainted every frame is now still, or moves only on hover; animations off screen pause. */
body.site::before { animation: none; }
.site-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); }
/* online dot: a ring that scales instead of an animated shadow */
.dot-on { position: relative; animation: none; }
.dot-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: .5; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.scard .dot-on::after, .mini-top .dot-on::after { animation: none; display: none; }
/* Premium: a still gradient frame; it turns only while the pointer is on the card */
.scard.is-premium { animation: none; }
@media (hover: hover) { .scard.is-premium:hover { animation: frame 3s linear infinite; } }
.prem, .prem-title, .nm-gold, .is-gold .nm, .nf-name, .sc-hl { animation: none; background-position: 0 0; }
.nf-glow { animation: none; }
.orbit i { filter: none; }
.scard { will-change: auto; }
@media (hover: hover) { .scard:hover { will-change: transform; } }
.ring, .ring > img, .ring > .av { animation: none; }
.join-btn::after { animation-iteration-count: 3; }
/* paused while off screen (live.js adds .is-off) */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
.stack-card { top: 0; transform: translateY(calc(var(--i, 0) * 38px)) scale(calc(1 - var(--i, 0) * .045)); transition: transform .7s var(--ease), opacity .7s var(--ease); }

/* ---------- v0.4.4: nothing repaints while scrolling ----------
   The colour clouds scroll with the page (a fixed layer was repainted on every scroll step),
   the sticky header is opaque, and the page clips sideways without becoming a scroll container. */
body.site { overflow-x: clip; }
body.site::before { position: absolute; inset: 0 0 auto 0; height: 1400px; z-index: -1; transform: none; opacity: .55; }
.site-bar { background: var(--bg); }
/* sections enter as a whole: one fade per block instead of dozens of moving items */
.js .rv { transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: 0s; }
.js .rv.in { transform: none; }
.js .sgrid-item { animation: none; }
.js .results .sgrid-item { animation: cardin .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }

/* ---------- v0.4.4: flat cards at rest, off-screen sections skipped ---------- */
.scard { transform: none; will-change: auto !important; transition: transform .3s var(--ease), box-shadow .3s, background-color .2s; }
.scard:hover { transform: translateY(-5px); }
.sec:not(.h2-hero), .nfoot, .list-cta { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (prefers-reduced-motion: reduce) { .scard:hover { transform: none; } }
