/* SHADOW STICK: ARENA v2 — UI styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; min-height: 100%; overflow-x: hidden; background: #030206; color: #efeaff;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; scroll-behavior: smooth;
  scrollbar-color: #5a2030 #0b0710; scrollbar-width: thin;
}
html.playing, html.playing body { overflow: hidden; height: 100%; overscroll-behavior: none; }
#gameWrap {
  position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: #030206;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none;
}
#bgfill { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(26px) brightness(.42) saturate(1.25); transform: scale(1.18); pointer-events: none; }
input { -webkit-user-select: text; user-select: text; touch-action: manipulation; }
/* dark custom scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(10, 6, 16, .85); border-radius: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7a1f2e, #4a2a3a); border-radius: 8px; border: 1px solid rgba(255, 255, 255, .06); }
::-webkit-scrollbar-thumb:hover { background: #a3172a; }
::-webkit-scrollbar-corner { background: transparent; }
.panel, .tab-body, .list, .board, .screen { scrollbar-color: #7a1f2e rgba(10, 6, 16, .85); scrollbar-width: thin; }
#stage {
  position: absolute; left: 0; top: 0; width: 100vw; height: 56.25vw; overflow: hidden;
  --u: 12.8px; font-size: clamp(10.5px, calc(var(--u) * 1.42), 22px);
  background: #05040a; box-shadow: 0 0 80px rgba(0, 0, 0, .9);
}
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.hidden { display: none !important; }
.notranslate { }

/* ---------- top bar ---------- */
#topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center;
  padding: .6em 1.2em; background: linear-gradient(180deg, rgba(3, 2, 8, .85), rgba(3, 2, 8, 0)); pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.tb-profile { display: flex; align-items: center; gap: .7em; }
