/* ═══════════════════════════════════════════════════════════════
   DIWALI DHAMAKA — responsive styling
   Device classes on <body>: dev-phone | dev-tablet | dev-desktop
   Orientation classes: orient-portrait | orient-landscape
   ═══════════════════════════════════════════════════════════════ */
:root {
  --saffron: #FF9933;
  --green: #138808;
  --gold: #FFC94A;
  --ink: #0a0518;
  --panel: rgba(10, 4, 22, 0.82);
  --panel-solid: #0c0518;
  --stroke: rgba(255, 201, 74, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--ink);
  overflow: hidden;
  font-family: 'Segoe UI', Roboto, system-ui, 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Malayalam', sans-serif;
  color: #fff;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

#gc {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
}

/* ── HUD ─────────────────────────────────────────────────────── */
#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 10px 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,.78), transparent);
  pointer-events: none;
  z-index: 10;
}
.p-hud { min-width: 96px; max-width: 40%; transition: opacity .25s; }
.p-hud.right { text-align: right; padding-right: 46px; }
.p-hud.dim { opacity: .42; }
.p-name {
  font-size: 12px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
#p1n { color: var(--saffron); }
#p2n { color: var(--green); }
.hp-bg {
  height: 7px; background: rgba(0,0,0,.45);
  border-radius: 4px; margin: 4px 0; overflow: hidden;
}
.p-hud.right .hp-bg { direction: rtl; }
.hp-fill { height: 100%; border-radius: 4px; width: 100%; transition: width .35s, background .3s; }
#p1hp { background: var(--saffron); }
#p2hp { background: var(--green); }
.p-stat { display: flex; align-items: baseline; gap: 6px; }
.p-hud.right .p-stat { justify-content: flex-end; }
.hp-txt { font-size: 10px; color: rgba(255,255,255,.5); }
.score {
  font-size: 15px; font-weight: 900; color: var(--gold);
  text-shadow: 0 0 8px rgba(255,201,74,.4);
  font-variant-numeric: tabular-nums;
}

.mid-hud { text-align: center; padding-top: 2px; flex-shrink: 0; }
.round-lbl { font-size: 9px; letter-spacing: 1.5px; color: rgba(255,255,255,.55); }
#roundmax { color: rgba(255,255,255,.35); }
.wind-row { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 2px; }
.wind-lbl { font-size: 8px; color: rgba(255,255,255,.4); letter-spacing: 1px; }
.wind-arrow { font-size: 15px; line-height: 1; }
.wind-val { font-size: 13px; font-weight: 900; }

#turn-badge {
  position: fixed; top: 58px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.62); border: 1px solid var(--stroke);
  border-radius: 99px; padding: 4px 14px; font-size: 11px;
  z-index: 10; pointer-events: none; white-space: nowrap; max-width: 92vw;
  overflow: hidden; text-overflow: ellipsis;
}
#net-pill {
  position: fixed; top: 82px; right: 10px;
  background: rgba(19,136,8,.25); border: 1px solid rgba(80,255,120,.4);
  color: #6f6; border-radius: 99px; padding: 3px 9px; font-size: 10px;
  z-index: 11; pointer-events: none;
}

#mute-btn {
  position: fixed; right: 8px; top: max(6px, env(safe-area-inset-top));
  width: 30px; height: 26px; line-height: 1;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.22);
  color: #fff; border-radius: 99px; padding: 0; font-size: 13px;
  cursor: pointer; z-index: 16;
}

