:root {
  --accent: #2ec4b6; --accent-d: #127a72; --panel: #3b2a1a; --panel2: #5a3e22; --edge: #c9a25a;
  --ink: #fff8e7; --dim: #d8c7a6;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
body[data-faction="bug"] { --accent: #e63946; --accent-d: #8d1520; --panel: #1f3a1d; --panel2: #2f5a2a; --edge: #9bd46a; --dim: #c9e2b5; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1020; color: var(--ink); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
#view { touch-action: none; }
button { touch-action: manipulation; }
.overlay { overflow: auto; }
.hidden { display: none !important; }
.dim { color: var(--dim); opacity: .85; }
.small { font-size: 13px; }
.center { text-align: center; }
button { font-family: inherit; cursor: pointer; }

#view { position: fixed; inset: 0; display: block; }
#overlay { position: fixed; inset: 0; display: block; pointer-events: none; z-index: 1; }

/* ---------- top bar ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 10px;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border-bottom: 3px solid var(--edge);
  box-shadow: 0 3px 10px rgba(0,0,0,.4); z-index: 5; font-size: 14px;
}
.res { display: flex; align-items: baseline; gap: 6px; background: rgba(0,0,0,.3); padding: 5px 12px; border-radius: 20px; }
.res b { font-size: 19px; color: #ffe08a; min-width: 44px; display: inline-block; }
.res .inc { color: #9df59d; font-size: 12px; }
.res .dim { font-size: 11px; }
.pill { background: rgba(0,0,0,.3); padding: 6px 11px; border-radius: 20px; white-space: nowrap; }
.pill.warn { background: #b45309; animation: pulse 1s infinite; }
.pill.hot { background: #1d4ed8; animation: pulse .7s infinite; }
@keyframes pulse { 50% { filter: brightness(1.35); } }
#hqBars { display: flex; gap: 10px; margin-left: auto; }
.hqbar { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.hqbar .bar { width: 70px; height: 9px; background: rgba(0,0,0,.45); border-radius: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }
.hqbar .bar i { display: block; height: 100%; transition: width .3s; }
.hqbar em { font-style: normal; opacity: .7; }
.btns { display: flex; gap: 5px; }
.btns button { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; width: 34px; height: 32px; font-size: 16px; }
.btns button:hover { background: rgba(255,255,255,.15); }

/* ---------- bottom panel ---------- */
#panel {
  position: fixed; left: 0; right: 0; bottom: 0; height: 168px; display: flex; gap: 10px; padding: 10px;
  background: linear-gradient(0deg, var(--panel), var(--panel2)); border-top: 4px solid var(--edge);
  box-shadow: 0 -4px 14px rgba(0,0,0,.45); z-index: 5;
}
body[data-faction="coco"] #panel { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 18px, rgba(0,0,0,.05) 18px 20px), linear-gradient(0deg, var(--panel), var(--panel2)); }
body[data-faction="bug"] #panel { background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 0 6px, transparent 7px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.05) 0 5px, transparent 6px), linear-gradient(0deg, var(--panel), var(--panel2)); background-size: 60px 60px, 80px 80px, auto; }
.minibox { width: 222px; height: 148px; padding: 3px; background: #000; border-radius: 6px; border: 2px solid var(--edge); flex: none; }
#minimap { width: 216px; height: 144px; display: block; cursor: pointer; border-radius: 3px; }
#info { flex: 1; min-width: 0; background: rgba(0,0,0,.28); border-radius: 8px; padding: 8px 10px; overflow: hidden; font-size: 13px; }
#info .hint { line-height: 1.55; }
.single { display: flex; gap: 12px; height: 100%; }
.single .por { width: 84px; height: 84px; background: radial-gradient(circle, rgba(255,255,255,.18), rgba(0,0,0,.2)); border-radius: 10px; border: 2px solid var(--edge); flex: none; object-fit: contain; }
.single .txt { min-width: 0; flex: 1; }
.single .nm { font-size: 17px; font-weight: bold; margin-bottom: 3px; }
.enemy { background: #b91c1c; font-size: 10px; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.hpbar { position: relative; height: 14px; background: rgba(0,0,0,.5); border-radius: 7px; overflow: hidden; max-width: 340px; }
.hpbar i { position: absolute; left: 0; top: 0; bottom: 0; }
.hpbar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 10.5px; line-height: 14px; text-shadow: 0 1px 2px #000; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 5px 0 2px; font-size: 13px; }
.rps { font-size: 12px; color: var(--dim); }
.rps .cls { background: var(--accent-d); color: #fff; padding: 0 6px; border-radius: 6px; margin-right: 4px; }
.desc { font-size: 12px; color: var(--dim); margin-top: 3px; }
.queue { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.qi { position: relative; width: 38px; height: 38px; background: rgba(0,0,0,.35); border: 1px solid var(--edge); border-radius: 6px; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.qi img { width: 36px; height: 36px; }
.qi i { position: absolute; left: 0; bottom: 0; height: 4px; background: #ffd166; }
.qi:hover { border-color: #f87171; }
.msum { font-size: 12.5px; margin-bottom: 6px; }
.multi { display: flex; flex-wrap: wrap; gap: 4px; }
.mi { position: relative; width: 40px; height: 40px; background: rgba(0,0,0,.35); border-radius: 6px; border: 1px solid rgba(255,255,255,.2); cursor: pointer; }
.mi img { width: 38px; height: 38px; }
.mi i { position: absolute; left: 2px; bottom: 2px; height: 3px; max-width: 36px; }
#cmds { width: 360px; flex: none; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 70px; gap: 6px; align-content: start; }
.cmd {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 2px 3px 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.25)); border: 2px solid var(--edge); border-radius: 9px; color: #fff;
  transition: transform .08s, filter .1s;
}
.cmd:hover { filter: brightness(1.25); transform: translateY(-1px); }
.cmd:active { transform: translateY(1px); }
.cmd img { width: 40px; height: 40px; }
.cmd .ico { font-size: 26px; line-height: 40px; }
.cmd .lbl { font-size: 10.5px; line-height: 1.1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cmd .cost { position: absolute; top: 2px; right: 4px; font-size: 10px; background: rgba(0,0,0,.5); padding: 0 4px; border-radius: 5px; }
.cmd .hot { position: absolute; top: 2px; left: 4px; font-size: 10px; background: var(--accent-d); padding: 0 4px; border-radius: 4px; font-weight: bold; }
.cmd .lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); border-radius: 7px; font-size: 18px; }
.cmd.poor { filter: grayscale(.75) brightness(.75); }
.cmd.poor .cost { color: #ff8a8a; }

#tooltip { position: fixed; z-index: 20; width: 260px; background: rgba(20,14,8,.95); border: 2px solid var(--edge); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; pointer-events: none; line-height: 1.4; }
#tooltip .cost { color: #ffe08a; }
#tooltip .dim { margin-top: 4px; font-size: 11.5px; }

#modeHint { position: fixed; top: 56px; left: 50%; transform: translateX(-50%); z-index: 6; background: rgba(0,0,0,.7); padding: 6px 14px; border-radius: 16px; font-size: 13px; }
#toasts { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: rgba(20,20,30,.85); border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 18px; font-size: 14px; animation: tin .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.good { border-color: #4ade80; }
.toast.bad { border-color: #f87171; background: rgba(60,10,10,.88); }
.toast.click { pointer-events: auto; cursor: pointer; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px) scale(.95); } }
#banner { position: fixed; top: 30%; left: 0; right: 0; z-index: 7; text-align: center; pointer-events: none; opacity: 0; transition: opacity .5s; }
#banner.show { opacity: 1; animation: pop .5s ease-out; }
#banner .bt { font: 900 56px Impact, "Arial Black", sans-serif; color: #7df9ff; -webkit-text-stroke: 3px #08306b; text-shadow: 0 6px 0 #08306b, 0 10px 25px rgba(0,0,0,.6); }
#banner .bs { font-size: 20px; font-weight: bold; text-shadow: 0 2px 4px #000; }
@keyframes pop { from { transform: scale(.4); } 70% { transform: scale(1.08); } }

/* ---------- overlays & cards ---------- */
.overlay { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(5,10,25,.72); backdrop-filter: blur(3px); }
#tutorial { background: radial-gradient(ellipse at 20% 85%, rgba(46,196,182,.45), transparent 55%), radial-gradient(ellipse at 85% 15%, rgba(230,57,70,.4), transparent 55%), linear-gradient(135deg, #15324a, #1d3b1f); }
.card {
  background: linear-gradient(180deg, #fff8e7, #f3e2bd); color: #3b2a1a; border-radius: 20px; padding: 22px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 0 4px #c9a25a;
  max-width: min(940px, 94vw); max-height: 94vh; overflow: auto;
}
.card .dim { color: #7a6448; }
.card h2 { margin: 0; font-size: 26px; }
.card h3 { margin: 10px 0 4px; }
.small-card { width: 320px; text-align: center; }
.col { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
button.big { background: linear-gradient(180deg, #ffb347, #f77f00); color: #fff; border: none; border-radius: 14px; padding: 11px 22px; font-size: 17px; font-weight: bold; box-shadow: 0 4px 0 #9a4a00; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
button.big:hover { filter: brightness(1.1); }
button.big:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a4a00; }
button.big.alt { background: linear-gradient(180deg, #5fa8d3, #2b6c99); box-shadow: 0 4px 0 #17405c; }

.title-card { text-align: center; width: 880px; }
.logo { font: 900 64px/0.95 Impact, "Arial Black", sans-serif; letter-spacing: 2px; margin: 4px 0 6px; }
.logo .l1 { display: block; color: #8b5a2b; -webkit-text-stroke: 2px #3b2210; text-shadow: 0 5px 0 #3b2210; }
.logo .l2 { display: block; color: #e63946; -webkit-text-stroke: 2px #5c0d14; text-shadow: 0 5px 0 #5c0d14; font-size: 52px; }
.tag { font-size: 17px; margin: 10px 0 16px; }
.sides { display: flex; gap: 18px; justify-content: center; }
.side { flex: 1; max-width: 400px; border-radius: 18px; padding: 14px; border: 4px solid transparent; color: #fff; transition: transform .12s, box-shadow .12s; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.side.coco { background: linear-gradient(180deg, #4fd1c5, #f2c46d 85%); border-color: #127a72; }
.side.bug { background: linear-gradient(180deg, #7cc451, #2f6b2a 85%); border-color: #8d1520; }
.side:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.side .sn { font-size: 24px; font-weight: 900; }
.side .ss { font-size: 13px; margin: 3px 0 6px; }
.side .sp img { margin: 0 2px; background: rgba(255,255,255,.25); border-radius: 10px; }
.diff { margin-top: 16px; font-weight: bold; }
.chip { border: 2px solid #c9a25a; background: #fff; color: #3b2a1a; padding: 4px 14px; border-radius: 14px; margin: 0 3px; text-transform: capitalize; font-weight: bold; }
.chip.on { background: #f77f00; color: #fff; border-color: #9a4a00; }

.slide { width: 900px; }
.slide .sh { display: flex; align-items: center; gap: 12px; border-bottom: 2px dashed #c9a25a; padding-bottom: 8px; }
.slide .step { background: #3b2a1a; color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 13px; }
.slide .skip { margin-left: auto; background: none; border: none; color: #7a6448; font-size: 14px; text-decoration: underline; }
.slide .sb { min-height: 340px; padding: 12px 0; font-size: 16px; line-height: 1.5; }
.slide .sf { display: flex; align-items: center; gap: 10px; border-top: 2px dashed #c9a25a; padding-top: 10px; }
.slide .back { background: none; border: 2px solid #c9a25a; border-radius: 12px; padding: 8px 14px; color: #3b2a1a; font-weight: bold; }
.slide .dots { flex: 1; display: flex; justify-content: center; gap: 7px; }
.slide .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8c7a6; }
.slide .dots i.on { background: #f77f00; transform: scale(1.3); }
.vs { display: flex; align-items: center; justify-content: center; gap: 30px; text-align: center; font-weight: bold; }
.vsx { font: 900 50px Impact, sans-serif; color: #e63946; }
.mock { border: 3px solid #3b2a1a; border-radius: 10px; overflow: hidden; font-size: 13px; text-align: center; margin-bottom: 10px; }
.mtop { background: #5a3e22; color: #fff; padding: 7px; }
.mworld { background: linear-gradient(135deg, #f0d696, #7ec45c 50%, #3e8a2a); height: 120px; display: flex; flex-direction: column; justify-content: center; font-weight: bold; color: #1d3b1f; }
.mbot { display: flex; background: #3b2a1a; color: #fff; padding: 6px; gap: 6px; }
.mbot > div { background: rgba(255,255,255,.12); border-radius: 6px; padding: 8px; flex: 1; }
.mbot .dim { color: #d8c7a6; }
.mmini { flex: .6 !important; } .mcmd { flex: .9 !important; }
.cols2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; }
ul.keys { padding-left: 18px; margin: 0; } ul.keys li { margin: 6px 0; }
kbd { background: #3b2a1a; color: #fff; padding: 1px 7px; border-radius: 5px; font-size: 13px; box-shadow: 0 2px 0 #000; font-family: inherit; }
.demo { text-align: center; }
.bflow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bstep { width: 175px; text-align: center; display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.5); border-radius: 12px; padding: 8px; font-size: 13px; }
.bstep b { font-size: 14px; } .bstep span { color: #7a6448; }
.barrow { font-size: 30px; color: #f77f00; font-weight: bold; }
.ucards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ucard { background: rgba(255,255,255,.55); border-radius: 12px; padding: 6px 8px; text-align: center; font-size: 12px; line-height: 1.3; }
.ucard .un { font-weight: 900; font-size: 14px; }
.ucard .ut { color: #b45309; font-weight: bold; }
.ucard .ud { color: #5a4630; margin: 2px 0; }
.ucard .uc { color: #7a6448; }
.rpsrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rps-svg { width: 330px; height: 228px; flex: none; }
.svgl { font: bold 12px "Trebuchet MS", sans-serif; text-anchor: middle; fill: #3b2a1a; }
.svgb { font: italic bold 12px "Trebuchet MS", sans-serif; text-anchor: middle; fill: #b45309; }
.arr { stroke: #ffd166; stroke-width: 5; fill: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.rpsnote { font-size: 14.5px; }
.enemy-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: center; font-size: 12px; font-weight: bold; }
.enemy-row div { background: rgba(255,255,255,.5); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; align-items: center; }

#help { flex-direction: column; }
.help { width: 900px; }
.help .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.endcard { text-align: center; width: 520px; }
.big-title { font: 900 64px Impact, "Arial Black", sans-serif; }
.endcard.win .big-title { color: #f77f00; -webkit-text-stroke: 2px #5c2d00; }
.endcard.lose .big-title { color: #6b7280; -webkit-text-stroke: 2px #1f2937; }
.endimg { display: block; margin: 0 auto; }
.lose .endimg { filter: grayscale(.4); transform: rotate(-8deg); }
table.stats { margin: 8px auto; border-collapse: collapse; font-size: 15px; }
table.stats td, table.stats th { padding: 3px 14px; border-bottom: 1px solid #e0cfa8; }

@media (max-width: 1100px) {
  #cmds { width: 280px; grid-auto-rows: 62px; }
  .minibox { width: 168px; } #minimap { width: 162px; height: 108px; }
  #hqBars { display: none; }
  .ucards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- touch / phone layouts ---------------- */
body.touch .cmd .hot, body.touch #btnHelp { display: none; }
#pSound, #pGfx { display: none; }
body.touch #pSound, body.touch #pGfx { display: block; }

@media (max-width: 760px), (max-height: 520px) {
  #topbar { height: 40px; gap: 5px; padding: 0 6px; font-size: 12px; padding-top: env(safe-area-inset-top); }
  .res { padding: 3px 9px; gap: 4px; }
  .res b { font-size: 16px; min-width: 0; }
  #resName, #hqBars { display: none; }
  .pill { padding: 4px 7px; }
  .btns { margin-left: auto; gap: 3px; flex: none; }
  #topbar > .pill, .res { flex: none; white-space: nowrap; }
  .btns button { width: 30px; height: 30px; font-size: 14px; }
  #btnHelp, #btnSound, #btnGfx { display: none; }
  #modeHint { top: 46px; font-size: 12px; max-width: 94vw; text-align: center; }
  #toasts { top: 84px; width: 94vw; }
  .toast { font-size: 12px; text-align: center; padding: 5px 10px; }
  #banner .bt { font-size: 34px; -webkit-text-stroke: 2px #08306b; }
  #banner .bs { font-size: 14px; }
  #tooltip { width: 230px; font-size: 12px; }
}
@media (max-width: 760px) {
  #pop, #springs { font-size: 11.5px; }
  #panel { height: auto; flex-wrap: wrap; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 6px; border-top-width: 3px; }
  #info { order: 1; flex: 1 1 100%; height: 56px; padding: 5px 8px; font-size: 12px; }
  #info .hint { line-height: 1.35; font-size: 11.5px; }
  .single { gap: 8px; }
  .single .por { width: 44px; height: 44px; border-width: 1px; }
  .single .desc, .single .rps { display: none; }
  .single .nm { font-size: 14px; margin-bottom: 2px; }
  .single .stats { margin: 3px 0 0; gap: 8px; font-size: 11.5px; }
  .hpbar { height: 12px; } .hpbar span { line-height: 12px; font-size: 9.5px; }
  .queue { position: absolute; right: 12px; margin-top: -40px; gap: 3px; }
  .qi, .qi img { width: 30px; height: 30px; }
  .msum { font-size: 11px; margin-bottom: 3px; }
  .multi { flex-wrap: nowrap; overflow-x: auto; }
  .mi { width: 30px; height: 30px; flex: none; } .mi img { width: 28px; height: 28px; }
  .minibox { order: 2; width: 132px; height: 92px; padding: 2px; }
  #minimap { width: 126px; height: 86px; }
  #cmds { order: 3; flex: 1; width: auto; min-width: 0; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 58px; gap: 4px; }
  .cmd { border-width: 1.5px; border-radius: 8px; }
  .cmd img { width: 30px; height: 30px; }
  .cmd .ico { font-size: 19px; line-height: 30px; }
  .cmd .lbl { font-size: 9.5px; }
  .cmd .cost { font-size: 9px; padding: 0 3px; }

  .card { padding: 14px 14px; border-radius: 14px; max-height: 96vh; max-width: 96vw; }
  .card h2 { font-size: 20px; }
  .title-card, .slide, .help, .endcard { width: 96vw; }
  .logo { font-size: 40px; } .logo .l2 { font-size: 32px; }
  .tag { font-size: 14px; margin: 6px 0 10px; }
  .sides { flex-direction: column; gap: 10px; }
  .side { padding: 8px; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto auto; text-align: left; column-gap: 10px; align-items: center; }
  .side > img { width: 96px !important; height: 96px !important; grid-row: 1 / 4; }
  .side .sn { font-size: 19px; } .side .ss { font-size: 12px; margin: 0; }
  .side .sp img { width: 34px !important; height: 34px !important; margin: 0 1px; }
  .diff { margin-top: 10px; }
  .slide .sh { gap: 8px; flex-wrap: wrap; }
  .slide .sb { min-height: 0; font-size: 14px; line-height: 1.4; padding: 8px 0; }
  .slide .sf { gap: 6px; }
  .slide .back { padding: 7px 10px; }
  button.big { padding: 9px 16px; font-size: 15px; }
  .vs { gap: 8px; font-size: 13px; } .vs img { width: 110px !important; height: 110px !important; } .vsx { font-size: 30px; }
  .mworld { height: 70px; }
  .mbot { flex-wrap: wrap; font-size: 11px; }
  .cols2, .help .cols { grid-template-columns: 1fr; gap: 8px; }
  .demo img { width: 64px !important; height: 64px !important; }
  .bflow { gap: 6px; } .bstep { width: calc(50% - 6px); font-size: 11.5px; padding: 6px; } .barrow { display: none; }
  .bstep img { width: 72px !important; height: 72px !important; }
  .ucards { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .ucard { font-size: 11px; } .ucard img { width: 64px !important; height: 64px !important; } .ucard .un { font-size: 13px; }
  .rpsrow { flex-direction: column; } .rps-svg { width: 100%; max-width: 330px; height: auto; } .rpsnote { font-size: 13px; }
  .enemy-row img { width: 56px !important; height: 56px !important; }
  .big-title { font-size: 46px; } .endimg { width: 120px; }
  table.stats { font-size: 13px; } table.stats td, table.stats th { padding: 3px 8px; }
}
/* phone held sideways: keep the HUD short so the battlefield stays visible */
@media (max-height: 520px) and (min-width: 561px) {
  #panel { height: 112px; padding: 5px; gap: 6px; }
  .minibox { width: 150px; height: 102px; } #minimap { width: 144px; height: 96px; }
  #info { font-size: 11.5px; padding: 5px 8px; }
  .single .por { width: 56px; height: 56px; } .single .desc, .single .rps { display: none; }
  #cmds { width: 340px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 48px; gap: 4px; }
  .cmd img { width: 26px; height: 26px; } .cmd .ico { font-size: 17px; line-height: 26px; } .cmd .lbl { font-size: 9px; }
  .card { max-height: 94vh; } .slide .sb { min-height: 0; }
}