.lvbadge {
  width: 3em; height: 3em; border-radius: .7em; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(160deg, #e3263a, #6b0d1a); border: 1px solid #ff7080; box-shadow: 0 0 1em rgba(227, 38, 58, .45);
}
.lvbadge small { font-size: .6em; font-weight: 800; opacity: .85; }
.lvbadge b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 1.35em; }
.tb-xp { display: flex; flex-direction: column; gap: .2em; min-width: 12em; }
.tb-xp span { font-weight: 900; letter-spacing: .04em; }
.tb-xp small { font-size: .65em; color: #b9acd9; font-weight: 700; }
.xpbar { height: .45em; border-radius: 1em; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xpbar.big { height: .6em; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7a3dff, #4fd3ff); border-radius: 1em; transition: width .4s; }
.tb-right { display: flex; align-items: center; gap: .5em; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .4em .9em; border-radius: 2em;
  background: rgba(10, 6, 18, .7); border: 1px solid rgba(255, 255, 255, .14); font-weight: 800;
}
.chip.gold b { color: #ffd24a; } .chip.gemchip b { color: #8ff0ff; }
.chip-btn {
  font: inherit; font-weight: 900; color: #fff; cursor: pointer; padding: .4em .8em; border-radius: 2em; outline: none;
  background: rgba(10, 6, 18, .7); border: 1px solid rgba(255, 255, 255, .2); min-width: 2.8em;
}
.chip-btn:hover { background: rgba(227, 38, 58, .35); }

/* ---------- screens ---------- */
.screen {
  position: absolute; inset: 0; z-index: 20; display: flex; padding: 4.2em 2em 1.4em; overflow: auto;
  background: radial-gradient(ellipse at center, rgba(10, 6, 20, .55), rgba(3, 2, 8, .9));
  animation: fadein .25s ease-out;
}
.screen > * { margin: auto; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.screen.menu { background: linear-gradient(90deg, rgba(3, 2, 8, .9) 0%, rgba(3, 2, 8, .55) 42%, rgba(3, 2, 8, 0) 62%); padding-left: 3.5%; }
.screen.menu > .menu-col { margin: auto 0; }
.screen.side { background: linear-gradient(90deg, rgba(3, 2, 8, .92) 0%, rgba(3, 2, 8, .7) 55%, rgba(3, 2, 8, 0) 70%); }
.screen.side > .side-panel { margin: auto auto auto 0; }

.menu-col { display: flex; flex-direction: column; gap: .7em; width: 30em; max-width: 100%; }
.logo { line-height: .86; font-family: Impact, "Arial Black", sans-serif; font-style: italic; font-weight: 400; display: flex; flex-direction: column; }
.logo-a { font-size: 3.3em; color: #fff; text-shadow: 0 .06em 0 #000, 0 0 .5em rgba(120, 220, 255, .35); }
.logo-b { font-size: 3.3em; color: #e3263a; text-shadow: 0 .06em 0 #000, 0 0 .5em rgba(227, 38, 58, .5); margin-left: .5em; }
.logo-sub { font-family: "Segoe UI", Arial, sans-serif; font-style: normal; font-weight: 900; letter-spacing: 1em; color: #bfb3dd; font-size: .95em; margin: .35em 0 0 .3em; }
.sect-title { font-size: .72em; font-weight: 900; letter-spacing: .22em; color: #a596cc; margin: .5em 0 .1em; text-transform: uppercase; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.mode-btn {
  position: relative; text-align: left; font: inherit; color: #fff; cursor: pointer; outline: none; overflow: hidden;
  padding: .8em 1em; border-radius: .7em; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, rgba(44, 34, 60, .95), rgba(18, 12, 28, .95)); display: flex; flex-direction: column; gap: .25em;
  transition: transform .1s, filter .15s, box-shadow .15s;
}
.mode-btn b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 1.35em; letter-spacing: .03em; }
.mode-btn small { font-size: .72em; color: #c3b6e2; line-height: 1.3; padding-right: 2.2em; }
.mode-btn i { position: absolute; right: .5em; top: .35em; font-style: normal; font-size: 1.7em; opacity: .55; }
.mode-btn:hover { filter: brightness(1.2); transform: translateY(-2px); }
.mode-btn.primary { background: linear-gradient(160deg, #ea3a4c, #8c1324); border-color: #ff7080; box-shadow: 0 0 1.4em rgba(227, 38, 58, .35); }
.mode-btn.online { background: linear-gradient(160deg, #1f6bd0, #0f2f6a); border-color: #6fb4ff; box-shadow: 0 0 1.2em rgba(60, 140, 255, .3); }
.menu-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45em; }
.btn.sq { flex-direction: column; padding: .55em .3em; gap: .15em; position: relative; font-size: .85em; letter-spacing: .02em; }
.btn.sq span { font-size: 1.4em; }
.btn.sq em { font-style: normal; font-size: .78em; white-space: normal; line-height: 1.1; text-align: center; }
.dot { position: absolute; top: .35em; right: .35em; width: .7em; height: .7em; border-radius: 50%; background: #ff2a44; box-shadow: 0 0 .6em #ff2a44; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.3); } }
.keys { font-size: .68em; color: rgba(220, 210, 255, .6); line-height: 1.5; }
.keys.center { text-align: center; margin-top: .6em; }

.preview-card {
  position: absolute; right: 3%; top: 12%; width: 21em; z-index: 21; padding: .8em 1em; border-radius: .8em;
  background: rgba(8, 5, 14, .72); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; flex-direction: column; gap: .4em;
}
.pc-name { display: flex; justify-content: space-between; align-items: baseline; }
.pc-name b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 1.3em; }
.pc-name span { font-weight: 900; color: #ff8592; }
.pc-row { display: flex; justify-content: space-between; font-size: .8em; color: #d4c8f0; }
.pc-row small { color: #9b8fbf; } .pc-row b { color: #fff; }
.pc-alert { font-size: .75em; font-weight: 800; color: #8dffc4; text-align: center; animation: pulse 1.6s infinite; }

/* ---------- panels ---------- */
.panel {
  background: linear-gradient(180deg, rgba(26, 17, 38, .97), rgba(11, 7, 17, .97));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: .9em; padding: 1.2em 1.5em;
  box-shadow: 0 1em 3em rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
  max-height: 100%; overflow: auto; min-width: 22em; max-width: 100%;
}
.panel.narrow { width: 28em; }
.panel.wide { width: 62em; }
.panel.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8em; min-width: 26em; }
.panel.wide.center { width: 52em; }
.side-panel { width: 62%; min-width: 30em; max-height: 100%; display: flex; flex-direction: column; }
.panel h2 { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 2em; letter-spacing: .05em; font-style: italic; }
.panel.narrow h2 { margin-bottom: .5em; }
.glow-gold { color: #ffd24a; text-shadow: 0 0 .6em rgba(255, 200, 60, .45); }
.glow-red { color: #ff3d55; text-shadow: 0 0 .6em rgba(255, 50, 80, .5); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: .6em; }
.panel-foot { display: flex; justify-content: flex-end; gap: .6em; margin-top: 1em; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: .6em; width: 100%; align-items: stretch; }
.row2 { display: flex; gap: .6em; width: 100%; }
.row2 .btn { flex: 1; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .45em 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-weight: 600; }
.seg { display: flex; gap: .35em; flex-wrap: wrap; }
.stats { display: flex; gap: 1.4em; justify-content: center; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; align-items: center; min-width: 4.5em; }
.stats small { font-size: .7em; letter-spacing: .15em; color: #a99cc9; font-weight: 800; }
.stats b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 1.9em; }
.gold-txt { color: #ffd24a; } .xp-txt { color: #9fd8ff; }
.gold-txt.pop { animation: pop .5s ease-out; }
@keyframes pop { 0% { transform: scale(1.7); } 100% { transform: scale(1); } }
.next { font-size: .85em; color: #c9bde8; }
.hint { font-size: .78em; color: #c3b6e2; background: rgba(255, 255, 255, .04); border-radius: .5em; padding: .5em .8em; margin-bottom: .3em; }
.status { min-height: 1.3em; font-size: .85em; font-weight: 700; color: #9fe8ff; }
.status.bad { color: #ff6d86; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .65em 1.2em; border-radius: .5em; cursor: pointer; color: #f3eeff;
  border: 1px solid rgba(255, 255, 255, .15); background: linear-gradient(180deg, #2c2339, #17111f);
  box-shadow: 0 .25em .6em rgba(0, 0, 0, .35); transition: transform .08s, filter .15s, box-shadow .15s;
  outline: none; white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.25); }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:focus-visible { box-shadow: 0 0 0 2px #9ff4ff; }
.btn:disabled { opacity: .42; cursor: default; filter: grayscale(.5); }
.btn.big { font-size: 1.12em; padding: .7em 1.4em; }
.btn.full { width: 100%; }
.btn.small { font-size: .75em; padding: .45em .8em; }
.btn.primary { background: linear-gradient(180deg, #ea3a4c, #a3172a); border-color: #ff7080; box-shadow: 0 0 1.2em rgba(227, 38, 58, .4); }
.btn.ghost { background: rgba(255, 255, 255, .05); }
.btn.ad { background: linear-gradient(180deg, #2fc276, #15824a); border-color: #6dffad; box-shadow: 0 0 1em rgba(47, 194, 118, .35); }
.btn.ad.used { background: linear-gradient(180deg, #2a5a40, #18342a); }
.btn.danger { background: linear-gradient(180deg, #5a1520, #33090f); border-color: #a33; }
.btn.toggle { min-width: 5em; padding: .45em .9em; background: linear-gradient(180deg, #1f6b4a, #10402b); border-color: #4fd395; }
.btn.toggle.off { background: linear-gradient(180deg, #3a2a35, #211820); border-color: rgba(255, 255, 255, .15); color: #b9a9c9; }
.btn.eq { background: linear-gradient(180deg, #5a1520, #33090f); border-color: #e3263a; opacity: 1; filter: none; }
.btn.forge { background: linear-gradient(180deg, #a86a12, #5c3606); border-color: #ffc04a; box-shadow: 0 0 .8em rgba(255, 180, 60, .3); }
.btn.plus { width: 2.3em; height: 2.3em; padding: 0; font-size: 1.1em; background: linear-gradient(180deg, #1f6b4a, #10402b); border-color: #4fd395; }
.adtag { font-size: .7em; background: #fff; color: #138a4b; padding: .1em .4em; border-radius: .3em; font-weight: 900; }
.coin, .gem { display: inline-block; width: .95em; height: .95em; flex: none; vertical-align: -.1em; }
.coin { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1b5 0 18%, #f5b82e 22% 70%, #a8700f 72%); }
.gem { background: linear-gradient(135deg, #c8fbff, #39c5ff 55%, #1663a8); clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); }
.xp { font-size: .7em; font-weight: 900; color: #0b0614; background: #9fd8ff; padding: 0 .3em; border-radius: .25em; margin-right: .2em; }
.maxtag { font-weight: 900; font-size: .8em; color: #ffd24a; letter-spacing: .1em; }
.maxtag.flame { color: #ff6a3a; text-shadow: 0 0 .6em rgba(255, 90, 40, .8); }

/* ---------- tabs / cards ---------- */
.tabs { display: flex; gap: .35em; margin-bottom: .7em; flex-wrap: wrap; }
.tab {
  position: relative; font: inherit; font-weight: 800; letter-spacing: .1em; padding: .5em 1.2em; border-radius: .45em .45em 0 0; cursor: pointer;
  background: rgba(255, 255, 255, .05); color: #b6a8d6; border: 1px solid rgba(255, 255, 255, .08); border-bottom: 2px solid transparent; text-transform: uppercase;
}
.tab .dot { top: .2em; right: .2em; width: .55em; height: .55em; }
.tab.active { color: #fff; background: rgba(227, 38, 58, .15); border-bottom-color: #e3263a; }
.tab-body { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; padding-right: .3em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(19em, 1fr)); gap: .6em; }
.card { min-width: 0; }
.card {
  display: flex; align-items: center; gap: .8em; padding: .7em .9em; border-radius: .7em;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.card.equipped { border-color: rgba(227, 38, 58, .75); box-shadow: inset 0 0 1.5em rgba(227, 38, 58, .15); }
.card.locked { opacity: .82; }
.card.skill, .card.weapon { align-items: stretch; }
.card-icon { width: 2.4em; height: 2.4em; flex: none; display: flex; align-items: center; justify-content: center; font-size: 1.4em; border-radius: .5em; background: rgba(227, 38, 58, .15); color: #ff8592; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3em; }
.card-title { font-weight: 900; letter-spacing: .03em; }
.card-title em { font-style: normal; font-size: .75em; color: #ffd24a; margin-left: .3em; }
.card-title em.plus { font-family: Impact, sans-serif; font-size: 1em; text-shadow: 0 0 .5em currentColor; }
.card-sub { font-size: .76em; color: #c2b6de; line-height: 1.35; }
.card-sub.dmgup { color: #8dffc4; font-weight: 700; }
.card-acts { display: flex; gap: .4em; flex-wrap: wrap; align-items: center; margin-top: .2em; }
.card-acts .btn { padding: .45em .8em; font-size: .8em; }
.card.skill .card-acts { flex-direction: column; align-items: stretch; justify-content: center; margin: 0; }
.wprev { width: 6.2em; height: 5.4em; flex: none; border-radius: .5em; background: rgba(0, 0, 0, .35); align-self: center; }
.pips { display: flex; gap: .2em; }
.pips i { width: .9em; height: .35em; border-radius: .1em; background: rgba(255, 255, 255, .12); }
.pips i.on { background: #e3263a; box-shadow: 0 0 .4em rgba(227, 38, 58, .6); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: .1em .7em; }
.bar { display: flex; align-items: center; gap: .4em; font-size: .62em; font-weight: 800; color: #a99cc9; }
.bar span { width: 2.6em; }
.segs { display: flex; gap: .15em; }
.segs i { width: .9em; height: .45em; background: rgba(255, 255, 255, .1); border-radius: .1em; }
.segs i.on { background: #ffd24a; }

/* stats */
.pts-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5em; font-weight: 700; }
.pts-head b { font-size: 1.4em; font-family: Impact, sans-serif; font-weight: 400; }
.pts-head b.hot { color: #8dffc4; text-shadow: 0 0 .6em rgba(141, 255, 196, .6); }
.stat-row { display: flex; align-items: center; gap: .8em; padding: .45em .6em; border-radius: .6em; background: rgba(255, 255, 255, .035); margin-bottom: .35em; }
.stat-ico { width: 2.6em; height: 2.6em; border-radius: .5em; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .8em; flex: none; }
.stat-str { background: #6b1520; color: #ff8a96; } .stat-vit { background: #14532f; color: #7dffb3; } .stat-agi { background: #14406b; color: #8fd0ff; }
.stat-crt { background: #6b5214; color: #ffe08a; } .stat-eng { background: #3d176b; color: #d3a8ff; }
.stat-txt { flex: 1; display: flex; flex-direction: column; } .stat-txt small { font-size: .72em; color: #b5a8d4; }
.stat-val { font-family: Impact, sans-serif; font-size: 1.5em; min-width: 2em; text-align: right; }
.summary { margin-top: .6em; }
.sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; }
.sum-grid div { background: rgba(255, 255, 255, .04); border-radius: .5em; padding: .45em .6em; display: flex; flex-direction: column; }
.sum-grid small { font-size: .65em; color: #a596cc; font-weight: 800; } .sum-grid b { font-size: 1.05em; }

/* cosmetics */
.cos-row { display: flex; flex-wrap: wrap; gap: .45em; margin-bottom: .4em; }
.cos {
  font: inherit; color: #fff; cursor: pointer; outline: none; width: 7.4em; padding: .55em .4em; border-radius: .6em; text-align: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; gap: .25em;
}
.cos b { font-size: .78em; } .cos small { font-size: .68em; color: #c3b6e2; display: flex; align-items: center; gap: .25em; }
.cos.worn { border-color: #e3263a; background: rgba(227, 38, 58, .15); }
.cos.locked { opacity: .85; }
.cos:hover { filter: brightness(1.2); }
.sw { display: inline-block; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: #333; flex: none; vertical-align: middle; margin-right: .4em; }
.cos .sw { margin: 0; }
.sw.cape-none, .sw.aura-none { background: repeating-linear-gradient(45deg, #222, #222 3px, #444 3px, #444 6px); }
.sw.cape-short { background: linear-gradient(180deg, #2a1d3a 40%, transparent 41%); }
.sw.cape-long { background: linear-gradient(180deg, #2a1d3a, #120a1c); border-radius: .3em .3em 50% 50%; }
.sw.cape-tattered { background: linear-gradient(180deg, #1d1420, #000); clip-path: polygon(0 0, 100% 0, 90% 100%, 70% 70%, 50% 100%, 30% 70%, 10% 100%); }
.sw.cape-royal { background: linear-gradient(180deg, #6b1020, #3a0b16); border-color: #e8b84a; }
.sw.aura-wisps { background: radial-gradient(circle, #bff3ff 10%, rgba(120, 220, 255, .3) 40%, transparent 70%), #111; }
.sw.aura-flame { background: radial-gradient(circle at 50% 70%, #ffd27a 10%, #ff5a1a 40%, #400 75%); }
.sw.aura-storm { background: radial-gradient(circle, #e8f6ff 8%, #3a8cff 45%, #061633 75%); }
.sw.aura-void { background: radial-gradient(circle, #000 30%, #6b2aff 60%, #12002a 80%); }

/* maps */
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; margin-bottom: .6em; }
.maps.small { margin-top: .5em; }
.map-card {
  font: inherit; color: #fff; cursor: pointer; outline: none; text-align: left; border-radius: .7em; overflow: hidden; padding: 0;
  background: rgba(255, 255, 255, .04); border: 2px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column;
}
.map-card img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.map-card b { padding: .4em .6em 0; font-size: .9em; } .map-card small { padding: 0 .6em .5em; font-size: .68em; color: #b5a8d4; }
.maps.small .map-card small { display: none; }
.map-card.sel { border-color: #e3263a; box-shadow: 0 0 1em rgba(227, 38, 58, .4); }
.map-card:disabled { cursor: default; }
.map-card:disabled:not(.sel) { opacity: .5; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .4em 0; }
.opt-label { font-weight: 800; color: #d4c8f0; }

/* missions */
.list { display: flex; flex-direction: column; gap: .45em; max-height: 60vh; overflow: auto; }
.mission { display: flex; align-items: center; gap: .9em; padding: .65em .9em; border-radius: .6em; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.mission.ready { border-color: #4fd395; box-shadow: inset 0 0 1.2em rgba(79, 211, 149, .12); }
.mission.claimed { opacity: .5; }
.ms-main { flex: 1; display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.ms-main em { font-style: normal; font-size: .7em; color: #ffd24a; font-weight: 800; }
.ms-bar { position: relative; height: 1.1em; border-radius: .5em; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ms-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #7a3dff, #e3263a); border-radius: .5em; }
.mission.ready .ms-bar i { background: linear-gradient(90deg, #1f8a4a, #4fd395); }
.ms-bar span { position: relative; font-size: .68em; font-weight: 900; padding-left: .6em; line-height: 1.6em; }
.ms-rew { font-size: .78em; font-weight: 800; display: flex; align-items: center; gap: .25em; flex-wrap: wrap; width: 9em; justify-content: flex-end; }

/* shop */
.shopcard { align-items: center; }
.big-ico { font-size: 2.2em; width: 1.4em; text-align: center; }

/* online */
.field { display: flex; flex-direction: column; gap: .3em; width: 100%; text-align: left; font-weight: 700; font-size: .85em; color: #c9bde8; }
.field input, .code-in {
  font: inherit; font-size: 1.15em; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .5em; padding: .55em .8em; outline: none;
}
.field input:focus, .code-in:focus { border-color: #6fb4ff; box-shadow: 0 0 0 2px rgba(111, 180, 255, .25); }
.code-in { width: 7.5em; text-transform: uppercase; letter-spacing: .3em; text-align: center; font-family: Consolas, monospace; }
.join-row { display: flex; gap: .5em; width: 100%; } .join-row .btn { flex: 1; }
.or { width: 100%; display: flex; align-items: center; gap: .6em; color: #8f82b2; font-size: .8em; font-weight: 800; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.room-code { display: flex; flex-direction: column; align-items: flex-end; }
.room-code small { font-size: .65em; color: #a596cc; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.room-code b { font-family: Consolas, monospace; font-size: 1.9em; letter-spacing: .25em; color: #6ee7ff; text-shadow: 0 0 .5em rgba(110, 231, 255, .5); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; margin: .7em 0; }
.slot { display: flex; align-items: center; gap: .5em; padding: .6em .8em; border-radius: .6em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.slot.empty { opacity: .45; border-style: dashed; }
.slot-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.slot-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-txt em { font-style: normal; font-size: .65em; color: #6ee7ff; font-weight: 900; }
.slot-txt em.host { color: #ffd24a; }
.slot-txt small { font-size: .72em; color: #b5a8d4; }
.rdy { font-size: .68em; font-weight: 900; padding: .25em .6em; border-radius: 1em; background: rgba(255, 255, 255, .08); color: #aaa; }
.rdy.on { background: #1f8a4a; color: #fff; }

/* results */
.score { width: 100%; border-collapse: collapse; font-size: .9em; }
.score th { font-size: .7em; letter-spacing: .12em; color: #a596cc; text-align: left; padding: .35em .5em; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.score td { padding: .45em .5em; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.score tr.me td { background: rgba(227, 38, 58, .12); font-weight: 800; }
.score .sw { width: 1em; height: 1em; }
.rewards { display: flex; align-items: center; gap: .4em; font-weight: 800; flex-wrap: wrap; justify-content: center; }
.rewards span:first-child { color: #c9bde8; }

/* ---------- HUD buttons ---------- */
#hudButtons { position: absolute; top: calc(var(--u) * 1.3); right: calc(var(--u) * 1.3); display: flex; gap: calc(var(--u) * .7); z-index: 15; }
.hud-btn {
  width: clamp(34px, calc(var(--u) * 4), 56px); height: clamp(34px, calc(var(--u) * 4), 56px); border-radius: 50%;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .22); color: #fff; cursor: pointer;
  font-size: clamp(13px, calc(var(--u) * 1.5), 22px); font-weight: 900; outline: none;
}
.hud-btn.off { color: rgba(255, 255, 255, .35); text-decoration: line-through; }

/* ---------- touch controls ---------- */
#touch { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
#touch .tbtn, #touch .dpad { pointer-events: auto; touch-action: none; }
.tbtn {
  position: absolute; border-radius: 50%; color: rgba(255, 255, 255, .9); font: inherit; font-weight: 900; letter-spacing: .03em;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 1em rgba(255, 255, 255, .06); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; outline: none; transition: transform .05s, background .1s;
}
.tbtn.on { background: rgba(255, 255, 255, .28); transform: scale(.93); }
.t-atk { width: clamp(70px, calc(var(--u) * 11.5), 140px); height: clamp(70px, calc(var(--u) * 11.5), 140px); right: calc(var(--u) * 3); bottom: calc(var(--u) * 3.5); font-size: 1.15em; background: rgba(227, 38, 58, .25); border-color: rgba(255, 110, 125, .6); }
.t-atk.on { background: rgba(227, 38, 58, .55); }
.t-jump { width: clamp(56px, calc(var(--u) * 8.5), 104px); height: clamp(56px, calc(var(--u) * 8.5), 104px); right: calc(var(--u) * 16.5); bottom: calc(var(--u) * 2.5); font-size: .8em; }
.t-dash { width: clamp(52px, calc(var(--u) * 7.5), 92px); height: clamp(52px, calc(var(--u) * 7.5), 92px); right: calc(var(--u) * 15.5); bottom: calc(var(--u) * 13); font-size: .78em; border-color: rgba(120, 220, 255, .5); }
.t-sp { width: clamp(52px, calc(var(--u) * 7.5), 92px); height: clamp(52px, calc(var(--u) * 7.5), 92px); right: calc(var(--u) * 5); bottom: calc(var(--u) * 17); font-size: .85em; opacity: .5; }
.t-sp.ready { opacity: 1; background: rgba(90, 200, 255, .3); border-color: #9ff4ff; box-shadow: 0 0 1.2em rgba(120, 230, 255, .7); animation: spPulse 1s infinite; }
.t-down { width: clamp(40px, calc(var(--u) * 5.5), 70px); height: clamp(40px, calc(var(--u) * 5.5), 70px); left: calc(var(--u) * 12.5); bottom: calc(var(--u) * 16); font-size: .9em; }
@keyframes spPulse { 50% { box-shadow: 0 0 2em rgba(120, 230, 255, 1); } }
.dpad { position: absolute; left: calc(var(--u) * 3); bottom: calc(var(--u) * 3.5); width: clamp(140px, calc(var(--u) * 24), 280px); height: clamp(70px, calc(var(--u) * 11.5), 136px); display: flex; gap: calc(var(--u) * 1.2); }
.dp { flex: 1; border-radius: 1em; display: flex; align-items: center; justify-content: center; font-size: 1.5em; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.dp.on { background: rgba(255, 255, 255, .28); }

/* ---------- ad overlay ---------- */
.ad-overlay { position: absolute; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(2, 1, 6, .88); animation: fadein .2s ease-out; }
.ad-box { width: min(26em, 90%); padding: 1.6em 1.8em; border-radius: 1em; text-align: center; background: linear-gradient(160deg, #1d1530, #0c0814); border: 1px solid rgba(255, 210, 74, .35); box-shadow: 0 0 3em rgba(255, 200, 60, .15); }
.ad-tag { display: inline-block; font-size: .7em; font-weight: 900; letter-spacing: .3em; color: #0c0814; background: #ffd24a; padding: .2em .8em; border-radius: .3em; }
.ad-title { font-family: Impact, "Arial Black", sans-serif; font-size: 1.9em; margin: .5em 0 .6em; color: #fff; }
.ad-overlay.done .ad-title { color: #8dffc4; }
.ad-bar { height: .55em; border-radius: 1em; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ad-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb52e, #ffe27a); border-radius: 1em; }
.ad-note { margin-top: .9em; font-size: .7em; color: rgba(255, 255, 255, .45); }

/* ---------- misc ---------- */
#toast { position: absolute; left: 50%; bottom: 12%; transform: translate(-50%, 1em); z-index: 120; opacity: 0; pointer-events: none; background: rgba(0, 0, 0, .85); border: 1px solid rgba(255, 255, 255, .15); padding: .6em 1.2em; border-radius: 2em; font-weight: 700; transition: opacity .2s, transform .2s; max-width: 90%; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#rotateHint { display: none; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 200; background: rgba(227, 38, 58, .9); color: #fff; padding: 10px 16px; border-radius: 30px; font-weight: 800; font-size: 13px; text-align: center; width: max-content; max-width: 92vw; }
@media (orientation: portrait) and (pointer: coarse) { #rotateHint { display: block; } }

/* ===================== V2.1 / V2.2 additions ===================== */
.nm-row { display: inline-flex; align-items: center; gap: .35em; }
.pen { font: inherit; font-size: .8em; cursor: pointer; color: #cfc4ee; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: .4em; padding: .05em .4em; outline: none; }
.pen:hover { background: rgba(227, 38, 58, .4); color: #fff; }
.chip-btn.off { opacity: .6; }
.preview-card { background: rgba(6, 4, 12, .92); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 .6em 2em rgba(0, 0, 0, .6); }
.modes { grid-auto-rows: 1fr; }
.mode-btn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-row { grid-template-columns: repeat(6, 1fr); }
.btn.sq em { font-size: .7em; }
.btn.gift.glowing { border-color: #ffd24a; box-shadow: 0 0 1.1em rgba(255, 210, 74, .55); animation: giftGlow 1.4s infinite; }
@keyframes giftGlow { 50% { box-shadow: 0 0 2em rgba(255, 210, 74, .9); } }
.foot-links { position: absolute; left: 50%; bottom: .5em; transform: translateX(-50%); display: flex; gap: 1.1em; z-index: 22; font-size: .68em; }
.foot-links a { color: rgba(220, 210, 255, .55); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: #fff; }
.screen.modal { background: rgba(3, 2, 8, .82); }
.name-in { font: inherit; font-size: 1.3em; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25); border-radius: .5em; padding: .55em .8em; outline: none; width: 100%; text-align: center; }
.name-in:focus { border-color: #e3263a; }
/* currency pills in modal headers */
.head-r { display: flex; align-items: center; gap: .5em; }
.pills { display: flex; gap: .35em; }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .35em .75em; border-radius: 2em; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 210, 74, .35); font-weight: 900; font-size: .85em; }
.pill b { color: #ffd24a; } .pill.gemp { border-color: rgba(110, 231, 255, .35); } .pill.gemp b { color: #8ff0ff; }
/* daily login */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45em; width: 100%; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25em; padding: .6em .3em; border-radius: .6em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.day small { font-size: .7em; font-weight: 800; color: #b5a8d4; } .day b { font-size: .8em; display: flex; align-items: center; gap: .2em; }
.day em { font-style: normal; font-size: .6em; color: #ffd24a; font-weight: 800; }
.day-ico { font-size: 1.6em; }
.day.done { opacity: .45; } .day .tick { position: absolute; top: .2em; right: .35em; font-style: normal; color: #4fd395; font-weight: 900; }
.day.now { border-color: #ffd24a; box-shadow: 0 0 1.2em rgba(255, 210, 74, .45); animation: giftGlow 1.4s infinite; }
.day.big { background: linear-gradient(160deg, rgba(255, 200, 60, .18), rgba(255, 255, 255, .04)); }
/* stats */
.stats-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2em; }
.mystats { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.mystats div { background: rgba(255, 255, 255, .05); border-radius: .5em; padding: .55em .7em; display: flex; flex-direction: column; }
.mystats small { font-size: .68em; color: #a596cc; font-weight: 800; } .mystats b { font-size: 1.3em; font-family: Impact, sans-serif; font-weight: 400; }
.rank-me { font-weight: 900; color: #8dffc4; margin-bottom: .3em; }
.board { max-height: 16em; overflow: auto; display: flex; flex-direction: column; gap: .2em; padding-right: .3em; }
.brow { display: flex; align-items: center; gap: .6em; padding: .35em .6em; border-radius: .4em; background: rgba(255, 255, 255, .04); font-size: .85em; }
.brow .pos { width: 2.4em; font-weight: 900; color: #a596cc; } .brow .bn { flex: 1; } .brow b { color: #ffd24a; }
.brow.me { background: rgba(227, 38, 58, .22); border: 1px solid #e3263a; font-weight: 900; }
/* matchmaking */
.radar { position: relative; width: 8em; height: 8em; border-radius: 50%; border: 2px solid rgba(110, 231, 255, .4); display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle, rgba(110, 231, 255, .12), transparent 65%); }
.radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(110, 231, 255, .55), transparent 25%); animation: spin 1.4s linear infinite; }
.radar b { position: relative; font-family: Consolas, monospace; font-size: 1.3em; }
@keyframes spin { to { transform: rotate(360deg); } }
.mm-txt { font-family: Impact, sans-serif; font-size: 1.5em; letter-spacing: .04em; }
#scr-mm.found .radar { border-color: #4fd395; } #scr-mm.found .mm-txt { color: #8dffc4; } #scr-mm.found .radar i { animation-duration: .4s; }
/* tutorial */
#tutorial { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); z-index: 14; min-width: 20em; padding: .6em .9em; border-radius: .7em;
  background: rgba(6, 4, 12, .82); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 .5em 1.5em rgba(0, 0, 0, .5); pointer-events: none; }
#tutorial.complete { border-color: #4fd395; }
.tut-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: .3em; font-size: .78em; letter-spacing: .12em; color: #ffd24a; }
.tut-head button { pointer-events: auto; font: inherit; font-size: .9em; font-weight: 900; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: .4em; padding: .15em .6em; }
.tut-step { display: flex; align-items: center; gap: .6em; font-size: .85em; font-weight: 700; padding: .18em 0; color: #ddd3f5; }
.tut-step i { width: 1.6em; height: 1.6em; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; background: rgba(255, 255, 255, .1); font-size: .8em; }
.tut-step.ok { color: #8dffc4; } .tut-step.ok i { background: #1f8a4a; color: #fff; }
/* emotes (touch) */
.t-emo { width: clamp(38px, calc(var(--u) * 5), 64px); height: clamp(38px, calc(var(--u) * 5), 64px); right: calc(var(--u) * 26.5); bottom: calc(var(--u) * 14); font-size: .95em; }
.emo-row { position: absolute; right: calc(var(--u) * 22); bottom: calc(var(--u) * 20.5); display: flex; gap: .35em; pointer-events: auto; }
.emo-row button { font: inherit; font-weight: 900; color: #fff; background: rgba(10, 6, 18, .85); border: 1px solid rgba(255, 255, 255, .25); border-radius: 2em; padding: .45em .8em; touch-action: none; }
/* shop rewarded ads */
.ad-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin-bottom: .7em; }
.btn.adbig { flex-direction: column; padding: .7em; gap: .15em; text-transform: none; }
.btn.adbig b { font-size: 1.05em; letter-spacing: .04em; } .btn.adbig small { font-size: .72em; opacity: .85; }
/* skills / weapons cards: 2 columns, actions on the bottom row */
.grid2.fixed2 { grid-template-columns: 1fr 1fr; }
.card.col { flex-direction: column; align-items: stretch; gap: .5em; }
.card-top { display: flex; gap: .8em; align-items: flex-start; min-width: 0; }
.card-acts.bottom { margin-top: auto; display: flex; flex-direction: row; flex-wrap: wrap; gap: .4em; }
.card-acts.bottom .btn { flex: 1; min-width: 7em; }
.card.skill .card-acts.bottom { flex-direction: row; }
.forge-info { display: flex; flex-direction: column; gap: .2em; font-size: .74em; padding: .35em .55em; border-radius: .45em; background: rgba(255, 180, 60, .08); border: 1px solid rgba(255, 180, 60, .2); }
.forge-info .gain { color: #8dffc4; font-weight: 800; }
.forge-info .ghint { color: #d9cdf5; display: flex; align-items: center; gap: .4em; }
.forge-info .ghint i { width: .8em; height: .8em; border-radius: 50%; display: inline-block; }
.card-title em.plus { white-space: nowrap; }
.card-acts.bottom .btn.forge { flex-basis: 100%; order: -1; }
.card.weapon.forged { animation: forged .9s ease-out; }
.card.weapon.forged::after { content: '✦ ✦ ✦'; position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 2em; color: #ffd24a; text-shadow: 0 0 .6em #ff9a2a; animation: sparks .9s ease-out forwards; pointer-events: none; }
.card.weapon { position: relative; }
@keyframes forged { 0% { box-shadow: 0 0 0 rgba(255, 190, 60, 0); } 20% { box-shadow: 0 0 2.4em rgba(255, 190, 60, .9), inset 0 0 2em rgba(255, 220, 120, .5); background: rgba(255, 200, 80, .18); } 100% { box-shadow: 0 0 0 rgba(255, 190, 60, 0); } }
@keyframes sparks { 0% { opacity: 1; transform: translateY(0) scale(.6); } 100% { opacity: 0; transform: translateY(-1.5em) scale(1.4); } }
/* stats tab */
.confirm { display: flex; align-items: center; gap: .5em; padding: .5em .7em; margin-bottom: .5em; border-radius: .5em; background: rgba(227, 38, 58, .12); border: 1px solid rgba(227, 38, 58, .45); font-size: .85em; font-weight: 700; }
.confirm span { flex: 1; }
.btn.plus.glow:not(:disabled) { box-shadow: 0 0 .9em rgba(79, 211, 149, .75); animation: plusGlow 1.3s infinite; }
@keyframes plusGlow { 50% { box-shadow: 0 0 1.5em rgba(79, 211, 149, 1); } }
/* appearance: list + live try-on preview */
.look-wrap { display: grid; grid-template-columns: 65fr 35fr; gap: .9em; align-items: start; }
.look-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: .5em; }
.look-canvas { width: 100%; aspect-ratio: 260 / 320; border-radius: .7em; border: 1px solid rgba(255, 255, 255, .12); background: #05030a; }
.look-info { display: flex; flex-direction: column; gap: .4em; text-align: center; font-size: .85em; color: #d4c8f0; }
.cos.trying { border-color: #6ee7ff; box-shadow: 0 0 .8em rgba(110, 231, 255, .45); }
.cos .sw.svg { width: 2.2em; height: 2.2em; border-radius: .4em; background: #1b1426; border: 1px solid rgba(255, 255, 255, .3); padding: 1px; }
.cos { width: 6.9em; }
/* SEO / info section below the game */
.info { max-width: 980px; margin: 0 auto; padding: 48px 20px 30px; color: #cfc6e6; line-height: 1.65; font-size: 15px; -webkit-user-select: text; user-select: text; }
.info h1 { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 34px; color: #fff; letter-spacing: .02em; }
.info h1 small { font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; color: #e3263a; font-weight: 800; margin-left: .4em; }
.info h2 { font-size: 20px; color: #fff; margin: 26px 0 8px; }
.info p, .info ul { margin: 8px 0; } .info ul { padding-left: 22px; }
.info a { color: #ff8592; }
.info details { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.info summary { cursor: pointer; font-weight: 700; color: #fff; }
.info section { border-bottom: 1px solid rgba(255, 255, 255, .06); padding-bottom: 18px; scroll-margin-top: 20px; }
.info footer { text-align: center; font-size: 13px; color: #8f82b2; padding: 22px 0 6px; }

@media (max-height: 460px) {
  .screen { padding: 3.6em .8em .6em; }
  .logo-a, .logo-b { font-size: 2.5em; }
  .menu-col { gap: .45em; }
  .mode-btn { padding: .5em .8em; } .mode-btn small { display: none; }
  .keys { display: none; }
  .panel { padding: .8em 1em; }
  .preview-card { width: 17em; padding: .5em .8em; }
  .map-card small { display: none; }
}
@media (max-width: 760px) {
  .grid2, .slots { grid-template-columns: 1fr; }
  .panel.center, .panel.narrow { min-width: 0; width: 100%; }
  .side-panel { width: 100%; min-width: 0; }
  .sum-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-wrap, .look-wrap { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .look-side { position: static; max-width: 16em; margin: 0 auto; }
}
@media (max-width: 520px) { .grid2.fixed2 { grid-template-columns: 1fr; } }