/* ── Controls ────────────────────────────────────────────────── */
#controls {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 68%, transparent);
  padding: 8px 10px calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
}
#wpn-bar {
  display: flex; gap: 5px; overflow-x: auto;
  padding-bottom: 7px; scrollbar-width: thin; scroll-snap-type: x proximity;
}
#wpn-bar::-webkit-scrollbar { height: 4px; }
#wpn-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.wb {
  flex-shrink: 0; min-width: 62px; padding: 5px 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px; color: #fff; cursor: pointer; text-align: center;
  font-size: 8px; line-height: 1.3; font-family: inherit;
  transition: all .12s; scroll-snap-align: start;
}
.wb { position: relative; }
.wb-emoji { font-size: 17px; line-height: 1.25; display: block; }
.wb-name { font-weight: 700; }
.wb-desc { color: rgba(255,255,255,.4); }
.wb-count {
  position: absolute; top: 2px; right: 3px;
  font-size: 8px; font-weight: 800; color: var(--gold);
  background: rgba(10,4,22,.85); border-radius: 6px; padding: 1px 3px; line-height: 1;
}
.wb.sel {
  border-color: var(--gold); background: rgba(255,201,74,.2);
  box-shadow: 0 0 9px rgba(255,201,74,.4);
}
.wb.spent { opacity: .3; filter: grayscale(1); }
.wb.spent .wb-count { color: #ff6b6b; }
.wb:disabled { opacity: .4; cursor: default; }
.wb.spent:disabled { opacity: .3; }

/* ── bomb draft ─────────────────────────────────────────────── */
.draft-turn {
  font-weight: 800; font-size: .92rem; color: var(--gold);
  text-align: center; margin-bottom: 8px;
}
.draft-arsenal {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  min-height: 30px; padding: 5px 8px; margin-bottom: 5px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  font-size: .7rem;
}
.draft-arsenal.active { border-color: var(--gold); background: rgba(255,201,74,.08); }
.draft-arsenal b { color: #fff; margin-right: 4px; font-size: .68rem; }
.da-chip { font-size: 15px; }
.da-count { margin-left: auto; color: rgba(255,255,255,.5); font-weight: 700; }
.draft-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 4px; max-height: 40vh; overflow-y: auto; margin: 8px 0;
  padding: 2px; scrollbar-width: thin;
}
.draft-wpn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 3px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  color: #fff; font-family: inherit; font-size: 7.5px; line-height: 1.25;
  transition: all .1s;
}
.draft-wpn:hover:not(:disabled) { border-color: var(--gold); background: rgba(255,201,74,.14); }
.draft-wpn .dw-em { font-size: 17px; }
.draft-wpn .dw-nm { font-weight: 700; }
.draft-wpn .dw-use { color: var(--gold); font-weight: 800; }
.draft-wpn.taken { opacity: .28; }
.draft-wpn:disabled { cursor: default; opacity: .4; }

.ctl-main { display: flex; flex-direction: column; gap: 5px; }
.sliders { flex: 1; }
.srow { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.slbl { font-size: 10px; color: rgba(255,255,255,.5); width: 40px; text-align: right; flex-shrink: 0; }
input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 5px;
  border-radius: 3px; background: rgba(255,255,255,.18); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--gold); cursor: pointer;
  box-shadow: 0 0 6px rgba(255,201,74,.5);
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border: none; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px rgba(255,201,74,.5);
}
.sval { font-size: 11px; font-weight: bold; width: 36px; flex-shrink: 0; }

.arow { display: flex; gap: 7px; align-items: center; }
.mbtn {
  flex: 0 0 46px; height: 42px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 9px;
  font-size: 18px; cursor: pointer; font-family: inherit; transition: transform .1s, background .1s;
}
.mbtn:active { background: rgba(255,255,255,.25); transform: scale(.94); }
#fire-btn {
  flex: 1; height: 44px;
  background: linear-gradient(135deg, #cc2200, #ff5500, #ffaa00);
  border: none; color: #fff; border-radius: 10px; font-size: 15px;
  font-weight: 900; letter-spacing: 1px; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(255,80,0,.4); text-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: transform .1s;
}
#fire-btn:active { transform: scale(.97); }
#fire-btn:disabled { background: rgba(90,90,90,.4); box-shadow: none; cursor: not-allowed; }

.kb-hint { display: none; font-size: 10px; color: rgba(255,255,255,.4); margin-top: 6px; text-align: center; }
.kb-hint b { color: rgba(255,255,255,.7); }

