/* =========================================================
   Origin Mobile: Gunner Edition — main stylesheet
   ========================================================= */
:root {
  --bg: #07080b;
  --bg-2: #0e1016;
  --panel: #13161e;
  --panel-2: #1a1e28;
  --line: rgba(255, 255, 255, .08);
  --text: #e9ecf2;
  --muted: #9aa1b1;
  --red: #e3122a;
  --red-2: #ff3148;
  --red-dark: #8f0a19;
  --cyan: #2fd6ff;
  --gold: #f3c14b;
  --silver: linear-gradient(180deg, #ffffff 0%, #d7dbe2 45%, #8d939e 55%, #e6e9ee 100%);
  --radius: 10px;
  --header-h: 72px;
  --font-head: "Rajdhani", "Barlow", sans-serif;
  --font-tech: "Orbitron", "Rajdhani", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  letter-spacing: .08em; text-transform: uppercase;
  border: 0; border-radius: 4px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .2s, filter .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn-red {
  background: linear-gradient(180deg, var(--red-2), var(--red) 55%, var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 24px rgba(227, 18, 42, .35);
}
.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-lg { padding: 16px 40px; font-size: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0));
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(8, 9, 13, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.4);
}
.header-inner {
  height: 100%; width: min(1400px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-emblem { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(227,18,42,.5)); }
.brand-text { height: 26px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a {
  position: relative; padding: 8px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  letter-spacing: .06em; text-transform: uppercase; color: #cfd3dc;
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background: var(--red); box-shadow: 0 0 10px var(--red);
  transition: width .25s, left .25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 70%; left: 15%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; background: transparent; border: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  padding: calc(var(--header-h) + 20px) 16px 90px;
}
.hero-bg {
  position: absolute; inset: -20px;
  background-size: cover; background-position: 70% center;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 70%),
    linear-gradient(180deg, rgba(7,8,11,0) 55%, var(--bg) 100%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-content {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  max-width: 760px;
  animation: rise 1s ease-out both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.tagline {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-style: italic;
  letter-spacing: .14em; text-transform: uppercase; font-size: clamp(12px, 1.6vw, 17px);
}
.tagline i { display: block; width: clamp(20px, 5vw, 70px); height: 1px; background: rgba(255,255,255,.7); }
@media (min-width: 961px) {
  .hero { justify-items: start; padding-left: max(24px, 6vw); }
  .hero-bg { background-position: center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 75%),
      linear-gradient(180deg, rgba(7,8,11,0) 55%, var(--bg) 100%);
  }
}
.hero-logo {
  width: min(500px, 72vw, 52vh); height: auto;
  filter: drop-shadow(0 10px 40px rgba(227, 18, 42, .35));
}
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.store-row.left { justify-content: flex-start; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px;
  background: rgba(10, 11, 16, .78); border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
  backdrop-filter: blur(6px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.store-btn svg { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.store-btn small { font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.store-btn:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 0 22px rgba(227,18,42,.35); }

.server-status {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 22px; padding: 8px 18px;
  background: rgba(0,0,0,.55); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: #cfd3dc;
}
.server-status b { color: #fff; }
.server-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 0 0 rgba(46,230,107,.7); animation: pulse 1.8s infinite; }
.server-status.offline .dot { background: #ff3b4e; box-shadow: 0 0 8px rgba(255,59,78,.7); animation: none; }
.server-status.offline #serverState { color: #ff6a7a; }
.server-status.unknown .dot { background: #888; animation: none; }
.server-status .sep { width: 1px; height: 14px; background: rgba(255,255,255,.25); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,107,.6); } 100% { box-shadow: 0 0 0 10px rgba(46,230,107,0); } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.kicker {
  margin: 0 0 4px; color: var(--red-2);
  font-family: var(--font-head); font-weight: 700; letter-spacing: .25em; text-transform: uppercase; font-size: 14px;
}
.section-title {
  margin: 0; font-family: var(--font-tech); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; letter-spacing: .02em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title span { background: linear-gradient(180deg, #ff4a5e, var(--red) 60%, var(--red-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head:not(.center) .section-title { padding-left: 18px; border-left: 4px solid var(--red); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--panel); padding: 4px; border-radius: 6px; border: 1px solid var(--line); }
.tab {
  background: transparent; border: 0; padding: 8px 16px; border-radius: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); transition: color .2s, background .2s;
}
.tab:hover { color: #fff; }
.tab.active { background: var(--red); color: #fff; }

.chip { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; flex-shrink: 0; }
.chip-news { background: #2b6fe0; }
.chip-event { background: var(--red); }
.chip-update { background: #13a37a; }
.chip-maint { background: #c7861a; }

/* ---------- News ---------- */
.news { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.news-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.news-grid > *, .class-stage > *, .download-inner > *, .footer-inner > * { min-width: 0; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.slides, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 6s ease-out;
  display: flex; align-items: flex-end;
}
.slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.slide-cap { width: 100%; padding: 60px 28px 44px; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,0)); }
.slide-cap h3 { margin: 8px 0 4px; font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.15; }
.slide-cap p { margin: 0; color: #c9ced8; font-size: 15px; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 16px; opacity: 0; transition: opacity .2s, background .2s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow.prev { left: 12px; } .slider-arrow.next { right: 12px; }
.slider-dots { position: absolute; bottom: 16px; right: 20px; z-index: 3; display: flex; gap: 6px; }
.slider-dots button { width: 22px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.35); transition: background .2s, width .2s; }
.slider-dots button.active { width: 36px; background: var(--red); }

.news-list { list-style: none; margin: 0; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list li.hidden { display: none; }
.news-list a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 6px; transition: background .2s; }
.news-list a:hover { background: var(--panel-2); }
.news-list a:hover .news-title { color: #fff; }
.news-title { flex: 1; min-width: 0; color: #d1d5de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.news-list time { color: var(--muted); font-size: 13px; }

/* ---------- Schools ---------- */
.schools { background: var(--bg-2); }
.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.school-img {
  height: 170px; margin: -36px -28px 0;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), linear-gradient(160deg, #10172a, #070a12);
  background-size: cover; background-position: center;
  transition: transform .5s;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.school-card:hover .school-img { transform: scale(1.05); }
.school-card {
  --c: var(--red);
  position: relative; padding: 36px 28px 30px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--panel)), var(--panel) 60%);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}
.school-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 30%, transparent); }
.school-card.sg { --c: #e3122a; }
.school-card.mp { --c: #2f8bff; }
.school-card.phx { --c: #f3a81b; }
.school-card .school-crest {
  position: relative; display: block; width: 104px; height: 104px; margin: -56px auto 14px; object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)) drop-shadow(0 0 14px color-mix(in srgb, var(--c) 45%, transparent));
  transition: transform .4s;
}
.school-card:hover .school-crest { transform: scale(1.08) rotate(-3deg); }
.school-card h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 26px; letter-spacing: .04em; text-transform: uppercase; }
.school-card p { margin: 0; color: var(--muted); }

/* ---------- Classes ---------- */
.classes { overflow: hidden; }
.classes-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--class-c, var(--red)) 28%, transparent), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px),
    var(--bg);
  transition: background .6s;
}
.classes .container { position: relative; }
.class-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 460px; }
.class-art-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.class-art {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 480px;
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%);
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--class-c, var(--red)) 45%, transparent), transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--class-c, var(--red)) 30%, #000), #07080b);
  transition: background .5s;
}
.class-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 25%; background: linear-gradient(0deg, rgba(7,8,11,.85), transparent); pointer-events: none; }
.class-art-img {
  position: absolute; inset: 4% 0 0; background-repeat: no-repeat; background-size: contain; background-position: center bottom;
  transition: opacity .3s, transform .5s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--class-c, var(--red)) 45%, transparent));
}
.class-art.is-cover .class-art-img {
  inset: 0; background-size: cover; background-position: center top; filter: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 58% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 58% 45%, #000 55%, transparent 100%);
}
.class-art.is-wide .class-art-img { inset: 0 -14% 0 -6%; background-position: center 62%; }
.class-art.swap .class-art-img { opacity: 0; transform: translateX(-20px); }
.class-toggles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; transition: opacity .3s; }
.seg button {
  background: transparent; border: 0; border-radius: 4px; padding: 7px 14px; color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.seg button.active { background: var(--class-c, var(--red)); color: #fff; }
.seg-school button { padding: 4px 8px; }
.seg-school img { width: 30px; height: 30px; object-fit: contain; opacity: .55; transition: opacity .2s; }
.seg-school button.active { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px var(--class-c, var(--red)); }
.seg-school button.active img, .seg-school button:hover img { opacity: 1; }
.seg.is-disabled { opacity: .35; pointer-events: none; }
.class-role { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--class-c, var(--red)); }
.class-name {
  margin: 0 0 12px; font-family: var(--font-tech); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 72px); line-height: 1;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.class-desc { color: #c3c8d2; max-width: 520px; min-height: 78px; }
.class-stats { display: grid; gap: 12px; margin: 22px 0; max-width: 460px; }
.stat { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 12px; font-size: 14px; }
.stat span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat .bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--class-c, var(--red)), #fff); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.stat b { text-align: right; font-family: var(--font-head); }
.class-weapons { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.class-weapons .label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; }
.class-weapons #classWeapons { font-family: var(--font-head); font-weight: 700; font-size: 18px; }

.class-picker { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.class-pick {
  --c: var(--red);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 104px; padding: 14px 8px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.class-pick img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; filter: grayscale(.7) brightness(.8); transition: filter .2s; }
.class-pick:hover img, .class-pick.active img { filter: none; }
.class-pick:hover { color: #fff; transform: translateY(-3px); }
.class-pick.active { color: #fff; border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 8px 26px color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 14%, var(--panel)); }

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 30px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, border-color .3s;
}
.feature::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--red), transparent); transform: scaleX(.25); transform-origin: left; transition: transform .4s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(227,18,42,.4); }
.feature:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 10px; background: linear-gradient(135deg, rgba(227,18,42,.25), rgba(227,18,42,.05)); border: 1px solid rgba(227,18,42,.35); }
.feature-icon svg { width: 28px; height: 28px; fill: var(--red-2); }
.feature h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 23px; letter-spacing: .03em; text-transform: uppercase; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Gunner Showcase ---------- */
.showcase {
  --accent: var(--red); --dur: 9s;
  position: relative; height: 100vh; height: 100svh; min-height: 680px; max-height: 1080px;
  overflow: hidden; isolation: isolate; background: #050608;
}
.sc-bgs, .sc-arts, .sc-fx, .sc-flash, .sc-shade { position: absolute; inset: 0; }
.sc-bg {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(7px) brightness(.42) saturate(1.15);
  opacity: 0; transform: scale(1.12); transition: opacity 1.1s ease, transform 9s linear;
}
.sc-bg.is-on { opacity: 1; transform: scale(1.02); }
.sc-bgs::after { /* accent tint */
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay; transition: background 1s;
  background: radial-gradient(ellipse at 72% 55%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%);
}

.sc-bigtext {
  position: absolute; top: 50%; left: 0; z-index: 1; display: flex; white-space: nowrap; pointer-events: none;
  transform: translateY(-50%); animation: scMarquee 60s linear infinite;
  font-family: var(--font-tech); font-weight: 800; font-size: clamp(90px, 15vw, 240px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06);
}
@keyframes scMarquee { to { transform: translate(-50%, -50%); } }

.sc-shade { z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,8,.94) 0%, rgba(5,6,8,.72) 30%, rgba(5,6,8,0) 58%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,6,8,0) 22%),
    linear-gradient(180deg, rgba(5,6,8,.7) 0%, rgba(5,6,8,0) 18%);
}

.sc-arts { z-index: 3; pointer-events: none; }
.sc-art {
  position: absolute; bottom: var(--bottom, 0px); right: var(--right, 2vw); height: var(--h, 94%); aspect-ratio: var(--ar);
  opacity: 0; transform: translateX(10%) scale(1.04); filter: blur(10px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter .9s ease;
}
.sc-art.is-on { opacity: 1; transform: none; filter: none; }
.sc-art.is-off { opacity: 0; transform: translateX(-8%) scale(.98); filter: blur(6px); }
.sc-art-inner { position: absolute; inset: 0; will-change: transform; }
.sc-art img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.sc-art.cutout img { filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 50%, transparent)) drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.sc-art.masked img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 16%);
  mask-composite: intersect;
}

