/* MEME COIN WARS v1.5: independent stylesheet written for this module (PXWARS look: black, toxic yellow-green, mono, thin borders). */
:root { --toxic:#D4FF00; --green:#00FF00; --blood:#FF0033; --bg:#000; --panel:#0a0a0a; --line:#2c2c2c; --mute:#9a9a9a; --dim:#6a6a6a; --cl:#00D447; --cr:#FF9900; }
* { box-sizing:border-box; border-radius:0; }
html,body { margin:0; background:var(--bg); color:#fff; }
body { font-family:'JetBrains Mono',ui-monospace,'Cascadia Mono',Consolas,'Courier New',monospace; font-size:13px; line-height:1.45; text-transform:uppercase; letter-spacing:.02em; -webkit-text-size-adjust:100%; }
a { color:inherit; } button { font:inherit; text-transform:inherit; letter-spacing:inherit; cursor:pointer; }
svg { display:block; }
.wrap { max-width:1240px; margin:0 auto; padding:0 16px; }
.pix { font-weight:800; letter-spacing:.05em; text-shadow:0 3px 0 #000, 0 0 22px rgba(212,255,0,.18); }
.pix em { font-style:normal; color:var(--toxic); }

/* header */
.hdr { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 18px; border-bottom:1px solid var(--toxic); }
.brand { font-weight:800; font-size:20px; text-decoration:none; } .brand b { color:var(--blood); }
.nav { display:flex; font-size:12px; font-weight:700; }
.nav a { padding:9px 12px; border:1px solid var(--line); text-decoration:none; white-space:nowrap; display:flex; gap:8px; align-items:center; }
.nav a + a { margin-left:-1px; } .nav a.on { background:var(--toxic); color:#000; border-color:var(--toxic); }
.tag { font-size:9px; padding:1px 6px; border:1px solid currentColor; } .tag.live { color:var(--green); } .tag.free { color:#000; }
.demo-bar { background:#1f1a00; color:#ffcc00; border-bottom:1px solid #4d4000; text-align:center; font-size:10.5px; padding:6px 14px; letter-spacing:.04em; }
.demo-bar b { background:#ffcc00; color:#000; padding:0 5px; margin-right:6px; }

/* buttons, badges */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; text-align:center; text-decoration:none; background:var(--toxic); color:#000; border:2px solid var(--toxic); font-weight:800; padding:12px 18px; font-size:14px; min-height:48px; transition:transform .08s, box-shadow .15s; }
.btn:hover { box-shadow:0 0 0 3px rgba(212,255,0,.25), 0 0 24px rgba(212,255,0,.35); } .btn:active { transform:translateY(1px); }
.btn.ghost { background:transparent; color:var(--toxic); } .btn.ghost:hover { background:rgba(212,255,0,.08); }
.btn.dim, .btn[disabled] { background:#161616; color:var(--dim); border-color:#2c2c2c; cursor:not-allowed; box-shadow:none; }
.btn.big { font-size:18px; min-height:58px; width:100%; }
.badge { display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:800; padding:2px 7px; border:1px solid var(--line); color:var(--mute); white-space:nowrap; }
.badge.live { color:#000; background:var(--green); border-color:var(--green); } .badge.upcoming { color:var(--toxic); border-color:var(--toxic); }
.badge.paused { color:#000; background:#ffcc00; border-color:#ffcc00; } .badge.finished, .badge.stopped { color:var(--mute); }
.badge.demo { color:#ffcc00; border-color:#665500; background:#241d00; } .badge.verified { color:#00ccff; border-color:#00ccff; } .badge.featured { color:#000; background:var(--toxic); border-color:var(--toxic); }
.dot { width:7px; height:7px; background:#000; display:inline-block; animation:blink 1.3s infinite; }
@keyframes blink { 50% { opacity:.35; } }
.panel { background:var(--panel); border:1px solid var(--line); padding:14px; } .panel.hot { border-color:var(--toxic); box-shadow:0 0 24px rgba(212,255,0,.12); }
.ph { display:flex; align-items:center; gap:8px; font-weight:800; font-size:12px; letter-spacing:.12em; color:var(--toxic); margin:0 0 10px; } .ph .sp { flex:1; }
h2.sec { font-size:15px; letter-spacing:.1em; margin:28px 0 10px; display:flex; align-items:center; gap:10px; } h2.sec .cnt { margin-left:auto; font-size:10px; color:var(--toxic); border:1px solid var(--toxic); padding:2px 8px; }
.note { font-size:10.5px; color:var(--dim); margin-top:8px; } .note.w { color:#ffcc00; }
.row { display:flex; justify-content:space-between; gap:8px; font-size:11px; color:var(--mute); flex-wrap:wrap; } .row b { color:#fff; }
footer { border-top:1px solid var(--line); margin-top:36px; padding:16px 16px 36px; text-align:center; color:var(--dim); font-size:10px; } footer a { color:var(--mute); }
.empty { color:var(--dim); padding:18px; text-align:center; border:1px dashed var(--line); }
.bar { display:flex; height:12px; background:#111; border:1px solid var(--line); } .bar i { display:block; height:100%; transition:width .4s; }

/* emblem + hero art */
.emblem { flex:none; display:grid; place-items:center; font-weight:800; color:#000; border:2px solid #000; outline:1px solid var(--line); overflow:hidden; }
.emblem.art svg { image-rendering:pixelated; }
.hero-art { display:flex; align-items:flex-end; justify-content:center; height:100%; min-height:0; filter:drop-shadow(0 0 22px var(--c)); } .hero-art svg { height:100%; width:auto; max-width:100%; }
.hero-art.r svg { transform:scaleX(-1); } .hero-art.plain .shield { width:120px; height:120px; display:grid; place-items:center; border:3px solid var(--c); color:var(--c); font-size:28px; font-weight:800; }
.army { display:flex; align-items:center; gap:10px; min-width:0; } .army .nm { font-weight:800; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .army .sub { font-size:10px; color:var(--mute); }

/* ---- HUB ---- */
.hero { text-align:center; padding:22px 0 8px; } .hero h1 { margin:0; font-size:clamp(32px,6.6vw,64px); line-height:1.02; }
.hero .tagline { margin:8px 0 0; color:var(--toxic); font-weight:800; font-size:clamp(13px,3.2vw,19px); letter-spacing:.08em; } .hero p { margin:6px 0 0; color:var(--mute); font-size:12px; }
.feat { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,440px) minmax(0,1fr); gap:0; border:2px solid var(--toxic); margin-top:34px; padding:18px 16px 16px;
  background:radial-gradient(ellipse at 12% 55%, color-mix(in srgb, var(--cl) 28%, transparent), transparent 55%), radial-gradient(ellipse at 88% 55%, color-mix(in srgb, var(--cr) 28%, transparent), transparent 55%), #050505;
  box-shadow:0 0 34px rgba(212,255,0,.18), inset 0 0 40px rgba(0,0,0,.6); }
.feat-tag { position:absolute; left:18px; top:-1px; transform:translateY(-50%); background:var(--toxic); color:#000; font-weight:800; font-size:12px; padding:6px 14px; letter-spacing:.1em; z-index:2; }
.feat .art { min-height:200px; max-height:260px; display:flex; align-items:flex-end; padding:6px 0; } .feat .art .hero-art { width:100%; }
.feat .mid { text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; padding:0 8px; }
.pill { display:inline-flex; gap:6px; align-items:center; font-size:10px; border:1px solid var(--mute); padding:3px 10px; background:#000; }
.feat .vsline { font-size:clamp(26px,3.6vw,46px); font-weight:800; line-height:1; display:flex; gap:14px; align-items:baseline; justify-content:center; flex-wrap:wrap; } .feat .vsline .v { color:var(--blood); font-size:.7em; }
.feat .full { font-size:11px; display:flex; justify-content:space-between; width:100%; }
.scoreboxes { display:grid; grid-template-columns:1fr 1fr; gap:8px; width:100%; } .scorebox { border:2px solid; background:#000; font-size:clamp(20px,2.6vw,30px); font-weight:800; padding:6px 4px; font-variant-numeric:tabular-nums; }
.pctbar { display:flex; width:100%; height:20px; border:1px solid var(--line); font-size:10px; font-weight:800; color:#000; } .pctbar i { display:flex; align-items:center; padding:0 6px; transition:width .5s; white-space:nowrap; overflow:hidden; }
.feat .meta { display:flex; flex-direction:column; justify-content:center; align-items:flex-end; text-align:right; gap:6px; padding-left:8px; } .meta .big { font-size:clamp(30px,3.8vw,48px); font-weight:800; color:var(--toxic); line-height:1; font-variant-numeric:tabular-nums; }
.meta .it { display:flex; gap:8px; align-items:center; justify-content:flex-end; font-size:12px; }
.feat .rightcol { display:flex; flex-direction:column; min-width:0; } .feat .rightcol .art { flex:1; } .feat .rightcol .meta { padding:6px 0 0; }
.cols2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.blist { border:1px solid var(--toxic); background:var(--panel); } .blist a.it { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto 18px; align-items:center; gap:12px; padding:10px 14px; text-decoration:none; border-bottom:1px solid var(--line); min-height:56px; } .blist a.it:last-child { border-bottom:0; } .blist a.it:hover { background:rgba(212,255,0,.07); }
.blist .vs { font-weight:800; font-size:14px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .blist .vs i { color:var(--blood); font-style:normal; font-size:11px; }
.blist .stat { display:flex; gap:6px; align-items:center; font-size:12px; color:var(--mute); white-space:nowrap; } .blist .stat b { color:#fff; }
.emptyrow { padding:18px; color:var(--dim); text-align:center; }
.rescards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; } .rescard { border:1px solid var(--green); background:var(--panel); padding:12px; display:grid; gap:8px; text-decoration:none; position:relative; } .rescard:hover { box-shadow:0 0 18px rgba(0,255,0,.2); }
.rescard .top { display:flex; align-items:center; gap:10px; } .rescard .vsn { font-weight:800; font-size:14px; } .rescard .vsn i { color:var(--blood); font-style:normal; font-size:10px; margin:0 4px; }
.rescard .sc { font-size:21px; font-weight:800; color:var(--toxic); font-variant-numeric:tabular-nums; } .rescard .sc span { color:var(--mute); }
.rescard .res { margin-left:auto; background:var(--green); color:#000; font-weight:800; font-size:12px; padding:5px 12px; transform:skewX(-10deg); } .rescard .res.draw { background:#ffcc00; } .rescard .res.stp { background:#444; color:#ddd; }
.rescard .foot { display:flex; justify-content:space-between; font-size:11px; color:var(--mute); gap:6px; flex-wrap:wrap; }
.more { display:block; width:100%; margin-top:10px; }
.cta2 { display:grid; grid-template-columns:1.15fr 1fr; gap:14px; margin-top:26px; } .cta2 .btn { justify-content:space-between; min-height:70px; font-size:clamp(14px,2vw,22px); padding:12px 22px; } .cta2 small { display:block; font-size:10px; font-weight:700; opacity:.8; letter-spacing:.06em; }
.cta2 .l { text-align:left; display:flex; gap:12px; align-items:center; }

/* ---- ARENA ---- */
.banner { display:grid; grid-template-columns:1fr minmax(260px,520px) 1fr; align-items:end; height:150px; overflow:hidden; margin-top:12px; border-bottom:1px solid var(--line); background:radial-gradient(ellipse at 10% 100%, color-mix(in srgb, var(--cl) 30%, transparent), transparent 60%), radial-gradient(ellipse at 90% 100%, color-mix(in srgb, var(--cr) 30%, transparent), transparent 60%); }
.banner .a { height:150px; padding-top:6px; display:flex; min-height:0; overflow:hidden; } .banner .a .hero-art { width:100%; } .banner .mid { text-align:center; padding-bottom:10px; } .banner .vs { font-size:clamp(24px,4vw,44px); font-weight:800; display:flex; justify-content:center; gap:16px; align-items:baseline; } .banner .vs i { color:var(--blood); font-style:normal; font-size:.7em; }
.stage { display:grid; grid-template-columns:minmax(230px,300px) minmax(0,1fr) minmax(230px,300px); gap:14px; align-items:start; margin-top:14px; } .colL,.colR { display:flex; flex-direction:column; gap:12px; min-width:0; }
.tcard { border:2px solid var(--tc); background:var(--panel); padding:12px; box-shadow:inset 0 0 28px color-mix(in srgb, var(--tc) 12%, transparent); } .tcard.mine { box-shadow:0 0 0 2px var(--toxic), 0 0 22px rgba(212,255,0,.25); }
.tcard .hd { display:flex; gap:10px; align-items:center; } .tcard .nm { font-weight:800; font-size:17px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .tcard .cm { font-size:10px; color:var(--mute); }
.tcard .sc { font-size:32px; font-weight:800; color:var(--tc); font-variant-numeric:tabular-nums; margin-top:10px; display:flex; align-items:baseline; gap:8px; } .tcard .sc small { font-size:11px; color:var(--mute); font-weight:400; }
.tcard .fi { display:flex; gap:8px; align-items:center; font-size:12px; margin:6px 0; } .tcard .bar { height:10px; } .tcard .bar i { background:var(--tc); }
.pulse { animation:pulse .5s ease-out; } @keyframes pulse { 0% { transform:scale(1.18); filter:brightness(1.6); } 100% { transform:scale(1); filter:none; } }
.feed { list-style:none; margin:0; padding:0; display:grid; gap:2px; font-size:11.5px; max-height:210px; overflow:auto; } .feed li { display:grid; grid-template-columns:12px 1fr auto; gap:8px; align-items:center; padding:5px 2px; border-bottom:1px solid #1a1a1a; } .feed li i { width:10px; height:10px; display:block; } .feed li span { color:var(--dim); font-size:10px; }
.feed li.enter { animation:slide .35s ease-out; } @keyframes slide { from { opacity:0; transform:translateY(-6px); } }
.info { display:grid; gap:0; } .info > div > span { display:flex; gap:8px; align-items:center; } .info > div { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid #1a1a1a; font-size:12px; color:var(--mute); } .info b { color:#fff; text-align:right; }
.howto { margin:0; padding:0; list-style:none; display:grid; gap:6px; font-size:11.5px; counter-reset:h; } .howto li { counter-increment:h; display:flex; gap:10px; align-items:center; } .howto li::before { content:counter(h); width:20px; height:20px; display:grid; place-items:center; border:1px solid var(--toxic); color:var(--toxic); font-size:10px; flex:none; }
.centerp { border:2px solid var(--toxic); background:#050505; padding:10px; box-shadow:0 0 28px rgba(212,255,0,.1); min-width:0; }
.chead { display:flex; align-items:center; gap:8px; font-size:11px; flex-wrap:wrap; margin-bottom:8px; } .chead .sp { flex:1; }
.scorerow { display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:10px; margin-bottom:6px; } .scorerow .s { font-size:clamp(26px,4vw,40px); font-weight:800; font-variant-numeric:tabular-nums; line-height:1; } .scorerow .s.r { text-align:right; }
.scorerow .tm { text-align:center; } .scorerow .tm small { display:block; font-size:10px; color:var(--mute); letter-spacing:.14em; } .timer { font-size:clamp(26px,4vw,38px); font-weight:800; font-variant-numeric:tabular-nums; line-height:1; }
.scorerow .p { font-size:11px; color:var(--mute); } .scorerow .p.r { text-align:right; }
.board { position:relative; width:100%; aspect-ratio:1; border:1px solid #444; background:#070707; touch-action:none; user-select:none; -webkit-user-select:none; margin-top:8px; }
.board canvas { position:absolute; inset:0; width:100%; height:100%; image-rendering:pixelated; image-rendering:crisp-edges; } .board .fx { pointer-events:none; }
.board .cur { position:absolute; pointer-events:none; border:2px solid #fff; box-shadow:0 0 0 1px #000, 0 0 14px #fff; display:none; z-index:2; }
.board.canplay { cursor:crosshair; } .board.dim canvas#cv { filter:saturate(.7) brightness(.8); }
.veil { position:absolute; inset:0; display:none; place-items:center; background:rgba(0,0,0,.74); text-align:center; padding:14px; z-index:3; } .veil.on { display:grid; } .veil .big { font-size:clamp(18px,4vw,26px); font-weight:800; color:var(--toxic); } .veil .timer { color:var(--toxic); font-size:clamp(30px,7vw,48px); margin:6px 0; }
.pick { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; } .pick button { display:flex; gap:10px; align-items:center; justify-content:center; padding:8px 10px; border:2px solid var(--tc); font-weight:800; font-size:14px; background:#000; color:#fff; min-height:64px; } .pick button:hover { background:color-mix(in srgb, var(--tc) 22%, #000); } .pick button.sel { background:var(--tc); color:#000; }
.pickhd { text-align:center; font-size:11px; letter-spacing:.14em; margin-top:12px; color:var(--mute); display:flex; align-items:center; gap:10px; } .pickhd::before,.pickhd::after { content:''; flex:1; height:1px; background:var(--line); }
.energy { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; margin:8px 0; } .energy i { height:18px; background:#141414; border:1px solid #2a2a2a; } .energy i.on { background:var(--toxic); border-color:var(--toxic); box-shadow:0 0 8px rgba(212,255,0,.4); } .energy i.part { background:linear-gradient(to right,var(--toxic) var(--p),#141414 var(--p)); }
.acts { font-size:34px; font-weight:800; color:var(--green); font-variant-numeric:tabular-nums; } .acts small { font-size:18px; color:var(--mute); }
.hint { color:var(--toxic); font-size:11.5px; text-align:center; min-height:18px; margin-top:8px; font-weight:700; }
.toast { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); background:#111; border:1px solid var(--toxic); padding:9px 16px; font-size:12px; z-index:20; display:none; max-width:92vw; text-align:center; } .toast.on { display:block; }
.mobteams { display:none; }
.actionsbar { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; } .actionsbar .btn { flex:1; }

/* ---- RESULT ---- */
.rs { margin-top:12px; }
.rs-hero { overflow:hidden; position:relative; display:grid; grid-template-columns:1fr minmax(240px,420px) 1fr; align-items:end; min-height:300px; border-bottom:1px solid var(--line); background:radial-gradient(ellipse at 22% 60%, color-mix(in srgb, var(--wc) 34%, transparent), transparent 60%), #030303; }
.rs-hero .a { height:290px; display:flex; align-items:flex-end; } .rs-hero .a.lose { opacity:.55; filter:grayscale(.45); transform:rotate(-3deg); } .rs-hero .a .hero-art { width:100%; }
.rs-hero .mid { text-align:center; padding:10px 0 18px; } .complete { display:inline-block; white-space:nowrap; border:2px solid var(--toxic); color:var(--toxic); font-weight:800; font-size:clamp(11px,2vw,22px); padding:5px 16px; letter-spacing:.12em; transform:skewX(-8deg); background:#000; }
.winner small { display:block; font-size:clamp(12px,2vw,18px); letter-spacing:.2em; color:var(--toxic); margin-top:10px; } .winner .w { font-size:clamp(40px,8vw,80px); font-weight:800; line-height:1; margin:2px 0 6px; color:#fff; text-shadow:0 0 28px var(--wc); }
.strip { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; border:2px solid var(--toxic); background:#050505; padding:10px 18px; margin-top:-1px; clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,14px 100%,0 50%); } .strip .t { display:flex; gap:12px; align-items:center; } .strip .t.r { flex-direction:row-reverse; text-align:right; } .strip .n { font-size:clamp(26px,5vw,48px); font-weight:800; font-variant-numeric:tabular-nums; }
.rs3 { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:12px; margin-top:12px; } .minimap { width:210px; height:210px; flex:none; align-self:flex-start; image-rendering:pixelated; border:1px solid #444; background:#070707; }
.legend { display:grid; gap:6px; font-size:12px; align-content:center; } .legend div { display:flex; gap:8px; align-items:center; } .legend i { width:12px; height:12px; display:block; }
.statrow { display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid #1a1a1a; font-size:12px; color:var(--mute); } .statrow:last-child { border:0; } .statrow b { color:var(--toxic); text-align:right; }
.permanent { display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center; margin-top:12px; padding:16px 20px; border:1px solid var(--toxic); background:linear-gradient(90deg,#0d1100,#050505); } .permanent h3 { margin:0; font-size:clamp(20px,3.6vw,34px); } .permanent h3 em { font-style:normal; color:var(--toxic); } .permanent p { margin:4px 0 0; color:var(--mute); font-size:12px; } .permanent .fine { font-size:10.5px; color:var(--dim); margin-top:8px; }

/* ---- CREATE ---- */
.chero { position:relative; display:grid; grid-template-columns:1fr minmax(260px,640px) 1fr; align-items:end; min-height:250px; border-bottom:1px solid var(--line); background:radial-gradient(ellipse at 8% 60%, color-mix(in srgb, var(--cl) 30%, transparent), transparent 55%), radial-gradient(ellipse at 92% 60%, color-mix(in srgb, #ff3355 24%, transparent), transparent 55%); }
.chero .a { height:230px; display:flex; align-items:flex-end; } .chero .a .hero-art { width:100%; } .chero .mid { text-align:center; padding:22px 0; } .chero h1 { margin:0; font-size:clamp(30px,6vw,60px); line-height:1.04; } .chero .tl { color:var(--toxic); font-weight:800; font-size:clamp(14px,2.6vw,24px); margin:8px 0; letter-spacing:.08em; } .chero p { margin:6px 0; color:#ddd; font-size:13px; text-transform:none; }
.cform { display:grid; grid-template-columns:1.15fr 1fr; gap:16px; margin-top:20px; } .box { border:2px solid var(--toxic); background:#050505; padding:16px; box-shadow:0 0 22px rgba(212,255,0,.1); }
.field { display:flex; align-items:center; gap:10px; border:2px solid var(--toxic); background:#000; padding:0 12px; min-height:54px; } .field input { flex:1; min-width:0; background:transparent; border:0; outline:0; color:#fff; font:inherit; font-size:14px; text-transform:none; letter-spacing:0; padding:12px 0; } .field.bad { border-color:#ff5566; } .field.ok { border-color:var(--green); }
.fnote { font-size:11.5px; color:var(--mute); margin-top:10px; text-transform:none; line-height:1.5; } .fnote.ok { color:var(--green); } .fnote.bad { color:#ff7788; }
.preview { display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:center; } .shieldbox { width:130px; height:140px; padding:6px; filter:drop-shadow(0 0 14px rgba(212,255,0,.35)); } .preview .tk { font-size:26px; font-weight:800; } .preview .chip { display:inline-block; font-size:12px; background:#2a2a2a; color:#bbb; padding:3px 12px; margin:6px 6px 0 0; border:1px solid #3a3a3a; } .preview .chip.u { background:transparent; border-color:#888; color:#ddd; }
.bigoff { margin-top:14px; width:100%; min-height:60px; font-size:clamp(14px,2.4vw,20px); }
.steps3 { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:10px; align-items:center; margin-top:16px; } .steps3 .s { font-size:15px; display:flex; gap:12px; align-items:center; justify-content:center; padding:14px; border:2px solid var(--toxic); color:var(--toxic); font-weight:800; transform:skewX(-9deg); background:#050a00; } .steps3 .s > * { transform:skewX(9deg); } .steps3 .ar { color:var(--toxic); font-size:22px; }
details.how { margin-top:16px; border:2px solid var(--toxic); background:#050505; } details.how summary { padding:16px 18px; font-weight:800; font-size:16px; cursor:pointer; display:flex; gap:12px; align-items:center; list-style:none; } details.how summary::-webkit-details-marker { display:none; } details.how summary::after { content:'▾'; margin-left:auto; color:var(--toxic); } details.how[open] summary::after { content:'▴'; }
.hbody { padding:0 18px 18px; display:grid; gap:14px; } .hbody ol { margin:0; padding:0; list-style:none; display:grid; gap:8px; counter-reset:h; } .hbody li { counter-increment:h; display:flex; gap:10px; font-size:11.5px; color:#ccc; text-transform:none; } .hbody li::before { content:counter(h); flex:none; width:22px; height:22px; display:grid; place-items:center; background:var(--toxic); color:#000; font-weight:800; font-size:11px; }
.labels { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; } .labels .panel p { margin:8px 0 0; font-size:11px; color:var(--mute); text-transform:none; }

/* ---- ARMY ---- */
.prof { display:grid; grid-template-columns:minmax(300px,420px) 1fr; gap:16px; margin-top:16px; align-items:start; }
.pcard { border:2px solid var(--toxic); background:radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--pc) 26%, transparent), transparent 70%), #050505; padding:14px; text-align:center; } .pcard .art { height:260px; display:flex; justify-content:center; } .pcard h1 { margin:8px 0 2px; font-size:clamp(28px,5vw,44px); } .pcard .sub { color:var(--mute); font-size:12px; } .pcard .bg { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:10px; }
.rec { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:14px; } .rec div { border:1px solid var(--line); background:#000; padding:8px 4px; } .rec b { display:block; font-size:24px; color:var(--toxic); font-variant-numeric:tabular-nums; } .rec small { font-size:10px; color:var(--mute); }
.hist .it { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #1a1a1a; text-decoration:none; font-size:12px; } .hist .it:last-child { border:0; } .hist .res { font-weight:800; font-size:11px; padding:3px 10px; background:#333; } .hist .res.win { background:var(--green); color:#000; } .hist .res.loss { background:#ff3355; } .hist .res.draw { background:#ffcc00; color:#000; }
.profcol { display:grid; gap:14px; }

/* ---- responsive ---- */
@media (max-width:1000px) {
  .stage { grid-template-columns:1fr; } .colL,.colR { display:contents; }
  .stage .tcard.desk { display:none; } .mobteams { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; } .mobteams .tcard { padding:8px; } .mobteams .tcard .sc { font-size:24px; margin-top:4px; } .mobteams .tcard .fi, .mobteams .tcard .bar, .mobteams .tcard .cm { display:none; }
  .o2 { order:2; } .o3 { order:3; } .o4 { order:4; } .o5 { order:5; } .o6 { order:6; } .centerp { order:1; }
  .feat { grid-template-columns:1fr 1fr; grid-template-areas:"al ar" "mid mid"; row-gap:10px; padding-top:22px; } .feat .art { min-height:130px; max-height:150px; } .feat .art.al { grid-area:al; } .feat .rightcol { display:contents; } .feat .rightcol .art { grid-area:ar; } .feat .mid { grid-area:mid; } .feat .rightcol .meta { grid-column:1/-1; order:9; flex-direction:row; justify-content:space-between; align-items:center; text-align:left; padding:8px 0 0; flex-wrap:wrap; gap:10px; }
  .feat .meta .it { justify-content:flex-start; } .cols2 { grid-template-columns:1fr; } .rescards { grid-template-columns:1fr; } .cta2 { grid-template-columns:1fr; }
  .banner { grid-template-columns:90px 1fr 90px; height:110px; } .banner .a { height:110px; } .rs3 { grid-template-columns:1fr; } .rs-hero { grid-template-columns:90px 1fr 90px; min-height:240px; } .rs-hero .a { height:130px; }
  .cform { grid-template-columns:1fr; } .chero { grid-template-columns:70px 1fr 70px; } .chero .a { height:120px; } .steps3 { grid-template-columns:1fr; } .steps3 .ar { display:none; } .labels { grid-template-columns:1fr; } .prof { grid-template-columns:1fr; }
}
@media (max-width:520px) {
  .wrap { padding:0 10px; } .hdr { padding:8px 10px; flex-wrap:wrap; } .brand { font-size:17px; } .nav { font-size:11px; } .nav a { padding:8px 9px; } .permanent { grid-template-columns:1fr; } .strip { grid-template-columns:1fr auto 1fr; gap:6px; padding:8px 12px; } .strip .t .nm { display:none; }
  .blist a.it { grid-template-columns:auto minmax(0,1fr) 18px; row-gap:2px; } .blist a.it .stat:nth-of-type(1) { display:none; } .scorerow { gap:6px; } .pick button { font-size:12px; padding:6px; } .pick button .emblem { display:none; } .rec b { font-size:20px; } .chero p { font-size:12px; }
  .banner { grid-template-columns:70px 1fr 70px; } .preview { grid-template-columns:1fr; justify-items:center; text-align:center; } .field input { font-size:12px; }
}
@media (max-width:380px) { .nav { font-size:10px; } .nav a { padding:7px 7px; gap:5px; } .feat .vsline { font-size:24px; } .btn.big { font-size:16px; } }
@media (prefers-reduced-motion: reduce) { * { animation:none !important; transition:none !important; } }

/* ======== ART PACK v1.0 INTEGRATION (images are in ../art/, built by scripts/build-art.mjs) ======== */
.hero-art.photo { filter:none; align-items:flex-end; }
.hero-art.photo img.warrior { height:100%; width:auto; max-width:100%; object-fit:contain; filter:drop-shadow(0 6px 18px rgba(0,0,0,.7)) drop-shadow(0 0 22px color-mix(in srgb, var(--c) 45%, transparent)); }
.emblem.art.photo img { width:100%; height:100%; object-fit:cover; display:block; }
.vsfx { mix-blend-mode:screen; height:96px; width:auto; display:block; }
.fxart { mix-blend-mode:screen; display:block; margin:0 auto; max-width:100%; height:auto; }
.herobg { position:relative; isolation:isolate; margin:0 calc(50% - 50vw); padding:46px 16px 40px; background:#000 url(../art/hero_bg.webp) center bottom/cover no-repeat; image-rendering:pixelated; }
.herobg::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(#000 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,.45) 70%, #000 100%); }
.herobg > * { image-rendering:auto; }
.herobg h1 { text-shadow:0 4px 0 #000, 0 0 30px rgba(0,0,0,.9), 0 0 24px rgba(212,255,0,.25); }

/* featured battle: big rivals, arena texture, VS burst */
.feat::before { content:''; position:absolute; inset:0; z-index:0; background:url(../art/arena_texture.webp) center/cover; opacity:.5; pointer-events:none; }
.feat > *:not(.feat-tag) { position:relative; } .feat-tag { z-index:3; }
.feat { padding-top:26px; } .feat .art { min-height:310px; max-height:none; overflow:visible; align-items:flex-end; } .feat .art .hero-art { height:360px; width:100%; margin-top:-70px; }
.feat .art .hero-art.l { justify-content:flex-start; } .feat .art .hero-art.r { justify-content:flex-end; }
.feat .vsline { gap:6px; flex-wrap:nowrap; } .feat .vsline .v { display:block; line-height:0; margin:-8px -6px -22px; } .feat .pill { margin-bottom:10px; }
.feat .rightcol .art { flex:1; }

/* arena banner */
.banner { height:210px; background:#000 url(../art/hero_bg.webp) center bottom/cover no-repeat; border:1px solid var(--line); border-bottom:2px solid var(--toxic); image-rendering:pixelated; position:relative; isolation:isolate; }
.banner::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.1) 50%, rgba(0,0,0,.4)); }
.banner .a { height:210px; padding-top:0; } .banner .a .hero-art.l { justify-content:flex-start; } .banner .a .hero-art.r { justify-content:flex-end; }
.banner .mid { image-rendering:auto; } .banner .vs { gap:4px; align-items:center; } .banner .vs i { line-height:0; margin:-6px -4px; } .banner .vs .vsfx { height:84px; }

/* create hero */
.chero { background:#000 url(../art/hero_bg.webp) center bottom/cover no-repeat; image-rendering:pixelated; isolation:isolate; min-height:300px; border:1px solid var(--line); border-bottom:2px solid var(--toxic); margin-top:12px; }
.chero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.2) 55%, rgba(0,0,0,.55)); } .chero > * { image-rendering:auto; }
.chero .a { height:300px; } .chero .a .hero-art.l { justify-content:flex-start; } .chero .a .hero-art.r { justify-content:flex-end; }

/* result hero */
.rs-hero { background:#000 url(../art/hero_bg.webp) center bottom/cover no-repeat; image-rendering:pixelated; isolation:isolate; min-height:340px; border:1px solid var(--line); }
.rs-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse at 50% 55%, rgba(0,0,0,.25), rgba(0,0,0,.72)); } .rs-hero > * { image-rendering:auto; }
.rs-hero .a { height:330px; position:relative; } .rs-hero .a .hero-art.l { justify-content:flex-start; } .rs-hero .a .hero-art.r { justify-content:flex-end; }
.rs-hero .a.lose { opacity:.8; transform:rotate(-2deg); } .rs-hero .a.lose img.warrior { filter:grayscale(.75) brightness(.7) drop-shadow(0 6px 14px #000); }
.rs-hero .a .trophy { position:absolute; bottom:-6px; width:clamp(90px,10vw,150px); height:auto; mix-blend-mode:screen; } .rs-hero .a:first-child .trophy { right:6%; } .rs-hero .a:last-child .trophy { left:6%; }
.winner .fxart.victory { width:min(320px,70%); margin-top:6px; } .winner .fxart.draw { width:min(250px,60%); margin-top:6px; } .winner .w { margin-top:-6px; }

/* army profile */
.pcard { position:relative; isolation:isolate; overflow:hidden; } .pcard::before { content:''; position:absolute; inset:0; z-index:-1; background:url(../art/arena_texture.webp) center/cover; opacity:.45; }
.pcard .art { height:340px; } .pcard .hero-art { width:100%; }

/* status badges: colours follow the art pack's badge set */
.badge.live { background:transparent; color:var(--green); border:1px solid var(--green); } .badge.live .dot { background:var(--green); }
.badge.upcoming { color:#ffcc00; border-color:#ffcc00; } .badge.paused { background:transparent; color:#ffd400; border-color:#ffd400; }
.badge.finished { color:#fff; border-color:#fff; } .badge.stopped { color:#bbb; border-color:#777; } .badge.waiting { color:#b36bff; border-color:#b36bff; }

@media (max-width:1000px) {
  .herobg { padding:30px 12px 26px; }
  .feat .art { min-height:170px; } .feat .art .hero-art { height:200px; margin-top:-34px; } .feat .vsline .v { margin:-20px -4px -18px; } .vsfx { height:70px; }
  .banner { height:140px; } .banner .a { height:140px; } .banner .vs .vsfx { height:54px; }
  .chero { min-height:210px; } .chero .a { height:170px; } .rs-hero { min-height:250px; } .rs-hero .a { height:210px; } .rs-hero .a .trophy { width:70px; }
  .pcard .art { height:280px; }
}
@media (max-width:520px) {
  .feat .art .hero-art { height:150px; margin-top:-26px; } .feat .art { min-height:120px; }
  .banner { height:112px; } .banner .a { height:112px; } .banner .vs { font-size:22px; } .banner .vs .vsfx { height:42px; }
  .chero .a { height:120px; } .rs-hero { min-height:200px; } .rs-hero .a { height:150px; }
}

.banner .mid { background:radial-gradient(ellipse at 50% 60%, rgba(0,0,0,.7), transparent 72%); } .banner .vs span { text-shadow:0 3px 0 #000, 0 0 14px #000; }
.herobg .tagline, .herobg p, .chero .tl, .chero p, .chero .note { text-shadow:0 2px 0 #000, 0 0 10px #000, 0 0 3px #000; } .herobg p, .chero p { color:#e6e6e6; }

@media (max-width:520px) { .rs-hero { grid-template-columns:118px 1fr 118px; min-height:230px; } .rs-hero .a { height:190px; } .rs-hero .a .trophy { width:58px; } .rs-hero .mid { padding-bottom:10px; } .complete { font-size:10px; padding:4px 8px; letter-spacing:.06em; } }
.dash { display:grid; gap:12px; } .brow { border:1px solid var(--line); background:var(--panel); padding:12px; } .brow:hover { border-color:#444; }
.brow .bh { display:flex; gap:12px; align-items:center; flex-wrap:wrap; } .brow .bh .nm { font-size:15px; } .brow .sub { font-size:11px; color:var(--mute); } .chips { margin-left:auto; display:flex; gap:6px; flex-wrap:wrap; }
.ctlrow { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; align-items:start; } .ctl1 .note { min-height:24px; margin-top:3px; }
select, input[type=datetime-local] { width:100%; background:#000; color:#fff; border:1px solid var(--line); padding:11px; font:inherit; min-height:44px; text-transform:none; } select:focus, input:focus { outline:2px solid var(--toxic); }
.chero.small { min-height:190px; }
@media (max-width:1000px) { #app .cform[style*="1fr 1fr 1fr"] { grid-template-columns:1fr !important; } .brow .chips { margin-left:0; } }
.btn.red { background:var(--blood); border-color:var(--blood); color:#fff; } .btn.red:hover { box-shadow:0 0 0 3px rgba(255,0,51,.3), 0 0 22px rgba(255,0,51,.4); } .btn.red[disabled] { background:#161616; border-color:#2c2c2c; color:var(--dim); box-shadow:none; }
.ctlgrid { display:grid; grid-template-columns:1fr; gap:8px; } .ctlgrid .note { min-height:20px; margin-top:4px; }
.badge.cancelled { color:#bbb; border-color:#777; }

/* Phase 2B challenge composer: two equal columns that can shrink, one column on phones */
.cform.cmp { margin-top:0; grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .cform.cmp > div { min-width:0; } .cform.cmp .sub { overflow-wrap:anywhere; }
@media (max-width:700px) { .cform.cmp { grid-template-columns:minmax(0,1fr); } }

/* Phase 2 QA: non-color territory cue, legend, organizer bar */
.mk2 { position:relative; } .mk2::after { content:''; position:absolute; left:4px; top:4px; width:4px; height:4px; background:rgba(0,0,0,.55); }
.legend2 { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; font-size:11px; color:var(--mute); margin:6px 0; } .legend2 span { display:flex; gap:6px; align-items:center; } .legend2 i { width:12px; height:12px; display:block; }
.orgbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:10px 0; padding:10px 12px; border:1px solid var(--toxic); background:#0a0f00; } .orgbar .btn { min-height:40px; font-size:12px; }

.arenabox { margin:8px 0; padding:10px; border:1px solid #333; background:#080808; } .arenabox.started { border-color:var(--toxic); box-shadow:0 0 18px rgba(212,255,0,.25); }
.ftab { width:100%; border-collapse:collapse; font-size:12px; } .ftab th, .ftab td { text-align:left; padding:6px 8px; border-bottom:1px solid #222; vertical-align:top; } .ftab th { color:var(--mute); font-size:10px; }
/* LINK STATS table scrolls inside its own box instead of widening the page */
.dash, .dash > .brow, .funnelbox, .funnelbox .panel { min-width:0; max-width:100%; } .dash { display:grid; grid-template-columns:minmax(0,1fr); } .funnelbox .panel > div[style*="overflow-x"] { max-width:100%; }
.kindrow { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; font-size:11px; color:var(--mute); margin:8px 0 0; } .kindrow span { text-transform:uppercase; }

@media (max-width:700px) { .ftab th, .ftab td { padding:6px 3px; font-size:11px; } .ftab th { font-size:9px; } }

/* Phase 2 polish: the ticker shield of a real-token army scales with its column (it used to be a fixed 120px box with 28px text, clipped in the 90-118px phone columns) */
.hero-art.plain { width:100%; display:flex; align-items:flex-end; justify-content:center; box-sizing:border-box; padding:0 4px; } .hero-art.plain.l { justify-content:flex-start; } .hero-art.plain.r { justify-content:flex-end; }
.hero-art.plain .shield { box-sizing:border-box; width:min(120px,100%); height:auto; aspect-ratio:1/1; max-width:100%; font-size:clamp(13px,5.6vw,28px); letter-spacing:0; overflow:hidden; text-align:center; line-height:1; }
@media (min-width:701px) { .hero-art.plain .shield { font-size:28px; } }

/* Phase 2 polish (root cause of the clipped "BONK"): on phones the hero's centre track could not shrink below the nowrap "BATTLE COMPLETE" badge, so the three
   tracks added up to wider than the hero and the right-hand army art was pushed out of its overflow:hidden box. The centre track now shrinks (minmax(0,1fr)) and the badge wraps. */
.rs-hero > .mid, .banner > .mid, .chero > .mid { min-width:0; }
@media (max-width:700px) { .rs-hero { grid-template-columns:minmax(0,112px) minmax(0,1fr) minmax(0,112px); } .banner { grid-template-columns:minmax(0,90px) minmax(0,1fr) minmax(0,90px); } .chero { grid-template-columns:minmax(0,70px) minmax(0,1fr) minmax(0,70px); } }
@media (max-width:520px) { .rs-hero { grid-template-columns:minmax(0,108px) minmax(0,1fr) minmax(0,108px); } .complete { white-space:normal; letter-spacing:.06em; padding:4px 6px; line-height:1.25; } .rs-hero .winner h3.w { overflow-wrap:anywhere; } }
/* home list rows on phones: long status text wraps on its own line instead of pushing the row (and the page) wider */
@media (max-width:700px) { .blist a.it > * { min-width:0; } .blist .stat { white-space:normal; } .blist a.it .stat.time { grid-column:1 / -1; } }
