:root {
    --bg: #0f0f12;
    --secondary: #151519;
    --card: #19191f;
    --border: #292930;
    --primary: #9146ff;
    --purple: #c084fc;
    --text: #fff;
    --text-secondary: #b8b8b8;
    --muted: #777780;
    --gradient: linear-gradient(90deg, #9146ff, #c084fc);
    --container: 1180px;
    --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: rgba(145, 70, 255, .38); color: #fff; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: #fff; color: #111; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); background: linear-gradient(to bottom, rgba(15,15,18,.78), transparent); pointer-events: none; transition: background .25s; }
.site-header.scrolled { background: linear-gradient(to bottom, rgba(15,15,18,.94), rgba(15,15,18,.25) 72%, transparent); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }
.brand { font-weight: 900; letter-spacing: -.02em; font-size: 1rem; }
.brand i, .gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 3px; padding: 5px; border: 1px solid rgba(41,41,48,.88); border-radius: 16px; background: rgba(21,21,25,.78); box-shadow: 0 12px 42px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(16px); pointer-events: auto; }
.site-nav > a { padding: 8px 13px; border-radius: 11px; color: var(--text-secondary); font-size: .82rem; font-weight: 650; transition: color .25s, background .25s; }
.site-nav > a:hover, .site-nav > a:focus-visible { color: #fff; background: rgba(255,255,255,.045); }
.nav-unavailable { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--muted); font-size: .78rem; font-weight: 600; cursor: not-allowed; }
.nav-unavailable small { padding: 2px 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--purple); font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: rgba(25,25,31,.92); padding: 10px; cursor: pointer; pointer-events: auto; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }

.button { display: inline-flex; min-height: 50px; padding: 0 22px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; background: var(--gradient); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 10px 32px rgba(145, 70, 255, .16); transition: transform .25s, box-shadow .25s, filter .25s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 36px rgba(145, 70, 255, .24); filter: brightness(1.05); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.button:disabled { opacity: .62; cursor: wait; transform: none; }
.button-small { min-height: 38px; padding-inline: 16px; border-radius: 11px; font-size: .8rem; }
.button-ghost { background: rgba(25, 25, 31, .75); border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.button-ghost:hover { border-color: rgba(192, 132, 252, .58); box-shadow: none; }
.button-disabled { color: var(--muted); border-color: var(--border); background: rgba(25,25,31,.6); box-shadow: none; cursor: not-allowed; }
.button-disabled:hover { transform: none; border-color: var(--border); box-shadow: none; filter: none; }

.hero { position: relative; min-height: 820px; padding-top: var(--header-height); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 55% 45%; align-items: center; min-height: 720px; }
.hero-copy { position: relative; z-index: 3; padding: 76px 0 60px; }
.hero-glow { position: absolute; z-index: -2; width: 780px; height: 780px; right: -190px; top: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(145,70,255,.12), rgba(15,15,18,0) 68%); filter: blur(20px); }
.voxel-scene { position: absolute; z-index: 1; inset: var(--header-height) 0 0; pointer-events: none; opacity: 0; mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 76%, transparent 100%); transition: opacity .8s ease; }
.voxel-scene.is-ready { opacity: .92; }
.voxel-scene canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.eyebrow, .kicker { color: var(--purple); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(192, 132, 252, .22); border-radius: 999px; background: rgba(145, 70, 255, .07); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 5px rgba(192, 132, 252, .09); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 25px 0 24px; max-width: 760px; font-size: clamp(3.3rem, 6vw, 5.7rem); line-height: .99; letter-spacing: -.065em; }
.hero-lead { max-width: 590px; color: var(--text-secondary); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.server-card { display: inline-grid; grid-template-columns: minmax(190px, 1fr) 110px; gap: 1px; margin-top: 36px; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--border); box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.server-card > div { padding: 14px 18px; background: rgba(21, 21, 25, .9); }
.server-card span { display: block; margin-bottom: 2px; color: var(--muted); font-size: .62rem; letter-spacing: .14em; font-weight: 900; }
.server-card strong { font-size: .9rem; letter-spacing: -.01em; }

.section { padding: 112px 0; }
.section-heading { margin-bottom: 44px; }
.section-heading h2, .store-intro h2, .join-card h2 { margin: 10px 0 0; font-size: clamp(2.3rem, 4vw, 4.1rem); line-height: 1.08; letter-spacing: -.055em; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card, .voice-card, .social-card { border: 1px solid var(--border); background: var(--card); border-radius: 17px; transition: transform .3s, border-color .3s, background .3s; }
.feature-card { min-height: 235px; padding: 27px; }
.feature-card:hover, .voice-card:hover, .social-card:hover { transform: translateY(-3px); border-color: rgba(192, 132, 252, .55); background: #1b1b22; }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 32px; border: 1px solid rgba(192,132,252,.22); border-radius: 13px; background: rgba(145,70,255,.08); color: var(--purple); font-size: 1.25rem; }
.feature-card h3, .voice-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature-card p, .voice-card p { margin-bottom: 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.65; }
.voice-card { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 22px 27px; }
.voice-card .feature-icon { flex: 0 0 auto; margin: 0; }
.voice-card h3 { margin: 0 0 2px; }
.voice-line { margin-left: auto; width: 130px; height: 34px; background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(192,132,252,.45) 7px 10px, transparent 10px 16px); mask-image: linear-gradient(0deg, transparent, #000 45%, transparent); opacity: .55; }

.store-intro { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 48px; }
.store-intro > div:first-child { max-width: 650px; }
.store-intro p { max-width: 560px; margin: 20px 0 0; color: var(--text-secondary); }
.no-p2w { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--secondary); }
.no-p2w > span { grid-row: 1 / 3; align-self: center; color: var(--purple); font-size: 1.4rem; }
.no-p2w strong { font-size: .9rem; }
.no-p2w small { color: var(--muted); }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: stretch; }
.product-card { position: relative; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.product-card-content { display: flex; flex: 1; flex-direction: column; }
.product-unavailable { overflow: hidden; border-color: rgba(41,41,48,.72); cursor: not-allowed; }
.product-unavailable .product-card-content { filter: blur(3px); opacity: .34; user-select: none; pointer-events: none; }
.product-unavailable::after { content: ""; position: absolute; inset: 0; background: rgba(15,15,18,.18); pointer-events: none; }
.development-label { position: absolute; z-index: 2; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border: 1px solid rgba(192,132,252,.34); border-radius: 999px; background: rgba(21,21,25,.92); color: var(--purple); box-shadow: 0 14px 42px rgba(0,0,0,.35); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transform: translate(-50%, -50%); white-space: nowrap; }
.product-disabled-button { cursor: not-allowed; box-shadow: none; }
.product-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.product-top h3 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.price { text-align: right; }
.price strong { display: block; font-size: 1.65rem; line-height: 1; }
.price span { color: var(--muted); font-size: .78rem; }
.product-description { min-height: 52px; color: var(--text-secondary); font-size: .92rem; }
.feature-list { display: grid; gap: 11px; margin: 18px 0 34px; padding: 23px 0 0; border-top: 1px solid var(--border); list-style: none; }
.feature-list li { display: flex; gap: 10px; color: #d5d5d8; font-size: .89rem; }
.feature-list li span { color: var(--purple); font-weight: 900; }
.product-card .button { width: 100%; margin-top: auto; }

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.social-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px; }
.social-card > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; color: var(--purple); font-size: 1rem; font-weight: 900; }
.social-card div { min-width: 0; }
.social-card small, .social-card strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.social-card small { color: var(--muted); }
.social-card strong { font-size: .88rem; white-space: nowrap; }
.social-card b { margin-left: auto; color: var(--muted); font-weight: 400; }
.join-section { padding-top: 62px; }
.join-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 55px; padding: 58px; border: 1px solid rgba(192,132,252,.25); border-radius: 18px; background: radial-gradient(circle at 82% 20%, rgba(145,70,255,.13), transparent 39%), var(--secondary); }
.join-card::after { content: "✦"; position: absolute; right: 46px; top: -48px; font-size: 11rem; color: rgba(192,132,252,.035); }
.join-card p { max-width: 450px; color: var(--text-secondary); }
.join-ip { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.join-ip small { color: var(--muted); font-weight: 800; letter-spacing: .13em; }
.join-ip strong { margin: 4px 0 18px; font-size: clamp(1.4rem, 2.7vw, 2.15rem); letter-spacing: -.04em; }
.join-links { grid-column: 1 / -1; display: flex; gap: 25px; padding-top: 22px; border-top: 1px solid var(--border); }
.join-links a { color: var(--text-secondary); font-size: .85rem; font-weight: 700; transition: color .2s; }
.join-links a:hover { color: var(--purple); }
.link-unavailable, .footer-unavailable { color: var(--muted); font-size: .82rem; cursor: not-allowed; }
.join-links i { margin-left: 3px; font-size: .7rem; }

.footer { padding: 58px 0 28px; border-top: 1px solid var(--border); background: #0c0c0f; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid p { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.footer-contact { display: grid; gap: 5px; max-width: 440px; margin-top: 18px; color: var(--muted); font-size: .76rem; font-style: normal; line-height: 1.45; }
.footer-contact a { color: var(--text-secondary); transition: color .2s; }
.footer-contact a:hover { color: var(--purple); }
.footer-nav { display: flex; align-items: start; gap: 24px; color: var(--text-secondary); font-size: .84rem; font-weight: 600; }
.footer-nav a:hover { color: var(--purple); }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 38px; padding-top: 22px; border-top: 1px solid #202026; color: var(--muted); font-size: .76rem; }
.legal-links a { padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; transition: color .2s, border-color .2s, background .2s; }
.legal-links a:hover { color: var(--purple); border-color: var(--border); background: var(--secondary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid #202026; color: var(--muted); font-size: .75rem; }
.footer-bottom p { margin: 0; }
.minecraft-disclaimer { max-width: 720px; color: var(--text-secondary); font-weight: 750; letter-spacing: .025em; }

.legal-main { position: relative; min-height: 75vh; padding: calc(var(--header-height) + 76px) 0 120px; overflow: hidden; }
.legal-main::before { content: ""; position: absolute; width: 720px; height: 720px; top: -310px; left: 50%; border-radius: 50%; background: radial-gradient(circle, rgba(145,70,255,.105), transparent 68%); filter: blur(16px); transform: translateX(-50%); pointer-events: none; }
.legal-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 230px minmax(0, 820px); justify-content: center; gap: 28px; align-items: start; }
.legal-aside { position: sticky; top: calc(var(--header-height) + 34px); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 18px; color: var(--text-secondary); font-size: .78rem; font-weight: 700; transition: color .2s; }
.legal-back:hover { color: var(--purple); }
.legal-aside nav { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 15px; background: rgba(21,21,25,.72); }
.legal-aside nav a { padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: .78rem; font-weight: 650; transition: color .2s, background .2s; }
.legal-aside nav a:hover { color: var(--text-secondary); background: rgba(255,255,255,.035); }
.legal-aside nav a.active { color: #fff; background: linear-gradient(90deg, rgba(145,70,255,.18), rgba(192,132,252,.08)); box-shadow: inset 0 0 0 1px rgba(192,132,252,.12); }
.legal-document { min-width: 0; padding: 50px 54px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(25,25,31,.94), rgba(21,21,25,.92)); box-shadow: 0 26px 80px rgba(0,0,0,.24); }
.legal-heading { margin-bottom: 44px; padding-bottom: 35px; border-bottom: 1px solid var(--border); }
.legal-heading h1 { margin: 12px 0 12px; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.06em; }
.legal-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.legal-document section { padding: 0 0 30px; }
.legal-document section + section { padding-top: 30px; border-top: 1px solid rgba(41,41,48,.72); }
.legal-document h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.15rem; letter-spacing: -.02em; }
.legal-document h2::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 5px rgba(145,70,255,.08); }
.legal-document p, .legal-document li { color: var(--text-secondary); font-size: .91rem; line-height: 1.82; }
.legal-document p { margin-bottom: 14px; }
.legal-document ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 20px; }
.legal-document a { color: var(--purple); text-decoration: underline; text-decoration-color: rgba(192,132,252,.35); text-underline-offset: 3px; }
.legal-document a:hover { text-decoration-color: var(--purple); }

.payment-return-main { position: relative; display: grid; place-items: center; min-height: 78vh; padding: calc(var(--header-height) + 70px) 0 100px; overflow: hidden; }
.payment-return-main::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(145,70,255,.12), transparent 67%); filter: blur(18px); pointer-events: none; }
.payment-return-card { position: relative; width: min(calc(100% - 28px), 650px); padding: 56px; border: 1px solid var(--border); border-radius: 18px; background: rgba(25,25,31,.94); box-shadow: 0 28px 90px rgba(0,0,0,.34); text-align: center; }
.payment-return-card.success { border-color: rgba(192,132,252,.4); }
.payment-return-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; border: 1px solid rgba(192,132,252,.25); border-radius: 18px; background: rgba(145,70,255,.09); color: var(--purple); font-size: 1.7rem; }
.payment-return-card.fail .payment-return-icon { color: #c3a0aa; border-color: rgba(195,160,170,.2); background: rgba(195,160,170,.07); }
.payment-return-card h1 { margin: 10px 0 18px; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.04; }
.payment-return-card > p { max-width: 520px; margin: 0 auto; color: var(--text-secondary); }
.payment-order-id { margin: 28px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--secondary); }
.payment-order-id span, .payment-order-id strong { display: block; }
.payment-order-id span { color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .14em; }
.payment-order-id strong { margin-top: 3px; font-size: .82rem; word-break: break-all; }
.payment-return-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

