/* Player page (/players/): the banner's layout and everything player-page.js adds to it and below it. The skin palette
   (--sk0..3 vivid, --skt0..3 readable on the theme) is set on #main by player-page.js from the player's skin. */
.player-page { --spring: cubic-bezier(.34, 1.56, .64, 1); --elastic: linear(0, .218 2.1%, .862 6.5%, 1.114 9.4%, 1.206 11.8%, 1.149 15.1%, .978 21.2%, .939 24.3%, .957 28.4%, 1.012 36.3%, 1.017 42.3%, .998 56.5%, 1);
  --sk0: #f4a6c4; --sk1: #9cc8ef; --sk2: #f1d59a; --sk3: #c9a2f0;
  --skl0: #a8326a; --skl1: #2d6aa8; --skl2: #8a6412; --skl3: #6b3fb0;
  --skd0: #ffb3d1; --skd1: #a9d4ff; --skd2: #ffe0a3; --skd3: #d8b8ff;
  --skt0: var(--skl0); --skt1: var(--skl1); --skt2: var(--skl2); --skt3: var(--skl3); }
:root[data-theme="dark"] .player-page { --skt0: var(--skd0); --skt1: var(--skd1); --skt2: var(--skd2); --skt3: var(--skd3); }

/* ---------- Banner layout: avatar, name and status; bio and titles under them; numbers; calendar ---------- */
/* Parts that are missing leave an empty grid row, so the gaps sit on the parts instead of on the grid. */
.player-page .player-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "identity level" "about about" "stats stats" "heat heat"; align-items: end; column-gap: 24px; row-gap: 0; }
.player-page .player-banner[data-look="true"] { grid-template-columns: minmax(0, 1fr) auto 300px; grid-template-areas: "identity level look" "about about look" "stats stats look" "heat heat look"; }
.player-page .player-identity { grid-area: identity; align-items: flex-end; padding-top: 40px; }
.player-page .player-text { padding-top: 0; padding-bottom: 2px; }
.player-page .player-text h1 { line-height: 1.12; }
.player-about { grid-area: about; display: grid; gap: 10px; min-width: 0; margin-top: 14px; }
.player-about:not(:has(> :not([hidden]))) { display: none; }
.player-about .player-bio { margin-top: 0; }
.player-page .player-stats { grid-area: stats; justify-self: start; margin-top: 22px; }
.player-page .player-stats.is-bento { justify-self: stretch; }
.player-level { grid-area: level; align-self: end; justify-self: end; padding-bottom: 6px; }
.player-heat { grid-area: heat; margin-top: 14px; }
.player-page .player-look { grid-area: look; align-self: stretch; height: auto; min-height: 384px; }
@media (max-width: 1100px) {
  .player-page .player-banner[data-look="true"] { grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: "identity look" "about look" "level look" "stats look" "heat heat"; }
  .player-page .player-banner:not([data-look="true"]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "about" "level" "stats" "heat"; }
  .player-page .player-look { min-height: 330px; }
  .player-page .player-look .player-model { --u: 7.5px; }
  .player-level { justify-self: start; margin-top: 16px; }
  .player-page .player-stats.is-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-heat { margin-top: 16px; }
}
@media (max-width: 680px) {
  .player-page .player-banner[data-look="true"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "about" "level" "look" "stats" "heat"; }
  .player-page .player-identity { align-items: flex-start; padding-top: 34px; }
  .player-page .player-look { min-height: 0; height: 290px; }
  .player-page .player-look .player-model { --u: 6.5px; }
  .player-page .player-stats { margin-top: 8px; }
  .player-stats dd.stat-note { white-space: normal; }
  .player-level { margin-top: 14px; }
}

