/* Statistics keep the Terraverse layout, with illustrated mode banners and real player skins. */
.stats-page .stats-search-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 38px;
  min-height: 292px;
  padding: 28px 44px 28px 34px;
  border-color: #e9bc6255;
  border-radius: 18px;
  background: #101e2a;
  box-shadow: 0 18px 50px #0003, 0 0 38px #e9bc6229, 0 0 72px #e9bc6214;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease, box-shadow 320ms ease;
}
.stats-page .stats-search-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #081724a1, #0a1726e8 44%, #101925c9), url('/assets/hero-minecraft-world.webp') center 42% / cover;
}
.stats-page .stats-search-art, .stats-page .stats-search-content { position: relative; z-index: 1; }
.stats-page .stats-search-art { height: 244px; }
.stats-page .stats-search-art::before {
  content: "";
  position: absolute;
  inset: 18px -22px 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #5fceec27, transparent 68%);
}
.stats-page .stats-search-art > img { height: 236px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px #0008); }
.stats-page .stats-search-art > span { width: 142px; height: 27px; bottom: 1px; border-color: #6bcde84d; box-shadow: 0 0 32px #53c8ed20; }
.stats-page .stats-search-content > h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.stats-page .stats-search-content > p { color: #bbceda; }
.stats-page .stats-search-form { max-width: 860px; }
.stats-page .stats-search-input > input { background: #070f1cdd; border-color: #b9d8e637; }
.stats-page .stats-search-input > input:focus { outline: none; outline-offset: 0; border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.stats-page .stats-search-content > .stats-search-hint { color: #9bb2c4; }
.stats-page .stats-search-content > .stats-search-status { margin-top: 13px; }

.stats-page .stats-profile { margin-top: 0; padding: 0; border: 0; border-radius: 0; overflow: visible; box-shadow: none; background: transparent; }
.stats-page .stats-profile:focus { outline: none; }
.stats-page .stats-profile-summary { overflow: hidden; border: 1px solid #e9bc626b; border-radius: 18px; background: #101922; box-shadow: 0 0 42px #e9bc6238, 0 0 82px #f6cb7520, 0 18px 50px #0002; }
.stats-page .stats-profile-card-glow { position: relative; isolation: isolate; }
.stats-page .stats-profile-card-glow::before { content: ""; position: absolute; z-index: -1; inset: -10px -14px; border-radius: 27px; background: radial-gradient(ellipse at 20% 35%, #f6cb7585, transparent 58%), radial-gradient(ellipse at 82% 70%, #e9bc6266, transparent 62%); filter: blur(24px); pointer-events: none; animation: stats-profile-golden-aura 5.8s ease-in-out infinite; }
@keyframes stats-profile-golden-aura { 0%,100% { opacity: .6; transform: translate(-10px, 3px) scale(.99); } 50% { opacity: 1; transform: translate(10px, -3px) scale(1.015); } }
.stats-page .stats-profile-heading {
  position: relative;
  isolation: isolate;
  min-height: 278px;
  padding: 30px 32px 30px 78px;
  margin-bottom: 0;
  gap: 24px;
  background: #102333;
}
.stats-page .stats-profile-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0b182bc9, #101b29dd 55%, #0e192bcc), url('/assets/hero-minecraft-world.webp') center 46% / cover;
}
.stats-page .stats-profile-heading::after { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, #e9bc62, #73d7ef, transparent); }
.stats-page .stats-profile-identity { gap: 28px; min-width: 0; }
.stats-page .stats-profile-back { position: absolute; z-index: 2; top: 20px; left: 18px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #90bfd333; border-radius: 11px; background: #0d1c2bba; color: #c1d9e6; transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms ease; }
.stats-page .stats-profile-back > .icon { width: 22px; height: 22px; }
.stats-page .stats-profile-back:hover { color: #ffe3a7; background: #243344; border-color: #e9bc6270; transform: translateX(-2px); }
.stats-page .stats-skin-stage { position: relative; isolation: isolate; width: 200px; height: 200px; flex-shrink: 0; }
.stats-page .stats-skin-stage::before, .stats-page .stats-skin-stage::after { content: ""; position: absolute; z-index: -1; inset: -32px; border-radius: 50%; background: radial-gradient(ellipse, #96b8fb70, #6fcde531 42%, transparent 70%); filter: blur(12px); pointer-events: none; }
.stats-page .stats-skin-stage::before { opacity: .26; animation: stats-skin-glow 4.8s ease-in-out infinite; }
.stats-page .stats-skin-stage::after { opacity: 0; transform: scale(.9); transition: opacity 360ms ease, transform 360ms cubic-bezier(.2,.7,.2,1); }
@keyframes stats-skin-glow { 0%,100% { opacity: .4; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.04); } }
.stats-page .stats-profile-avatar {
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Let the zoomed skin emerge above and beside the frame, retaining its rounded foot. */
  clip-path: polygon(-24px -40px, calc(100% + 24px) -40px, calc(100% + 24px) calc(100% - 20px), 100% calc(100% - 20px), calc(100% - 1.52px) calc(100% - 12.35px), calc(100% - 5.86px) calc(100% - 5.86px), calc(100% - 12.35px) calc(100% - 1.52px), calc(100% - 20px) 100%, 20px 100%, 12.35px calc(100% - 1.52px), 5.86px calc(100% - 5.86px), 1.52px calc(100% - 12.35px), 0 calc(100% - 20px), -24px calc(100% - 20px));
  border: 1px solid #c1d4f236;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 64%, #9cb5ce31, transparent 78%), linear-gradient(135deg, #394250b3, #232c3a90);
  box-shadow: inset 0 1px 0 #e3efff0a, 0 8px 24px #0003;
  transition: border-color 360ms ease, box-shadow 360ms ease;
}
.stats-page .stats-profile-avatar::before { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; clip-path: inset(0 round 20px); background: radial-gradient(ellipse at 32% 65%, #71d9f59c, transparent 62%), radial-gradient(ellipse at 78% 30%, #aa83ff8c, transparent 65%); filter: blur(15px); opacity: .4; pointer-events: none; animation: stats-skin-inner-glow 4.8s ease-in-out infinite; }
@keyframes stats-skin-inner-glow { 0%,100% { opacity: .3; } 50% { opacity: .85; } }
.stats-page .stats-profile-avatar > img { z-index: 1; inset: auto; top: 0; left: -6%; width: 112%; height: 112%; max-width: none; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 10px 12px #0008); transform: scale(1); transform-origin: center 60%; transition: transform 360ms cubic-bezier(.2,.7,.2,1); }
.stats-page .stats-skin-stars { position: absolute; inset: -20px; pointer-events: none; opacity: .65; transition: opacity 360ms ease; }
.stats-page .stats-skin-stars > .icon { position: absolute; width: 13px; height: 13px; color: #d8e7ff; fill: currentColor; stroke: none; filter: drop-shadow(0 0 5px #a7c4ffb3); opacity: 0; animation: stats-skin-twinkle 3.2s ease-in-out var(--twinkle-delay) infinite; }
.stats-page .stats-skin-stars > .icon:nth-child(1) { left: 4%; top: 18%; --twinkle-delay: -1s; }
.stats-page .stats-skin-stars > .icon:nth-child(2) { right: 0; top: 35%; width: 17px; height: 17px; --twinkle-delay: -.3s; }
.stats-page .stats-skin-stars > .icon:nth-child(3) { left: 12%; bottom: 10%; width: 9px; height: 9px; --twinkle-delay: -1.6s; }
.stats-page .stats-skin-stars > .icon:nth-child(4) { right: 18%; top: 2%; width: 10px; height: 10px; --twinkle-delay: -.8s; }
.stats-page .stats-skin-stars > .icon:nth-child(5) { right: 6%; bottom: 6%; --twinkle-delay: -2.1s; }
@keyframes stats-skin-twinkle { 0% { opacity: 0; transform: translateY(8px) scale(.35) rotate(-15deg); } 35%,55% { opacity: .95; transform: translateY(-1px) scale(1) rotate(0); } 100% { opacity: 0; transform: translateY(-14px) scale(.35) rotate(12deg); } }
.stats-page .stats-profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-width: 0; }
.stats-page .stats-profile-identity h2 { max-width: 100%; font-family: 'Poppins', 'Manrope', Arial, sans-serif; font-size: clamp(1.8rem, 3.5vw, 3.15rem); font-weight: 900; line-height: 1.15; letter-spacing: -.035em; color: #fff; text-shadow: 0 0 22px #e9bc622b, 0 0 46px #e9bc6217; animation: stats-profile-name-glow 3.6s ease-in-out infinite; }
@keyframes stats-profile-name-glow { 0%,100% { text-shadow: 0 0 10px #f6cb7529, 0 0 26px #e9bc6224, 0 0 50px #e9bc6214; } 50% { text-shadow: 0 0 12px #f6cb7570, 0 0 30px #e9bc625c, 0 0 58px #e9bc623d; } }
.stats-page .stats-rank-badge { --stats-rank-glow: var(--stats-rank-color, #e9bc62); display: inline-flex; align-items: center; flex-shrink: 0; max-width: 100%; gap: 9px; padding: 9px 14px; border: 2px solid color-mix(in srgb, var(--stats-rank-color, #b7adb7) 65%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--stats-rank-color, #a79aa3) 8%, transparent); color: var(--stats-rank-color, #fff); font-family: 'Poppins', 'Manrope', Arial, sans-serif; font-size: 1rem; line-height: 1.4; font-weight: 800; white-space: nowrap; text-shadow: 0 0 12px color-mix(in srgb, var(--stats-rank-glow) 30%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--stats-rank-glow) 16%, transparent), 0 0 28px color-mix(in srgb, var(--stats-rank-glow) 8%, transparent); animation: stats-rank-badge-glow 3.6s ease-in-out infinite; }
@keyframes stats-rank-badge-glow { 0%,100% { text-shadow: 0 0 10px color-mix(in srgb, var(--stats-rank-glow) 25%, transparent), 0 0 26px color-mix(in srgb, var(--stats-rank-glow) 14%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--stats-rank-glow) 16%, transparent), 0 0 28px color-mix(in srgb, var(--stats-rank-glow) 8%, transparent), inset 0 0 12px color-mix(in srgb, var(--stats-rank-glow) 4%, transparent); } 50% { text-shadow: 0 0 12px color-mix(in srgb, var(--stats-rank-glow) 65%, transparent), 0 0 30px color-mix(in srgb, var(--stats-rank-glow) 40%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--stats-rank-glow) 35%, transparent), 0 0 38px color-mix(in srgb, var(--stats-rank-glow) 18%, transparent), inset 0 0 12px color-mix(in srgb, var(--stats-rank-glow) 10%, transparent); } }
.stats-page .stats-rank-badge > .icon { width: 24px; height: 24px; flex-shrink: 0; color: inherit; }
.stats-page .stats-rank-badge > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.stats-page .stats-profile-identity p { color: #bbccd8; }
.stats-page .stats-state-badge { flex-shrink: 0; background: #0b1721b8; }
.stats-page .stats-sanctions-link { display: inline-flex; align-items: center; gap: 9px; max-width: 260px; padding: 9px 13px; color: #bdd1e0; border-color: #9dbbd33b; text-decoration: none; transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease; }
.stats-page .stats-sanctions-link > .icon { width: 20px; height: 20px; flex-shrink: 0; }
.stats-page .stats-sanctions-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stats-page .stats-sanctions-copy > span { font-size: .75rem; line-height: 1.5; }
.stats-page .stats-sanctions-copy > small { font-size: .625rem; line-height: 1.5; font-weight: 500; opacity: .8; }
.stats-page .stats-sanctions-link[data-state="ready"] { color: #ffc4bb; border-color: #e59b8b55; background: #9c3a291c; }
.stats-page .stats-sanctions-link[data-state="empty"] { color: #b9e4cf; border-color: #6cb69244; background: #50846b17; }
.stats-page .stats-sanctions-link:hover { color: #fff; border-color: #d7eaff80; background: #24445b; }
.stats-page .stats-overview { margin: 0; padding: 24px; gap: 14px; }
.stats-page .stats-overview > div { --overview-rgb: 233,188,98; position: relative; isolation: isolate; overflow: hidden; padding: 19px 20px; border-color: #dbeaff12; background: linear-gradient(135deg, #192635, #101a26); transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease; }
.stats-page .stats-overview > div:nth-child(2) { --overview-rgb: 112,211,169; }
.stats-page .stats-overview > div:nth-child(3) { --overview-rgb: 83,200,237; }
.stats-page .stats-overview > div:nth-child(4) { --overview-rgb: 217,139,239; }
.stats-page .stats-overview > div::before { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 85% 0%, rgba(var(--overview-rgb), .28), rgba(var(--overview-rgb), .06) 70%); opacity: 0; pointer-events: none; transition: opacity 280ms ease; }
.stats-page .stats-overview dt, .stats-page .stats-overview dd { position: relative; z-index: 1; }
.stats-page .stats-overview dt { color: #9fb7c7; }
.stats-page .stats-overview dd { font-size: clamp(1rem, 1.5vw, 1.25rem); transition: color 280ms ease, text-shadow 280ms ease; }
.stats-page .stats-overview > .stats-gem-value { background: linear-gradient(130deg, #29213a, #181b2c); border-color: #d98bef2e; }
.stats-page .stats-mode-grid { margin-top: 24px; padding: 0; gap: 22px; align-items: start; }
.stats-page .stats-mode-panel { border-color: #dbeaff20; border-radius: 13px; background: #0b1521; }
.stats-page .stats-mode-heading { position: relative; isolation: isolate; overflow: hidden; min-height: 148px; align-items: flex-end; padding: 24px; background: #172939; }
.stats-page .stats-mode-heading::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #07101df5, #09121d63 65%, #07121b0d); }
.stats-page .stats-mode-banner { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.stats-page .stats-mode-skyblock .stats-mode-banner { object-position: center 41%; }
.stats-page .stats-mode-heading > .icon { width: 42px; height: 42px; padding: 5px; border: 1px solid #c7e5ef30; border-radius: 10px; background: #0b1926b3; box-sizing: content-box; color: #f0cc84; }
.stats-page .stats-mode-heading h3 { align-self: flex-end; font-size: 1.6rem; line-height: 1.8; text-shadow: 0 2px 12px #0008; }
.stats-page .stats-alpha-badge { position: absolute; top: 14px; right: 14px; margin: 0; background: #101b2cd9; border-color: #9edff250; color: #b5ebfa; white-space: nowrap; text-transform: uppercase; }
.stats-page .stats-mode-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; }
.stats-page .stats-mode-values > div { display: block; padding: 15px; border: 1px solid #dbeaff0c; border-radius: 9px; background: #15223280; min-width: 0; }
.stats-page .stats-mode-values > div:last-child { border-bottom: 1px solid #dbeaff0c; }
.stats-page .stats-mode-values dt { font-size: .8125rem; color: #9fb5c6; }
.stats-page .stats-mode-values dd { margin-top: 5px; text-align: left; color: #eef4fa; font-size: 1.1rem; }

.stats-page .stats-ranking-filters { gap: 14px; margin-bottom: 22px; }
.stats-page .stats-ranking-filters > button[data-stats-metric="terragemas"] { --filter-accent: #d98bef; --filter-accent-rgb: 217,139,239; --filter-selected-background: #261e35; }
.stats-page .stats-ranking-filters > button[data-stats-metric="playtime"] { --filter-accent: #e9bc62; --filter-accent-rgb: 233,188,98; --filter-selected-background: #2c2519; }
.stats-page .stats-ranking-filters > button[data-stats-metric="survival-land-level"] { --filter-accent: #82d6a5; --filter-accent-rgb: 130,214,165; --filter-selected-background: #182e27; }
.stats-page .stats-ranking-filters > button[data-stats-metric="skyblock-level"] { --filter-accent: #82c9f5; --filter-accent-rgb: 130,201,245; --filter-selected-background: #192b3d; }
.stats-page .stats-ranking-filters > button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100px;
  justify-content: flex-start;
  padding: 20px;
  border-color: #dbeaff29;
  border-radius: 12px;
  color: #e0edf5;
  text-align: left;
  background: #112331;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.stats-page .stats-ranking-filters > button::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .8; background: linear-gradient(90deg, #102234ef, #1022349c), url('/assets/hero-minecraft-world.webp') center 38% / cover; transition: opacity 220ms ease; }
.stats-page .stats-ranking-filters > button[data-stats-metric="terragemas"]::before { background: linear-gradient(100deg, #241b34d9, #25173466), url('/assets/terragemas-custom-gems-v3.png') center 52% / cover; }
.stats-page .stats-ranking-filters > button[data-stats-metric="survival-land-level"]::before { background: linear-gradient(90deg, #101f2fec, #0b1c2fa0), url('/assets/survival.webp') center 43% / cover; }
.stats-page .stats-ranking-filters > button[data-stats-metric="skyblock-level"]::before { background: linear-gradient(90deg, #1b2133eb, #102235b5), url('/assets/skyblock.webp') center 37% / cover; }
.stats-page .stats-ranking-filters > button > .icon { width: 26px; height: 26px; flex-shrink: 0; color: #a5d9e8; }
.stats-page .stats-ranking-filters > button[aria-pressed="true"] { border-color: rgba(var(--filter-accent-rgb), .6); background: var(--filter-selected-background); box-shadow: inset 0 -2px 0 var(--filter-accent), 0 4px 22px rgba(var(--filter-accent-rgb), .12); color: var(--filter-accent); }
.stats-page .stats-ranking-filters > button[aria-pressed="true"] > .icon { color: var(--filter-accent); }
.stats-page .stats-ranking-panel { --ranking-accent: #e9bc62; --ranking-accent-rgb: 233,188,98; --ranking-banner: url('/assets/hero-minecraft-world.webp'); border-color: #e9bc6235; border-radius: 16px; background: #0d1723; }
.stats-page .stats-ranking-panel[data-stats-ranking-theme="terragemas"] { --ranking-accent: #ddb0ee; --ranking-accent-rgb: 221,176,238; }
.stats-page .stats-ranking-panel[data-stats-ranking-theme="playtime"] { --ranking-accent: #e9bc62; --ranking-accent-rgb: 233,188,98; }
.stats-page .stats-ranking-panel[data-stats-ranking-theme="survival-land-level"] { --ranking-accent: #82d6a5; --ranking-accent-rgb: 130,214,165; --ranking-banner: url('/assets/survival.webp'); }
.stats-page .stats-ranking-panel[data-stats-ranking-theme="skyblock-level"] { --ranking-accent: #82c9f5; --ranking-accent-rgb: 130,201,245; --ranking-banner: url('/assets/skyblock.webp'); }
.stats-page .stats-ranking-heading { position: relative; isolation: isolate; min-height: 112px; padding: 26px 30px; background: #182a3c; }
.stats-page .stats-ranking-heading::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0d1a2be8, #101b2ac2), var(--ranking-banner) center 43% / cover; }
.stats-page .stats-ranking-heading h3 { color: var(--ranking-accent); font-size: 1.35rem; }
.stats-page .stats-ranking-heading > span { border: 1px solid #b9d9ee26; border-radius: 999px; background: #0915229e; padding: 7px 12px; color: #b5c9d8; }
.stats-page .stats-ranking-scope { position: absolute; bottom: 20px; right: 24px; z-index: 1; box-sizing: border-box; max-width: 330px; margin: 0; padding: 8px 12px; border: 1px solid rgba(var(--ranking-accent-rgb), .32); border-radius: 8px; background: #0b1721b8; color: #c5d4df; font-size: .75rem; line-height: 1.45; text-align: center; }
.stats-page .stats-ranking-featured:not([hidden]) { position: relative; isolation: isolate; display: flex; align-items: center; gap: 30px; padding: 22px 40px 0; min-height: 258px; overflow: hidden; border-bottom: 1px solid #dbeaff1a; background: radial-gradient(ellipse at 18% 100%, rgba(var(--ranking-accent-rgb), .2), transparent 65%), linear-gradient(105deg, #1c283b, #101c29); }
.stats-page .stats-featured-stars { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.stats-page .stats-featured-stars > .icon { position: absolute; width: 11px; height: 11px; color: var(--ranking-accent); fill: currentColor; stroke: none; filter: drop-shadow(0 0 5px rgba(var(--ranking-accent-rgb), .4)); opacity: 0; animation: stats-featured-twinkle var(--star-duration, 3.6s) ease-in-out var(--star-delay, 0s) infinite; }
.stats-page .stats-featured-stars > .icon:nth-child(1) { left: 5%; top: 18%; --star-delay: -1.4s; }
.stats-page .stats-featured-stars > .icon:nth-child(2) { left: 17%; top: 54%; width: 8px; height: 8px; --star-delay: -.3s; --star-duration: 3.2s; }
.stats-page .stats-featured-stars > .icon:nth-child(3) { left: 28%; top: 14%; width: 14px; height: 14px; --star-delay: -2.2s; --star-duration: 4.2s; }
.stats-page .stats-featured-stars > .icon:nth-child(4) { left: 39%; top: 76%; --star-delay: -.9s; --star-duration: 3.4s; }
.stats-page .stats-featured-stars > .icon:nth-child(5) { left: 47%; top: 28%; width: 8px; height: 8px; --star-delay: -2.8s; }
.stats-page .stats-featured-stars > .icon:nth-child(6) { left: 58%; top: 61%; width: 13px; height: 13px; --star-delay: -1.8s; --star-duration: 4s; }
.stats-page .stats-featured-stars > .icon:nth-child(7) { left: 67%; top: 19%; --star-delay: -.5s; --star-duration: 3.3s; }
.stats-page .stats-featured-stars > .icon:nth-child(8) { left: 77%; top: 79%; width: 8px; height: 8px; --star-delay: -2.4s; }
.stats-page .stats-featured-stars > .icon:nth-child(9) { left: 87%; top: 38%; width: 14px; height: 14px; --star-delay: -1s; --star-duration: 4.1s; }
.stats-page .stats-featured-stars > .icon:nth-child(10) { left: 95%; top: 72%; --star-delay: -3s; --star-duration: 3.8s; }
@keyframes stats-featured-twinkle { 0%,100% { opacity: 0; transform: translateY(7px) scale(.3) rotate(-15deg); } 40%,60% { opacity: .6; transform: translateY(-2px) scale(1) rotate(0); } 90% { opacity: 0; transform: translateY(-12px) scale(.4) rotate(12deg); } }
.stats-page .stats-featured-rank { display: grid; place-items: center; gap: 2px; align-self: center; width: 64px; min-height: 74px; flex-shrink: 0; color: var(--ranking-accent); font-weight: 900; font-size: 1.5rem; border: 1px solid rgba(var(--ranking-accent-rgb), .4); border-radius: 14px; background: rgba(var(--ranking-accent-rgb), .1); box-shadow: 0 0 28px rgba(var(--ranking-accent-rgb), .08); }
.stats-page .stats-featured-rank > .icon { width: 22px; height: 22px; }
.stats-page .stats-featured-player { display: flex; align-items: center; align-self: stretch; flex: 0 1 auto; gap: 30px; min-width: 0; padding: 0; border: 0; border-radius: 14px; background: transparent; color: inherit; text-align: left; pointer-events: none; cursor: default; }
.stats-page .stats-featured-player:not(:disabled) .stats-featured-skin, .stats-page .stats-featured-player:not(:disabled) .stats-featured-name, .stats-page .stats-featured-player:not(:disabled) .stats-featured-owner { pointer-events: auto; cursor: pointer; }
.stats-page .stats-featured-player:focus-visible { outline: 2px solid var(--ranking-accent); outline-offset: -3px; }
.stats-page .stats-featured-skin { position: relative; isolation: isolate; display: grid; place-items: center; width: 156px; height: 238px; flex-shrink: 0; align-self: flex-end; padding: 0; border: 0; border-radius: 16px; background: transparent; }
.stats-page .stats-featured-skin::before, .stats-page .stats-featured-skin::after { content: ""; position: absolute; z-index: 0; inset: 4% -30% -3%; border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--ranking-accent-rgb), .8), rgba(var(--ranking-accent-rgb), .28) 45%, transparent 72%); filter: blur(16px); pointer-events: none; }
.stats-page .stats-featured-skin::before { animation: stats-featured-aura 3.8s ease-in-out infinite; }
.stats-page .stats-featured-skin::after { opacity: 0; transform: scale(.94); transition: opacity 360ms ease, transform 360ms cubic-bezier(.2,.7,.2,1); }
@keyframes stats-featured-aura { 0%,100% { opacity: .55; transform: translate(-5px, 5px) scale(.94); } 50% { opacity: .95; transform: translate(5px, -5px) scale(1.08); } }
.stats-page .stats-featured-skin > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 14px #0008); transform: scale(1); transform-origin: center bottom; transition: transform 360ms cubic-bezier(.2,.7,.2,1); }
.stats-page .stats-featured-player:not(:disabled):focus-visible .stats-featured-skin::after { opacity: .8; transform: scale(1.08); }
.stats-page .stats-featured-player:not(:disabled):focus-visible .stats-featured-skin > img { transform: scale(1.065); }
.stats-page .stats-featured-skin > .icon { position: relative; z-index: 1; width: 76px; height: 76px; color: var(--ranking-accent); opacity: .35; }
.stats-page .stats-featured-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 8px; padding: 16px 0 32px; }
.stats-page .stats-featured-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #b1c7d5; }
.stats-page .stats-featured-name { display: block; font-family: 'Manrope', Arial, sans-serif; font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; line-height: 1.25; padding: 0; color: #f3f7fb; overflow-wrap: anywhere; text-shadow: 0 2px 16px #0004; transform-origin: left center; transition: transform 360ms cubic-bezier(.2,.7,.2,1), color 360ms ease, text-shadow 360ms ease; }
.stats-page .stats-featured-player:not(:disabled):focus-visible .stats-featured-name { color: var(--ranking-accent); transform: scale(1.035); text-shadow: 0 0 20px rgba(var(--ranking-accent-rgb), .35); }
.stats-page .stats-featured-owner { padding: 0; font-size: .875rem; color: #abc5d7; }
.stats-page .stats-featured-value { font-size: clamp(1rem, 1.7vw, 1.3rem); color: var(--ranking-accent); font-variant-numeric: tabular-nums; }
.stats-page .stats-featured-emblem { position: absolute; z-index: -1; width: 180px; height: 180px; right: 4%; bottom: 12px; color: var(--ranking-accent); opacity: .07; transform: rotate(-12deg); }
.stats-page .stats-ranking-table { min-width: 470px; }
.stats-page .stats-ranking-table thead { background: #142232; }
.stats-page .stats-ranking-table th, .stats-page .stats-ranking-table td { padding: 17px 30px; }
.stats-page .stats-ranking-table td:first-child { width: 100px; color: var(--ranking-accent); font-weight: 800; }
.stats-page .stats-ranking-table td:last-child { color: var(--ranking-accent); }
.stats-page .stats-ranking-table tbody tr:has(.stats-ranking-row-link) { position: relative; cursor: pointer; transition: background-color 220ms ease; }
.stats-page .stats-ranking-row-link { position: static; text-decoration: none; transition: color 220ms ease; }
.stats-page .stats-ranking-row-link::after { content: ""; position: absolute; z-index: 2; inset: 0; cursor: pointer; }
.stats-page .stats-ranking-row-link:focus-visible { outline: none; }
.stats-page .stats-ranking-row-link:focus-visible::after { outline: 2px solid var(--ranking-accent); outline-offset: -2px; }
.stats-page .stats-ranking-table tbody tr:has(.stats-ranking-row-link:focus-visible) { background: rgba(var(--ranking-accent-rgb), .06); }
.stats-page .stats-ranking-table tbody tr:has(.stats-ranking-row-link:focus-visible) .stats-ranking-row-link { color: var(--ranking-accent); text-decoration: none; }
.stats-page .stats-ranking-player { display: flex; align-items: center; gap: 13px; }
.stats-page .stats-ranking-entity { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.stats-page .stats-ranking-entity > strong { color: #e0edf6; overflow-wrap: anywhere; }
.stats-page .stats-ranking-owner { padding: 2px 0; font-size: .75rem; font-weight: 600; color: #99b8cd; }
.stats-page .stats-ranking-score { display: block; }
.stats-page .stats-ranking-chunks, .stats-page .stats-ranking-worth { display: block; margin-top: 4px; color: #99b8cd; font-size: .75rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.stats-page .stats-featured-value > .stats-ranking-chunks, .stats-page .stats-featured-value > .stats-ranking-worth { font-size: .8125rem; }
.stats-page .stats-player-head { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; overflow: hidden; border-radius: 6px; border: 1px solid #b4e0ef25; background: #243748; color: #88acbf; }
.stats-page .stats-account-head { background: #243748 url('/assets/steve-head.png') center / cover no-repeat; image-rendering: pixelated; }
.stats-page .stats-player-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.stats-page .stats-player-head > svg { width: 22px; height: 22px; }
.stats-page .stats-ranking-empty { min-height: 220px; gap: 10px; padding: 28px 20px; }
.stats-page .stats-ranking-empty > .icon { width: 42px; height: 42px; color: var(--ranking-accent); }
.stats-page .stats-ranking-retry { margin-left: 30px; }
.stats-page .stats-ranking-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 20px 30px; border-top: 1px solid #dbeaff12; }
.stats-page .stats-ranking-pagination[hidden] { display: none; }
.stats-page .stats-ranking-pagination > span { color: #95b0c2; font-size: .8125rem; font-weight: 600; }
.stats-page .stats-ranking-pagination-controls, .stats-page .stats-ranking-page-numbers { display: inline-flex; align-items: center; gap: 7px; }
.stats-page .stats-ranking-page-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; min-width: 44px; padding: 0; border: 1px solid #b6d8ef14; border-radius: 10px; background: #142534; color: #bdd5e4; font-family: 'Manrope', Arial, sans-serif; font-size: .875rem; font-weight: 800; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.stats-page .stats-ranking-page-button .icon { width: 19px; height: 19px; }
.stats-page .stats-ranking-page-button:not(:disabled):not([aria-current="page"]):hover { background: rgba(var(--ranking-accent-rgb), .13); border-color: rgba(var(--ranking-accent-rgb), .4); color: #eff8ff; }
.stats-page .stats-ranking-page-button:focus-visible { outline: 2px solid var(--ranking-accent); outline-offset: 3px; }
.stats-page .stats-ranking-page-button:disabled { opacity: .35; cursor: default; }
.stats-page .stats-ranking-page-button[aria-current="page"] { border-color: rgba(var(--ranking-accent-rgb), .7); background: var(--ranking-accent); color: #171f2a; opacity: 1; cursor: default; }

@media (hover: hover) {
  .stats-page .stats-search-panel:hover { transform: scale(1.008); border-color: #f6cb75a6; box-shadow: 0 20px 54px #0004, 0 0 44px #e9bc624a, 0 0 82px #e9bc6226; }
  .stats-page .stats-overview > div:hover { transform: translateY(-3px); border-color: rgba(var(--overview-rgb), .6); box-shadow: 0 8px 24px rgba(var(--overview-rgb), .12); }
  .stats-page .stats-overview > div:hover::before { opacity: 1; }
  .stats-page .stats-overview > div:hover dd { color: rgb(var(--overview-rgb)); text-shadow: 0 0 15px rgba(var(--overview-rgb), .4); }
  .stats-page .stats-skin-stage:has(img:not([hidden])):hover::after { opacity: .85; transform: scale(1.05); }
  .stats-page .stats-skin-stage:has(img:not([hidden])):hover .stats-profile-avatar { border-color: #b9cfff88; box-shadow: inset 0 1px 0 #e3efff12, 0 0 30px #9fbaff35; }
  .stats-page .stats-skin-stage:hover .stats-profile-avatar > img { transform: scale(1.065); }
  .stats-page .stats-skin-stage:has(img:not([hidden])):hover .stats-skin-stars { opacity: 1; }
  .stats-page .stats-ranking-filters > button:not(:disabled):hover { transform: translateY(-3px); border-color: rgba(var(--filter-accent-rgb), .72); box-shadow: 0 8px 26px rgba(var(--filter-accent-rgb), .2), 0 0 24px rgba(var(--filter-accent-rgb), .32), 0 0 50px rgba(var(--filter-accent-rgb), .18); }
  .stats-page .stats-ranking-filters > button[aria-pressed="true"]:not(:disabled):hover { border-color: rgba(var(--filter-accent-rgb), .8); box-shadow: inset 0 -2px 0 var(--filter-accent), 0 8px 26px rgba(var(--filter-accent-rgb), .2), 0 0 24px rgba(var(--filter-accent-rgb), .32), 0 0 50px rgba(var(--filter-accent-rgb), .18); }
  .stats-page .stats-ranking-filters > button:not(:disabled):hover::before { opacity: 1; }
  .stats-page .stats-ranking-table tbody tr:has(.stats-ranking-row-link):hover { background: rgba(var(--ranking-accent-rgb), .06); }
  .stats-page .stats-ranking-table tbody tr:has(.stats-ranking-row-link):hover .stats-ranking-row-link { color: var(--ranking-accent); text-decoration: none; }
  .stats-page .stats-featured-player:not(:disabled):hover .stats-featured-name { color: var(--ranking-accent); transform: scale(1.035); text-shadow: 0 0 20px rgba(var(--ranking-accent-rgb), .35); }
  .stats-page .stats-featured-player:not(:disabled):hover .stats-featured-skin::after { opacity: .8; transform: scale(1.08); }
  .stats-page .stats-featured-player:not(:disabled):hover .stats-featured-skin > img { transform: scale(1.065); }
}
@media (max-width: 1000px) {
  .stats-page .stats-search-panel { grid-template-columns: 138px minmax(0, 1fr); gap: 28px; padding: 26px 30px; }
  .stats-page .stats-search-art { height: 226px; }
  .stats-page .stats-search-art > img { height: 220px; }
  .stats-page .stats-profile-heading { gap: 18px; padding: 28px 24px 28px 72px; }
  .stats-page .stats-profile-identity { gap: 20px; flex-basis: 65%; }
  .stats-page .stats-ranking-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-page .stats-ranking-featured:not([hidden]):has(> .stats-ranking-scope:not([hidden])) { padding-bottom: 64px; }
}
@media (max-width: 650px) {
  .stats-page .stats-search-panel { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 24px; }
  .stats-page .stats-search-art { height: 186px; }
  .stats-page .stats-search-art > img { height: 178px; }
  .stats-page .stats-search-art > span { width: 94px; height: 20px; }
  .stats-page .stats-search-content { display: contents; }
  .stats-page .stats-search-content > h2, .stats-page .stats-search-content > p:first-of-type { grid-column: 2; }
  .stats-page .stats-search-art { grid-row: 1 / span 2; }
  .stats-page .stats-search-content > h2 { align-self: end; font-size: 1.35rem; }
  .stats-page .stats-search-content > p:first-of-type { align-self: start; margin-top: 0; }
  .stats-page .stats-search-form, .stats-page .stats-search-content > .stats-search-hint, .stats-page .stats-search-content > .stats-search-status, .stats-page .stats-search-content > noscript { grid-column: 1 / -1; }
  .stats-page .stats-search-form { margin-top: 0; gap: 12px; }
  .stats-page .stats-search-content > .stats-search-hint { margin-top: 0; }
  .stats-page .stats-search-content > .stats-search-status { margin-top: 0; }
  .stats-page .stats-profile-card-glow::before { inset-inline: -4px; }
  .stats-page .stats-profile-heading { padding: 64px 20px 24px; min-height: 0; justify-content: center; }
  .stats-page .stats-profile-identity { flex-basis: 100%; width: 100%; gap: 24px; flex-direction: column; text-align: center; }
  .stats-page .stats-profile-name-row { justify-content: center; gap: 12px; }
  .stats-page .stats-rank-badge { font-size: .875rem; padding: 7px 11px; }
  .stats-page .stats-skin-stage { width: 170px; height: 170px; }
  .stats-page .stats-profile-identity h2 { font-size: 1.5rem; }
  .stats-page .stats-profile-identity .eyebrow { font-size: .6rem; letter-spacing: .1em; }
  .stats-page .stats-overview { padding: 18px; gap: 10px; }
  .stats-page .stats-overview > div { padding: 15px; }
  .stats-page .stats-overview dt { font-size: .75rem; }
  .stats-page .stats-mode-grid { margin-top: 20px; padding: 0; gap: 18px; }
  .stats-page .stats-mode-heading { min-height: 140px; padding: 20px; }
  .stats-page .stats-mode-heading h3 { font-size: 1.5rem; }
  .stats-page .stats-mode-heading > .icon { width: 28px; height: 28px; }
  .stats-page .stats-mode-values { padding: 14px; }
  .stats-page .stats-mode-values > div { padding: 13px; }
  .stats-page .stats-ranking-filters { gap: 10px; }
  .stats-page .stats-ranking-filters > button { min-height: 112px; flex-direction: row; font-size: .8125rem; padding: 16px 12px; gap: 10px; }
  .stats-page .stats-ranking-filters > button > .icon { width: 22px; height: 22px; }
  .stats-page .stats-ranking-heading { padding: 22px; min-height: 120px; gap: 12px; }
  .stats-page .stats-ranking-heading h3 { font-size: 1.2rem; }
  .stats-page .stats-ranking-heading > span { font-size: .75rem; }
  .stats-page .stats-ranking-scope { bottom: 14px; right: 16px; max-width: calc(100% - 32px); padding: 8px 10px; font-size: .6875rem; }
  .stats-page .stats-ranking-featured:not([hidden]) { gap: 16px; min-height: 224px; padding: 20px 20px 0; }
  .stats-page .stats-ranking-featured:not([hidden]):has(> .stats-ranking-scope:not([hidden])) { padding-bottom: 64px; }
  .stats-page .stats-featured-rank { position: absolute; left: 20px; top: 20px; width: 42px; min-height: 42px; z-index: 2; font-size: 1rem; border-radius: 9px; }
  .stats-page .stats-featured-rank > .icon { display: none; }
  .stats-page .stats-featured-skin { width: 112px; height: 200px; margin-left: 6px; }
  .stats-page .stats-featured-player { gap: 16px; }
  .stats-page .stats-featured-copy { gap: 8px; padding-bottom: 32px; }
  .stats-page .stats-featured-label { font-size: .625rem; letter-spacing: .08em; }
  .stats-page .stats-featured-name { font-size: 1.3rem; }
  .stats-page .stats-featured-value { font-size: .9375rem; }
  .stats-page .stats-featured-emblem { width: 110px; height: 110px; }
  .stats-page .stats-ranking-table th, .stats-page .stats-ranking-table td { padding: 16px 20px; }
  .stats-page .stats-ranking-table td:first-child { width: 70px; }
  .stats-page .stats-ranking-empty { align-items: center; text-align: center; padding: 25px 0; }
  .stats-page .stats-ranking-pagination { padding: 18px 20px; gap: 12px; justify-content: center; }
  .stats-page .stats-ranking-pagination > span { flex-basis: 100%; text-align: center; }
  .stats-page .stats-ranking-pagination-controls, .stats-page .stats-ranking-page-numbers { gap: 5px; }
  .stats-page .stats-ranking-page-button { width: 36px; min-width: 36px; }
}
@media (max-width: 380px) {
  .stats-page .stats-search-panel { grid-template-columns: 82px minmax(0, 1fr); gap: 15px; padding: 20px; }
  .stats-page .stats-search-art { height: 170px; }
  .stats-page .stats-search-art > img { height: 160px; }
  .stats-page .stats-search-content > p:first-of-type { font-size: .8125rem; }
  .stats-page .stats-search-art > span { width: 78px; }
  .stats-page .stats-profile-identity { gap: 14px; }
  .stats-page .stats-skin-stage { width: 155px; height: 155px; }
  .stats-page .stats-profile-identity h2 { font-size: 1.2rem; }
  .stats-page .stats-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-page .stats-mode-values { grid-template-columns: 1fr; }
  .stats-page .stats-ranking-filters > button { flex-direction: column; justify-content: center; text-align: center; }
  .stats-page .stats-featured-skin { width: 92px; }
  .stats-page .stats-featured-name { font-size: 1.1rem; }
  .stats-page .stats-ranking-pagination { padding: 17px 12px; }
  .stats-page .stats-ranking-page-button { width: 30px; min-width: 30px; height: 40px; min-height: 40px; border-radius: 8px; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stats-page .stats-featured-stars > .icon { animation: none; opacity: .3; transform: none; }
  .stats-page .stats-profile-identity h2, .stats-page .stats-rank-badge { animation: none; }
  .stats-page .stats-search-panel { transition: none; }
  .stats-page .stats-search-panel:hover { transform: none; }
  .stats-page .stats-profile-card-glow::before { animation: none; opacity: .7; transform: none; }
  .stats-page .stats-profile-avatar::before { animation: none; opacity: .45; transform: none; }
  .stats-page .stats-overview > div, .stats-page .stats-overview > div::before, .stats-page .stats-overview dd { transition: none; }
  .stats-page .stats-overview > div:hover { transform: none; }
  .stats-page .stats-skin-stage::before, .stats-page .stats-skin-stage::after, .stats-page .stats-profile-avatar, .stats-page .stats-profile-avatar > img, .stats-page .stats-skin-stars, .stats-page .stats-profile-back, .stats-page .stats-sanctions-link { transition: none; }
  .stats-page .stats-skin-stage::before { animation: none; opacity: .3; transform: none; }
  .stats-page .stats-skin-stage:has(img:not([hidden])):hover::after { transform: none; }
  .stats-page .stats-skin-stage:hover .stats-profile-avatar > img { transform: scale(1); }
  .stats-page .stats-skin-stars > .icon, .stats-page .stats-skin-stage:hover .stats-skin-stars > .icon { animation: none; opacity: .6; }
  .stats-page .stats-profile-back:hover { transform: none; }
  .stats-page .stats-ranking-filters > button, .stats-page .stats-ranking-filters > button::before { transition: none; }
  .stats-page .stats-ranking-filters > button:not(:disabled):hover { transform: none; }
  .stats-page .stats-ranking-page-button, .stats-page .stats-ranking-row-link, .stats-page .stats-ranking-table tbody tr, .stats-page .stats-featured-skin::after, .stats-page .stats-featured-skin > img, .stats-page .stats-featured-name { transition: none; }
  .stats-page .stats-featured-skin::before { animation: none; opacity: .7; transform: none; }
  .stats-page .stats-featured-player:not(:disabled):is(:hover, :focus-visible) .stats-featured-skin::after, .stats-page .stats-featured-player:not(:disabled):is(:hover, :focus-visible) .stats-featured-skin > img, .stats-page .stats-featured-player:not(:disabled):is(:hover, :focus-visible) .stats-featured-name { transform: none; }
}
