:root {
  --bg: #07080a;
  --bg-2: #0b0d11;
  --card: #101217;
  --card-2: #161a22;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(232,163,23,.35);
  --amber: #e8a317;
  --amber-2: #ffc04a;
  --amber-dim: rgba(232,163,23,.12);
  --red: #e23d2b;
  --text: #eceae6;
  --muted: #8b8e96;
  --gold: #f0c14b;
  --green: #3dba6a;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Outfit", sans-serif;
  --display: "Bebas Neue", "Barlow Condensed", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(232,163,23,.08), transparent 60%),
    radial-gradient(800px 400px at 100% 20%, rgba(226,61,43,.05), transparent 50%);
}
.main, .app, .topbar { position: relative; z-index: 1; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; height: 84px;
  background: rgba(7,8,10,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; display: block; }
.site-banner { width: 100%; max-height: 320px; object-fit: cover; display: block; border-radius: 16px; margin-bottom: 12px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e23d2b, #e8a317);
  color: #111; font-family: var(--display); font-size: 24px; letter-spacing: .5px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.brand-txt {
  font-family: var(--display); font-size: 28px; letter-spacing: 1px; line-height: .85;
  display: flex; flex-direction: column;
}
.brand-txt small { font-family: var(--cond); font-size: 9px; letter-spacing: 1.6px; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 6px; margin: 0 auto; flex: 1; justify-content: center; }
.nav a {
  font-family: var(--cond); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  font-size: 17px; padding: 12px 16px; color: #c9c6bf; border-radius: 10px; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav a.on { color: var(--amber); background: rgba(232,163,23,.08); }
.nav a.nav-vip {
  background: linear-gradient(180deg, #2a210c, #1a1508);
  border: 1px solid rgba(232,163,23,.45);
  color: var(--amber-2) !important;
  padding: 11px 16px;
  font-size: 17px;
}
.nav a.nav-coins, .nav a[href*="moedas"] { display: none !important; }

.vip-featured {
  box-shadow: 0 0 0 1px rgba(232,163,23,.35), 0 16px 40px rgba(232,163,23,.12);
  transform: translateY(-4px);
}
.soft-cta-vip {
  background: linear-gradient(90deg, rgba(232,163,23,.12), rgba(226,61,43,.08));
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.event-card .event-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px;
}
.event-tag {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 999px;
}
.event-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
  font-size: 12px; color: var(--muted);
}
.event-prize {
  margin-top: 12px; padding: 8px 10px; border-radius: 10px;
  background: rgba(232,163,23,.1); border: 1px solid rgba(232,163,23,.25);
  color: var(--amber-2); font-size: 13px; font-weight: 600;
}
.event-card.st-soon { border-color: rgba(61,186,106,.3); }
.event-card.st-idea { opacity: .92; }
.vip-shop .card h3 { margin-top: 4px; }
.nav a.nav-map {
  background: linear-gradient(180deg, #122018, #0c1410);
  border: 1px solid rgba(61,186,106,.45);
  color: #8ef0b0 !important;
  padding: 11px 18px;
  font-size: 18px;
}

.top-right { display: flex; align-items: center; gap: 10px; position: relative; flex-shrink: 0; }
.chip-lang, .chip-gold {
  font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 999px; background: #0e1014; cursor: pointer;
}
.chip-gold { color: var(--gold); border-color: rgba(240,193,75,.3); cursor: default; }
.lang-switch { position: relative; }
.lang-menu {
  display: none; position: absolute; right: 0; top: 48px; min-width: 180px;
  background: #12141a; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; z-index: 90;
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #d7d4cc; }
.lang-menu a:hover, .lang-menu a.on { background: #1b1f28; color: var(--amber); }
.btn-steam {
  background: #171a21; border: 1px solid rgba(232,163,23,.55); color: var(--amber-2);
  padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 700; white-space: nowrap;
}
.btn-steam:hover { background: var(--amber); color: #1a1204; }
.avatar-btn { width: 44px; height: 44px; border: 2px solid rgba(232,163,23,.45); padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: none; display: inline-flex; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-top { width: 48px; height: 48px; border-color: rgba(61,186,106,.55); }
.um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.um-head strong { display: block; }
.um-head span { font-size: 11px; color: var(--muted); word-break: break-all; }
.user-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #d7d4cc; }
.user-menu a:hover { background: #1b1f28; }
.user-menu a.danger { color: #f07167; }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 22px; }

.main { min-height: calc(100vh - 84px); }

.hero-wrap { padding: 28px 28px 8px; }
.server-switch { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.pill {
  border: 1px solid var(--line); background: #0e1014; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-family: var(--cond); letter-spacing: 1px; text-transform: uppercase; font-size: 13px;
}
.pill.on {
  color: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 1px rgba(232,163,23,.2), 0 0 24px rgba(232,163,23,.12);
}

.section { padding: 18px 28px 8px; max-width: 1280px; margin: 0 auto; }
.section-h {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.section-h h2 {
  font-family: var(--display); font-size: 42px; letter-spacing: 1px; margin: 0; line-height: .9;
}
.section-h p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.kicker {
  font-family: var(--cond); letter-spacing: 2px; text-transform: uppercase; color: var(--amber);
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}

.island-top {
  position: relative;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: 28px;
}
.island-title { text-align: center; margin: 4px 0 22px; position: relative; z-index: 1; }
.island-title p { color: var(--muted); margin: 10px auto 0; max-width: 560px; }
.shine-title {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 92px);
  letter-spacing: 4px;
  margin: 6px 0 0;
  line-height: .85;
  background: linear-gradient(90deg, #8a6a1a 0%, #ffe08a 35%, #fff 50%, #ffe08a 65%, #8a6a1a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
  filter: drop-shadow(0 0 18px rgba(232,163,23,.35));
}
@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.pulse-kicker { justify-content: center; animation: kicker-glow 2.4s ease-in-out infinite; }
@keyframes kicker-glow {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(232,163,23,.6); }
}

.live-pill-public {
  display: inline-flex; align-items: center; gap: 8px;
}
.live-pill-public i {
  width: 8px; height: 8px; border-radius: 50%; background: #3dba6a;
  box-shadow: 0 0 0 0 rgba(61,186,106,.7);
  animation: live-ping 1.6s ease-out infinite;
}
@keyframes live-ping {
  0% { box-shadow: 0 0 0 0 rgba(61,186,106,.55); }
  70% { box-shadow: 0 0 0 8px rgba(61,186,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,186,106,0); }
}

.king-banner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(240,193,75,.45);
  background:
    linear-gradient(90deg, rgba(232,163,23,.16), rgba(12,14,18,.9) 42%),
    #101217;
  box-shadow: 0 0 0 1px rgba(232,163,23,.08), 0 20px 50px rgba(0,0,0,.35);
  animation: king-pulse 3s ease-in-out infinite;
}
@keyframes king-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232,163,23,.15), 0 18px 40px rgba(0,0,0,.35); }
  50% { box-shadow: 0 0 24px 2px rgba(232,163,23,.28), 0 18px 40px rgba(0,0,0,.35); }
}
.king-banner img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold);
  animation: ring-spin 8s linear infinite;
  box-shadow: 0 0 0 4px rgba(240,193,75,.18);
}
@keyframes ring-spin {
  0% { box-shadow: 0 0 0 4px rgba(240,193,75,.12), 0 0 16px rgba(240,193,75,.4); }
  50% { box-shadow: 0 0 0 7px rgba(240,193,75,.05), 0 0 28px rgba(240,193,75,.55); }
  100% { box-shadow: 0 0 0 4px rgba(240,193,75,.12), 0 0 16px rgba(240,193,75,.4); }
}
.king-banner h3 { margin: 0; font-size: 22px; }
.king-banner p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.king-banner .btn { margin-left: auto; }
.king-crown {
  font-size: 28px; animation: crown-bob 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(240,193,75,.8));
}
@keyframes crown-bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-6px) rotate(8deg); }
}