/* ---------- Grainient and Cursor Grid on the strip ---------- */
.player-banner > canvas { position: absolute; left: 0; top: 0; width: 100%; height: 86px; pointer-events: none; }
.player-banner > canvas.grain { z-index: -2; }
.player-banner > canvas.cgrid { z-index: -1; }
.player-banner.has-grain::before { background: linear-gradient(90deg, rgb(255 255 255 / .16) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(rgb(255 255 255 / .16) 1px, transparent 1px) 0 0 / 16px 16px !important; animation: none !important; }
.player-banner:not(.has-grain) > canvas.grain { display: none; }

/* ---------- Pose switch (Rubber Segment) ---------- */
.pose-seg { position: absolute; left: 4px; top: 46%; z-index: 4; translate: 0 -50%; display: grid; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pose-seg button { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); transition: color .25s; }
.pose-seg button:hover { color: var(--ink); }
.pose-seg button[aria-pressed="true"] { color: var(--accent-ink); }
.pose-seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pose-thumb { position: absolute; left: 4px; z-index: 0; width: 34px; border-radius: 10px; background: var(--accent); box-shadow: 0 6px 14px -6px var(--accent); }
.player-model[data-pose="stand"] .player-root { animation: pose-breathe 3.4s ease-in-out infinite; }
.player-model[data-pose="stand"] [data-part="right-arm"], .player-model[data-pose="wave"] [data-part="left-arm"] { animation: pose-sway 3.4s ease-in-out infinite; }
.player-model[data-pose="stand"] [data-part="left-arm"] { animation: pose-sway-left 3.4s ease-in-out infinite; }
.player-model[data-pose="wave"] [data-part="right-arm"] { animation: pose-wave .95s ease-in-out infinite; }
.player-model[data-pose="wave"] [data-part="head"] { animation: pose-tilt 1.9s ease-in-out infinite; }
.player-model[data-pose="wave"] [data-part="left-arm"] { animation-name: pose-sway-left; }
.player-model[data-pose="sprint"] .player-root { animation-duration: .32s; }
.player-model[data-pose="sprint"] :is([data-part="right-arm"], [data-part="left-arm"]) { animation-name: pose-run-arm; animation-duration: .64s; }
.player-model[data-pose="sprint"] :is([data-part="right-leg"], [data-part="left-leg"]) { animation-name: pose-run-leg; animation-duration: .64s; }
.player-model[data-pose="sprint"] :is([data-part="left-arm"], [data-part="left-leg"]) { animation-delay: -.32s; }
.player-model[data-pose="sprint"] .player-cape { animation-name: pose-run-cape; animation-duration: .32s; }
@keyframes pose-breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--u) * -.18); } }
@keyframes pose-sway { 0%, 100% { rotate: z 3deg; } 50% { rotate: z 6deg; } }
@keyframes pose-sway-left { 0%, 100% { rotate: z -3deg; } 50% { rotate: z -6deg; } }
@keyframes pose-wave { 0%, 100% { rotate: z 152deg; } 50% { rotate: z 122deg; } }
@keyframes pose-tilt { 0%, 100% { rotate: z 0deg; } 50% { rotate: z -7deg; } }
@keyframes pose-run-arm { 0%, 100% { rotate: x 55deg; } 50% { rotate: x -55deg; } }
@keyframes pose-run-leg { 0%, 100% { rotate: x -55deg; } 50% { rotate: x 55deg; } }
@keyframes pose-run-cape { 0%, 100% { rotate: x -32deg; } 50% { rotate: x -48deg; } }

/* ---------- Presence (Rotating Text) ---------- */
.player-presence { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--ink-2); font-size: .9rem; font-weight: 650; }
.presence-dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.player-presence[data-online="true"] .presence-dot { background: var(--accent); }
.player-presence[data-online="true"] .presence-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); animation: presence-ping 1.8s ease-out infinite; }
@keyframes presence-ping { from { scale: 1; opacity: .7; } to { scale: 2.8; opacity: 0; } }
.presence-state { color: var(--ink); font-weight: 800; }
.player-presence[data-online="true"] .presence-state { color: var(--accent-text); }
.presence-sep { color: var(--ink-3); }
.presence-rot { position: relative; display: inline-flex; height: 1.5em; line-height: 1.5em; overflow: hidden; transition: width .45s var(--spring); }
.pr-word { display: inline-flex; white-space: pre; }
.pr-word.is-leaving { position: absolute; left: 0; top: 0; }
.pr-ch { display: inline-block; }

