:root {
  --bg: #080709;
  --panel: rgba(15, 12, 14, .94);
  --panel-soft: rgba(25, 20, 22, .82);
  --panel-strong: #100d0f;
  --line: rgba(220, 166, 55, .24);
  --line-strong: #c99831;
  --gold: #e0ad43;
  --gold-light: #f8d989;
  --red: #b71122;
  --red-bright: #e22539;
  --text: #fff9ef;
  --muted: #b6aaa2;
  --green: #37dd91;
  --danger: #ff5869;
  --warning: #f2b84b;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(5, 4, 5, .42), rgba(5, 4, 5, .8)),
    url("/static/background.png") center top / cover fixed no-repeat,
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 22%, rgba(157, 0, 21, .22), transparent 35%),
    radial-gradient(circle at 80% 18%, rgba(225, 170, 66, .15), transparent 31%),
    linear-gradient(180deg, transparent 45%, rgba(4, 3, 4, .72));
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.page-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.ambient { position: fixed; z-index: -1; filter: blur(80px); opacity: .17; border-radius: 50%; }
.ambient-one { width: 420px; height: 420px; background: #a30018; left: -220px; top: 260px; }
.ambient-two { width: 380px; height: 380px; background: #c99024; right: -250px; top: 100px; }

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); }
.brand span { display: grid; gap: 1px; }
.brand strong { font-size: 16px; letter-spacing: .18em; }
.brand small { color: #bcae9f; font-size: 9px; letter-spacing: .22em; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav > a, .nav-logout button {
  color: #d9cec5;
  font-size: 13px;
  font-weight: 750;
  background: none;
  border: 0;
  padding: 13px 0;
  cursor: pointer;
  transition: .2s ease;
}
.main-nav > a:hover, .nav-logout button:hover { color: var(--gold-light); }
.main-nav .nav-login {
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--gold-light);
  background: rgba(204, 153, 42, .08);
}
.nav-logout { margin: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold-light); margin: 4px auto; }