.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ember {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--amber); opacity: 0;
  animation: ember-rise 7s linear infinite;
}
.ember:nth-child(1) { left: 8%; animation-delay: 0s; }
.ember:nth-child(2) { left: 18%; animation-delay: 1.1s; width: 3px; height: 3px; }
.ember:nth-child(3) { left: 28%; animation-delay: 2.4s; }
.ember:nth-child(4) { left: 38%; animation-delay: .6s; }
.ember:nth-child(5) { left: 48%; animation-delay: 3s; width: 5px; height: 5px; }
.ember:nth-child(6) { left: 58%; animation-delay: 1.8s; }
.ember:nth-child(7) { left: 66%; animation-delay: 4.2s; }
.ember:nth-child(8) { left: 74%; animation-delay: .3s; }
.ember:nth-child(9) { left: 82%; animation-delay: 2.8s; }
.ember:nth-child(10) { left: 90%; animation-delay: 5s; }
.ember:nth-child(11) { left: 12%; animation-delay: 3.6s; }
.ember:nth-child(12) { left: 44%; animation-delay: 6s; }
.ember:nth-child(13) { left: 70%; animation-delay: 1.4s; }
.ember:nth-child(14) { left: 95%; animation-delay: 2s; }
@keyframes ember-rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .85; }
  100% { transform: translateY(-420px) scale(1.2); opacity: 0; }
}

.island-more { text-align: center; margin: 16px 0 0; position: relative; z-index: 1; }

.panel.featured-pve {
  animation: panel-glow 3.2s ease-in-out infinite;
}
@keyframes panel-glow {
  0%, 100% { border-color: rgba(232,163,23,.35); box-shadow: 0 0 0 1px rgba(232,163,23,.08), 0 16px 40px rgba(0,0,0,.3); }
  50% { border-color: rgba(255,192,74,.7); box-shadow: 0 0 28px rgba(232,163,23,.22), 0 16px 40px rgba(0,0,0,.3); }
}

.podium { position: relative; animation: rise-in .6s ease both; }
.podium.p2 { animation-delay: .15s; }
.podium.p3 { animation-delay: .25s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in-king {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(-6px); }
}
@keyframes float-king {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(-12px); }
}
.podium.p1 {
  animation: rise-in-king .55s ease both, float-king 2.8s ease-in-out .55s infinite;
}
.podium.p1 .crown {
  position: absolute; top: -2px; left: 50%; margin-left: -12px;
  font-size: 18px; animation: crown-bob 1.8s ease-in-out infinite;
}
.podium.p1 img { animation: ring-spin 7s linear infinite; }
.rank-row { animation: rise-in .5s ease both; }
.rank-row:nth-child(1) { animation-delay: .2s; }
.rank-row:nth-child(2) { animation-delay: .28s; }
.rank-row:nth-child(3) { animation-delay: .36s; }
.rank-row:nth-child(4) { animation-delay: .44s; }
.rank-row:nth-child(5) { animation-delay: .52s; }
.rank-row:nth-child(6) { animation-delay: .6s; }
.rank-row:nth-child(7) { animation-delay: .68s; }

@media (prefers-reduced-motion: reduce) {
  .shine-title, .ember, .king-banner, .king-crown, .podium, .rank-row,
  .live-pill-public i, .panel.featured-pve, .pulse-kicker, .podium.p1 img,
  .lore-media img, .shot img, .shot { animation: none !important; }
}

/* TOP RANKINGS — homepage hero */
.top-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px;
}
.top-hero-extra {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}
.weapon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.weapon-card h3 {
  margin: 0 0 10px;
  font-family: var(--cond);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 16px;
}
.panel {
  background: linear-gradient(180deg, #12141a, #0d0f14);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.panel.glow { border-color: rgba(232,163,23,.28); box-shadow: inset 0 0 0 1px rgba(232,163,23,.08); }
.panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-h h3 { margin: 0; font-family: var(--cond); letter-spacing: 1.5px; text-transform: uppercase; font-size: 18px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; font-size: 12px; cursor: pointer;
}
.tab.on { color: var(--amber); border-color: var(--amber); background: var(--amber-dim); }

.podiums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.podium {
  text-align: center; padding: 14px 8px 12px; border-radius: 12px;
  background: #0c0e13; border: 1px solid var(--line);
}
.podium.p1 { border-color: rgba(240,193,75,.5); background: linear-gradient(180deg, #1c1608, #0c0e13); }
.podium.p2 { border-color: rgba(192,198,210,.3); }
.podium.p3 { border-color: rgba(196,120,64,.35); }
.podium img { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; object-fit: cover; border: 2px solid var(--line); }
.podium.p1 img { border-color: var(--gold); width: 68px; height: 68px; }
.podium h3 { margin: 0; font-size: 14px; }
.podium .muted { margin: 2px 0 8px; font-size: 11px; color: var(--muted); }
.podium-pos { font-size: 20px; }
.podium-stat { font-size: 11px; color: var(--muted); }
.podium-stat strong { display: block; color: var(--amber-2); font-size: 18px; font-family: var(--cond); }

.rank-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-mini td { padding: 8px 6px; border-top: 1px solid var(--line); }
.rank-mini .n { color: var(--muted); width: 24px; }
.kd-good { color: var(--green); font-weight: 600; }
.kd-bad { color: var(--red); font-weight: 600; }
.more-link { display: inline-block; margin-top: 10px; color: var(--amber); font-size: 13px; }

/* products */
.prod-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
.prod {
  background: #0e1015; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.prod:hover { transform: translateY(-3px); border-color: rgba(232,163,23,.45); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.prod:hover .prod-art img { transform: scale(1.08); }
.prod-art { height: 88px; display: grid; place-items: center; background: #0a0b0e; position: relative; overflow: hidden; }
.prod-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.prod-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,10,.1), rgba(7,8,10,.55));
  pointer-events: none;
}
.prod-art svg { display: none; }
.badge-off {
  position: absolute; top: 6px; right: 6px; background: #e23d2b; color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 5px; z-index: 2;
}
.prod-body { padding: 8px 9px 10px; }
.prod-body h3 { margin: 0; font-size: 11px; font-family: var(--cond); letter-spacing: .5px; text-transform: uppercase; line-height: 1.2; }
.prod-desc { font-size: 11px; min-height: 0; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; gap: 6px; align-items: baseline; margin-top: 4px; font-size: 13px; }
.price b { color: #fff; }
.price s { color: var(--muted); font-size: 11px; }

.soft-cta {
  margin: 28px auto; max-width: 1280px; padding: 0 28px;
}
.soft-cta-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
  background: linear-gradient(90deg, rgba(232,163,23,.08), transparent 55%);
}
.soft-cta h3 { margin: 0; font-size: 18px; }
.soft-cta p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--amber); color: #1a1204; font-weight: 700; border: 0;
  padding: 10px 16px; border-radius: 9px; cursor: pointer;
}
.btn:hover { background: var(--amber-2); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn.block { width: 100%; }
.btn.tiny { padding: 7px 10px; font-size: 12px; }
.btn.cyan { background: #1ad4d4; color: #042424; }

.lore {
  margin-top: 20px; position: relative; min-height: 380px;
  display: grid; place-items: center; text-align: center; padding: 80px 20px 56px;
  overflow: hidden; border-top: 1px solid var(--line);
}
.lore-media { position: absolute; inset: 0; z-index: 0; }
.lore-media img {
  width: 100%; height: 120%; object-fit: cover; object-position: center;
  filter: saturate(.7) brightness(.45);
  animation: kenburns 22s ease-in-out infinite alternate;
}
.lore::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,.35) 40%, rgba(7,8,10,.88) 100%),
    radial-gradient(500px 180px at 50% 40%, rgba(232,163,23,.14), transparent 70%);
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.12) translateY(-4%); }
}
.lore-copy { position: relative; z-index: 2; }
.lore-copy .kicker { justify-content: center; margin-bottom: 6px; }
.lore h2 { font-family: var(--display); font-size: clamp(56px, 10vw, 96px); margin: 0; letter-spacing: 8px; line-height: .85; text-shadow: 0 8px 40px rgba(0,0,0,.6); }
.lore p { max-width: 640px; margin: 14px auto 0; color: #ddd9d0; }

.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 8px 28px 40px; max-width: 1280px; margin: 0 auto; }
.shot {
  height: 128px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  position: relative; margin: 0; animation: shot-in .7s ease both;
}
.shot.d1 { animation-delay: .05s; }
.shot.d2 { animation-delay: .12s; }
.shot.d3 { animation-delay: .19s; }
.shot.d4 { animation-delay: .26s; }
.shot.d5 { animation-delay: .33s; }
@keyframes shot-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06);
  animation: kenburns 18s ease-in-out infinite alternate;
  transition: transform .45s ease, filter .45s ease;
}
.shot.d2 img { animation-delay: -4s; }
.shot.d3 img { animation-delay: -8s; }
.shot.d4 img { animation-delay: -11s; }
.shot.d5 img { animation-delay: -15s; }
.shot:hover img { transform: scale(1.16); filter: brightness(1.12); animation-play-state: paused; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  font-family: var(--cond); letter-spacing: 1px; text-transform: uppercase;
  font-size: 11px; color: #f0ece4;
}