/* ── Commentary ──────────────────────────────────────────────── */
#comm {
  position: fixed; top: 42%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.8); border-radius: 12px; padding: 10px 22px;
  color: var(--gold); font-size: 17px; font-weight: bold; text-align: center;
  z-index: 25; opacity: 0; transition: opacity .28s; pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,.6); white-space: nowrap; max-width: 92vw;
}
#aim-hint {
  position: fixed; bottom: 190px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.7); border: 1px solid var(--stroke); border-radius: 8px;
  padding: 5px 14px; font-size: 11px; z-index: 20; color: var(--gold); white-space: nowrap;
}

/* ── Overlays (menu / gameover) ──────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(255,153,51,.12), rgba(10,5,24,.92));
  padding: 16px; overflow-y: auto;
}
.card {
  background: var(--panel); border: 1.5px solid var(--stroke);
  border-radius: 18px; padding: 22px 24px; max-width: 400px; width: 100%;
  text-align: center; backdrop-filter: blur(4px); margin: auto;
}
.diya-row { font-size: 1.8rem; letter-spacing: 6px; margin-bottom: 8px; }
.menu-top { position: relative; display: flex; justify-content: center; align-items: center; }
#langSel {
  position: absolute; right: 0; top: 0;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid var(--stroke); border-radius: 7px;
  padding: 4px 6px; font-size: .72rem; font-family: inherit; cursor: pointer;
}
#langSel option { background: var(--panel-solid); color: #fff; }
.title {
  font-size: 2rem; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--saffron), #fff, var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { color: rgba(255,255,255,.5); font-size: .8rem; margin-bottom: 16px; }
.seg-lbl { font-size: .68rem; color: rgba(255,255,255,.4); letter-spacing: 1.5px; margin: 14px 0 7px; }
.pills { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.pill {
  padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18);
  background: transparent; color: rgba(255,255,255,.55); cursor: pointer;
  font-size: .75rem; font-family: inherit; transition: all .12s;
}
.pill.on { background: rgba(255,201,74,.2); border-color: var(--gold); color: var(--gold); }

.nrow { display: flex; gap: 8px; margin: 10px 0; }
.nin {
  flex: 1; min-width: 0; padding: 9px 10px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #fff;
  font-size: .88rem; outline: none; text-align: center; font-family: inherit;
}
.nin:focus { border-color: var(--gold); }
.nin.p1 { border-color: rgba(255,153,51,.5); }
.nin.p2 { border-color: rgba(19,136,8,.5); }

.online-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.obtn {
  padding: 9px 12px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px;
  font-size: .82rem; cursor: pointer; font-family: inherit; transition: background .12s;
}
.obtn:hover { background: rgba(255,255,255,.16); }
.obtn.wide { width: 100%; margin-top: 8px; }
.join-wrap { display: flex; gap: 6px; }
.code-in { flex: 0 0 96px; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }
.net-status { font-size: .74rem; color: var(--gold); margin-top: 8px; min-height: 1em; }
.net-status.err { color: #ff6b6b; }

.pbtn {
  width: 100%; padding: 13px; margin-top: 16px;
  background: linear-gradient(135deg, #cc2200, #ff5500, #ffaa00);
  border: none; color: #fff; border-radius: 10px; font-size: 1.02rem;
  font-weight: 900; cursor: pointer; letter-spacing: 1.2px; font-family: inherit;
  box-shadow: 0 6px 20px rgba(255,80,0,.32); transition: transform .14s;
}
.pbtn:hover { transform: translateY(-1px); }
.pbtn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.dev-note { font-size: .68rem; color: rgba(255,255,255,.3); margin-top: 10px; }

.lobby-code { font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: 2px; margin: 8px 0 4px; }
#lobbyCode { font-size: 2.4rem; font-weight: 900; letter-spacing: 8px; color: var(--gold); display: block; }
.lobby-msg { font-size: .8rem; color: rgba(255,255,255,.55); margin: 10px 0 16px; }
.lobby-players { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.lp {
  padding: 9px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; font-size: .85rem;
}
.lp.ready { border-color: var(--green); color: #8f8; }

.go-winner { font-size: 1.8rem; font-weight: 900; margin: 4px 0; }
.go-scores { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.go-msg { color: rgba(255,255,255,.55); margin-bottom: 16px; font-size: .82rem; }

/* ═══════════════════════════════════════════════════════════════
   DEVICE-TYPE ADAPTATION
   ═══════════════════════════════════════════════════════════════ */