.sc-fx-back { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.sc-art.aura img { animation: scAura 3.2s ease-in-out infinite; }
@keyframes scAura {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0,0,0,.95)) drop-shadow(0 0 26px rgba(60,10,110,.75)) drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
  50% { filter: drop-shadow(0 0 16px rgba(0,0,0,1)) drop-shadow(0 0 44px rgba(120,40,200,.8)) drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
}
.sc-fx { z-index: 4; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.sc-flash { z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 70% 45%, color-mix(in srgb, var(--accent) 60%, #fff), transparent 60%); }
.sc-flash.go { animation: scFlash .7s ease-out; }
@keyframes scFlash { 0% { opacity: .55; } 100% { opacity: 0; } }

.sc-inner { position: relative; z-index: 5; height: 100%; display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: 120px; }
.sc-copy { max-width: 540px; }
.sc-copy > * { transition: opacity .55s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.sc-copy > :nth-child(2) { transition-delay: .06s; } .sc-copy > :nth-child(3) { transition-delay: .12s; }
.sc-copy > :nth-child(4) { transition-delay: .18s; } .sc-copy > :nth-child(5) { transition-delay: .24s; }
.sc-copy > :nth-child(6) { transition-delay: .3s; } .sc-copy > :nth-child(7) { transition-delay: .36s; }
.sc-copy.out > * { opacity: 0; transform: translateX(-40px); transition-delay: 0s; transition-duration: .25s; }

.sc-kicker { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.sc-kicker #scIndex { font-family: var(--font-tech); color: var(--accent); font-size: 18px; }
.sc-name {
  margin: 0; font-family: var(--font-tech); font-weight: 800; text-transform: uppercase; line-height: .95;
  font-size: clamp(46px, 6.6vw, 100px); letter-spacing: -.01em;
  background: linear-gradient(100deg, #9aa1ad 0%, #fff 20%, #cfd4dc 38%, #fff 50%, #8d939e 62%, #e8ebef 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: scShine 5s linear infinite; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6));
}
.sc-name em { font-style: normal; background: linear-gradient(180deg, #ff5a6c, var(--red) 55%, var(--red-dark)); -webkit-background-clip: text; background-clip: text; }
@keyframes scShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.sc-sub { margin: 10px 0 14px; font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sc-tags span {
  padding: 4px 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.sc-desc { margin: 0 0 20px; color: #c3c8d2; max-width: 500px; }
.sc-skills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.sc-skill { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 6px; }
.sc-skill i {
  width: 36px; height: 36px; display: grid; place-items: center; font-style: normal; font-family: var(--font-tech); font-size: 13px; color: #fff;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent) 60%, color-mix(in srgb, var(--accent) 45%, #000));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.sc-skill b { display: block; font-family: var(--font-head); font-size: 16px; line-height: 1.1; }
.sc-skill small { color: var(--muted); font-size: 12px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sc-store { min-width: 0; }

.sc-nav { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 6; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sc-thumbs { display: flex; gap: 10px; }
.sc-thumb {
  position: relative; width: 168px; height: 84px; padding: 0; border: 1px solid rgba(255,255,255,.18); overflow: hidden;
  background: #111 center / cover no-repeat; opacity: .55; filter: grayscale(.6);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: opacity .3s, filter .3s, transform .3s, border-color .3s;
}
.sc-thumb:hover { opacity: .9; filter: none; }
.sc-thumb.active { opacity: 1; filter: none; border-color: var(--accent); transform: translateY(-4px); }
.sc-thumb span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; text-align: left;
  background: linear-gradient(0deg, rgba(0,0,0,.9), transparent);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.sc-thumb i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sc-thumb.active i { animation: scProgress var(--dur) linear forwards; }
.showcase.paused .sc-thumb.active i { animation-play-state: paused; }
@keyframes scProgress { to { width: 100%; } }
.sc-arrow {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 16px; transition: background .2s, border-color .2s;
}
.sc-arrow:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 960px) {
  .showcase { height: auto; min-height: 100svh; max-height: none; }
  .sc-art { right: 50% !important; height: 56% !important; bottom: auto; top: calc(var(--header-h) + 8px); transform: translateX(50%) scale(1.04); }
  .sc-art.is-on { transform: translateX(50%); }
  .sc-art.is-off { transform: translateX(30%) scale(.98); }
  .sc-art.wide { height: auto !important; width: 100vw; top: calc(var(--header-h) + 13svh); }
  .sc-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5,6,8,.92) 38%, rgba(5,6,8,0) 62%), linear-gradient(180deg, rgba(5,6,8,.7) 0%, rgba(5,6,8,0) 18%); }
  .sc-inner { align-items: flex-end; min-height: 100svh; padding-top: 52svh; padding-bottom: 130px; }
  .sc-copy { max-width: none; }
  .sc-skills { display: none; }
  .sc-nav { justify-content: center; bottom: 20px; }
  .sc-thumb { width: 96px; height: 56px; }
  .sc-thumb span { font-size: 11px; padding: 10px 6px 4px; }
  .sc-arrow { display: none; }
}

/* ---------- Club War ---------- */
.clubwar { position: relative; padding: 130px 0; overflow: hidden; text-align: center; }
.clubwar-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; background-attachment: fixed; opacity: 0; transition: opacity .6s; }
.clubwar-bg.is-on { opacity: 1; }
.war-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; backdrop-filter: blur(4px); }
.war-switch button {
  padding: 8px 20px; border: 0; border-radius: 4px; background: transparent; color: #cfd3dc;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
}
.war-switch button.active { background: var(--red); color: #fff; }
.clubwar-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(4,10,18,.55) 25%, rgba(4,10,18,.6) 75%, var(--bg) 100%); }
.clubwar-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.clubwar .kicker { color: var(--cyan); }
.cw-title {
  margin: 0; font-family: var(--font-tech); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(48px, 10vw, 120px); line-height: .95; letter-spacing: -.01em; padding: 0 .12em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(47,214,255,.25));
}
.cw-title .red { background: linear-gradient(180deg, #ff4a5e, var(--red) 55%, var(--red-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cw-sub { color: #cdd6e2; margin: 14px 0 22px; }
.countdown { display: flex; gap: 12px; margin-bottom: 34px; }
.countdown div {
  width: 92px; padding: 14px 0 10px; background: rgba(5,12,22,.7); border: 1px solid rgba(47,214,255,.35); border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(47,214,255,.12); backdrop-filter: blur(4px);
}
.countdown b { display: block; font-family: var(--font-tech); font-size: 36px; line-height: 1; color: #fff; text-shadow: 0 0 14px rgba(47,214,255,.7); }
.countdown span { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: #9fc6d6; }

/* ---------- Rankings ---------- */
.rankings { background: var(--bg); }
.rank-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rank-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.rank-table th, .rank-table td { padding: 14px 18px; text-align: left; }
.rank-table th { font-family: var(--font-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.rank-table tbody tr { border-top: 1px solid var(--line); transition: background .2s; }
.rank-table tbody tr:hover { background: rgba(255,255,255,.03); }
.rank-table td.num, .rank-table .num { font-variant-numeric: tabular-nums; }
.rank-table tr.rank-msg td { padding: 36px 18px; text-align: center; color: var(--muted); }
.rank-table .crown { font-size: 13px; margin-left: 4px; }
.on-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.on-tag i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.on-tag.on { color: #3ee57a; }
.on-tag.on i { background: #2ee66b; box-shadow: 0 0 0 0 rgba(46,230,107,.6); animation: onPulse 1.8s infinite; }
.on-tag.off { color: #7d8594; }
.on-tag.off i { background: #4a505c; }
@keyframes onPulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,107,.6); } 70% { box-shadow: 0 0 0 7px rgba(46,230,107,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,107,0); } }
@media (prefers-reduced-motion: reduce) { .on-tag.on i { animation: none; } }
.rank-foot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 10px 2px 0; font-size: 12px; color: var(--muted); }
.rank-foot .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 6px #2ee66b; }
.rank-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; font-family: var(--font-tech); font-size: 14px; background: rgba(255,255,255,.06); }
.r1 .rank-no { background: linear-gradient(180deg, #ffe07a, #c8901c); color: #2a1a00; }
.r2 .rank-no { background: linear-gradient(180deg, #f1f3f6, #9aa2ae); color: #1b1e24; }
.r3 .rank-no { background: linear-gradient(180deg, #f0b27a, #9a5a24); color: #231104; }
.school-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.school-tag.SG { background: rgba(227,18,42,.2); color: #ff6a7a; }
.school-tag.MP { background: rgba(47,139,255,.2); color: #7ab4ff; }
.school-tag.PHX { background: rgba(243,168,27,.2); color: #ffc75c; }

/* ---------- Download ---------- */
.download { background: radial-gradient(ellipse at 20% 50%, rgba(227,18,42,.18), transparent 60%), var(--bg-2); }
.download-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.download-art { position: relative; }
.download-art img { width: 100%; border-radius: var(--radius); clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%); }
.download-art::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--red); clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%); z-index: -1; }
.download-copy > p { color: #c3c8d2; max-width: 560px; }
.download-copy .section-title { margin-bottom: 14px; }
.steps { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps b { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-tech); background: var(--red); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.reqs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.reqs div { padding: 10px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.reqs span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.reqs b { font-family: var(--font-head); font-size: 17px; }

/* ---------- Community ---------- */
.community { background: var(--bg); }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.social {
  --c: #fff;
  display: flex; align-items: center; gap: 14px; padding: 22px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, border-color .25s, background .25s;
}
.social svg { width: 34px; height: 34px; fill: var(--c); flex-shrink: 0; }
.social span { display: flex; flex-direction: column; line-height: 1.25; }
.social b { font-family: var(--font-head); font-size: 20px; }
.social small { color: var(--muted); }
.social:hover { transform: translateY(-4px); border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--panel)); }
.social.fb { --c: #3b82f6; } .social.dc { --c: #7c83ff; } .social.yt { --c: #ff2f3e; } .social.tt { --c: #25f4ee; }

/* ---------- Footer ---------- */
.site-footer { background: #040507; border-top: 1px solid var(--line); padding: 56px 0 90px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.footer-brand img { width: 200px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { margin: 0 0 12px; font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-links a { display: block; padding: 4px 0; color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--red-2); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom p { margin: 4px 0; }
.disclaimer { opacity: .7; }
.footer-brand .dev-credit { margin-top: 18px; }
.dev-credit { display: flex; flex-direction: column; line-height: 1.3; }
.dev-credit span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; }
.dev-credit b {
  font-family: var(--font-tech); font-size: 18px; letter-spacing: .04em;
  background: linear-gradient(90deg, #fff, var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer-bottom .disclaimer { flex-basis: 100%; }
.footer-bottom .dev-line b { color: #fff; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(8,9,13,.95); border-top: 1px solid rgba(227,18,42,.4); backdrop-filter: blur(8px);
  transform: translateY(100%); transition: transform .3s;
}
.mobile-cta.show { transform: none; }
.mobile-cta img { width: 40px; height: 40px; object-fit: contain; }
.mobile-cta div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.mobile-cta b { font-family: var(--font-head); font-size: 17px; }
.mobile-cta small { color: var(--muted); font-size: 12px; }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; }
.lang-switch button {
  min-width: 34px; padding: 5px 7px; border: 0; border-radius: 4px; background: transparent; color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; line-height: 1;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--red); color: #fff; }
@media (max-width: 600px) { .lang-switch button { min-width: 28px; padding: 5px 5px; font-size: 12px; } }

/* ---------- Anti-copy ---------- */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
img, canvas, .sc-art, .class-art { -webkit-user-drag: none; user-drag: none; }
.protect-toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 8px; background: rgba(8,9,13,.95); border: 1px solid rgba(227,18,42,.6);
  font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; color: #fff; white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.protect-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Register modal ---------- */
.reg-lock, .reg-lock body { overflow: hidden; }
.reg-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.reg-modal[hidden] { display: none; }
.reg-backdrop { position: absolute; inset: 0; background: rgba(3,4,7,.78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.reg-dialog {
  position: relative; width: min(620px, 100%); max-height: calc(100svh - 32px); overflow-y: auto;
  padding: 28px 28px 24px; border-radius: 12px;
  background: linear-gradient(180deg, #171a23, #0e1016); border: 1px solid rgba(227,18,42,.45);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.reg-modal.open .reg-backdrop { opacity: 1; }
.reg-modal.open .reg-dialog { opacity: 1; transform: none; }
.reg-close {
  position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 28px; line-height: 1;
}
.reg-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.reg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.reg-emblem { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(227,18,42,.5)); }
.reg-head .kicker { margin: 0; }
.reg-title { margin: 0; font-family: var(--font-tech); font-weight: 800; font-size: clamp(22px, 4vw, 30px); text-transform: uppercase;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.reg-wide { grid-column: 1 / -1; }
.reg-field { display: flex; flex-direction: column; gap: 5px; }
.reg-field > span { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #cfd3dc; }
.reg-field small { color: var(--muted); font-size: 12px; }
.reg-field input {
  width: 100%; padding: 11px 12px; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.reg-field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,18,42,.18); }
.reg-field input.bad { border-color: #ff5a6c; box-shadow: 0 0 0 3px rgba(255,90,108,.2); }
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 4px; font-size: 14px; color: #c3c8d2; cursor: pointer; }
.reg-check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; }
.reg-check input.bad { outline: 2px solid #ff5a6c; outline-offset: 2px; }
.reg-msg { min-height: 0; margin: 10px 0 0; padding: 0; font-size: 14px; color: #ff8a97; }
.reg-msg.show { padding: 10px 12px; border-radius: 6px; background: rgba(227,18,42,.12); border: 1px solid rgba(227,18,42,.4); }
.reg-submit { width: 100%; margin-top: 14px; }
.reg-submit.loading { opacity: .7; pointer-events: none; }
.reg-submit.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: regSpin .7s linear infinite; }
@keyframes regSpin { to { transform: rotate(360deg); } }
.reg-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.reg-done { text-align: center; padding: 10px 0 6px; }
.reg-done-icon { width: 70px; height: 70px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(46,230,107,.14); border: 2px solid #2ee66b; color: #2ee66b; font-size: 34px; }
.reg-done h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 26px; text-transform: uppercase; }
.reg-done p { color: #c3c8d2; margin: 0 0 18px; }
@media (max-width: 560px) {
  .reg-dialog { padding: 22px 18px 18px; }
  .reg-grid { grid-template-columns: 1fr; }
}

/* ---------- Music toggle ---------- */
.music-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 14px;
  background: rgba(8,9,13,.85); border: 1px solid rgba(227,18,42,.55); border-radius: 999px;
  color: #fff; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.45);
  transition: transform .2s, border-color .2s, bottom .3s;
}
.music-btn:hover { transform: translateY(-2px); border-color: var(--red-2); }
.music-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.music-btn .eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.music-btn .eq i { display: block; width: 3px; height: 30%; background: var(--red-2); border-radius: 1px; }
.music-btn.playing .eq i { animation: eqBar .9s ease-in-out infinite; }
.music-btn.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.music-btn.playing .eq i:nth-child(3) { animation-delay: -.6s; }
.music-btn.playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eqBar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.music-btn .mute-ico { display: none; width: 20px; height: 20px; fill: var(--muted); }
.music-btn:not(.playing) .eq { display: none; }
.music-btn:not(.playing) .mute-ico { display: block; }
.music-btn:not(.playing) { border-color: rgba(255,255,255,.2); }
.music-btn.nudge { animation: musicNudge 1.6s ease-in-out 3; }
@keyframes musicNudge { 0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 8px rgba(227,18,42,.25), 0 8px 24px rgba(0,0,0,.45); } }
@media (max-width: 960px) {
  .music-btn { right: 14px; bottom: 76px; height: 42px; padding: 0 12px; }
  .music-label { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 9px; font-size: 15px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: rgba(8,9,13,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--red-2); }
  .header-actions { margin-left: auto; }
  .news-grid, .class-stage, .download-inner, .footer-inner { grid-template-columns: 1fr; }
  .class-stage { gap: 24px; }
  .class-art { max-width: 380px; }
  .class-info { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .class-stats { width: 100%; }
  .class-weapons { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .school-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .download-art { max-width: 420px; margin: 0 auto; }
  .clubwar-bg { background-attachment: scroll; }
  .mobile-cta { display: flex; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .brand-text { display: none; }
  .section { padding: 72px 0; }
  .feature-grid, .social-grid { grid-template-columns: 1fr; }
  .store-btn { min-width: 0; flex: 1 1 150px; padding: 10px 14px; }
  .store-btn span { font-size: 17px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { flex-shrink: 0; }
  .countdown { gap: 8px; }
  .countdown div { width: 70px; }
  .countdown b { font-size: 28px; }
  .class-pick { width: calc(33.33% - 8px); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .slide-cap { padding: 40px 18px 34px; }
  .slide-cap p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Longer (Italian) tagline stays on one line on phones */
.tagline span { white-space: nowrap; }
@media (max-width: 600px) {
  .tagline { gap: 8px; font-size: 10.5px; letter-spacing: .08em; }
  .tagline i { width: 12px; }
}

/* ---------- Legal pages (terms.html, privacy.html) ---------- */
.legal-page { -webkit-user-select: text; user-select: text; }
.legal-page .site-header { position: sticky; }
.legal { max-width: 860px; padding: 48px 0 72px; line-height: 1.7; color: #d3d7df; }
.legal-title { margin: 0 0 6px; font-family: var(--font-tech); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 5vw, 44px);
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 36px 0 10px; font-family: var(--font-head); font-size: 24px; letter-spacing: .03em; color: #fff;
  padding-left: 12px; border-left: 3px solid var(--red); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal a { color: var(--red-2); text-decoration: underline; text-underline-offset: 2px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--panel-2); font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.legal-footer { padding: 24px 0 32px; }
.legal-footer a { color: #cfd3dc; }
.legal-footer a:hover { color: var(--red-2); }
.reg-check a, .reg-note a { color: var(--red-2); text-decoration: underline; }
@media (max-width: 640px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 12px; border: 1px solid var(--line); }
  .legal-table td { border: 0; border-bottom: 1px solid var(--line); }
}
.legal-page .header-actions { margin-left: auto; }

/* ---------- News article pop-up ---------- */
.news-list li.news-empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.news-list li.news-empty.hidden { display: none; }
.news-art { width: min(720px, 100%); }
.news-art-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.news-art-title { margin: 0 36px 16px 0; font-family: var(--font-head); font-size: clamp(24px, 4vw, 32px); line-height: 1.2; color: #fff; }
.news-art-body { color: #d3d7df; line-height: 1.7; -webkit-user-select: text; user-select: text; }
.news-art-body h4 { margin: 20px 0 6px; font-family: var(--font-head); font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--red-2); }
.news-art-body ul, .news-art-body ol { padding-left: 22px; }
.news-art-body li { margin: 5px 0; }
.news-art-body a:not(.btn) { color: var(--red-2); text-decoration: underline; }
.news-cta { margin-top: 22px; }
.slide[data-news] { cursor: pointer; }

/* Countdown while a war is in progress */
.countdown.is-live div { border-color: rgba(255,49,72,.6); box-shadow: inset 0 0 20px rgba(255,49,72,.18); }
.countdown.is-live b { text-shadow: 0 0 14px rgba(255,49,72,.8); }

/* ---------- Beta event leaderboard ---------- */
.event { background: radial-gradient(ellipse at 80% 0%, rgba(243,193,75,.08), transparent 55%), var(--bg-2); }
.event-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -18px 0 16px; color: var(--muted); font-size: 14px; min-height: 24px; }
.ev-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.ev-pill.live { background: rgba(46,230,107,.15); color: #2ee66b; border: 1px solid rgba(46,230,107,.5); }
.ev-pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; animation: livePulse 1.2s infinite; }
.ev-pill.soon { background: rgba(243,193,75,.14); color: var(--gold); border: 1px solid rgba(243,193,75,.45); }
.ev-pill.ended { background: rgba(255,255,255,.08); color: #cfd3dc; border: 1px solid var(--line); }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.event-note { margin: 12px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.event-sub { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cfd3dc; }
#eventBody > .event-note:only-child { padding: 36px 18px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }

/* ---------- Server info ---------- */
.serverinfo { background: radial-gradient(ellipse at 20% 0%, rgba(227,18,42,.12), transparent 55%), var(--bg); }
.si-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.si-stat {
  position: relative; padding: 22px 16px 18px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(227,18,42,.16), var(--panel) 70%);
  border: 1px solid rgba(227,18,42,.35); border-radius: var(--radius);
}
.si-stat b { display: block; font-family: var(--font-tech); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.si-stat span { display: block; margin-top: 8px; font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--red-2); }
.si-stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.si-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.si-card { padding: 22px 22px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.si-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-head); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.si-ico { font-size: 20px; }
.si-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.si-card li { position: relative; padding-left: 22px; color: #d3d7df; }
.si-card li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 8px rgba(227,18,42,.6); }
.si-wars li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 26px; background: rgba(255,255,255,.03); border-radius: 6px; }
.si-wars li::before { left: 8px; top: 50%; margin-top: -4px; }
.si-tag { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.si-tag.live { background: rgba(46,230,107,.14); color: #2ee66b; border: 1px solid rgba(46,230,107,.45); }
.si-tag.next { background: rgba(47,214,255,.12); color: var(--cyan); border: 1px solid rgba(47,214,255,.4); }
.si-tag.soon { background: rgba(243,193,75,.14); color: var(--gold); border: 1px solid rgba(243,193,75,.45); }
.si-link { display: inline-block; margin-top: 14px; color: var(--red-2); font-weight: 600; font-size: 14px; }
.si-link:hover { text-decoration: underline; }
@media (max-width: 960px) { .si-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .si-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Nav: keep labels on one line now that there are more links */
.main-nav a { white-space: nowrap; }
@media (max-width: 1600px) and (min-width: 961px) { .header-inner { gap: 16px; } .main-nav a { padding: 8px 8px; font-size: 15px; letter-spacing: .04em; } }
@media (max-width: 1180px) and (min-width: 961px) { .main-nav a { padding: 8px 5px; font-size: 13.5px; } .brand-text { display: none; } }

.si-feats li.si-hl { color: #fff; font-weight: 600; }
.si-feats li.si-hl::before { background: var(--gold); box-shadow: 0 0 8px rgba(243,193,75,.7); }
.si-feats li.si-more { color: var(--red-2); font-style: italic; }
.si-feats li.si-more::before { display: none; }
.si-feats li.si-more { padding-left: 0; }

/* ---------- Download countdown ---------- */
.store-btn.is-locked { opacity: .82; }
.store-btn.is-locked small { color: var(--gold); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.release-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 16px; padding: 14px 18px;
  background: linear-gradient(90deg, rgba(243,193,75,.14), rgba(227,18,42,.1)); border: 1px solid rgba(243,193,75,.45); border-radius: var(--radius); }
.release-banner[hidden] { display: none; }
.rb-label { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.rb-left { font-family: var(--font-tech); font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.rb-when { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.footer-soon { display: block; padding: 4px 0; color: var(--muted); font-size: 15px; }
.footer-soon em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(243,193,75,.45); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.store-btn.is-locked small { white-space: nowrap; }

/* Register captcha */
.cap-row { display: flex; align-items: center; gap: 8px; }
.cap-img { flex: 0 0 auto; width: 160px; height: 56px; border-radius: 6px; overflow: hidden; background: #0d1017;
  display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; border: 1px solid var(--line); }
.cap-img svg { width: 100%; height: 100%; display: block; }
.cap-img.loading { opacity: .4; }
.cap-refresh { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: #fff; font-size: 20px; line-height: 1; }
.cap-refresh:hover { border-color: var(--red); color: var(--red-2); }
.cap-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .2em; font-family: var(--font-tech); }
@media (max-width: 420px) { .cap-row { flex-wrap: wrap; } .cap-row input { flex-basis: 100%; } }

/* Download notice (Alpha info before the APK / TestFlight link) */
.dl-dialog { width: min(520px, 100%); }
.dl-dialog .reg-head { margin-bottom: 14px; padding-right: 30px; }
.dl-dialog [hidden] { display: none !important; }
.dl-badge { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(243,193,75,.5); background: rgba(243,193,75,.08); }
.dl-body p { margin: 0 0 10px; color: #d6dae2; line-height: 1.6; }
.dl-body .dl-note { color: var(--muted); font-size: 14px; }
.dl-report { margin: 14px 0 18px; padding: 14px 16px; border-radius: 8px; background: rgba(227,18,42,.08); border: 1px solid rgba(227,18,42,.35); }
.dl-report-title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; font-size: 14px; }
.dl-report ul { margin: 0; padding-left: 18px; color: #c3c8d2; font-size: 14px; line-height: 1.6; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-actions .btn { flex: 1 1 180px; justify-content: center; text-align: center; }

/* ---------- Player Panel / Admin Panel ---------- */
.panel-page .panel { padding-top: calc(var(--header-h) + 28px); padding-bottom: 60px; min-height: 70vh; }
.pp-card { background: linear-gradient(180deg, #171a23, #0e1016); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pp-login { max-width: 520px; margin: 0 auto; }
.pp-login .pp-card { border-color: rgba(227,18,42,.45); }
.pp-intro { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.pp-narrow { max-width: 560px; }
.pp-h { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.pp-muted { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.pp-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; padding: 18px 22px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.pp-user { display: flex; align-items: center; gap: 14px; flex: 1 1 260px; }
.pp-user .reg-title { font-size: clamp(20px, 3vw, 26px); }
.pp-user .kicker { margin: 0; }
.pp-points { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 10px; background: rgba(243,193,75,.1); border: 1px solid rgba(243,193,75,.4); }
.pp-points span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.pp-points b { font-family: var(--font-tech); font-size: 24px; color: var(--gold); }
.pp-points i { font-style: normal; color: var(--gold); font-weight: 700; }
.pp-tabs { margin-bottom: 18px; flex-wrap: wrap; }
.pp-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.pp-pane { animation: ppIn .25s ease; }
@keyframes ppIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pp-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pp-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-row input { flex: 1 1 220px; min-width: 0; padding: 11px 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-tech); }
.pp-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,18,42,.18); }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-table th, .pp-table td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.pp-table th { border-top: 0; font-family: var(--font-head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pp-table .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pp-plus { color: #3ee57a; font-weight: 700; } .pp-minus { color: #ff5a6c; font-weight: 700; }
.pp-empty { padding: 30px; text-align: center; color: var(--muted); }
.pp-gift { display: flex; gap: 16px; align-items: flex-start; }
.pp-gift-icon { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-size: 26px; background: rgba(243,193,75,.12); border: 1px solid rgba(243,193,75,.4); }
.pp-gift.claimed .pp-gift-icon { background: rgba(255,255,255,.05); border-color: var(--line); filter: grayscale(1); opacity: .7; }
.pp-gift h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 18px; }
.pp-gift p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.pp-contents { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pp-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; border: 1px solid rgba(243,193,75,.5); color: var(--gold); background: rgba(243,193,75,.08); }
.pp-pill.item { border-color: rgba(47,214,255,.5); color: var(--cyan); background: rgba(47,214,255,.08); }
.pp-pkg { cursor: pointer; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 18px 14px; background: var(--panel); transition: border-color .2s, transform .2s; }
.pp-pkg:hover { transform: translateY(-2px); border-color: rgba(243,193,75,.5); }
.pp-pkg.sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(243,193,75,.35); }
.pp-pkg b { display: block; font-family: var(--font-tech); font-size: 26px; color: var(--gold); }
.pp-pkg .bonus { color: #3ee57a; font-size: 13px; font-weight: 700; }
.pp-pkg .price { display: block; margin-top: 8px; color: #fff; font-weight: 600; }
.pp-pkg small { color: var(--muted); }
.pp-methods { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.pp-method { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; min-width: 150px; text-align: left; }
.pp-method:hover { border-color: rgba(255,255,255,.3); }
.pp-method.sel { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227,18,42,.3); }
.pp-method b { font-family: var(--font-head); font-size: 16px; }
.pp-method small { color: var(--muted); }
.pp-method[disabled] { opacity: .45; cursor: not-allowed; }
.pp-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 10px; background: rgba(227,18,42,.08); border: 1px solid rgba(227,18,42,.35); margin-top: 8px; }
.pp-summary p { margin: 0; }
.pp-status { padding: 18px 20px; border-radius: 10px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--panel); }
.pp-status.good { border-color: rgba(62,229,122,.5); } .pp-status.bad { border-color: rgba(255,90,108,.5); } .pp-status.wait { border-color: rgba(243,193,75,.5); }
.pp-item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.pp-item > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #0d1017; }
.pp-item .ph { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, #1a1e28, #0d1017); }
.pp-item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pp-item h3 { margin: 0; font-family: var(--font-head); font-size: 18px; }
.pp-item p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.pp-item .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.pp-item .price { font-family: var(--font-tech); color: var(--gold); font-size: 18px; white-space: nowrap; }
.pp-item .btn { width: 100%; justify-content: center; }
.pp-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 400; padding: 12px 20px; border-radius: 10px; background: #171a23; border: 1px solid var(--line); color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); max-width: min(520px, 92vw); }
.pp-toast.good { border-color: #3ee57a; } .pp-toast.bad { border-color: #ff5a6c; }
.pp-toast[hidden] { display: none; }
.pp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-actions .btn { flex: 1 1 160px; justify-content: center; }
.nav-panel { color: var(--gold) !important; }
/* admin */
.ad-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.ad-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #cfd3dc; font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.ad-form input, .ad-form select, .ad-form textarea { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; }
.ad-form .wide { grid-column: 1 / -1; }
.ad-form .btn { align-self: end; }
.ad-codes { font-family: var(--font-tech); letter-spacing: .06em; white-space: pre; background: #0d1017; padding: 14px; border-radius: 8px; max-height: 260px; overflow: auto; font-size: 14px; }
.ad-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ad-stat { padding: 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.ad-stat span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ad-stat b { font-family: var(--font-tech); font-size: 24px; color: var(--gold); }
.pp-table .btn-sm { padding: 5px 10px; font-size: 12px; }
.pp-table-wrap { overflow-x: auto; }
.pp-card + .pp-card { margin-top: 18px; }
@media (max-width: 720px) { .pp-grid2 { grid-template-columns: 1fr; } .pp-top { padding: 14px; } .pp-card { padding: 18px; } }

/* game icons in the panel */
.tab-ic { width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 7px; }
.pp-points-ic { width: 28px; height: 28px; object-fit: contain; align-self: center; }
.pp-face { display: inline-block; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; background: #0d1017; vertical-align: middle; margin-right: 10px; }
.pp-charcell { min-width: 150px; }
.pp-school { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.pp-gift-icon img { width: 48px; height: 48px; object-fit: contain; }
.pp-pill img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.pp-ic, .pp-item .price img.pp-ic { width: 20px; height: 20px; aspect-ratio: auto; vertical-align: -4px; margin-right: 4px; display: inline; }
.pp-item .ph img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); }
.pp-pkg-ic { width: 40px; height: 40px; object-fit: contain; margin-bottom: 6px; }

/* ---------- item icons + item picker (items.js) ---------- */
.ge-icon { display: inline-block; flex: none; vertical-align: middle; background-repeat: no-repeat; image-rendering: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; background-color: rgba(0,0,0,.35); }
.ge-icon-none { background: rgba(0,0,0,.35) url("../img/panel/box_purple.png") center / 70% no-repeat; }
.ge-picker .reg-dialog.ge-picker-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.ge-picker-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.ge-picker-bar input { flex: 1 1 260px; min-width: 0; }
.ge-picker-bar select { flex: 0 1 200px; }
.ge-picker-bar input, .ge-picker-bar select { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.4); color: inherit; font: inherit; }
.ge-picker-count { margin: 8px 0; font-size: .85rem; opacity: .7; }
.ge-picker-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding-right: 4px; min-height: 200px; }
.ge-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; text-align: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; }
.ge-pick:hover, .ge-pick:focus-visible { border-color: #e23b3b; background: rgba(226,59,59,.12); }
.ge-pick span:not(.ge-icon) { font-size: .82rem; line-height: 1.2; }
.ge-pick small { font-size: .7rem; opacity: .6; }
.ad-pick { display: flex; flex-direction: column; gap: 6px; }
.ad-pick-lbl { font-size: .85rem; opacity: .8; }
.ad-pick-btn { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 12px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.3); background: rgba(0,0,0,.3); color: inherit; font: inherit; cursor: pointer; }
.ad-pick-btn:hover { border-color: #e23b3b; }
.ad-pick-name small { display: block; font-size: .75rem; opacity: .6; margin-top: 2px; }
.ad-pick-clear { align-self: flex-start; }
.ad-adv > summary { cursor: pointer; }
.pp-gift-icon .ge-icon { width: 56px; height: 56px; }
.pp-item .ph .ge-icon { margin: auto; }
.ge-pick-box { margin-top: 4px; font-size: .72rem; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(80,190,255,.5); color: #6cc8ff; }
.ge-pick-box:hover { background: rgba(80,190,255,.15); }
.ge-box { overflow-y: auto; min-height: 200px; }
.ge-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ge-box-head h3 { margin: 0; font-size: 1.05rem; }
.ge-box-head small { opacity: .6; }
.ge-box-t { margin: 12px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.ge-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ge-box li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); }
.ge-box li span:not(.ge-icon) { flex: 1; font-size: .9rem; }
.ge-box li b { font-size: .85rem; color: #f5c451; }
.ge-box-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ge-picker-grid[hidden], .ge-box[hidden] { display: none; }

/* ---------- iOS TestFlight: "update available" animation ---------- */
.store-btn.has-update { position: relative; animation: ge-upd-glow 2.2s ease-in-out infinite; }
.upd-badge { position: absolute; top: -9px; right: -8px; padding: 2px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; line-height: 1.4;
  color: #fff; background: linear-gradient(135deg, #ff3b4e, #c3122a); box-shadow: 0 0 0 2px rgba(10,10,14,.9); animation: ge-upd-bounce 1.6s ease-in-out infinite; pointer-events: none; }
.upd-badge::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #ff3b4e; animation: ge-upd-ping 1.6s ease-out infinite; }
.dl-update { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,59,78,.45); background: linear-gradient(135deg, rgba(255,59,78,.16), rgba(255,59,78,.04)); }
.dl-update p { margin: 0; }
.dl-update-t { font-weight: 800; color: #ff5a6a; margin-bottom: 2px !important; }
.dl-bell { font-size: 1.5rem; line-height: 1; transform-origin: 50% 0; animation: ge-bell 2s ease-in-out infinite; }
@keyframes ge-upd-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,78,0); } 50% { box-shadow: 0 0 18px 2px rgba(255,59,78,.55); } }
@keyframes ge-upd-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ge-upd-ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ge-bell { 0%, 50%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .store-btn.has-update, .upd-badge, .upd-badge::after, .dl-bell { animation: none; } }
.pp-pkg-preview { min-height: 1.4em; font-size: .92rem; padding: 6px 0; }

/* ---------- Top Up (game GUI icons: assets/img/panel/topup) ---------- */
.tu-hero { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; border-radius: 14px; border: 1px solid rgba(243,193,75,.35);
  background: radial-gradient(120% 140% at 0% 0%, rgba(243,193,75,.18), transparent 55%), linear-gradient(135deg, rgba(227,18,42,.18), rgba(20,22,30,.9)); }
.tu-hero-ic { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 6px 18px rgba(80,170,255,.45)); animation: tu-float 3.2s ease-in-out infinite; }
.tu-hero-txt { flex: 1; min-width: 0; }
.tu-hero-txt h2 { margin: 0 0 4px; font-family: var(--font-head); font-size: 26px; letter-spacing: .02em; }
.tu-hero-txt p { margin: 0; color: var(--muted); }
.tu-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tu-trust span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.tu-bal { flex: none; text-align: center; padding: 10px 16px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(243,193,75,.35); }
.tu-bal b { display: block; font-family: var(--font-tech); font-size: 26px; color: var(--gold); line-height: 1.1; }
.tu-bal small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tu-step { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; vertical-align: 2px; }
.tu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 6px; }
.tu-pkg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 12px 16px; border-radius: 14px; cursor: pointer; color: #fff; font: inherit;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); transition: transform .2s, border-color .2s, box-shadow .2s; }
.tu-pkg:hover { transform: translateY(-3px); border-color: rgba(243,193,75,.55); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.tu-pkg.sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(243,193,75,.45), 0 12px 30px rgba(243,193,75,.15); background: linear-gradient(180deg, rgba(243,193,75,.14), rgba(255,255,255,.02)); }
.tu-pkg.best { border-color: rgba(120,200,255,.55); }
.tu-chest { width: 76px; height: 76px; margin-bottom: 6px; transition: transform .25s; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.tu-pkg:hover .tu-chest, .tu-pkg.sel .tu-chest { transform: scale(1.08) rotate(-3deg); }
.tu-amt { font-family: var(--font-tech); font-size: 28px; color: var(--gold); line-height: 1.05; }
.tu-unit { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.tu-bonus { min-height: 18px; font-size: 12px; color: var(--muted); }
.tu-bonus b { color: #3ee57a; }
.tu-price { margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(227,18,42,.16); border: 1px solid rgba(227,18,42,.4); font-weight: 700; }
.tu-price i { font-style: normal; opacity: .5; margin: 0 6px; }
.tu-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tu-ribbon img { width: 20px; height: 20px; }
.tu-ribbon.best { background: linear-gradient(135deg, #59c8ff, #2a6fdb); color: #fff; }
.tu-ribbon.pop { background: linear-gradient(135deg, #ffd66b, #e59a12); color: #2a1a00; }
.tu-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.tu-method { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: 12px; cursor: pointer; text-align: left; color: #fff; font: inherit;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tu-method:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.tu-method.sel { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227,18,42,.35); background: rgba(227,18,42,.08); }
.tu-method[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.tu-method small { color: var(--muted); font-size: 12px; }
.m-logo { display: inline-flex; align-items: center; gap: 6px; height: 30px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.m-logo svg { width: 26px; height: 26px; fill: currentColor; }
.m-logo-img { height: 26px; width: auto; max-width: 110px; object-fit: contain; border-radius: 4px; }
.m-paypal-logo { color: #009cde; font-style: italic; } .m-paypal-logo i { color: #fff; }
.m-revolut-logo { color: #fff; font-family: var(--font-head); letter-spacing: .01em; }
.m-revolut .m-revolut-logo::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #0666eb, #8b5cf6); }
.m-maya-logo { color: #00d27a; text-transform: lowercase; }
.m-card-logo { color: #e5e7eb; font-size: 18px; }
.tu-soon { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(243,193,75,.45); background: rgba(243,193,75,.06); }
.tu-soon img { width: 56px; height: 56px; }
.tu-soon p { margin: 2px 0 0; color: var(--muted); }
.tu-summary { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(227,18,42,.28), rgba(20,22,30,.96)); border: 1px solid rgba(227,18,42,.55); box-shadow: 0 12px 30px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.tu-summary[hidden] { display: none; }
.tu-summary p { margin: 0; flex: 1; display: flex; flex-direction: column; }
.tu-sum-ic { width: 48px; height: 48px; }
.tu-sum-amt { font-family: var(--font-tech); font-size: 22px; color: var(--gold); }
.tu-note { margin-top: 14px; }
@keyframes tu-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 640px) {
  .tu-hero { flex-wrap: wrap; } .tu-hero-ic { width: 64px; height: 64px; } .tu-bal { width: 100%; }
  .tu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tu-pkg { min-width: 0; padding: 20px 8px 14px; } .tu-amt { font-size: 22px; } .tu-chest { width: 60px; height: 60px; }
  .tu-price { padding: 5px 8px; font-size: 13px; text-align: center; } .tu-price i { margin: 0 3px; } .tu-methods { grid-template-columns: minmax(0, 1fr); }
  .tu-summary .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tu-hero-ic { animation: none; } }

.tu-consent { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: #d6d9e0; cursor: pointer; }
.tu-consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.tu-consent a { color: var(--gold); }

/* ---------- Google Play closed beta steps ---------- */
.dl-steps { list-style: none; counter-reset: dls; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.dl-steps li { counter-increment: dls; position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px 48px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.dl-steps li::before { content: counter(dls); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; }
.dl-steps a { color: #6cc8ff; font-size: 13px; word-break: break-all; }
.dl-steps a:hover { text-decoration: underline; }
.store-btn.has-beta { position: relative; }

/* readable dropdown lists everywhere (Windows shows <option> with the page colors) */
select option, select optgroup { background: #14161c; color: #e8eaf0; }

/* ---------- admin: in-game Item Mall (pro) ---------- */
#pane-mall { --mx-bg: #12141a; --mx-panel: linear-gradient(180deg, #1b1e27, #14161d); --mx-line: rgba(255,255,255,.08); --mx-gold: #f3c14b; --mx-red: #e3122a; }
.mx-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(243,193,75,.28);
  background: radial-gradient(110% 160% at 0% 0%, rgba(243,193,75,.16), transparent 50%), radial-gradient(90% 140% at 100% 100%, rgba(227,18,42,.18), transparent 55%), #15171e; }
.mx-hero-ic { width: 64px; height: 64px; filter: drop-shadow(0 6px 16px rgba(80,170,255,.4)); }
.mx-hero h2 { margin: 0 0 4px; font-family: var(--font-head); font-size: 24px; letter-spacing: .02em; }
.mx-hero p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 640px; } .mx-hero p b { color: var(--mx-gold); }
.mx-hero-stats { margin-left: auto; display: flex; gap: 10px; }
.mx-hero-stats div { min-width: 78px; text-align: center; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--mx-line); }
.mx-hero-stats b { display: block; font-family: var(--font-tech); font-size: 22px; color: var(--mx-gold); line-height: 1.1; }
.mx-hero-stats span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mx-wrap { display: grid; grid-template-columns: minmax(270px, .95fr) minmax(340px, 1.15fr) minmax(320px, 1.05fr); gap: 14px; align-items: start; }
.mx-panel { min-width: 0; padding: 16px; border-radius: 16px; background: var(--mx-panel); border: 1px solid var(--mx-line); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.mx-panel-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--font-head); font-size: 17px; letter-spacing: .03em; }
.mx-panel-h small { margin-left: auto; color: var(--muted); font-family: inherit; font-size: 12px; }
.mx-dot { width: 8px; height: 8px; border-radius: 50%; background: #59c8ff; box-shadow: 0 0 10px #59c8ff; } .mx-dot.gold { background: var(--mx-gold); box-shadow: 0 0 10px var(--mx-gold); }
.mx-bar { display: flex; gap: 8px; } .mx-bar input { flex: 1; min-width: 0; } .mx-bar select { max-width: 46%; }
#pane-mall input[type=search], #pane-mall input[type=number], #pane-mall select { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #0d0f14; color: #fff; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
#pane-mall input:focus, #pane-mall select:focus { border-color: var(--mx-gold); box-shadow: 0 0 0 3px rgba(243,193,75,.18); }
.mx-count { margin: 8px 0; font-size: 11.5px; color: var(--muted); }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 72vh; overflow-y: auto; padding: 2px 4px 2px 2px; }
.mx-grid::-webkit-scrollbar, .mx-list::-webkit-scrollbar, .mx-detail::-webkit-scrollbar { width: 8px; } .mx-grid::-webkit-scrollbar-thumb, .mx-list::-webkit-scrollbar-thumb, .mx-detail::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }
/* item slot frame (game style: dark inset + bevel, gold when active) */
.mx-slot { position: relative; display: inline-grid; place-items: center; flex: none; padding: 4px; border-radius: 9px; background: linear-gradient(145deg, #2a2e3a, #0b0c10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 2px 6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4); }
.mx-slot .ge-icon { border: 0; border-radius: 5px; }
.mx-slot.big { padding: 6px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, rgba(243,193,75,.35), transparent 65%), linear-gradient(145deg, #2f3341, #0b0c10); box-shadow: inset 0 0 0 1px rgba(243,193,75,.55), 0 8px 24px rgba(243,193,75,.18); }
.mx-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.025); color: inherit; font: inherit; cursor: grab; transition: transform .15s, border-color .15s, background .15s; }
.mx-card:hover { transform: translateY(-2px); border-color: rgba(243,193,75,.45); background: rgba(243,193,75,.06); }
.mx-card:hover .mx-slot, .mx-card.sel .mx-slot { box-shadow: inset 0 0 0 1px var(--mx-gold), 0 0 14px rgba(243,193,75,.35); }
.mx-card.sel { border-color: var(--mx-gold); background: rgba(243,193,75,.1); }
.mx-card:active { cursor: grabbing; }
.mx-card-n { font-size: 11px; line-height: 1.25; text-align: center; color: #d9dce4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mx-badge { position: absolute; top: 5px; font-size: 8.5px; font-weight: 800; font-style: normal; letter-spacing: .06em; padding: 2px 5px; border-radius: 5px; }
.mx-badge.box { left: 5px; background: #2a6fdb; color: #fff; } .mx-badge.mall { right: 5px; background: var(--mx-gold); color: #2a1a00; }
/* detail */
.mx-detail { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.mx-empty { display: grid; place-items: center; gap: 10px; min-height: 240px; text-align: center; color: var(--muted); } .mx-empty img { width: 70px; opacity: .85; } .mx-empty.small { min-height: 90px; }
.mx-d-head { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--mx-line); }
.mx-d-title h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 21px; line-height: 1.15; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 5px; } .mx-chips span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--mx-line); color: #cfd3dc; }
.mx-chips .gold { color: var(--mx-gold); border-color: rgba(243,193,75,.4); } .mx-chips .red { color: #ff6b7a; border-color: rgba(227,18,42,.5); }
.mx-desc { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--mx-gold); background: rgba(243,193,75,.06); font-size: 13px; line-height: 1.5; }
.mx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.mx-stat { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.28); border: 1px solid var(--mx-line); font-size: 12.5px; }
.mx-stat span { color: var(--muted); } .mx-stat b { text-align: right; color: #fff; }
.mx-sec { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mx-gold); }
.mx-sec small { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.mx-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mx-sub li { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid transparent; cursor: pointer; font-size: 13px; }
.mx-sub li:hover { border-color: rgba(89,200,255,.4); background: rgba(89,200,255,.06); } .mx-sub li span:not(.ge-icon):not(.mx-slot) { flex: 1; } .mx-sub li b { color: var(--mx-gold); font-size: 12px; }
.mx-note { margin: 10px 0 0; font-size: 12px; color: #9fd4ff; }
/* form */
.mx-form { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--mx-line); }
.mx-field { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; min-width: 0; } .mx-field > label { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.mx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .mx-seg.two { grid-template-columns: 1fr 1fr; }
.mx-seg label, .mx-tabpick label { position: relative; cursor: pointer; } .mx-seg input, .mx-tabpick input { position: absolute; opacity: 0; pointer-events: none; }
.mx-seg span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #0d0f14; transition: all .15s; }
.mx-seg b { font-family: var(--font-tech); font-size: 17px; } .mx-seg small { font-size: 9.5px; color: var(--muted); text-align: center; }
.mx-seg .c1 b { color: #7cc4ff; } .mx-seg .c2 b { color: var(--mx-gold); } .mx-seg .c3 b { color: #c18bff; } .mx-seg .c4 b { color: #ff8a5c; }
.mx-seg input:checked + span { border-color: var(--mx-gold); background: rgba(243,193,75,.12); box-shadow: 0 0 0 2px rgba(243,193,75,.25); }
.mx-seg .on b { color: #3ee57a; font-family: var(--font-head); font-size: 14px; } .mx-seg .off b { color: #ff6b7a; font-family: var(--font-head); font-size: 14px; }
.mx-seg input:focus-visible + span, .mx-tabpick input:focus-visible + span { outline: 2px solid var(--mx-gold); outline-offset: 2px; }
.mx-money { position: relative; } .mx-money input { width: 100%; padding-right: 46px !important; font-family: var(--font-tech); font-size: 18px !important; color: var(--mx-gold) !important; }
.mx-money i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; font-size: 12px; color: var(--muted); }
#mxStock { width: 100%; }
.mx-quick { display: flex; flex-wrap: wrap; gap: 4px; } .mx-quick button { padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; } .mx-quick button:hover { color: #fff; border-color: var(--mx-gold); }
.mx-tabpick { display: flex; flex-wrap: wrap; gap: 5px; }
.mx-tabpick span { display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: #0d0f14; font-size: 12px; color: #cfd3dc; transition: all .15s; }
.mx-tabpick span:hover { border-color: rgba(255,255,255,.3); } .mx-tabpick input:checked + span { background: var(--mx-red); border-color: var(--mx-red); color: #fff; box-shadow: 0 4px 14px rgba(227,18,42,.35); }
.mx-preview { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 12px 10px; border-radius: 12px; border: 1px dashed rgba(243,193,75,.4); background: rgba(243,193,75,.04); }
.mx-preview > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .mx-preview > div b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mx-preview > div small { color: var(--muted); font-size: 11px; }
.mx-preview-l { position: absolute; top: -8px; left: 10px; padding: 0 6px; background: #181b23; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mx-gold); }
.mx-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; } .mx-actions .btn { flex: 1; min-width: 140px; }
/* price pill per currency */
.mx-price { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: rgba(0,0,0,.35); border: 1px solid var(--mx-line); }
.mx-price b { font-family: var(--font-tech); font-size: 16px; } .mx-price i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--muted); }
.mx-price.c1 b { color: #7cc4ff; } .mx-price.c2 b { color: var(--mx-gold); } .mx-price.c3 b { color: #c18bff; } .mx-price.c4 b { color: #ff8a5c; }
/* mall list */
.mx-find { width: 100%; margin-bottom: 10px; }
.mx-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.mx-tabs button { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #cfd3dc; font: inherit; font-size: 12px; cursor: pointer; transition: all .15s; }
.mx-tabs button b { margin-left: 2px; color: var(--mx-gold); } .mx-tabs button.zero { opacity: .5; }
.mx-tabs button:hover { border-color: rgba(255,255,255,.3); } .mx-tabs button.on { background: var(--mx-red); border-color: var(--mx-red); color: #fff; opacity: 1; } .mx-tabs button.on b { color: #fff; }
.mx-tabs button.hid { margin-left: auto; }
.mx-drop { display: none; place-items: center; gap: 4px; margin-bottom: 10px; padding: 22px; border-radius: 14px; border: 2px dashed rgba(243,193,75,.6); color: var(--mx-gold); font-weight: 800; text-align: center; }
.mx-drop span { font-size: 22px; } .mx-mall.drag .mx-drop { display: grid; animation: mx-pulse 1.2s ease-in-out infinite; } .mx-mall.over .mx-drop { background: rgba(243,193,75,.14); border-style: solid; }
@keyframes mx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(243,193,75,0); } 50% { box-shadow: 0 0 0 6px rgba(243,193,75,.15); } }
.mx-list { display: grid; gap: 6px; max-height: 66vh; overflow-y: auto; padding-right: 2px; }
.mx-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 12px; border: 1px solid var(--mx-line); background: rgba(255,255,255,.025); cursor: pointer; transition: all .15s; }
.mx-row:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); transform: translateX(2px); }
.mx-row.sel { border-color: var(--mx-gold); background: rgba(243,193,75,.08); box-shadow: inset 3px 0 0 var(--mx-gold); }
.mx-row.off { opacity: .55; } .mx-row.off:hover { opacity: .85; }
.mx-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mx-row-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-row-t small { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.mx-tag { padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.07); color: #cfd3dc; }
.mx-tag.warn { background: rgba(255,138,92,.18); color: #ffb08f; } .mx-tag.web { background: rgba(89,200,255,.15); color: #9fd4ff; } .mx-tag.hid { background: rgba(227,18,42,.18); color: #ff8b97; }
@media (max-width: 1250px) { .mx-wrap { grid-template-columns: 1fr 1fr; } .mx-mall { grid-column: 1 / -1; } .mx-detail { position: static; max-height: none; } .mx-list { max-height: none; } }
@media (max-width: 760px) { .mx-wrap { grid-template-columns: 1fr; } .mx-hero { flex-wrap: wrap; } .mx-hero-stats { margin-left: 0; } .mx-seg { grid-template-columns: repeat(2, 1fr); } .mx-two { grid-template-columns: 1fr; } }

.mx-del { display: block; width: 100%; margin-top: 10px; padding: 9px; border-radius: 10px; border: 1px solid rgba(227,18,42,.45); background: rgba(227,18,42,.08); color: #ff8b97; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; }
.mx-del:hover { background: rgba(227,18,42,.2); border-color: #e3122a; color: #fff; }

.mx-isec { margin-top: 12px; }
.mx-isec-t { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #cfd3dc; }
.mx-isec-t i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(243,193,75,.14); color: #f3c14b; font-style: normal; font-size: 11px; }
.mx-isec .mx-stats { margin-top: 0; }
.mx-stat.gold b { color: #f3c14b; } .mx-stat.orange b { color: #ffa45c; } .mx-stat.warn b { color: #ff8b97; }

/* ---------- admin: Send Items ---------- */
.sx-wrap { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
#pane-send input[type=search], #pane-send input:not([type]), #pane-send select { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #0d0f14; color: #fff; font: inherit; outline: none; width: 100%; }
#pane-send input:focus, #pane-send select:focus { border-color: #f3c14b; box-shadow: 0 0 0 3px rgba(243,193,75,.18); }
.sx-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e3122a; color: #fff; font-size: 13px; }
.sx-gap { margin-top: 18px; }
.sx-target { grid-template-columns: repeat(3, 1fr); } .sx-target b { font-size: 22px !important; }
.sx-user { margin-top: 10px; }
.sx-count { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(89,200,255,.08); border: 1px solid rgba(89,200,255,.25); font-size: 13.5px; } .sx-count b { color: #f3c14b; font-family: var(--font-tech); font-size: 18px; }
.sx-src { display: flex; gap: 6px; margin-bottom: 10px; }
.sx-src button { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #0d0f14; color: #cfd3dc; font: inherit; cursor: pointer; }
.sx-src button.on, .sx-src button:hover { border-color: #f3c14b; color: #fff; background: rgba(243,193,75,.1); }
.sx-mall { display: grid; gap: 5px; max-height: 46vh; overflow-y: auto; }
.sx-form { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-top: 14px; } .sx-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.sx-summary { min-height: 22px; margin-top: 12px; font-size: 13.5px; } .sx-summary b { color: #f3c14b; }
.sx-go { width: 100%; margin-top: 10px; }
.sx-go:disabled { opacity: .45; cursor: not-allowed; }
.sx-hist { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.sx-h { padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); font-size: 12px; display: flex; flex-direction: column; gap: 3px; } .sx-h small { color: var(--muted); }
@media (max-width: 900px) { .sx-wrap { grid-template-columns: 1fr; } }

/* ---------- Staff page (staff.html) ---------- */

.st-page { padding: 110px 0 70px; }
.st-hero { position: relative; text-align: center; padding: 40px 20px 34px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(243,193,75,.25);
  background: radial-gradient(70% 120% at 50% 0%, rgba(227,18,42,.28), transparent 60%), radial-gradient(60% 90% at 50% 100%, rgba(243,193,75,.12), transparent 70%), #101218; }
.st-hero .kicker { margin-bottom: 8px; }
.st-hero h1 { margin: 0 0 10px; font-family: var(--font-head); font-size: clamp(30px, 5vw, 52px); letter-spacing: .03em; }
.st-hero h1 span { color: #e3122a; }
.st-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.6; }
.st-hero-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.st-hero-stats div { min-width: 120px; padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.st-hero-stats b { display: block; font-family: var(--font-tech); font-size: 24px; color: #f3c14b; }
.st-hero-stats span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.st-safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 6px; }
.st-safe-grid .st-safe { margin: 0; }
.st-safe.gold { border-color: rgba(243,193,75,.35); background: rgba(243,193,75,.06); } .st-safe.gold b { color: #f3c14b; } .st-safe.gold .st-safe-ic { background: rgba(243,193,75,.15); }
.st-safe.green { border-color: rgba(36,192,107,.35); background: rgba(36,192,107,.06); } .st-safe.green b { color: #5be39a; } .st-safe.green .st-safe-ic { background: rgba(36,192,107,.15); }
.st-sec-d { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.r-middleman { --rc: #f3c14b; } .r-agent { --rc: #24c06b; }
@media (max-width: 900px) { .st-safe-grid { grid-template-columns: 1fr; } }
.st-safe { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0 6px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(89,200,255,.3); background: rgba(89,200,255,.06); }
.st-safe-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(89,200,255,.15); font-size: 22px; }
.st-safe b { color: #9fd4ff; } .st-safe p { margin: 4px 0 0; color: #cfd3dc; font-size: 14px; line-height: 1.55; }

.st-sec { margin-top: 44px; }
.st-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.st-sec-h h2 { margin: 0; font-family: var(--font-head); font-size: 24px; letter-spacing: .04em; }
.st-sec-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(243,193,75,.5), transparent); }
.st-sec-h img { width: 30px; height: 30px; }

/* leader card */
.st-lead { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; padding: 26px; border-radius: 22px; border: 1px solid rgba(243,193,75,.35);
  background: radial-gradient(80% 140% at 0% 50%, rgba(243,193,75,.14), transparent 60%), linear-gradient(180deg, #1b1e27, #121419); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.st-lead .st-ph { width: 200px; height: 200px; }
.st-lead h3 { margin: 0; font-family: var(--font-head); font-size: 32px; letter-spacing: .02em; }
.st-lead .st-ign { font-size: 15px; }
.st-lead p.st-bio { font-size: 15px; max-width: 620px; }

/* portrait */
.st-ph { position: relative; width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 210deg, var(--rc, #e3122a), #f3c14b, var(--rc, #e3122a)); box-shadow: 0 0 30px color-mix(in srgb, var(--rc, #e3122a) 45%, transparent); }
.st-ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0b0c10; border: 3px solid #0b0c10; }
.st-ph .st-school { position: absolute; right: 2px; bottom: 2px; width: 34%; height: 34%; border-radius: 50%; border: 3px solid #0b0c10; background: #0b0c10; }
.st-online { position: absolute; left: 8%; top: 8%; width: 16px; height: 16px; border-radius: 50%; background: #3ee57a; border: 3px solid #0b0c10; box-shadow: 0 0 10px #3ee57a; }

/* team cards */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.st-card { position: relative; text-align: center; padding: 26px 18px 20px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #1b1e27, #13151b); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.st-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: radial-gradient(70% 100% at 50% 0%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%); pointer-events: none; }
.st-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.st-name { margin: 14px 0 2px; font-family: var(--font-head); font-size: 21px; letter-spacing: .02em; }
.st-ign { color: var(--muted); font-size: 13px; } .st-ign b { color: #f3c14b; font-weight: 600; }
.st-role { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: color-mix(in srgb, var(--rc) 25%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 70%, transparent); }
.st-bio { margin: 12px 0 0; color: #cfd3dc; font-size: 13.5px; line-height: 1.55; }
.st-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.st-meta span { padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: #cfd3dc; }
.st-lead .st-meta { justify-content: flex-start; }

.r-owner { --rc: #f3c14b; } .r-dev { --rc: #a970ff; } .r-gm { --rc: #e3122a; } .r-mod { --rc: #2f8cff; } .r-support { --rc: #24c06b; } .r-event { --rc: #ff8a3c; }

.st-cta { margin-top: 50px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(227,18,42,.25), rgba(20,22,30,.95)); border: 1px solid rgba(227,18,42,.45); }
.st-cta h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 22px; } .st-cta p { margin: 0; color: #cfd3dc; }
@media (max-width: 720px) { .st-lead { grid-template-columns: 1fr; text-align: center; } .st-lead .st-meta { justify-content: center; } .st-lead .st-ph { width: 160px; height: 160px; } }
  
.st-ph.photo { padding: 4px; } .st-ph.photo img:first-child { object-fit: cover; }
.st-flag { display: inline-flex; align-items: center; gap: 5px; }
.st-empty { text-align: center; color: var(--muted); padding: 30px 0; }


.st-ph.logo img:first-child { object-fit: contain; padding: 8px; background: radial-gradient(circle, #2a0d12, #0b0c10 70%); }
.st-vacant { border-style: dashed; border-color: color-mix(in srgb, var(--rc) 45%, transparent); background: linear-gradient(180deg, rgba(27,30,39,.6), rgba(19,21,27,.6)); }
.st-vacant .st-ph { background: conic-gradient(from 210deg, color-mix(in srgb, var(--rc) 55%, transparent), rgba(255,255,255,.15), color-mix(in srgb, var(--rc) 55%, transparent)); box-shadow: none; }
.st-q { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #0b0c10; color: color-mix(in srgb, var(--rc) 80%, #fff); font-family: var(--font-tech); font-size: 40px; border: 3px solid #0b0c10; }
.st-vacant .st-name { color: #9aa0ad; }

/* ---------- Staff: pro portrait frame ---------- */
@property --sfa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.sf { --oct: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
  position: relative; width: 138px; height: 138px; margin: 4px auto 6px; }
.sf.big { width: 196px; height: 196px; }
.sf-glow { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 55%, transparent), transparent 66%); filter: blur(8px); opacity: .75; animation: sf-pulse 3.2s ease-in-out infinite; }
.sf-ring { position: absolute; inset: 0; clip-path: var(--oct);
  background: conic-gradient(from var(--sfa), #f3c14b, var(--rc), #fff3d0 18%, var(--rc) 30%, #7a5a12 45%, #f3c14b 60%, var(--rc) 78%, #fff3d0 88%, #f3c14b);
  animation: sf-spin 6s linear infinite; }
.sf-in { position: absolute; inset: 5px; clip-path: var(--oct); background: linear-gradient(160deg, #23262f, #08090c); }
.sf-in::after { content: ""; position: absolute; inset: 0; clip-path: var(--oct); box-shadow: inset 0 0 0 2px rgba(0,0,0,.6), inset 0 -18px 30px rgba(0,0,0,.45); pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.18) 0%, transparent 32%); }
.sf-in img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; clip-path: var(--oct); }
.sf-in img.logo { object-fit: contain; padding: 10px; background: radial-gradient(circle, #3a0d14, #0b0c10 72%); }
.sf-medal { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 17px;
  background: radial-gradient(circle at 35% 30%, #3b3f4d, #0b0c10 70%); border: 2px solid #f3c14b; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 55%, transparent), 0 6px 14px rgba(0,0,0,.6); }
.sf.big .sf-medal { width: 46px; height: 46px; font-size: 21px; bottom: -16px; }
.sf-q { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-tech); font-size: 46px; color: color-mix(in srgb, var(--rc) 80%, #fff); }
.sf.off .sf-ring { background: repeating-conic-gradient(from var(--sfa), color-mix(in srgb, var(--rc) 70%, transparent) 0 6deg, transparent 6deg 12deg); animation-duration: 14s; }
.sf.off .sf-glow { opacity: .3; } .sf.off .sf-medal { border-color: #555b68; filter: grayscale(.6); }
@keyframes sf-spin { to { --sfa: 360deg; } }
@keyframes sf-pulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.03); } }
.st-card:hover .sf-ring { animation-duration: 2.2s; }
.st-card { padding-top: 30px; } .st-card .st-name { margin-top: 22px; }
.st-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--rc), #f3c14b, var(--rc), transparent); }
.st-name { display: inline-flex; align-items: center; gap: 7px; }
.st-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1d9bf0; color: #fff; font-size: 10px; font-style: normal; box-shadow: 0 0 10px rgba(29,155,240,.6); }
.st-role { margin-top: 8px; }
.st-lead .st-name { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .sf-ring, .sf-glow { animation: none; } }
.st-card .st-name { display: flex; justify-content: center; width: 100%; }
.st-card .st-role { margin-top: 10px; }
.st-lead .st-name { display: flex; }

/* ---------- Staff: compact one-grid layout ---------- */
.st-page { padding: 96px 0 50px; }
.st-hero { padding: 26px 20px 22px; }
.st-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; }
.st-hero p { font-size: 15px; }
.st-hero-stats { margin-top: 14px; gap: 10px; } .st-hero-stats div { min-width: 100px; padding: 7px 14px; } .st-hero-stats b { font-size: 20px; }
.st-safe-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.st-tip { flex: 1 1 260px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; font-size: 13px; color: #cfd3dc;
  border: 1px solid rgba(89,200,255,.3); background: rgba(89,200,255,.06); }
.st-tip i { font-style: normal; font-size: 17px; } .st-tip.gold { border-color: rgba(243,193,75,.35); background: rgba(243,193,75,.06); } .st-tip.green { border-color: rgba(36,192,107,.35); background: rgba(36,192,107,.06); }
.st-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.st-filter button { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #cfd3dc; font: inherit; font-size: 13px; cursor: pointer; transition: all .15s; }
.st-filter button b { color: #f3c14b; margin-left: 2px; }
.st-filter button:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.st-filter button.on { background: #e3122a; border-color: #e3122a; color: #fff; } .st-filter button.on b { color: #fff; }
.st-filter button[class*="r-"].on { background: color-mix(in srgb, var(--rc) 30%, #14161c); border-color: var(--rc); }
#staffList .st-sec-d { margin: -4px 0 12px; }
#staffList .st-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
#staffList .st-card { padding: 22px 12px 16px; border-radius: 16px; }
#staffList .sf { width: 104px; height: 104px; }
#staffList .sf-medal { width: 32px; height: 32px; font-size: 14px; bottom: -12px; }
#staffList .st-card .st-name { margin-top: 18px; font-size: 18px; }
#staffList .st-role { margin-top: 8px; padding: 4px 10px; font-size: 10.5px; }
#staffList .st-meta { margin-top: 10px; } #staffList .st-meta span { font-size: 11px; padding: 3px 8px; }
#staffList .st-bio { font-size: 12px; margin-top: 8px; }
#staffList .sf-q { font-size: 36px; }
.st-cta { margin-top: 28px; padding: 18px 22px; }
@media (max-width: 520px) { #staffList .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } #staffList .sf { width: 88px; height: 88px; } #staffList .st-card .st-name { font-size: 15px; } }
/* staff: header in one row on desktop (title left, stats right) */
@media (min-width: 860px) {
  .st-page { padding-top: 88px; }
  .st-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; text-align: left; padding: 20px 26px; }
  .st-hero .kicker { margin-bottom: 4px; }
  .st-hero p { margin: 0; max-width: 560px; font-size: 14px; }
  .st-hero-stats { grid-row: 1 / span 3; grid-column: 2; margin: 0; }
  .st-safe-row { margin: 12px 0 14px; }
  .st-tip { flex: 1 1 0; }
}
@media (min-width: 860px) {
  .st-hero { row-gap: 0; align-content: center; }
  .st-hero h1 { margin: 0 0 4px; }
  .st-hero-stats { align-self: center; }
}

/* footer credit: graphics by SKAR GFX */
.gfx-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 2px; color: var(--muted); font-size: 13px; }
.gfx-logo { display: inline-flex; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(124,255,64,.18); transition: border-color .2s, box-shadow .2s, transform .2s; }
.gfx-logo img { width: 120px; height: auto; display: block; filter: drop-shadow(0 0 8px rgba(124,255,64,.25)); }
.gfx-logo:hover { border-color: rgba(124,255,64,.5); box-shadow: 0 0 18px rgba(124,255,64,.18); transform: translateY(-1px); }
.legal-footer .gfx-line { margin-top: 10px; }
.footer-brand .gfx-credit { margin-top: 14px; }
.footer-brand .gfx-credit img { display: block; width: 150px; height: auto; margin-top: 6px; filter: drop-shadow(0 0 10px rgba(124,255,64,.25)); }

/* ---------- admin: Economy monitor ---------- */
#pane-econ .mx-hero .btn { margin-left: auto; }
.ec-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ec-kpi { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #1b1e27, #14161d); border: 1px solid rgba(255,255,255,.08); }
.ec-kpi img { width: 34px; height: 34px; } .ec-kpi div { display: flex; flex-direction: column; min-width: 0; }
.ec-kpi span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ec-kpi b { font-family: var(--font-tech); font-size: 22px; color: #f3c14b; line-height: 1.15; }
.ec-kpi small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; } .ec-wrap.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-list { max-height: 520px; }
.ec-note { margin: -4px 0 10px; font-size: 12px; }
.ec-plus { display: inline-block; min-width: 28px; padding: 0 5px; margin-right: 4px; border-radius: 6px; text-align: center; font-family: var(--font-tech); font-size: 12px; color: #fff; background: #555; }
.ec-g9 .ec-plus { background: linear-gradient(135deg, #ff3b4e, #c3122a); box-shadow: 0 0 10px rgba(255,59,78,.5); }
.ec-g8 .ec-plus { background: linear-gradient(135deg, #c18bff, #7a3ee0); }
.ec-g7 .ec-plus { background: linear-gradient(135deg, #59c8ff, #2a6fdb); }
.ec-g9 { border-color: rgba(255,59,78,.35); }
.ec-table { display: grid; gap: 4px; }
.ec-tr { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.ec-rank { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.08); }
.ec-rank.r1 { background: #f3c14b; color: #2a1a00; } .ec-rank.r2 { background: #c9ced6; color: #222; } .ec-rank.r3 { background: #cd8a4a; color: #2a1200; }
.ec-td { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ec-td b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ec-td small { font-size: 11px; color: var(--muted); }
.ec-val { font-family: var(--font-tech); color: #f3c14b; font-size: 13px; white-space: nowrap; } .ec-val.ep { color: #7cc4ff; }
@media (max-width: 1100px) { .ec-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ec-wrap, .ec-wrap.three { grid-template-columns: 1fr; } }
#pane-econ input[type=search] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #0d0f14; color: #fff; font: inherit; outline: none; margin-bottom: 10px; }
#pane-econ input[type=search]:focus { border-color: #f3c14b; box-shadow: 0 0 0 3px rgba(243,193,75,.18); }
#ecGrade button.on { background: #e3122a; border-color: #e3122a; color: #fff; } #ecGrade button.on b { color: #fff; }

/* ---------- Player Panel: Game Time converter ---------- */
#pane-gametime { position: relative; }
.gt-hero { display: flex; align-items: center; gap: 26px; padding: 22px 26px; border-radius: 18px; margin-bottom: 14px; overflow: hidden; position: relative;
  border: 1px solid rgba(150,120,255,.35); background: radial-gradient(90% 140% at 0% 50%, rgba(122,92,255,.22), transparent 60%), radial-gradient(70% 120% at 100% 0%, rgba(58,215,255,.14), transparent 60%), #12131c; }
.gt-ring { position: relative; flex: none; width: 168px; height: 168px; }
.gt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 12px rgba(122,92,255,.5)); }
.gt-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.gt-arc { fill: none; stroke: url(#gtg); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.gt-ring-in { position: absolute; inset: 18px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #262942, #0c0d14 72%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.gt-ring-in img { width: 30px; height: 30px; animation: gt-tick 2s ease-in-out infinite; }
.gt-ring-in b { font-family: var(--font-tech); font-size: 21px; color: #fff; line-height: 1.1; }
.gt-ring-in small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #a9a3d9; }
.gt-hero-t h2 { margin: 2px 0 6px; font-family: var(--font-head); font-size: 28px; }
.gt-hero-t p { margin: 0; color: #c9cbe0; max-width: 520px; } .gt-hero-t p b { color: #c9b2ff; }
.gt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gt-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.gt-chip.rate { background: rgba(58,215,255,.12); border: 1px solid rgba(58,215,255,.35); color: #9fe6ff; }
.gt-chip.bal { background: rgba(185,139,255,.14); border: 1px solid rgba(185,139,255,.4); color: #e2d4ff; } .gt-chip.bal img { width: 20px; height: 20px; }
.gt-swap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; margin-bottom: 14px; }
.gt-side { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; }
.gt-side span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gt-side b { font-family: var(--font-tech); font-size: 40px; line-height: 1.1; }
.gt-side small { color: var(--muted); }
.gt-side .gt-bg { position: absolute; right: -14px; bottom: -14px; width: 110px; height: 110px; opacity: .14; transform: rotate(-12deg); }
.gt-side.from { background: linear-gradient(135deg, rgba(58,215,255,.14), rgba(20,22,32,.95)); border: 1px solid rgba(58,215,255,.3); } .gt-side.from b { color: #9fe6ff; }
.gt-side.to { background: linear-gradient(135deg, rgba(185,139,255,.2), rgba(20,22,32,.95)); border: 1px solid rgba(185,139,255,.45); } .gt-side.to b { color: #d9c4ff; text-shadow: 0 0 18px rgba(185,139,255,.6); }
.gt-flow { position: relative; display: grid; place-items: center; width: 70px; }
.gt-flow span { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, #6a5cff, #b98bff); box-shadow: 0 0 20px rgba(122,92,255,.6); }
.gt-flow i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #b98bff; box-shadow: 0 0 8px #b98bff; animation: gt-flow 1.6s linear infinite; }
.gt-flow i:nth-child(2) { animation-delay: .53s; } .gt-flow i:nth-child(3) { animation-delay: 1.06s; }
.gt-ctrl { margin-bottom: 14px; }
.gt-range-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .gt-range-row label { color: var(--muted); font-size: 13px; } .gt-range-row b { font-family: var(--font-tech); color: #d9c4ff; }
#gtRange { --fill: 100%; width: 100%; height: 10px; -webkit-appearance: none; appearance: none; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #3ad7ff, #b98bff var(--fill), rgba(255,255,255,.1) var(--fill)); }
#gtRange::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid #8a6bff; box-shadow: 0 0 12px rgba(138,107,255,.8); }
#gtRange::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #8a6bff; }
.gt-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.gt-quick button { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #d6d8ea; font: inherit; font-size: 13px; cursor: pointer; }
.gt-quick button:hover { border-color: #b98bff; color: #fff; } .gt-quick button.max { border-color: rgba(185,139,255,.6); color: #e2d4ff; background: rgba(185,139,255,.12); font-weight: 700; }
.gt-go { position: relative; width: 100%; overflow: hidden; padding: 16px; font-size: 17px; }
.gt-go::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: gt-shine 2.6s ease-in-out infinite; }
.gt-go:disabled::after { display: none; }
.gt-empty { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: rgba(58,215,255,.06); border: 1px dashed rgba(58,215,255,.35); }
.gt-empty img { width: 42px; } .gt-empty p { margin: 3px 0 0; color: var(--muted); }
.gt-next { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: #c9cbe0; } .gt-next b { color: #9fe6ff; }
.gt-bar { flex: 0 0 140px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; } .gt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ad7ff, #b98bff); border-radius: inherit; }
.gt-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.gt-info div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); font-size: 13px; color: #c9cbe0; }
.gt-info i { font-style: normal; font-size: 18px; }
.gt-hist { display: grid; gap: 6px; }
.gt-h { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(185,139,255,.06); border: 1px solid rgba(185,139,255,.18); }
.gt-h-ic img { width: 30px; height: 30px; } .gt-h b { color: #e2d4ff; } .gt-h small { display: block; color: var(--muted); font-size: 12px; }
.gt-burst { position: absolute; left: 50%; top: 210px; width: 0; height: 0; pointer-events: none; z-index: 5; }
.gt-burst img { position: absolute; width: 34px; height: 34px; left: -17px; top: -17px; animation: gt-burst 1.2s cubic-bezier(.2,.8,.2,1) var(--d) forwards; opacity: 0; }
@keyframes gt-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-170px) scale(1); } }
@keyframes gt-flow { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes gt-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes gt-tick { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@media (max-width: 760px) { .gt-hero { flex-direction: column; text-align: center; } .gt-chips { justify-content: center; }
  .gt-swap { grid-template-columns: 1fr; } .gt-flow { width: auto; height: 46px; } .gt-flow span { transform: rotate(90deg); } .gt-flow i { display: none; }
  .gt-info { grid-template-columns: 1fr; } .gt-side b { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .gt-flow i, .gt-go::after, .gt-ring-in img { animation: none; } }

/* ---------- admin: top-up codes (active / history) ---------- */
.cx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 10px; }
.cx-tabs { display: flex; gap: 6px; }
.cx-tabs button { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #cfd3dc; font: inherit; font-size: 13px; cursor: pointer; }
.cx-tabs button b { color: #f3c14b; margin-left: 3px; } .cx-tabs button.on { background: #e3122a; border-color: #e3122a; color: #fff; } .cx-tabs button.on b { color: #fff; }
#codeFind { flex: 1; min-width: 180px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #0d0f14; color: #fff; font: inherit; }
.cx-clear { border-color: rgba(227,18,42,.5) !important; color: #ff8b97 !important; } .cx-clear:disabled { opacity: .4; cursor: not-allowed; }
.cx-code { font-family: var(--font-tech); color: #f3c14b; }
.cx-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.cx-st.on { background: rgba(36,192,107,.15); color: #5be39a; } .cx-st.used { background: rgba(89,200,255,.15); color: #9fd4ff; }
.cx-st.off { background: rgba(227,18,42,.15); color: #ff8b97; } .cx-st.exp { background: rgba(255,255,255,.08); color: #aab0bd; }
.cx-acts { display: inline-flex; gap: 6px; align-items: center; }
.cx-del { padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(227,18,42,.45); background: rgba(227,18,42,.08); color: #ff8b97; cursor: pointer; font-size: 13px; }
.cx-del:hover { background: rgba(227,18,42,.25); color: #fff; }

/* ---------- Player Panel: Reborn (V-Point) ---------- */
#pane-reborn { position: relative; }
.rb-hero { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 18px; margin-bottom: 14px; overflow: hidden; position: relative;
  border: 1px solid rgba(243,193,75,.35); background: radial-gradient(90% 140% at 0% 50%, rgba(243,193,75,.18), transparent 60%), radial-gradient(70% 120% at 100% 0%, rgba(227,18,42,.16), transparent 60%), #14121a; }
.rb-hero-ic { flex: none; width: 86px; height: 86px; filter: drop-shadow(0 0 16px rgba(243,193,75,.55)); animation: gt-tick 3s ease-in-out infinite; }
.rb-hero-t h2 { margin: 2px 0 6px; font-family: var(--font-head); font-size: 28px; }
.rb-hero-t p { margin: 0; color: #d6cfc0; max-width: 560px; } .rb-hero-t p b { color: #f3c14b; }
.rb-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.rb-alert i { font-style: normal; font-size: 20px; } .rb-alert p { margin: 2px 0 0; color: #c9cbe0; }
.rb-alert.ok { background: rgba(36,192,107,.08); border: 1px solid rgba(36,192,107,.35); } .rb-alert.ok b { color: #5be39a; }
.rb-alert.bad { background: rgba(227,18,42,.08); border: 1px solid rgba(227,18,42,.4); } .rb-alert.bad b { color: #ff8b97; }
.rb-alert.wait { background: rgba(243,193,75,.08); border: 1px solid rgba(243,193,75,.4); } .rb-alert.wait b { color: #f3c14b; }
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-bottom: 14px; }
.rb-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(243,193,75,.07), rgba(20,22,32,.96) 45%); border: 1px solid rgba(255,255,255,.09); }
.rb-card.maxed { border-color: rgba(243,193,75,.55); box-shadow: 0 0 22px rgba(243,193,75,.15) inset; }
.rb-top { display: flex; align-items: center; gap: 12px; } .rb-top .pp-face { width: 46px; height: 46px; }
.rb-who { flex: 1; min-width: 0; } .rb-who b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rb-who small { color: var(--muted); font-size: 12.5px; }
.rb-count { text-align: right; } .rb-count span { font-family: var(--font-tech); font-size: 26px; color: #f3c14b; text-shadow: 0 0 14px rgba(243,193,75,.45); } .rb-count small { display: block; color: var(--muted); font-size: 11px; }
.rb-prog { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; } .rb-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e3122a, #f3c14b); }
.rb-step { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.rb-from, .rb-to { text-align: center; padding: 8px; border-radius: 12px; font-family: var(--font-tech); font-size: 24px; }
.rb-from { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #cfd3dc; }
.rb-to { background: rgba(243,193,75,.12); border: 1px solid rgba(243,193,75,.45); color: #ffe08a; text-shadow: 0 0 14px rgba(243,193,75,.5); }
.rb-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #e3122a, #f3c14b); box-shadow: 0 0 16px rgba(227,18,42,.45); }
.rb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rb-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.03); font-size: 13px; }
.rb-list li span { color: var(--muted); } .rb-list li b { color: #e9eaf2; text-align: right; }
.rb-list li.yes b { color: #5be39a; } .rb-list li.no { background: rgba(227,18,42,.08); } .rb-list li.no b { color: #ff8b97; }
.rb-go { position: relative; width: 100%; overflow: hidden; padding: 13px; font-size: 15px; }
.rb-go::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: gt-shine 2.6s ease-in-out infinite; }
.rb-go:disabled { opacity: .55; cursor: not-allowed; } .rb-go:disabled::after { display: none; }
.rb-max { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border-radius: 12px; background: rgba(243,193,75,.1); color: #ffe08a; }
.rb-max img { width: 34px; height: 34px; }
#pane-reborn .gt-burst { top: 120px; }
@media (max-width: 760px) { .rb-hero { flex-direction: column; text-align: center; } .rb-hero .gt-chips { justify-content: center; } .rb-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rb-hero-ic, .rb-go::after { animation: none; } }

/* ---------- Player Panel: EP -> V-Point exchange ---------- */
.ex-hero { display: flex; align-items: center; gap: 24px; padding: 22px 26px; margin-bottom: 14px; border-radius: 18px; position: relative; overflow: hidden;
  border: 1px solid rgba(243,193,75,.35); background: radial-gradient(80% 140% at 0% 50%, rgba(243,193,75,.2), transparent 60%), radial-gradient(70% 120% at 100% 0%, rgba(185,139,255,.2), transparent 60%), #14131a; }
.ex-coins { position: relative; flex: none; width: 150px; height: 120px; }
.ex-coins img { position: absolute; width: 84px; height: 84px; }
.ex-coins .c1 { left: 0; top: 18px; filter: drop-shadow(0 6px 18px rgba(243,193,75,.55)); animation: ex-float 3.2s ease-in-out infinite; }
.ex-coins .c2 { right: 0; top: 10px; filter: drop-shadow(0 6px 18px rgba(185,139,255,.6)); animation: ex-float 3.2s ease-in-out -1.6s infinite; }
.ex-hero-t h2 { margin: 2px 0 6px; font-family: var(--font-head); font-size: 28px; } .ex-hero-t h2 span { color: #b98bff; }
.ex-hero-t p { margin: 0; color: #d7d0bd; } .ex-hero-t p b { color: #f3c14b; }
.gt-chip.ex-rate { background: rgba(243,193,75,.12); border: 1px solid rgba(243,193,75,.4); color: #ffd97a; }
.gt-chip.ex-ep { background: rgba(243,193,75,.1); border: 1px solid rgba(243,193,75,.3); color: #ffe7a6; } .gt-chip.ex-ep img { width: 20px; height: 20px; }
.ex-lock { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(227,18,42,.5); background: rgba(227,18,42,.1); }
.ex-lock > span { font-size: 24px; } .ex-lock div { flex: 1; } .ex-lock p { margin: 2px 0 0; color: #e7c3c8; font-size: 13px; }
.gt-side.ex-from { background: linear-gradient(135deg, rgba(243,193,75,.18), rgba(20,22,32,.95)); border: 1px solid rgba(243,193,75,.4); } .gt-side.ex-from b { color: #ffd97a; text-shadow: 0 0 16px rgba(243,193,75,.45); }
.ex-flow span { background: linear-gradient(135deg, #f3c14b, #b98bff); } .ex-flow i { background: #f3c14b; box-shadow: 0 0 8px #f3c14b; }
.ex-input { display: flex; align-items: stretch; gap: 8px; margin-bottom: 4px; }
.ex-input input { flex: 1; min-width: 0; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid rgba(243,193,75,.4); background: #0d0f14; color: #ffd97a; font-family: var(--font-tech); font-size: 26px; outline: none; -moz-appearance: textfield; }
.ex-input input::-webkit-outer-spin-button, .ex-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ex-input input:focus { border-color: #f3c14b; box-shadow: 0 0 0 3px rgba(243,193,75,.2); }
.ex-input button { width: 54px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font-size: 24px; cursor: pointer; }
.ex-input button:hover { border-color: #f3c14b; }
.ex-go:disabled { opacity: .45; cursor: not-allowed; }
.ex-note { margin: 12px 0 0; font-size: 12.5px; }
.gt-h.ex-h { background: rgba(243,193,75,.06); border-color: rgba(243,193,75,.2); } .gt-h.ex-h b { color: #ffe7a6; }
@keyframes ex-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@media (max-width: 760px) { .ex-hero { flex-direction: column; text-align: center; } .ex-lock { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .ex-coins img { animation: none; } }

/* ---------- admin: GM monitor ---------- */
.gm-warn { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(243,193,75,.45); background: rgba(243,193,75,.08); color: #ffe7a6; font-size: 13px; }
.gm-warn code { color: #fff; }
.gm-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.gm-side #gmList { display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; }
.gm-card { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; display: grid; gap: 6px; transition: all .15s; }
.gm-card:hover { border-color: rgba(255,255,255,.25); } .gm-card.sel { border-color: #f3c14b; background: rgba(243,193,75,.08); }
.gm-card-h { display: flex; align-items: center; gap: 8px; } .gm-card-h b { flex: 1; font-size: 15px; }
.gm-card small { color: var(--muted); font-size: 11px; }
.gm-chars { display: flex; flex-wrap: wrap; gap: 4px; } .gm-chars span { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 11.5px; }
.gm-chars span.on { background: rgba(36,192,107,.16); color: #5be39a; } .gm-chars i { font-style: normal; color: var(--muted); }
.gm-type { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; background: #555; color: #fff; vertical-align: middle; }
.gm-type.t30 { background: linear-gradient(135deg, #f3c14b, #c98a12); color: #2a1a00; } .gm-type.t22 { background: #e3122a; } .gm-type.t21 { background: #c25b12; } .gm-type.t20 { background: #2a6fdb; } .gm-type.t19 { background: #6b6f7d; }
.gm-head h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 22px; } .gm-head small { color: var(--muted); }
.gm-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.gm-kpis div { padding: 10px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.07); text-align: center; }
.gm-kpis b { display: block; font-family: var(--font-tech); font-size: 20px; color: #f3c14b; } .gm-kpis span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gm-sec { margin-top: 14px; } .gm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gm-ft { margin-bottom: 8px; }
.gm-feed { display: grid; gap: 4px; max-height: 380px; overflow-y: auto; }
.gm-ev { display: grid; grid-template-columns: 120px 1fr; gap: 2px 10px; padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.03); border-left: 3px solid #6b6f7d; font-size: 12.5px; }
.gm-ev small { grid-column: 2; color: var(--muted); font-size: 11px; } .gm-ev-t { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #cfd3dc; }
.gm-ev-x { word-break: break-word; color: #e6e8ee; }
.gm-ev.cmd { border-left-color: #e3122a; } .gm-ev.cmd .gm-ev-t { color: #ff8b97; } .gm-ev.boss { border-left-color: #f3c14b; } .gm-ev.boss .gm-ev-t { color: #f3c14b; }
.gm-ev.item { border-left-color: #59c8ff; } .gm-ev.item .gm-ev-t { color: #9fd4ff; } .gm-ev.pk { border-left-color: #c18bff; } .gm-ev.pk .gm-ev-t { color: #d9c4ff; }
.gm-ev.trade { border-left-color: #24c06b; } .gm-ev.trade .gm-ev-t { color: #5be39a; } .gm-ev.npc { border-left-color: #888; }
.gm-tbl { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.gm-tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.03); font-size: 12.5px; }
.gm-tr small { flex-basis: 100%; color: var(--muted); font-size: 11px; } .gm-tr b { font-family: var(--font-tech); color: #f3c14b; }
.gm-tr.out > span:first-child { color: #ff8b97; } .gm-tr.in > span:first-child { color: #5be39a; }
.gm-items { margin-bottom: 14px; } .gm-note { margin: -4px 0 10px; font-size: 12px; } .gm-ilist { max-height: 420px; }
@media (max-width: 1000px) { .gm-wrap, .gm-two { grid-template-columns: 1fr; } .gm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- admin: GM Tool account roles ---------- */
.rl-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid; }
.c-normal { color: #cfd3dc; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.c-premium { color: #ffd97a; border-color: rgba(243,193,75,.45); background: rgba(243,193,75,.1); }
.c-mid { color: #5be39a; border-color: rgba(36,192,107,.45); background: rgba(36,192,107,.1); }
.c-special { color: #d9c4ff; border-color: rgba(185,139,255,.5); background: rgba(185,139,255,.12); }
.c-gm { color: #ff8b97; border-color: rgba(227,18,42,.55); background: rgba(227,18,42,.12); }
.c-master { color: #2a1a00; border-color: #f3c14b; background: linear-gradient(135deg, #ffd66b, #e59a12); }
.rl-list { display: grid; gap: 6px; }
.rl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.rl-row b { min-width: 120px; } .rl-row small { flex: 1; color: var(--muted); font-size: 11.5px; }
.rl-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.rl-now { margin: 0 0 12px; }
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.rl-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); transition: all .15s; }
.rl-opt:hover { transform: translateY(-2px); }
.rl-opt .rl-ic { font-size: 20px; } .rl-opt b { font-size: 14px; color: #fff; } .rl-opt small { font-size: 11.5px; color: var(--muted); line-height: 1.35; } .rl-opt i { font-style: normal; font-size: 10.5px; color: #8b90a0; margin-top: 2px; }
.rl-opt.on { box-shadow: 0 0 0 2px currentColor; } .rl-opt.c-master { color: #ffd66b; background: rgba(243,193,75,.08); } .rl-opt.c-master b { color: #ffd66b; }
.rl-opt.c-gm { background: rgba(227,18,42,.06); } .rl-opt.c-special { background: rgba(185,139,255,.06); } .rl-opt.c-mid { background: rgba(36,192,107,.06); }
.rl-confirm { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); display: grid; gap: 10px; }
.rl-confirm.danger { border-color: rgba(227,18,42,.55); background: rgba(227,18,42,.08); }
.rl-confirm p { margin: 0; font-size: 13.5px; } .rl-confirm label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rl-confirm input { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: #0d0f14; color: #fff; font: inherit; }
.rl-confirm .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Beta Donate (player panel + admin) ---------- */
.dn-g { color: #ffd66b; font-weight: 800; }
.pp-badge.dn-beta { background: linear-gradient(135deg, #ffd66b, #e59a12); color: #2a1a00; font-size: 9.5px; letter-spacing: .06em; }
.dn-phero, .dn-hero { display: flex; gap: 20px; align-items: center; padding: 22px 24px; margin-bottom: 16px; border-radius: 18px; border: 1px solid rgba(243,193,75,.35);
  background: radial-gradient(120% 140% at 0% 0%, rgba(243,193,75,.18), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(227,18,42,.16), transparent 55%), #12141b; }
.dn-hero { justify-content: space-between; flex-wrap: wrap; } .dn-hero > div:first-child { flex: 1 1 380px; }
.dn-phero h2, .dn-hero h2 { margin: 2px 0 6px; font-size: 24px; } .dn-phero p { margin: 0; color: #cfd3dc; }
.dn-phero-ic { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(243,193,75,.45)); flex: none; }
.dn-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.dn-flow li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; font-weight: 600; }
.dn-flow li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e3122a; color: #fff; font-size: 11px; }
.dn-flow li:last-child { border-color: rgba(243,193,75,.5); color: #ffd66b; } .dn-flow li:last-child b { background: linear-gradient(135deg, #ffd66b, #e59a12); color: #2a1a00; }
.dn-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.dn-stat { min-width: 110px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); display: grid; }
.dn-stat b { font-size: 26px; line-height: 1.1; } .dn-stat small { color: var(--muted); font-size: 11.5px; }
.dn-stat.s-waiting b { color: #ffb44a; } .dn-stat.s-paid b { color: #ff6b7a; } .dn-stat.s-delivered b { color: #ffd66b; }
.dn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dn-chips button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; color: #cfd3dc; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.dn-chips button.on { background: #e3122a; border-color: #e3122a; color: #fff; } .dn-chips .dn-csv { margin-left: auto; border-color: rgba(243,193,75,.5); color: #ffd66b; }
.dn-list { display: grid; gap: 8px; }
.dn-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.dn-ic { display: grid; place-items: center; padding: 4px; border-radius: 10px; background: #0b0d12; border: 1px solid rgba(255,255,255,.1); }
.dn-main { display: grid; gap: 2px; min-width: 0; } .dn-main small { color: var(--muted); font-size: 12px; }
.dn-main .dn-note { color: #cfd3dc; font-style: italic; } .dn-main .dn-anote { color: #ffd66b; }
.dn-price { font-weight: 700; white-space: nowrap; }
.dn-st { display: grid; justify-items: start; gap: 2px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.dn-st small { font-weight: 500; color: var(--muted); font-size: 11px; }
.st-w { color: #ffb44a; border-color: rgba(255,180,74,.45); background: rgba(255,180,74,.08); }
.st-a { color: #6ec1ff; border-color: rgba(110,193,255,.45); background: rgba(110,193,255,.08); }
.st-p { color: #ff6b7a; border-color: rgba(227,18,42,.55); background: rgba(227,18,42,.1); }
.st-d { color: #ffd66b; border-color: rgba(243,193,75,.55); background: rgba(243,193,75,.1); border-radius: 12px; }
.st-x { color: #8b90a0; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.dn-act { display: flex; gap: 6px; justify-content: flex-end; }
.dn-paybox { margin: -2px 0 6px; padding: 14px; border-radius: 14px; border: 1px dashed rgba(227,18,42,.5); background: rgba(227,18,42,.05); display: grid; gap: 12px; }
.dn-paybox .tu-summary { margin-top: 0; }
.dn-kind { margin: 14px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dn-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dn-item { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; cursor: pointer; font: inherit; color: inherit; text-align: center;
  border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); transition: transform .15s, border-color .15s, box-shadow .15s; }
.dn-item:hover { transform: translateY(-3px); border-color: rgba(243,193,75,.5); }
.dn-item.sel { border-color: #ffd66b; box-shadow: 0 0 0 2px rgba(243,193,75,.35), 0 10px 30px rgba(243,193,75,.15); }
.dn-item-ic { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(243,193,75,.18), #0b0d12 70%); border: 1px solid rgba(243,193,75,.25); }
.dn-item b { font-size: 13.5px; line-height: 1.25; } .dn-item small { color: var(--muted); font-size: 11.5px; } .dn-from { font-size: 12px; font-weight: 700; color: #ffd66b; }
.dn-grades-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 14px; }
.dn-gp { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.dn-gp b { font-size: 20px; } .dn-gp small { font-size: 11px; color: var(--muted); line-height: 1.3; text-align: center; }
.dn-gp.hot b { color: #ffd66b; text-shadow: 0 0 12px rgba(243,193,75,.6); }
.dn-gp.sel { border-color: #e3122a; background: rgba(227,18,42,.14); box-shadow: 0 0 0 2px rgba(227,18,42,.35); }
.dn-sum { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.dn-sum p { flex: 1; margin: 0; display: grid; } .dn-sum p span { color: #ffd66b; font-weight: 700; }
.dn-pick { display: flex; } .dn-pickbtn { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; border: 1px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.03); }
.dn-pickbtn small { color: var(--muted); margin-left: 6px; }
.dn-grades { display: grid; gap: 6px; max-width: 420px; margin-bottom: 12px; }
.dn-gh, .dn-gr { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px; align-items: center; } .dn-gh span { font-size: 11.5px; color: var(--muted); }
.dn-gr input { padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: #0d0f14; color: #fff; font: inherit; }
.dn-mhead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; } .dn-mhead > div { display: grid; gap: 2px; } .dn-mhead small { color: var(--muted); } .dn-mhead p { margin: 4px 0 0; font-style: italic; color: #cfd3dc; }
.dn-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; color: #cfd3dc; }
.dn-dialog { width: min(560px, calc(100vw - 32px)); }
@media (max-width: 720px) {
  .dn-row { grid-template-columns: auto 1fr; } .dn-price, .dn-st, .dn-act { grid-column: 2; justify-self: start; }
  .dn-phero { flex-direction: column; align-items: flex-start; } .dn-sum { flex-wrap: wrap; }
}

/* ---------- Beta Packages ---------- */
.pk-icons { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pk-ic { position: relative; display: grid; place-items: center; padding: 2px; border-radius: 8px; background: #0b0d12; border: 1px solid rgba(243,193,75,.3); }
.pk-ic b { position: absolute; right: -4px; bottom: -6px; font-size: 10px; padding: 0 4px; border-radius: 6px; background: linear-gradient(135deg, #ffd66b, #e59a12); color: #2a1a00; }
.pk-more { font-size: 12px; color: var(--muted); padding: 0 4px; }
.pk-box { border: 1px dashed rgba(243,193,75,.4); border-radius: 14px; padding: 12px; background: rgba(243,193,75,.04); }
.pk-box-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .pk-box-h small { color: var(--muted); } .pk-box-h .btn { margin-left: auto; }
.pk-items { display: grid; gap: 6px; }
.pk-it { display: grid; grid-template-columns: auto 1fr auto auto auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.pk-it > div { display: grid; } .pk-it small { color: var(--muted); font-size: 11.5px; }
.pk-it label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pk-it select { padding: 6px 8px; border-radius: 8px; background: #0d0f14; color: #fff; border: 1px solid rgba(255,255,255,.16); font: inherit; }
.pk-contents { display: grid; gap: 6px; margin: 4px 0 14px; }
.pk-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.pk-row small { font-size: 11px; color: #b98bff; font-weight: 700; }
.dn-anote { color: #ffd66b; }
@media (max-width: 720px) { .pk-it { grid-template-columns: auto 1fr; } .pk-it label, .pk-it .btn { grid-column: 2; } }

.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pk-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 18px 14px 14px; border-radius: 18px; cursor: pointer; font: inherit; color: inherit; text-align: center; overflow: hidden;
  border: 1px solid rgba(243,193,75,.28); background: radial-gradient(120% 90% at 50% 0%, rgba(243,193,75,.16), transparent 60%), linear-gradient(180deg, #1a1c25, #101218); transition: transform .18s, box-shadow .18s, border-color .18s; }
.pk-card:hover { transform: translateY(-4px); border-color: #ffd66b; box-shadow: 0 14px 40px rgba(243,193,75,.18); }
.pk-card.k-weapon { border-color: rgba(227,18,42,.35); background: radial-gradient(120% 90% at 50% 0%, rgba(227,18,42,.18), transparent 60%), linear-gradient(180deg, #1a1c25, #101218); }
.pk-card.k-full { border-color: rgba(185,139,255,.45); background: radial-gradient(120% 90% at 50% 0%, rgba(185,139,255,.2), transparent 60%), linear-gradient(180deg, #1a1c25, #101218); }
.pk-grade { position: absolute; top: 10px; right: 12px; font-size: 26px; font-weight: 900; color: #ffd66b; text-shadow: 0 0 16px rgba(243,193,75,.7); }
.pk-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(243,193,75,.14); color: #ffd66b; border: 1px solid rgba(243,193,75,.4); }
.pk-badge.k-weapon { background: rgba(227,18,42,.14); color: #ff8b97; border-color: rgba(227,18,42,.5); } .pk-badge.k-full { background: rgba(185,139,255,.14); color: #d9c4ff; border-color: rgba(185,139,255,.5); }
.pk-art { display: flex; gap: 6px; justify-content: center; padding: 8px 0; } .pk-art .pk-ic { padding: 4px; border-radius: 12px; }
.pk-name { font-size: 16px; } .pk-card small { color: var(--muted); font-size: 12px; }
.pk-price { font-size: 17px; font-weight: 800; color: #fff; } .pk-see { font-size: 12px; font-weight: 700; color: #ffd66b; opacity: .85; }
.pk-dialog { width: min(620px, calc(100vw - 32px)); }
.pk-mhead { display: grid; justify-items: start; gap: 6px; margin-bottom: 8px; } .pk-mhead h2 { margin: 0; font-size: 22px; } .pk-mhead p { margin: 0; color: #cfd3dc; }
.pk-ro { margin: 0 0 12px; }
.pp-status.wait b { color: #ffb44a; }
.pk-send { display: grid; grid-template-columns: 1fr minmax(180px, 260px) auto; gap: 8px 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.12); }
.pk-send b { grid-column: 1 / -1; font-size: 13.5px; } .pk-send small { color: var(--muted); font-size: 12px; }
.pk-send input { padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: #0d0f14; color: #fff; font: inherit; }
@media (max-width: 720px) { .pk-send { grid-template-columns: 1fr; } }

/* Google Play pop-up: Join on Android / Join on the Web */
.dl-joins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.dl-join { display: grid; gap: 4px; padding: 14px; border-radius: 14px; text-decoration: none; color: inherit; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); transition: border-color .15s, transform .15s; }
.dl-join:hover { border-color: #e3122a; transform: translateY(-2px); }
.dl-join-ic { font-size: 22px; } .dl-join b { font-size: 15px; color: #fff; } .dl-join small { font-size: 12px; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) { .dl-joins { grid-template-columns: 1fr; } }
.pk-paynote { margin: 10px 0 0; font-size: 12px; }
#pkBuyBox { display: grid; gap: 10px; }
.dn-chips .dn-purge { border-color: rgba(227,18,42,.5); color: #ff8b97; margin-left: 0; }

/* box contents inside a package */
.pk-boxwrap { grid-column: 1 / -1; }
.ge-boxin { margin-top: 6px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(243,193,75,.25); padding: 6px 10px; }
.ge-boxin summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #ffd66b; list-style: none; padding: 4px 0; }
.ge-boxin summary::-webkit-details-marker { display: none; }
.ge-boxin summary::after { content: " ▾"; } .ge-boxin:not([open]) summary::after { content: " ▸"; }
.ge-boxin ul { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; }
.ge-boxin li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.ge-boxin li > b { color: #ffd66b; font-size: 12px; } .ge-boxin li > .ge-boxin { grid-column: 1 / -1; margin-left: 24px; }
.ge-boxin-t { margin: 6px 0 2px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Package Deal sale */
.pk-sale { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 18px; border-radius: 16px; color: #fff;
  background: linear-gradient(110deg, #e3122a, #ff5a3c 55%, #ffb23c); box-shadow: 0 10px 30px rgba(227,18,42,.3); }
.pk-sale > b { font-size: 34px; font-weight: 900; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.pk-sale div { display: grid; } .pk-sale strong { font-size: 16px; } .pk-sale span { font-size: 13px; opacity: .95; }
.pk-off { position: absolute; top: 10px; left: 12px; font-size: 13px; font-weight: 900; padding: 3px 9px; border-radius: 8px; background: #e3122a; color: #fff; box-shadow: 0 4px 12px rgba(227,18,42,.45); }
.pk-off.sm { position: static; font-size: 11px; padding: 2px 7px; }
.pk-was { color: var(--muted); font-size: 12.5px; text-decoration: line-through; }
.pk-promo .ad-form { align-items: end; }

/* =========================================================
   Build Guide page (guide.html)
   ========================================================= */
.gd-page { background: #08080b; }
.gd-hero { position: relative; min-height: 640px; display: grid; align-items: end; padding: 120px 0 56px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(8,8,11,.25) 0%, rgba(8,8,11,.55) 45%, #08080b 96%), var(--art) center 20% / cover no-repeat; }
.gd-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 70%, rgba(227,18,42,.22), transparent 70%); }
.gd-hero-in { text-align: center; display: grid; justify-items: center; gap: 10px; }
.gd-emblem { width: 110px; height: 110px; filter: drop-shadow(0 10px 30px rgba(227,18,42,.55)); animation: gdFloat 4s ease-in-out infinite; }
@keyframes gdFloat { 50% { transform: translateY(-6px); } }
.gd-kicker { margin: 4px 0 0; font: 700 15px/1 Rajdhani, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: #ff3b4f; }
.gd-title { margin: 0; font: 800 clamp(48px, 10vw, 112px)/.95 Orbitron, sans-serif; letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #d9dde6 45%, #8d93a3 52%, #f2f4f8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.gd-sub { margin: 0; font: 600 clamp(18px, 3vw, 26px) Rajdhani, sans-serif; color: #eef0f5; }
.gd-types { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.gd-type { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; text-decoration: none; color: #fff; font: 800 20px Orbitron, sans-serif;
  border: 2px solid var(--c, #e3122a); background: rgba(90,8,16,.55); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: transform .15s, background .15s; }
.gd-type:hover { transform: translateY(-3px); background: rgba(227,18,42,.35); }
.gd-type b { font-size: 16px; color: var(--c, #fff); }
.gd-facts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.gd-facts div { display: grid; min-width: 120px; padding: 10px 16px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.gd-facts b { font: 800 24px Orbitron, sans-serif; color: #ffd66b; } .gd-facts span { font-size: 12px; color: #cfd3dc; text-transform: uppercase; letter-spacing: .08em; }
.gd-steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.gd-steps a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; text-decoration: none; color: #eef0f5; font-weight: 600; font-size: 13.5px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.gd-steps a:hover { border-color: #e3122a; }
.gd-steps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e3122a; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }

.gd-wrap { display: grid; gap: 56px; padding-top: 30px; padding-bottom: 60px; }
.gd-sec { display: grid; gap: 18px; scroll-margin-top: 90px; }
.gd-banner { position: relative; min-height: 260px; display: grid; align-content: end; padding: 26px 28px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(8,8,11,.92) 0%, rgba(8,8,11,.55) 50%, rgba(8,8,11,.1) 100%), linear-gradient(0deg, rgba(8,8,11,.9), transparent 55%), var(--art) center 25% / cover no-repeat; }
.gd-banner h2, .gd-head h2 { margin: 0; font: 800 clamp(30px, 5.5vw, 54px)/1 Orbitron, sans-serif; text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #c9ced8 55%, #8d93a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gd-banner h2::after, .gd-head h2::after { content: ""; display: block; width: min(420px, 70%); height: 3px; margin-top: 12px; background: linear-gradient(90deg, #e3122a, transparent); }
.gd-banner p:last-child { margin: 10px 0 0; font: 700 18px Rajdhani, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ff3b4f; }
.gd-num { margin: 0 0 6px; font: 800 14px Orbitron, sans-serif; color: rgba(255,255,255,.45); letter-spacing: .2em; }
.gd-head { display: grid; gap: 4px; } .gd-headp { margin: 6px 0 0; color: #cfd3dc; }

.gd-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gd-stat { position: relative; padding: 18px 16px; border-radius: 16px; background: linear-gradient(180deg, #17181f, #0f1015); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.gd-stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.gd-stat-ic { display: inline-grid; place-items: center; min-width: 58px; height: 34px; padding: 0 10px; border-radius: 8px; font: 800 15px Orbitron, sans-serif; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid var(--c); box-shadow: inset 0 0 18px -6px var(--c); }
.gd-stat h3 { margin: 12px 0 4px; font: 700 20px Rajdhani, sans-serif; color: #fff; } .gd-stat p { margin: 0; color: #cfd3dc; font-size: 14.5px; line-height: 1.45; }
.gd-stat em { font-style: normal; color: var(--c); font-weight: 700; }
.s-pow { --c: #ff4b5c; } .s-dex { --c: #3ad08a; } .s-int { --c: #6c8cff; } .s-vit { --c: #ffb23c; } .s-stm { --c: #b98bff; }

.gd-grid2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.gd-card { padding: 22px 24px; border-radius: 18px; background: linear-gradient(180deg, #17181f, #0f1015); border: 1px solid rgba(255,255,255,.08); position: relative; }
.gd-card::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(225deg, #e3122a 50%, transparent 50%); border-top-right-radius: 18px; }
.gd-h { margin: 0 0 12px; font: 800 18px Orbitron, sans-serif; text-transform: uppercase; color: #ff3b4f; display: flex; align-items: center; gap: 10px; }
.gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gd-list li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.45; color: #eef0f5; }
.gd-list li::before { content: "\203A"; position: absolute; left: 4px; top: -1px; color: #e3122a; font-weight: 800; font-size: 20px; }
.gd-list li.bad { color: #ff8b97; } .gd-list b { color: #ffd66b; }
.gd-combo { display: grid; grid-template-columns: 1.1fr auto 1.1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.gd-combo span { padding: 9px 10px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 14.5px; }
.gd-cls { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.gd-combo .gd-plus, .gd-combo .gd-eq { padding: 0; color: #8d93a3; font-size: 20px; }
.gd-wp, .gd-res { border: 1px solid var(--c); background: rgba(255,255,255,.04); box-shadow: inset 0 0 20px -8px var(--c); color: #fff; }
.gd-wp b, .gd-res { color: var(--c); }
.gd-combo .gd-res { font-family: Orbitron, sans-serif; font-size: 12.5px; }
.t-pow { --c: #ff4b5c; } .t-dex { --c: #3ad08a; } .t-int { --c: #6c8cff; }
.gd-note { margin: 12px 0 0; color: #8d93a3; font-size: 13.5px; } .gd-note b { color: #ffd66b; }

.gd-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.gd-tabs button { font: 700 14px Orbitron, sans-serif; text-transform: uppercase; padding: 10px 18px; border-radius: 9px; border: 0; cursor: pointer; color: #cfd3dc; background: transparent; }
.gd-tabs button.on { background: #e3122a; color: #fff; box-shadow: 0 6px 18px rgba(227,18,42,.35); }
.gd-build { margin-top: 18px; display: grid; gap: 12px; }
.gd-build-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .gd-build-top h3 { margin: 0; font: 800 26px Orbitron, sans-serif; color: #fff; text-transform: uppercase; }
.gd-build-tag { padding: 4px 10px; border-radius: 6px; background: #e3122a; color: #fff; font: 700 12px Rajdhani, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.gd-bar { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; }
.gd-bar-l { font: 700 14px Rajdhani, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #cfd3dc; }
.gd-bar-t { height: 16px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.gd-bar-t i { display: block; height: 100%; border-radius: inherit; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.gd-bar.main i { background: linear-gradient(90deg, #8a0a18, #e3122a, #ff5a6a); } .gd-bar.vit i { background: linear-gradient(90deg, #8a5a08, #ffb23c); }
.gd-bar b { font: 800 16px Orbitron, sans-serif; color: #fff; text-align: right; }
.gd-build-d { margin: 4px 0 0; font-size: 17px; color: #eef0f5; } .gd-build-m { margin: 0; color: #8d93a3; font-size: 13.5px; }
.gd-tip { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(243,193,75,.08); border: 1px solid rgba(243,193,75,.3); color: #ffe6a6; }

.gd-classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gd-class { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.gd-class img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 256; object-fit: cover; transition: transform .4s; }
.gd-class:hover img { transform: scale(1.06); }
.gd-class figcaption { position: absolute; inset: auto 0 0; padding: 26px 14px 10px; font: 800 clamp(15px, 2.2vw, 22px) Orbitron, sans-serif; text-transform: uppercase; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); text-shadow: 0 2px 8px #000; }
.gd-new { padding: 3px 9px; border-radius: 6px; background: #e3122a; color: #fff; font: 800 12px Orbitron, sans-serif; transform: skewX(-10deg); }

.gd-posters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gd-poster { position: relative; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #111; transition: transform .2s, border-color .2s; }
.gd-poster:hover { transform: translateY(-4px); border-color: #e3122a; }
.gd-poster img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gd-poster span { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font: 700 12px Orbitron, sans-serif; }
.gd-lb { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 20px; background: rgba(0,0,0,.92); }
.gd-lb[hidden] { display: none; }
.gd-lb figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.gd-lb img { max-width: min(92vw, 720px); max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.gd-lb figcaption { color: #cfd3dc; display: flex; gap: 14px; align-items: center; } .gd-lb figcaption a { color: #ffd66b; font-weight: 700; }
.gd-lb-x { position: absolute; top: 14px; right: 18px; font-size: 38px; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; }
.gd-lb-nav { font-size: 48px; width: 54px; height: 70px; border-radius: 12px; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.08); }
.gd-lb-nav:hover { background: #e3122a; }
.gd-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .gd-stats { grid-template-columns: repeat(2, 1fr); } .gd-stat:last-child { grid-column: 1 / -1; }
  .gd-grid2 { grid-template-columns: 1fr; }
  .gd-posters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gd-hero { min-height: 560px; padding-top: 100px; background-position: center, 62% 15%; }
  .gd-emblem { width: 84px; height: 84px; }
  .gd-type { padding: 10px 14px; font-size: 16px; }
  .gd-banner { min-height: 210px; padding: 20px; }
  .gd-classes { grid-template-columns: repeat(2, 1fr); }
  .gd-posters { grid-template-columns: repeat(2, 1fr); }
  .gd-combo { grid-template-columns: 1fr auto 1fr; } .gd-combo .gd-eq { display: none; } .gd-combo .gd-res { grid-column: 1 / -1; }
  .gd-bar { grid-template-columns: 80px 1fr 70px; }
  .gd-lb { grid-template-columns: 1fr; } .gd-lb-nav { display: none; }
  .gd-card { padding: 18px; }
}

/* anti-copy on the inner pages too (Player Panel, Build Guide, Team, Terms...): no text selection except form fields */
.legal-page.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.legal-page.protect input, .legal-page.protect textarea, .legal-page.protect select, .legal-page.protect [contenteditable] { -webkit-user-select: text; user-select: text; }
.legal-page.protect img { -webkit-user-drag: none; }

/* Limited items: EP and/or PayPal */
.pp-buyrow { display: grid; gap: 8px; }
.btn-paypal { background: #ffc439; color: #111; border: 0; font-weight: 800; }
.btn-paypal:hover { background: #ffd366; }
.btn-paypal .m-paypal-logo { font-style: italic; font-weight: 900; color: #003087; } .btn-paypal .m-paypal-logo i { color: #009cde; }
.pp-eur { color: #ffd66b; font-weight: 800; } .pp-or { font-style: normal; color: var(--muted); font-size: 12px; margin: 0 4px; }
.pp-item .meta { flex-wrap: wrap; row-gap: 4px; }
.pp-item .meta > span:last-child { margin-left: auto; white-space: nowrap; }

/* fix a wrong send */
.sx-h.undone { opacity: .6; } .sx-h .btn { margin-top: 6px; justify-self: start; } .sx-undone { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: #ffb44a; }
.bk-find { margin-bottom: 12px; }
.bk-head { margin: 4px 0 10px; color: #cfd3dc; }
.bk-list { display: grid; gap: 6px; }
.bk-row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.bk-row:hover { border-color: rgba(227,18,42,.5); }
.bk-row input { width: 18px; height: 18px; accent-color: #e3122a; }
.bk-row.taken { cursor: default; opacity: .6; } .bk-lock { color: #3ad08a; font-weight: 800; width: 18px; text-align: center; }
.bk-name { display: grid; } .bk-name small { color: var(--muted); font-size: 12px; }
.bk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.bk-actions input { flex: 1 1 240px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: #0d0f14; color: #fff; font: inherit; }

/* Player Panel: Sign in with Google */
.soc-login { display: grid; justify-items: center; gap: 8px; margin: 6px 0 10px; text-align: center; }
.soc-t { margin: 0; font-weight: 600; color: #eef0f5; }
.soc-g { min-height: 44px; display: grid; place-items: center; width: 100%; max-width: 360px; }
.soc-msg { margin: 0; color: #ff8b97; font-size: 13px; }
.soc-apple { margin: 2px 0 0; font-size: 12px; color: var(--muted); max-width: 420px; }
.soc-or { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.soc-or::before, .soc-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }

/* RV sample (limited items) */
.rv-edit { display: grid; gap: 8px; } .rv-edit-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .rv-edit-h small { color: var(--muted); }
.rv-presets { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.rv-edit textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: #0d0f14; color: #fff; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.pp-rvbtn { justify-self: start; margin: 2px 0 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #d9c4ff; background: rgba(185,139,255,.12); border: 1px solid rgba(185,139,255,.45); }
.pp-rvbtn:hover { background: rgba(185,139,255,.22); }
.rv-tip { margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, #121420, #0b0c12); border: 1px solid rgba(185,139,255,.4); box-shadow: inset 0 0 30px -18px #b98bff; }
.rv-tip-h { margin: 0 0 8px; font: 700 13px Rajdhani, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #d9c4ff; }
.rv-tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rv-tip li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.03); font-size: 14px; color: #8fe3ff; }
.rv-tip li b { color: #ffd66b; white-space: nowrap; } .rv-tip li.rv-note { color: #cfd3dc; font-size: 12.5px; background: none; }
.rv-tip-n { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* 3D item preview (assets/js/preview3d.js) */
.v3d-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(120,170,255,.45); background: linear-gradient(180deg, rgba(70,120,255,.22), rgba(40,70,160,.18)); color: #dfe8ff; font: 600 12.5px/1.2 inherit; cursor: pointer; }
.v3d-btn:hover { border-color: #8fb4ff; background: rgba(80,130,255,.32); }
.v3d-ov { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(4,6,12,.78); backdrop-filter: blur(4px); }
.v3d-box { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: radial-gradient(120% 80% at 50% 0%, #1d2740 0%, #0d1220 60%, #090c15 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.v3d-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); color: #eef0f5; }
.v3d-head b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3d-x { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.v3d-x:hover { background: rgba(255,255,255,.18); }
.v3d-stage { position: relative; height: min(68vh, 560px); min-height: 300px; background: radial-gradient(60% 45% at 50% 85%, rgba(120,160,255,.18), transparent 70%); }
.v3d-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.v3d-stage canvas:active { cursor: grabbing; }
.v3d-load { position: absolute; inset: 0; display: grid; place-items: center; color: #aeb8d0; font-size: 14px; pointer-events: none; }
.v3d-load[hidden] { display: none; }
.v3d-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.v3d-foot small { color: var(--muted, #8b93a7); font-size: 12px; flex: 1 1 100%; }
.v3d-g { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); }
.v3d-g button, .v3d-spin { border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; color: #cfd6e6; font: 600 13px/1 inherit; cursor: pointer; }
.v3d-g button.on { background: #e8eefc; color: #0d1220; }
.v3d-spin { background: rgba(255,255,255,.06); }
.v3d-spin[aria-pressed="false"] { opacity: .6; }

.v3d-btn.v3d-wide { display: flex; width: 100%; justify-content: center; margin: 0 0 10px; padding: 9px 14px; font-size: 13.5px; }
.v3d-btn.v3d-mini { margin: 0 0 0 8px; padding: 2px 8px; font-size: 11px; vertical-align: middle; }
.pp-item .v3d-btn { margin: 0 0 8px; }

/* ---------- Google Play QR (download section) ---------- */
.qr-play { display: flex; align-items: center; gap: 16px; margin: 18px 0 4px; padding: 14px; max-width: 520px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.qr-play-img { flex: none; line-height: 0; }
.qr-play-img img { width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 4px; }
.qr-play b { display: block; font-size: 16px; color: #fff; margin-bottom: 4px; }
.qr-play span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.qr-play-dl { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--gold); }
.qr-play-dl:hover { text-decoration: underline; }
@media (max-width: 560px) { .qr-play-img img { width: 104px; height: 104px; } }
