/* DayNight v6: survival, cinematic. Golden-hour day, cold moonlit night. Heavy metal, rust, fire. */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/oswald-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/oswald-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/oswald-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }

:root {
  --bg: #04070f; --ink: #e9edf4; --mute: #98a4b6; --line: #46505e;
  --rust: #e8651f; --rust2: #b8430f; --on: #8fd14f; --off: #ff5a3c;
  --page: linear-gradient(180deg, #03060e 0%, #081326 38%, #050a14 100%);
  --sky: linear-gradient(180deg, #02050d 0%, #07142b 42%, #14355c 78%, #2c5578 100%);
  --cond: 'Oswald', 'Rubik', system-ui, sans-serif;
  --hazard: repeating-linear-gradient(-45deg, #e8651f 0 11px, #0b0c0b 11px 22px);
  --title-shade: #3a0f00; color-scheme: dark;
}
:root[data-theme='day'] {
  --bg: #e7b870; --ink: #2a1608; --mute: #664424; --line: #a07744;
  --rust: #d4561a; --rust2: #9b3608; --on: #3f7d12; --off: #b8300d;
  --page: linear-gradient(180deg, #f6d9a0 0%, #e9b974 34%, #cf9a5c 70%, #a8723f 100%);
  --sky: linear-gradient(180deg, #0f3a66 0%, #2c78ae 26%, #e99a45 66%, #ffd98e 100%);
  --title-shade: #5a1a00; color-scheme: light;
}
html { background: var(--bg); }
body { background: var(--page); min-height: 100vh; }
body::before { opacity: .55; }
h2, .support h2 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.s-head h1, .craft h3, .mech-card h3, .bcol h3, .rules-list h3, .quiet h3, .r-title { font-family: var(--cond); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.hero-title { font-family: 'Rubik Distressed', var(--cond); }

/* metal plates keep their dark gunmetal look in both themes */
.plate, .mech-card, .count-plate, .row, .support, .s-head, .stat, .quiet, .longshot, .bcol, .craft, .grp, .vslot, .tile {
  --ink: #ece7d8; --mute: #aaa592; --steel: #2a2e2c; --steel2: #3d423f; --line: #565d57; color: var(--ink);
}
.plate { border-radius: 4px; border: 1px solid #060707;
  background:
    radial-gradient(ellipse 60% 50% at 0 100%, rgba(170,70,20,.42), transparent 70%),
    radial-gradient(ellipse 45% 40% at 100% 0, rgba(150,60,15,.32), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #4a504c 0%, #33382f 3%, #2b2f2d 40%, #202422 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(0,0,0,.55), inset 0 -14px 22px rgba(0,0,0,.35), 0 9px 0 -1px #0b0d0c, 0 26px 36px -8px rgba(0,0,0,.75); }
.row { transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.row:hover { transform: translateY(-5px) perspective(900px) rotateX(1.2deg); }
.mech-card { border-radius: 4px; border: 1px solid #060707;
  background: radial-gradient(ellipse 60% 40% at 0 100%, rgba(170,70,20,.3), transparent 70%), linear-gradient(180deg, #454b47, #262a28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 0 -1px #0b0d0c, 0 22px 30px -8px rgba(0,0,0,.7); transition: transform .2s; }
.mech-card:hover { transform: translateY(-4px); }
.mech-card .body { border-top: 4px solid var(--rust); }
.row-body, .mech-card .body, .count-plate, .support { color: var(--ink); }

/* ---------- header ---------- */
.top { background: linear-gradient(180deg, rgba(20,22,21,.96), rgba(12,14,13,.9)); backdrop-filter: blur(8px); box-shadow: 0 6px 0 #070808, 0 16px 28px rgba(0,0,0,.55); }
.top { --ink: #ece7d8; --mute: #aaa592; --line: #565d57; color: var(--ink); }
.nav a { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.brand { font-family: var(--cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f4eedd; }
.lang button[aria-pressed='true'], .lang button.on { background: var(--rust); color: #fff; }

/* ---------- buttons: forged metal + hot rust ---------- */
.btn { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: 14px 30px; color: #efe9d8;
  background: linear-gradient(180deg, #515753, #2c302d 55%, #202321); border: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: none; filter: drop-shadow(0 6px 0 #0a0b0a) drop-shadow(0 14px 12px rgba(0,0,0,.5)); transition: transform .1s, filter .1s; }
.btn:hover { background: linear-gradient(180deg, #5d645f, #343835 55%, #262a27); }
.btn:active { transform: translateY(5px); filter: drop-shadow(0 1px 0 #0a0b0a) drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.btn-main { color: #fff; text-shadow: 0 2px 0 rgba(90,25,0,.6); background: linear-gradient(180deg, #ff9a45 0%, #ea6420 45%, #b73c0a 100%);
  filter: drop-shadow(0 6px 0 #5b1d05) drop-shadow(0 0 22px rgba(255,110,30,.45)); }
.btn-main:hover { background: linear-gradient(180deg, #ffab5c 0%, #f4742c 45%, #c4460f 100%); }
.btn-main:active { filter: drop-shadow(0 1px 0 #5b1d05) drop-shadow(0 0 12px rgba(255,110,30,.4)); }

/* ---------- cinematic hero ---------- */
.hero { min-height: 720px; padding: 90px 20px 170px; background: none; }
.hero::after { display: none; }
.scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.scene .sky { position: absolute; inset: 0; background: var(--sky); }
.skyl { position: absolute; left: -1%; bottom: -2px; width: 102%; }
.skyl.l1 { height: 60%; fill: #3a5878; }
.skyl.l2 { height: 48%; fill: #1b2f4a; filter: drop-shadow(0 -2px 0 rgba(130,180,255,.35)); }
.skyl.l3 { height: 33%; fill: #070c15; filter: drop-shadow(0 -2px 0 rgba(110,160,255,.3)); }
:root[data-theme='day'] .skyl.l1 { fill: #c58a5c; }
:root[data-theme='day'] .skyl.l2 { fill: #6d4430; filter: drop-shadow(0 -2px 0 rgba(255,200,110,.75)); }
:root[data-theme='day'] .skyl.l3 { fill: #1c100a; filter: drop-shadow(0 -3px 0 rgba(255,190,90,.6)); }
.fog { position: absolute; left: -10%; width: 120%; height: 22%; pointer-events: none; background: radial-gradient(ellipse 50% 100% at 50% 60%, rgba(140,180,230,.28), transparent 70%); animation: fogmove 40s ease-in-out infinite alternate; }
.fog.f1 { bottom: 30%; } .fog.f2 { bottom: 12%; animation-duration: 55s; animation-direction: alternate-reverse; background: radial-gradient(ellipse 50% 100% at 40% 60%, rgba(120,160,210,.3), transparent 70%); }
:root[data-theme='day'] .fog { background: radial-gradient(ellipse 50% 100% at 50% 60%, rgba(255,205,140,.55), transparent 70%); }
@keyframes fogmove { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

.orb { position: absolute; border-radius: 50%; transition: transform 1.3s cubic-bezier(.4,.1,.2,1), opacity .9s; }
.sun { right: 13%; bottom: 33%; width: clamp(150px, 22vw, 280px); aspect-ratio: 1;
  background: radial-gradient(circle, #fffef0 0, #fff3b8 24%, #ffd25c 48%, rgba(255,160,50,.9) 62%, rgba(255,120,30,.0) 72%);
  }
.sun::before { content: ''; position: absolute; inset: -110%; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,80,.6) 0, rgba(255,140,40,.28) 28%, transparent 62%); }
.sun .rays { position: absolute; inset: -90%; border-radius: 50%; background: repeating-conic-gradient(from 8deg, rgba(255,226,150,.34) 0 3deg, transparent 3deg 11deg); -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); animation: spin 140s linear infinite; z-index: -1; }
.sun .flare { position: absolute; left: -120%; right: -120%; top: 47%; height: 5%; background: linear-gradient(90deg, transparent, rgba(255,230,160,.55) 50%, transparent); filter: blur(2px); }
.moon { right: 12%; top: 80px; width: clamp(130px, 19vw, 240px); aspect-ratio: 1;
  background: radial-gradient(circle at 36% 32%, #ffffff 0, #f1f3f8 30%, #c3cad8 68%, #8e98ac 100%);
  box-shadow: inset -22px -22px 40px rgba(40,55,95,.65), inset 8px 10px 18px rgba(255,255,255,.6), 0 0 60px 20px rgba(150,185,255,.38), 0 0 200px 70px rgba(100,140,230,.22); }
.moon b { position: absolute; border-radius: 50%; background: radial-gradient(circle at 36% 30%, rgba(110,122,150,.6), rgba(150,160,185,.15) 75%); box-shadow: inset 2px 3px 6px rgba(50,60,100,.45); }
.moon .c1 { width: 28%; height: 28%; left: 20%; top: 22%; } .moon .c2 { width: 18%; height: 18%; left: 60%; top: 50%; } .moon .c3 { width: 12%; height: 12%; left: 36%; top: 68%; } .moon .c4 { width: 9%; height: 9%; left: 66%; top: 24%; }
:root[data-theme='day'] .moon { transform: translateY(300%); opacity: 0; }
:root:not([data-theme='day']) .sun { transform: translateY(160%); opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.stars { position: absolute; inset: 0 0 45% 0; opacity: 0; transition: opacity 1s; }
:root:not([data-theme='day']) .stars { opacity: 1; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(200,225,255,.7); animation: tw 3.6s ease-in-out infinite; }
.stars i:nth-child(3n) { animation-delay: -1.3s; width: 2px; height: 2px; } .stars i:nth-child(3n+1) { animation-delay: -2.3s; }
.stars i:nth-child(1){left:6%;top:12%}.stars i:nth-child(2){left:14%;top:38%}.stars i:nth-child(3){left:22%;top:20%}.stars i:nth-child(4){left:31%;top:8%}.stars i:nth-child(5){left:38%;top:44%}.stars i:nth-child(6){left:47%;top:16%}.stars i:nth-child(7){left:55%;top:34%}.stars i:nth-child(8){left:61%;top:10%}.stars i:nth-child(9){left:68%;top:46%}.stars i:nth-child(10){left:76%;top:24%}.stars i:nth-child(11){left:83%;top:6%}.stars i:nth-child(12){left:90%;top:36%}.stars i:nth-child(13){left:95%;top:18%}.stars i:nth-child(14){left:27%;top:52%}.stars i:nth-child(15){left:72%;top:58%}.stars i:nth-child(16){left:10%;top:60%}
@keyframes tw { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }

.smoke { position: absolute; bottom: 30%; width: 90px; height: 260px; pointer-events: none; opacity: .75; }
.smoke.s1 { left: 47%; opacity: .5; } .smoke.s2 { left: 31%; height: 200px; opacity: .35; }
.smoke i { position: absolute; left: 50%; bottom: 0; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: radial-gradient(circle, rgba(40,32,28,.8), rgba(40,32,28,0) 70%); filter: blur(6px); animation: rise 9s linear infinite; }
.smoke i:nth-child(2) { animation-delay: -2.2s; } .smoke i:nth-child(3) { animation-delay: -4.5s; } .smoke i:nth-child(4) { animation-delay: -6.7s; }
@keyframes rise { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(30px, -240px) scale(3.2); opacity: 0; } }
:root:not([data-theme='day']) .smoke i { background: radial-gradient(circle, rgba(10,14,22,.9), rgba(10,14,22,0) 70%); }
.birds { position: absolute; top: 120px; left: -140px; width: 120px; opacity: .8; animation: fly 38s linear infinite; }
.birds path { fill: none; stroke: #1c0f08; stroke-width: 2.4; stroke-linecap: round; }
:root:not([data-theme='day']) .birds { opacity: 0; }
@keyframes fly { to { transform: translateX(calc(100vw + 300px)); } }

.fire { position: absolute; right: 7%; bottom: 7%; width: 112px; height: 140px; z-index: 1; }
.fire svg { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 14px rgba(255,150,40,.8)); }
.fire .glow { position: absolute; left: -220%; right: -220%; top: -160%; bottom: -80%; background: radial-gradient(ellipse at 50% 62%, rgba(255,150,50,.55), rgba(255,100,20,.2) 35%, transparent 65%); mix-blend-mode: screen; animation: glowflick 2.4s ease-in-out infinite; }
:root[data-theme='day'] .fire .glow { opacity: .35; }
.fl { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 1.1s ease-in-out infinite alternate; }
.fl.b { animation-duration: .8s; animation-delay: -.3s; } .fl.c { animation-duration: .6s; animation-delay: -.5s; }
@keyframes flick { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.94, 1.08) skewX(3deg); } 100% { transform: scale(1.04, .95) skewX(-3deg); } }
@keyframes glowflick { 0%, 100% { opacity: .85; } 50% { opacity: 1; } 70% { opacity: .75; } }
.spark { position: absolute; left: 50%; bottom: 40%; width: 3px; height: 3px; border-radius: 50%; background: #ffc860; box-shadow: 0 0 6px 2px rgba(255,170,60,.9); animation: spark 2.6s ease-out infinite; opacity: 0; }
.spark:nth-of-type(2) { animation-delay: -.5s; left: 44%; } .spark:nth-of-type(3) { animation-delay: -1.1s; left: 56%; } .spark:nth-of-type(4) { animation-delay: -1.7s; left: 48%; } .spark:nth-of-type(5) { animation-delay: -2.2s; left: 53%; }
@keyframes spark { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(24px, -150px); opacity: 0; } }

.vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,.5) 100%), linear-gradient(180deg, transparent 70%, rgba(0,0,0,.45)); }
.grainfx { position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: overlay; background: var(--grain); }

.hero-in { z-index: 3; }
.hero-title { color: #f5ecd6; letter-spacing: .01em; -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 var(--title-shade), 0 2px 0 var(--title-shade), 0 3px 0 var(--title-shade), 0 4px 0 var(--title-shade), 0 5px 0 var(--title-shade), 0 6px 0 var(--title-shade), 0 7px 0 #1c0900, 0 8px 0 #1c0900, 0 9px 0 #1c0900, 0 22px 30px rgba(0,0,0,.65), 0 0 60px rgba(255,140,40,.25); }
.hero-lead { color: #fff3d8; font-weight: 600; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.6); }
.hero-num { font-family: var(--cond); font-weight: 700; color: #ff7a2a; text-shadow: 0 2px 0 #7a2605, 0 4px 0 #4a1602, 0 10px 16px rgba(0,0,0,.6), 0 0 28px rgba(255,100,20,.35); }
.hero-of { font-family: var(--cond); }
.meter { background: #0a0c0b; box-shadow: inset 0 2px 4px rgba(0,0,0,.7), 0 0 0 1px var(--line); border-radius: 0; }
.meter i { background: linear-gradient(90deg, #b8430f, #ff8a3a); box-shadow: 0 0 10px rgba(255,120,40,.6); }

/* ---------- content on the page background (not on plates) ---------- */
h2::after { background: var(--hazard); height: 7px; }
.cat { font-family: var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.steps li { color: var(--ink); }
.steps li::before { font-family: var(--cond); background: linear-gradient(180deg, #ff9a45, #b73c0a); box-shadow: 0 5px 0 #4a1602, 0 0 16px rgba(255,110,30,.35); }
.foot { color: var(--mute); }
.mods a, .also a { color: var(--rust); font-weight: 600; }
:root:not([data-theme='day']) .mods a, :root:not([data-theme='day']) .cat { color: #ff8a3a; }
:root[data-theme='day'] .cat { color: #8a2f08; }
.craft-bar input { background: #101312; color: #ece7d8; border: 1px solid #060707; box-shadow: 0 0 0 1px #565d57, 0 6px 0 -1px #0a0b0a; border-radius: 0; }
.cc { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: linear-gradient(180deg, #4d534f, #272a28); color: #ece7d8; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 0 #0a0b0a; }
.cc[aria-pressed='true'] { background: linear-gradient(180deg, #ff9a45, #b73c0a); color: #fff; box-shadow: 0 4px 0 #4a1602, 0 0 14px rgba(255,110,30,.4); }
.tile .ico { background: linear-gradient(160deg, #4a514c, #1d201e); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -6px 10px rgba(0,0,0,.4), 0 4px 0 #090a09; }
.tile .ico .glw { color: #e9e2cd; }
.tile .ico .gl .a { stroke: #ff8a3a; }
.tile .nm { color: #ece7d8; }
.chip, .tags li { color: #e4dcc8; }
.tags li { background: rgba(0,0,0,.28); }
.ls-n, .stat-n, .rank .val { font-family: var(--cond); }
.stat-n { color: #ff7a2a; text-shadow: 0 3px 0 #4a1602, 0 0 18px rgba(255,100,20,.3); }
.ls-n { text-shadow: 0 4px 0 #000, 0 0 30px rgba(255,120,30,.3); }
@media (max-width: 820px) { .hero { min-height: 640px; padding-top: 56px; padding-bottom: 150px; } .sun { right: -6%; bottom: 36%; } .moon { right: 5%; top: 70px; width: 120px; } .fire { right: 3%; bottom: 6%; width: 84px; height: 104px; } .hero-title { text-shadow: 0 1px 0 var(--title-shade), 0 2px 0 var(--title-shade), 0 3px 0 var(--title-shade), 0 4px 0 var(--title-shade), 0 5px 0 #1c0900, 0 6px 0 #1c0900, 0 14px 18px rgba(0,0,0,.6); } }

.gl3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.scene.gl .skyl, .scene.gl .fire, .scene.gl .smoke, .scene.gl .fog { display: none; }
.scene.gl .vig { z-index: 2; } .scene.gl .grainfx { z-index: 2; }
.scene.gl::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.12) 55%, transparent 80%); }

/* ---- leaderboard: players, awards, cards ---- */
.weekp{display:flex;flex-direction:column;gap:4px;padding:22px 24px;margin:18px 0;border-left:6px solid #ff7a1a}
.weekp .wk-n{font-family:'Oswald',sans-serif;font-weight:700;font-size:clamp(28px,6vw,44px);letter-spacing:.02em;color:#ffb15a;line-height:1.05}
.aw-h{margin:26px 0 10px;font-family:'Oswald',sans-serif;letter-spacing:.05em}
.awards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}
.aw{display:flex;flex-direction:column;gap:3px;padding:14px 16px}
.aw small{opacity:.75}.aw b{font-size:17px;word-break:break-word}.aw .aw-v{color:#ffb15a;font-family:'Oswald',sans-serif;font-size:20px}
.bdg{display:inline-flex;width:26px;height:26px;color:#ffb15a}
.bdg svg{width:100%;height:100%}
.bdg-first{color:#e5483a}.bdg-sniper{color:#9fd1ff}.bdg-streak{color:#ffcf4a}.bdg-night{color:#a9b8ff}.bdg-builder{color:#8fd18a}.bdg-raider{color:#ff8a5a}.bdg-timer{color:#d7c9a8}
.bdgs-s{display:inline-flex;gap:3px}.bdgs-s .bdg{width:20px;height:20px}
.pl-block{margin-bottom:22px}
.pl-search{width:100%;box-sizing:border-box;margin:6px 0 12px;padding:12px 14px;font:inherit;font-size:16px;color:inherit;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.18);border-radius:2px}
.pl-search:focus{outline:2px solid #ff7a1a;outline-offset:1px}
.pl-none{opacity:.7;padding:10px 2px}
ol.pl li{cursor:pointer;align-items:center}ol.pl li:hover,ol.pl li:focus-visible{background:rgba(255,122,26,.12);outline:none}
ol.pl .who{flex:1;min-width:0}
.rk{font-size:12px;font-family:'Oswald',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#bbb}
.rk-survivor{color:#9fd18a}.rk-fighter{color:#6fb4ff}.rk-veteran{color:#ffb15a}.rk-legend{color:#ff5a3a}
.pc-back{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.pcard{position:relative;width:min(520px,100%);max-height:92vh;overflow:auto;padding:26px 22px}
.pcard h3{margin:0 40px 4px 0;font-family:'Oswald',sans-serif;font-size:30px;word-break:break-word}
.pc-x{position:absolute;top:8px;right:10px;width:44px;height:44px;font-size:30px;line-height:1;color:inherit;background:none;border:0;cursor:pointer}
.bdgs{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.bdg-row{display:inline-flex;align-items:center;gap:6px}
.pc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pc-c{background:rgba(0,0,0,.3);padding:10px;display:flex;flex-direction:column;gap:2px}
.pc-c b{font-family:'Oswald',sans-serif;font-size:20px;word-break:break-word}.pc-c small{opacity:.7}
@media(max-width:420px){.pc-grid{grid-template-columns:repeat(2,1fr)}}
ol.rank.pl li{grid-template-columns:34px 1fr auto auto}

/* ---- features page ---- */
.feat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px;margin:18px 0 30px}
.feat{display:flex;gap:14px;padding:18px 18px 16px;align-items:flex-start}
.feat-ic{flex:0 0 46px;width:46px;height:46px;color:#ffb15a}
.feat-ic svg{width:100%;height:100%}
.feat-b h3{margin:0 0 6px;font-family:'Oswald',sans-serif;font-size:20px;letter-spacing:.02em}
.feat-b p{margin:0 0 10px;line-height:1.45;opacity:.92}
.feat-w{display:block;opacity:.65;font-size:12.5px}

/* ---- profile page ---- */
.me-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:20px 0 8px}
.me-card{padding:20px}.me-card h3{margin:0 0 12px;font-family:'Oswald',sans-serif;font-size:24px}
.me-ok{color:#8fd18a;margin:0;font-weight:600;word-break:break-word}
.me-note{margin:14px 2px;opacity:.85}
.me-stat{padding:22px;margin-top:14px}.me-stat h3{margin:0 0 4px;font-family:'Oswald',sans-serif;font-size:30px}

/* live feed */
.feed{--sc-trader:#e6a23a;--sc-vanilla:#8bb04a;--sc-livonia:#4aa8d8;--sc-nasdara:#c777d9}
.feed .live-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#e2503a;margin-right:10px;box-shadow:0 0 0 0 rgba(226,80,58,.7);animation:fdot 1.8s infinite;vertical-align:middle}
@keyframes fdot{70%{box-shadow:0 0 0 9px rgba(226,80,58,0)}100%{box-shadow:0 0 0 0 rgba(226,80,58,0)}}
@media(prefers-reduced-motion:reduce){.feed .live-dot{animation:none}}
.feed-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:820px){.feed-cols{grid-template-columns:1fr}}
.fcol{background:rgba(8,9,8,.72);border:1px solid var(--line);border-top:3px solid var(--rust);border-radius:3px;padding:0}
:root[data-theme='day'] .fcol{background:rgba(255,252,240,.7)}
.fcol>h3{margin:0;padding:12px 16px;font:800 17px/1 var(--strong);letter-spacing:.02em;border-bottom:1px solid var(--line);color:var(--ink)}
.feed-list{list-style:none;margin:0;padding:6px 0;max-height:380px;overflow:auto}
.fi{display:grid;grid-template-columns:auto 1fr;column-gap:12px;padding:9px 16px;border-left:4px solid var(--sc,var(--line));margin:3px 0;font:400 15px/1.4 var(--body);overflow-wrap:anywhere}
.fi:nth-child(odd){background:rgba(255,255,255,.035)}
.fi .ft{grid-row:1/3;font:600 13px/1.6 var(--body);font-variant-numeric:tabular-nums;color:var(--mute);min-width:42px}
.fi .fs{display:inline-block;margin-right:8px;padding:1px 7px;border-radius:3px;font:800 11.5px/1.5 var(--strong);letter-spacing:.03em;color:#10110f;background:var(--sc,var(--mute));vertical-align:1px}
.fi .fn{font:800 15px/1.4 var(--strong);color:var(--ink);margin-right:6px}
.fi .fn.tag{color:var(--rust)}
.fi .fv{color:var(--mute)}
.fi .fx{font:500 13px/1.5 var(--body);color:var(--mute);margin-top:2px}
.fi .fx b{color:var(--ink);font-weight:600}
.fi .fx .hs{color:#e2503a;font-weight:800}
.s-cherno-vanilla{--sc:var(--sc-vanilla)}.s-cherno-trader{--sc:var(--sc-trader)}.s-livonia{--sc:var(--sc-livonia)}.s-nasdara{--sc:var(--sc-nasdara)}
.feed-list .pl-none{padding:16px;color:var(--mute)}

/* ===== teal + black night theme ===== */
:root:not([data-theme='day']) {
  --bg: #000; --bg2: #030606; --ink: #e4f6f3; --mute: #82a9a4; --line: #1d3836;
  --rust: #19d3c5; --rust2: #0b8a82; --brass: #19d3c5; --fill-a: #19d3c5; --on: #4be3a1; --off: #ff5a6e;
  --page: linear-gradient(180deg, #000 0%, #020909 40%, #000 100%);
  --sky: linear-gradient(180deg, #000 0%, #02100f 42%, #07302d 78%, #0f5651 100%);
  --hazard: repeating-linear-gradient(-45deg, #19d3c5 0 11px, #000 11px 22px);
  --title-shade: #022421;
}
:root:not([data-theme='day']) .mods a, :root:not([data-theme='day']) .cat { color: #4cf0e2; }
:root:not([data-theme='day']) .plate, :root:not([data-theme='day']) .mech-card, :root:not([data-theme='day']) .count-plate, :root:not([data-theme='day']) .row, :root:not([data-theme='day']) .support, :root:not([data-theme='day']) .s-head, :root:not([data-theme='day']) .stat, :root:not([data-theme='day']) .quiet, :root:not([data-theme='day']) .longshot, :root:not([data-theme='day']) .bcol, :root:not([data-theme='day']) .craft, :root:not([data-theme='day']) .grp, :root:not([data-theme='day']) .vslot, :root:not([data-theme='day']) .tile {
  --steel: #0a1110; --steel2: #101c1b; --line: #1d3836; --ink: #e4f6f3; --mute: #82a9a4; }
:root:not([data-theme='day']) .plate { background: linear-gradient(180deg, #0f1b1a 0%, #0a1312 3%, #070d0d 40%, #040808 100%); border-color: #000; box-shadow: inset 0 1px 0 rgba(25,211,197,.25), inset 0 0 0 1px rgba(0,0,0,.6), 0 9px 0 -1px #000, 0 26px 36px -8px rgba(0,0,0,.85); }
:root:not([data-theme='day']) .mech-card { background: radial-gradient(ellipse 60% 40% at 0 100%, rgba(25,211,197,.16), transparent 70%), linear-gradient(180deg, #0f1b1a, #040808); border-color: #000; box-shadow: inset 0 1px 0 rgba(25,211,197,.22), 0 8px 0 -1px #000, 0 22px 30px -8px rgba(0,0,0,.85); }
:root:not([data-theme='day']) .top { background: linear-gradient(180deg, rgba(0,0,0,.97), rgba(2,6,6,.92)); box-shadow: 0 6px 0 #000, 0 16px 28px rgba(0,0,0,.7), 0 1px 0 rgba(25,211,197,.35); }
:root:not([data-theme='day']) .btn { background: linear-gradient(180deg, #123532, #081917 55%, #04100f); color: #e4fffb; filter: drop-shadow(0 6px 0 #000) drop-shadow(0 14px 12px rgba(0,0,0,.6)); }
:root:not([data-theme='day']) .btn:hover { background: linear-gradient(180deg, #19544f, #0c2623 55%, #06130f); }
:root:not([data-theme='day']) .btn-main { background: linear-gradient(180deg, #2eeadb, #19d3c5 55%, #0b8a82); color: #001a18; }
:root:not([data-theme='day']) .btn-main:hover { background: linear-gradient(180deg, #5ff5e8, #2eeadb 55%, #12a89e); }
:root:not([data-theme='day']) .tile .ico { background: linear-gradient(160deg, #123532, #050b0b); box-shadow: inset 0 1px 0 rgba(25,211,197,.3), inset 0 -6px 10px rgba(0,0,0,.5), 0 4px 0 #000; }
:root:not([data-theme='day']) .cc { background: linear-gradient(180deg, #123532, #050b0b); color: #e4f6f3; }
:root:not([data-theme='day']) .craft-bar input, :root:not([data-theme='day']) .pl-search { background: #030707; color: #e4f6f3; box-shadow: 0 0 0 1px #1d3836, 0 6px 0 -1px #000; }
:root:not([data-theme='day']) .meter { background: #000; }
:root:not([data-theme='day']) .skyl.l1 { fill: #0a2624; }
:root:not([data-theme='day']) .skyl.l2 { fill: #08201e; filter: drop-shadow(0 -2px 0 rgba(25,211,197,.4)); }
:root:not([data-theme='day']) .skyl.l3 { fill: #000; filter: drop-shadow(0 -2px 0 rgba(25,211,197,.35)); }
:root:not([data-theme='day']) .moon { box-shadow: inset -22px -22px 40px rgba(5,70,66,.7), inset 8px 10px 18px rgba(255,255,255,.55), 0 0 60px 20px rgba(25,211,197,.3), 0 0 200px 70px rgba(25,211,197,.15); }
:root:not([data-theme='day']) .stars i { box-shadow: 0 0 6px 2px rgba(120,255,240,.6); }
:root:not([data-theme='day']) .smoke i { background: radial-gradient(circle, rgba(0,10,10,.9), rgba(0,10,10,0) 70%); }
:root:not([data-theme='day']) .fire svg { filter: hue-rotate(150deg) saturate(1.15) drop-shadow(0 0 14px rgba(25,211,197,.8)); }
:root:not([data-theme='day']) .fire .glow { background: radial-gradient(ellipse at 50% 62%, rgba(25,211,197,.45), rgba(10,140,130,.16) 40%, transparent 68%); }
:root:not([data-theme='day']) .fcol { border-top-color: #19d3c5; }
:root:not([data-theme='day']) .feed { --sc-livonia: #ff6f91; }
:root:not([data-theme='day']) .fi .fn.tag { color: #4cf0e2; }

:root:not([data-theme='day']) .hero-num, :root:not([data-theme='day']) .stat-n { color: #2eeadb; text-shadow: 0 2px 0 #06504b, 0 4px 0 #02201e, 0 10px 16px rgba(0,0,0,.7), 0 0 28px rgba(25,211,197,.4); }
:root:not([data-theme='day']) .btn-main { text-shadow: none; filter: drop-shadow(0 6px 0 #04403b) drop-shadow(0 0 22px rgba(25,211,197,.45)); }
:root:not([data-theme='day']) .btn-main:active { filter: drop-shadow(0 1px 0 #04403b) drop-shadow(0 0 12px rgba(25,211,197,.4)); }
:root:not([data-theme='day']) .meter i { background: linear-gradient(90deg, #0b8a82, #2eeadb); box-shadow: 0 0 10px rgba(25,211,197,.6); }
:root:not([data-theme='day']) .steps li::before, :root:not([data-theme='day']) .cc[aria-pressed='true'] { background: linear-gradient(180deg, #2eeadb, #0b8a82); color: #001a18; box-shadow: 0 5px 0 #02201e, 0 0 16px rgba(25,211,197,.35); }
:root:not([data-theme='day']) .tile .ico .gl .a { stroke: #2eeadb; }
:root:not([data-theme='day']) .weekp { border-left-color: #19d3c5; }
:root:not([data-theme='day']) .weekp .wk-n, :root:not([data-theme='day']) .aw .aw-v, :root:not([data-theme='day']) .bdg, :root:not([data-theme='day']) .rk-veteran, :root:not([data-theme='day']) .feat-ic { color: #4cf0e2; }
:root:not([data-theme='day']) .rk-legend { color: #ff6f91; }
:root:not([data-theme='day']) .pl-search:focus { outline-color: #19d3c5; }
:root:not([data-theme='day']) .brand-mark .bm-day { fill: #19d3c5; }

/* about: 3D emblem + glass card */
.about{padding-top:90px}
.about-grid{display:grid;grid-template-columns:minmax(300px,.9fr) 1.1fr;gap:clamp(20px,4vw,60px);align-items:center;max-width:1100px;margin:0 auto}
.emblem{position:relative;aspect-ratio:4/5;width:100%;max-width:520px;margin:0 auto;background:#000;border-radius:6px;box-shadow:0 0 0 1px rgba(25,211,197,.28),0 30px 60px -20px rgba(0,0,0,.9);overflow:hidden}
.emblem canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:1}
.emblem-fb{position:absolute;left:25%;right:25%;bottom:12%;height:55%;border-radius:50% 50% 40% 40%/70% 70% 30% 30%;background:radial-gradient(ellipse at 50% 80%,#d8fffb,#19d3c5 45%,transparent 72%);filter:blur(10px)}
.emblem.gl .emblem-fb{opacity:0}
.about-card{position:relative;padding:34px clamp(22px,3vw,44px) 38px;border-radius:6px;background:linear-gradient(160deg,rgba(25,211,197,.1),rgba(0,0,0,.55) 60%);border:1px solid rgba(25,211,197,.35);box-shadow:0 0 0 1px #000,0 30px 60px -20px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(6px)}
.about-card::before{content:'';position:absolute;left:-1px;top:24px;bottom:24px;width:4px;background:linear-gradient(180deg,#19d3c5,#0b8a82);border-radius:2px}
.about-card h2{text-align:left;margin:0 0 6px}
.about-card h2::after{margin-left:0}
.about-card p{font:400 clamp(16px,1.5vw,18px)/1.6 var(--body);margin:14px 0 0;color:var(--ink);max-width:56ch}
.about-card .btn{margin-top:26px}
:root[data-theme='day'] .about-card{background:linear-gradient(160deg,rgba(255,235,200,.75),rgba(255,214,150,.5));border-color:rgba(138,47,8,.4);color:#2a1608;box-shadow:0 30px 60px -24px rgba(70,30,0,.5)}
:root[data-theme='day'] .about-card p,:root[data-theme='day'] .about-card h2{color:#0f1717}
@media(max-width:820px){.about-grid{grid-template-columns:1fr}.emblem{max-width:360px}}

/* ===== grey day theme (no orange) ===== */
:root[data-theme='day'] {
  --bg: #cdd3d3; --ink: #0f1717; --mute: #4a5b5b; --line: #8a9b9b;
  --rust: #0e9d92; --rust2: #076b64; --brass: #0e9d92; --fill-a: #0e9d92; --on: #1f8f5a; --off: #c43a4a;
  --page: linear-gradient(180deg, #e1e6e6 0%, #c9d0d0 50%, #aab5b5 100%);
  --sky: linear-gradient(180deg, #7d8a8d 0%, #a7b3b6 38%, #cdd5d6 72%, #e8ecec 100%);
  --hazard: repeating-linear-gradient(-45deg, #0e9d92 0 11px, #101616 11px 22px);
  --title-shade: #174b47; color-scheme: light;
}
:root[data-theme='day'] .skyl.l1 { fill: #9aa7aa; }
:root[data-theme='day'] .skyl.l2 { fill: #5c6b6e; filter: drop-shadow(0 -2px 0 rgba(255,255,255,.7)); }
:root[data-theme='day'] .skyl.l3 { fill: #151d1e; filter: drop-shadow(0 -2px 0 rgba(255,255,255,.55)); }
:root[data-theme='day'] .fog { background: radial-gradient(ellipse 50% 100% at 50% 60%, rgba(255,255,255,.5), transparent 70%); }
:root[data-theme='day'] .sun::before { background: radial-gradient(circle, rgba(255,255,255,.75) 0, rgba(220,235,236,.3) 28%, transparent 62%); }
:root[data-theme='day'] .sun .rays { background: repeating-conic-gradient(from 8deg, rgba(255,255,255,.3) 0 3deg, transparent 3deg 11deg); }
:root[data-theme='day'] .sun .flare { background: linear-gradient(90deg, transparent, rgba(255,255,255,.5) 50%, transparent); }
:root[data-theme='day'] .mods a, :root[data-theme='day'] .cat, :root[data-theme='day'] .also a { color: #086e66; }
:root[data-theme='day'] .fcol { background: rgba(255,255,255,.6); border-top-color: #0e9d92; }
:root[data-theme='day'] .fi .fn.tag { color: #086e66; }
:root[data-theme='day'] .feed { --sc-livonia: #d63a63; }
:root[data-theme='day'] .rk-legend { color: #c4264f; }
:root[data-theme='day'] .about-card { background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(190,205,206,.55)); border-color: rgba(14,157,146,.5); color: #0f1717; box-shadow: 0 30px 60px -24px rgba(10,30,30,.5); }
:root[data-theme='day'] .about-card::before { background: linear-gradient(180deg, #0e9d92, #086e66); }
:root[data-theme='day'] .brand-mark .bm-day { fill: #0e9d92; }
:root .feed { --sc-trader: #e5c13a; }
:root[data-theme='day'] .plate, :root[data-theme='day'] .mech-card, :root[data-theme='day'] .count-plate, :root[data-theme='day'] .row, :root[data-theme='day'] .support, :root[data-theme='day'] .s-head, :root[data-theme='day'] .stat, :root[data-theme='day'] .quiet, :root[data-theme='day'] .longshot, :root[data-theme='day'] .bcol, :root[data-theme='day'] .craft, :root[data-theme='day'] .grp, :root[data-theme='day'] .vslot, :root[data-theme='day'] .tile {
  --steel: #0a1110; --steel2: #101c1b; --line: #1d3836; --ink: #e4f6f3; --mute: #82a9a4; }
:root[data-theme='day'] .plate { background: linear-gradient(180deg, #0f1b1a 0%, #0a1312 3%, #070d0d 40%, #040808 100%); border-color: #000; box-shadow: inset 0 1px 0 rgba(25,211,197,.25), inset 0 0 0 1px rgba(0,0,0,.6), 0 9px 0 -1px #000, 0 26px 36px -8px rgba(0,0,0,.85); }
:root[data-theme='day'] .mech-card { background: radial-gradient(ellipse 60% 40% at 0 100%, rgba(25,211,197,.16), transparent 70%), linear-gradient(180deg, #0f1b1a, #040808); border-color: #000; box-shadow: inset 0 1px 0 rgba(25,211,197,.22), 0 8px 0 -1px #000, 0 22px 30px -8px rgba(0,0,0,.85); }
:root[data-theme='day'] .top { background: linear-gradient(180deg, rgba(0,0,0,.97), rgba(2,6,6,.92)); box-shadow: 0 6px 0 #000, 0 16px 28px rgba(0,0,0,.7), 0 1px 0 rgba(25,211,197,.35); }
:root[data-theme='day'] .btn { background: linear-gradient(180deg, #123532, #081917 55%, #04100f); color: #e4fffb; filter: drop-shadow(0 6px 0 #000) drop-shadow(0 14px 12px rgba(0,0,0,.6)); }
:root[data-theme='day'] .btn:hover { background: linear-gradient(180deg, #19544f, #0c2623 55%, #06130f); }
:root[data-theme='day'] .btn-main { background: linear-gradient(180deg, #2eeadb, #19d3c5 55%, #0b8a82); color: #001a18; }
:root[data-theme='day'] .btn-main:hover { background: linear-gradient(180deg, #5ff5e8, #2eeadb 55%, #12a89e); }
:root[data-theme='day'] .tile .ico { background: linear-gradient(160deg, #123532, #050b0b); box-shadow: inset 0 1px 0 rgba(25,211,197,.3), inset 0 -6px 10px rgba(0,0,0,.5), 0 4px 0 #000; }
:root[data-theme='day'] .cc { background: linear-gradient(180deg, #123532, #050b0b); color: #e4f6f3; }
:root[data-theme='day'] .craft-bar input, :root[data-theme='day'] .pl-search { background: #030707; color: #e4f6f3; box-shadow: 0 0 0 1px #1d3836, 0 6px 0 -1px #000; }
:root[data-theme='day'] .meter { background: #000; }
:root[data-theme='day'] .fire svg { filter: hue-rotate(150deg) saturate(1.15) drop-shadow(0 0 14px rgba(25,211,197,.8)); }
:root[data-theme='day'] .fire .glow { background: radial-gradient(ellipse at 50% 62%, rgba(25,211,197,.45), rgba(10,140,130,.16) 40%, transparent 68%); }
:root[data-theme='day'] .hero-num, :root[data-theme='day'] .stat-n { color: #2eeadb; text-shadow: 0 2px 0 #06504b, 0 4px 0 #02201e, 0 10px 16px rgba(0,0,0,.7), 0 0 28px rgba(25,211,197,.4); }
:root[data-theme='day'] .btn-main { text-shadow: none; filter: drop-shadow(0 6px 0 #04403b) drop-shadow(0 0 22px rgba(25,211,197,.45)); }
:root[data-theme='day'] .btn-main:active { filter: drop-shadow(0 1px 0 #04403b) drop-shadow(0 0 12px rgba(25,211,197,.4)); }
:root[data-theme='day'] .meter i { background: linear-gradient(90deg, #0b8a82, #2eeadb); box-shadow: 0 0 10px rgba(25,211,197,.6); }
:root[data-theme='day'] .steps li::before, :root[data-theme='day'] .cc[aria-pressed='true'] { background: linear-gradient(180deg, #2eeadb, #0b8a82); color: #001a18; box-shadow: 0 5px 0 #02201e, 0 0 16px rgba(25,211,197,.35); }
:root[data-theme='day'] .tile .ico .gl .a { stroke: #2eeadb; }
:root[data-theme='day'] .weekp { border-left-color: #19d3c5; }
:root[data-theme='day'] .weekp .wk-n, :root[data-theme='day'] .aw .aw-v, :root[data-theme='day'] .bdg, :root[data-theme='day'] .rk-veteran, :root[data-theme='day'] .feat-ic { color: #4cf0e2; }
:root[data-theme='day'] .pl-search:focus { outline-color: #19d3c5; }
:root[data-theme='day'] .brand-mark .bm-day { fill: #19d3c5; }

/* poster hero */
.poster-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,520px);gap:clamp(20px,4vw,60px);align-items:center;min-height:min(94vh,820px);padding:70px clamp(16px,4vw,60px) 80px;background:radial-gradient(ellipse 55% 75% at 74% 50%,rgba(25,211,197,.16),transparent 70%),linear-gradient(180deg,#000,#030808)}
.poster-hero .scene{display:none}
.poster-hero::after{display:block;content:'';position:absolute;left:0;right:0;bottom:0;height:10px;background:var(--hazard)}
.poster-hero .hero-in{grid-column:1;grid-row:1;margin:0 0 0 auto;max-width:560px;width:100%}
.poster-hero .hero-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.poster-hero .hero-lead{color:#e4f6f3;font-size:clamp(20px,2.6vw,28px);margin-bottom:24px}
.poster{grid-column:2;grid-row:1;position:relative;width:100%;aspect-ratio:896/1195;max-height:min(84vh,760px);justify-self:center;border-radius:6px;overflow:hidden;background:#000;box-shadow:0 0 0 1px rgba(25,211,197,.4),0 0 60px rgba(25,211,197,.18),0 40px 80px -20px #000}
.poster canvas,.poster-img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.poster canvas{z-index:2}
@media(max-width:860px){.poster-hero{grid-template-columns:1fr;padding-top:40px}.poster{grid-column:1;grid-row:1;max-width:420px;max-height:none}.poster-hero .hero-in{grid-column:1;grid-row:2;margin:0 auto}}

/* shop + wallet */
.shop-bal{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0}
.shop-bal small{opacity:.7}.shop-bal b,.wal-bal{font-size:1.9rem;color:#2ee6d0}
.shop-item{margin:16px 0}.shop-list{margin:6px 0 14px;padding-left:20px;line-height:1.6}
.shop-h{display:block;opacity:.7}.shop-note{display:block;margin-top:10px;opacity:.7}
.shop-buy{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.shop-buy select,.adm-form input{background:#0b0f10;color:inherit;border:1px solid #1f3a38;border-radius:8px;padding:10px 12px;font:inherit}
.me-wallet{margin:16px 0}.me-wallet h4{margin:16px 0 6px}
.sub-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:8px 0;border-bottom:1px solid #1f3a38}
.wal-log{list-style:none;padding:0;margin:0;font-size:.9rem;opacity:.85;line-height:1.7}
.adm-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.adm-form h4{flex-basis:100%}
.adm-form .me-note{flex-basis:100%}
.nav{gap:16px!important}
.shop-bal{padding:18px 22px}.shop-bal .btn{margin-left:auto}
.shop-item,.me-wallet{padding-bottom:26px}

/* pill nav + shop grid */
.top .nav{background:rgba(8,18,18,.72);border:1px solid #17302e;border-radius:999px;padding:5px;gap:2px!important;backdrop-filter:blur(8px)}
.top .nav a{padding:8px 14px;border-radius:999px;transition:background .2s,color .2s}
.top .nav a:hover{background:rgba(46,230,208,.1)}
.top .nav a[aria-current="page"],.top .nav a.on{background:rgba(46,230,208,.16);color:#2ee6d0}
.shop-bal-pill{display:flex;align-items:center;gap:10px;margin-left:auto}.shop-bal-pill small{opacity:.7}.shop-bal-pill b{font-size:1.6rem;color:#2ee6d0}
.shoppage .s-head{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.shop-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:18px 0 6px}
.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{background:#0b1514;color:inherit;border:1px solid #17302e;border-radius:999px;padding:8px 16px;font:inherit;cursor:pointer}
.chip.on{background:rgba(46,230,208,.16);border-color:#2ee6d0;color:#2ee6d0}
.srv-pick{display:flex;gap:8px;align-items:center}.srv-pick select{background:#0b1514;color:inherit;border:1px solid #17302e;border-radius:10px;padding:9px 12px;font:inherit}
.shop-note-top{opacity:.7;margin:6px 0 16px;font-size:.92rem}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.pcard{--rc:#6b7b79;background:linear-gradient(180deg,#0d1918,#081211);border:1px solid #17302e;border-bottom:3px solid var(--rc);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px}
.pcard.r-uncommon{--rc:#3ecf8e}.pcard.r-rare{--rc:#3b9eff}.pcard.r-epic{--rc:#a76bff}.pcard.r-legendary{--rc:#f2c14e}
.pcard .pic{position:relative;height:120px;border-radius:10px;background:radial-gradient(circle at 50% 40%,#12302d,#07100f);display:flex;align-items:center;justify-content:center;overflow:hidden}
.pcard .pic img{max-width:100%;max-height:100%;object-fit:contain}.pic-l{font-size:2.2rem;color:var(--rc);opacity:.7;letter-spacing:.05em}
.rtag{position:absolute;left:8px;top:8px;font-style:normal;font-size:.72rem;padding:3px 8px;border-radius:999px;background:rgba(0,0,0,.55);color:var(--rc)}
.pcard h3{margin:0;font-size:1.02rem}.pcard details{font-size:.88rem;opacity:.9}.pcard summary{cursor:pointer;color:#2ee6d0}
.pcard ul{margin:6px 0;padding-left:18px;line-height:1.5}
.pfoot{margin-top:auto;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.pfoot b{color:var(--rc)}
.shop-msg{margin-top:14px}
@media (max-width:760px){.top .nav{border-radius:14px;flex-wrap:wrap}}
.pcard,.pcard h3,.pcard details,.chip,.srv-pick select,.shop-bar{color:#e6f4f2}
.shop-note-top{color:inherit}
.top .nav a{white-space:nowrap;font-size:.82rem;padding:8px 10px;letter-spacing:.03em}
.srv-pick span{color:inherit}
.srv-pick span{color:#0b1514}[data-theme=night] .srv-pick span{color:#e6f4f2}
.r-ip{display:flex;align-items:center;gap:8px;margin:4px 0 0;font-size:.85rem;flex-wrap:wrap}.r-ip span{opacity:.6}.r-ip code{color:#2ee6d0;font-family:ui-monospace,Consolas,monospace}
.ipcopy{background:rgba(46,230,208,.14);color:#2ee6d0;border:1px solid #1f6f66;border-radius:8px;padding:3px 10px;font:inherit;font-size:.8rem;cursor:pointer}
.ipcopy:hover{background:rgba(46,230,208,.26)}
.ccard .cdesc{margin:0;opacity:.8;font-size:.88rem}
.loot{list-style:none;padding:0;margin:6px 0;display:grid;gap:3px}.loot li{display:flex;justify-content:space-between;gap:8px;border-left:3px solid #6b7b79;padding-left:8px}.loot i{font-style:normal;opacity:.7}
.loot .lr-uncommon{border-color:#3ecf8e}.loot .lr-rare{border-color:#3b9eff}.loot .lr-epic{border-color:#a76bff}.loot .lr-legendary{border-color:#f2c14e}
.crate-win{--rc:#6b7b79;margin:16px 0;border:1px solid var(--rc);text-align:center;animation:winpop .5s ease}.crate-win h3{font-size:1.6rem;color:var(--rc);margin:6px 0}
.crate-win.r-uncommon{--rc:#3ecf8e}.crate-win.r-rare{--rc:#3b9eff}.crate-win.r-epic{--rc:#a76bff}.crate-win.r-legendary{--rc:#f2c14e}
@keyframes winpop{from{transform:scale(.92);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.crate-win{animation:none}}
