:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --panel: #11161a;
  --panel-light: #171e23;
  --line: rgba(210, 178, 112, .17);
  --gold: #cfaa61;
  --gold-light: #ead19b;
  --text: #f0eee8;
  --muted: #92999b;
  --green: #73b789;
  --red: #c97169;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-width { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header { height: 78px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(8,11,14,.82), rgba(8,11,14,.28)); backdrop-filter: blur(8px); transition: height .28s ease, background .28s ease, box-shadow .28s ease, border-color .28s ease; }
.site-header.is-scrolled { height: 88px; border-color: rgba(207,170,97,.22); background: rgba(9,12,15,.94); box-shadow: 0 12px 32px rgba(0,0,0,.28); backdrop-filter: blur(16px); animation: header-drop .28s ease-out; }
@keyframes header-drop { from { transform: translateY(-12px); } to { transform: translateY(0); } }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); font: 20px var(--serif); transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand > span:last-child { display: grid; line-height: 1.12; font: 14px var(--serif); letter-spacing: .12em; }
.brand strong { font-weight: 400; }
.brand small { color: var(--gold); margin-top: 4px; font: 10px var(--sans); letter-spacing: .29em; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.45vw, 22px); color: #c3c4c1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--gold-light); }
.main-nav .nav-community { color: var(--gold-light); padding: 10px 15px; border: 1px solid rgba(207,170,97,.45); }
.main-nav .nav-cta { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(207,170,97,.55); border-radius: 2px; font-size: 13px; font-weight: 700; letter-spacing: .01em; text-transform: none; white-space: nowrap; }
.main-nav .nav-login { color: #15130f; border-color: transparent; background: linear-gradient(120deg,#c9a45e,#e6cb8d); box-shadow: 0 5px 18px rgba(201,164,94,.18); }
.main-nav .nav-login:hover { color: #111; background: #f1dcae; }
.main-nav .nav-register { color: var(--gold-light); background: rgba(207,170,97,.06); }
.main-nav .nav-register:hover { background: rgba(207,170,97,.15); }
.nav-logout { display: contents; }
.main-nav .nav-logout button { font-family: var(--sans); cursor: pointer; }
.menu-toggle { display: none; }

.hero { min-height: 740px; min-height: max(740px, 100svh); position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 73% 45%, rgba(101,82,46,.24), transparent 35%), linear-gradient(110deg,#090c0f 0%,#0e1316 47%,#151716 100%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: linear-gradient(90deg, rgba(9,12,15,.97) 0%,rgba(9,12,15,.62) 49%,rgba(9,12,15,.48) 100%), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=2000&q=85'); background-size: cover; background-position: center 43%; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-art { position: absolute; width: min(46vw, 670px); aspect-ratio: 1; right: max(5vw,calc((100vw - 1420px)/2)); top: 50%; transform: translateY(-48%); border: 1px solid rgba(207,170,97,.13); border-radius: 50%; box-shadow: 0 0 0 30px rgba(207,170,97,.018),0 0 0 80px rgba(207,170,97,.014),inset 0 0 100px rgba(207,170,97,.05); pointer-events: none; }
.hero-art::before,.hero-art::after { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(207,170,97,.14); border-radius: 50%; transform: rotate(28deg) scaleX(.68); }
.hero-art::after { transform: rotate(-28deg) scaleX(.68); }
.hero-sigil { position: absolute; inset: 0; display: grid; place-items: center; font: clamp(190px,35vw,470px)/1 var(--serif); color: rgba(207,170,97,.055); text-shadow: 0 0 80px rgba(207,170,97,.15); }
.hero-content { position: relative; z-index: 2; padding-top: 92px; }
.eyebrow { margin: 0 0 19px; color: var(--gold); font-size: 10px; letter-spacing: .28em; font-weight: 700; }
.hero .eyebrow { display: flex; align-items: center; gap: 13px; }
.eyebrow-line { width: 25px; height: 1px; background: var(--gold); opacity: .8; }
h1,h2,h3,p { margin-top: 0; }
.hero h1 { max-width: 700px; margin: 0; font: clamp(62px,9vw,120px)/.99 var(--serif); letter-spacing: -.045em; text-transform: uppercase; }
.hero h1 em,.section-heading h2 em,.ranking-intro h2 em { color: var(--gold-light); font-style: normal; }
.hero-copy { max-width: 520px; margin: 25px 0 31px; color: #afb2b1; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-size: 10px; font-weight: 700; letter-spacing: .13em; transition: transform .2s,background .2s,border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #14130f; background: linear-gradient(120deg,#c9a45e,#e6cb8d); }
.button-primary:hover { background: #f1dcae; }
.button-secondary { border: 1px solid rgba(255,255,255,.19); color: #e0dfd8; }
.button-secondary:hover { border-color: var(--gold); }
.hero-status { display: flex; align-items: center; gap: 10px; margin-top: 48px; color: #b8b9b5; font-size: 10px; letter-spacing: .12em; }
.hero-status [data-status-label] { font-weight: 700; }
.hero-status b { color: white; font-weight: 600; }
.status-light,.state-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--red); box-shadow: 0 0 13px currentColor; }
.status-light.is-online,.state-dot.is-online { color: var(--green); background: var(--green); }
.status-light.is-offline,.state-dot.is-offline { color: var(--red); background: var(--red); }
.status-separator { color: #5e6261; }
.scroll-cue { position: absolute; bottom: 25px; left: 50%; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); color: #92999b; font-size: 9px; letter-spacing: .2em; }
.scroll-cue span { height: 25px; width: 1px; background: linear-gradient(var(--gold),transparent); }

.section { padding: 112px 0; }
.server-section { position: relative; background: radial-gradient(ellipse at 15% 40%,rgba(153,122,65,.055),transparent 40%); }
.section-heading { max-width: 700px; margin: 0 auto 51px; text-align: center; }
.section-heading .eyebrow,.ranking-intro .eyebrow { margin-bottom: 13px; }
.section-heading h2,.ranking-intro h2 { margin: 0 0 13px; font: clamp(38px,5vw,59px)/1.1 var(--serif); letter-spacing: -.025em; }
.section-heading > p:last-child,.ranking-intro > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.75; }
.server-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.info-card { min-height: 199px; padding: 23px 22px; position: relative; background: linear-gradient(140deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); border: 1px solid rgba(255,255,255,.085); }
.info-card::after { content:''; position:absolute; left:-1px; bottom:-1px; width:33%; height:1px; background:var(--gold); opacity:.7; }
.card-icon { margin-bottom: 16px; color: var(--gold); font-size: 18px; }
.card-label { margin: 0 0 4px; color: #9da3a2; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.card-number { display: block; color: var(--text); font: 39px/1.2 var(--serif); }
.rate-number { color: var(--gold-light); }
.card-foot { display: block; margin-top: 7px; color: #9ba3a1; font-size: 13px; line-height: 1.55; }
.rate-divider { margin-inline: 5px; color: var(--gold); }
.card-foot b { color: #c5c8c2; font-weight: 500; }
.server-detail-bar { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 17px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.018); }
.server-detail-bar > div { display: grid; gap: 4px; }
.detail-label { color: #737c7b; font-size: 9px; letter-spacing: .17em; }
.server-detail-bar strong { color: #d8d9d3; font-size: 12px; font-weight: 500; }
.service-state { display: flex; align-items: center; gap: 8px; }
.state-dot { width: 6px; height: 6px; }
.data-notice { margin: -25px 0 24px; color: var(--gold-light); text-align: center; font-size: 12px; }

.ranking-section { position: relative; background: linear-gradient(110deg,#0c1013,#111617 53%,#101314); border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.ranking-layout { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(35px,8vw,110px); }
.ranking-intro h2 { font-size: clamp(54px,7vw,82px); text-transform: uppercase; }
.ranking-intro > p:not(.eyebrow) { max-width: 330px; margin: 19px 0 25px; font-size: 16px; }
.ranking-refresh { color: #848c8b; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.ranking-refresh i { width: 6px; height: 6px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.ranking-board { border: 1px solid rgba(255,255,255,.085); background: rgba(7,9,11,.38); }
.ranking-head { min-height: 45px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; color: #737b7a; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.ranking-row { min-height: 67px; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.055); }
.ranking-row:last-child { border: 0; }
.rank-player { display: flex; align-items: center; gap: 15px; }
.rank-number { width: 28px; color: #697171; font: 13px var(--serif); }
.rank-player > span { display: grid; gap: 1px; }
.rank-player strong { color: #e4e5e0; font-size: 13px; font-weight: 600; }
.rank-player small { color: #808887; font-size: 10px; }
.rank-kills { color: #c6a869; font: 17px var(--serif); }
.rank-first .rank-number,.rank-first .rank-player strong { color: var(--gold-light); }
.ranking-empty { padding: 38px 20px; color: var(--muted); text-align: center; font-size: 13px; }

.download-section { background: radial-gradient(ellipse at 85% 55%,rgba(141,105,46,.075),transparent 38%); }
.download-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.download-card { min-height: 255px; padding: 29px; position: relative; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(150deg,rgba(255,255,255,.04),rgba(255,255,255,.008)); }
.download-featured { border-color: rgba(207,170,97,.38); background: linear-gradient(145deg,rgba(207,170,97,.11),rgba(255,255,255,.015)); }
.download-index { position: absolute; top: 22px; right: 23px; color: rgba(255,255,255,.24); font: 13px var(--serif); }
.download-icon { width: 39px; height: 39px; margin-bottom: 24px; display: grid; place-items: center; border: 1px solid rgba(207,170,97,.35); color: var(--gold-light); font-size: 18px; }
.download-card h3 { margin: 0 0 8px; font: 20px var(--serif); }
.download-card p { min-height: 44px; margin-bottom: 17px; color: #a3aaa8; font-size: 14px; line-height: 1.7; }
.download-link,.download-unavailable { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-light); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.download-unavailable { color: #777f7e; }
.community-banner { margin-top: 47px; padding: 31px 35px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid rgba(207,170,97,.19); background: linear-gradient(100deg,rgba(207,170,97,.07),rgba(255,255,255,.018)); }
.community-banner .eyebrow { margin-bottom: 7px; font-size: 9px; }
.community-banner h3 { margin: 0 0 4px; font: 27px var(--serif); }
.community-banner p:last-child { margin: 0; color: #a3aaa8; font-size: 14px; line-height: 1.7; }
.community-pending { color: #858b87; font-size: 11px; }

.site-footer { padding: 46px 24px; text-align: center; border-top: 1px solid rgba(255,255,255,.06); background: #080b0e; }
.footer-brand { font: 16px var(--serif); letter-spacing: .16em; }
.footer-brand span { color: var(--gold); }
.site-footer p { margin: 10px 0 4px; color: #929a98; font-size: 13px; line-height: 1.7; }
.site-footer small { color: #5f6766; font-size: 10px; }
.simple-state { min-height: 75vh; padding: 120px 24px 60px; display: grid; place-content: center; justify-items: center; text-align: center; }
.simple-state h1 { margin: 0 0 25px; font: clamp(35px,7vw,60px) var(--serif); }

.account-shell { min-height: 78vh; padding: 140px 24px 70px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 15%,rgba(141,105,46,.12),transparent 50%); }
.account-wide { align-items: start; }
.account-card { width: min(100%, 560px); padding: clamp(25px,5vw,48px); border: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); box-shadow: 0 24px 90px rgba(0,0,0,.22); }
.account-wide .account-card { width: min(100%, 980px); }
.account-card h1 { margin: 5px 0 8px; font: clamp(38px,6vw,58px) var(--serif); }
.account-card h2 { margin: 32px 0 14px; font: 25px var(--serif); }
.account-intro,.account-switch,.form-note,.shop-item p,.empty-state p { color: #b0b5b3; font-size: 16px; line-height: 1.75; }
.account-form { margin-top: 28px; display: grid; gap: 11px; }
.account-form label { margin-top: 7px; color: #d6d4ce; font-size: 15px; }
.account-form input { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--text); border: 1px solid rgba(255,255,255,.16); background: #0b0e11; font: 16px var(--sans); }
.account-form .button { width: 100%; margin-top: 12px; cursor: pointer; }
.account-switch { margin: 22px 0 0; }
.account-switch a { color: var(--gold-light); text-decoration: underline; }
.form-message { margin: 18px 0; padding: 13px 15px; color: #f0d8a0; border: 1px solid rgba(207,170,97,.35); background: rgba(207,170,97,.08); font-size: 15px; }
.form-success { color: #a5ddb3; border-color: rgba(115,183,137,.35); background: rgba(115,183,137,.08); }
.form-note { margin: 25px 0; font-size: 14px; }
.account-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.account-links form { display: contents; }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; color: var(--gold-light); border: 1px solid rgba(207,170,97,.35); background: transparent; font: 700 11px var(--sans); letter-spacing: .1em; cursor: pointer; }
.account-table { border: 1px solid rgba(255,255,255,.1); }
.account-table-head,.account-table-row { display: grid; grid-template-columns: 1fr 110px 130px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
.account-table-head { color: #a3aaa8; background: rgba(255,255,255,.035); font-size: 13px; }
.account-table-row:last-child { border-bottom: 0; }
.account-table-row strong { font-weight: 600; }
.admin-metrics,.shop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 25px 0; }
.admin-metrics article,.shop-item,.empty-state { padding: 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.admin-metrics article { display: grid; gap: 9px; color: #b0b5b3; font-size: 15px; }
.admin-metrics strong { color: var(--gold-light); font: 28px var(--serif); }
.shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.shop-item h2 { margin: 8px 0; }
.shop-item > strong { display: block; margin: 18px 0; font-size: 15px; }
.shop-item button:disabled { opacity: .55; cursor: not-allowed; }
.empty-state { margin: 24px 0; }
.empty-state h2 { margin-top: 0; }
.shop-admin-form { margin: 18px 0 26px; padding: 19px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.shop-admin-form label { display: grid; gap: 7px; color: #bfc3bf; font-size: 14px; }
.shop-admin-form input,.shop-admin-form select,.shop-admin-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--text); border: 1px solid rgba(255,255,255,.14); background: #0b0e11; font: 15px var(--sans); }
.shop-admin-form .shop-description { grid-column: 1 / -1; }
.shop-admin-form .shop-check { display: flex; grid-column: 1 / -1; align-items: center; }
.shop-admin-form .shop-check input { width: 17px; min-height: 17px; }
.shop-admin-form button { justify-self: start; }

@media (max-width: 900px) {
  .server-grid { grid-template-columns: repeat(2,1fr); }
  .ranking-layout { grid-template-columns: .65fr 1.35fr; gap: 35px; }
  .hero-art { right: -15%; opacity: .65; }
}
@media (max-width: 640px) {
  .page-width { width: min(100% - 36px,520px); }
  .site-header { height: 70px; padding-inline: 18px; }
  .site-header.is-scrolled { height: 78px; }
  .brand-mark { width: 32px; height: 32px; }
  .menu-toggle { width: 42px; height: 42px; padding: 11px; display: grid; align-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(10,13,15,.6); }
  .menu-toggle span { height: 1px; width: 100%; background: var(--gold-light); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: absolute; inset: calc(100% - 1px) 0 auto; padding: 14px 20px 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(9,12,14,.97); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0,0,0,.28); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .main-nav .nav-community { margin-top: 12px; padding: 12px; text-align: center; }
  .main-nav .nav-cta { min-height: 46px; margin-top: 10px; border: 1px solid rgba(207,170,97,.45); }
  .main-nav .nav-logout { display: block; }
  .main-nav .nav-logout button { width: 100%; }
  .hero { min-height: 730px; min-height: max(730px,100svh); align-items: center; }
  .hero::before { background-position: 61% center; opacity: .65; }
  .hero-art { width: 116vw; right: -54vw; opacity: .48; }
  .hero-content { padding-top: 45px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .2em; }
  .hero h1 { font-size: clamp(55px,14vw,81px); }
  .hero-copy { max-width: 380px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 330px; }
  .hero-status { flex-wrap: wrap; margin-top: 32px; font-size: 9px; }
  .scroll-cue { display: none; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 39px; }
  .server-grid { gap: 9px; }
  .info-card { min-height: 175px; padding: 17px 15px; }
  .card-number { font-size: 32px; }
  .card-label { font-size: 8px; letter-spacing: .13em; }
  .card-foot { font-size: 12px; }
  .server-detail-bar { grid-template-columns: repeat(2,1fr); gap: 19px 12px; padding: 18px; }
  .ranking-layout { grid-template-columns: 1fr; gap: 32px; }
  .ranking-intro h2 { font-size: 57px; }
  .ranking-intro > p:not(.eyebrow) { max-width: 390px; font-size: 16px; }
  .ranking-row { min-height: 62px; padding-inline: 14px; }
  .ranking-head { padding-inline: 14px; }
  .rank-player { gap: 9px; }
  .download-grid { grid-template-columns: 1fr; gap: 10px; }
  .download-card { min-height: auto; padding: 23px; }
  .download-icon { margin-bottom: 16px; }
  .download-card p { min-height: auto; }
  .community-banner { align-items: flex-start; flex-direction: column; margin-top: 30px; padding: 25px 21px; }
  .community-banner .button { width: 100%; }
  .account-shell { padding: 112px 18px 48px; }
  .account-table-head,.account-table-row { grid-template-columns: 1fr 65px 74px; gap: 7px; padding-inline: 10px; font-size: 13px; }
  .admin-metrics,.shop-grid { grid-template-columns: 1fr; }
  .shop-admin-form { grid-template-columns: 1fr; }
  .account-links { align-items: stretch; flex-direction: column; }
  .account-links .button,.account-links form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
