/* MM Community - hjemmeside. Farver fra logoet: neon lilla -> cyan paa natteblaa. */

@font-face { font-family: 'Pixelify'; src: url('../fonts/pixelify.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #080a1c;
  --bg-2: #0e1030;
  --card: rgba(22, 24, 64, 0.72);
  --card-solid: #15173f;
  --line: rgba(150, 130, 255, 0.22);
  --line-strong: rgba(170, 140, 255, 0.5);
  --text: #eceeff;
  --muted: #bcc0e6;
  --faint: #9095c4;
  --purple: #b35cff;
  --violet: #7c5cff;
  --cyan: #2fd6ff;
  --gold: #ffbd3a;
  --green: #4ade80;
  --red: #fb7185;
  --yellow: #facc15;
  --grad: linear-gradient(90deg, var(--purple), var(--cyan));
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --wrap: 1180px;
  --pixel: 'Outfit', 'Inter', system-ui, sans-serif; /* overskrifter (hed foer Pixelify - for svaer at laese) */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 17px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(179, 92, 255, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 100% 10%, rgba(47, 214, 255, 0.12), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.2px; }
h3 { font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 10, 28, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--pixel); font-size: 1.3rem; font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; filter: drop-shadow(0 0 8px rgba(179, 92, 255, .6)); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(124, 92, 255, 0.16); text-decoration: none; }
.nav a.shop-link { color: var(--gold); }
.account { display: flex; align-items: center; gap: 10px; }
.account img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--violet); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 40px; font-size: 1.3rem; cursor: pointer; }

@media (max-width: 1040px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .site-header .account { display: none; }
}