.site-foot { border-top: 1px solid var(--line); padding: 36px 28px 20px; background: #08090c; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; max-width: 1280px; margin: 0 auto 24px; }
.site-foot h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.site-foot a, .site-foot p { display: block; color: #b7b4ac; font-size: 14px; margin: 6px 0; }
.copy { text-align: center; color: #666; font-size: 12px; }

.page-head { padding: 36px 28px 10px; max-width: 1280px; margin: 0 auto; }
.page-head h1 { font-family: var(--display); font-size: 64px; margin: 0; letter-spacing: 2px; line-height: .9; }
.page-head p { color: var(--muted); margin: 8px 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 28px 18px; }
.search {
  background: #0e1015; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; width: min(320px, 100%);
}

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #0e1015; }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
.rank-table th { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.rank-table .pos { color: var(--muted); width: 48px; font-weight: 700; }
.rank-table tr:first-child td.pos { color: var(--gold); }
.player { display: flex; align-items: center; gap: 10px; }
td.player { display: flex; }
.player img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.player span { display: block; color: var(--muted); font-size: 11px; }
.rep { color: var(--amber); font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-lg { font-size: 22px; font-family: var(--cond); margin: 8px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.card h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.vip { position: relative; overflow: hidden; }
.vip::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--amber); }
.vip-attrs { margin: 8px 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(232,163,23,.08); border: 1px solid rgba(232,163,23,.28); }
.vip-attrs span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vip-attrs strong { font-family: var(--cond); font-size: 22px; color: var(--amber-2); letter-spacing: .04em; }
.vip-attrs small { display: block; color: #c9c6bf; font-size: 12px; }

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.crate { text-align: center; }
.crate .prod-art { height: 110px; }
.odds { font-size: 12px; color: var(--muted); min-height: 40px; }

.map-board {
  position: relative;
  width: min(100%, min(82vh, 920px));
  max-width: min(82vh, 920px);
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: min(82vh, 920px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #071018;
  box-shadow: inset 0 0 80px rgba(0,0,0,.35);
  cursor: grab;
  touch-action: none;
  contain: layout paint;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.map-board, .map-board * {
  -webkit-user-select: none !important;
  user-select: none !important;
}
.map-board ::selection { background: transparent; color: inherit; }
.map-board.is-drag { cursor: grabbing; }
.map-world {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  transform-origin: 0 0;
  --inv: 1;
}
.map-board.is-gesture .map-world { will-change: transform; }
.map-board.is-gesture .pin,
.map-board.is-gesture .pin-figure,
.map-board.is-gesture .map-label {
  filter: none;
}
.map-board.is-gesture .pin-dot { animation: none; }
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 20% 20%;
  pointer-events: none;
  z-index: 1;
}
.map-board.hide-grid .map-grid { opacity: 0; }
.map-sat {
  position: absolute; inset: 0; pointer-events: none; opacity: 1;
}
.map-sat img {
  width: 100%; height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: high-quality;
}
.map-pins { position: absolute; inset: 0; z-index: 2; }
.map-hud {
  position: absolute; left: 10px; bottom: 10px; z-index: 4;
  display: flex; gap: 8px; font-size: 11px; color: #c9c6bf;
  pointer-events: none;
}
.map-hud span {
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.1);
  padding: 5px 8px; border-radius: 8px; font-family: ui-monospace, monospace;
}
.map-tip {
  position: absolute; z-index: 6; min-width: 190px; max-width: 260px;
  background: rgba(8,10,14,.96); border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px; padding: 12px 34px 12px 12px; font-size: 12px; color: #ddd;
  box-shadow: 0 16px 36px rgba(0,0,0,.55); pointer-events: auto;
}
.map-tip strong { display: block; margin-bottom: 4px; color: #fff; padding-right: 4px; }
.map-tip .tip-detail { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.map-tip .tip-note { margin-top: 6px; color: #e8a317; font-size: 10px; }
.map-tip .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #7dd3fc; margin: 4px 0; }
.map-tip .tip-close {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  border: 0; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff;
  font-size: 16px; line-height: 24px; cursor: pointer; padding: 0;
}
.map-tip .tip-close:hover { background: #b91c1c; }
.pin.chest {
  width: 16px; height: 16px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 0; color: #f59e0b;
  transform: translate(-50%, -50%) scale(var(--inv, 1));
  transform-origin: 50% 50%;
  border-radius: 0; position: absolute;
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 4px rgba(0,0,0,.6));
}
.pin.chest::after { display: none; }
.pin.mission {
  width: 16px; height: 16px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 0; color: #c084fc;
  transform: translate(-50%, -50%) scale(var(--inv, 1));
  transform-origin: 50% 50%;
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 4px rgba(0,0,0,.6));
}
.pin.mission::after { display: none; }
.pin.kit {
  width: 16px; height: 16px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 0; color: #34d399;
  transform: translate(-50%, -50%) scale(var(--inv, 1));
  transform-origin: 50% 50%;
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 4px rgba(0,0,0,.6));
}
.pin.kit::after { display: none; }
.map-swatch.kit { background: #34d399; box-shadow: 0 0 0 2px rgba(52,211,153,.25); }
.map-swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.map-swatch.ilha { background: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,.25); }
.map-swatch.chest { background: #f59e0b; }
.pin.trader {
  transform: translate(-50%, -50%) scale(var(--inv, 1));
  transform-origin: 50% 50%;
  width: 16px; height: 16px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 0; color: #f0c14b;
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 4px rgba(0,0,0,.6));
}
.pin.trader::after { display: none; }
.pin.poi {
  transform: translate(-50%, -50%) scale(var(--inv, 1));
  transform-origin: 50% 50%;
  width: 16px; height: 16px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 0;
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 3px rgba(0,0,0,.7));
}
.pin.poi::after { display: none; }
.pin.player {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: transparent; border: 0; padding: 0; cursor: pointer; z-index: 5;
  color: #fff;
  transform: translate(-50%, -100%) scale(var(--inv, 1));
  transform-origin: 50% 100%;
  filter: none;
}
.pin.player::after { display: none; }
.pin-figure {
  display: grid; place-items: center; color: #3dba6a;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 1px 2px #000);
}
.pin.player.you .pin-figure { color: #38bdf8; }
.pin.player.clan .pin-figure { color: #a78bfa; }
.pin-svg { display: block; overflow: visible; pointer-events: none; }
.pin:not(.player) .pin-svg { width: 15px; height: 15px; }
.pin-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3dba6a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(61,186,106,.28), 0 0 16px rgba(61,186,106,.7);
  animation: pinPulse 2.2s ease-out infinite;
}
.pin.player.you .pin-dot { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.35), 0 0 16px rgba(56,189,248,.7); }
.pin.player.clan .pin-dot { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.35), 0 0 16px rgba(167,139,250,.6); }
@keyframes pinPulse {
  0% { box-shadow: 0 0 0 0 rgba(61,186,106,.45), 0 0 12px rgba(61,186,106,.5); }
  70% { box-shadow: 0 0 0 10px rgba(61,186,106,0), 0 0 12px rgba(61,186,106,.5); }
  100% { box-shadow: 0 0 0 0 rgba(61,186,106,0), 0 0 12px rgba(61,186,106,.5); }
}
.pin-name {
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.72); padding: 2px 8px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.18);
  letter-spacing: .2px;
}
.pin.chest .pin-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #fbbf24; color: #111;
  font-size: 10px; font-weight: 800; line-height: 16px;
}
.map-shell.map-shell-radar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}
.map-shell-radar .map-toolbar { grid-column: 1 / -1; margin-bottom: 0; }
.map-shell-radar .map-stage { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.map-shell-radar .map-toolbar { align-self: stretch; }
.map-shell-radar .map-board {
  width: min(100%, calc(100vh - 150px));
  max-width: min(100%, calc(100vh - 150px));
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: calc(100vh - 150px);
}
.map-shell-radar .map-panel {
  position: static;
  width: auto;
  max-height: calc(100vh - 150px);
  z-index: 8;
}
.map-stage { display: grid; gap: 10px; min-width: 0; }
.map-panel {
  background: linear-gradient(180deg, #12151c, #0c0e12);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 14px 14px 18px;
  max-height: min(82vh, 860px); overflow: auto;
  display: grid; gap: 16px; align-content: start;
}
.map-panel h3 {
  margin: 0 0 10px; font-family: var(--cond); letter-spacing: 1.4px;
  text-transform: uppercase; font-size: 13px; color: var(--muted);
}
.map-layer-list { display: grid; gap: 6px; }
.map-layer {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05); font-size: 13px; cursor: pointer;
}
.map-layer.sub { padding-left: 22px; font-size: 12px; background: transparent; border: 0; }
.map-sublayers { display: grid; gap: 2px; margin: 2px 0 8px 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.08); }
.map-board.drop-pin { cursor: crosshair; }
.pin.death {
  transform: translate(-50%, -50%) scale(var(--inv, 1)); width: 15px; height: 15px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; color: #ff6b6b;
  filter: drop-shadow(0 1px 2px #000);
}
.pin.death::after { display: none; }
.pin.lockpick {
  transform: translate(-50%, -50%) scale(var(--inv, 1)); width: 15px; height: 15px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; color: #fb923c;
  filter: drop-shadow(0 1px 2px #000);
}
.pin.lockpick::after { display: none; }
.pin.mark {
  transform: translate(-50%, -100%) scale(var(--inv, 1)); width: 16px; height: 16px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; color: #38bdf8;
  filter: drop-shadow(0 1px 2px #000);
}
.pin.mark::after { display: none; }
.pin.sentinel {
  transform: translate(-50%, -50%) scale(var(--inv, 1)); width: 15px; height: 15px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; color: #818cf8;
  filter: drop-shadow(0 1px 2px #000);
}
.pin.sentinel::after { display: none; }
.pin.veh {
  transform: translate(-50%, -50%) scale(var(--inv, 1)); width: 16px; height: 16px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; color: #7dd3fc;
  filter: drop-shadow(0 1px 2px #000);
}
.pin.veh::after { display: none; }
.pin.poi.g-gas { color: #ffe600; }
.pin.poi.g-police { color: #2f9bff; }
.pin.poi.g-bunker { color: #00d6a0; }
.pin.poi.g-bunker_apex { color: #72ff1a; }
.pin.poi.g-bunker_abandoned { color: #6f5cff; }
.pin.poi.g-bunker_secret { color: #c026ff; }
.pin.poi.g-killbox { color: #ff2233; }
.map-range { display: grid; gap: 6px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.map-range input[type=range] { width: 100%; }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.map-tool {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: #0e1014; color: #c9c6bf; cursor: pointer; font-size: 16px;
}
.map-tool.on, .map-tool:hover { border-color: var(--amber); color: var(--amber); }
.map-stack-hint { margin: 8px 0 0; font-size: 12px; }
.map-section { max-width: 1400px; }
@media (max-width: 980px) {
  .map-shell.map-shell-radar { grid-template-columns: 1fr; }
  .map-shell-radar .map-toolbar { grid-column: auto; }
  .map-shell-radar .map-panel {
    position: static;
    width: auto;
    max-height: none;
    margin-top: 4px;
  }
  .map-shell-radar .map-board {
    width: min(100%, 70vh);
    max-width: min(100%, 70vh);
    height: auto;
    max-height: 70vh;
  }
}
.map-label {
  position: absolute; transform: translate(-50%, -50%) scale(var(--inv, 1));
  font-family: var(--cond); letter-spacing: 1.6px; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.55); text-shadow: 0 1px 4px #000;
  pointer-events: none; z-index: 1;
  -webkit-user-select: none; user-select: none;
}
.map-label::before { content: attr(data-lab); }
.pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--inv, 1));
  transform-origin: 50% 50%;
  font-size: 11px; white-space: nowrap; z-index: 2;
  color: #ffc04a; font-weight: 600;
  background: transparent; border: 0;
  padding: 0; cursor: pointer;
  pointer-events: auto;
}
.pin::after { display: none; }
.pin.base { color: #a78bfa; }
.pin.veh { color: #7dd3fc; }
.pin.player {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: transparent; border: 0; padding: 0; cursor: pointer; z-index: 5;
  color: #fff;
  transform: translate(-50%, -100%) scale(var(--inv, 1));
  transform-origin: 50% 100%;
}
.pin.player::after { display: none; }
.pin-name {
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.78); padding: 2px 8px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.2);
}
.map-shell { display: grid; gap: 14px; }
.map-shell-admin {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
}
.map-toolbar {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.map-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.map-status i {
  width: 8px; height: 8px; border-radius: 50%; background: #666;
}
.map-status.on { color: #b6f0c8; border-color: rgba(61,186,106,.3); }
.map-status.on i { background: #3dba6a; box-shadow: 0 0 0 3px rgba(61,186,106,.2); }
.map-count { font-family: var(--cond); letter-spacing: 1px; color: var(--amber-2); }
.map-side {
  background: linear-gradient(180deg, #12151c, #0e1116);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 14px;
  max-height: min(78vh, 820px); overflow: auto;
}
.map-side h3 { margin: 0 0 10px; font-family: var(--cond); letter-spacing: 1px; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.map-player-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-player-list li {
  display: grid; gap: 2px; padding: 10px 10px;
  border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
}
.map-player-list strong { font-size: 14px; }
.map-player-list span { font-size: 11px; color: var(--muted); }
@media (max-width: 900px) {
  .map-shell-admin { grid-template-columns: 1fr; }
  .map-side { max-height: 280px; }
}
.login-box {
  max-width: 460px; margin: 80px auto; padding: 28px; text-align: center;
}
.login-box h1 { font-family: var(--display); font-size: 48px; margin: 0 0 8px; }
.sid { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); word-break: break-all; }

/* app / player */
.is-app { background: #080a0e; }
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.aside {
  background: #0b0d12; border-right: 1px solid var(--line); padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.aside .brand { padding: 6px 8px 16px; }
.aside-user { display: flex; gap: 10px; align-items: center; padding: 8px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; }
.aside-user img { width: 36px; height: 36px; border-radius: 50%; }
.aside-user span { display: block; font-size: 12px; color: var(--gold); }
.aside-nav { display: flex; flex-direction: column; gap: 2px; }
.aside-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: #b7b4ac; font-size: 14px;
}
.aside-nav a:hover { background: #141820; color: #fff; }
.aside-nav a.on {
  background: linear-gradient(90deg, rgba(232,163,23,.16), transparent);
  color: var(--amber-2); border: 1px solid rgba(232,163,23,.25);
}
.app-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.app-top h1 { margin: 0; font-size: 22px; }
.app-body { padding: 20px 24px 40px; }
.live-pill {
  font-size: 12px; color: #9ad7a8; border: 1px solid rgba(61,186,106,.3);
  padding: 6px 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
}
.live-pill i { width: 8px; height: 8px; background: #3dba6a; border-radius: 50%; display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #10141b; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat b { display: block; font-size: 22px; margin-top: 4px; }

.progress { height: 8px; background: #1b1f28; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--amber); width: 0; }

.flash { margin: 12px 28px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.flash-ok { background: rgba(61,186,106,.12); border: 1px solid rgba(61,186,106,.3); }
.flash-warn { background: rgba(232,163,23,.12); border: 1px solid rgba(232,163,23,.3); }
.flash-err { background: rgba(226,61,43,.12); border: 1px solid rgba(226,61,43,.3); }
.app-body .flash { margin: 0 0 14px; }

.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  background: #0e1015; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 90px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12px; color: var(--muted); }
.field-card { padding: 20px !important; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: grid; gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-family: var(--cond);
  color: #9a9ea8;
}
.field span em { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font); color: var(--muted); font-size: 11px; }
.field input, .field select, .field textarea {
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  background: #0a0c11;
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: rgba(255,255,255,.14);
}
.field-span { grid-column: 1 / -1; }
.switch-field {
  align-content: start;
}
@media (max-width: 720px) {
  .field-grid { grid-template-columns: 1fr; }
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.steps { counter-reset: s; display: grid; gap: 12px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 56px; position: relative; background: #101217; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: #111; font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
code, .code { background: #0a0c10; border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; font-size: 12px; }
pre.codeblock {
  background: #0a0c10; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  overflow: auto; font-size: 12px; line-height: 1.45;
}

.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #3dba6a; display: inline-block; margin-right: 6px; }
.online-dot.off { background: #555; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick-link { display: block; }
.quick-link h3 { margin: 0 0 6px; font-size: 16px; }
.quick-link p { margin: 0; color: var(--muted); font-size: 13px; }
.sec-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.sec-tabs .tab { text-decoration: none; }
.sec-tabs .tab small { color: var(--muted); margin-left: 4px; }
.ini-search { width: 100%; margin: 0 0 14px; }
.ini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ini-card {
  background: #101217; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; display: grid; gap: 6px;
}
.ini-key { font-weight: 600; font-size: 14px; }
.ini-full { font-size: 10px; color: var(--muted); }
.ini-card textarea { min-height: 72px; }
.switch { display: inline-flex; align-items: center; width: 46px; height: 26px; position: relative; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i {
  width: 46px; height: 26px; border-radius: 99px; background: #2a2e38;
  border: 1px solid var(--line); display: block; position: relative;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #8b8e96; transition: .15s ease;
}
.switch input:checked + i { background: rgba(61,186,106,.25); border-color: rgba(61,186,106,.5); }
.switch input:checked + i::after { left: 23px; background: #3dba6a; }
.wh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wh-card {
  background: #101217; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; display: grid; gap: 8px;
}
.wh-head { display: flex; flex-direction: column; gap: 2px; }
.wh-head strong { font-size: 14px; }
.wh-head span { font-size: 12px; color: var(--muted); }
.file-list { display: grid; gap: 4px; }
.file-list a {
  display: block; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #101217; font-size: 13px;
}
.file-list a:hover { border-color: var(--amber); }
.file-edit { min-height: 280px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.log-view { max-height: 520px; white-space: pre-wrap; }

.admin-guide h3 { margin: 0 0 10px; }
.guide-steps { margin: 0; padding-left: 18px; }
.guide-steps li { margin: 6px 0; color: var(--muted); }
.guide-steps b { color: var(--text); }
.list { margin: 0; padding-left: 18px; }
.list li { margin: 6px 0; color: var(--muted); }

@media (max-width: 1280px) {
  .chip-lang { display: none; }
}
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .top-hero, .top-hero-extra, .grid-2, .grid-4, .case-grid, .weapon-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .aside { position: relative; height: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .lore h2 { font-size: 64px; }
  .king-banner .btn { margin-left: 0; }
  .ini-grid, .wh-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #0b0d12; padding: 12px; border-bottom: 1px solid var(--line);
  }
  .burger { display: block; }
  .prod-grid, .shots, .grid-3, .podiums { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 40px; }
  .topbar { padding: 0 14px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ========== ADMIN SHELL ========== */
body.is-admin-login {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(226,61,43,.18), transparent 55%),
    radial-gradient(700px 380px at 90% 10%, rgba(232,163,23,.14), transparent 50%),
    linear-gradient(165deg, #0a0b0e 0%, #12151c 45%, #0a0c10 100%);
}
.admin-login {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 16px;
  position: relative; z-index: 1;
}
.admin-login-card {
  width: min(420px, 100%);
  background: rgba(14,16,22,.92);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
}
.admin-login-brand { margin-bottom: 18px; }
.admin-login-kicker {
  margin: 0 0 4px; font-family: var(--cond); letter-spacing: 2px; text-transform: uppercase;
  font-size: 12px; color: var(--amber);
}
.admin-login-card h1 {
  margin: 0 0 18px; font-family: var(--display); font-size: 42px; letter-spacing: 1px; line-height: .95;
}
.admin-login-back {
  display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted);
}
.admin-login-back:hover { color: var(--amber-2); }

body.is-admin {
  background: #07080b;
}
body.is-admin::before {
  background:
    radial-gradient(800px 420px at 0% 0%, rgba(232,163,23,.06), transparent 55%),
    radial-gradient(600px 360px at 100% 0%, rgba(226,61,43,.04), transparent 50%);
}
.admin-shell {
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.admin-aside {
  background: #0a0b0f;
  border-right: 1px solid rgba(255,255,255,.05);
  padding: 18px 12px 22px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,163,23,.25) transparent;
}
.admin-brand {
  padding: 6px 8px !important;
  gap: 10px;
}
.admin-brand .brand-mark {
  width: 36px; height: 36px; font-size: 15px;
  clip-path: none;
  border-radius: 10px;
}
.admin-brand .brand-txt { font-size: 22px; }
.admin-brand .brand-txt small { font-size: 9px; opacity: .75; }
.admin-aside-status {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 4px 4px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(61,186,106,.08);
  border: 1px solid rgba(61,186,106,.18);
}
.admin-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #3dba6a;
  box-shadow: 0 0 0 4px rgba(61,186,106,.15);
  animation: adminPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes adminPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,186,106,.15); }
  50% { box-shadow: 0 0 0 7px rgba(61,186,106,.06); }
}
.admin-aside-status strong { display: block; font-size: 15px; line-height: 1.1; }
.admin-aside-status small { color: var(--muted); font-size: 11px; }

.admin-nav {
  gap: 6px !important;
  flex: 1;
  overflow: auto;
  padding-right: 2px;
}
.admin-nav-group {
  display: block;
  border: 0;
  margin: 0;
  background: transparent;
}
.admin-nav-group > summary.admin-nav-label {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #6e7280;
  padding: 10px 10px 6px;
  user-select: none;
}
.admin-nav-group > summary::-webkit-details-marker { display: none; }
.admin-nav-group > summary.admin-nav-label::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid #5c606a;
  border-bottom: 1.5px solid #5c606a;
  transform: rotate(45deg);
  transition: transform .15s ease;
  opacity: .8;
}
.admin-nav-group[open] > summary.admin-nav-label::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.admin-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px 6px;
}
.admin-nav a {
  border: 1px solid transparent !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  color: #a3a7b0 !important;
  font-size: 13px !important;
  font-weight: 500;
  gap: 10px !important;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.admin-nav a svg { opacity: .65; flex-shrink: 0; width: 16px; height: 16px; }
.admin-nav a:hover {
  background: rgba(255,255,255,.035) !important;
  color: #fff !important;
}
.admin-nav a:hover svg { opacity: 1; }
.admin-nav a.on {
  background: rgba(232,163,23,.1) !important;
  border-color: rgba(232,163,23,.2) !important;
  color: #ffc04a !important;
}
.admin-nav a.on svg { opacity: 1; color: var(--amber); }
.admin-nav-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav-foot a {
  border: 1px solid transparent !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  color: #a3a7b0 !important;
  font-size: 13px !important;
  display: flex; align-items: center; gap: 10px;
}
.admin-nav a.danger, .admin-nav-foot a.danger { color: #d88989 !important; }
.admin-nav a.danger:hover, .admin-nav-foot a.danger:hover {
  background: rgba(226,61,43,.1) !important; color: #ffb0b0 !important;
}

.admin-main {
  background:
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 100px),
    #08090d;
  min-width: 0;
}
.admin-top {
  padding: 16px 26px !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  background: rgba(8,9,13,.8);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 20;
  gap: 14px;
}
.admin-top-text { min-width: 0; }
.admin-crumb {
  margin: 0 0 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
  font-family: var(--cond);
}
.admin-top h1 {
  margin: 0 !important;
  font-family: var(--display);
  font-size: 32px !important;
  letter-spacing: .5px;
  line-height: 1;
}
.admin-top-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.admin-body {
  padding: 22px 26px 48px !important;
  max-width: 1240px;
}
.admin-body:has(.map-shell-radar) {
  max-width: none;
  padding-left: 14px !important;
  padding-right: 14px !important;
}
.admin-body:has(.map-shell-radar) .map-shell-radar .map-board {
  width: min(100%, calc(100vh - 210px));
  max-width: min(100%, calc(100vh - 210px));
  max-height: calc(100vh - 210px);
}
.admin-body:has(.map-shell-radar) .map-shell-radar .map-panel {
  max-height: calc(100vh - 210px);
}
.map-section:has(.map-shell-radar) {
  max-width: none;
}

.is-admin .card {
  background: #10131a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: none;
}
.is-admin .card h3 {
  font-family: var(--cond);
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 10px;
  color: #c9cdd6;
}
.is-admin .stat-grid { gap: 12px; }
.is-admin .stat {
  background: #10131a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
}
.is-admin .stat::after {
  content: "";
  position: absolute; right: -18px; top: -18px;
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,23,.1), transparent 70%);
  pointer-events: none;
}
.is-admin .stat span {
  font-family: var(--cond);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  color: #8b8e96;
}
.is-admin .stat b {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .4px;
  margin-top: 4px;
}
.is-admin .quick-link {
  transition: border-color .15s ease, background .15s ease;
  border: 1px solid rgba(255,255,255,.06);
  background: #10131a;
}
.is-admin .quick-link:hover {
  border-color: rgba(232,163,23,.3);
  background: #12161f;
}
.is-admin .admin-guide {
  background: linear-gradient(120deg, rgba(232,163,23,.08), transparent 42%), #10131a;
  border-color: rgba(232,163,23,.18);
}
.cmd-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(480px 200px at 100% 0%, rgba(232,163,23,.18), transparent 62%),
    linear-gradient(180deg, #171b24, #10131a);
}
.cmd-kicker {
  margin: 0 0 6px;
  font-family: var(--cond);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--amber-2);
}
.cmd-hero h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 64px;
  line-height: .9;
  letter-spacing: .5px;
}
.cmd-hero h2 small {
  margin-left: 6px;
  font-size: 22px;
  color: #8b8e96;
}
.cmd-note { margin: 10px 0 0; color: #b7bcc6; font-size: 13px; }
.cmd-hero-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cmd-hero-actions form { margin: 0; }
.cmd-empty { margin-bottom: 16px; }
.cmd-empty p { margin: 0 0 12px; color: #c9cdd6; }
.cmd-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.cmd-person {
  padding: 12px 14px;
  border-radius: 14px;
  background: #10131a;
  border: 1px solid rgba(255,255,255,.06);
}
.cmd-person strong { display: block; font-size: 15px; }
.cmd-person span {
  display: block;
  margin-top: 4px;
  color: #8b8e96;
  font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
}
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.cmd-card {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: #10131a;
  border: 1px solid rgba(255,255,255,.06);
  color: inherit;
}
.cmd-card:hover { border-color: rgba(232,163,23,.35); background: #141820; }
.cmd-card span {
  display: block;
  font-family: var(--cond);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  color: #8b8e96;
}
.cmd-card b {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .3px;
}
.cmd-card small { color: #9aa0aa; font-size: 12px; }
.cmd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd-links a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: #10131a;
  color: #d7dbe3;
  font-size: 13px;
}
.cmd-links a:hover { border-color: rgba(232,163,23,.4); color: #fff; }
@media (max-width: 900px) {
  .cmd-hero { flex-direction: column; align-items: flex-start; }
  .cmd-hero h2 { font-size: 48px; }
  .cmd-grid { grid-template-columns: 1fr 1fr; }
}
.is-admin .admin-table {
  background: #0c0e13;
  border-radius: 12px;
  overflow: hidden;
}
.is-admin .admin-table th {
  background: #12151c;
  font-family: var(--cond);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  border-bottom-color: rgba(255,255,255,.06);
}
.is-admin .admin-table td { border-bottom-color: rgba(255,255,255,.04); }
.kit-table input.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.is-admin .admin-table input {
  width: 100%;
  min-width: 0;
  background: #0a0c10;
  border-radius: 8px;
  padding: 8px 10px;
}
.is-admin input, .is-admin select, .is-admin textarea {
  background: #0a0c11;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 11px 13px;
}
.is-admin input:focus, .is-admin select:focus, .is-admin textarea:focus {
  outline: none;
  border-color: rgba(232,163,23,.4);
  box-shadow: 0 0 0 3px rgba(232,163,23,.1);
  background: #0c0e14;
}
.is-admin .btn {
  border-radius: 10px;
  letter-spacing: .2px;
}
.is-admin .btn.ghost {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
.is-admin .sec-tabs .tab,
.is-admin .tabs .tab {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.is-admin .sec-tabs .tab.on,
.is-admin .tabs .tab.on {
  background: rgba(232,163,23,.12);
  border-color: rgba(232,163,23,.28);
  color: var(--amber-2);
}
.is-admin .ini-card {
  background: #10131a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 14px;
}
.is-admin .file-edit, .is-admin textarea.file-edit {
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.is-admin .live-pill {
  background: rgba(61,186,106,.08);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-aside {
    position: relative;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .admin-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }
  .admin-nav-group { margin: 0; }
  .admin-nav-foot { grid-column: 1 / -1; margin-top: 0; }
  .admin-top { position: relative; }
  .admin-body { padding: 18px 16px 36px !important; }
}

/* ========== LOGS FEED ========== */
.log-toolbar { margin-bottom: 14px; }
.log-feed {
  display: grid;
  gap: 8px;
  max-height: min(72vh, 900px);
  overflow: auto;
  padding-right: 4px;
}
.log-card {
  background: #10131a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 12px 14px;
  border-left: 3px solid rgba(255,255,255,.12);
}
.log-card.tag-in { border-left-color: #3dba6a; }
.log-card.tag-out { border-left-color: #8b8e96; }
.log-card.tag-pve { border-left-color: #e8a317; }
.log-card.tag-pvp { border-left-color: #e23d2b; }
.log-card.tag-local,
.log-card.tag-global,
.log-card.tag-squad,
.log-card.tag-admin { border-left-color: #7ec8e3; }
.log-card-top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.log-tag {
  font-family: var(--cond); font-size: 10px; letter-spacing: 1.4px;
  color: var(--muted); text-transform: uppercase;
}
.log-card time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-card h4 { margin: 0; font-size: 14px; font-weight: 600; }
.log-channel { margin: 2px 0 0; font-size: 11px; color: var(--amber-2); text-transform: uppercase; letter-spacing: .8px; font-family: var(--cond); }
.log-msg { margin: 6px 0 0; font-size: 14px; color: #e8e6e1; }
.log-detail { margin: 6px 0 0; font-size: 12px; color: var(--muted); word-break: break-word; }
.log-sid { margin: 6px 0 0; font-size: 11px; color: #6a6e78; }
.log-empty {
  padding: 28px; text-align: center; color: var(--muted);
  border: 1px dashed rgba(255,255,255,.1); border-radius: 14px;
}
.log-raw { margin-top: 16px; color: var(--muted); font-size: 13px; }
.log-raw summary { cursor: pointer; padding: 8px 0; }
.log-raw[open] summary { margin-bottom: 8px; }

/* ========== ADMIN PERMS ========== */
.admin-perm-list { display: grid; gap: 12px; }
.admin-perm-card { padding: 14px !important; }
.admin-perm-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}
.admin-perm-head strong { display: block; font-size: 15px; }
.admin-perm-head .mono { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.perm-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: #a8abb4;
  cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--font);
}
.perm-chip input { accent-color: var(--amber); }
.perm-chip.on, .perm-chip:has(input:checked) {
  background: rgba(232,163,23,.1);
  border-color: rgba(232,163,23,.3);
  color: var(--amber-2);
}

.guide-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card h3 { margin-top: 0; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; }
.notif-list { display: grid; gap: 10px; }
.notif-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.help-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.help-list li { margin: 4px 0; }
.perm-help { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 800px) { .perm-help { grid-template-columns: 1fr; } }
.perm-help div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); }
.perm-help strong { display: block; font-size: 13px; }
.perm-help code { font-size: 10px; color: var(--muted); }
.perm-help p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.flash-warn { background: rgba(232,163,23,.12); border: 1px solid rgba(232,163,23,.3); }

.user-menu {
  display: none; position: absolute; right: 0; top: 56px; width: 260px;
  background: #12141a; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 80;
}
.user-menu.open { display: block; }
.user-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #d7d4cc; }
.user-menu a:hover { background: #1b1f28; }
.user-menu a.danger { color: #f07167; }
.welcome-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(232,163,23,.4); }
.bp-missions { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 12px; }
.bp-mission.done { border-color: rgba(61,186,106,.35); }
.bp-mission-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bp-pct { font-family: var(--cond); color: var(--amber); }
.progress.thin { height: 6px; margin-top: 8px; }
.bp-rewards { margin: 8px 0; font-size: 13px; }
.chip-ok { display: inline-block; margin-top: 8px; font-size: 12px; color: #8ef0b0; background: rgba(61,186,106,.12); padding: 4px 8px; border-radius: 8px; }
.bp-inv-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; }
.bp-inv-item.st-redeemed { opacity: .55; }
.bp-inv-item.st-pending { border-color: rgba(232,163,23,.35); }

.stash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
@media (max-width: 980px) { .stash-layout { grid-template-columns: 1fr; } }
.stash-profile { text-align: center; padding: 18px 14px; }
.stash-profile h2 { margin: 8px 0 0; font-size: 18px; }
.stash-ava {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--display); font-size: 32px;
  background: linear-gradient(160deg, #1c2430, #0e1218); border: 1px solid var(--line-2);
}
.stash-role { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.stash-meta { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.stash-meta span { color: var(--muted); }
.stash-vip { margin-top: 12px; text-align: left; }
.stash-vip strong { display: block; margin: 4px 0 8px; }
.stash-vip strong.on { color: #8ef0b0; }
.stash-board { padding: 12px; }
.stash-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stash-title { font-family: var(--cond); letter-spacing: .14em; margin-right: 4px; }
.stash-toolbar input[type="search"] {
  flex: 1; min-width: 160px; background: #0c0e12; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px;
}
.stash-count, .stash-slots { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.stash-slots { margin-left: auto; }
.stash-tool {
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; cursor: pointer; font-size: 13px;
}
.stash-tool.on { border-color: var(--amber); color: var(--amber-2); }
.stash-tool.danger { border-color: rgba(226,61,43,.6); color: #ffb0a6; }
.stash-bar { height: 4px; background: #1a1d24; border-radius: 99px; margin: 10px 0 12px; overflow: hidden; }
.stash-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a1f16, #e23d2b); }
.stash-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 1100px) { .stash-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stash-slot {
  aspect-ratio: 1; border-radius: 6px; border: 1px solid #1c1f26; background: #0c0e12;
  padding: 4px; position: relative; color: inherit; cursor: default;
}
.stash-slot.filled { cursor: pointer; background: radial-gradient(circle at 50% 40%, #2a241c, #12100e 70%); }
.stash-slot.filled:hover, .stash-slot.filled:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.stash-slot.is-sel { border-color: #e23d2b; box-shadow: 0 0 0 1px #e23d2b; }
.stash-slot.filtered { display: none; }
.crate {
  display: block; width: 70%; height: 54%; margin: 12% auto 0; border-radius: 3px;
  background:
    linear-gradient(#3a2a1c, #3a2a1c) 0 42% / 100% 3px no-repeat,
    linear-gradient(90deg, #5a4632 0 8%, #2a1c12 8% 16%, #6b5340 16% 28%, #3d2c1e 28% 40%, #7a624c 40% 52%, #2f2116 52% 64%, #5c4634 64% 76%, #24180f 76% 88%, #6a5340 88% 100%);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.35), 0 6px 0 #1a120c;
}
.stash-label {
  display: block; font-size: 10px; line-height: 1.15; text-align: center; color: #c8c4bc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px;
}
.stash-foot { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.stash-tip, .stash-menu {
  position: fixed; z-index: 40; width: 280px; background: #14161c; border: 1px solid #2a2e38;
  border-radius: 10px; box-shadow: var(--shadow); padding: 12px;
}
.stash-tip h3 { margin: 0 0 2px; color: var(--amber-2); font-size: 16px; }
.stash-tip p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.stash-tag { display: inline-block; font-size: 11px; letter-spacing: .08em; color: #8ef0b0; border: 1px solid rgba(61,186,106,.4); border-radius: 99px; padding: 2px 8px; }
.stash-tip dl { margin: 10px 0 0; }
.stash-tip dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; }
.stash-tip dt { color: var(--muted); }
.stash-tip dd { margin: 0; }
#tipStatus.ok { color: #ff6b5c; }
#tipStatus.wait { color: var(--amber-2); }
.stash-code { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); margin-top: 8px; word-break: break-all; }
.stash-tip-actions { display: flex; gap: 8px; margin-top: 10px; }
.stash-tip-actions button, .stash-menu button {
  flex: 1; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; font-weight: 700; letter-spacing: .04em;
}
#tipRedeem, #menuRedeem { background: #8d1d24; color: #fff; }
#tipDelete, #menuDelete { background: transparent; color: #d7d4cc; border: 1px solid var(--line); }
.stash-menu { width: 180px; padding: 6px; display: grid; gap: 4px; }
.stash-menu button:disabled, .stash-tip-actions button:disabled { opacity: .4; cursor: not-allowed; }
.stash-modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.62);
  display: grid; place-items: center; padding: 16px;
}
.stash-modal[hidden], .stash-tip[hidden], .stash-menu[hidden], .stash-toast[hidden] { display: none; }
.stash-dialog { width: min(560px, 100%); background: #16181e; border: 1px solid #2a2e38; border-radius: 12px; padding: 18px; position: relative; }
.stash-dialog h3 { margin: 0 0 6px; }
.stash-x { position: absolute; right: 10px; top: 8px; background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.stash-warn { margin: 12px 0; padding: 12px; border: 1px solid rgba(226,61,43,.45); border-radius: 8px; background: rgba(226,61,43,.08); color: #f0d2cc; font-size: 14px; }
.stash-dest { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.stash-dest span { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.stash-dest em { font-style: normal; margin-left: 10px; font-size: 12px; }
.stash-dest em.on { color: #8ef0b0; }
.stash-dest em.off { color: #ffb0a6; }
.stash-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
#modalOk.btn { background: #9d1c1c; color: #fff; border-color: #9d1c1c; }

.ilha { display: grid; gap: 14px; }
.ilha-hero {
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 1100px) { .ilha-hero { grid-template-columns: 1fr; } }
.ilha-copy, .ilha-you, .ilha-board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.ilha-copy h2 {
  font-family: var(--display);
  font-size: 56px;
  line-height: .9;
  letter-spacing: .04em;
  margin: 4px 0 8px;
}
.ilha-copy p { margin: 0 0 8px; color: #d7d2c8; }
.ilha-note { color: var(--muted) !important; font-size: 13px; }
.ilha-actions { display: flex; gap: 8px; margin-top: 12px; }
.ilha-you { display: flex; flex-direction: column; justify-content: center; }
.ilha-you span { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ilha-you strong {
  font-family: var(--display);
  font-size: 64px;
  line-height: .85;
  color: var(--amber-2);
}
.ilha-you strong small { font-size: 28px; color: var(--muted); }
.ilha-you em { font-style: normal; color: #8ef0b0; font-size: 13px; margin-top: 8px; }
.ilha-next { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.ilha-next b { color: var(--text); }
.ilha-board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ilha-board-head span { letter-spacing: .14em; font-size: 12px; color: var(--amber-2); }
.ilha-board-head b { font-weight: 500; font-size: 13px; }
.ilha-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ilha-board li {
  display: grid;
  grid-template-columns: 22px 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}
.ilha-board li.me { background: rgba(232,163,23,.08); margin: 0 -8px; padding: 4px 8px; border-radius: 8px; }
.ilha-board li i { font-style: normal; color: var(--amber); font-family: var(--cond); }
.ilha-board img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ilha-board li > div { min-width: 0; }
.ilha-board strong, .ilha-board small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilha-board strong { font-size: 13px; line-height: 1.1; }
.ilha-board small { color: var(--muted); font-size: 11px; }
.ilha-board li > b { font-family: var(--cond); color: var(--amber-2); }
.ilha-me { margin-top: 8px; font-size: 12px; color: var(--amber-2); }
.ilha-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.ilha-caps a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: #c8c4bc;
  background: #101217;
}
.ilha-caps a small { color: var(--muted); margin-left: 4px; }
.ilha-caps a.on { border-color: var(--amber); color: var(--amber-2); background: var(--amber-dim); }
.ilha-track {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 8px 4px;
}
.ilha-track header { padding: 10px 12px 4px; }
.ilha-track header h3 { margin: 0; }
.ilha-track header p { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.ilha-mission {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.ilha-num {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--cond); font-size: 18px;
  background: #0c0e12; border: 1px solid var(--line); color: var(--muted);
}
.ilha-mission.next .ilha-num { border-color: var(--amber); color: var(--amber-2); }
.ilha-mission.done .ilha-num { border-color: rgba(61,186,106,.45); color: #8ef0b0; }
.ilha-meta { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.ilha-meta b { margin-left: auto; color: var(--amber-2); font-family: var(--cond); font-size: 16px; letter-spacing: 0; }
.ilha-body h4 { margin: 2px 0 4px; font-size: 18px; }
.ilha-body p { margin: 0 0 8px; color: #b7b3ab; font-size: 14px; }
.ilha-rewards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ilha-rewards span {
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #d7d4cc;
}
.ilha-ok, .ilha-go { margin-top: 8px; font-size: 12px; }
.ilha-ok { color: #8ef0b0; }
.ilha-go { color: var(--amber-2); }
.ilha-mission.done { opacity: .72; }
.ilha-mission.next { background: rgba(232,163,23,.05); border-radius: 12px; }
.stash-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  max-width: min(640px, calc(100% - 24px)); background: #9d1c1c; color: #fff;
  border-radius: 8px; padding: 12px 16px; box-shadow: var(--shadow);
}
