:root {
  /* one neutral ramp, tinted toward dusk */
  --ink: #2e2528;
  --ink-2: #6b5d61;
  --ink-3: #8f8084;
  --line: rgba(46, 37, 40, .09);
  --card: rgba(255, 251, 247, .84);
  --card-2: rgba(255, 255, 255, .62);
  --accent: #7d6637;
  --accent-hover: #6b562d;
  --name: #7a6a14;

  --r-card: 16px;
  --r-inner: 12px;
  --r-ctl: 8px;

  --ease: cubic-bezier(.2, 0, 0, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  min-height: 100vh;
  font: 400 14px/1.5 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: #efc9c4;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(125, 102, 55, .25); }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i--lg { width: 24px; height: 24px; }

/* ---------- backdrop: the banner, out of focus ---------- */
.bg { position: fixed; inset: -80px; z-index: -1; background: url('../img/banner-still.jpg') center / cover no-repeat; filter: blur(56px) saturate(1.1); transform: scale(1.1); }
.bg::after { content: ''; position: absolute; inset: 0; background: rgba(255, 240, 232, .46); }

/* ---------- enter ---------- */
.enter { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: #f0cfc8; transition: opacity 600ms var(--ease), visibility 600ms; }
.enter.out { opacity: 0; visibility: hidden; }
.enter__photo { position: absolute; inset: -120px; background: url('../img/banner-still.jpg') center / cover no-repeat; filter: blur(64px) saturate(1.25); transform: scale(1.15); }
.enter__flow { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: .9; background: linear-gradient(115deg, #ffe3b0, #f4a6b6, #c3b1ee, #ffd1a6, #f4a6b6, #ffe3b0); background-size: 400% 400%; animation: flow 14s ease-in-out infinite alternate; }
@keyframes flow { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.enter__btn { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding: 32px 48px; border-radius: 24px; background: rgba(255, 250, 245, .5); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 48px -24px rgba(60, 30, 40, .35); transition: background-color var(--t-base) var(--ease); }
.enter__btn:hover { background: rgba(255, 250, 245, .7); }
.enter__avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 4px solid #fffaf5; box-shadow: 0 8px 20px -8px rgba(60, 30, 40, .4); margin-bottom: 8px; }
.enter__avatar img { width: 100%; height: 100%; object-fit: cover; }
.enter__name { font: 400 18px/1.2 'Press Start 2P', monospace; color: var(--name); }
.enter__hint { font-size: 13px; color: var(--ink-2); }

/* ---------- one screen ---------- */
.app {
  position: relative; zoom: var(--s, 1); height: calc(100vh / var(--s, 1)); max-width: 1700px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: 340px minmax(0, 1fr) 360px; gap: 20px;
  visibility: hidden;
}
.app.in { visibility: visible; }
.mid, .side { display: flex; flex-direction: column; gap: 20px; min-height: 0; }

.card {
  position: relative; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(60, 30, 40, .06), 0 12px 32px -16px rgba(60, 30, 40, .22);
}
.card h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.stretch { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- profile ---------- */
.profile {
  position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(60, 30, 40, .06), 0 12px 32px -16px rgba(60, 30, 40, .22);
}
.profile__banner { flex: none; height: 112px; background: url('../img/banner.gif') 50% 28% / cover no-repeat; }
.profile__head { flex: none; position: relative; height: 40px; padding: 0 20px; }
.avatar { position: absolute; left: 20px; top: -48px; width: 88px; height: 88px; }
.avatar__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fffaf5; box-shadow: 0 6px 16px -6px rgba(60, 30, 40, .35); }
.avatar__deco { position: absolute; left: 50%; top: 50%; width: 120%; height: 120%; transform: translate(-50%, -50%); pointer-events: none; }
.avatar__status { position: absolute; right: -4px; bottom: -4px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fffaf5; border: 3px solid #fffaf5; box-shadow: 0 2px 8px -2px rgba(60, 30, 40, .4); color: #d59a2c; }
.avatar__status svg { display: none; fill: currentColor; stroke: none; width: 14px; height: 14px; }
.avatar__status[data-s='idle'] svg { display: block; }
.avatar__status:not([data-s='idle'])::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #8d8a8c; }
.avatar__status[data-s='online']::after { background: #3fb27f; }
.avatar__status[data-s='dnd']::after { background: #e0566a; }
.bubble { position: absolute; left: 124px; top: -24px; width: fit-content; max-width: calc(100% - 144px); padding: 8px 12px; background: #fffaf5; border-radius: 12px 12px 12px 4px; font-size: 12px; line-height: 1.4; box-shadow: 0 4px 12px -6px rgba(60, 30, 40, .3); transition: opacity var(--t-base) var(--ease); }

.profile__body { flex: 1; min-height: 0; overflow: auto; padding: 12px 20px 20px; scrollbar-width: none; }
.profile__body::-webkit-scrollbar { display: none; }
.name { font: 400 20px/1.2 'Press Start 2P', monospace; color: var(--name); margin-bottom: 8px; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.chip { padding: 0 8px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); color: #8a5f86; font-size: 12px; line-height: 20px; }

.actions { display: flex; gap: 8px; margin: 16px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: var(--r-ctl); font-weight: 600; transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn:active { transform: scale(.97); }
.btn--primary { padding: 0 16px; background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--icon { width: 36px; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); }
.btn--icon:hover { background: #fff; color: var(--ink); }

.block { margin-top: 16px; }
.block h2 { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.bio { white-space: pre-line; min-height: 60px; }
.caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink-2); animation: caret 1s steps(1) infinite; }
.caret.done { display: none; }
@keyframes caret { 50% { opacity: 0; } }

.conns { display: grid; gap: 2px; margin: 0 -8px; }
.conns a { height: 36px; padding: 0 8px; display: flex; align-items: center; gap: 12px; border-radius: var(--r-ctl); transition: background-color var(--t-fast) var(--ease); }
.conns a:hover { background: var(--card-2); }
.ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #fffaf5; border: 1px solid var(--line); color: var(--ink-2); }
.ico .i { width: 14px; height: 14px; }
.conn__name { flex: 1; }
.conn__go { width: 14px; height: 14px; color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
.conns a:hover .conn__go { transform: translate(2px, -2px); color: var(--ink); }

.profile > .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* ---------- player ---------- */
.player__row { display: flex; align-items: center; gap: 16px; }
.disc { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 6px 16px -6px rgba(40, 20, 30, .5); animation: spin 14s linear infinite; animation-play-state: paused; }
.disc img { width: 100%; height: 100%; object-fit: cover; }
.player.playing .disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__meta { min-width: 0; display: grid; gap: 0; }
.label { font-size: 12px; color: var(--ink-3); }
.marquee { font-size: 18px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz { display: block; width: 100%; height: 32px; margin-top: 16px; }
.seek { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 12px; margin-top: 8px; }
.time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.time:last-child { text-align: right; }
.seek__track { position: relative; height: 4px; border-radius: 2px; background: var(--line); cursor: pointer; touch-action: none; }
.seek__track::before { content: ''; position: absolute; inset: -12px 0; }
.seek__fill { height: 100%; width: 0; border-radius: 2px; background: var(--accent); }
.seek__knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.seek__track:hover .seek__knob, .seek__track.drag .seek__knob, .seek__track:focus-visible .seek__knob { transform: scale(1); }
.ctrls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.c { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast) var(--ease); }
.c:hover { background: var(--card-2); }
.c:active { transform: scale(.94); }
.c--ghost { color: var(--ink-3); }
.c--ghost:hover { color: var(--ink); }
.c--ghost.on { color: var(--accent); background: var(--card-2); }
.c--play { width: 48px; height: 48px; margin: 0 4px; background: var(--accent); color: #fff; }
.c--play:hover { background: var(--accent-hover); }
.c--play .i { fill: currentColor; stroke: none; }
.c:not(.c--ghost):not(.c--play) .i { fill: currentColor; }
.vol { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.vol input { width: 72px; accent-color: var(--accent); }

/* ---------- discord activity ---------- */
.act { display: grid; gap: 12px; overflow: auto; min-height: 0; align-content: start; scrollbar-width: thin; color: var(--ink-3); }
.act__status { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.act__status i { width: 8px; height: 8px; border-radius: 50%; background: #8d8a8c; }
.act__status[data-s='online'] i { background: #3fb27f; }
.act__status[data-s='idle'] i { background: #d59a2c; }
.act__status[data-s='dnd'] i { background: #e0566a; }
.act__custom { color: var(--ink-2); margin-top: -8px; }
.act__empty { color: var(--ink-3); }
.act__panel { padding: 12px; border-radius: var(--r-inner); background: var(--card-2); border: 1px solid var(--line); display: grid; gap: 12px; }
.act__kind { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.act__row { display: flex; gap: 12px; align-items: flex-start; }
.act__artwrap { position: relative; flex: none; width: 72px; height: 72px; }
.act__art { width: 72px; height: 72px; border-radius: var(--r-ctl); object-fit: cover; background: var(--line); }
.act__badge { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fffaf5; object-fit: cover; background: #fffaf5; }
.act__txt { min-width: 0; flex: 1; display: grid; gap: 2px; }
.act__txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act__txt small { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.act__time { color: #2f7d4f; font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.act__prog { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.act__bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.act__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1s linear; }
.act__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.act__btns span { height: 32px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- games ---------- */
.rot { display: grid; gap: 14px; }
.rot li { display: flex; align-items: center; gap: 16px; }
.rot img, .rot .tile { width: 56px; height: 84px; flex: none; border-radius: 8px; object-fit: cover; }
.rot b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.rot small { color: var(--ink-3); font-size: 13px; }
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px; }
.grid li { position: relative; min-height: 0; }
.grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-inner); box-shadow: 0 6px 16px -10px rgba(40, 20, 30, .5); transition: transform var(--t-base) var(--ease); }
.grid li:hover img { transform: translateY(-4px); }
.grid li::after { content: attr(data-name); position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(255, 250, 245, .92); font-size: 11px; font-weight: 600; text-align: center; opacity: 0; transition: opacity var(--t-base) var(--ease); }
.grid li:hover::after { opacity: 1; }

.tile { position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; border-radius: var(--r-inner); box-shadow: 0 6px 16px -10px rgba(40, 20, 30, .5); width: 100%; height: 100%; transition: transform var(--t-base) var(--ease); }
.grid li:hover .tile { transform: translateY(-4px); }
.tile img { height: auto; box-shadow: none; border-radius: 0; transform: none !important; }
.tile .logo { position: relative; width: 78%; filter: invert(1); }
.tile--roblox { background: linear-gradient(160deg, #26262d, #0f0f13); }
.tile--fortnite { background: linear-gradient(160deg, #2f6bdc, #6b3fd0 60%, #2a1f78); }
.tile--osu { background: linear-gradient(160deg, #ff7ab8, #e0538f); }
.tile--osu img { width: 82%; }
.tile--minecraft { align-content: start; justify-items: center; background: #20303f; padding-top: 12px; }
.tile--minecraft .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.tile--minecraft::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 45%); }
.tile--minecraft .logo { z-index: 1; width: 84%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.rot .tile { border-radius: 8px; }
.rot .tile .logo { width: 84%; }

/* ---------- activity / comments tabs ---------- */
.feed { padding: 16px 20px 20px; }
.tabs { position: relative; display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs__bar { position: absolute; left: 0; bottom: -1px; width: 100px; height: 2px; border-radius: 1px; background: var(--accent); transform-origin: 0 0; transition: transform 320ms var(--ease); }
.tab { padding: 0 0 8px; margin-bottom: -1px; font-weight: 600; color: var(--ink-3); transition: color var(--t-fast) var(--ease); }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab__n { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane[hidden] { display: none; }

.stars { display: inline-flex; gap: 2px; color: #d59a2c; }
.star { width: 14px; height: 14px; fill: none; }
.star.on { fill: currentColor; }
.c-sum { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.c-avg { font-size: 24px; font-weight: 600; line-height: 1; }
.c-total { color: var(--ink-3); font-size: 12px; }
.c-list { flex: 1; min-height: 0; overflow: auto; display: grid; gap: 8px; align-content: start; margin-bottom: 12px; scrollbar-width: thin; }
.c-item { padding: 12px; border-radius: var(--r-inner); background: var(--card-2); border: 1px solid var(--line); }
.c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.c-head b { font-weight: 600; }
.c-head time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.c-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.c-empty { color: var(--ink-3); }
.c-form { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.c-row { display: flex; align-items: center; gap: 12px; }
.c-rate { display: flex; flex: none; }
.c-rate button { width: 28px; height: 28px; display: grid; place-items: center; color: #c9bcbf; transition: color var(--t-fast), transform var(--t-fast) var(--ease); }
.c-rate button:hover { transform: scale(1.12); }
.c-rate button.on, .c-rate button.hov { color: #d59a2c; }
.c-rate .star { width: 20px; height: 20px; }
.c-rate button.on .star, .c-rate button.hov .star { fill: currentColor; }
.field { width: 100%; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
input.field { height: 36px; }
textarea.field { padding: 8px 12px; resize: none; line-height: 1.4; }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.c-foot { display: flex; align-items: center; gap: 12px; }
.c-msg { flex: 1; font-size: 12px; color: var(--ink-2); }
.c-msg.err { color: #b3384a; }
.c-msg.ok { color: #2f7d4f; }
.c-left { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.c-foot .btn { padding: 0 16px; }
.c-foot .btn[disabled] { opacity: .6; cursor: default; }

/* ---------- toast, fly ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; padding: 8px 16px; border-radius: var(--r-ctl); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; z-index: 60; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fly { position: fixed; z-index: 90; border-radius: 50%; overflow: hidden; border: 4px solid #fffaf5; box-shadow: 0 12px 32px -10px rgba(60, 30, 40, .5); pointer-events: none; will-change: transform; }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* laptop heights: give the activity card the room the spectrum used */
@media (max-height: 780px) { .viz { display: none; } .player__row { margin-bottom: 4px; } }

/* ---------- smaller screens fall back to a normal scrolling page ---------- */
@media (max-width: 1120px), (max-height: 620px) {
  .app { zoom: 1; height: auto; grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .profile__body { overflow: visible; }
  .grid { grid-auto-rows: auto; }
  .grid li { aspect-ratio: 2 / 3; }
  .stretch { flex: none; }
}
@media (min-width: 700px) and (max-width: 1120px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .left { grid-row: span 2; }
}
@media (max-width: 480px) {
  .player__row { gap: 12px; }
  .vol input { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- lyrics on the page ---------- */
.lybox { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent); }
.lybox.plain { overflow: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
.ly { padding: 28% 0; transition: transform 600ms var(--ease); }
.ly li { padding: 4px 0; font-size: 18px; font-weight: 600; line-height: 1.3; color: rgba(46, 37, 40, .34); filter: blur(calc(min(var(--d, 3), 4) * .5px)); transition: color 300ms var(--ease), filter 300ms var(--ease); }
.ly li.on { color: var(--ink); filter: none; }
.lybox.plain .ly { padding: 0; }
.lybox.plain .ly li { color: var(--ink-2); filter: none; font-weight: 400; font-size: 15px; }

/* ---------- full screen player ---------- */
.player__expand { margin-left: auto; align-self: flex-start; }
.disc { cursor: pointer; }
.stage { position: fixed; inset: 0; z-index: 80; overflow: hidden; background: #0f0b10; color: #fff; display: grid; align-items: center; justify-items: center; padding: 0 8vw; visibility: hidden; }
.stage[hidden] { display: grid; }
.stage.on { visibility: visible; }
.stage__bg { position: absolute; inset: -14%; background: center / cover no-repeat; filter: blur(80px) saturate(1.2) brightness(.4); }
.stage__down { position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 44px; height: 44px; color: rgba(255, 255, 255, .72); z-index: 2; }
.stage__down:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.stage__main { position: relative; display: grid; justify-items: center; width: min(62vh, 84vw); }
.stage__cover { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .75); background: #1b141d; }
.stage__cover img { width: 100%; height: 100%; object-fit: cover; }
.stage__title { margin-top: 24px; max-width: 100%; text-align: center; font-size: clamp(22px, 2.2vw, 34px); font-weight: 700; line-height: 1.2; }
.stage__artist { margin-top: 4px; max-width: 100%; text-align: center; font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; color: rgba(255, 255, 255, .6); }
.stage__line { display: none; min-height: 1.5em; margin-top: 12px; text-align: center; font-size: clamp(16px, 4vw, 22px); font-weight: 700; }
.stage__seek { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; margin-top: 20px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.stage__bar { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); cursor: pointer; touch-action: none; }
.stage__bar::before { content: ''; position: absolute; inset: -12px 0; }
.stage__bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: #fff; }
.stage__ctrls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 12px; }
.stage .c { color: rgba(255, 255, 255, .85); }
.stage .c:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.stage .c.on { color: #fff; background: rgba(255, 255, 255, .2); }
.stage .c--play { background: none; color: #fff; width: 56px; height: 56px; margin: 0; }
.stage .c--play:hover { background: rgba(255, 255, 255, .12); }
.stage .c--play .i { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.stage .c:not(.c--play):not(.stage__down) .i { fill: none; }
.stage #sPrev .i, .stage #sNext .i { fill: currentColor; }
.stage__ly { display: none; position: relative; height: 100vh; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); }
.stage.has-ly { grid-template-columns: minmax(300px, 34vw) minmax(0, 1fr); column-gap: 8vw; justify-items: stretch; }
.stage.has-ly .stage__main { width: 100%; max-width: min(34vw, 62vh); justify-self: center; }
.stage.has-ly .stage__ly { display: block; }
.stage__ly ul { padding: 38vh 0; transition: transform 650ms var(--ease); }
.stage__ly li { padding: .24em 0; font-size: clamp(24px, 2.5vw, 42px); font-weight: 700; line-height: 1.2; color: rgba(255, 255, 255, .42); filter: blur(calc(min(var(--d, 4), 6) * .8px)); opacity: calc(1 - min(var(--d, 4), 6) * .09);
  transition: color 380ms var(--ease), filter 380ms var(--ease), opacity 380ms var(--ease); }
.stage__ly li.on { color: #fff; filter: none; opacity: 1; }
.stage__ly.plain { overflow: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
.stage__ly.plain ul { padding: 12vh 0; }
.stage__ly.plain li { color: rgba(255, 255, 255, .88); filter: none; opacity: 1; font-size: clamp(16px, 1.7vw, 26px); font-weight: 600; }
.stage__hint { position: absolute; right: 24px; bottom: 24px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13px; opacity: 0; transition: opacity 250ms var(--ease); }
.stage__hint.show { opacity: 1; }
.stage.on .stage__main > :not(.stage__cover) { animation: sRise 700ms 520ms var(--ease) backwards; }
.stage.on .stage__down { animation: sFade 500ms 700ms backwards; }
.stage.on .stage__ly { animation: sFade 800ms 800ms backwards; }
@keyframes sRise { from { opacity: 0; transform: translateY(24px); } }
@keyframes sFade { from { opacity: 0; } }
@media (max-width: 899px) {
  .stage.has-ly { grid-template-columns: 1fr; }
  .stage.has-ly .stage__ly { display: none; }
  .stage .stage__line { display: block; }
  .stage.has-ly .stage__main { max-width: min(62vh, 84vw); }
}
body.staged { overflow: hidden; }

/* ---------- tilt, game links, lyric timing ---------- */
.tilt { transition: transform 380ms var(--ease); will-change: transform; }
.tilt.tilting { transition: transform 90ms linear; }
.glink { display: flex; align-items: center; gap: 16px; width: 100%; color: inherit; }
.rot li { display: block; }
.grid li > a { display: block; width: 100%; height: 100%; }
.lybar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--ink-3); }
.lybar output { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lybar .btn { height: 24px; padding: 0 10px; font-size: 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.lybar .btn:hover { background: #fff; }
.lybar span { margin-right: auto; }

/* ---------- left column: profile and activity ---------- */
.left { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.left .profile { flex: 0 1 auto; }
.activity { flex: 1 1 0; min-height: 140px; display: flex; flex-direction: column; padding: 16px; }
.activity h2 { font-size: 14px; margin-bottom: 8px; }
.activity .act { gap: 8px; overflow: auto; min-height: 0; }
.activity .act__panel { padding: 10px; gap: 8px; }
.activity .act__artwrap, .activity .act__art { width: 52px; height: 52px; }
.activity .act__badge { width: 22px; height: 22px; right: -5px; bottom: -5px; border-width: 2px; }
.activity .act__row { gap: 10px; }
.activity .act__txt b { font-size: 14px; }
.activity .act__txt small, .activity .act__meta { font-size: 12px; }
.activity .act__btns span { height: 28px; font-size: 13px; }
.since { margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.since span:last-child { color: var(--ink-2); }
.conns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.conns a { gap: 8px; }

/* ---------- lyrics on the page: no dead space, warm colours, a fill that follows the singer ---------- */
.ly { padding: 6px 0 46% 0; }
.ly li.past { color: rgba(125, 102, 55, .62); }
.ly li.on { color: transparent; filter: none; background: linear-gradient(90deg, #8a6a2b, #c0557f calc(var(--p, 0) * 100%), rgba(46, 37, 40, .34) calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; }
.ly li.ly-empty { color: var(--ink-3); font-weight: 400; font-size: 14px; filter: none; padding: 12px 0; }
.stage__ly li.past { color: rgba(255, 255, 255, .56); }
.stage__ly li.on { color: transparent; filter: none; opacity: 1; background: linear-gradient(90deg, #fff, #ffd4e3 calc(var(--p, 0) * 100%), rgba(255, 255, 255, .42) calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; }

/* ---------- colours that follow the song ---------- */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #7d6637; }
@property --accent-hover { syntax: '<color>'; inherits: true; initial-value: #6b562d; }
@property --name { syntax: '<color>'; inherits: true; initial-value: #7a6a14; }
@property --tint { syntax: '<color>'; inherits: true; initial-value: rgba(255, 240, 232, .46); }
:root { transition: --accent 900ms ease, --accent-hover 900ms ease, --name 900ms ease, --tint 900ms ease; }
.bg::after { background: var(--tint); }
.bg__cover { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; mix-blend-mode: soft-light; transition: opacity 700ms ease; }
.lybar .btn:last-child { margin-left: 4px; }

/* ---------- lyrics: no blur, per-word fill ---------- */
.ly li, .stage__ly li { filter: none !important; }
.ly li { opacity: calc(1 - min(var(--d, 3), 6) * .09); transition: color 300ms var(--ease), opacity 300ms var(--ease); }
.stage__ly li { opacity: calc(1 - min(var(--d, 4), 6) * .1); }
.ly li.on, .stage__ly li.on { opacity: 1; }
.ly li.on { color: var(--ink); background: none; }
.ly li.on .w { color: transparent; background: linear-gradient(90deg, #8a6a2b, #c0557f calc(var(--p, 0) * 100%), rgba(46, 37, 40, .34) calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; }
.stage__ly li.on { color: #fff; background: none; }
.stage__ly li.on .w { color: transparent; background: linear-gradient(90deg, #fff, #ffd4e3 calc(var(--p, 0) * 100%), rgba(255, 255, 255, .42) calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; }

/* ---------- compact left column: everything fits, no scrollbars ---------- */
.profile__banner { height: 96px; }
.profile__head { height: 36px; }
.avatar { top: -44px; width: 80px; height: 80px; }
.bubble { left: 112px; max-width: calc(100% - 132px); }
.profile__body { padding: 8px 20px 14px; }
.name { font-size: 18px; margin-bottom: 6px; }
.actions { margin: 12px 0 2px; }
.block { margin-top: 10px; }
.bio { min-height: 52px; }
.conns a { height: 32px; }
.activity { padding: 12px 16px; }
.activity h2 { margin-bottom: 6px; }
.activity .act, .profile__body, .c-list, .lybox.plain { scrollbar-width: none; }
.activity .act::-webkit-scrollbar, .profile__body::-webkit-scrollbar, .c-list::-webkit-scrollbar { display: none; }
.activity .act { gap: 6px; }
.activity .act__panel { padding: 8px; gap: 6px; }
.activity .act__artwrap, .activity .act__art { width: 44px; height: 44px; }
.activity .act__badge { width: 20px; height: 20px; right: -4px; bottom: -4px; }
.activity .act__txt b { font-size: 13px; }
.activity .act__prog { margin-top: 2px; }
.activity .act__btns span { height: 24px; font-size: 12px; }
.activity .act__kind { font-size: 11px; }

/* short screens: the activity turns into plain lines so both entries fit */
@media (max-height: 800px) {
  .activity .act__artwrap, .activity .act__btns { display: none; }
  .activity .act__panel { padding: 6px 8px; gap: 2px; }
  .activity .act__row { gap: 0; }
}
@media (max-height: 800px) {
  .profile__banner { height: 64px; }
  .profile__head { height: 30px; }
  .avatar { top: -36px; width: 72px; height: 72px; }
  .bubble { left: 100px; top: -20px; max-width: calc(100% - 120px); }
  .bio { min-height: 0; }
  .block { margin-top: 8px; }
  .actions { margin: 8px 0 0; }
  .conns a { height: 30px; }
}
@media (max-height: 800px) {
  .profile__head { height: 34px; }
  .profile__banner { height: 58px; }
  .activity { padding: 10px 14px; }
  .activity h2 { margin-bottom: 4px; font-size: 13px; }
  .activity .act { gap: 4px; }
  .activity .act__panel { padding: 5px 8px; }
  .conns a { height: 28px; }
}

/* ---------- left column: spare height goes to the banner, the activity card is as tall as its content ---------- */
.left .profile { flex: 1 1 auto; }
.profile__banner { flex: 1 1 96px; min-height: 56px; max-height: 360px; }
.profile__head, .profile__body { flex-shrink: 0; }
.profile__body { flex: 0 0 auto; overflow: visible; }
.left .activity { flex: 0 1 auto; min-height: 0; }
.activity .act { overflow: auto; }