/* ---------- Titles (Glare Hover) ---------- */
.player-titles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.title-chip { --t-bg: var(--surface-2); --t-ink: var(--ink-2); --t-line: var(--line); position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 8px; border-radius: 9px; background: var(--t-bg); color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-line); font-size: .78rem; font-weight: 750; overflow: hidden; cursor: default; outline: none; }
.title-chip > .glare::before { left: -70px; width: 50px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .title-chip:hover > .glare::before { left: 120%; } }
.title-chip:focus-visible { box-shadow: inset 0 0 0 1px var(--t-line), 0 0 0 3px var(--accent-ring); }
.title-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.title-chip[data-tone="night"] { --t-bg: #ecebff; --t-ink: #3d2fb0; --t-line: #d6d2ff; }
.title-chip[data-tone="dawn"] { --t-bg: #fff1dd; --t-ink: #8a4a00; --t-line: #ffdcae; }
.title-chip[data-tone="sprout"] { --t-bg: var(--accent-soft); --t-ink: var(--accent-text); --t-line: color-mix(in srgb, var(--accent) 30%, transparent); }
.title-chip[data-tone="hot"] { --t-bg: #ffe9e3; --t-ink: #a12a12; --t-line: #ffcfc2; }
.title-chip[data-tone="mode"] { --t-bg: color-mix(in srgb, var(--g0) 14%, var(--surface)); --t-ink: color-mix(in srgb, var(--g1) 75%, var(--ink)); --t-line: color-mix(in srgb, var(--g0) 35%, transparent); }
.title-chip[data-tone="gold"] { --t-bg: linear-gradient(160deg, #fff6c9, #ffe27a); --t-ink: #5a3d00; --t-line: #f0c94a; background: var(--t-bg); }
.title-chip[data-tone="gold"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .75) 50%, transparent 70%) -150% 0 / 220% 100% no-repeat; animation: gold-sheen 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes gold-sheen { 0%, 55% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
:root[data-theme="dark"] .title-chip[data-tone="night"] { --t-bg: rgb(124 108 255 / .16); --t-ink: #c4bcff; --t-line: rgb(124 108 255 / .3); }
:root[data-theme="dark"] .title-chip[data-tone="dawn"] { --t-bg: rgb(255 160 60 / .14); --t-ink: #ffc98a; --t-line: rgb(255 160 60 / .28); }
:root[data-theme="dark"] .title-chip[data-tone="hot"] { --t-bg: rgb(255 100 70 / .14); --t-ink: #ffab98; --t-line: rgb(255 100 70 / .28); }
:root[data-theme="dark"] .title-chip[data-tone="mode"] { --t-ink: color-mix(in srgb, var(--g0) 70%, white); }
:root[data-theme="dark"] .title-chip[data-tone="gold"] { --t-bg: linear-gradient(160deg, #4a3c10, #33290a); --t-ink: #ffe08a; --t-line: rgb(240 201 74 / .45); }

/* ---------- Level (Count Up): a Minecraft experience level and bar ---------- */
.player-level { display: flex; align-items: center; gap: 14px; cursor: default; }
.lv-top { display: flex; align-items: baseline; gap: 8px; }
.lv-top small { color: var(--ink-3); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.lv-num { color: #80ff20; font-family: var(--font-display); font-size: 2.6rem; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 2px 0 #1c1c1c, -2px 0 #1c1c1c, 0 2px #1c1c1c, 0 -2px #1c1c1c, 2px 2px #1c1c1c, -2px -2px #1c1c1c, 2px -2px #1c1c1c, -2px 2px #1c1c1c, 3px 5px 0 rgb(0 0 0 / .18); }
.lv-track { display: grid; gap: 6px; }
.player-level .xp { width: 190px; }
.player-level .xp i { transition: width 1.3s var(--ease-out) .25s; }
.lv-next { color: var(--ink-3); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.xp { position: relative; display: block; height: 9px; border-radius: 1px; background: #474747; box-shadow: 0 0 0 1.5px #1c1c1c; }
.xp i { position: absolute; left: 1px; top: 1px; bottom: 1px; width: calc((100% - 2px) * var(--p)); background: linear-gradient(#c3ff7a, #7ed321 55%, #4f9b14); }
.xp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #1c1c1c calc(10% - 1px) 10%); }

/* ---------- Number tiles (Magic Bento) ---------- */
.player-stats:not(.is-bento) > [data-extra], .player-stats:not(.is-bento) :is(dt svg, .stat-unit, .stat-note) { display: none; }
.player-stats.is-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
/* Without activity there are only the three tiles, kept to their own width. */
.player-page .player-stats.is-bento:not([data-tiles="6"]) { justify-self: start; grid-template-columns: repeat(3, minmax(132px, auto)); }
@media (max-width: 680px) { .player-page .player-stats.is-bento:not([data-tiles="6"]) { justify-self: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.player-stats.is-bento > div { position: relative; isolation: isolate; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px; min-width: 0; padding: 11px 13px 10px; }
.player-stats.is-bento > div::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(150px circle at var(--gx, -300px) var(--gy, -300px), color-mix(in srgb, var(--sk0) 26%, transparent), transparent 70%); opacity: var(--glow, 0); transition: opacity .25s; }
.player-stats.is-bento > div::after { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: radial-gradient(210px circle at var(--gx, -300px) var(--gy, -300px), var(--sk3), color-mix(in srgb, var(--sk1) 75%, transparent) 35%, transparent 66%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: var(--glow, 0); transition: opacity .25s; pointer-events: none; }
.player-stats.is-bento dt { display: flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; }
.player-stats.is-bento dt svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.player-stats.is-bento dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 3px; min-width: 0; }
.stat-unit { color: var(--ink-3); font-size: .76rem; font-weight: 750; }
.player-stats dd.stat-note { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; margin-top: 2px; color: var(--ink-3); font-size: .7rem; font-weight: 650; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { display: inline-flex; flex: none; align-items: flex-end; gap: 2px; height: 14px; }
.spark i { width: 4px; height: calc(2px + 12px * var(--v)); border-radius: 1px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.spark i.is-today { background: var(--accent); }
.spark i.is-later { height: 2px; background: var(--line-2); }
.player-stats [data-k="streak"][data-hot="true"] dt svg { color: #ff6a1f; transform-origin: 50% 90%; animation: flicker 1.3s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { scale: 1 1; rotate: -4deg; } 40% { scale: .9 1.14; rotate: 3deg; } 70% { scale: 1.06 .94; rotate: -1deg; } }

/* ---------- Calendar (Dot Grid) ---------- */
.player-heat { --h0: color-mix(in srgb, var(--ink) 8%, var(--surface)); --h1: color-mix(in srgb, var(--accent) 30%, var(--surface)); --h2: color-mix(in srgb, var(--accent) 56%, var(--surface)); --h3: color-mix(in srgb, var(--accent) 86%, var(--surface)); --h4: color-mix(in srgb, var(--accent) 78%, #063d1c); position: relative; min-width: 0; padding: 14px 16px 12px; border-radius: 18px; background: var(--surface-2); }
:root[data-theme="dark"] .player-heat { --h0: rgb(255 255 255 / .07); --h4: color-mix(in srgb, var(--accent) 80%, white); }
.heat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; }
.heat-head h2 { font-size: .9rem; font-weight: 800; }
.heat-head p { color: var(--ink-3); font-size: .78rem; font-weight: 650; }
.heat-legend { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--ink-3); font-size: .7rem; font-weight: 700; }
.heat-legend i { width: 10px; height: 10px; border-radius: 3px; }
.heat-legend b { margin: 0 3px; font-weight: 700; }
.heat-scroll { container-type: inline-size; overflow-x: auto; margin: -4px; padding: 4px; scrollbar-width: none; }
.heat-scroll::-webkit-scrollbar { display: none; }
.heat-board { --c: clamp(9px, calc((100cqw - 17px - 159px) / 53), 15px); display: grid; grid-template-columns: 17px repeat(53, var(--c)); grid-template-rows: 13px repeat(7, var(--c)); gap: 3px; width: max-content; }
.heat-board > span { color: var(--ink-3); font-size: .64rem; font-weight: 700; line-height: 13px; white-space: nowrap; }
.heat-board > span.heat-day { line-height: var(--c); }
.heat-board > i { border-radius: 3px; background: var(--h0); transition: scale .3s var(--spring); }
.heat-board > i[data-l="1"] { background: var(--h1); }
.heat-board > i[data-l="2"] { background: var(--h2); }
.heat-board > i[data-l="3"] { background: var(--h3); }
.heat-board > i[data-l="4"] { background: var(--h4); }
.heat-board > i.is-before { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent); }
.heat-board > i.is-untracked { background: repeating-linear-gradient(135deg, transparent 0 2px, color-mix(in srgb, var(--ink) 20%, transparent) 2px 3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.heat-board > i.is-join { box-shadow: 0 0 0 1.5px var(--surface-2), 0 0 0 3px var(--violet); }
.heat-board > i.is-today { box-shadow: 0 0 0 1.5px var(--surface-2), 0 0 0 3px var(--ink); }
.player-heat.is-waiting .heat-board > i { scale: 0; }
.player-heat.is-in .heat-board > i { animation: heat-pop .5s var(--spring) calc(var(--d) * 1ms) backwards; }
@keyframes heat-pop { from { scale: 0; } }

/* ---------- Below the banner ---------- */
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.player-layout:has(> .player-side[hidden]) { grid-template-columns: minmax(0, 1fr); }
.player-main, .player-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; min-width: 0; }
.player-side { gap: 22px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; }
.sec-head .list-title { margin: 0; }
.sec-title { position: relative; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.sec-sub { color: var(--ink-3); font-size: .84rem; font-weight: 650; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.side-title { margin-bottom: 16px; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.side-title small { margin-left: 6px; color: var(--ink-3); font-size: .78rem; font-weight: 650; }
@media (max-width: 1040px) {
  .player-layout { grid-template-columns: minmax(0, 1fr); }
  .player-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
}

/* ---------- Masked Heading ---------- */
@property --drift { syntax: "<length>"; inherits: true; initial-value: 0px; }
.sec-title.masked { --w: 200px; --mesh: radial-gradient(55% 140% at 12% 35%, var(--skt0), transparent 72%), radial-gradient(55% 140% at 48% 75%, var(--skt1), transparent 72%), radial-gradient(55% 140% at 82% 25%, var(--skt2), transparent 72%), linear-gradient(90deg, var(--skt3), var(--skt0) 50%, var(--skt3)); animation: mesh-drift 9s ease-in-out infinite alternate; }
@keyframes mesh-drift { to { --drift: calc(var(--w) * -1); } }
.mh-mask { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: bottom; }
.mh-ch { display: inline-block; background-image: var(--mesh); background-size: calc(var(--w) * 2) 100%; background-position: calc(var(--drift) - var(--x, 0px)) 0; -webkit-background-clip: text; background-clip: text; color: transparent; white-space: pre; }
.sec-title.masked.is-waiting .mh-ch { translate: 0 110%; }
.sec-title.masked.is-in .mh-ch { animation: mh-rise .9s var(--ease-out) calc(var(--k) * 80ms) both; }
@keyframes mh-rise { from { translate: 0 110%; filter: blur(6px); } to { translate: 0 0; filter: none; } }

/* ---------- 代表作 (Card Swap) ---------- */
.swap-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: center; min-height: 320px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(70% 90% at 88% 70%, color-mix(in srgb, var(--sk1) 30%, transparent), transparent 70%), radial-gradient(60% 80% at 10% 0%, color-mix(in srgb, var(--sk0) 26%, transparent), transparent 70%), var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.swap-info { display: grid; gap: 10px; align-content: center; min-width: 0; }
.swap-info .sec-title { font-size: 1.7rem; }
.swap-rank { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-family: var(--font-display); }
.swap-rank b { font-size: 3.2rem; font-weight: 850; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.swap-rank span { color: var(--ink-3); font-weight: 750; }
.swap-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .86rem; font-weight: 650; }
.swap-meta span { display: inline-flex; align-items: center; gap: 5px; }
.swap-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swap-dots { display: flex; gap: 6px; margin-top: 4px; }
.swap-dots i { width: 22px; height: 5px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.swap-dots i.is-on::after { content: ""; display: block; height: 100%; background: var(--ink); animation: swap-fuse var(--swap-ms, 5000ms) linear both; }
.swap-wrap.is-paused .swap-dots i.is-on::after { animation-play-state: paused; }
.swap-wrap.is-single .swap-dots { display: none; }
.swap-wrap.is-single .swap-card { cursor: pointer; }
@keyframes swap-fuse { from { width: 0; } to { width: 100%; } }
.swap-stage { position: relative; height: 270px; perspective: 900px; perspective-origin: 30% 30%; }
.swap-card { --i: 0; position: absolute; left: 0; bottom: 12px; display: grid; align-content: start; gap: 9px; width: min(310px, calc(100% - 72px)); height: 192px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); transform: translate3d(calc(var(--i) * 34px), calc(var(--i) * -30px), calc(var(--i) * -80px)) skewY(4deg); transition: transform .95s var(--elastic), opacity .35s, filter .5s; cursor: grab; user-select: none; touch-action: pan-y; }
.swap-card:not([style*="--i: 0"]) { filter: saturate(.85); }
.swap-card.is-dropping { transform: translate3d(-24px, 190px, 40px) rotate(-7deg) skewY(4deg); opacity: 0; transition: transform .48s cubic-bezier(.55, 0, 1, .45), opacity .42s ease-in; }
.swap-card.is-dragging { transition: none; cursor: grabbing; }
.swap-card .config-card-title { font-size: 1.08rem; }
.swap-card .config-card-title a { color: inherit; }
.swap-card .config-card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: .84rem; }
.swap-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; color: var(--ink-3); font-size: .8rem; font-weight: 700; }
.swap-foot span { display: inline-flex; align-items: center; gap: 4px; }
.swap-foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.swap-foot .meta-chip { margin-left: auto; }
.swap-medal { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 850; }
@media (max-width: 720px) {
  .swap-wrap { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .swap-stage { height: 262px; }
}

/* ---------- Filter (Gooey Nav, as on the announcements page) ---------- */
.player-filter { max-width: none; margin-bottom: 18px; }
.player-filter .chip b { margin-left: 4px; font-weight: 700; opacity: .7; }

/* ---------- 进度 (Pixel Swap): Minecraft advancements ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adv { position: relative; height: 150px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; outline: none; }
.adv:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); }
.adv-face { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px; text-align: center; }
.adv-front b { font-size: .88rem; font-weight: 800; }
.adv-front small { margin-top: -6px; color: var(--ink-3); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.adv[data-got="false"] .adv-front b { color: var(--ink-3); }
.adv-back { gap: 8px; align-content: center; justify-items: stretch; padding: 14px 16px; text-align: left; background: var(--surface-2); }
.adv[data-got="true"] .adv-back { background: linear-gradient(160deg, #fff6c9, #ffe58a); color: #3a2600; }
:root[data-theme="dark"] .adv[data-got="true"] .adv-back { background: linear-gradient(160deg, #3d3210, #2c230b); color: #ffe7a0; }
.adv-back b { font-size: .9rem; font-weight: 850; }
.adv-back p { font-size: .78rem; font-weight: 650; line-height: 1.5; opacity: .85; }
.adv-back small { font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; opacity: .8; }
.adv[data-side="front"] > .adv-back, .adv[data-side="back"] > .adv-front { visibility: hidden; }
.px-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.px-cell { position: absolute; overflow: hidden; border-radius: 2px; }
.px-cell > .adv-back { visibility: visible; }
/* Frames: task (square), goal (rounded), challenge (spiky); gold once earned. */
.adv-frame { --f: #c6c6c6; --fl: #f4f4f4; --fd: #6f6f6f; position: relative; display: grid; place-items: center; width: 50px; height: 50px; background: var(--f); color: #2d2d2d; box-shadow: inset 4px 4px 0 var(--fl), inset -4px -4px 0 var(--fd), 0 0 0 3px #1c1c1c; }
.adv[data-got="true"] .adv-frame { --f: #f2c744; --fl: #fff3a6; --fd: #b07d12; color: #3a2600; }
.adv-frame[data-kind="goal"] { border-radius: 15px; }
.adv-frame-wrap { filter: drop-shadow(2.5px 0 0 #1c1c1c) drop-shadow(-2.5px 0 0 #1c1c1c) drop-shadow(0 2.5px 0 #1c1c1c) drop-shadow(0 -2.5px 0 #1c1c1c); }
.adv-frame[data-kind="challenge"] { width: 58px; height: 58px; box-shadow: none; background: linear-gradient(135deg, var(--fl), var(--f) 45%, var(--fd)); clip-path: polygon(50% 0, 64.5% 14.9%, 85.4% 14.6%, 85.1% 35.5%, 100% 50%, 85.1% 64.5%, 85.4% 85.4%, 64.5% 85.1%, 50% 100%, 35.5% 85.1%, 14.6% 85.4%, 14.9% 64.5%, 0 50%, 14.9% 35.5%, 14.6% 14.6%, 35.5% 14.9%); }
.adv-frame svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.adv[data-got="false"] .adv-frame svg { opacity: .55; }

/* ---------- 玩家名片 (Flip Card) ---------- */
.flip { position: relative; height: 212px; perspective: 1100px; cursor: grab; touch-action: pan-y; user-select: none; outline: none; }
.flip:focus-visible .flip-face { box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-md); }
.flip.is-dragging { cursor: grabbing; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--flip, 0deg)); }
.flip-face { position: absolute; inset: 0; display: grid; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; backface-visibility: hidden; }
.flip-front { grid-template-rows: auto 1fr auto; background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--sk0) 36%, transparent), transparent 70%), radial-gradient(70% 80% at 0% 100%, color-mix(in srgb, var(--sk1) 30%, transparent), transparent 70%), var(--surface); }
.flip-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%); pointer-events: none; }
.flip-back { transform: rotateY(180deg); align-content: start; gap: 12px; }
.flip[data-side="front"] .flip-back, .flip[data-side="back"] .flip-front { pointer-events: none; }
.card-id { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.card-id .player-avatar { width: 64px; height: 64px; border-radius: 16px; font-size: 1.5rem; box-shadow: 0 10px 22px -10px rgb(0 0 0 / .45), 0 0 0 3px var(--surface); }
.card-id strong { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 1.3rem; font-weight: 850; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card-id span.card-model { display: block; margin-top: 2px; color: var(--ink-3); font-size: .8rem; font-weight: 650; }
.card-palette { position: relative; display: flex; align-items: center; gap: 8px; align-self: end; }
.card-palette em { margin-right: 4px; color: var(--ink-3); font-size: .76rem; font-style: normal; font-weight: 700; }
.card-palette i { width: 26px; height: 26px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08), inset 0 -4px 0 rgb(0 0 0 / .12); }
.flip-hint { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--ink-3); }
.flip-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flip-back h3 { color: var(--ink-3); font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.flip-uuid { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .95rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.flip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.flip-actions .btn svg { width: 15px; height: 15px; }

/* ---------- 常玩模式 (Glass Icons) ---------- */
.glass-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; }
.glass-item { display: grid; justify-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.glass-icon { position: relative; width: 56px; height: 56px; perspective: 360px; }
.glass-back { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(135deg, var(--g0), var(--g1)); rotate: 15deg; box-shadow: 0 10px 22px -10px var(--g1); transition: rotate .55s var(--spring), translate .55s var(--spring); }
.glass-front { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(9px) saturate(1.6); backdrop-filter: blur(9px) saturate(1.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), inset 0 1.5px 0 rgb(255 255 255 / .7); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--spring); }
:root[data-theme="dark"] .glass-front { background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22), inset 0 1.5px 0 rgb(255 255 255 / .35); }
.glass-front svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .25)); }
.glass-item:hover .glass-back, .glass-item:focus-visible .glass-back { rotate: 27deg; translate: -3px -3px; }
.glass-item:focus-visible { outline: none; }
.glass-item:focus-visible .glass-front { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), 0 0 0 3px var(--accent-ring); }
.glass-item b { font-size: .8rem; font-weight: 750; color: var(--ink); white-space: nowrap; }
.glass-item small { margin-top: -7px; color: var(--ink-3); font-size: .72rem; font-weight: 700; }
.glass-item[aria-pressed="true"] b { color: var(--accent-text); }

/* ---------- 活跃时段 (Circular Text) ---------- */
.clock { position: relative; width: min(100%, 244px); aspect-ratio: 1; margin: 0 auto 8px; }
.clock-bars { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.clock-bars line { stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 1; }
.clock-bars .bar-day { stroke: #f2a33a; }
.clock-bars .bar-night { stroke: var(--violet); }
.clock-bars .bar-peak { stroke-width: 9; }
.clock-bars text { fill: var(--ink-3); font-size: 9px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.clock.is-waiting .clock-bars line { stroke-dashoffset: 1; }
.clock.is-in .clock-bars line { animation: bar-grow .9s var(--ease-out) calc(var(--k) * 28ms) backwards; }
@keyframes bar-grow { from { stroke-dashoffset: 1; } }
.clock-mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; }
.clock-mid b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 850; letter-spacing: -.02em; }
.clock-mid small { color: var(--ink-3); font-size: .68rem; font-weight: 750; }
.clock-ring { position: absolute; inset: 0; }
.clock-ring span { position: absolute; left: 50%; top: 0; width: 1.2em; height: 50%; margin-left: -.6em; color: var(--ink-3); font-size: .7rem; font-weight: 800; text-align: center; transform-origin: 50% 100%; rotate: var(--a); }
.clock-ring span.is-word { color: var(--violet); }
.clock-sum { color: var(--ink-2); font-size: .84rem; font-weight: 650; line-height: 1.6; text-align: center; }

/* ---------- 最近动态 (Fold Text) ---------- */
.feed { position: relative; display: grid; gap: 14px; padding-left: 22px; list-style: none; }
.feed::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); transform-origin: 50% 0; }
.feed-item { position: relative; display: grid; gap: 2px; perspective: 520px; }
.feed-item::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 3px; background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--accent); }
.feed-item[data-kind="adv"]::before { background: #f2c744; box-shadow: inset 2px 2px 0 #fff3a6, inset -2px -2px 0 #b07d12, 0 0 0 1.5px #1c1c1c; border-radius: 1px; }
.feed-item[data-kind="join"]::before { box-shadow: inset 0 0 0 2.5px var(--violet); }
.feed-item time { color: var(--ink-3); font-size: .74rem; font-weight: 700; }
.feed-text { font-size: .86rem; font-weight: 650; line-height: 1.55; color: var(--ink-2); }
.feed-text a { color: var(--ink); font-weight: 800; }
.feed-text a:hover { color: var(--accent-text); }
.feed-text q { color: #9a6a00; font-weight: 800; quotes: "「" "」"; }
:root[data-theme="dark"] .feed-text q { color: #ffd66b; }
.feed-more { color: var(--ink-3); font-size: .78rem; font-weight: 650; }
.fold { position: relative; display: block; transform-origin: 50% 0; }
.fold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .32), transparent); opacity: 0; pointer-events: none; }
.feed.is-waiting .fold { transform: rotateX(-95deg); opacity: 0; }
.feed.is-waiting::before { scale: 1 0; }
.feed.is-open::before { animation: rail .9s var(--ease-out) both; }
.feed.is-open .fold { animation: unfold .85s var(--ease-out) calc(var(--k) * 85ms) both; }
.feed.is-open .fold::after { animation: crease .85s ease-out calc(var(--k) * 85ms) both; }
@keyframes rail { from { scale: 1 0; } }
@keyframes unfold { 0% { transform: rotateX(-95deg); opacity: 0; } 40% { opacity: 1; } 72% { transform: rotateX(9deg); } 100% { transform: none; opacity: 1; } }
@keyframes crease { 0% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .player-heat.is-waiting .heat-board > i { scale: 1; }
  .clock.is-waiting .clock-bars line { stroke-dashoffset: 0; }
  .feed.is-waiting .fold, .sec-title.masked.is-waiting .mh-ch { transform: none; translate: none; opacity: 1; }
  .sec-title.masked { animation: none; }
}

/* ---------- Player list (/players/ without an id, player-directory.js) ---------- */
/* The script names the mode first thing; until then neither half shows, so the list never flashes the player page. */
.js .player-page:not([data-mode]) :is(.player-hero, .player-layout) { visibility: hidden; }
.player-page[data-mode="directory"] :is(.player-hero, .player-layout) { display: none; }
.directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.directory-toolbar .search { flex: 1 1 320px; }
.player-directory .result-count { margin: 18px 0 14px; }
.player-directory .page-retry { margin-top: 12px; }
/* Podium: second, first and third on steps of three heights, the first raised in the middle. */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; margin: 4px 0 28px; padding: 0; list-style: none; }
.podium-place { display: grid; min-width: 0; }
.podium-place.is-1 { --podium: var(--gold); --step: 70px; }
.podium-place.is-2 { --podium: #94a3b8; --step: 42px; }
.podium-place.is-3 { --podium: #c2783f; --step: 22px; }
.podium-card { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 26px 16px 18px; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--podium) 16%, transparent), transparent 70%), var(--surface); text-align: center; transition: translate .35s var(--spring); }
.podium-card:hover { translate: 0 -4px; }
.podium-place.is-1 .podium-card { padding-top: 34px; border-color: color-mix(in srgb, var(--podium) 55%, var(--line)); }
.podium-step { display: block; height: var(--step); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--podium) 30%, var(--surface)), color-mix(in srgb, var(--podium) 10%, var(--surface))); }
.podium-rank { position: absolute; top: 10px; left: 14px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--podium) 85%, var(--ink)); }
.podium-card .dir-name { justify-content: center; max-width: 100%; font-size: 1.15rem; }
.podium-card .dir-modes { justify-content: center; }
.podium-likes { display: grid; margin-top: 2px; }
.podium-likes b { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.podium-likes > span { color: var(--ink-3); font-size: .74rem; font-weight: 650; }
.dir-face.is-big .player-avatar { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 0 0 3px var(--surface), 0 10px 22px -10px rgb(0 0 0 / .45); }
.podium-place.is-1 .dir-face.is-big .player-avatar { width: 88px; height: 88px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--podium) 70%, var(--surface)), 0 14px 28px -12px rgb(0 0 0 / .5); }
/* Player cards. */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dir-card { position: relative; isolation: isolate; display: grid; align-content: start; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: translate .35s var(--spring), border-color .2s, box-shadow .2s; }
.dir-card:hover { translate: 0 -3px; border-color: var(--line-2); box-shadow: var(--shadow-md); }
.dir-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dir-face { position: relative; display: grid; flex-shrink: 0; }
.dir-face .player-avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 1.2rem; }
.dir-online { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.dir-text { display: grid; gap: 6px; min-width: 0; }
.dir-name { display: flex; align-items: center; min-width: 0; overflow: hidden; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.dir-name .supporter-badge { flex-shrink: 0; margin-left: 6px; }
.dir-modes { display: flex; flex-wrap: wrap; gap: 4px; }
.dir-modes .tag { height: 20px; padding: 0 7px; font-size: .72rem; }
.dir-bio { display: -webkit-box; min-height: 2.9em; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink-2); font-size: .86rem; line-height: 1.45; }
.dir-bio.is-missing { color: var(--ink-3); }
.dir-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dir-stats { display: flex; gap: 12px; color: var(--ink-3); font-size: .8rem; }
.dir-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.dir-stats svg.icon { width: 14px; height: 14px; }
.dir-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dir-note { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-size: .78rem; font-weight: 700; }
.dir-note svg.icon { width: 14px; height: 14px; }
.dir-ghost { min-height: 170px; background: linear-gradient(100deg, transparent 30%, var(--chip-shine) 50%, transparent 70%) 0 0 / 300% 100% no-repeat, var(--surface); animation: chip-shine 1.4s linear infinite; }
.dir-grid > .empty-state { grid-column: 1 / -1; }
.dir-closed { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; }
@media (max-width: 680px) {
  .podium { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .podium-place.is-1 { order: -1; }
  .podium-step { display: none; }
  .podium-card, .podium-place.is-1 .podium-card { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 4px 14px; padding: 14px 16px 14px 52px; border-bottom: 1px solid var(--line); border-radius: 18px; text-align: left; }
  .podium-card .dir-face { grid-row: span 3; }
  .podium-card .dir-name, .podium-card .dir-modes { justify-content: flex-start; }
  .podium-rank { top: 50%; left: 14px; translate: 0 -50%; font-size: 1.3rem; }
  .podium-likes { grid-column: 2; display: flex; align-items: baseline; gap: 6px; }
  .podium-likes b { font-size: 1.1rem; }
  .dir-face.is-big .player-avatar, .podium-place.is-1 .dir-face.is-big .player-avatar { width: 56px; height: 56px; border-radius: 16px; }
}

/* ---------- The pinned config in 代表作 ---------- */
.swap-pin { position: absolute; top: 15px; right: 52px; z-index: 1; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); color: var(--warning-text); font-size: .72rem; font-weight: 800; }