.stats-main { min-height: 80vh; padding: calc(var(--header-height) + 78px) 0 120px; background: radial-gradient(circle at 50% -5%, rgba(145,70,255,.11), transparent 31%); }
.stats-hero { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-top: 36px; }
.stats-hero h1 { margin: 14px 0 22px; font-size: clamp(3.4rem, 7vw, 6.3rem); }
.stats-hero p { max-width: 620px; margin: 0; color: var(--text-secondary); }
.stats-live { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 10px; padding: 10px 14px; border: 1px solid rgba(192,132,252,.22); border-radius: 999px; background: rgba(21,21,25,.75); color: var(--text-secondary); font-size: .76rem; font-weight: 750; }
.stats-live span { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 5px rgba(192,132,252,.08); }
.stats-live.is-offline span { background: var(--muted); box-shadow: none; }
.stats-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 58px; }
.stats-overview article { display: grid; grid-template-columns: auto 1fr; gap: 2px 13px; align-items: center; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: rgba(25,25,31,.82); }
.stats-overview i { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(192,132,252,.2); border-radius: 12px; background: rgba(145,70,255,.07); color: var(--purple); }
.stats-overview span { color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.stats-overview strong { overflow: hidden; font-size: 1.15rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.stats-board { margin-top: 22px; padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: rgba(21,21,25,.78); box-shadow: 0 28px 80px rgba(0,0,0,.18); }
.stats-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.stats-toolbar h2 { margin: 4px 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; }
.stats-search { display: flex; align-items: center; width: min(100%, 390px); height: 48px; padding-left: 15px; border: 1px solid var(--border); border-radius: 13px; background: #111115; transition: border-color .2s; }
.stats-search:focus-within { border-color: rgba(192,132,252,.65); }
.stats-search i { color: var(--muted); }
.stats-search input { min-width: 0; flex: 1; height: 100%; padding: 0 11px; border: 0; outline: 0; background: transparent; color: #fff; }
.stats-search button { align-self: stretch; padding: 0 16px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--purple); font-size: .78rem; font-weight: 800; cursor: pointer; }
.stats-sorts { display: flex; flex-wrap: wrap; gap: 7px; margin: 27px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.stats-sorts a { padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: .75rem; font-weight: 750; transition: color .2s, border-color .2s, background .2s; }
.stats-sorts a:hover { color: var(--text-secondary); border-color: var(--border); }
.stats-sorts a.active { border-color: rgba(192,132,252,.24); background: rgba(145,70,255,.09); color: var(--purple); }
.stats-table-wrap { width: 100%; overflow-x: auto; scrollbar-color: var(--border) transparent; }
.stats-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.stats-table th { padding: 10px 13px; color: var(--muted); font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.stats-table td { padding: 14px 13px; border-top: 1px solid rgba(41,41,48,.72); color: var(--text-secondary); font-size: .82rem; white-space: nowrap; }
.stats-table tbody tr { transition: background .2s; }
.stats-table tbody tr:hover { background: rgba(255,255,255,.018); }
.stats-rank { width: 38px; color: var(--muted) !important; font-weight: 850; text-align: center; }
.stats-player { display: flex; align-items: center; gap: 10px; min-width: 145px; }
.stats-player > span { display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border: 1px solid rgba(192,132,252,.22); border-radius: 10px; background: linear-gradient(145deg, rgba(145,70,255,.15), rgba(192,132,252,.05)); color: var(--purple); font-weight: 900; }
.stats-player > span img { width: 100%; height: 100%; image-rendering: pixelated; object-fit: cover; }
.stats-player strong { color: #fff; font-size: .87rem; }
.stats-player i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(192,132,252,.07); }
.stats-last-seen { color: var(--muted) !important; font-size: .75rem !important; }
.stats-last-seen.online { color: var(--purple) !important; }
.stats-empty { display: grid; place-items: center; min-height: 310px; padding: 35px; text-align: center; }
.stats-empty > i { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border: 1px solid rgba(192,132,252,.2); border-radius: 17px; background: rgba(145,70,255,.07); color: var(--purple); font-size: 1.35rem; }
.stats-empty h2 { margin: 0 0 8px; }
.stats-empty p { max-width: 490px; margin: 0; color: var(--muted); }

.account-main { min-height: 82vh; padding: calc(var(--header-height) + 58px) 0 96px; background: radial-gradient(circle at 50% -12%, rgba(145,70,255,.09), transparent 32%); }
.auth-layout { display: grid; grid-template-columns: 1.05fr .75fr; gap: clamp(42px, 8vw, 110px); align-items: center; min-height: 610px; }
.auth-copy h1, .account-heading h1 { margin: 14px 0 24px; font-size: clamp(3.2rem, 6vw, 5.5rem); }
.auth-copy p, .account-heading p { max-width: 580px; color: var(--text-secondary); }
.auth-card, .skin-card, .profile-card { border: 1px solid var(--border); border-radius: 18px; background: rgba(25,25,31,.9); box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.auth-card { display: grid; gap: 18px; padding: 34px; }
.auth-card-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 6px; }
.auth-card-heading > i { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(192,132,252,.25); border-radius: 14px; background: rgba(145,70,255,.08); color: var(--purple); }
.auth-card-heading span { color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .1em; }
.auth-card-heading h2 { margin: 0; font-size: 1.55rem; }
.account-field { display: grid; gap: 7px; }
.account-field > span { color: var(--text-secondary); font-size: .76rem; font-weight: 750; }
.account-field input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--border); border-radius: 13px; outline: 0; background: #111115; color: #fff; transition: border-color .2s, box-shadow .2s; }
.account-field input:focus { border-color: rgba(192,132,252,.65); box-shadow: 0 0 0 4px rgba(145,70,255,.08); }
.auth-card .button, .skin-card .button { width: 100%; }
.auth-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; color: var(--muted); font-size: .71rem; text-align: center; }
.form-alert { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid rgba(255,112,128,.22); border-radius: 12px; background: rgba(255,80,100,.06); color: #e9b6bd; font-size: .78rem; }
.form-alert.is-success { border-color: rgba(192,132,252,.25); background: rgba(145,70,255,.07); color: #d8c1ef; }
.form-alert i { margin-top: 4px; }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.account-heading h1 { margin: 8px 0 8px; font-size: clamp(2.25rem, 4vw, 3.55rem); letter-spacing: -.055em; }
.account-heading p { margin: 0; font-size: .88rem; }
.account-logout { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(25,25,31,.66); color: var(--text-secondary); font: inherit; font-size: .74rem; font-weight: 750; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.account-logout:hover { border-color: rgba(192,132,252,.38); background: rgba(145,70,255,.06); color: #fff; }
.account-grid { display: grid; grid-template-columns: .82fr 1.18fr; margin-top: 32px; overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: rgba(21,21,25,.76); box-shadow: 0 24px 70px rgba(0,0,0,.16); }
.profile-card, .skin-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.profile-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 24px 26px; border-right: 1px solid var(--border); }
.profile-identity { display: flex; align-items: center; gap: 17px; min-width: 0; }
.profile-head { display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 1px solid rgba(192,132,252,.28); border-radius: 16px; background: linear-gradient(145deg, rgba(145,70,255,.14), rgba(192,132,252,.04)); color: var(--purple); font-size: 1.8rem; font-weight: 900; box-shadow: 0 10px 28px rgba(145,70,255,.08); }
.profile-head img { width: 100%; height: 100%; image-rendering: pixelated; }
.profile-meta { min-width: 0; }
.profile-card small { color: var(--muted); font-size: .6rem; font-weight: 850; letter-spacing: .12em; }
.profile-card h2 { margin: 1px 0 5px; overflow: hidden; font-size: 1.35rem; text-overflow: ellipsis; }
.profile-role { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); font-size: .7rem; }
.profile-uuid { max-width: 100%; margin: 16px 0 0; overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.skin-status { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; margin-top: 12px; padding: 6px 9px; border: 1px solid rgba(192,132,252,.14); border-radius: 999px; background: rgba(145,70,255,.045); color: var(--text-secondary); font-size: .65rem; font-weight: 750; }
.skin-status i { color: var(--purple); font-size: .46rem; }
.skin-status-failed i { color: #d98792; }
.skin-card { display: grid; align-content: center; gap: 14px; padding: 24px 26px; }
.skin-card h2 { margin: 2px 0 4px; font-size: 1.38rem; letter-spacing: -.035em; }
.skin-card p { max-width: 590px; margin: 0; color: var(--muted); font-size: .72rem; }
.skin-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.skin-upload { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 58px; padding: 10px 13px; border: 1px dashed rgba(192,132,252,.26); border-radius: 12px; background: rgba(145,70,255,.035); cursor: pointer; transition: border-color .2s, background .2s; }
.skin-upload:hover { border-color: var(--purple); background: rgba(145,70,255,.07); }
.skin-upload > i { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: rgba(145,70,255,.09); color: var(--purple); font-size: .8rem; }
.skin-upload span { min-width: 0; }
.skin-upload strong, .skin-upload small { display: block; }
.skin-upload strong { font-size: .76rem; }
.skin-upload small { overflow: hidden; color: var(--muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.skin-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.skin-controls .button { width: auto; min-width: 132px; padding-inline: 18px; }
.roles-section { margin-top: 14px; padding: 24px 26px; border: 1px solid var(--border); border-radius: 17px; background: rgba(21,21,25,.66); box-shadow: 0 24px 70px rgba(0,0,0,.12); }
.roles-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.roles-heading h2 { margin: 3px 0 0; font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.04em; }
.roles-count { padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.role-card { display: flex; gap: 13px; min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: rgba(25,25,31,.7); }
.role-card.is-primary { border-color: rgba(192,132,252,.34); background: linear-gradient(135deg, rgba(145,70,255,.08), rgba(25,25,31,.88) 55%); }
.role-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid rgba(192,132,252,.2); border-radius: 10px; background: rgba(145,70,255,.07); color: var(--purple); font-size: .82rem; }
.role-content { min-width: 0; flex: 1; }
.role-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.role-title h3 { margin: 0; font-size: 1.06rem; }
.role-title span { padding: 3px 7px; border: 1px solid rgba(192,132,252,.25); border-radius: 999px; background: rgba(145,70,255,.08); color: var(--purple); font-size: .58rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.role-prefix { margin: 4px 0 11px; color: var(--text-secondary); font-size: .74rem; }
.role-expiry { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--purple); }
.role-expiry > i { font-size: .82rem; }
.role-expiry strong, .role-expiry span { display: block; }
.role-expiry strong { color: #ddd0ec; font-size: .74rem; }
.role-expiry span { color: var(--muted); font-size: .66rem; }
.role-permanent { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.role-permanent i { color: var(--purple); font-size: .68rem; }
.roles-empty { display: flex; align-items: center; gap: 16px; min-height: 110px; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: rgba(25,25,31,.7); }
.roles-empty > i { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 13px; background: rgba(145,70,255,.08); color: var(--purple); }
.roles-empty strong { font-size: .9rem; }
.roles-empty p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.76); backdrop-filter: blur(7px); animation: fade .25s ease; }
.modal-dialog { position: relative; width: min(100%, 520px); max-height: min(760px, calc(100vh - 40px)); overflow-y: auto; padding: 34px; border: 1px solid rgba(192,132,252,.3); border-radius: 18px; background: #19191f; box-shadow: 0 30px 100px rgba(0,0,0,.55); animation: modal-in .32s ease; }
.modal-dialog h2 { margin: 7px 0 28px; font-size: 2rem; letter-spacing: -.04em; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 11px; background: #151519; color: var(--text-secondary); font-size: 1.4rem; cursor: pointer; }
.modal form > label:not(.checkbox) { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 800; }
.modal input[type="text"] { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--border); border-radius: 13px; outline: 0; background: #121216; color: #fff; transition: border-color .2s; }
.modal input[type="text"]:focus { border-color: var(--purple); }
.field-hint { margin: 7px 0 22px; color: var(--muted); font-size: .72rem; }
.order-summary { display: grid; gap: 11px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--secondary); }
.order-summary div { display: flex; justify-content: space-between; gap: 20px; }
.order-summary span { color: var(--muted); font-size: .82rem; }
.order-summary strong { font-size: .86rem; }
.checkbox { display: flex; align-items: flex-start; gap: 11px; margin: 16px 0 0; color: var(--text-secondary); font-size: .82rem; line-height: 1.45; cursor: pointer; }
.checkbox input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--primary); }
.checkbox a { color: var(--purple); text-decoration: underline; text-decoration-color: rgba(192,132,252,.35); text-underline-offset: 2px; }
.form-error { min-height: 22px; margin: 10px 0 4px; color: #e5a6b0; font-size: .78rem; }
.modal-submit { width: 100%; }
.toast { position: fixed; z-index: 700; left: 50%; bottom: 28px; max-width: min(440px, calc(100% - 32px)); padding: 13px 18px; border: 1px solid rgba(192,132,252,.3); border-radius: 13px; background: rgba(25,25,31,.97); color: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.35); font-size: .86rem; text-align: center; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

@media (max-width: 980px) {
    .site-nav > a { padding-inline: 10px; font-size: .78rem; }
    .hero { min-height: 760px; }
    .hero-grid { grid-template-columns: 58% 42%; min-height: 680px; }
    h1 { font-size: clamp(3rem, 7vw, 4.6rem); }
    .voxel-scene { transform: translateX(7%); opacity: .76; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card { min-height: 210px; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-overview { grid-template-columns: repeat(2, 1fr); }
    .auth-layout, .account-grid { grid-template-columns: 1fr; }
    .auth-layout { min-height: 0; }
    .profile-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
    :root { --header-height: 68px; }
    .container { width: min(calc(100% - 28px), var(--container)); }
    .menu-toggle { position: absolute; right: 0; display: block; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: grid; gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 15px; background: rgba(21,21,25,.98); box-shadow: 0 24px 60px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, visibility .25s, transform .25s; }
    .site-nav.open { opacity: 1; visibility: visible; transform: none; }
    .site-nav > a { padding: 12px; font-size: .9rem; }
    .site-nav .nav-unavailable { padding: 12px; }
    .site-nav .button { margin-top: 7px; }
    .hero { min-height: 880px; align-items: start; }
    .hero-grid { display: block; min-height: auto; }
    .hero-copy { padding: 88px 0 310px; }
    .hero-scene-space { display: none; }
    .voxel-scene { inset: auto -20% 0 -20%; height: 470px; transform: translateY(3%); mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 70%, transparent 100%); }
    .voxel-scene.is-ready { opacity: .74; }
    h1 { margin-top: 21px; font-size: clamp(2.75rem, 13vw, 4.1rem); }
    .hero-lead { font-size: .98rem; }
    .section { padding: 82px 0; }
    .features-grid, .products-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
    .feature-icon { margin-bottom: 24px; }
    .store-intro { align-items: start; flex-direction: column; gap: 25px; }
    .join-card { grid-template-columns: 1fr; gap: 30px; padding: 38px 28px; }
    .join-links { grid-column: auto; flex-wrap: wrap; }
    .footer-grid, .footer-bottom { flex-direction: column; }
    .footer-nav { flex-wrap: wrap; }
    .legal-layout { grid-template-columns: 1fr; gap: 26px; }
    .legal-aside { position: static; }
    .legal-aside nav { grid-template-columns: repeat(2, 1fr); }
    .legal-aside nav a { display: grid; place-items: center; text-align: center; }
    .legal-main { padding-top: calc(var(--header-height) + 52px); }
    .legal-heading { margin-bottom: 38px; }
    .stats-main { padding-top: calc(var(--header-height) + 52px); }
    .stats-hero, .stats-toolbar { align-items: stretch; flex-direction: column; }
    .stats-live { align-self: flex-start; }
    .stats-search { width: 100%; }
    .stats-board { padding: 25px 20px; }
    .roles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .hero-actions { display: grid; }
    .hero-actions .button { width: 100%; }
    .server-card { display: grid; width: 100%; grid-template-columns: 1fr 100px; }
    .features-grid { gap: 10px; }
    .voice-card { align-items: flex-start; }
    .voice-line { display: none; }
    .product-card { padding: 28px 22px; }
    .social-grid { grid-template-columns: 1fr; }
    .legal-aside nav { grid-template-columns: 1fr; }
    .legal-aside nav a { display: block; text-align: left; }
    .legal-document { padding: 32px 22px; border-radius: 15px; }
    .legal-heading h1 { font-size: 2.55rem; }
    .legal-document p, .legal-document li { font-size: .88rem; }
    .payment-return-card { padding: 40px 22px; }
    .payment-return-actions { display: grid; }
    .modal { padding: 10px; }
    .modal-dialog { max-height: calc(100vh - 20px); padding: 28px 20px 22px; }
    .stats-overview { grid-template-columns: 1fr; }
    .stats-hero h1 { font-size: 3.5rem; }
    .stats-board { width: 100%; border-right: 0; border-left: 0; border-radius: 0; }
    .account-main { padding-top: calc(var(--header-height) + 48px); }
    .auth-copy h1 { font-size: 3.2rem; }
    .account-heading h1 { font-size: 2.35rem; }
    .auth-card, .skin-card, .profile-card { padding: 24px 20px; }
    .account-heading { align-items: stretch; flex-direction: column; }
    .account-heading form { align-self: flex-start; }
    .skin-controls { grid-template-columns: 1fr; }
    .skin-controls .button { width: 100%; }
    .roles-section { padding: 22px 20px; }
    .roles-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .role-card { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