/* ---------- knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 700 1rem 'Inter', sans-serif; cursor: pointer; color: #fff; text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); box-shadow: 0 6px 24px rgba(124, 92, 255, 0.45); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(47, 214, 255, 0.45); }
.btn-gold { background: linear-gradient(90deg, #ff9f1c, var(--gold)); color: #231400; box-shadow: 0 6px 24px rgba(255, 189, 58, 0.35); }
.btn-discord { background: #5865f2; box-shadow: 0 6px 24px rgba(88, 101, 242, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-small { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-img { width: 100%; height: auto; min-height: 230px; object-fit: cover; object-position: center; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1983 / 500; min-height: 230px; background: linear-gradient(180deg, transparent 82%, var(--bg)); pointer-events: none; }
.hero-bar {
  position: relative; margin-top: -26px; z-index: 2; padding: 0 16px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px;
}
.ip-box {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px;
  background: rgba(8, 10, 28, 0.82); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.35); backdrop-filter: blur(8px);
}
.ip-box .ip { font: 700 1.15rem var(--pixel); letter-spacing: .5px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(8, 10, 28, 0.82); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; backdrop-filter: blur(8px);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.dot.off { background: var(--red); }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--green); } }

/* ---------- tiles (fra billedet) ---------- */
.tiles { display: flex; gap: 14px; margin: 28px auto 10px; }
.tile {
  position: relative; display: block; border-radius: 12px; overflow: hidden; line-height: 0;
  transition: transform .2s, filter .2s, box-shadow .2s; outline-offset: 3px;
}
.tile img { width: 100%; height: auto; }
.tile:hover { transform: translateY(-5px) scale(1.02); filter: brightness(1.15) saturate(1.1); box-shadow: 0 12px 36px rgba(124, 92, 255, 0.5); }
.tile .soon {
  position: absolute; top: 10px; right: 10px; line-height: 1; padding: 6px 9px; border-radius: 8px;
  background: rgba(8, 10, 28, .85); border: 1px solid var(--line-strong); font: 700 .75rem 'Inter'; color: var(--cyan);
}
@media (max-width: 860px) {
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tile img { aspect-ratio: 1.3; object-fit: fill; }
}
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- sektioner ---------- */
section { padding: 64px 0 8px; scroll-margin-top: 70px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.section-head p { margin: 0; max-width: 620px; }
.kicker { font: 700 .8rem 'Inter'; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* kom i gang */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--grad); font: 800 1.05rem 'Inter'; color: #fff;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }
code, .kbd { font-family: ui-monospace, Consolas, monospace; background: rgba(124, 92, 255, .18); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; color: var(--text); font-size: .92em; }

/* servere */
.server { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.server::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent, var(--grad)); }
.server-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.server h3 { margin: 0; font-size: 1.35rem; }
.server .icon { font-size: 1.6rem; line-height: 1; }
.server p { color: var(--muted); margin: 0; flex: 1; }
.server .count { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.server .join { font-size: .85rem; color: var(--faint); }
.server .join code { font-size: .85rem; }

/* graf */
.chart-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.bignum { font: 800 3rem 'Inter'; line-height: 1; }
.statnum { font: 800 1.4rem 'Inter'; }
.stat-list { display: grid; gap: 14px; }
.stat-list .label { font-size: .85rem; color: var(--muted); }
#chart { width: 100%; height: 170px; }
@media (max-width: 700px) { .chart-card { grid-template-columns: 1fr; } }

/* changelog + kommer snart */
.log-entry + .log-entry { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.log-meta { font-size: .85rem; color: var(--faint); margin-bottom: 6px; }
.log-entry h3 { font-size: 1.1rem; margin-bottom: 8px; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.log-list li { display: flex; gap: 10px; align-items: baseline; }
.tag { flex: none; font: 700 .7rem 'Inter'; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px; }
.tag.add { background: rgba(74, 222, 128, .15); color: var(--green); }
.tag.change { background: rgba(250, 204, 21, .15); color: var(--yellow); }
.tag.remove { background: rgba(251, 113, 133, .15); color: var(--red); }
.log-list li.head { font-weight: 700; margin-top: 6px; }
.dev-item + .dev-item { margin-top: 16px; }
.dev-row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 6px; background: var(--grad); box-shadow: 0 0 12px rgba(47, 214, 255, .5); }

/* staff + top */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.person { text-align: center; padding: 18px 12px; }
.person img { width: 72px; height: 72px; margin: 0 auto 10px; image-rendering: pixelated; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.person .name { font-weight: 700; word-break: break-all; }
.rank-badge { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid currentColor; }
.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.toplist li:last-child { border-bottom: 0; }
.toplist .pos { width: 30px; font: 800 1.05rem 'Inter'; color: var(--faint); text-align: center; }
.toplist li:nth-child(1) .pos { color: var(--gold); }
.toplist li:nth-child(2) .pos { color: #d7dbe8; }
.toplist li:nth-child(3) .pos { color: #e3915a; }
.toplist img { width: 30px; height: 30px; border-radius: 6px; image-rendering: pixelated; }
.toplist .time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* discord-banner */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 34px; border-radius: 20px; border: 1px solid rgba(88, 101, 242, .5);
  background: linear-gradient(120deg, rgba(88, 101, 242, .35), rgba(179, 92, 255, .25) 60%, rgba(47, 214, 255, .2));
  box-shadow: 0 0 60px rgba(88, 101, 242, .25);
}
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; color: var(--text); opacity: .85; }

/* regler */
.rules { counter-reset: rule; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { counter-increment: rule; display: flex; gap: 14px; align-items: flex-start; }
.rules li::before {
  content: counter(rule); flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(124, 92, 255, .2); border: 1px solid var(--line-strong); font: 800 .85rem 'Inter';
}
.note { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--cyan); background: rgba(47, 214, 255, .07); border-radius: 0 8px 8px 0; color: var(--muted); font-size: .92rem; }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .shop-layout { grid-template-columns: 1fr; } }
.side { position: sticky; top: 86px; display: grid; gap: 18px; }
@media (max-width: 980px) { .side { position: static; order: -1; } }
.account-card h3 { display: flex; align-items: center; gap: 10px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.acc-row + .acc-row { border-top: 1px solid var(--line); }
.acc-row img { width: 40px; height: 40px; border-radius: 10px; image-rendering: pixelated; }
.acc-row .who { font-weight: 700; }
.acc-row .sub { font-size: .85rem; color: var(--muted); }
.check { margin-left: auto; color: var(--green); font-weight: 700; }
.code-form { display: flex; gap: 8px; margin-top: 10px; }
.code-form input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .3); color: var(--text); font: 700 1.2rem ui-monospace, Consolas, monospace; letter-spacing: 4px; text-align: center;
}
.code-form input:focus { outline: 2px solid var(--violet); }
.msg { margin-top: 10px; font-size: .9rem; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-tabs button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  color: var(--muted); font: 600 .95rem 'Inter'; cursor: pointer;
}
.cat-tabs button.active { background: var(--grad); color: #fff; border-color: transparent; }
.cat-desc { color: var(--muted); margin: -6px 0 18px; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pkg { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .2s, border-color .2s; }
.pkg:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pkg-img { aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 60%, rgba(179, 92, 255, .35), transparent 65%), var(--bg-2); display: grid; place-items: center; }
.pkg-img img { max-height: 78%; max-width: 78%; object-fit: contain; image-rendering: auto; }
.pkg-img .emoji { font-size: 3.6rem; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.pkg-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg h3 { margin: 0; }
.pkg-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.pkg-desc ul { margin: 0; padding-left: 18px; }
.pkg-desc p { margin: 0 0 .4em; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 800 1.3rem 'Inter'; }
.price s { font-size: .9rem; color: var(--faint); margin-right: 6px; }
.badge-sub { font-size: .75rem; color: var(--cyan); }

.basket-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.basket-list li { display: flex; align-items: center; gap: 10px; }
.basket-list .n { flex: 1; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 28px; background: rgba(255, 255, 255, .05); border: 0; color: var(--text); cursor: pointer; font-size: 1rem; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.demo-banner { padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--gold); background: rgba(255, 189, 58, .08); color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.small { font-size: .82rem; color: var(--faint); }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; padding: 36px 0; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--faint); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 100;
  padding: 12px 20px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); font-weight: 600; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.page-title { padding: 56px 0 10px; }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .2em; }
.skeleton { color: var(--faint); font-style: italic; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

@media (max-width: 420px) {
  .ip-box { padding-left: 12px; gap: 8px; }
  .ip-box .ip { font-size: .95rem; }
  .hero-bar { padding: 0 10px; }
}

/* ---------- ansoegninger ---------- */
.pos .btn { align-self: flex-start; margin-top: 4px; }
.req { list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); display: grid; gap: 3px; }
.req li.ok { color: var(--green); }
.req li.no { color: var(--red); }
.app-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; }
.field input[type=text], .field input[type=url], .field input[type=number], .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .3); color: var(--text); font: 400 1rem 'Inter', sans-serif;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select option { background: var(--card-solid); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--violet); border-color: transparent; }
.counter { text-align: right; }
.choice { display: flex; gap: 10px; }
.choice label {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-weight: 600;
}
.choice label:has(input:checked) { background: rgba(124, 92, 255, .25); border-color: var(--violet); }
.confirm { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.confirm input { margin-top: 4px; }
input[type=radio], input[type=checkbox] { accent-color: var(--violet); }.grid-pos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- min profil ---------- */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile-head > img { width: 96px; height: 96px; image-rendering: pixelated; border-radius: 12px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.ph-main { flex: 1; min-width: 200px; }
.ph-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-width: 130px; }
.stat-tile .label { font-size: .8rem; color: var(--muted); }
.stat-tile .v { font: 800 1.35rem 'Inter'; line-height: 1.3; }
.server-meta { margin: -8px 0 12px; }
.stat-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 28px; }
.stat-rows div, .game-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }

.inv-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.inv-top { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.armor { display: grid; gap: 3px; }
.inv-top .body { height: 150px; width: auto; image-rendering: pixelated; }
.offhand { display: grid; gap: 4px; justify-items: center; }
.vitals { margin-left: auto; display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.mc-grid {
  --s: min(44px, calc((100vw - 90px) / 9));
  display: grid; grid-template-columns: repeat(9, var(--s)); gap: 3px;
  padding: 6px; background: #c6c6c6; border: 3px solid; border-color: #fff #555 #555 #fff; border-radius: 4px; width: max-content; max-width: 100%;
}
.mc-grid.hotbar { margin-top: 8px; }
.slot {
  --s: min(44px, calc((100vw - 90px) / 9));
  position: relative; width: var(--s); height: var(--s); padding: 0; display: grid; place-items: center;
  background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; border-radius: 0;
}
.armor .slot, .offhand .slot { background: #8b8b8b; }
.slot.filled { cursor: pointer; }
.slot.filled:hover, .slot.filled:focus-visible { background: #a8a8a8; outline: none; }
.slot img { width: 78%; height: 78%; object-fit: cover; object-position: top; image-rendering: pixelated; aspect-ratio: 1; }
.slot .noicon { font: 800 .7rem 'Inter'; color: #fff; text-shadow: 1px 1px #3f3f3f; text-transform: uppercase; }
.slot .cnt { position: absolute; right: 2px; bottom: 0; font: 800 .8rem 'Inter'; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.slot .dur { position: absolute; left: 12%; right: 12%; bottom: 3px; height: 3px; background: #000; }
.slot .dur span { display: block; height: 100%; }
.slot.glint::after {
  content: ''; position: absolute; inset: 2px; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(190, 120, 255, .55) 45%, transparent 60%) 0 0 / 250% 250%;
  animation: glint 3s linear infinite;
}
@keyframes glint { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.mc-tip {
  position: fixed; z-index: 200; max-width: 320px; padding: 6px 9px; pointer-events: none;
  background: rgba(16, 0, 16, .94); border: 2px solid #2a0a5e; outline: 1px solid rgba(16, 0, 16, .94);
  font: 600 .9rem/1.45 'Inter', sans-serif; color: #fff; text-shadow: 1px 1px #3f3f3f;
}
.mc-tip .tip-name { font-weight: 800; }

/* ---------- support + staff-panel ---------- */
.status-badge { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.chat { display: grid; gap: 12px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.bubble.me { justify-self: end; background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .4); }
.bubble.staff:not(.me) { border-color: rgba(47, 214, 255, .45); }
.bubble.intern { background: rgba(251, 113, 133, .08); border-style: dashed; border-color: rgba(251, 113, 133, .5); }
.bubble-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.bubble-head .small { margin-left: auto; }
.bubble-text { overflow-wrap: anywhere; }
.reply-form { display: flex; gap: 10px; margin-top: 16px; align-items: flex-end; }
.reply-form textarea, .app-form > textarea {
  flex: 1; width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .3); color: var(--text); font: 400 1rem 'Inter', sans-serif; resize: vertical;
}
.staff-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; border-bottom: 1px solid var(--line); }
.staff-tabs a { padding: 10px 16px; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.staff-tabs a:hover { color: var(--text); text-decoration: none; }
.staff-tabs a.active { color: var(--text); border-bottom-color: var(--cyan); }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; }
.row-list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text); transition: border-color .15s; }
.row:hover { border-color: var(--line-strong); text-decoration: none; }
.row img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; flex: none; }
.row-main { flex: 1; min-width: 0; }
.link-tile { color: var(--text); }
.link-tile:hover { border-color: var(--line-strong); text-decoration: none; }
.qa { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa .q { font-weight: 700; color: var(--muted); font-size: .92rem; margin-bottom: 4px; }
.qa .a { overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}
