/* ===== CraftCore ===== */
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Grotesk'; src: url('/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Grotesk'; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Grotesk'; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --surface: #14181e;
  --surface-2: #1a1f27;
  --border: #252c36;
  --border-2: #323b48;
  --text: #ebeff4;
  --muted: #8d99a8;
  --core: #ff8a1f;
  --core-2: #ffb347;
  --core-3: #ffd27a;
  --core-dark: #c55a0c;
  --on: #3ddc84;
  --off: #ef4b4b;
  --warn: #f2c94c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pixel: 'Pixelify', 'Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .035) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--core-2); text-decoration: none; }
a:hover { color: var(--core-3); }
h1, h2, h3 { font-family: var(--pixel); font-weight: 700; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--core-2); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--core); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.h-small { font-size: 1.15rem; }
.eyebrow { font-family: var(--pixel); color: var(--core); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: .6em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--font); padding: .8em 1.3em; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(180deg, var(--core-2), var(--core));
  border-color: var(--core); color: #1a0d02;
  box-shadow: 0 0 0 0 rgba(255, 138, 31, .5), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.btn--primary:hover { color: #1a0d02; border-color: var(--core-3); box-shadow: 0 6px 24px rgba(255, 138, 31, .35), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn--ghost { background: transparent; }
.btn--danger { background: transparent; border-color: rgba(239, 75, 75, .5); color: #ff8c8c; }
.btn--danger:hover { background: rgba(239, 75, 75, .12); color: #ffb0b0; border-color: var(--off); }
.btn--lg { font-size: 1.05rem; padding: 1em 1.6em; }
.btn--sm { font-size: .85rem; padding: .6em 1em; }
.btn--block { width: 100%; }

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 16, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--pixel); font-size: 1.45rem; }
.brand:hover { color: var(--text); }
.brand b { color: var(--core); font-weight: 700; }
.brand small { font-family: var(--font); font-size: .75rem; color: var(--muted); margin-left: 6px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { color: var(--muted); padding: .55em .9em; border-radius: 8px; font-weight: 500; transition: color .15s, background .15s; }
.nav__links a:not(.btn):hover, .nav__links a.active:not(.btn) { color: var(--text); background: var(--surface-2); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 20px 20px; gap: 2px;
    transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.open .nav__links { transform: none; visibility: visible; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links a:not(.btn) { padding: .9em 1em; }
  .nav__cta { margin: 10px 0 0; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); overflow: hidden; text-align: center; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 35% at 50% 40%, rgba(255, 138, 31, .28), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(255, 90, 20, .10), transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .65; transform: scale(1.05); } }
.hero__inner { position: relative; }
.hero__title {
  font-size: clamp(3.6rem, 13vw, 8.5rem); margin: 0 0 .15em; letter-spacing: .02em;
  text-shadow: 0 6px 0 rgba(0, 0, 0, .45);
}
.hero__title span {
  background: linear-gradient(180deg, var(--core-3) 10%, var(--core) 55%, var(--core-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 138, 31, .45));
  text-shadow: none;
}
.hero__text { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #c3cad4; max-width: 620px; margin: 0 auto 2em; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ip-pill {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: 999px; font: inherit; transition: border-color .15s;
}
.ip-pill:hover { border-color: var(--core); }
.ip-pill__hint { font-size: .75rem; color: var(--muted); border-left: 1px solid var(--border); padding-left: 10px; }
.ip-pill.copied .ip-pill__hint { color: var(--on); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
.dot--on { background: var(--on); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s infinite; }
.dot--off { background: var(--off); }
.dot--lg { width: 16px; height: 16px; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---- Marquee ---- */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--pixel); font-size: 1.15rem; color: var(--muted); padding: 0 26px; white-space: nowrap; }
.marquee__track span::after { content: '◆'; color: var(--core); font-size: .7em; margin-left: 52px; position: relative; top: -2px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track, .hero__glow, .dot--on { animation: none; } }

/* ---- Sections ---- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--tight { padding: 28px 0 56px; }
.section__head { margin-bottom: 28px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section__head p { margin: 0; }
.link-arrow { font-weight: 600; }
.page-head { padding: clamp(48px, 8vw, 88px) 0 24px; position: relative; }
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 15% 0%, rgba(255, 138, 31, .12), transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head p.muted { max-width: 680px; font-size: 1.05rem; }
.page-head--compact { padding-bottom: 8px; }
.page-head.center p.muted { margin-inline: auto; }

/* ---- Counters ---- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.counters--6 { grid-template-columns: repeat(6, 1fr); }
.counter {
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.counter::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--core), transparent); opacity: .7; }
.counter__value { font-family: var(--pixel); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.counter__label { color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .counters--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .counters { grid-template-columns: repeat(2, 1fr); } }

.online-strip { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.online-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 5px; color: var(--text); font-size: .875rem; }
.chip img { border-radius: 4px; image-rendering: pixelated; }
.chip:hover { border-color: var(--on); color: var(--text); }

.fact { margin-top: 14px; background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.fact b { color: var(--core-2); font-family: var(--pixel); }

/* ---- Player cards ---- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.pcard.is-online { border-color: rgba(61, 220, 132, .45); }
.pcard__skin {
  display: flex; justify-content: center; align-items: flex-end; height: 190px; padding-top: 14px;
  background: radial-gradient(ellipse 60% 55% at 50% 70%, rgba(255, 138, 31, .16), transparent 70%), var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.pcard.is-online .pcard__skin { background: radial-gradient(ellipse 60% 55% at 50% 70%, rgba(61, 220, 132, .16), transparent 70%), var(--bg-2); }
.pcard__skin img { height: 170px; width: auto; image-rendering: pixelated; transition: transform .2s; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.pcard:hover .pcard__skin img { transform: scale(1.05) rotate(-2deg); }
.pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1; }
.pcard__body h3 { margin: 0; font-size: 1.15rem; word-break: break-all; }
.pcard__body h3 a { color: var(--text); }
.pcard__body h3 a:hover { color: var(--core-2); }
.pcard__meta { margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }
.badge--online { background: rgba(61, 220, 132, .12); border-color: rgba(61, 220, 132, .45); color: var(--on); }
.badge--online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--on); }
.badge--pending { color: var(--warn); border-color: rgba(242, 201, 76, .5); background: rgba(242, 201, 76, .1); }
.badge--accepted { color: var(--on); border-color: rgba(61, 220, 132, .45); background: rgba(61, 220, 132, .1); }
.badge--rejected { color: #ff8c8c; border-color: rgba(239, 75, 75, .45); background: rgba(239, 75, 75, .1); }
.badge--warn { color: var(--warn); border-color: rgba(242, 201, 76, .5); background: rgba(242, 201, 76, .1); }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--core-2); background: rgba(255, 138, 31, .12); border: 1px solid rgba(255, 138, 31, .35); padding: 2px 8px; border-radius: 6px; vertical-align: middle; }

/* ---- Socials ---- */
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials--small { margin-top: auto; padding-top: 6px; gap: 6px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 9px 13px; font-weight: 500; font-size: .9rem;
  transition: background .15s, border-color .15s, transform .12s;
}
.social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.socials--small .social { padding: 7px; border-radius: 8px; }
.socials--small .social svg { width: 15px; height: 15px; }
.social:hover { transform: translateY(-1px); color: #fff; }
.social--instagram:hover { background: #E4405F; border-color: #E4405F; }
.social--tiktok:hover { background: #000; border-color: #25F4EE; }
.social--twitch:hover { background: #9146FF; border-color: #9146FF; }
.social--youtube:hover { background: #FF0000; border-color: #FF0000; }
.social--spotify:hover { background: #1DB954; border-color: #1DB954; color: #000; }
.social--soundcloud:hover { background: #FF5500; border-color: #FF5500; }
.social--x:hover { background: #000; border-color: #fff; }
.social--discord { margin-top: 10px; }
.social--discord:hover { background: #5865F2; border-color: #5865F2; }

/* ---- Leaderboards ---- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.boards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .boards--3 { grid-template-columns: 1fr; } }
.board { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.board header { margin-bottom: 12px; }
.board header h3 { margin: 0 0 2px; color: var(--core-2); }
.board header p { margin: 0; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 26px 24px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: .95rem; }
.board li:first-child { border-top: 0; }
.board li img { border-radius: 4px; image-rendering: pixelated; }
.board li a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li a:hover { color: var(--core-2); }
.board .rank { font-family: var(--pixel); color: var(--muted); text-align: center; }
.board .top1 .rank { color: #ffd54a; } .board .top2 .rank { color: #cfd8e3; } .board .top3 .rank { color: #e0955a; }
.board .val { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .875rem; }

/* ---- CTA ---- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(255, 138, 31, .4); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 48px);
  background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(255, 138, 31, .2), transparent 70%), var(--surface);
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: #c3cad4; max-width: 560px; }

.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border-2); border-radius: var(--radius); background: var(--bg-2); }
.empty p:first-child { font-family: var(--pixel); font-size: 1.3rem; }

/* ---- Filters ---- */
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.search { position: relative; flex: 1; max-width: 360px; min-width: 220px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: var(--muted); }
.search input { padding-left: 40px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); position: relative; transition: background .15s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle input:checked + span { background: rgba(61, 220, 132, .2); border-color: var(--on); }
.toggle input:checked + span::after { transform: translateX(18px); background: var(--on); }
.toggle input:focus-visible + span { outline: 2px solid var(--core-2); outline-offset: 2px; }

/* ---- Forms ---- */
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: .75em .9em; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px rgba(255, 138, 31, .18); }
input[type=file] { padding: .55em; }
textarea { resize: vertical; min-height: 90px; }
.form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0 0 18px; background: var(--surface); }
.form legend { font-family: var(--pixel); font-size: 1.15rem; padding: 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.field label svg { width: 15px; height: 15px; fill: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: .82rem; margin: 0; }
.req { color: var(--core); }
.mc-input { display: flex; gap: 10px; align-items: center; }
.mc-input img { width: 46px; height: 46px; border-radius: 8px; image-rendering: pixelated; background: var(--bg-2); border: 1px solid var(--border-2); flex: none; }
.socials-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .socials-form { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--core); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form--compact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.form--compact .field { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1; min-width: 160px; padding: .55em .8em; }

.notice { border: 1px solid var(--border-2); background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.notice h2 { font-size: 1.4rem; }
.notice p:last-child, .notice ul { margin-bottom: 0; }
.notice ul { padding-left: 18px; }
.notice--ok { border-color: rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .08); }
.notice--err { border-color: rgba(239, 75, 75, .5); background: rgba(239, 75, 75, .08); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* ---- Profil ---- */
.profile { padding: clamp(40px, 6vw, 70px) 0 20px; overflow: hidden; }
.profile__inner { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.profile__skin { position: relative; display: flex; justify-content: center; }
.profile__skin img { position: relative; height: 380px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); }
.profile__glow { position: absolute; inset: 10% -10%; background: radial-gradient(ellipse at center, rgba(255, 138, 31, .35), transparent 65%); filter: blur(10px); }
.profile__info h1 { word-break: break-all; margin-bottom: .25em; }
.profile__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.link-back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.profile__quick { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.profile__quick div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 18px; display: flex; flex-direction: column; min-width: 96px; flex: 1; max-width: 180px; }
.profile__quick b { font-family: var(--pixel); font-size: 1.6rem; line-height: 1.1; }
.profile__quick span { color: var(--muted); font-size: .8rem; }
@media (max-width: 720px) {
  .profile__inner { grid-template-columns: 1fr; text-align: center; }
  .profile__skin img { height: 280px; }
  .profile__badges, .profile__quick, .profile .socials { justify-content: center; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; margin-bottom: 28px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.tile__label { color: var(--muted); font-size: .85rem; }
.tile__value { font-family: var(--pixel); font-size: 1.5rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile__rank { position: absolute; top: 12px; right: 14px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.tile__rank.is-top { color: var(--core-2); }
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 6px 0; font-size: .9rem; }
.list__val { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 5px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--core-dark), var(--core-2)); border-radius: 3px; }

/* ---- Stats: Server ---- */
.server-card { display: grid; grid-template-columns: 260px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.server-card__status { display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--border); padding-right: 20px; }
.server-card__status b { display: block; font-family: var(--pixel); font-size: 1.6rem; }
.server-card__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin: 0; }
.server-card__facts dt { color: var(--muted); font-size: .8rem; }
.server-card__facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .server-card { grid-template-columns: 1fr; } .server-card__status { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 16px; } }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-card__head h3 { margin: 0; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button.active { background: var(--surface-2); color: var(--text); }
.chart { position: relative; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: var(--border); stroke-dasharray: 2 4; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: var(--core); stroke-width: 2; stroke-linejoin: round; }
.chart .hover-line { stroke: var(--muted); stroke-width: 1; }
.chart .hover-dot { fill: var(--core); stroke: var(--bg); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 10px; font-size: .8rem; white-space: nowrap; transform: translate(-50%, -110%); }
.chart-tip b { font-family: var(--pixel); font-size: 1rem; color: var(--core-2); }

/* ---- World ---- */
.world { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.world__map { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); min-height: 520px; height: 72vh; }
.world__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.world__full { position: absolute; top: 12px; right: 12px; background: rgba(11, 13, 16, .8); }
.world__side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; max-height: 72vh; overflow: auto; }
.world__side h2 { display: flex; align-items: center; gap: 8px; }
.world__players { list-style: none; padding: 0; margin: 0 0 14px; }
.world__players li button {
  width: 100%; display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: center; text-align: left;
  background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px; color: var(--text); font: inherit; cursor: pointer;
}
.world__players li button:hover, .world__players li button.active { background: var(--surface-2); border-color: var(--border-2); }
.world__players img { grid-row: span 2; width: 32px; height: 32px; border-radius: 5px; image-rendering: pixelated; }
.world__players .coords { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.dim { font-size: .68rem; padding: 1px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.dim--overworld { background: rgba(61, 220, 132, .15); color: var(--on); }
.dim--nether { background: rgba(239, 75, 75, .15); color: #ff8c8c; }
.dim--end { background: rgba(180, 130, 255, .15); color: #c9a5ff; }
.count { display: inline-block; min-width: 22px; text-align: center; font-size: .75rem; font-family: var(--font); font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.count--hot { background: var(--core); color: #1a0d02; }
.map-offline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--bg-2); }
@media (max-width: 900px) {
  .world { grid-template-columns: 1fr; }
  .world__map { height: 60vh; min-height: 380px; }
  .world__side { max-height: none; }
}

/* ---- Downloads ---- */
.dl-card { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; background: radial-gradient(ellipse 50% 100% at 0% 0%, rgba(255, 138, 31, .14), transparent 70%), var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 38px); }
.dl-card__icon { width: 120px; height: 120px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--border-2); display: grid; place-items: center; }
.dl-contents { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.dl-contents li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); flex-wrap: wrap; }
.dl-contents b { font-family: var(--mono); font-size: .9rem; color: var(--core-2); }
.dl-contents span { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .dl-card { grid-template-columns: 1fr; } .dl-card__icon { width: 80px; height: 80px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step > span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 138, 31, .14); color: var(--core-2); font-family: var(--pixel); font-size: 1.2rem; margin-bottom: 12px; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.copy-inline { background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); padding: 2px 8px; border-radius: 6px; cursor: pointer; font-size: .85rem; }
.copy-inline.copied { border-color: var(--on); color: var(--on); }

.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }
.prose p { color: #c3cad4; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 26px; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.footer__inner .brand { margin-bottom: 8px; }
.footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; align-content: start; }
.footer__links a { color: var(--muted); font-size: .92rem; }
.footer__links a:hover { color: var(--text); }

/* ---- Admin ---- */
.admin { padding-top: 26px; padding-bottom: 60px; }
.admin-status { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-left: auto; margin-right: 12px; }
@media (max-width: 640px) { .admin-status { display: none; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.tabs a.active { color: var(--text); border-bottom-color: var(--core); }
.apps { display: grid; gap: 12px; }
.app { display: grid; grid-template-columns: 80px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.app--pending { border-color: rgba(242, 201, 76, .4); }
.app--rejected, .app--accepted { opacity: .75; }
.app__skin { width: 80px; height: 160px; object-fit: contain; image-rendering: pixelated; }
.app__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.app__head h3 { margin: 0; }
.app blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--core); background: var(--bg-2); border-radius: 0 8px 8px 0; color: #c3cad4; white-space: pre-wrap; }
.app__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
@media (max-width: 560px) { .app { grid-template-columns: 1fr; } .app__skin { display: none; } }
.admin-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-row .card { padding: 12px; }
.admin-row .inline-form { flex: 1; }
.admin-players { display: grid; gap: 8px; }
.admin-player { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 16px; }
.admin-player summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; flex-wrap: wrap; }
.admin-player summary img { border-radius: 4px; image-rendering: pixelated; }
.admin-player[open] { padding-bottom: 16px; }
.admin-player .socials-form { margin-bottom: 4px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.admin-grid .card h2 { margin-bottom: .6em; }
.admin-login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.admin-login .card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 4px; }
.admin-login .brand { margin-bottom: 14px; }
progress { width: 100%; accent-color: var(--core); }