/* ── DESKTOP: keyboard + drag-to-aim first, slim control bar ──── */
body.dev-desktop #controls {
  left: 50%; right: auto; transform: translateX(-50%);
  width: min(720px, 96vw);
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.5));
  border: 1px solid var(--stroke); border-bottom: none;
  border-radius: 14px 14px 0 0;
}
body.dev-desktop .ctl-main { flex-direction: row; align-items: flex-end; gap: 14px; }
body.dev-desktop .sliders { flex: 1; }
body.dev-desktop .arow { flex: 0 0 auto; }
body.dev-desktop .mbtn { width: 40px; flex-basis: 40px; height: 38px; }
body.dev-desktop #fire-btn { flex: 0 0 150px; height: 38px; }
body.dev-desktop .kb-hint { display: block; }
body.dev-desktop #aim-hint { display: none !important; }
body.dev-desktop #turn-badge { top: 62px; font-size: 12px; }

/* ── TABLET: big touch targets, roomy two-column controls ─────── */
body.dev-tablet .wb { min-width: 78px; font-size: 9px; padding: 7px 8px; }
body.dev-tablet .wb-emoji { font-size: 21px; }
body.dev-tablet .slbl { font-size: 12px; }
body.dev-tablet input[type=range] { height: 7px; }
body.dev-tablet input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; }
body.dev-tablet .mbtn { flex-basis: 60px; height: 52px; font-size: 22px; }
body.dev-tablet #fire-btn { height: 54px; font-size: 17px; }
body.dev-tablet .p-name { font-size: 14px; }
body.dev-tablet .score { font-size: 18px; }
body.dev-tablet #turn-badge { font-size: 13px; padding: 5px 18px; }
body.dev-tablet .card { max-width: 460px; }

/* landscape (phone + tablet): dock the controls to the right so the battlefield gets the full height */
body.orient-landscape:not(.dev-desktop) #controls {
  left: auto; right: 0; top: 0; bottom: 0; width: 300px;
  display: flex !important; flex-direction: column; justify-content: flex-start;
  background: linear-gradient(to left, rgba(0,0,0,.92) 72%, transparent);
  padding: 6px calc(10px + env(safe-area-inset-right)) 6px 12px; overflow-y: auto;
}
body.orient-landscape:not(.dev-desktop) #wpn-bar {
  flex-wrap: wrap; overflow-x: visible; overflow-y: auto; max-height: none;
}
body.orient-landscape:not(.dev-desktop) .ctl-main { flex-direction: column; }
/* a clear gap between the bomb picker and the angle / power sliders */
body.orient-landscape:not(.dev-desktop) #wpn-bar { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); flex: 1 1 0; min-height: 0; align-content: flex-start; }
body.orient-landscape:not(.dev-desktop) .ctl-main { flex: 0 0 auto; }
body.orient-landscape:not(.dev-desktop) .kb-hint { display: none; }
/* keep the HUD and corner buttons clear of notches */
body.orient-landscape #hud { padding-left: max(10px, env(safe-area-inset-left)); }
body.dev-phone.orient-landscape #hud { right: 236px; }
body.dev-tablet.orient-landscape #hud { right: 300px; }

