/* ============ XYMC design system ============ */
:root {
  /* colour */
  --bg: #070807;
  --surface: rgba(255, 255, 255, .04); --surface-2: rgba(255, 255, 255, .07); --sunken: rgba(0, 0, 0, .35);
  --border: #2f302f; --border-2: #464846; /* solid, not see-through, so a line is the same shade on every background */
  --text: #f4f6f1; --text-2: #c2c7bb; --text-3: #8f958a;           /* 17:1 · 11:1 · 6.3:1 on --bg */
  --lime: #c8ff3e; --lime-2: #a6e22a; --ink: #0c1300;                 /* primary accent */
  --orange: #ff9a3d;                                                  /* secondary accent: time-sensitive */
  --red: #ff5f6d;
  --common: #ecebf2; --uncommon: #ffff55; --rare: #55ffff; --epic: #ff55ff; --mythic: #ffaa00;
  /* space (4-pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  /* radius: nested surfaces use outer − padding */
  --pad: 20px; --r-out: 28px; --r-in: calc(var(--r-out) - var(--pad)); --r-pill: 999px;
  /* type */
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 24px; --fs-2xl: 36px; --fs-3xl: 52px;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --pixel: 'Silkscreen', monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-md)/1.55 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
em, i { font-style: normal; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: anywhere; margin: 0; }
p { text-wrap: pretty; margin: 0; }
b, strong { overflow-wrap: anywhere; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--s5); }
.t2 { color: var(--text-2); } .t3 { color: var(--text-3); } .lime { color: var(--lime); } .orange { color: var(--orange); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--mono); font-size: 13px; }
.ic { flex: none; display: block; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.r-Common { color: var(--common); } .r-Uncommon { color: var(--uncommon); } .r-Rare { color: var(--rare); } .r-Epic { color: var(--epic); } .r-Mythic { color: var(--mythic); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ============ header ============ */
.top { position: sticky; top: 0; z-index: 30; background: rgba(7, 8, 7, .78); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: var(--s6); height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 21px Inter; letter-spacing: -.03em; }
.logo b { color: var(--lime); }
.logo.small { font-size: 16px; gap: var(--s2); margin-bottom: var(--s2); }
.nav { display: flex; gap: var(--s1); }
.nav a { padding: var(--s2) 14px; border-radius: var(--r-pill); color: var(--text-2); font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.on { color: var(--ink); background: var(--lime); font-weight: 600; }
.search { position: relative; flex: 1; max-width: 400px; margin-left: auto; }
.search input { width: 100%; height: 42px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0 56px 0 40px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: #c8ff3e88; box-shadow: 0 0 0 4px #c8ff3e1a; }
.search-ic { position: absolute; left: 14px; top: 13px; color: var(--text-3); }
@media (max-width: 900px) { .nav, .sign span:last-child { display: none; } .top-in { gap: var(--s3); } }

/* ============ controls ============ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--border-2);
  background: var(--surface-2); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { background: rgba(255, 255, 255, .11); border-color: var(--border-2); }
/* buttons keep their size when pressed (no shrink on click) */
.btn.primary { color: var(--ink); border-color: transparent; background: var(--lime); box-shadow: 0 8px 24px -12px #c8ff3ecc; }
.btn.primary:hover { background: #d6ff66; box-shadow: 0 10px 28px -10px #c8ff3eee; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.icon { width: 44px; padding: 0; } .btn.sm.icon { width: 34px; }
.btn.on { color: var(--lime); border-color: #c8ff3e66; }
.btn.liked { color: var(--red); border-color: #ff5f6d55; }
.btn.liked svg { fill: currentColor; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
/* busy state: a spinner replaces the label while a request runs */
.btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"] svg { opacity: 0; }
.btn[aria-busy="true"]::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--text) transparent var(--text) transparent; animation: spin .7s linear infinite; }
.btn.primary[aria-busy="true"]::after { border-color: var(--ink) transparent var(--ink) transparent; }
.popped svg { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.45); } }
@keyframes spin { to { transform: rotate(360deg); } }
.grow { flex: 1; min-width: 0; }
.field { height: 44px; min-width: 0; background: var(--sunken); border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 0 var(--s4); outline: none; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: var(--text-3); }
.field:focus { border-color: #c8ff3e88; box-shadow: 0 0 0 4px #c8ff3e1a; }
textarea.field { height: auto; padding: var(--s3) var(--s4); border-radius: var(--r-in); resize: vertical; }
select.field { padding-right: 34px; appearance: none; background: var(--sunken) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f958a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.seg { display: inline-flex; padding: var(--s1); gap: 2px; background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r-pill); flex-wrap: wrap; }
.seg button { height: 30px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--lime); color: var(--ink); }
.pills { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pills button { height: 38px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2); transition: all .2s var(--ease); }
.pills button:hover { color: var(--text); border-color: var(--border-2); }
.pills button.on { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.pills small { color: inherit; opacity: .6; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-pill); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-2); transition: all .2s var(--ease); }
.chip:hover { border-color: #c8ff3e66; color: var(--text); }
.chip.on { background: #c8ff3e1f; border-color: #c8ff3e88; color: var(--lime); }
.chip small { color: var(--text-3); }
.chip.new { animation: chipIn .4s var(--ease); }
@keyframes chipIn { from { opacity: 0; transform: scale(.7); } }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font: 600 var(--fs-xs) Inter; border: 1px solid; white-space: nowrap; }
.st-live { color: var(--lime); border-color: #c8ff3e44; background: #c8ff3e10; }
.st-limited { color: var(--orange); border-color: #ff9a3d55; background: #ff9a3d12; }
.st-ended, .st-personal, .st-staff { color: var(--text-2); border-color: var(--border-2); }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s3); border-radius: var(--r-pill); font: 600 var(--fs-xs) Inter; border: 1px solid #ffaa0055; color: #ffd27a; background: #ffaa0012; white-space: nowrap; }
.link { color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, gap .2s; }
.link:hover { color: var(--lime); gap: 9px; }

/* ============ surfaces ============ */
.card { position: relative; min-width: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); backdrop-filter: blur(20px) saturate(140%); border: 1px solid var(--border); border-radius: var(--r-out); padding: var(--pad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.card.accent { background: radial-gradient(120% 90% at 100% 0%, #c8ff3e1c, transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); }
.card-h { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.card-h > :last-child:not(:first-child) { margin-left: auto; }
.card-t { font: 600 var(--fs-md) Inter; color: var(--text); }
.note { color: var(--text-3); font-size: var(--fs-xs); margin-top: var(--s4); }
.page { padding: var(--s6) 0 var(--s8); }
.page > * { animation: rise .5s var(--ease) both; }
.page > :nth-child(2) { animation-delay: .04s; } .page > :nth-child(3) { animation-delay: .08s; } .page > :nth-child(n+4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.page-h { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 760px; }
.page-h h1 { font: 800 var(--fs-2xl)/1.1 Inter; letter-spacing: -.03em; }
.page-h p { color: var(--text-2); font-size: var(--fs-md); }
.crumbs { display: flex; gap: var(--s2); color: var(--text-3); font-size: var(--fs-sm); margin-bottom: var(--s4); }
.crumbs a { color: var(--text-2); transition: color .2s; } .crumbs a:hover { color: var(--lime); }
.grid { display: grid; gap: var(--s4); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.empty { padding: var(--s8) var(--s5); text-align: center; color: var(--text-2); }
.empty h2 { color: var(--text); margin-bottom: var(--s2); font-size: var(--fs-xl); }
.section { margin-top: var(--s8); }
.section-h { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s4); }
.section-h h2 { font: 700 var(--fs-xl) Inter; letter-spacing: -.02em; }
.section-h a { margin-left: auto; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* tooltip */
.mctip { padding: var(--s3) var(--s4); border-radius: 14px; background: rgba(10, 12, 9, .95); backdrop-filter: blur(16px); border: 1px solid var(--border-2); box-shadow: 0 18px 40px -12px #000; }
.mctip .t { display: block; font-weight: 700; font-size: var(--fs-md); }
.mctip .l { display: block; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.mctip .l b { color: var(--text); font-weight: 600; }
.mctip hr { border: 0; height: 1px; background: var(--border); margin: 6px 0; }

/* loader: enchanting-table glyphs wave and glow */
.loader { display: grid; place-items: center; gap: var(--s4); padding: 120px var(--s5); }
.glyphs { display: flex; gap: 6px; font-size: 28px; color: var(--lime); }
.glyphs span { display: inline-block; animation: glyph 1.4s var(--ease) infinite; text-shadow: 0 0 6px #c8ff3e, 0 0 18px #c8ff3e99, 0 0 36px #c8ff3e55; }
@keyframes glyph { 0%, 100% { transform: translateY(0); opacity: .35; text-shadow: 0 0 2px #c8ff3e44; } 40% { transform: translateY(-8px); opacity: 1; text-shadow: 0 0 8px #c8ff3e, 0 0 22px #c8ff3ecc, 0 0 44px #c8ff3e77; } }
.loader p { color: var(--text-2); font-size: var(--fs-sm); }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-in); }
@keyframes shimmer { to { background-position: -200% 0; } }
.is-loading { opacity: .5; transition: opacity .2s; pointer-events: none; }

/* ============ character card ============ */
.char-card { --glow: #c8ff3e; --feet: .75; position: relative; height: 580px; border-radius: var(--r-out); overflow: hidden; isolation: isolate; border: 1px solid var(--border);
  background: radial-gradient(50% 36% at 50% calc(var(--feet) * 100%), color-mix(in srgb, var(--glow) 26%, transparent), transparent 72%), linear-gradient(180deg, #121510, #080907); }
/* skin and cape pages: the same faint grid as the cards, whole squares only, starting under the border (profiles keep their scene) */
.char-card:not(.scene) { background: radial-gradient(50% 36% at 50% calc(var(--feet) * 100%), color-mix(in srgb, var(--glow) 26%, transparent), transparent 72%),
  linear-gradient(#c8ff3e08 1px, transparent 1px) 0 0 / 16px 16px round border-box, linear-gradient(90deg, #c8ff3e08 1px, transparent 1px) 0 0 / 16px 16px round border-box,
  linear-gradient(180deg, #121510, #080907); }
.char-card .floor { position: absolute; left: 50%; top: calc(var(--feet) * 100%); width: 200px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, #000a, transparent); z-index: 1; }
.char-card .viewer { position: absolute; inset: 0; z-index: 2; }
.char-card .corner { position: absolute; top: var(--s4); right: var(--s4); z-index: 3; display: flex; gap: var(--s2); }
.viewer canvas { position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important; cursor: grab; outline: none; }
.viewer canvas:active { cursor: grabbing; }
.hotbar { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); z-index: 3; display: flex; gap: 2px; padding: var(--s1); border-radius: var(--r-pill); background: rgba(0, 0, 0, .6); backdrop-filter: blur(14px); border: 1px solid var(--border); max-width: calc(100% - 24px); }
.hotbar button { height: 32px; min-width: 32px; padding: 0 11px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font: 600 12.5px Inter; cursor: pointer; transition: color .2s, background .2s; }
.hotbar button:hover { color: var(--text); background: var(--surface-2); }
.hotbar button.on { color: var(--ink); background: var(--lime); }
.hotbar i { width: 1px; background: var(--border-2); margin: 6px var(--s1); }

/* ============ tiles ============ */
.tiles { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tiles > .empty { grid-column: 1 / -1; }
.tiles-row { grid-template-columns: repeat(7, minmax(0, 1fr)); } /* one full row */
@media (max-width: 1100px) { .tiles-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles-row > :nth-child(n+5) { display: none; } }
@media (max-width: 640px) { .tiles-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles.is-loading { opacity: .45; }
.tile { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); border-color: #c8ff3e40; box-shadow: 0 22px 40px -24px #000; z-index: 4; }
.tile-stage { border-radius: 20px 20px 0 0; overflow: hidden; padding: var(--s3) var(--s3) 0; background: radial-gradient(50% 12% at 50% 92%, #0007, transparent); }
/* behind the skin or cape: a very faint lime grid and a soft lime glow rising from the floor (the dark shadow under the feet stays on top) */
.tile-stage, .tag-stage { background: radial-gradient(50% 12% at 50% 92%, #0007, transparent), radial-gradient(70% 40% at 50% 100%, #c8ff3e30, transparent 72%),
  linear-gradient(#c8ff3e08 1px, transparent 1px) 0 0 / 16px 16px round, linear-gradient(90deg, #c8ff3e08 1px, transparent 1px) 0 0 / 16px 16px round; }
/* Whole squares only: "round" stretches the 16px squares a fraction of a pixel so a whole number fits across and down. The stage
   starts 1px out, under the card's border, so the first lines sit on the border and the last squares end exactly at it. */
.tile-stage { margin: -1px -1px 0; border-radius: 20px 20px 0 0; }
.tile-foot { display: grid; gap: 2px; padding: var(--s3) var(--s4) 14px; border-top: 1px solid var(--border); }
.tile-foot b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub { color: var(--text-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .mctip { position: absolute; left: 50%; bottom: calc(100% - 24px); transform: translate(-50%, 6px); width: max-content; max-width: 240px; opacity: 0; pointer-events: none; transition: .2s var(--ease); z-index: 5; }
.tile:hover .mctip { opacity: 1; transform: translate(-50%, 0); }
.r3d-wrap { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; transition: transform .4s var(--ease); }
.r3d-wrap img { width: 100%; height: 100%; object-fit: contain; }
.r3d-wrap img:not([src]) { visibility: hidden; }
.r3d-wrap:not(.ready) { border-radius: var(--r-in); background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
.tile:hover .r3d-wrap { transform: scale(1.05); }
.cape-art { aspect-ratio: 10 / 16; image-rendering: pixelated; background-size: 640% 200%; background-position: 1.852% 6.25%; border-radius: 2px; flex: none; }
.cape-art.none { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 6px, rgba(255, 255, 255, .02) 6px 12px); }
.head { image-rendering: pixelated; border-radius: var(--r-in); flex: none; background: var(--surface-2); }
.slots { display: flex; flex-wrap: wrap; gap: var(--s2); }
.slot { position: relative; width: 64px; height: 64px; display: grid; place-items: center; background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r-in); transition: transform .2s var(--ease), border-color .2s; }
.slot:hover { transform: translateY(-2px); border-color: #c8ff3e66; }
.slot.on { border-color: var(--lime); }
.slot img { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 4px; }
.slot .cape-art { width: 24px; }
.slot .mctip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); width: max-content; max-width: 240px; opacity: 0; pointer-events: none; transition: .2s var(--ease); z-index: 6; }
.slot:hover .mctip { opacity: 1; transform: translate(-50%, 0); }

/* ============ profile / detail layout ============ */
.split { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split > aside, .split > .stack { display: contents; } .split .char-card { order: -3; height: 480px; } .split .idcard { order: -2; } }
.idcard { display: grid; gap: var(--s5); padding: var(--s5); }
.idhead { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 18px; image-rendering: pixelated; background: #1a1f14; box-shadow: 0 0 0 2px var(--lime); }
.pname { font: 800 44px/1.05 Inter; letter-spacing: -.035em; }
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--lime); font-weight: 600; font-size: var(--fs-sm); margin-top: 4px; }
.pbio { color: var(--text-2); max-width: 620px; }
.statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: calc(var(--r-out) - var(--s5)); background: var(--sunken); }
.statrow > div { padding: 14px var(--s4); min-width: 0; }
.statrow > div + div { border-left: 1px solid var(--border); }
.statrow b { display: block; font-size: var(--fs-xl); font-weight: 700; line-height: 1.15; }
.statrow span { color: var(--text-3); font-size: 13px; }
.statrow b.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-4px); color: var(--lime); } }
.uuid { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 10px var(--s4); font: 500 13px var(--mono); color: var(--text-2); cursor: pointer; transition: border-color .2s, color .2s; min-width: 0; }
.uuid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; text-align: left; }
.uuid:hover { border-color: #c8ff3e66; color: var(--text); }
.uuid em { color: var(--lime); font: 600 var(--fs-xs) Inter; }
@media (max-width: 520px) { .statrow > div { padding: var(--s3); } .pname { font-size: 34px; } .avatar { width: 56px; height: 56px; border-radius: 14px; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; align-items: baseline; gap: var(--s4); padding: 0 0 var(--s4) 26px; flex-wrap: wrap; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 2px; background: var(--border-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.timeline li:first-child::after { background: var(--lime); }
.timeline b { font-size: var(--fs-lg); font-weight: 700; }
.timeline span { color: var(--text-3); font-size: 13px; margin-left: auto; }
.console { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .5); border: 1px solid var(--border); border-radius: var(--r-in); padding-left: var(--s4); font: 13px var(--mono); color: #e8ece2; overflow: hidden; }
.console code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 14px 0; scrollbar-width: none; }
.console .caret { color: var(--lime); }
.console button { align-self: stretch; display: inline-flex; align-items: center; gap: 6px; border: 0; border-left: 1px solid var(--border); background: rgba(255, 255, 255, .04); padding: 0 var(--s4); font: 600 13px Inter; cursor: pointer; color: var(--text-2); transition: background .2s, color .2s; min-width: 92px; justify-content: center; }
.console button:hover { background: var(--lime); color: var(--ink); }
.field-l { font: 600 13px Inter; color: var(--text-3); margin-bottom: var(--s2); }
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s3); }
.profiles a { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: 18px; border: 1px solid var(--border); background: var(--surface); transition: transform .25s var(--ease), border-color .2s; min-width: 0; }
.profiles a:hover { transform: translateY(-2px); border-color: #c8ff3e40; }
.profiles a > div { min-width: 0; }
.profiles b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profiles img { width: 44px; height: 44px; border-radius: 6px; }
.profiles small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.socials { display: flex; flex-wrap: wrap; gap: var(--s2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.facts > div { min-width: 0; }
.facts span { display: block; color: var(--text-3); font-size: 13px; margin-bottom: 2px; }
.facts b { font-weight: 700; font-size: var(--fs-lg); }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.users { display: flex; flex-wrap: wrap; gap: 6px; }
.users a { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--s3) 3px 3px; border-radius: var(--r-pill); border: 1px solid var(--border-2); font-size: 13px; font-weight: 500; transition: border-color .2s; }
.users a:hover { border-color: #c8ff3e66; }
.users img { width: 24px; height: 24px; border-radius: 50%; }
.dock { position: fixed; left: 50%; bottom: 22px; z-index: 25; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .2s, visibility .2s;
  display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) 10px; border-radius: var(--r-pill); background: rgba(12, 14, 10, .85); backdrop-filter: blur(18px); border: 1px solid var(--border-2); box-shadow: 0 20px 50px -10px #000; max-width: calc(100% - 32px); }
.dock.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.dock img { width: 30px; height: 30px; border-radius: 6px; }
.dock b { padding-right: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ countdown + Minecraft XP bar ============ */
.countdown { display: flex; gap: var(--s2); flex-wrap: wrap; }
.countdown div { min-width: 62px; padding: 10px var(--s2) var(--s2); text-align: center; background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r-in); }
.countdown b { display: block; font-size: var(--fs-xl); font-weight: 700; line-height: 1.1; color: var(--orange); }
.countdown span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.xp-wrap { display: grid; gap: 2px; max-width: 364px; }
.xp-level { justify-self: center; font: 400 20px var(--pixel); color: #80ff20; line-height: 1;
  text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 2px 0 #000; }
/* the HUD bar: black frame, dark track with notches, green fill with a highlight row */
.xp { position: relative; height: 14px; background: #1d1d1d; border: 2px solid #000; image-rendering: pixelated; box-shadow: inset 0 2px 0 #0b0b0b; }
.xp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#b5ff6e 0 2px, #80ff20 2px 6px, #4fc410 6px); transition: width .6s var(--ease); }
.xp::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 18 - 2px), #000a calc(100% / 18 - 2px) calc(100% / 18)); }
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.levels li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--text-2); min-width: 0; }
.levels em { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 var(--fs-xs) Inter; color: var(--ink); background: var(--lime); margin-top: -1px; }

/* ============ home ============ */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s6); align-items: center; min-height: 600px; padding: var(--s7); border-radius: 32px; isolation: isolate; z-index: 5; border: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url(img/nether.webp) center / cover no-repeat; border-radius: inherit; overflow: hidden; } /* the picture is rounded, not the whole banner, so the search suggestions can hang below it */
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #070807f2 0%, #070807d9 34%, #07080766 62%, #07080733 100%), linear-gradient(transparent 60%, #070807 100%); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); max-width: 580px; min-width: 0; }
.hero-title { font: 800 var(--fs-3xl)/1.04 Inter; letter-spacing: -.04em; }
.hero-title span { color: var(--lime); }
.hero-sub { color: var(--text-2); font-size: var(--fs-lg); line-height: 1.5; }
.hero-search { position: relative; display: flex; gap: var(--s2); padding: 6px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .55); border: 1px solid var(--border-2); backdrop-filter: blur(14px); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: #c8ff3e88; box-shadow: 0 0 0 4px #c8ff3e1a; }
.hero-search .field { flex: 1; min-width: 0; height: 56px; border: 0; background: none; font-size: 17px; padding-left: 18px; box-shadow: none; }
.hero-try { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; color: var(--text-2); font-size: var(--fs-sm); }
.hero-try a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--s3) 0 4px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .5); border: 1px solid var(--border-2); color: var(--text); font-weight: 500; transition: border-color .2s; }
.hero-try a:hover { border-color: #c8ff3e88; }
.hero-try img { width: 24px; height: 24px; border-radius: 50%; }
/* live product preview */
.preview { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s4); padding: var(--pad); border-radius: var(--r-out); background: rgba(10, 12, 9, .78); backdrop-filter: blur(20px); border: 1px solid var(--border-2); box-shadow: 0 30px 60px -20px #000; transition: transform .3s var(--ease), border-color .2s; }
.preview:hover { transform: translateY(-4px); border-color: #c8ff3e55; }
.preview .r3d-wrap { border-radius: var(--r-in); background: radial-gradient(60% 20% at 50% 92%, #c8ff3e33, transparent), var(--sunken); }
.preview .who { display: grid; gap: var(--s3); align-content: center; min-width: 0; }
.preview .name { font: 800 var(--fs-xl) Inter; letter-spacing: -.02em; }
.preview .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.preview .mini b { display: block; font-size: var(--fs-lg); font-weight: 700; }
.preview .mini span { color: var(--text-3); font-size: var(--fs-xs); }
.preview .capeline { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.preview .capeline .cape-art { width: 14px; }
.preview .kicker { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: var(--fs-xs); padding-top: var(--s3); border-top: 1px solid var(--border); }
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: var(--s6) var(--s5); min-height: 0; }
  .hero-title { font-size: 40px; }
  .hero-bg::after { background: linear-gradient(#070807e6, #070807cc 50%, #070807); }
}
@media (max-width: 520px) { .hero-title { font-size: 32px; } .hero-sub { font-size: var(--fs-md); } .hero-search .btn.lg { padding: 0 18px; } .hero-search .field { font-size: 15px; padding-left: 12px; } .preview { grid-template-columns: 100px minmax(0, 1fr); } }
/* main features, big */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.feature { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: var(--s2); min-height: 240px; padding: var(--s5); border-radius: var(--r-out); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); overflow: hidden; transition: transform .3s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: #c8ff3e40; }
.feature h2 { font: 700 var(--fs-xl)/1.2 Inter; letter-spacing: -.02em; padding-right: 48px; }
.feature p { color: var(--text-2); max-width: 420px; }
.feature .go { position: absolute; top: var(--s5); right: var(--s5); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--border-2); transition: all .3s var(--ease); }
.feature:hover .go { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: rotate(-45deg); }
.feature .show { align-self: end; display: flex; gap: var(--s3); align-items: flex-end; margin-top: var(--s4); min-width: 0; overflow: hidden; }
.feature .show .r3d-wrap { width: 92px; flex: none; }
.feature .show .cape-art { width: 40px; }
.feature .show .head { width: 52px; height: 52px; border-radius: var(--r-in); }
.feature .drops { display: grid; gap: var(--s2); width: 100%; }
.feature .drops div { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px var(--s4); border-radius: var(--r-in); background: var(--sunken); border: 1px solid var(--border); }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } .feature { min-height: 0; } }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; padding: var(--s6) var(--s7); border-radius: var(--r-out); border: 1px solid #c8ff3e40;
  background: radial-gradient(80% 140% at 100% 50%, #c8ff3e26, transparent 60%), linear-gradient(180deg, #11150d, #0a0c08); }
.cta-band h2 { font: 800 30px/1.15 Inter; letter-spacing: -.025em; max-width: 620px; }
.cta-band p { color: var(--text-2); margin-top: var(--s2); max-width: 620px; }
@media (max-width: 640px) { .cta-band { padding: var(--s5); } .cta-band h2 { font-size: var(--fs-xl); } }

/* latest drop: compact card, full Hero art in its own box on the left */
.drop { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s4); border-radius: var(--r-out); }
.drop-img { display: block; aspect-ratio: 1170 / 500; border-radius: calc(var(--r-out) - var(--s4)); overflow: hidden; border: 1px solid #ffffff14; background: #000; }
.drop-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.drop:hover .drop-img img { transform: scale(1.03); }
.drop-main { display: grid; gap: var(--s3); min-width: 0; padding-right: var(--s3); }
.drop h2 { font: 700 clamp(18px, 1.6vw, 22px)/1.25 Inter; letter-spacing: -.02em; text-wrap: balance; }
@media (max-width: 760px) { .drop { grid-template-columns: minmax(0, 1fr); } .drop-main { padding: 0 var(--s2) var(--s2); } }
.drop-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1px solid #ff9a3d33; overflow: hidden;
  background: radial-gradient(55% 110% at 85% 80%, #c4161f99, transparent 65%), radial-gradient(35% 60% at 90% 30%, #ffc94d26, transparent 70%), linear-gradient(115deg, #0e0907 0%, #170b09 55%, #2b0e0c 100%); }
.drop-bg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, #ffffff05 46px 47px); }
.drop-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.drop-timer { display: flex; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; }
.drop-timer .xp-wrap { width: 240px; }
.drop-timer p { margin-top: 6px; }

/* charts, lists */
.chart-bars { display: grid; gap: var(--s3); }
.bar-row { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.bar-row > span:first-child { width: 128px; flex: none; font-size: var(--fs-sm); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.bar-row .bar { flex: 1; height: 8px; background: rgba(255, 255, 255, .06); border-radius: var(--r-pill); overflow: hidden; min-width: 30px; }
.bar-row .bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--lime); transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-row .num { color: var(--text-3); font-size: 13px; width: 80px; flex: none; text-align: right; }
a.bar-row:hover > span:first-child { color: var(--lime); }
.vbars { display: flex; align-items: flex-end; gap: var(--s1); height: 120px; }
.vbars i { flex: 1; min-height: 3px; border-radius: 4px 4px 1px 1px; background: var(--lime); opacity: .7; position: relative; transition: opacity .2s; transform-origin: bottom; animation: growY .7s var(--ease) both; }
@keyframes growY { from { transform: scaleY(0); } }
.vbars i:hover { opacity: 1; }
.vbars i:hover::after { content: attr(data-t); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: rgba(10, 12, 9, .95); border: 1px solid var(--border-2); padding: 4px 10px; border-radius: var(--r-pill); font: 500 var(--fs-xs) Inter; white-space: nowrap; }
.list { display: grid; }
.list-row { display: flex; align-items: center; gap: var(--s3); padding: 11px 0; border-top: 1px solid var(--border); min-width: 0; }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.list-row span { color: var(--text-3); font-size: 13px; margin-left: auto; white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 var(--fs-xs) Inter; color: var(--text-3); padding: 0 18px var(--s3); }
.table td { padding: 13px 18px; border-top: 1px solid var(--border); transition: background .2s; }
.table tr:hover td { background: #c8ff3e08; }
.table .nm { font-weight: 600; }
.table .r { text-align: right; }
.free { color: var(--lime); font-weight: 600; }
.bell.on { color: var(--lime); border-color: #c8ff3e66; }
.filters { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.filters label { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.filters .field { height: 38px; }
input[type=checkbox] { accent-color: var(--lime); width: 16px; height: 16px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .14); cursor: pointer; transition: transform .2s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { outline: 2px solid var(--lime); outline-offset: 2px; }
.toolbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }

/* ============ dialog, toast, footer, mobile ============ */
dialog { background: rgba(14, 16, 12, .94); backdrop-filter: blur(24px); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--r-out); padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px #000; }
dialog[open] { animation: rise .3s var(--ease); }
dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.dlg-in { padding: var(--s6); position: relative; display: grid; gap: var(--s4); }
.dlg-in h2 { font: 800 var(--fs-xl) Inter; letter-spacing: -.02em; padding-right: var(--s7); }
.dlg-close { position: absolute; top: var(--s5); right: var(--s5); }
.glows { display: flex; gap: 10px; flex-wrap: wrap; }
.glows button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--c); transition: transform .2s var(--ease); }
.glows button:hover { transform: scale(1.1); }
.glows button.on { border-color: #fff; }
.toast { position: fixed; left: 50%; top: 80px; transform: translate(-50%, -10px); opacity: 0; transition: .25s var(--ease); z-index: 50; pointer-events: none; display: flex; gap: var(--s2); align-items: center; height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--lime); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); box-shadow: 0 10px 30px -10px #c8ff3e99; }
.toast.err { background: var(--red); color: #fff; box-shadow: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.foot { padding: var(--s7) 0; margin-top: var(--s7); border-top: 1px solid var(--border); }
.foot-in { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: var(--s5); font-size: var(--fs-sm); color: var(--text-2); }
.foot-in p + p { margin-top: var(--s2); }
.soon-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lime); border: 1px solid #c8ff3e55; border-radius: var(--r-pill); padding: 0 6px; margin-left: 4px; }
.users .more { display: inline-flex; align-items: center; padding: 3px var(--s3); border-radius: var(--r-pill); border: 1px dashed var(--border-2); font-size: 13px; color: var(--text-2); }
.card.soon { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.card.soon h2 { margin: var(--s2) 0; }
.card.soon p { max-width: 560px; }
.soon-art { flex: none; width: 96px; height: 96px; display: grid; place-items: center; border-radius: var(--r-in); background: var(--sunken); border: 1px dashed var(--border-2); color: var(--lime); }
.legal { max-width: 760px; margin: var(--s6) auto; }
.legal h1 { font-size: var(--fs-2xl, 32px); margin-bottom: var(--s2); }
.legal h2 { font-size: var(--fs-lg, 18px); margin: var(--s6) 0 var(--s2); }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; }
.legal ul { padding-left: 1.2em; margin: var(--s2) 0; }
.legal li { margin: 4px 0; }
.foot-in a { display: block; color: var(--text-2); margin-top: 6px; transition: color .2s; }
.foot-in a:hover { color: var(--lime); }
.foot-in .card-t { margin-bottom: var(--s1); }
.tabbar { display: none; }
@media (max-width: 760px) {
  .wrap { padding: 0 var(--s4); }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(8, 9, 7, .92); backdrop-filter: blur(18px); border-top: 1px solid var(--border); }
  .tabbar a { flex: 1; text-align: center; padding: 14px 0; color: var(--text-2); font-weight: 600; font-size: 13px; }
  .tabbar a.on { color: var(--lime); }
  body { padding-bottom: 58px; }
  .dock { bottom: 74px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
  .card.soon { flex-direction: column; align-items: flex-start; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page-h h1 { font-size: 28px; }
  .table .hide-s { display: none; }
  .hotbar button { padding: 0 8px; font-size: 12px; }
  :root { --pad: 18px; }
}

/* ============ round 8: social profiles, servers, showcase ============ */
.vb { flex: none; display: block; }
.vb-s { fill: none; stroke: var(--text-3); stroke-width: 1.6; }
.vb-c { fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vb.on .vb-s { fill: var(--lime); stroke: var(--lime); } /* the site's lime */
.vb.on .vb-c { stroke: var(--ink); stroke-width: 2.4; } /* dark tick: white is hard to see on lime */
/* profile header: banner + overlapping head, like a social profile */
.phead { position: relative; border-radius: var(--r-out); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); }
.phead-banner { height: 220px; background: center / cover no-repeat; position: relative; border-radius: var(--r-out) var(--r-out) 0 0; overflow: hidden; } /* clipped here, not on .phead, so hover cards can spill out */
.phead-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #0c0e0bcc); }
.phead-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: end; padding: 0 var(--s5) var(--s5); }
.phead .avatar { width: 112px; height: 112px; margin-top: -56px; position: relative; z-index: 1; border-radius: 22px; box-shadow: 0 0 0 4px #0c0e0b, 0 0 0 6px var(--lime); }
.phead-id { display: grid; gap: 6px; min-width: 0; }
.stats-inline { display: flex; flex-wrap: wrap; gap: var(--s4); color: var(--text-3); font-size: var(--fs-sm); }
.stats-inline b { color: var(--text); font-weight: 700; display: inline-block; }
.stats-inline b.bump { animation: bump .5s var(--ease); }
.phead-actions { gap: var(--s2); justify-content: flex-end; }
@media (max-width: 860px) { .phead-banner { height: 150px; } .phead-body { grid-template-columns: minmax(0, 1fr); gap: var(--s3); } .phead .avatar { width: 88px; height: 88px; margin-top: -44px; } .phead-actions { justify-content: flex-start; } }
.bio-empty { display: flex; align-items: center; gap: var(--s2); width: 100%; padding: var(--s4); border-radius: var(--r-in); border: 1px dashed var(--border-2); background: none; color: var(--text-2); font-weight: 500; cursor: pointer; text-align: left; transition: border-color .2s, color .2s; }
.bio-empty:hover { border-color: #c8ff3e88; color: var(--text); }
.bio-empty.static { display: grid; gap: var(--s3); cursor: default; justify-items: start; }
.bio-empty.static:hover { border-color: var(--border-2); color: var(--text-2); }
.composer { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.composer textarea { min-height: 72px; }
.comments { display: grid; gap: var(--s4); }
.comment { display: flex; gap: var(--s3); align-items: flex-start; }
.comment .head { width: 36px; height: 36px; border-radius: 6px; }
.comment p { white-space: pre-wrap; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.comment .c-del { margin-left: auto; width: 28px; height: 28px; opacity: 0; transition: opacity .2s; }
.comment:hover .c-del, .comment .c-del:focus { opacity: 1; }
.comment.new { animation: rise .45s var(--ease); }
.locator { position: relative; height: 10px; border-radius: var(--r-pill); background: linear-gradient(90deg, #e64d4d, #e6c84d, #7be64d, #4de6a8, #4dbde6, #6a4de6, #d44de6, #e64d4d); opacity: .9; }
.locator i { position: absolute; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 6px; border: 3px solid #0c0e0b; box-shadow: 0 0 0 1px var(--border-2), 0 4px 12px #000; }
.swatch-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.banners button { height: 64px; border-radius: var(--r-in); border: 2px solid transparent; background: center / cover; cursor: pointer; display: flex; align-items: flex-end; padding: 6px 8px; color: #fff; font: 600 var(--fs-xs) Inter; text-shadow: 0 1px 3px #000; transition: transform .2s var(--ease); }
.banners button:hover { transform: scale(1.03); }
.banners button.on { border-color: var(--lime); }
/* home showcase */
.showcase { position: relative; }
.showcase .slides { display: grid; perspective: 1200px; padding: var(--pad); border-radius: var(--r-out); background: rgba(10, 12, 9, .78); backdrop-filter: blur(20px); border: 1px solid var(--border-2); box-shadow: 0 30px 60px -20px #000; transition: transform .3s var(--ease), border-color .2s; }
.showcase .slides:hover { transform: translateY(-4px); border-color: #c8ff3e55; }
/* the glass lives on the static frame above; slides only fade their content, so the blur never has to re-render */
.showcase .slide .preview { padding: 0; background: none; backdrop-filter: none; border: 0; box-shadow: none; transform: none; }
.showcase .slide { grid-area: 1 / 1; opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.showcase .slide.on { opacity: 1; transform: none; pointer-events: auto; }
.showcase .slide.out { transform: translateX(-24px) scale(.98); }
.showcase .slide.on .r3d-wrap, .showcase .slide.on .srv-big { animation: lift .9s var(--ease) both .1s; }
@keyframes lift { from { transform: translateY(14px) scale(.94); opacity: 0; } }
.showcase .dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--s3); }
.showcase .dots button { width: 8px; height: 8px; border-radius: var(--r-pill); border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.showcase .dots button.on { width: 28px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.showcase .dots button.on::after { content: ''; position: absolute; inset: 0; background: var(--lime); transform-origin: left; animation: progress 4s linear both; }
.showcase:hover .dots button.on::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } }
.preview .kind { display: block; color: var(--lime); font-size: var(--fs-xs); font-weight: 600; margin-bottom: 2px; }
.preview .name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; min-width: 0; }
.preview .who > div { min-width: 0; }
@media (max-width: 520px) { .preview .name { font-size: var(--fs-lg); } }
.srv-slide { grid-template-columns: 96px minmax(0, 1fr); align-items: center; align-content: center; } /* sits in the middle of the tallest slide's height */
.srv-big { width: 96px; height: 96px; border-radius: var(--r-in); image-rendering: pixelated; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; display: inline-block; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px #22c55e33; animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px #22c55e11; } }
/* page banners */
.banner-h { position: relative; display: grid; gap: var(--s3); align-content: end; min-height: 240px; padding: var(--s6); border-radius: var(--r-out); overflow: hidden; isolation: isolate; border: 1px solid var(--border); }
.banner-h::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #070807f0 0%, #070807b3 45%, #07080733 100%), var(--img) center / cover no-repeat; }
.banner-h h1 { font: 800 var(--fs-2xl)/1.1 Inter; letter-spacing: -.03em; max-width: 720px; }
.banner-h p { color: var(--text-2); max-width: 620px; }
@media (max-width: 640px) { .banner-h { padding: var(--s5); min-height: 200px; } .banner-h h1 { font-size: 28px; } }
/* servers */
.sotw { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); border-radius: var(--r-out); border: 1px solid #c8ff3e40; overflow: hidden; isolation: isolate; }
.sotw-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #070807f2, #070807b3 55%, #07080733), url(img/sotw-tshusmp.webp) center 45% / cover; } /* a screenshot from the server of the week (tshusmp.net) */
.sotw-icon { width: 76px; height: 76px; border-radius: var(--r-in); image-rendering: pixelated; box-shadow: 0 10px 30px #000a; }
.sotw-body { display: grid; gap: var(--s2); justify-items: start; min-width: 0; }
.sotw-body { gap: 4px; }
.sotw-body h2 { font: 800 var(--fs-xl)/1.15 Inter; letter-spacing: -.025em; }
@media (max-width: 760px) { .sotw { grid-template-columns: minmax(0, 1fr); padding: var(--s5); } .sotw-icon { width: 80px; height: 80px; } }
.srv-list { padding: 0; overflow: hidden; }
.srv { display: grid; grid-template-columns: 32px 48px minmax(0, 1fr) 96px 150px auto; gap: var(--s4); align-items: center; padding: var(--s3) var(--s5); border-top: 1px solid var(--border); transition: background .2s; }
.srv:first-child { border-top: 0; }
.srv:hover { background: #c8ff3e08; }
.srv .rank { color: var(--text-3); font-weight: 700; text-align: right; }
.srv-icon { width: 48px; height: 48px; border-radius: 8px; image-rendering: pixelated; }
.srv-noicon { display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.srv-main { min-width: 0; }
.srv-players { text-align: right; }
.srv-players b { display: block; font-size: var(--fs-lg); }
.srv-players span { color: var(--text-3); font-size: var(--fs-xs); }
@media (max-width: 860px) { .srv { grid-template-columns: 24px 40px minmax(0, 1fr) auto; padding: var(--s3) var(--s4); } .srv-icon { width: 40px; height: 40px; } .srv-ver, .srv .btn { display: none; } }
/* discord */
.discord { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; padding: var(--s7); border-radius: var(--r-out); overflow: hidden; isolation: isolate; border: 1px solid #5865f255; }
.discord::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0a0b1af2, #0a0b1acc 55%, #0a0b1a66), url(img/forest.webp) center / cover; }
.discord h2 { font: 800 30px/1.15 Inter; letter-spacing: -.025em; }
.discord p { color: var(--text-2); margin-top: var(--s2); max-width: 560px; }
.discord-btn { background: #5865f2; border-color: #5865f2; color: #fff; }
.discord-btn:hover { background: #6b77f5; }
.discord-btn[aria-disabled="true"] { opacity: .7; cursor: default; }
@media (max-width: 640px) { .discord { padding: var(--s5); } .discord h2 { font-size: var(--fs-xl); } }
/* recent searches */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; padding: 6px; border-radius: 16px; background: rgba(12, 14, 10, .96); backdrop-filter: blur(18px); border: 1px solid var(--border-2); box-shadow: 0 20px 40px -12px #000; animation: rise .2s var(--ease); }
.suggest-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.suggest-h button { background: none; border: 0; color: var(--text-2); cursor: pointer; font: inherit; }
.suggest-h button:hover { color: var(--lime); }
.suggest-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-in); background: none; color: var(--text); text-align: left; cursor: pointer; font-size: var(--fs-sm); }
.suggest-i:hover { background: var(--surface-2); }
.suggest-i svg { color: var(--text-3); }

/* ============ titles, achievements, profile tabs ============ */
.role { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font: 700 var(--fs-xs) Inter; letter-spacing: .02em; color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); white-space: nowrap; }
.claimno { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-pill); font: 700 var(--fs-sm) Inter; color: var(--text-2); border: 1px solid var(--border-2); white-space: nowrap; }
.claimno.og { color: #ffd27a; border-color: #ffaa0066; background: #ffaa0012; }
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ach { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border-radius: var(--r-in); background: var(--sunken); border: 1px solid var(--border); min-width: 0; transition: border-color .2s, transform .2s var(--ease); }
.ach:hover { border-color: #c8ff3e55; transform: translateY(-2px); }
.ach b { display: block; font-size: var(--fs-sm); }
.ach span { display: block; color: var(--text-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptabs { display: flex; gap: var(--s1); padding: 0 var(--s5); border-top: 1px solid var(--border); }
.ptabs button { position: relative; height: 48px; padding: 0 var(--s4); border: 0; background: none; color: var(--text-2); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2); transition: color .2s; }
.ptabs button:hover { color: var(--text); }
.ptabs button.on { color: var(--text); }
.ptabs button::after { content: ''; position: absolute; left: var(--s4); right: var(--s4); bottom: -1px; height: 2px; border-radius: 2px; background: var(--lime); transform: scaleX(0); transition: transform .3s var(--ease); }
.ptabs button.on::after { transform: scaleX(1); }
.ptabs small { color: var(--text-3); font-weight: 600; }
.pane { display: grid; gap: var(--s4); align-content: start; min-width: 0; transition: opacity .2s ease, transform .2s ease; }
.pane.leaving { opacity: 0; transform: translateY(6px); }
.pane.entering { animation: rise .4s var(--ease); }
@media (max-width: 640px) {
  .ptabs { padding: 0 var(--s2); overflow-x: auto; scrollbar-width: none; }
  .ptabs button { padding: 0 var(--s3); flex: none; }
  .ptabs button::after { left: var(--s3); right: var(--s3); }
  .feature .show { flex-wrap: wrap; }
  .feature .show .r3d-wrap { width: 64px; }
  .feature .show .head { width: 40px; height: 40px; }
  .feature .show .cape-art { width: 30px; }
}
@media (max-width: 420px) { .ptabs button svg { display: none; } }

/* ============ round 9: profile tabs as their own layouts ============ */
.pane[data-pane] { margin-top: var(--s4); }
[hidden] { display: none !important; } /* .btn, .pane etc. set display, which would otherwise beat the hidden attribute */
.socials { gap: var(--s2); margin-top: var(--s3); }
.social { display: inline-flex; align-items: center; gap: var(--s2); height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--sunken); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: var(--fs-sm); transition: border-color .2s, transform .2s var(--ease); }
.social:hover { border-color: #c8ff3e88; transform: translateY(-2px); }
.social .ic { color: var(--lime); }
.idcard .bio-empty + .bio-empty, .idcard .pbio + .bio-empty { margin-top: var(--s3); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* comments: a wall with its own composer */
.wall { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
.composer-card .composer { display: flex; gap: var(--s3); margin: 0; align-items: flex-start; }
.composer .head { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.composer .grow { min-width: 0; }
.composer textarea { width: 100%; min-height: 96px; resize: vertical; }
.wall .comments { gap: 0; }
.wall .comment { padding: var(--s4) 0; border-top: 1px solid var(--border); }
.wall .comment:first-child { border-top: 0; padding-top: 0; }
/* achievements: big icon tiles, locked ones dimmed; a small earned row in the header */
.ach-i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--ac, var(--lime)); background: color-mix(in srgb, var(--ac, var(--lime)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ac, var(--lime)) 30%, transparent); }
.ach-i.locked { color: var(--text-3); background: var(--sunken); border-color: var(--border); }
.ach-row { display: inline-flex; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.ach-row .ach-i { width: 26px; height: 26px; border-radius: 8px; transition: transform .2s var(--ease); }
.ach-row .tipw:hover .ach-i { transform: translateY(-3px); } /* only the badge under the pointer rises */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s3); }
.ach-grid .ach { display: grid; justify-items: center; text-align: center; gap: var(--s1); padding: var(--s5) var(--s4); }
.ach-grid .ach .ach-i { width: 64px; height: 64px; border-radius: 18px; margin-bottom: var(--s2); }
.ach-grid .ach span { white-space: normal; }
.ach-grid .ach.off { opacity: .55; }
.ach-grid .ach.off:hover { opacity: .8; }

/* about tab: card titles with an icon chip; song + server cards share one height and rhythm */
.card-h:has(.ct) { align-items: center; }
.ct { display: inline-flex; align-items: center; gap: var(--s3); }
.ct i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #c8ff3e14; border: 1px solid #c8ff3e2e; color: var(--lime); }
.duo { align-items: stretch; }
.fav { display: flex; flex-direction: column; }
.fav .sp { display: block; width: 100%; height: 152px; border: 0; border-radius: var(--r-in); margin-top: auto; }
.fav-srv { display: flex; gap: var(--s4); align-items: center; min-width: 0; padding: var(--s4); border-radius: var(--r-in); background: var(--sunken); border: 1px solid var(--border); }
.fav-srv .srv-icon { width: 64px; height: 64px; flex: none; border-radius: 12px; }
.fav-srv-t { display: grid; gap: 4px; min-width: 0; }
.fav-srv-t b { font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); }
.fav-foot .pill { display: inline-flex; align-items: center; gap: var(--s2); font-variant-numeric: tabular-nums; }
.fav .bio-empty { margin-top: auto; }
#paneLoad .loader { padding: 80px var(--s5); }

/* about tab: pet + song + server; locked placeholders until claimed */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--s4); }
.about-grid .pet-card { grid-row: span 2; }
.locked-slot { flex: 1; display: grid; place-items: center; align-content: center; gap: var(--s2); min-height: 120px; padding: var(--s4); border-radius: var(--r-in); border: 1px dashed var(--border-2); background: var(--sunken); color: var(--text-3); font-size: var(--fs-sm); text-align: center; }
.social.off { color: var(--text-3); cursor: default; border-style: dashed; }
.social.off:hover { transform: none; border-color: var(--border); }
.social.off .ic { color: var(--text-3); }
.pet-stage { position: relative; flex: 1; min-height: 300px; border-radius: var(--r-in); overflow: hidden; background: radial-gradient(60% 18% at 50% 82%, #c8ff3e22, transparent), radial-gradient(120% 90% at 50% 0%, #1b2214, var(--sunken)); }
.pet-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.pet-card .bio-empty, .pet-card .locked-slot { flex: 1; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-grid .pet-card { grid-row: auto; } }

/* pet: name in the Minecraft font, pose + hearts bar, heart particles */
@font-face { font-family: Minecraft; src: url(fonts/Minecraft.otf) format('opentype'); font-display: swap; }
.mcname { font: 400 20px/1 Minecraft, var(--pixel); color: var(--lime); text-shadow: 2px 2px 0 #2d3a0c; margin-left: calc(var(--s1) * -1); }
.pet-card .card-h > .t3 { margin-left: auto; }
.pet-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); }
.pet-heart { gap: var(--s2); font-variant-numeric: tabular-nums; }
.pet-heart svg { width: 16px; height: 14px; filter: grayscale(1) brightness(.8); transition: filter .2s, transform .2s var(--ease); }
.pet-heart.on { border-color: #ff2a3d66; background: #ff2a3d14; }
.pet-heart.on svg, .pet-heart:hover svg { filter: none; }
.pet-heart:hover svg { transform: scale(1.15); }
.pet-heart b.bump { animation: bump .5s var(--ease); }
.heart-p { position: absolute; z-index: 2; width: 26px; height: 22px; margin-left: -13px; pointer-events: none; animation: heart-up 1.4s steps(14) both; }
.heart-p svg { width: 100%; height: 100%; display: block; }
@keyframes heart-up { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; transform: translate(calc(var(--dx) * .2), -14px) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), -90px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .heart-p { animation-duration: .01s; } }

/* footer bottom bar, socials, language picker */
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--border); }
#socials { display: flex; gap: var(--s3); }
#socials a, #socials span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--text-2); transition: color .2s, background .2s; }
#socials a:hover { color: var(--lime); background: var(--sunken); }
#socials .off { opacity: .45; cursor: default; }
.foot-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--text-3); text-align: right; }
.lang { display: inline-flex; margin-top: var(--s4); }
.lang select { background: var(--sunken); color: var(--text); border: 1px solid var(--border-2); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-soon { display: inline-flex; align-items: center; gap: 6px; }
.nav-soon .soon-tag { margin: 0; }
/* coming-soon pages */
.soon-page { max-width: 620px; margin: var(--s8) auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.soon-page h1 { font-size: clamp(32px, 5vw, 48px); }
.soon-art.big { width: 128px; height: 128px; }
@media (max-width: 720px) { .foot-bar { flex-direction: column; align-items: flex-start; } .foot-legal { align-items: flex-start; text-align: left; } }

/* sign-in: the verify server address with a copy button */
.verify-host { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s3) 0; padding: 10px 10px 10px var(--s4); border-radius: var(--r-in); background: var(--sunken); border: 1px solid var(--border-2); }
.verify-host b { color: var(--lime); font-size: 15px; }

/* dropdowns: dark everywhere, plus our own list (app.js) on mouse devices */
select { color-scheme: dark; }
select.field { cursor: pointer; }
select option { background: #121212; color: var(--text); }
.menu { position: fixed; inset: auto; margin: 0; z-index: 1000; overflow-y: auto; padding: 6px; display: grid; gap: 2px; background: #121212f2; backdrop-filter: blur(16px);
  border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 18px 50px #000a; color: var(--text); animation: rise .16s var(--ease); scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; font-size: var(--fs-sm); white-space: nowrap; }
.menu button:hover { background: var(--sunken); }
.menu button.on { background: #c8ff3e1a; color: var(--lime); font-weight: 600; }
.menu img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; }

/* country flag next to the name */
.flag { width: 30px; height: 22px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px #ffffff1f; flex: none; }
.flag.add { display: grid; place-items: center; background: none; border: 1px dashed var(--border-2); color: var(--text-3); font: 600 15px Inter; cursor: pointer; }
.flag.add:hover { color: var(--lime); border-color: #c8ff3e88; }

/* socials: brand logo + username; editing shows the logo inside the field */
button.social { cursor: pointer; font: inherit; font-weight: 600; font-size: var(--fs-sm); }
.social.off { padding: 0; width: 40px; justify-content: center; }
.social-in { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.social-in:focus-within { border-color: #c8ff3e88; box-shadow: 0 0 0 4px #c8ff3e1a; color: var(--lime); }
.social-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--text); }

/* wall: likes, replies, pins, visitors */
.c-tools { margin-left: auto; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.c-tools .btn { width: 28px; height: 28px; }
.comment:hover > div > .row .c-tools, .c-tools:focus-within, .c-tools .on { opacity: 1; }
.c-tools .on { color: var(--lime); }
.c-acts { display: flex; gap: var(--s1); margin-top: var(--s2); margin-left: -8px; }
.c-act { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font: 600 12px Inter; cursor: pointer; transition: color .2s, background .2s; }
.c-act:hover { background: var(--sunken); color: var(--text); }
.c-act.on { color: var(--lime); }
.c-act[data-clike].on { color: #ff4d5e; }
.c-act[data-clike].on .ic { fill: currentColor; }
.thread { margin-top: var(--s3); display: grid; gap: var(--s3); }
.thread:empty { display: none; }
.view-replies { display: flex; align-items: center; gap: 10px; margin-top: var(--s2); padding: 0; border: 0; background: none; color: var(--text-3); font: 600 12px Inter; cursor: pointer; }
.view-replies::before { content: ''; width: 24px; height: 1px; background: var(--border-2); }
.view-replies:hover { color: var(--text); }
.wall .thread .comment { padding: 0; border: 0; }
.thread .comment .head { width: 28px; height: 28px; }
.composer.reply { display: flex; gap: var(--s3); }
.composer.reply .head { width: 28px; height: 28px; border-radius: 6px; }
.comment.pinned > div > p { color: var(--text); }
.pin-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: #c8ff3e1a; color: var(--lime); font: 600 11px Inter; }
.visitors { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: var(--s2); }
.visitors a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sunken); transition: transform .2s var(--ease); }
.visitors a:hover { transform: translateY(-2px); }
.visitors .head { width: 100%; height: 100%; image-rendering: pixelated; }

/* beta notice above the header, hidden once closed */
.beta { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 44px; position: relative; background: #c8ff3e14; border-bottom: 1px solid #c8ff3e33; font-size: var(--fs-sm); color: var(--text-2); text-align: center; }
.beta b { padding: 2px 8px; border-radius: var(--r-pill); background: var(--lime); color: #0b0b0b; font: 700 11px Inter; letter-spacing: .04em; text-transform: uppercase; flex: none; }
.beta button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-size: 18px; cursor: pointer; }
.beta button:hover { background: var(--sunken); color: var(--text); }


/* comments: team badges smaller, member flags next to the name */
.comment .role { height: 20px; padding: 0 8px; gap: 4px; font-size: 10.5px; }
.comment .role .ic { width: 11px; height: 11px; }
.flag.sm { width: 20px; height: 15px; border-radius: 3px; }

/* names: check box, day pager */
.name-check { display: grid; gap: var(--s3); margin: var(--s5) 0 var(--s4); }
.name-res { color: var(--text-2); }
.day-pager { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-bottom: var(--s4); }
.day-pager b { min-width: 230px; text-align: center; padding: 10px var(--s4); border-radius: var(--r-pill); background: #c8ff3e1a; color: var(--lime); font-weight: 700; }
.table .nm a:hover { color: var(--lime); }

/* no spinner arrows on number boxes */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.name-charts { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-bottom: var(--s4); }
@media (max-width: 860px) { .name-charts { grid-template-columns: minmax(0, 1fr); } }

/* header: notification bell + dropdown panels (account menu, notifications) */
.bell-btn { position: relative; flex: none; }
.bell-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4d5e; color: #fff; font: 700 10.5px/18px Inter; text-align: center; box-shadow: 0 0 0 2px var(--bg, #070807); }
.panel { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; scrollbar-width: none; padding: 8px; border-radius: 16px;
  background: #121212f5; backdrop-filter: blur(18px); border: 1px solid var(--border-2); box-shadow: 0 20px 60px #000b; animation: rise .16s var(--ease); }
.panel::-webkit-scrollbar { display: none; }
.panel-h { padding: 8px 10px 6px; font: 600 12px Inter; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.panel-sep { height: 1px; margin: 6px 4px; background: var(--border); }
.panel-empty { padding: 10px; color: var(--text-3); font-size: var(--fs-sm); }
.acct, .panel-item, .notif { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.acct:hover, .panel-item:hover, a.notif:hover { background: var(--sunken); }
.acct img, .notif img { width: 30px; height: 30px; border-radius: 7px; image-rendering: pixelated; flex: none; }
.acct b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dot-on { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px #c8ff3e33, 0 0 10px #c8ff3e; flex: none; }
.panel-item .ic { color: var(--text-3); }
.notif { align-items: flex-start; cursor: default; }
a.notif { cursor: pointer; }
.notif > span:last-child { display: grid; gap: 2px; min-width: 0; color: var(--text-2); line-height: 1.35; }
.notif b { color: var(--text); }
.notif small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif em { font-style: normal; color: var(--text-3); font-size: 11.5px; }
.notif-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #c8ff3e1a; color: var(--lime); flex: none; }
/* pinned label sits on its own line above the name */
.comment .pin-tag { margin-bottom: 4px; width: fit-content; }

/* report a bug: in the beta bar and the footer; team-only list */
.beta .beta-bug { position: static; transform: none; width: auto; height: auto; padding: 0; background: none; color: var(--lime); font: 600 var(--fs-sm) Inter; text-decoration: underline; text-underline-offset: 3px; }
.beta .beta-bug:hover { background: none; color: var(--text); }
.foot-link { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; cursor: pointer; transition: color .2s; }
.foot-link:hover { color: var(--lime); }
.card.bug.accepted { border-color: #c8ff3e55; }
.card.bug.closed { opacity: .6; }

.ach-grid .ach.off { opacity: 1; }
.ach-grid .ach.off > .ach-i, .ach-grid .ach.off > b, .ach-grid .ach.off > span { opacity: .55; }
.ach-grid .ach.off:hover { opacity: 1; }

/* toast as a popover: drop the browser's popover box styles, stay laid out when closed so it can fade */
.toast[popover] { inset: auto; left: 50%; top: 80px; margin: 0; border: 0; overflow: visible; }
.toast[popover]:not(:popover-open) { display: flex; }
/* inline form errors */
.field-err { display: flex; align-items: center; gap: 6px; margin-top: var(--s2); color: #ff6b78; font-size: var(--fs-sm); font-weight: 600; }
.field-err[hidden] { display: none; }
.field.bad { border-color: #ff4d5e; box-shadow: 0 0 0 4px #ff4d5e22; }
.toast { height: auto; min-height: 40px; padding: 9px 18px; max-width: calc(100vw - 32px); line-height: 1.35; }

/* hover cards on the rank tag and claim number */
.name-row .tipw { position: relative; }

/* the one floating hover card (app.js showHover); the copies inside badges are only its source */
.ach-tip { display: none; }
.hovercard { position: fixed; z-index: 1000; width: 260px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s var(--ease); }
.hovercard.show { opacity: 1; transform: none; }
.hovercard .t { font-size: var(--fs-md); }
.hovercard .l { font-size: 13px; }
.hovercard .l b { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.hovercard .l b.lime { color: var(--lime); }
.ach-row .tipw { display: inline-grid; }

.ach-grid .ach { transition: transform .2s var(--ease), border-color .2s; }
.ach-grid .ach:hover { transform: translateY(-3px); }

/* UUID under the name, with a copy-as menu */
.uuid-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.uuid-row code { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.uuid-row .btn.icon { width: 28px; height: 28px; flex: none; }
.uuid-row [data-uuidmenu] .ic { transform: rotate(90deg); }
.uuid-opt > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.uuid-opt small { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uuid-opt > .ic { color: var(--text-3); flex: none; }
.panel:has(.uuid-opt) { width: min(420px, calc(100vw - 24px)); }

/* badges card on the Overview tab (moved out of the header) */
.badge-strip { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.badge-strip .tipw { display: inline-grid; }
.badge-strip .ach-i { width: 28px; height: 28px; border-radius: 8px; transition: transform .2s var(--ease); }
.badge-strip .tipw:hover .ach-i, .badge-strip .tipw:focus-visible .ach-i { transform: translateY(-3px); }
/* one slim row: title, icons, count */
.badges-card { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s4); }
.badges-card .card-t { font-size: var(--fs-sm); color: var(--text-2); }
.badges-card .link { background: none; border: 0; cursor: pointer; flex: none; }
.showcase .slide { display: grid; align-content: center; } /* shorter slides sit in the middle of the frame, not at the top */

/* pet editor: note about the Bug catcher exclusive pets */
.pet-excl { display: flex; align-items: center; gap: 6px; margin-top: var(--s2); color: var(--text-3); font-size: var(--fs-sm); }
.pet-excl b { color: #b48cff; }

/* pet rarity tags (Common green, Epic purple) */
.rar { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--r-pill); font: 700 10.5px Inter; font-style: normal; letter-spacing: .03em; text-transform: uppercase; color: var(--rc); background: color-mix(in srgb, var(--rc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); flex: none; }
.menu button:disabled { opacity: .45; cursor: not-allowed; }
select.field:disabled { opacity: .45; cursor: not-allowed; }

/* pet card: how the pet was found */

/* names: 30 a page */
.names-pages { justify-content: center; gap: var(--s3); margin-top: var(--s4); }
.names-pages [data-npage="-1"] .ic { transform: rotate(180deg); }

/* skins: popular tag chips with emoji */
#tagChips { flex-wrap: wrap; align-items: center; }
/* skin tiles: name on the left, a user icon and the player count on the right */
.skin-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.skin-foot b { min-width: 0; }
.wearers { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--text-3); font: 500 12px var(--mono, ui-monospace, monospace); }
.wearers em { font-style: normal; color: var(--lime); margin-right: 4px; }

/* names: taken names stay in the list, greyed and crossed off */
.table tr.taken td { opacity: .45; }
.table tr.taken .nm a { text-decoration: line-through; }
.taken-tag { color: var(--text-3); font-weight: 600; }


/* team: tags with a remove button joined on as one pill */
.chip-w { display: inline-flex; align-items: stretch; }
.chip-w:has(.chip-x) .chip { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 10px; }
.chip-x { display: grid; place-items: center; width: 30px; height: 32px; padding: 0 2px 0 0; border: 1px solid var(--border-2); border-left: 1px solid var(--border); border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--surface); color: var(--text-3); cursor: pointer; transition: color .15s, background .15s; }
.chip-x:hover { color: #ff6b78; background: #ff4d5e1a; }
.chip-w .chip.on + .chip-x { background: #c8ff3e1f; border-color: #c8ff3e88; border-left-color: #c8ff3e44; }
/* skin page: breadcrumbs with the Next skin button on the right */
.crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.crumbs-row .crumbs { margin-bottom: 0; min-width: 0; }
.next-skin { flex: none; }

/* home: newest members, standing in 3D on their profile glow */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.member { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--s5) var(--s4) var(--s4); border-radius: 24px; border: 1px solid var(--border); overflow: hidden;
  background: radial-gradient(70% 45% at 50% 100%, color-mix(in srgb, var(--glow, #c8ff3e) 22%, transparent), transparent), var(--surface); transition: transform .3s var(--ease), border-color .2s; }
.member:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--glow, #c8ff3e) 45%, transparent); }
.member .r3d-wrap { width: min(150px, 80%); filter: drop-shadow(0 12px 18px #0009); }
.member:hover .r3d-wrap { transform: scale(1.06) rotate(-2deg); }
.member-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: var(--s3); min-width: 0; max-width: 100%; text-align: center; }
.member-foot b { font-size: var(--fs-lg, 1.15rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.member-foot span { color: var(--text-3); font-size: var(--fs-xs); }
.member-foot .member-no { margin-top: var(--s2); padding: 2px 10px; border-radius: 99px; color: var(--glow, #c8ff3e); background: color-mix(in srgb, var(--glow, #c8ff3e) 12%, transparent); font-weight: 600; }
.member-new { position: absolute; top: var(--s3); left: var(--s3); padding: 3px 10px; border-radius: 99px; background: var(--glow, #c8ff3e); color: #000; font-size: var(--fs-xs); font-weight: 700; }
@media (max-width: 640px) { .members { gap: var(--s2); } .member { padding: var(--s4) var(--s2) var(--s3); border-radius: 18px; } .member-foot b { font-size: var(--fs-sm, .9rem); } .member-new { top: 8px; left: 8px; padding: 2px 7px; } }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* level: a Minecraft XP-style green number over a thin XP bar, next to the name */
.lvl { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 28px; min-width: 34px; padding: 0 8px; border-radius: 8px; cursor: default;
  background: #0c1408; border: 1px solid #80ff2033; }
.lvl b { font: 16px/1 Minecraft, var(--mono); color: #80ff20; text-shadow: 2px 2px 0 #1f3f08; }
.lvl > i, .mctip .xpbar { display: block; width: 100%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #80ff20 var(--p), #1a2a10 var(--p)); }
.mctip .xpbar { height: 5px; margin: 4px 0 2px; }
.mctip .perk { display: grid; grid-template-columns: 12px 34px 1fr auto; align-items: start; column-gap: 8px; padding: 2px 0; color: var(--text-3); } .mctip .perk.on { color: var(--text-2); }
.mctip .perk .ic { margin-top: 4px; } .mctip .perk b { color: #80ff20; font-weight: 700; white-space: nowrap; }
.mctip .perk em { font-style: normal; font-size: 11px; line-height: 18px; padding: 0 7px; margin-top: 1px; border-radius: 99px; background: var(--border-2); color: var(--text-2); white-space: nowrap; }
.mctip .xp-part { display: flex; justify-content: space-between; gap: var(--s4); } .mctip .xp-part b { color: #80ff20; flex: none; white-space: nowrap; }
.hovercard:has(.xpbar) { width: 320px; }

/* the level sits on the profile picture, bottom centre */
.phead .avatar-w { position: relative; width: fit-content; margin-top: -56px; z-index: 1; }
.phead .avatar-w .avatar { margin-top: 0; display: block; }
.avatar-w .lvl { position: absolute; z-index: 2; left: 50%; bottom: -17px; transform: translateX(-50%); height: 17px; min-width: 22px; padding: 0 5px; gap: 1px; border-radius: 6px; background: #0c1408; border-color: #80ff2055; box-shadow: 0 0 0 3px #0c0e0b; }
.avatar-w .lvl b { font-size: 14.5px; line-height: 1; padding: 0 0 0 1px; text-shadow: none; font-weight: 400; }
.avatar-w .lvl > i { display: none; } /* the XP bar only shows in the hover card */
.avatar-w .lvl { width: 20px; min-width: 0; height: 20px; padding: 0; border-radius: 4px; bottom: -15px; }
@media (max-width: 860px) { .phead .avatar-w { margin-top: -44px; } }
.hovercard:has(.xpbar) .l { line-height: 1.45; font-size: 12.5px; } .hovercard:has(.xpbar) hr { margin: 4px 0; }
/* Minecraft-style numbers in the level card */
.mctip .mcn, .mctip .t.mcn { font-family: Minecraft, var(--mono); font-weight: 400; color: #80ff20; text-shadow: none; letter-spacing: .5px; }
.mctip .t.mcn { font-size: 18px; text-shadow: 2px 2px 0 #1f3f08; }

/* XP bar like Minecraft's: black outline, dark trough, bright green fill with a lighter top edge, notches across it */
.mctip .xpbar { height: 7px; margin: 6px 0 3px; border-radius: 0; border: 1px solid #000; box-shadow: 0 0 0 1px #3a3a3a;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 18 - 1px), #000a calc(100% / 18 - 1px) calc(100% / 18)),
    linear-gradient(180deg, #b5ff6b 0 2px, #80ff20 2px 4px, #4fa80f 4px) 0 0 / var(--p) 100% no-repeat, #1b1b1b; }
/* a wall comment the profile owner liked: their head with a small red heart, like a creator heart */
.owner-like { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--text-3); font: 500 12px Inter; }
.owner-like[hidden] { display: none; }
.ol-head { position: relative; width: 18px; height: 18px; flex: none; }
.ol-head img { width: 18px; height: 18px; border-radius: 4px; image-rendering: pixelated; }
.ol-head i { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: #ff4d5e; color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.ol-head i .ic { fill: currentColor; }
.name-row .tipw { display: inline-flex; align-items: center; }

/* dogs and cats live in a room (art by the owner): their own background, and a shadow under them instead of the glow */
.pet-stage.room-dog, .pet-stage.room-cat { background: radial-gradient(30% 6% at 50% 71%, #000c, #0006 55%, transparent), var(--room) center 70% / cover no-repeat, #2a1f14; }
.pet-stage.room-dog { --room: url(img/pet-room-dog2.webp); }
.pet-stage.room-cat { --room: url(img/pet-room-cat2.webp); }

/* legal pages: contents list, tables, cross-links */
.legal-toc { margin: var(--s4) 0; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-in); background: var(--surface); }
.legal-toc ol { margin: var(--s2) 0 0; padding-left: 1.4em; columns: 2; column-gap: var(--s6); }
.legal-toc li { margin: 2px 0; break-inside: avoid; } .legal-toc a { color: var(--text-2); } .legal-toc a:hover { color: var(--lime); }
.legal h2 { scroll-margin-top: 90px; }
.legal-table { overflow-x: auto; margin: var(--s3) 0; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.legal-table th { color: var(--text); font-weight: 600; }
.legal-links { margin-top: var(--s6); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
/* one-time cookie notice */
.cookie-note { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: var(--s3); max-width: 460px; padding: var(--s3) var(--s4); border-radius: 16px; border: 1px solid var(--border-2); background: rgba(10, 12, 9, .95); backdrop-filter: blur(16px); box-shadow: 0 18px 40px -12px #000; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
@media (max-width: 760px) { .cookie-note { left: 8px; right: 8px; bottom: 76px; max-width: none; } }
/* profile cape wall */
.cape-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.cape-tile { position: relative; display: block; aspect-ratio: 10 / 16; padding: 4px; border-radius: 8px; border: 2px solid color-mix(in srgb, currentColor 45%, #000); background: #0b0d0a;
  box-shadow: inset 0 0 0 1px #ffffff0d; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.cape-tile .cape-art { width: 100%; height: 100%; border-radius: 3px; }
.cape-tile:hover { transform: translateY(-3px); border-color: currentColor; }
.cape-tile.on { border-color: var(--lime); box-shadow: 0 0 0 2px #c8ff3e33, 0 0 18px -4px #c8ff3e88; }
.cape-eq { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 1px 6px; border-radius: 99px; background: var(--lime); color: #000; font: 700 9px Inter; white-space: nowrap; }
.cape-tile.empty { border: 2px dashed var(--border-2); background: repeating-linear-gradient(45deg, #ffffff05 0 6px, transparent 6px 12px); box-shadow: none; pointer-events: none; }
.cape-rank { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1.5px solid #ffc94d99; color: #ffd27a; background: #ffaa0012; font: 700 13px Inter; }
.cape-rank:hover { border-color: #ffc94d; }
/* cape leaderboard */
.lb { padding: var(--s2); }
.lb-row { display: grid; grid-template-columns: 64px 36px minmax(0, 160px) 1fr auto; align-items: center; gap: var(--s3); padding: 10px var(--s3); border-radius: 12px; }
.lb-row:hover { background: var(--sunken); }
.lb-row + .lb-row { border-top: 1px solid var(--border); }
.lb-rank { display: inline-flex; align-items: center; gap: 4px; font: 700 15px Inter; color: var(--text-2); }
.lb-row.top1 .lb-rank { color: #ffc94d; } .lb-row.top2 .lb-rank { color: #d6dbe4; } .lb-row.top3 .lb-rank { color: #e0965a; }
.lb-row .head { width: 36px; height: 36px; border-radius: 6px; image-rendering: pixelated; }
.lb-capes { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.lb-capes .cape-art { width: 20px; } .lb-capes small { color: var(--text-3); margin-left: 4px; }
.lb-score { display: flex; flex-direction: column; align-items: flex-end; } .lb-score b { color: var(--lime); font-size: 16px; } .lb-score small { color: var(--text-3); font-size: 12px; }
@media (max-width: 640px) { .lb-row { grid-template-columns: 52px 32px minmax(0, 1fr) auto; } .lb-capes { display: none; } }
/* home: your friends */
.friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s2); }
.friend { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: 14px; border: 1px solid var(--border); background: var(--sunken); min-width: 0; }
.friend > a { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; }
.friend > a:hover b { color: var(--lime); }
.friend .head { width: 36px; height: 36px; border-radius: 6px; image-rendering: pixelated; flex: none; }
.friend b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.friend-reqs { margin-bottom: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--border); }
.friend-reqs .field-l { color: var(--lime); }
.friend-reqs .friends { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.friend small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friends-empty { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.friends-empty b { color: var(--text-2); }
.friends-empty .ic { flex: none; }
.inline-ic { display: inline-flex; align-items: center; gap: 5px; }
/* skin history: the face fills its square like a profile picture */
.slot img { width: 52px; height: 52px; border-radius: 8px; }
/* skin history squares: corners match the profile picture (same ratio), inner radius = outer − gap */
.slots .slot { border-radius: 13px; }
.slots .slot img { width: 52px; height: 52px; border-radius: 7px; } /* 13 − 1 border − 5 gap */
/* cape cards: the cape sets the height, so the gap is the same on every side; inner radius = 9 − 2 border − 4 padding */
.cape-tile { aspect-ratio: auto; padding: 4px; border-radius: 9px; }
.cape-tile .cape-art { width: 100%; height: auto; aspect-ratio: 10 / 16; border-radius: 3px; display: block; }
.cape-tile.empty::before { content: ''; display: block; aspect-ratio: 10 / 16; }
.lb-score em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); }
/* confirm box */
.ask-row { justify-content: flex-end; gap: var(--s2); margin-top: var(--s5); }
.btn.danger { background: #ff4d5e; border-color: #ff4d5e; color: #fff; }
.btn.danger:hover { background: #ff6573; }
/* search suggestions: pictures and two-line rows */
.suggest { max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.suggest .sg-t { display: flex; flex-direction: column; min-width: 0; }
.suggest .sg-t b { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sg-t small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sg-pic { width: 32px; height: 32px; flex: none; border-radius: 6px; image-rendering: pixelated; background: var(--sunken); object-fit: cover; }
.suggest .sg-srv.srv-noicon { display: grid; place-items: center; color: var(--text-3); }
.suggest .sg-cape { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 6px; background: var(--sunken); }
.suggest .sg-cape .cape-art { width: 16px; }
/* iPhones zoom into any text box under 16px and stay zoomed; 16px on touch screens stops that */
@media (pointer: coarse) { input, textarea, select { font-size: 16px !important; } }
/* the profile tabs only scroll sideways (their underline sits 1px low, which let them wobble up and down) */
.ptabs { overflow-y: hidden; overscroll-behavior-x: contain; }
.ptabs button::after { bottom: 0; }
/* cards sit on a plain dark page: no background blur (it pulled the 3D viewer's glow into neighbouring cards as a light streak) */
.card { backdrop-filter: none; }
.suggest .sg-pic.sm { width: 22px; height: 22px; border-radius: 4px; }
.suggest .sg-body { width: 32px; flex: none; } .suggest .sg-body .r3d-wrap { width: 32px; }
.dock .btn.icon[data-copy] { color: var(--text-2); }
/* quick save on skin cards */
.tile-save { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(10, 12, 9, .75); color: var(--text-2); cursor: pointer; opacity: 0; transition: opacity .2s, color .2s, border-color .2s; }
.tile:hover .tile-save, .tile-save.on, .tile-save:focus-visible { opacity: 1; }
@media (hover: none) { .tile-save { opacity: 1; } }
.tile-save:hover { color: var(--text); border-color: #c8ff3e66; }
.tile-save.on { color: var(--lime); border-color: #c8ff3e88; } .tile-save.on .ic { fill: currentColor; }
/* home feature cards: heads with names, 10 capes, 5 skins in a row */
.show-heads { gap: var(--s2) !important; }
.head-n { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; width: 56px; }
.head-n small { font-size: 11px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-capes .cape-art { width: 26px; }
/* leaderboard banner keeps the usual gap above the table */
.banner-h + .lb { margin-top: var(--s5); }
.feature .show .r3d-wrap { width: auto; flex: 1 1 0; min-width: 0; max-width: 92px; }
.show-capes { gap: 6px !important; } .show-capes .cape-art { width: auto; flex: 1 1 0; min-width: 0; max-width: 36px; }
/* home cards: heads and capes spread across the full card width */
.feature .show.show-heads { justify-content: space-between; gap: 4px !important; }
.show-heads .head-n { width: auto; flex: 1 1 0; max-width: 56px; }
.show-heads .head { width: 100% !important; height: auto !important; aspect-ratio: 1; max-width: 44px; }
.feature .show.show-capes { justify-content: space-between; gap: 10px !important; }
.show-capes .cape-art { max-width: 34px; }
/* scrollbars that match the site (dialogs, menus, lists) instead of the browser's grey bar */
* { scrollbar-width: thin; scrollbar-color: #3a4230 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a4230; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #c8ff3e88; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.phead-banner { height: 260px; } @media (max-width: 860px) { .phead-banner { height: 170px; } }
/* header: Discover menu */
.nav-more { display: inline-flex; align-items: center; gap: 6px; padding: var(--s2) 14px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font: 500 var(--fs-md) Inter; cursor: pointer; transition: color .2s, background .2s; }
.nav-more:hover, .nav-more[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav-more .chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.panel.panel-disc { width: min(760px, calc(100vw - 24px)); padding: 12px; }
.disc { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s3); }
.disc-cards { display: grid; gap: var(--s2); }
.disc-card { position: relative; display: grid; gap: 4px; padding: var(--s4); border-radius: 14px; overflow: hidden; color: #fff; border: 1px solid #ffffff1a; transition: transform .2s var(--ease); }
.disc-card:hover { transform: translateY(-2px); }
.disc-card small { font: 11px Minecraft, var(--mono); letter-spacing: 1px; text-transform: uppercase; opacity: .85; }
.disc-card b { font-size: var(--fs-lg, 18px); } .disc-card span { font-size: 13px; opacity: .85; line-height: 1.45; }
.disc .panel-item { width: 100%; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.disc .panel-item .soon-tag { margin-left: auto; }
@media (max-width: 700px) { .disc { grid-template-columns: 1fr; } .panel.panel-disc { left: 12px !important; right: 12px !important; width: auto; } }
.tabbar button { flex: 1; padding: 14px 0; border: 0; background: none; color: var(--text-2); font: 600 13px Inter; cursor: pointer; }
/* small hover cards for buttons ([data-tip]) */
.hovercard.tiny { width: auto; max-width: 260px; }
.hovercard.tiny .t { font-size: 14px; }
/* UUID menu: the copied row lights up before the menu closes */
.uuid-opt.copied { background: #c8ff3e14; box-shadow: inset 0 0 0 1px #c8ff3e66; }
.uuid-opt.copied > .ic, .uuid-opt.copied small { color: var(--lime); }
.uuid-opt.copied .notif-ic { animation: pop .45s var(--ease); }
/* badges page */
.lead-s { margin: -8px 0 var(--s4); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s3); }
.badge-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s4) var(--s3); border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.badge-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac, #c8ff3e) 55%, transparent); }
.badge-tile > b { font-size: 15px; min-height: 2.6em; display: grid; place-items: center; }
.badge-tile .ach-i { width: 64px; height: 64px; border-radius: 16px; }
.badge-tile small { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font: 12px var(--mono); }
.badge-tile .badge-d { color: var(--text-3); font-size: 12px; line-height: 1.4; }
.badge-tile.soon { opacity: .55; cursor: default; } .badge-tile.soon:hover { transform: none; border-color: var(--border); }
.badge-dlg { display: flex; gap: var(--s4); align-items: flex-start; padding-right: 40px; }
.badge-dlg .ach-i { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.badge-dlg h2 { margin: 0 0 4px; }
dialog.dlg-wide { width: min(980px, calc(100% - 32px)); }
.badge-owners { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.badge-owners a, .badge-owners .more { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--sunken); font-size: 13px; font-weight: 500; min-width: 0; }
.badge-owners a:hover { border-color: #c8ff3e66; }
.badge-owners img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; flex: none; }
.badge-owners .more { justify-content: center; padding: 0 10px; color: var(--text-3); background: none; border-style: dashed; }
/* servers page */
.min0 { min-width: 0; }
.srv-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.srv-card { position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; isolation: isolate; }
.srv-card-bg { position: absolute; inset: -30px -30px 50%; z-index: -1; background: center / cover; filter: blur(28px) saturate(1.4); opacity: .45; }
.srv-card-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, var(--surface)); }
.srv-card-top { display: flex; align-items: center; gap: var(--s3); }
.srv-card-top b { display: block; font-size: 17px; }
.srv-card-top code, .srv-who code { display: block; color: var(--text-3); font-size: 12px; }
.srv-card-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; image-rendering: pixelated; box-shadow: 0 8px 20px #0008; }
.srv-rank { margin-left: auto; align-self: flex-start; color: var(--text-3); font: 700 13px var(--mono); }
.srv-card-motd { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.srv-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.srv-card-stats div { display: grid; padding: 8px 10px; border-radius: 12px; background: var(--sunken); }
.srv-card-stats b { font-size: 20px; } .srv-card-stats span { color: var(--text-3); font-size: 12px; }
.srv-card-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-top: auto; }
.chip-s { padding: 3px 9px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.srv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s4); align-items: start; }
.srv-layout > .section { margin-top: var(--s6); }
.srv-side { margin-top: calc(var(--s6) + 56px); }
.srv-table { padding: 0; overflow: hidden; }
.srv-tools { padding: var(--s3); border-bottom: 1px solid var(--border); } .srv-tools .field { width: 100%; }
.srv-thead, .srv-r { display: grid; grid-template-columns: 34px minmax(0, 1.6fr) minmax(0, .9fr) 110px 80px 70px 36px; align-items: center; gap: var(--s3); padding: 10px var(--s4); }
.srv-thead { color: var(--text-3); font: 600 11px Inter; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.srv-r + .srv-r { border-top: 1px solid var(--border); }
.srv-r:hover { background: var(--sunken); }
.srv-r.off { opacity: .55; }
.srv-r .rank { color: var(--text-3); font: 600 13px var(--mono); }
.srv-who { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.srv-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-icon { width: 34px; height: 34px; flex: none; border-radius: 8px; image-rendering: pixelated; }
.srv-r .r, .srv-thead .r { text-align: right; }
.cap { display: block; height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.cap i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7fd13b, var(--lime)); }
.side-row { display: flex; align-items: center; gap: var(--s3); padding: 6px 0; } .side-row b { display: block; font-size: 14px; } .side-row small { color: var(--text-3); font-size: 12px; } .side-row > span { margin-left: auto; }
.snap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); } .snap div { display: grid; padding: 10px; border-radius: 12px; background: var(--sunken); } .snap b { font-size: 18px; } .snap span { color: var(--text-3); font-size: 12px; }
.sotw-mini { position: relative; overflow: hidden; isolation: isolate; }
.sotw-mini .sotw-bg { position: absolute; inset: 0; z-index: -1; }
@media (max-width: 1100px) { .srv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .srv-layout { grid-template-columns: minmax(0, 1fr); } .srv-side { margin-top: var(--s4); } }
@media (max-width: 640px) { .srv-cards { grid-template-columns: minmax(0, 1fr); } .srv-thead, .srv-r { grid-template-columns: 26px minmax(0, 1fr) 70px 36px; } }
/* profile tag picker + the chosen tag next to a name */
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-2); background: var(--sunken); color: var(--text-2); font: 600 13px Inter; cursor: pointer; }
.tag-pick button .ic { color: var(--rc, var(--text-3)); }
.tag-pick button.on { color: var(--text); border-color: var(--rc, var(--lime)); box-shadow: 0 0 0 1px var(--rc, var(--lime)); background: color-mix(in srgb, var(--rc, #c8ff3e) 12%, transparent); }
/* servers page: stat strip, top-3 podium, one table, add-your-server */
.srv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.srv-stats > div { display: grid; gap: 2px; padding: var(--s4); border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.srv-stats b { font-size: 26px; letter-spacing: -.02em; } .srv-stats b small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.srv-stats span { color: var(--text-3); font-size: 13px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: end; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.pod > b { font-size: 17px; max-width: 100%; } .pod > code { color: var(--text-3); font-size: 12px; max-width: 100%; }
.pod-icon { width: 64px; height: 64px; border-radius: 16px; image-rendering: pixelated; box-shadow: 0 10px 26px #000a; margin-bottom: var(--s2); }
.pod-step { position: relative; width: 100%; display: grid; justify-items: center; gap: 2px; margin-top: var(--s3); padding: var(--s5) var(--s3) var(--s4); border-radius: 18px 18px 6px 6px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); }
.pod-1 .pod-step { min-height: 190px; border-color: #c8ff3e66; background: linear-gradient(180deg, #c8ff3e1f, rgba(255, 255, 255, .015)); }
.pod-2 .pod-step { min-height: 160px; } .pod-3 .pod-step { min-height: 140px; }
.pod-n { position: absolute; top: -16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); font: 800 15px Inter; }
.pod-1 .pod-n { background: var(--lime); color: #000; border-color: var(--lime); }
.pod-step > b { font-size: 26px; } .pod-1 .pod-step > b { color: var(--lime); } .pod-step small { color: var(--text-3); margin-bottom: var(--s2); }
.srv-tools { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; } .srv-tools .field { flex: 1; min-width: 200px; width: auto; }
.srv-add { display: flex; gap: var(--s4); align-items: center; justify-content: space-between; flex-wrap: wrap; } .srv-add > div { max-width: 520px; } .srv-add form { flex: 1; min-width: 260px; max-width: 460px; }
@media (max-width: 760px) { .srv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .podium { grid-template-columns: minmax(0, 1fr); } .pod-step { min-height: 0 !important; } }
/* Discover menu: a grid of tiles with the legal links underneath */
.panel.panel-disc { width: min(560px, calc(100vw - 24px)); padding: 10px; }
.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.disc-tile { display: flex; gap: var(--s3); align-items: center; padding: 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.disc-tile:hover { background: var(--surface-2); border-color: var(--border); }
.disc-tile > i { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; color: var(--lime); background: #c8ff3e14; border: 1px solid #c8ff3e33; }
.disc-tile b { display: flex; align-items: center; gap: 6px; font-size: 14px; } .disc-tile b .soon-tag { margin: 0; }
.disc-tile small { display: block; color: var(--text-3); font-size: 12px; }
.disc-foot { display: flex; gap: var(--s4); padding: 10px 12px 4px; margin-top: 6px; border-top: 1px solid var(--border); }
.disc-foot a { color: var(--text-3); font-size: 12px; } .disc-foot a:hover { color: var(--text); }
@media (max-width: 700px) { .disc-grid { grid-template-columns: 1fr; } }
/* contribute page */
.contrib { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s4); margin-top: var(--s5); align-items: start; }
.contrib-drop textarea { width: 100%; resize: vertical; min-height: 220px; }
.contrib-drop.over { border-color: var(--lime); box-shadow: 0 0 0 3px #c8ff3e22; }
.contrib-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s3); } .contrib-actions .primary { margin-left: auto; }
.contrib-goal { display: flex; gap: var(--s3); align-items: flex-start; } .contrib-goal .ach-i { width: 52px; height: 52px; border-radius: 14px; }
.xpbar-plain { height: 8px; margin: var(--s3) 0 4px; border-radius: 99px; background: var(--sunken); overflow: hidden; } .xpbar-plain i { display: block; height: 100%; border-radius: 99px; background: var(--lime); }
.contrib-steps { margin: 0 0 var(--s4); padding-left: 1.2em; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.award-form { display: grid; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border); } .award-form textarea { width: 100%; }
@media (max-width: 900px) { .contrib { grid-template-columns: minmax(0, 1fr); } }

/* XYMC badge artwork: no tile, the picture is the badge. Hover tilts it toward the cursor with a glare that follows. */
.ach-i.art { background: none; border: 0; border-radius: 0; position: relative; perspective: 300px; overflow: visible; }
.ach-i.art img { width: 100%; height: 100%; object-fit: contain; display: block; transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) scale(var(--sc, 1)); transition: transform .45s var(--ease); filter: drop-shadow(0 2px 4px rgb(0 0 0 / .45)); }
.ach-i.art::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s, transform .45s var(--ease);
  -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .35) 45%, transparent 60%) calc(var(--mx, 50%) * 2 - 50%) 0 / 250% 100% no-repeat;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) scale(var(--sc, 1)); }
.ach-i.art.tilt { --sc: 1.08; z-index: 2; }
.ach-i.art.tilt img { transition: transform .08s linear; }
.ach-i.art.tilt::after { opacity: 1; transition: opacity .2s, transform .08s linear; }
.badge-strip .tipw:hover .ach-i.art, .ach-row .tipw:hover .ach-i.art { transform: none; }
@media (prefers-reduced-motion: reduce) { .ach-i.art img, .ach-i.art::after { transform: none !important; } }
.badge-tile .ach-i.art { width: 84px; height: 84px; } .ach-grid .ach .ach-i.art { width: 76px; height: 76px; } .badge-strip .ach-i.art { width: 32px; height: 32px; }
.notif .ach-i { width: 30px; height: 30px; border-radius: 7px; } .notif .ach-i img { border-radius: 0; image-rendering: auto; }

/* servers page: list first, extras in a slim side column (stacked under the list on smaller screens) */
.srv-glance { display: grid; gap: 10px; }
.srv-glance > div:not(.card-t) { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); font-size: 13px; color: var(--text-3); min-width: 0; }
.srv-glance b { color: var(--text); font-size: 15px; min-width: 0; } .srv-glance small { color: var(--lime); font-weight: 600; }
.sotw-mini { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--s3); justify-items: start; }
.sotw-mini .sotw-icon { width: 48px; height: 48px; border-radius: 12px; }
.sotw-mini .btn { width: 100%; justify-content: center; }
.clamp2 { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srv-add-side { display: grid; gap: 6px; } .srv-add-side p { margin: 0 0 6px; } .srv-add-side .btn { justify-content: center; }
.srv-r.srv-top .rank { color: var(--lime); font-weight: 800; }
@media (max-width: 1000px) { .srv-layout { grid-template-columns: minmax(0, 1fr); } .srv-side { margin-top: 0; } }
@media (max-width: 700px) { .srv-thead, .srv-r { grid-template-columns: 24px minmax(0, 1fr) auto 32px; gap: var(--s2); padding: 10px var(--s3); } .srv-thead .hide-s, .srv-r .hide-s { display: none; } .srv-tools .seg { margin-top: var(--s2); } }
.spark { display: block; width: 100%; height: 28px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark polygon { fill: color-mix(in srgb, var(--lime) 14%, transparent); }
.srv-r.off .spark polyline { stroke: var(--text-3); } .srv-r.off .spark polygon { fill: none; }
.char-card .corner-l { right: auto; left: var(--s4); }
.char-card .corner-l .btn.on { color: var(--lime); border-color: #c8ff3e55; }
.srv-layout .srv-side { margin-top: 0; }
/* the top 3 rows are taller with bigger icons and numbers, so the biggest servers stand out */
.srv-r.srv-top { padding-top: 16px; padding-bottom: 16px; }
.srv-r.srv-top .side-icon { width: 52px; height: 52px; }
.srv-r.srv-top .srv-who b { font-size: 17px; }
.srv-r.srv-top .rank { font-size: 18px; }
.srv-r.srv-top .r b { font-size: 19px; }
button.slot { padding: 0; cursor: pointer; font: inherit; color: inherit; }
.hotbar [data-v="ely"] { min-width: 4.6em; justify-content: center; text-align: center; } /* same width for Elytra / Fly / Land, so the bar never resizes */
@media (max-width: 860px) { .phead .avatar-w { margin-bottom: 14px; } } /* room for the level badge that hangs under the picture */
/* one row of badges: the ones that wrap to a second row are hidden by fitBadgeStrip() in app.js; the count beside it says how many there are */
.badges-card .badge-strip .tipw.over { display: none; }
/* small phones: the viewer bar never overflows the card; it scrolls sideways instead, so Elytra is always reachable */
@media (max-width: 520px) { .hotbar { max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; } .hotbar::-webkit-scrollbar { display: none; } .hotbar button { flex: none; padding: 0 7px; } .hotbar [data-v="ely"] { min-width: 4.2em; } .hotbar i { flex: none; } }
@media (max-width: 960px) { .split .badges-card { order: -4; } } /* badges stay above the 3D card on phones too */
.hotbar { max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; } .hotbar::-webkit-scrollbar { display: none; } .hotbar button, .hotbar i { flex: none; } /* never wider than the card, at any size */
/* 3D card with a Minecraft scene behind it: the ground is anchored to the bottom so the feet stand on the grass; a soft
   shadow under the feet instead of the glow, and a light vignette so the player stays the focus */
.char-card.scene { background: linear-gradient(180deg, #0004, transparent 30%, transparent 70%, #0006), var(--scene) center bottom / cover no-repeat, #0d100c; }
.char-card.scene .floor { width: 150px; height: 26px; background: radial-gradient(closest-side, #000c, #0006 60%, transparent); }
/* background picker: thumbnails in the card's 2:3 shape */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.scene-grid button { padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--sunken); overflow: hidden; cursor: pointer; color: var(--text-2); font: 500 12px Inter; text-align: center; }
.scene-grid button:hover { border-color: #c8ff3e55; }
.scene-grid button.on { border-color: var(--lime); color: var(--text); }
.scene-grid img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.scene-grid span { display: block; padding: 6px 4px; }
html:has(dialog[open]) { overflow: hidden; } /* the page behind a popup doesn't scroll */
/* scene centred (horizon in the middle, like the camera); cover fits it to the card's height whenever the image is wider than the
   card, so wider scene images show more of the sides on iPad/desktop at the same scale, and nothing repeats or stretches */
.char-card.scene { background: linear-gradient(180deg, #0004, transparent 30%, transparent 70%, #0006), var(--scene) center / cover no-repeat, #0d100c; }
.char-card .floor { left: calc(var(--feetx, .5) * 100%); } /* follows the player when he steps aside for his pet */
.char-card .floor { display: none; } /* the floor shadow is a 3D object now (stays on the ground when the camera turns) */
/* Profile: the full-width banner on top, the 3D card overlapping its left side (like the avatar does), and the name, tabs and
   content to its right, so the whole 3D card is on screen when the profile opens. Phones stack: banner, name, card, content. */
/* The card sits in a notch cut out of the banner's bottom-left corner. The notch is painted in the page colour with a line along its
   top and right side, so the banner's left edge turns along the notch and runs down into the name card's left edge. */
.prof { display: grid; grid-template-columns: 433px minmax(0, 1fr); grid-template-rows: 260px auto; align-items: start; --line: var(--border); } /* row 1 = the banner's height, so a tall card beside a short tab can't stretch it */
.prof-banner { grid-column: 1 / -1; grid-row: 1; border: 1px solid var(--line); border-bottom: 0; }
.prof-side { grid-column: 1; grid-row: 1 / span 2; margin-top: 120px; padding: 13px 13px 0 0; position: relative; z-index: 2; } /* 13px = 12px gap + the line; flush left with the banner */
.prof-side .char-card { height: clamp(440px, calc(100vh - 260px), 580px); }
/* The notch: page colour with a line along its top and right. It hangs off the name card (433px wide, 140px = banner 260px −
   120px tall) so its right-hand line is drawn by the same box as the card's left border and the two can't land a pixel apart. */
.prof-main > .phead::before { content: ''; position: absolute; left: -433px; top: -140px; width: 433px; height: 140px; z-index: 1; background: var(--bg);
  border: solid var(--line); border-width: 1px 1px 0 0; border-top-right-radius: calc(var(--r-out) + 13px); box-sizing: border-box; }
/* the banner's corner above the card, rounded like its others: page colour outside the curve and the outline along it */
/* The curve is a real border (not a picture), so the browser snaps it to the screen's pixels exactly like the straight line it
   joins; a picture is drawn at the in-between position and met the line half a pixel off. The page colour outside the curve is
   its shadow: an outer shadow is never painted inside its own rounded box, so it fills only below-left of the curve. */
.prof-side::after { content: ''; position: absolute; left: 0; top: -27px; width: 28px; height: 28px; z-index: -1; box-sizing: border-box; /* 28px = --r-out */
  border: solid var(--line); border-width: 0 0 1px 1px; border-bottom-left-radius: 28px; box-shadow: -20px 20px 0 20px var(--bg); }
.prof-main { grid-column: 2; grid-row: 2; min-width: 0; margin-left: -1px; } /* its left border lands on the outline */
.prof-main > .phead { border-top: 0; border-color: var(--line); border-radius: 0 0 var(--r-out) var(--r-out); background-clip: padding-box; } /* its border over the page, like the notch line, so the two read as one line */
@media (max-width: 960px) {
  .prof { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .prof-main { display: contents; }
  .prof-banner, .prof-side, .prof-main > * { grid-column: 1; grid-row: auto; }
  .prof-banner { order: 0; } .prof-main > .phead { order: 1; } .prof-side { order: 2; margin-top: var(--s4); padding: 0; } .prof-main > .phead::before, .prof-side::after { display: none; } .prof-main > .pane, #paneLoad { order: 3; }
  .prof-side .char-card { height: 480px; }
  .prof:has([data-pane="overview"][hidden]) .prof-side { display: none; } /* only with Overview, like before */
}
/* Profile header beside the 3D card: avatar, then name / UUID / stats, then the buttons; when the buttons don't fit next to
   the name they move to their own row instead of squeezing it, and the name stays on one line. */
@media (min-width: 861px) {
  .prof .phead-body { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: var(--s5); row-gap: var(--s3); }
  .prof .phead-id { flex: 1 1 400px; padding-top: var(--s4); } /* wide enough for the whole name row and the full UUID */
  .prof .phead .avatar-w { align-self: flex-start; margin-top: -8px; } /* its top a little above the name */
  .prof .name-row { flex-wrap: nowrap; } /* flag, tick, role and number stay on the name's row */
  .prof .uuid-row code { overflow: visible; text-overflow: clip; } /* the whole UUID */
  .prof .phead-actions { margin-left: auto; }
}
.prof .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* the banner fades into the name card instead of stopping at a hard edge (#131413: the card's own top colour) */
/* the profile buttons (follow, friend, like, claim, share / edit) share the tabs' row, on the right */
.ptabs-row { display: flex; align-items: center; gap: var(--s3); border-top: 1px solid var(--border); padding-right: var(--s5); }
.ptabs-row .ptabs { border-top: 0; flex: none; padding-right: 0; }
@media (min-width: 861px) { .ptabs-row .ptabs button { padding: 0 var(--s3); } .ptabs-row .ptabs button::after { left: var(--s3); right: var(--s3); } } /* a little tighter, so the buttons fit beside them */
.ptabs-row .phead-actions { flex: none; margin-left: auto; }
.ptabs-row .btn { height: 36px; } .ptabs-row .btn.icon { width: 36px; padding: 0; }
@media (max-width: 860px) { /* phones: the buttons above the tabs, like before */
  .ptabs-row { flex-direction: column-reverse; align-items: stretch; gap: 0; border-top: 0; padding-right: 0; }
  .ptabs-row .ptabs { border-top: 1px solid var(--border); }
  .ptabs-row .phead-actions { margin-left: 0; justify-content: flex-start; padding: 0 var(--s5) var(--s4); }
}
.ptabs-row .btn.primary { box-shadow: none; } /* no glow under the button in the tabs row */
/* the banner photo itself fades out to the page's black towards the bottom (a mask on a layer holding the photo, so the
   banner's outline stays solid), and the name card under it has no tint of its own, so the two meet without a seam */
.prof-banner { background: none; }
.prof-banner::after { display: none; }
.prof-banner::before { content: ''; position: absolute; inset: 0; background: var(--bimg) var(--bpos, center) / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 25%, rgba(0, 0, 0, .75) 50%, rgba(0, 0, 0, .35) 72%, rgba(0, 0, 0, .1) 86%, transparent 96%);
  mask-image: linear-gradient(#000 25%, rgba(0, 0, 0, .75) 50%, rgba(0, 0, 0, .35) 72%, rgba(0, 0, 0, .1) 86%, transparent 96%); }
.prof-main > .phead { background: none; }
.hotbar [data-crouch] svg { transition: transform .25s var(--ease); } .hotbar [data-crouch].on svg { transform: rotate(180deg); } /* the arrow points down while crouching */
.mctip.hovercard .t .mcname { font-size: 16px; margin: 0 2px; text-shadow: 1.5px 1.5px 0 #2d3a0c; }
/* About me: the socials stay on one row, a little more compact; with very many they scroll sideways instead of wrapping */
.idcard .socials { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 3px 0; } .idcard .socials::-webkit-scrollbar { display: none; }
.idcard .social { height: 34px; padding: 0 var(--s3); gap: 6px; flex: none; }
/* Comments tab: one line of rules (label white, text grey); the left column swaps Skins for the owner's recent visitors */
.wall-rules { padding-block: var(--s4); } .wall-rules p { margin: 0; }
.side-visitors { display: none; }
.prof:has([data-pane="comments"]:not([hidden])) .side-skins { display: none; }
.prof:has([data-pane="comments"]:not([hidden])) .side-visitors { display: block; }
.mention { color: var(--lime); font-weight: 600; } .mention:hover { text-decoration: underline; }
/* Skins: search with the Tags / Charts buttons beside it; the trending period picker sits with the sort pills */
.skin-bar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: var(--s5) 0; } .skin-bar .hero-search { flex: 1 1 320px; margin: 0; }
#skinTabs { align-items: center; } #skinPeriod { height: 36px; width: auto; padding: 0 var(--s3); }
/* Tags page: groups of cards, each showing three skins from the tag fanned out */
.tag-group { margin-bottom: var(--s6); } .tag-group .card-h { margin-bottom: var(--s4); }
.tag-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tag-card { display: grid; gap: 2px; padding: var(--s3) var(--s4) var(--s4); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.tag-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.tag-stage { display: flex; justify-content: center; height: 112px; margin: var(--s2) 0; }
/* the grid and glow reach the card's top and side edges, like the skin cards; the skins keep their old spot */
.tag-stage { box-sizing: content-box; margin: calc(var(--s3) * -1 - 1px) calc(var(--s4) * -1 - 1px) var(--s2); padding-top: calc(var(--s3) + var(--s2) + 1px); border-radius: 20px 20px 0 0; }
/* no line under this stage, so its rows are drawn along their bottom edge: the last row closes itself, the top row meets the border */
.tag-stage { background-image: radial-gradient(50% 12% at 50% 92%, #0007, transparent), radial-gradient(70% 40% at 50% 100%, #c8ff3e30, transparent 72%),
  linear-gradient(to top, #c8ff3e08 1px, transparent 1px), linear-gradient(90deg, #c8ff3e08 1px, transparent 1px); }
.tag-stage .r3d-wrap { width: 84px; flex: none; margin: 0 -27px; } .tag-stage .r3d-wrap:nth-child(2) { z-index: 1; transform: scale(1.12); } .tag-stage .r3d-wrap:only-child { transform: none; }
.tag-card small { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
/* Charts page */
.ch-week { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); } .ch-week span { display: grid; text-align: center; min-width: 170px; } .ch-week small { color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); }
.ch-week a:first-child .ic { transform: rotate(180deg); } .ch-week .off { opacity: .35; pointer-events: none; }
.ch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s4); align-items: start; }
@media (max-width: 960px) { .ch-layout { grid-template-columns: minmax(0, 1fr); } }
.ch-list { padding-bottom: var(--s2); }
.ch-row { display: grid; grid-template-columns: 40px 52px 44px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s2) var(--s2); border-top: 1px solid var(--border); border-radius: 12px; color: var(--text-3); }
.ch-row:hover { background: var(--surface-2); }
.ch-rank { font: 400 22px/1 Minecraft, var(--pixel); color: var(--text); text-align: center; }
.ch-move { font-size: var(--fs-sm); font-weight: 600; text-align: center; color: var(--text-3); } .ch-move.up { color: var(--lime); } .ch-move.down { color: var(--red); }
.ch-move.new { padding: 2px 6px; border: 1px solid var(--lime); border-radius: 6px; color: var(--lime); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.ch-row .r3d-wrap { width: 44px; } .ch-t { display: grid; min-width: 0; } .ch-t b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ch-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.ch-mini { display: grid; justify-items: center; gap: 2px; padding: var(--s2) 0; border: 1px solid var(--border); border-radius: 12px; background: var(--sunken); } .ch-mini:hover { border-color: var(--lime); }
.ch-mini .r3d-wrap { width: 50px; } .ch-mini small { font: 400 13px/1 Minecraft, var(--pixel); color: var(--text-2); }
/* Names: one badge per state, each clearly different. Counting down = outlined white, window open = lime outline with a
   pulsing dot, available = solid lime, not checked yet = dashed grey, taken = plain grey. */
.ns { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--border-2); font: 600 var(--fs-xs)/1 Inter; font-style: normal; white-space: nowrap; color: var(--text); }
.ns.open { border-color: var(--lime); color: var(--lime); } .ns.open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: nsPulse 1.2s ease-in-out infinite; }
.ns.free { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.ns.wait { border-style: dashed; color: var(--text-3); } .ns.taken { border-color: var(--border); color: var(--text-3); }
@keyframes nsPulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ns.open::before { animation: none; } }
.ns-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0 0 var(--s4); color: var(--text-3); font-size: var(--fs-sm); } .ns-legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.pop { display: inline-block; width: 90px; height: 6px; margin-right: var(--s2); border-radius: 3px; background: var(--sunken); border: 1px solid var(--border); vertical-align: middle; overflow: hidden; } .pop i { display: block; height: 100%; background: var(--lime); }
.filters input[type=checkbox] { accent-color: var(--lime); width: 16px; height: 16px; }
/* Servers: category chips over the list, categories under each address, and the server's own page */
.srv-cats { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0 var(--s4) var(--s3); } .srv-cats:empty { display: none; }
a.srv-who { color: inherit; } a.srv-who:hover b { color: var(--lime); } .srv-tags { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.srv-hero h1 { font-size: var(--fs-xl); } .srv-graph svg.spark { width: 100%; height: 140px; } .srv-glance a { min-width: 0; }
.name-copy { width: 24px; height: 24px; vertical-align: middle; opacity: .55; } .name-copy:hover { opacity: 1; }
/* the signed "Met Fhin" banner: Fhin's neon signature in the banner's top-left, above the 3D card's notch */
.banner-sig { position: absolute; z-index: 1; left: 22px; top: 8px; height: 104px; width: auto; pointer-events: none; transform: rotate(-4deg); filter: drop-shadow(0 0 10px #ffd84d66); }
@media (max-width: 960px) { .banner-sig { height: 90px; left: 14px; top: 6px; } }
/* cape drops: two cards side by side (stacked on phones), each with its cape standing upright on the left and the text beside
   it. The Snow Golem card is white and teal, the Hero card keeps its red and yellow. */
.drops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s4); }
.drops .drop { grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
.drops .drop-main { padding: var(--s2) var(--s2) var(--s2) 0; }
.drops .drop-img { aspect-ratio: 3 / 4; width: 100%; padding: 0; cursor: pointer; }
@media (max-width: 520px) { .drops .drop { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); } .drops .countdown { gap: 4px; flex-wrap: nowrap; } .drops .countdown div { min-width: 0; flex: 1; padding: 6px 2px; } .drops .countdown b { font-size: var(--fs-lg); } .drops .countdown span { font-size: 9px; letter-spacing: .04em; } }
.drops .drop-img { position: relative; }
.drop-snow .drop-img { border-color: #bff3ee55; background: radial-gradient(60% 90% at 50% 60%, #5fe0d633, transparent 70%), linear-gradient(160deg, #e9fbf9 0%, #9fe3dc 55%, #3fb8ae 100%); }
.drops .drop-img img { position: absolute; top: 9%; left: 50%; width: auto; height: 82%; object-fit: contain; filter: drop-shadow(0 10px 16px #0b3d3a55); transform: translateX(-50%) rotate(4deg); }
.drops .drop:hover .drop-img img { transform: translateX(-50%) rotate(4deg) scale(1.05); }
.drop-hero .drop-img { border-color: #ffc94d33; background: radial-gradient(60% 90% at 50% 60%, #ffc94d33, transparent 70%), linear-gradient(160deg, #3a0d0b 0%, #6e1612 55%, #b3261c 100%); }
.drop-hero .drop-img img { filter: drop-shadow(0 10px 16px #1a030255); }
.drop-snow .drop-bg { border-color: #7fe6dc44; background: radial-gradient(55% 110% at 85% 80%, #22a99f66, transparent 65%), radial-gradient(35% 60% at 90% 30%, #ffffff1f, transparent 70%), linear-gradient(115deg, #070c0c 0%, #0a1514 55%, #0e2422 100%); }
.drop-snow .countdown b { color: #7fe6dc; }
.st-soon { color: #9ff0e8; border-color: #7fe6dc55; background: #7fe6dc14; }
/* cape edition tabs carry the edition's logo; MineCon badges show their own cape */
.ed-logo { width: 18px; height: 18px; object-fit: contain; margin-right: 6px; vertical-align: -4px; }
.ach-i.cape-ach { display: inline-grid; place-items: center; } .ach-i.cape-ach .cape-art { height: 76%; } .ach-i.cape-ach.locked .cape-art { filter: grayscale(1) brightness(.6); }
.cape-eds { margin-bottom: var(--s4); } .cape-eds button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .cape-eds .ed-logo { margin: 0; width: 16px; height: 16px; } .cape-eds small { font-size: inherit; color: var(--text-3); }
.cape-wall[data-ed] .cape-tile:not(.empty) { display: none; }
.cape-wall[data-ed="java"] .cape-tile[data-eds~="java"], .cape-wall[data-ed="bedrock"] .cape-tile[data-eds~="bedrock"], .cape-wall[data-ed="dungeons"] .cape-tile[data-eds~="dungeons"] { display: block; }
/* share a profile: the link with its copy button on one row, then the places to share it */
.share-link { display: flex; gap: var(--s2); margin: var(--s4) 0 var(--s3); } .share-link .field { flex: 1; font-family: var(--mono); font-size: 13px; }
.share-to { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s2); } .share-to .btn { justify-content: center; }
@media (max-width: 520px) { .share-link { flex-direction: column; } .share-link .field { flex: none; } } /* stacked: the field keeps its own height */
/* home: the stats bar along the bottom of the hero, edge to edge, over the faded banner */
.hero-stats { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--s5) calc(var(--s7) * -1) calc(var(--s7) * -1);
  border-top: 1px solid var(--border); border-radius: 0 0 31px 31px; background: #06070699; backdrop-filter: blur(3px); }
.hero-stats div { display: grid; gap: 2px; padding: var(--s3) var(--s5); min-width: 0; } .hero-stats div + div { border-left: 1px solid var(--border); }
.hero-stats b { font: 800 22px/1.1 Inter; letter-spacing: -.02em; } .hero-stats div:first-child b { color: var(--lime); }
.hero-stats span { color: var(--text-3); font-size: 12px; }
@media (max-width: 960px) { .hero-stats { margin: var(--s5) calc(var(--s5) * -1) calc(var(--s6) * -1); } } /* the hero's padding is smaller here */
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-stats div:nth-child(3) { border-left: 0; } .hero-stats div:nth-child(n+3) { border-top: 1px solid var(--border); } .hero-stats b { font-size: 18px; } }
/* home hero: a small label above the title */
.hero-kicker { justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: calc(var(--s2) * -1); }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero-copy { max-width: 660px; }
.hero-title { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.08; text-wrap: balance; } /* two lines on a computer: "Look up any Minecraft player." / "Skins, capes & name history." */
/* home showcase: trading cards on glass (the banner shows through), a soft lime glow behind, a tag on top, the subject on its
   stage (live 3D for the player), then a big name and stats as pills */
@media (min-width: 961px) { .hero { grid-template-columns: minmax(0, 1fr) 310px; } } /* phones keep the one-column hero */
.showcase::before { content: ''; position: absolute; inset: 6% -8% 14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, #c8ff3e30, transparent); filter: blur(10px); pointer-events: none; }
.showcase .slides { background: rgba(10, 12, 9, .5); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); border: 1px solid #ffffff1f; }
.preview.tc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); justify-items: center; text-align: center; }
.tc-tag { justify-self: center; padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: #000a; color: var(--text-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tc-tag.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tc-stage { position: relative; width: 100%; height: 280px; border-radius: var(--r-in); overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(55% 22% at 50% 92%, #c8ff3e40, transparent 72%), linear-gradient(#c8ff3e0a 1px, transparent 1px) 0 0 / 16px 16px round border-box,
    linear-gradient(90deg, #c8ff3e0a 1px, transparent 1px) 0 0 / 16px 16px round border-box, #0a0b09b3; }
.tc-scene { background: linear-gradient(180deg, #0004, transparent 35%, transparent 70%, #0007), var(--scene) center / cover no-repeat, #0d100c; } /* the player's own scene, like their profile */
.tc-tshu { background: linear-gradient(#000a, #000c), url(img/sotw-tshusmp.webp) center / cover no-repeat; } /* darkened so the icon stands out */
.tc-badges { display: grid; place-items: center; }
.tc-badges img { grid-area: 1 / 1; width: 132px; filter: drop-shadow(0 14px 18px #000c); animation: tc-badge 5s ease-in-out infinite; }
.tc-badges img:first-child { transform: translate(-34px, -10px) rotate(-8deg); animation-name: tc-badge-a; }
.tc-badges img:last-child { animation-name: tc-badge-b; z-index: 1; }
@keyframes tc-badge-a { 0%, 100% { transform: translate(-36px, -12px) rotate(-10deg); } 50% { transform: translate(-30px, -20px) rotate(-4deg) perspective(300px) rotateY(18deg); } }
@keyframes tc-badge-b { 0%, 100% { transform: translate(34px, 12px) rotate(8deg); } 50% { transform: translate(28px, 4px) rotate(3deg) perspective(300px) rotateY(-18deg); } }
.tc-stage .r3d-wrap { position: absolute; left: 50%; bottom: 8px; width: auto; height: 92%; aspect-ratio: 3 / 4; transform: translateX(-50%); background: none; border-radius: 0; }
.tc-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.tc-stage.live .r3d-wrap { display: none; } /* the 3D is drawn: the still picture steps aside */
.tc-live { position: absolute; right: 8px; top: 8px; display: none; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); background: #000b; border: 1px solid var(--border); color: var(--text-3); font-size: 11px; white-space: nowrap; z-index: 2; pointer-events: none; }
.tc-stage.live .tc-live { display: inline-flex; }
.tc-srv { display: grid; place-items: center; } .tc-srv .srv-big { width: 120px; height: 120px; }
.tc-name { display: flex; align-items: center; justify-content: center; gap: 8px; font: 900 28px/1.05 Inter; text-align: center; letter-spacing: -.03em; max-width: 100%; overflow-wrap: anywhere; }
.tc-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tc-pills > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: #000a; color: var(--text-2); font-size: 12px; }
.tc-pills b { color: var(--text); font-weight: 700; }
/* every home card has the same rows at the same heights (tag, stage, a two-line name, two rows of pills), top-aligned, so
   switching slides never shifts anything and no card looks emptier than another */
.showcase .slide:has(.tc) { align-content: start; }
.preview.tc { grid-template-rows: auto 260px 66px 62px; align-content: start; align-items: start; }
.preview.tc .tc-stage { height: 260px; }
.preview.tc .tc-name { height: 66px; align-self: stretch; align-items: center; line-height: 1.05; }
.preview.tc .tc-pills { height: 62px; align-content: flex-start; }
/* Fhin's card: his role tag and member number as the pills, sized like the other pills */
.tc-tags .role, .tc-tags .claimno { height: 26px; font-size: 12px; }