main { min-height: 68vh; }
footer {
  margin-top: 90px;
  min-height: 112px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  color: #9e928a;
  font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand div { display: grid; }
.footer-brand strong { color: #e9ddd3; }
.footer-brand small { margin-top: 2px; }
.footer-note { opacity: .65; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.1fr .8fr; align-items: center; gap: 80px; padding: 75px 0 54px; }
.eyebrow { color: var(--gold); letter-spacing: .18em; font-size: 11px; font-weight: 900; margin: 0 0 12px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d8d0ca;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  border: 1px solid rgba(61, 221, 145, .32);
  background: rgba(20, 116, 74, .12);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.live-pill span, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px rgba(55,221,145,.9); }
.hero h1, .page-hero h1, .dashboard-heading h1, .profile-main h1, .auth-story h1 {
  font-size: clamp(50px, 6vw, 82px);
  line-height: .94;
  letter-spacing: -.055em;
  margin: 0;
  text-transform: uppercase;
}
.hero h1 span, .auth-story h1 span { color: var(--red-bright); }
.hero-text { max-width: 600px; color: #c9bdb5; font-size: 18px; line-height: 1.65; margin: 28px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, #c21629, #8f0718); border-color: #ed3546; box-shadow: 0 12px 30px rgba(164, 8, 28, .27); }
.button-primary:hover { background: linear-gradient(135deg, #dc1a31, #a70a1f); box-shadow: 0 15px 34px rgba(184, 7, 29, .38); }
.button-ghost { background: rgba(17, 13, 15, .75); border-color: var(--line-strong); color: var(--gold-light); }
.button-ghost:hover { background: rgba(208, 157, 52, .1); }
.button-danger { background: rgba(180, 18, 38, .15); border-color: #c62a3b; color: #ffafb8; }
.button-danger:hover { background: rgba(180, 18, 38, .3); }
.button-full { width: 100%; }
.button-small { min-height: 38px; padding: 0 15px; font-size: 12px; }
.text-link { color: var(--gold-light); font-weight: 700; font-size: 13px; }
.back-link { display: inline-block; color: var(--gold-light); margin: 34px 0 18px; font-size: 13px; font-weight: 750; }

.hero-metrics { display: flex; gap: 38px; margin-top: 44px; }
.hero-metrics div { display: grid; }
.hero-metrics strong { font-size: 25px; }
.hero-metrics span { color: #a69a92; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.glass-card, .portal-card {
  background: linear-gradient(145deg, rgba(20, 16, 18, .96), rgba(11, 9, 10, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.register-card { padding: 29px; backdrop-filter: blur(18px); position: relative; overflow: hidden; }
.register-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.card-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.card-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.card-icon { width: 54px; height: 54px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; background: #7e0d1b; color: var(--gold-light); font-weight: 900; }
form { margin: 0; }
label { display: grid; gap: 7px; font-size: 12px; color: #e8ddd5; font-weight: 700; margin-bottom: 14px; }
label small { color: #827871; font-weight: 500; font-size: 10px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  background: rgba(5, 4, 5, .75);
  border: 1px solid #3b3133;
  border-radius: 8px;
  color: #fff8ed;
  outline: none;
  padding: 10px 12px;
  transition: border-color .18s, box-shadow .18s;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 163, 57, .11); }
select { color-scheme: dark; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 52px; }
.toggle-password { position: absolute; right: 7px; top: 7px; height: 30px; padding: 0 8px; background: transparent; color: var(--gold-light); border: 0; font-size: 11px; font-weight: 800; cursor: pointer; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -10000px; }
.welcome-card { min-height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.welcome-card img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 14px 25px rgba(0,0,0,.55)); }
.welcome-card h2 { margin: 0; font-size: 32px; }
.welcome-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; max-width: 320px; }

.flash {
  position: fixed;
  top: 104px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(620px, calc(100% - 30px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #151113;
  border: 1px solid var(--line);
  box-shadow: 0 15px 50px rgba(0,0,0,.58);
  font-size: 13px;
}
.flash-success { border-color: rgba(55,221,145,.56); }
.flash-error { border-color: rgba(255,88,105,.65); }
.flash-info { border-color: rgba(224,173,67,.55); }
.flash-close { background: none; border: 0; color: #c7bbb3; font-size: 22px; cursor: pointer; }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(11, 9, 10, .91);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-band article { min-height: 136px; padding: 28px; display: flex; align-items: flex-start; gap: 18px; border-right: 1px solid var(--line); }
.feature-band article:last-child { border-right: 0; }
.feature-band > article > span { color: var(--red-bright); font-size: 11px; font-weight: 900; }
.feature-band strong { display: block; margin-bottom: 6px; }
.feature-band p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.6; }
.section-grid { margin-top: 68px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; align-items: center; padding: 40px 0; }
.section-copy h2, .section-heading h2, .dashboard-main h2, .dashboard-side h2 { font-size: 32px; letter-spacing: -.04em; margin: 0 0 10px; }
.section-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; max-width: 360px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-item { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 17px; background: rgba(15,12,14,.84); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; }
.status-item div { display: grid; }
.status-item small { color: var(--muted); margin-top: 3px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #555; flex: 0 0 auto; }
.status-dot.online { background: var(--green); box-shadow: 0 0 14px rgba(55,221,145,.8); }
.status-dot.offline { background: var(--danger); }

.champions-section { margin-top: 65px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.section-heading h2 { margin-bottom: 0; }
.champion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.champion-card { position: relative; min-height: 190px; display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12,10,11,.88); overflow: hidden; }
.champion-card::after { content: ""; position: absolute; inset: auto -15% -60% 35%; height: 160px; background: radial-gradient(ellipse, rgba(188,36,49,.22), transparent 65%); }
.champion-card img { width: 120px; height: 145px; object-fit: contain; position: relative; z-index: 1; }
.champion-card div { display: grid; gap: 4px; position: relative; z-index: 1; }
.champion-card div span { color: var(--muted); font-size: 12px; }
.champion-card > b { color: var(--gold-light); font-size: 13px; position: relative; z-index: 1; }
.rank-number { position: absolute; top: 13px; left: 13px; color: rgba(255,255,255,.2); font-size: 24px; font-weight: 900; }

.auth-layout { min-height: 720px; display: grid; grid-template-columns: 1fr 440px; gap: 100px; align-items: center; }
.auth-story h1 { font-size: clamp(46px, 6vw, 74px); }
.auth-story > p:not(.eyebrow) { max-width: 550px; color: var(--muted); line-height: 1.7; font-size: 17px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; color: #d9cec6; }
.check-list li::before { content: "✓"; color: var(--green); margin-right: 10px; }
.auth-card { padding: 32px; }
.auth-help { color: var(--muted); text-align: center; font-size: 12px; margin: 18px 0 0; }
.auth-help a { color: var(--gold-light); font-weight: 800; }

.page-hero { padding: 70px 0 42px; }
.compact-hero { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.compact-hero h1 { font-size: clamp(42px, 5vw, 68px); }
.compact-hero > div > p:not(.eyebrow) { color: var(--muted); }
.metric-strip { display: flex; gap: 8px; }
.metric-strip div { min-width: 105px; padding: 16px; background: rgba(14,11,13,.82); border: 1px solid var(--line); border-radius: 11px; display: grid; }
.metric-strip strong { font-size: 22px; }
.metric-strip span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.online-total { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; padding: 18px 22px; border: 1px solid rgba(55,221,145,.3); background: rgba(12,34,24,.55); border-radius: 13px; }
.online-total > span { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.online-total strong { font-size: 28px; }
.online-total small { grid-column: 1 / -1; color: var(--muted); }

.ranking-panel, .logs-panel { overflow: hidden; padding: 0; }
.tabs { display: flex; gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); background: rgba(5,4,5,.35); overflow-x: auto; }
.tabs a { padding: 12px 18px; border-radius: 8px; color: var(--muted); font-weight: 800; font-size: 12px; white-space: nowrap; }
.tabs a.active { color: #fff; background: linear-gradient(135deg, #9d1020, #65101a); border: 1px solid #bb2c3a; }
.ranking-list { padding: 10px 20px 20px; }
.ranking-row { min-height: 82px; display: grid; grid-template-columns: 50px 72px 1fr 120px 100px; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ranking-row:last-child { border-bottom: 0; }
.position { font-size: 17px; font-weight: 900; color: #81766f; }
.ranking-row:nth-child(-n+3) .position { color: var(--gold-light); font-size: 23px; }
.ranking-avatar { width: 68px; height: 68px; object-fit: contain; }
.guild-mark { display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--gold); border-radius: 12px; background: #281519; font-weight: 900; font-size: 24px; }
.ranking-name { display: grid; gap: 3px; min-width: 0; }
.ranking-name strong { font-size: 15px; }
.ranking-name span { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-meta { display: grid; gap: 3px; }
.ranking-meta span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.ranking-meta strong { font-size: 13px; }
.ranking-meta.gold strong { color: var(--gold-light); }
.online-badge { justify-self: start; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #968b84; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 6px 8px; border-radius: 999px; }
.online-badge.is-online { color: #91f7c7; border-color: rgba(55,221,145,.35); background: rgba(55,221,145,.09); }

.players-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.player-card { display: grid; grid-template-columns: 130px 1fr; align-items: center; min-height: 190px; padding: 18px; position: relative; overflow: hidden; }
.player-card h2 { margin: 0; font-size: 19px; }
.player-card p { color: var(--gold-light); font-size: 12px; margin: 5px 0 14px; }
.player-card small { display: block; color: var(--muted); margin-top: 10px; }
.sprite-stage { height: 160px; position: relative; display: grid; place-items: center; background: radial-gradient(ellipse at bottom, rgba(208,156,49,.13), transparent 65%); }
.sprite-stage img { width: 130px; height: 155px; object-fit: contain; }
.sprite-stage .live-dot { position: absolute; right: 7px; top: 8px; }
.player-facts { display: flex; gap: 7px; flex-wrap: wrap; }
.player-facts span { padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.05); color: #d7cac1; font-size: 10px; }

.dashboard-page .site-header { background: rgba(7,6,7,.35); }
.dashboard-heading { padding: 52px 0 27px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.dashboard-heading h1 { font-size: clamp(39px, 5vw, 58px); text-transform: none; }
.dashboard-heading > div > p:not(.eyebrow) { color: var(--muted); margin: 11px 0 0; }
.account-id { color: var(--gold-light); border: 1px solid var(--line); padding: 11px 14px; border-radius: 10px; background: rgba(12,10,11,.7); font-size: 12px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 30px; }
.dashboard-stats article { min-height: 94px; display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--line); background: rgba(14,11,13,.89); border-radius: 12px; }
.dashboard-stats article > div { display: grid; }
.dashboard-stats strong { font-size: 22px; }
.dashboard-stats small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; background: rgba(200,149,45,.1); border: 1px solid var(--line); color: var(--gold-light); border-radius: 10px; font-size: 19px; }
.stat-icon.live { color: var(--green); }
.dashboard-grid, .admin-layout, .admin-account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.dashboard-main, .admin-main { min-width: 0; }
.dashboard-side, .admin-side { display: grid; gap: 14px; }
.muted { color: var(--muted); font-size: 11px; }
.character-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.character-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,16,18,.96), rgba(9,8,9,.94)); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.character-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(0,0,0,.34); }
.character-image { height: 235px; position: relative; display: grid; place-items: center; background: radial-gradient(ellipse at bottom, rgba(197,39,53,.2), transparent 60%); border-bottom: 1px solid var(--line); }
.character-image img { width: 220px; height: 225px; object-fit: contain; }
.character-image .online-badge { position: absolute; right: 14px; top: 14px; }
.character-card-body { padding: 17px; }
.character-card h3 { margin: 0; font-size: 19px; }
.character-card p { color: var(--gold-light); margin: 4px 0 15px; font-size: 12px; }
.level-line { display: flex; gap: 18px; color: var(--muted); font-size: 11px; }
.level-line b { color: var(--text); }
.character-location { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); color: #91867f; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.account-summary, .security-card, .services-card, .activity-card, .control-card, .compact-log-card { padding: 22px; }
.account-summary dl { margin: 0; display: grid; gap: 0; }
.account-summary dl div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.account-summary dl div:last-child { border-bottom: 0; }
.account-summary dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.account-summary dd { margin: 0; font-size: 11px; overflow-wrap: anywhere; text-align: right; }
.status-tag { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.status-tag.success { color: #91f7c7; background: rgba(55,221,145,.1); }
.status-tag.danger { color: #ff9eaa; background: rgba(255,88,105,.1); }
.status-tag.warning { color: #ffd47c; background: rgba(242,184,75,.1); }
.security-card h2 { font-size: 23px; margin: 0 0 18px; }

.character-profile { margin-top: 0; padding: 27px; display: grid; grid-template-columns: 260px 1fr 250px; gap: 34px; align-items: center; }
.profile-stage { height: 300px; position: relative; display: grid; place-items: center; border-radius: 13px; background: radial-gradient(ellipse at bottom, rgba(196,36,51,.24), transparent 63%); border: 1px solid rgba(255,255,255,.06); }
.profile-stage img { width: 250px; height: 290px; object-fit: contain; }
.profile-stage .online-badge { position: absolute; right: 13px; top: 13px; }
.profile-main h1 { font-size: clamp(38px, 5vw, 63px); text-transform: none; }
.profile-class { color: var(--gold-light); }
.profile-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 25px; }
.profile-levels div { padding: 12px; border-radius: 8px; background: rgba(255,255,255,.04); display: grid; gap: 4px; }
.profile-levels span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.profile-levels strong { font-size: 14px; }
.attribute-wheel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.attribute-wheel div { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--line); background: rgba(7,6,7,.55); border-radius: 9px; }
.attribute-wheel span { font-size: 10px; color: var(--gold); }
.attribute-wheel strong { font-size: 19px; }
.character-content { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.inventory-panel, .danger-card { padding: 23px; }
.inventory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.inventory-item { min-height: 69px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); border-radius: 9px; }
.item-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold-light); background: #251719; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; }
.inventory-item div { display: grid; gap: 2px; min-width: 0; }
.inventory-item strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inventory-item small { color: var(--muted); font-size: 9px; }
.inventory-item > b { color: var(--gold-light); font-size: 11px; }
.danger-card h2 { margin: 0 0 9px; }
.danger-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.delete-status { padding: 14px; border: 1px solid rgba(242,184,75,.3); background: rgba(242,184,75,.07); border-radius: 10px; margin-bottom: 14px; display: grid; gap: 5px; }
.delete-status span { color: var(--warning); text-transform: uppercase; font-size: 9px; font-weight: 900; }
.delete-status p { color: var(--muted); font-size: 11px; line-height: 1.5; }

.admin-heading { align-items: center; }
.admin-shortcuts { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-shortcuts a { padding: 10px 12px; color: var(--gold-light); border: 1px solid var(--line); background: rgba(8,7,8,.64); border-radius: 8px; font-size: 11px; font-weight: 800; }
.account-table-card { padding: 23px; }
.search-form { display: flex; gap: 7px; width: min(420px, 100%); }
.search-form input { min-height: 38px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { color: #8d827b; text-align: left; text-transform: uppercase; font-size: 9px; letter-spacing: .09em; padding: 10px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 11px; vertical-align: middle; }
.data-table td > strong, .data-table td > small, .data-table td > b { display: block; }
.data-table td > small { color: var(--muted); margin-top: 3px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-action { color: var(--gold-light); font-weight: 800; white-space: nowrap; }
.service-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 11px; }
.service-line:last-child { border-bottom: 0; }
.service-line small { color: var(--muted); }
.activity-card .section-heading h2 { font-size: 22px; }
.activity-card .section-heading a { color: var(--gold-light); font-size: 10px; }
.activity-list { display: grid; }
.activity-list > div { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.activity-list span { color: var(--gold-light); font-size: 10px; }
.activity-list strong { font-size: 11px; }
.activity-list small { color: var(--muted); font-size: 9px; }

.account-admin-hero { margin-top: 0; padding: 26px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 30px; }
.account-admin-hero h1 { font-size: 42px; margin: 0; letter-spacing: -.04em; }
.account-admin-hero > div > p:not(.eyebrow) { color: var(--muted); }
.account-admin-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.account-admin-facts div { padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; display: grid; gap: 3px; }
.account-admin-facts span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.account-admin-facts strong { font-size: 12px; }
.admin-account-grid { margin-top: 24px; }
.admin-character-list { display: grid; gap: 12px; }
.admin-character-card { display: grid; grid-template-columns: 140px 1fr 260px; gap: 18px; align-items: center; padding: 17px; }
.admin-character-card > img { width: 135px; height: 150px; object-fit: contain; }
.admin-character-info h3 { margin: 0; font-size: 20px; }
.admin-character-info p { color: var(--gold-light); font-size: 11px; }
.mini-facts { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-facts span { padding: 5px 7px; border-radius: 5px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 9px; }
details.reward-box { align-self: stretch; border-left: 1px solid var(--line); padding-left: 17px; }
details.reward-box summary { color: var(--gold-light); cursor: pointer; font-size: 11px; font-weight: 900; padding: 8px 0; }
details.reward-box[open] { padding-top: 3px; }
details.reward-box label { margin-bottom: 8px; font-size: 10px; }
details.reward-box input, details.reward-box textarea { min-height: 36px; padding: 7px 9px; font-size: 10px; }
details.reward-box textarea { min-height: 58px; }
.item-results { position: relative; margin-top: -7px; margin-bottom: 8px; display: none; max-height: 190px; overflow-y: auto; background: #0d0b0c; border: 1px solid var(--line); border-radius: 7px; }
.item-results.open { display: block; }
.item-results button { width: 100%; display: grid; grid-template-columns: 50px 1fr; text-align: left; padding: 8px; color: #ddd2ca; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; font-size: 10px; }
.item-results button:hover { background: rgba(220,166,55,.1); }
.protected-note { color: #f0ca7b; font-size: 11px; line-height: 1.6; padding: 12px; border: 1px solid rgba(242,184,75,.3); border-radius: 8px; background: rgba(242,184,75,.06); }
.control-card form + form { border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; margin-top: 16px; }
.log-line { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.06); padding: 9px 0; font-size: 9px; }
.log-line strong { color: #ddd2ca; }
.log-line span { color: var(--muted); }

.log-table { padding: 12px 20px 24px; }
.log-table article { display: grid; grid-template-columns: 150px 1.2fr 1fr 1.4fr; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 10px; }
.log-table time, .log-table span, .log-table p { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.log-table strong { color: #f1e6dd; }
.console-window { margin-top: 10px; border: 1px solid #3f3435; background: #070708; border-radius: 13px; overflow: hidden; box-shadow: var(--shadow); }
.console-bar { height: 45px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid #30282a; background: #151214; }
.console-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #a8303d; }
.console-bar > span:nth-child(2) { background: #d39d37; }
.console-bar > span:nth-child(3) { background: #3aab72; }
.console-bar strong { margin-left: 8px; color: #8f8580; font: 11px ui-monospace, monospace; }
.console-output { min-height: 420px; max-height: 540px; overflow-y: auto; padding: 20px; }
.console-output pre { margin: 0 0 7px; color: #b9e7ca; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.console-form { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #30282a; padding: 13px 17px; font: 11px ui-monospace, monospace; }
.console-form span { color: var(--green); }
.console-form input { min-height: 36px; border: 0; background: transparent; font: inherit; }
.console-form input:focus { box-shadow: none; }
.console-form button { background: #1a1517; border: 1px solid var(--line); color: var(--gold-light); border-radius: 6px; padding: 8px 11px; cursor: pointer; }
.console-help { margin-top: 12px; color: var(--muted); font-size: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.console-help code { color: #cbe6d4; background: rgba(0,0,0,.45); padding: 5px 7px; border-radius: 5px; }

.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed rgba(255,255,255,.12); border-radius: 11px; }
.empty-state strong { color: #eee2d9; display: block; margin-bottom: 6px; }
.empty-state p { margin: 0; }
.full-span { grid-column: 1 / -1; }
.error-page { max-width: 650px; margin: 90px auto 0; text-align: center; padding: 50px; }
.error-page img { width: 120px; height: 120px; object-fit: contain; }
.error-page h1 { font-size: 40px; margin: 0 0 10px; }
.error-page > p:not(.eyebrow) { color: var(--muted); margin-bottom: 26px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr 420px; gap: 40px; }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
  .champion-card { grid-template-columns: 95px 1fr; }
  .champion-card img { width: 95px; }
  .champion-card > b { display: none; }
  .character-profile { grid-template-columns: 220px 1fr; }
  .attribute-wheel { grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); }
  .attribute-wheel div { min-height: 54px; }
  .admin-character-card { grid-template-columns: 110px 1fr; }
  .admin-character-card > img { width: 105px; }
  details.reward-box { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
}

@media (max-width: 860px) {
  .page-shell { width: min(100% - 26px, 1240px); }
  .site-header { min-height: 76px; }
  .brand img { width: 47px; height: 47px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    display: none;
    width: min(310px, calc(100vw - 26px));
    padding: 14px;
    background: #0d0b0c;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav > a, .nav-logout button { display: block; width: 100%; text-align: left; padding: 12px; }
  .main-nav .nav-login { margin-top: 4px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-metrics { justify-content: center; }
  .register-card { max-width: 580px; width: 100%; margin: 0 auto; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 110px; }
  .feature-band article:last-child { border-bottom: 0; }
  .section-grid { grid-template-columns: 1fr; }
  .champion-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .auth-story { text-align: center; }
  .auth-story > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .check-list { max-width: 300px; margin: 20px auto; text-align: left; }
  .auth-card { width: min(100%, 480px); margin: auto; }
  .compact-hero { align-items: start; flex-direction: column; }
  .dashboard-grid, .admin-layout, .admin-account-grid { grid-template-columns: 1fr; }
  .dashboard-side, .admin-side { grid-template-columns: repeat(2, 1fr); }
  .character-content { grid-template-columns: 1fr; }
  .danger-card { max-width: none; }
  .account-admin-hero { grid-template-columns: 1fr; }
  .log-table article { grid-template-columns: 120px 1fr 1fr; }
  .log-table p { grid-column: 2 / -1; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 18px, 1240px); }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 8px; }
  .hero { padding-top: 48px; gap: 50px; }
  .hero h1, .auth-story h1 { font-size: 48px; }
  .hero-text { font-size: 15px; }
  .hero-metrics { gap: 20px; }
  .register-card, .auth-card { padding: 22px 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .status-grid { grid-template-columns: 1fr; }
  .section-grid { gap: 20px; }
  .metric-strip { width: 100%; }
  .metric-strip div { flex: 1; min-width: 0; padding: 12px; }
  .ranking-list { padding: 5px 10px 15px; }
  .ranking-row { grid-template-columns: 28px 56px 1fr auto; gap: 8px; min-height: 76px; }
  .ranking-avatar { width: 54px; height: 60px; }
  .ranking-meta { display: none; }
  .players-grid { grid-template-columns: 1fr; }
  .player-card { grid-template-columns: 110px 1fr; }
  .sprite-stage img { width: 110px; }
  .dashboard-heading { padding-top: 35px; align-items: start; flex-direction: column; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-stats article { min-height: 84px; padding: 12px; }
  .character-grid { grid-template-columns: 1fr; }
  .dashboard-side, .admin-side { grid-template-columns: 1fr; }
  .character-profile { grid-template-columns: 1fr; padding: 17px; gap: 17px; text-align: center; }
  .profile-stage { height: 250px; }
  .profile-stage img { height: 245px; }
  .profile-levels { grid-template-columns: repeat(2, 1fr); }
  .attribute-wheel { grid-template-columns: repeat(3, 1fr); }
  .inventory-grid { grid-template-columns: 1fr; }
  .admin-heading { align-items: start; }
  .admin-shortcuts { width: 100%; }
  .admin-shortcuts a { flex: 1; text-align: center; }
  .account-table-card { padding: 15px; }
  .account-table-card .section-heading { align-items: start; flex-direction: column; }
  .search-form { width: 100%; }
  .account-admin-facts { grid-template-columns: 1fr; }
  .admin-character-card { grid-template-columns: 85px 1fr; padding: 12px; }
  .admin-character-card > img { width: 80px; height: 120px; }
  .console-output { min-height: 340px; }
  .console-form { grid-template-columns: 1fr auto; }
  .console-form span { grid-column: 1 / -1; }
  .log-table article { grid-template-columns: 1fr; gap: 5px; }
  .log-table p { grid-column: 1; }
  footer { flex-wrap: wrap; padding: 25px 0; gap: 13px; }
  .footer-brand { width: 100%; }
}