/* ── PHONE landscape: slimmer dock, tighter chrome ───────────── */
body.dev-phone.orient-landscape #controls { width: 236px; }
body.dev-phone.orient-landscape #wpn-bar { padding-bottom: 4px; gap: 4px; }
body.dev-phone.orient-landscape .wb { min-width: 50px; padding: 3px 4px; }
body.dev-phone.orient-landscape .wb-emoji { font-size: 15px; }
body.dev-phone.orient-landscape .wb-desc { display: none; }
body.dev-phone.orient-landscape .srow { margin-bottom: 2px; }
body.dev-phone.orient-landscape .mbtn { height: 34px; flex-basis: 40px; }
body.dev-phone.orient-landscape #fire-btn { height: 38px; }
body.dev-phone.orient-landscape #turn-badge { top: 30px; }
body.dev-phone.orient-landscape .card { max-width: 560px; padding: 12px 18px; }
body.dev-phone.orient-landscape .diya-row { font-size: 1.2rem; margin-bottom: 2px; }
body.dev-phone.orient-landscape .title { font-size: 1.5rem; }
body.dev-phone.orient-landscape .subtitle { margin-bottom: 6px; }
body.dev-phone.orient-landscape .seg-lbl { margin: 8px 0 4px; }
body.dev-tablet.orient-landscape #controls { width: 300px; }


/* very short viewports */
@media (max-height: 440px) {
  #turn-badge { top: 4px; }
  .wb { min-width: 54px; }
}

/* landscape: the player-name chip would sit on top of the docked controls */
body.orient-landscape:not(.dev-desktop) .arcade-who { display: none; }

/* manual layout switch: Auto → Landscape → Portrait */
.layout-btn { font: inherit; font-weight: 800; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.28); border-radius: 99px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
#layout-btn { position: fixed; left: max(8px, env(safe-area-inset-left)); top: 64px; z-index: 16; }
.menu-layout { margin: 10px auto 0; display: block; }

/* shown only after a win — make it the obvious next step */
#shareBtn { background: linear-gradient(180deg, #7fe3c1, #2fbf71) !important; color: #0e2a1c !important; border: 0 !important; font-weight: 800; animation: winPulse 1.6s ease-in-out infinite; }
@keyframes winPulse { 50% { transform: scale(1.04); } }

/* ── LAPTOP / DESKTOP: every cracker in ONE see-through vertical panel, nothing to scroll ── */
#wpn-panel { display: none; }
body.wpn-sides #wpn-bar { display: none; }
body.wpn-sides #wpn-panel {
  display: flex; flex-direction: column; gap: 3px; position: fixed; z-index: 9; right: 12px; top: 64px; bottom: 46px; width: 178px; padding: 5px;
  overflow-y: auto; scrollbar-width: thin;
  background: rgba(10, 6, 24, .30); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
}
#wpn-panel .wb { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; padding: 2px 7px; text-align: left; flex: 1 1 0; min-height: 22px; max-height: 40px;
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }
#wpn-panel .wb:hover:not(.spent) { background: rgba(255,255,255,.14); }
#wpn-panel .wb-emoji { font-size: 17px; line-height: 1; flex: none; }
#wpn-panel .wb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
#wpn-panel .wb-name { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wpn-panel .wb-desc { display: none; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wpn-panel .wb-count { position: static; margin-left: auto; font-size: 10.5px; flex: none; }
#wpn-panel .wb.sel { flex: 0 0 auto; min-height: 40px; max-height: none; padding: 4px 7px; box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(255,201,74,.45); background: rgba(255,201,74,.18); }
#wpn-panel .wb.sel .wb-desc { display: block; }
#wpn-panel .wb.spent { opacity: .35; }
#wpn-panel[data-side="left"] { left: 58px; right: auto; }         /* clear of the full-screen button */
#wpn-panel.swap { animation: panelSwap .28s ease-out; }
@keyframes panelSwap { from { opacity: .2; transform: translateX(var(--from, 24px)); } }
#wpn-panel[data-side="right"] { --from: 24px; } #wpn-panel[data-side="left"] { --from: -24px; }
/* a short laptop screen: the same single panel lays its crackers out in two columns so all still fit */
@media (max-height: 760px) {
  body.wpn-sides #wpn-panel { width: 262px; bottom: 92px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(30px, 1fr); align-content: stretch; }
  #wpn-panel .wb, #wpn-panel .wb.sel { min-height: 0; max-height: none; flex: none; padding: 2px 5px; gap: 5px; }
  #wpn-panel .wb-name { font-size: 10.5px; } #wpn-panel .wb-emoji { font-size: 15px; }
  #wpn-panel .wb.sel .wb-desc { display: none; }
}
