*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}
html,body{
  background:#14102a;
  color:#fff;
  font:600 14px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;
  min-height:100%;
  overscroll-behavior:none;
}
body{
  background:#14102a radial-gradient(circle at 20% 0,#2a1a4a,#0d0d14 65%);
  padding:10px 8px 18px;
}
body.embed{
  padding:4px;
  height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
[hidden]{display:none!important}

.wrap{
  width:100%;
  max-width:480px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.embed .wrap{
  max-width:472px;
  height:100%;
  max-height:472px;
  gap:4px;
}
body.embed .top-bar,body.embed footer{display:none}

.top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
}
.top-bar a{color:#ffd400;text-decoration:none;font-weight:800}
.draft-pill{
  background:#ff2e63;
  color:#fff;
  font:900 10px/1 system-ui;
  padding:3px 7px;
  border-radius:10px;
  border:2px solid #000;
  letter-spacing:.4px;
}
.hdr{
  text-align:center;
}
.hdr h1{
  font:900 24px/1 Impact,"Arial Black",sans-serif;
  letter-spacing:1px;
  color:#fff;
  -webkit-text-stroke:1.2px #000;
  text-shadow:3px 3px 0 #ff2e63;
}
.hdr h1 span{color:#ffd400}
.hdr .sub{font-size:11px;color:#c8c2dc;margin-top:2px}
body.embed .hdr{display:none}

/* Main Arcade Card Frame */
.shell{
  background:#191532;
  border:3px solid #000;
  outline:2px solid #ffd400;
  border-radius:12px;
  padding:6px;
  box-shadow:5px 5px 0 #ff2e63;
  display:flex;
  flex-direction:column;
  gap:6px;
  position:relative;
  flex:1;
  min-height:0;
}
body.embed .shell{
  padding:5px;
  gap:4px;
  box-shadow:4px 4px 0 #ff2e63;
}

/* HUD */
.hud{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  background:#0a0816;
  border:2px solid #000;
  box-shadow:inset 0 0 0 1.5px #ffd400;
  border-radius:8px;
  padding:4px 7px;
  font:800 12px/1 "Courier New",monospace;
}
.hud b{color:#ffd400}
.hud .wx{color:#8be9ff}
.hud-right{display:flex;align-items:center;gap:4px}
.icon-btn{
  background:#272738;
  color:#fff;
  border:2px solid #000;
  border-radius:8px;
  padding:3px 6px;
  font:800 12px/1 system-ui;
  cursor:pointer;
}
.icon-btn:active{transform:translate(1px,1px)}

button,.btn{
  font:800 13px/1.1 system-ui,sans-serif;
  padding:8px 8px;
  border:2.5px solid #000;
  border-radius:9px;
  background:#272738;
  color:#fff;
  box-shadow:2px 2px 0 #000;
  text-decoration:none;
  text-align:center;
  touch-action:manipulation;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
button:active:not(:disabled),.btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #000}
button:disabled{opacity:.45;cursor:not-allowed}
button.go,.btn.go{
  background:linear-gradient(#7dff5a,#24b224);
  color:#000;
  font:900 15px/1 Impact,"Arial Black",sans-serif;
  letter-spacing:.5px;
}
button.gold{background:#ffd400;color:#000;font-weight:900}
button.pink{background:#ff2e63;color:#fff;font-weight:900}
button.cyan{background:#2ee6ff;color:#000;font-weight:900}
button.sm{padding:5px 7px;font-size:11px;border-width:2px;border-radius:7px}

/* Screen containers */
.screen{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
  min-height:0;
}
body.embed .screen{gap:4px}

/* Gate / Poster Screen */
.gate{
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
}
.poster-box{
  position:relative;
  width:100%;
  max-width:300px;
  aspect-ratio:1/1;
  border:3px solid #000;
  outline:2px solid #2ee6ff;
  border-radius:10px;
  overflow:hidden;
  background:#0e1728;
}
body.embed .poster-box{max-width:255px}
.poster-box img{width:100%;height:100%;object-fit:cover;display:block;image-rendering:pixelated}
.gate-title{
  font:900 22px/1 Impact,sans-serif;
  color:#ffd400;
  text-shadow:2px 2px 0 #ff2e63;
}
.gate-sub{font-size:12px;color:#d6d0ea;max-width:360px}
.gate .go{padding:11px 26px;font-size:18px;border-radius:26px}
.mini-note{font-size:10px;color:#9c94b8}

/* Starter Pick */
.pick-head{text-align:center}
.pick-head h2{font:900 18px/1.05 Impact,sans-serif;color:#ffd400;letter-spacing:.5px}
.pick-head p{font-size:11px;color:#8be9ff;margin-top:2px}
.starters{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  flex:1;
  min-height:0;
}
.scard{
  background:#231f42;
  border:2.5px solid #000;
  border-radius:10px;
  padding:7px 5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  text-align:center;
  gap:4px;
}
.scard h3{font:900 13px/1 Impact,sans-serif;color:#ffd400;letter-spacing:.3px}
.scard .item{font:800 11px/1.1 system-ui;color:#fff}
.scard .perk{font-size:10px;color:#c7c1df;line-height:1.15}
.scard .unlock{font-size:10px;color:#7dff5a;font-weight:700}
.scard canvas{width:84px;height:60px;image-rendering:pixelated}
.scard button{width:100%;padding:7px 4px;font-size:12px}

/* Prep Tabs & Panels */
.tabs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
}
.tabs button{
  padding:6px 2px;
  font:900 11px/1 system-ui;
  border-radius:8px;
  background:#252142;
  color:#cfc9e6;
}
.tabs button.on{
  background:#ffd400;
  color:#000;
}
.panel{
  background:#120f26;
  border:2px solid #000;
  border-radius:9px;
  padding:7px;
  flex:1;
  min-height:0;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.embed .panel{padding:6px;gap:5px}

.card{
  background:#1f1b3b;
  border:2px solid #000;
  border-radius:8px;
  padding:6px 8px;
}
.card-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.lbl{font-size:11px;color:#b8b2d2}
.val{font:800 13px/1.15 system-ui;color:#fff}
.val b{color:#ffd400}
.hint-tag{
  display:inline-block;
  background:#0a0816;
  border:1.5px solid #2ee6ff;
  color:#8be9ff;
  font:700 11px/1.15 system-ui;
  padding:3px 6px;
  border-radius:6px;
  margin-top:3px;
}
.crew-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:5px;
}
.crew-btn{
  flex-direction:column;
  padding:4px 3px;
  gap:2px;
  font-size:11px;
  background:#221d3e;
}
.crew-btn.on{background:#ffd400;color:#000}
.crew-btn canvas{width:30px;height:40px;image-rendering:pixelated}
.crew-btn small{font-size:9px;font-weight:700;opacity:.85}

.prep-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.prep-foot .make{font-size:11px;color:#d8d2ef}
.prep-foot .make b{color:#7dff5a}
.prep-foot .go{flex:1;padding:10px 10px;font-size:16px}

/* Stock & Menu & Upgrade rows */
.srow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  background:#1f1b3b;
  border:2px solid #000;
  border-radius:8px;
  padding:5px 7px;
}
.srow .info{flex:1;min-width:0}
.srow .name{font:800 12px/1.1 system-ui;color:#fff}
.srow .sub{font-size:10px;color:#b6b0d0}
.srow .acts{display:flex;gap:4px;align-items:center}
.stepper{
  display:flex;
  align-items:center;
  gap:5px;
}
.stepper b{min-width:44px;text-align:center;color:#ffd400;font:900 13px/1 "Courier New",monospace}

/* Live Day */
.stage{
  position:relative;
  border:2.5px solid #000;
  outline:2px solid #2ee6ff;
  border-radius:9px;
  overflow:hidden;
  background:#0e1728;
}
.stage canvas{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:460/210;
  image-rendering:pixelated;
  touch-action:manipulation;
}
.day-meta{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
}
.prog{
  flex:1;
  height:10px;
  background:#0a0816;
  border:2px solid #000;
  border-radius:6px;
  overflow:hidden;
}
.prog i{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#ffd400,#ff2e63);
}
.ev-bar{
  background:linear-gradient(90deg,#ff2e63,#ff8a00);
  color:#fff;
  border:2.5px solid #000;
  border-radius:9px;
  padding:7px 8px;
  font:900 13px/1.1 Impact,sans-serif;
  letter-spacing:.4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  animation:pulse .55s steps(2) infinite;
}
@keyframes pulse{50%{filter:brightness(1.22)}}
.serve-pad{
  display:flex;
  gap:6px;
}
.serve-btn{
  flex:1;
  min-height:48px;
  font:900 14px/1.1 Impact,sans-serif;
  letter-spacing:.4px;
  background:linear-gradient(#ffe066,#f2a900);
  color:#000;
  flex-direction:column;
  padding:6px 6px;
}
.serve-btn.want{
  background:linear-gradient(#7dff5a,#24b224);
  outline:2px solid #fff;
}
.serve-btn small{font:800 10px/1 system-ui;opacity:.85}
.quip{
  text-align:center;
  font-size:11px;
  color:#e2dcf5;
  min-height:1.3em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Report & Comic & Finale */
.stat-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}
.stat-box{
  background:#1f1b3b;
  border:2px solid #000;
  border-radius:8px;
  padding:5px 7px;
  font-size:11px;
}
.stat-box b{display:block;font:900 15px/1.1 "Courier New",monospace;color:#ffd400;margin-top:2px}
.rival-box{
  background:#142336;
  border:2px solid #2ee6ff;
  border-radius:8px;
  padding:6px 8px;
  font-size:11px;
  line-height:1.3;
}
.rival-box b{color:#ffd400}

.comic-wrap{
  background:#f7f2e6;
  border:3px solid #000;
  border-radius:9px;
  padding:5px;
}
.comic-wrap canvas{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:440/186;
  image-rendering:pixelated;
}
.comic-cap{
  text-align:center;
  font:700 12px/1.25 system-ui;
  color:#ffe999;
  padding:2px 4px;
}

.share-note{
  background:#120f26;
  border:2px solid #000;
  border-radius:10px;
  padding:8px 10px;
  font-size:11px;
  color:#cfc9e6;
  line-height:1.35;
}
.share-note code{color:#8be9ff;font-size:10px}
footer{
  text-align:center;
  color:#9c94b8;
  font-size:11px;
  margin-top:2px;
}
footer a{color:#ffd400}
