/* HD menu kit (net/hdui.js). Sizes are stage pixels (the 800x600 stage is scaled as a whole, and everything
   here is vector, so it stays sharp). Colours sampled from the original art. */
/* panel titles: Luckiest Guy (Astigmatic, SIL Open Font License), latin subset bundled from Google Fonts */
@font-face { font-family: 'Luckiest Guy'; font-style: normal; font-weight: 400; font-display: block;
  src: url(../fonts/luckiest-guy-latin.woff2) format('woff2'); }
.stage .hdbtn, .stage .hdpanel, .stage .hd-mark { position: absolute; box-sizing: border-box; }

/* ---- buttons ---- */
.stage .hdbtn {
  /* pill: light top, white gloss band, brighter cyan bottom, pale reflection, dark lower lip (b_gamelist_* rows) */
  --p0: #f7ffff; --p1: #a5e3ff; --pband: #efffff; --p2: #8cdfff; --p3: #10baff; --p4: #29c7ff; --prefl: #c6f7ff;
  --plip: #396d84; --plip2: #004563; --pedge: #00699c;
  --lbl: #1e5fc4; --lbl-edge: #0b2f6e; --lbl-out: #fff;
  --ico: #4fc8ff; --ico-hi: #d8f6ff; --ico-edge: #0b2f74; --ico-gold: #ffe23a;
  --fs: 15px;
  padding: 0; margin: 0; border: 0; background: none; cursor: pointer; line-height: 1; font: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;   /* the label's z-index stays inside the button, so dialogs on top cover it */
}
.stage .hdbtn.thick {           /* black outline, #008ac6 ring with a pale top edge and dark bottom edge */
  border: 2px solid #000; border-radius: 12px; padding: 6px 7px 7px;
  background: linear-gradient(#b5dbef, #5ab2de 1.5px, #0a90cc 3px, #008ac6 45%, #0081c2 calc(100% - 4px), #0065b5 calc(100% - 2px), #002c9c);
}
.stage .hdbtn.thin { padding: 1px; border-radius: 8px; background: linear-gradient(#0082bd, #00699c); }
.stage .hdbtn.round { padding: 1px; border-radius: 50%; background: #003042; }
.stage .hd-pill {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  box-sizing: border-box; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--pedge);
  background: linear-gradient(var(--p0) 0%, var(--p0) 8%, var(--p1) 40%, var(--pband) 40%, var(--pband) 55%, var(--p2) 55%,
    var(--p3) 82%, var(--p4) 86%, var(--prefl) 87%, var(--prefl) 92%, var(--plip) 93%, var(--plip2) 100%);
}
.stage .hdbtn.thin .hd-pill { border-radius: 7px; }
.stage .hdbtn.round .hd-pill { border-radius: 50%; }
.stage .hd-pill::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.stage .hdbtn:hover:not(:disabled) .hd-pill::after { background: rgba(255, 255, 255, .22); }
.stage .hdbtn:active:not(:disabled) .hd-pill::after { background: rgba(0, 50, 110, .16); box-shadow: inset 0 2px 3px rgba(0, 30, 70, .45); }
.stage .hdbtn:active:not(:disabled) .hd-in { transform: translateY(1px); }
.stage .hd-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .3em;
                font-size: var(--fs); white-space: nowrap; flex: none; width: max-content; }
.stage .hd-lbl {
  font: italic 900 1em/1 'Arial Black', 'Arial', Impact, sans-serif; text-transform: uppercase; letter-spacing: -.01em;
  color: var(--lbl); -webkit-text-stroke: .045em var(--lbl-edge); padding: 0 .12em;
  text-shadow: -.09em -.09em 0 var(--lbl-out), .09em -.09em 0 var(--lbl-out), -.09em .09em 0 var(--lbl-out), .09em .09em 0 var(--lbl-out),
               0 -.11em 0 var(--lbl-out), 0 .11em 0 var(--lbl-out), -.11em 0 0 var(--lbl-out), .11em 0 0 var(--lbl-out);
}
.stage .hd-ico { width: 1.6em; height: 1.6em; flex: none; overflow: visible; }
.stage .hdbtn.icononly .hd-in { width: 100%; height: 100%; }
.stage .hdbtn.icononly .hd-ico { width: 90%; height: 72%; }   /* the icon fits the smaller side */
.stage .hd-ico * { stroke: var(--ico-edge, #0b2f74); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; paint-order: stroke; }
.stage .hd-ico .f { fill: var(--ico, #4fc8ff); }
.stage .hd-ico .h { stroke: var(--ico-hi, #d8f6ff); stroke-width: 2; }
.stage .hd-ico .w { fill: #fff; }
.stage .hd-ico .d { fill: #0b2f74; stroke-width: 0; }
.stage .hd-ico .y { fill: var(--ico-gold, #ffe23a); }
.stage .hd-ico .sh { fill: none; stroke: #c9d3de; stroke-width: 3.5; }   /* padlock shackle */

/* variants: gold (special actions, and the selected state like the original's latched View All), teal (the
   Configuration window's OK), disabled = greyscale */
.stage .hdbtn.gold, .stage .hdbtn.sel {
  --p0: #fffbe6; --p1: #ffe27a; --pband: #fff7cf; --p2: #ffd23f; --p3: #f6a500; --p4: #ffb81f; --prefl: #ffe9a0;
  --plip: #8a5a12; --plip2: #5a3600; --pedge: #a86d00;
  --lbl: #5a3300; --lbl-edge: #2e1800; --lbl-out: #fff4c2; --ico: #ff8a1f; --ico-hi: #ffe0a0; --ico-edge: #5a3300;
}
.stage .hdbtn.teal {
  --p0: #f7ffff; --p1: #94ebef; --pband: #e7fbff; --p2: #29d3de; --p3: #08aec6; --p4: #0096bd; --prefl: #bde6f0;
  --plip: #1d5b6a; --plip2: #002039; --pedge: #004584;
}
.stage .hdbtn:disabled { cursor: default; opacity: 1;
  --p0: #efefef; --p1: #bdbabd; --pband: #e7e7e7; --p2: #adaaad; --p3: #7b797b; --p4: #8a888a; --prefl: #c6c3c6;
  --plip: #5a595a; --plip2: #424142; --pedge: #525152;
  --lbl: #6b6d6b; --lbl-edge: #3a3a3a; --lbl-out: #e8e8e8; --ico: #a8a8a8; --ico-hi: #e0e0e0; --ico-edge: #4a4a4a; --ico-gold: #c8c8c8; }
.stage .hdbtn.thick:disabled { background: linear-gradient(#d6d3d6, #9c9a9c 3px, #7b797b 45%, #6b6d6b calc(100% - 2px), #424142); }
.stage .hdbtn.thin:disabled { background: #525152; }

/* ---- panels ---- */
.stage .hdpanel.frame {
  border: 2px solid #000; border-radius: 10px;
  background: linear-gradient(#b5dbef, #5ab2de 1px, #008ac6 2.5px, #008ac6 calc(100% - 3px), #0065b5 calc(100% - 2px), #002c9c);
}
.stage .hdpanel.frame.navy {     /* the Configuration window's darker frame */
  background: linear-gradient(#b5d3ef, #5a9ed6 1px, #0065bd 2.5px, #0065bd calc(100% - 3px), #0055b5 calc(100% - 2px), #00389c);
}
.stage .hdpanel.inset { background: #003042; border: 1px solid #08ffff; border-radius: 6px; }
.stage .hdpanel.inset.sunk {     /* the cards' lower box: dark edge top-left, pale edge bottom-right */
  border-color: #000 #52baff #52baff #000; border-radius: 4px;
}
.stage .hdpanel.inset.plain { border: 0; border-radius: 8px; }
.stage .hdpanel.title {
  display: flex; align-items: center; gap: 6px; padding-left: 14px; border-radius: 8px 8px 0 0;
  background: linear-gradient(#a5efef, #63dfe7 1px, #08cfd6 2px, #08cfd6 calc(100% - 4px), #00aad6 calc(100% - 3px), #003042 calc(100% - 3px));
}
.stage .hdpanel.title.teal { background: linear-gradient(#63d3d6, #42c7ce 1px, #00b6bd 2px, #00b6bd calc(100% - 4px), #008e94 calc(100% - 3px), #003042 calc(100% - 3px)); }
.stage .hd-title {
  font: 19px/1 'Luckiest Guy', 'Arial Black', Arial, sans-serif; letter-spacing: 1px; color: #fff; text-transform: uppercase;
  -webkit-text-stroke: 3.4px #0b3d78; paint-order: stroke fill; margin-top: 3px;   /* centres the capitals in the cyan part of the strip */
}
.stage .hdpanel.title .hd-ico { width: 28px; height: 28px; margin-top: -1px;
  --ico: #3a6fe8; --ico-hi: #c8dcff; --ico-edge: #0b1f6e; --ico-gold: #ffe23a; }
.stage .hd-mark { display: flex; flex-direction: column; align-items: center; justify-content: space-between; pointer-events: none;
  font: 24px/1 'Luckiest Guy', 'Arial Black', Arial, sans-serif; color: #0d4a60; -webkit-text-stroke: 1px #1b6a86; }
.stage .hdpanel.rule { background: #08ffff; }
.stage .hdpanel.groove { background: #003042; border: 1px solid #08ffff; border-radius: 3px; }
.stage .hdpanel.title.mixed .hd-title { font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; text-transform: none; font-size: 19px; letter-spacing: 0; color: #5cc4f4; margin-top: 0;
  -webkit-text-stroke: 3.4px #001021; background: none; }
.stage .hdpanel.title.mixed .hd-ico { width: 26px; height: 26px; margin-top: 0; --ico-edge: #001021; }

/* ---- lobby ---- */
.stage .art.backdrop { image-rendering: auto; }   /* painted scenery: smoothed, not blocky, behind the vector UI */
.stage .slotfill { position: absolute; top: 551px; width: 107px; height: 45px;
  background: url(../assets/menu/gamelist_back/0.png) no-repeat; }
.stage .slotfill.top { -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.stage .hdpanel.frame.big { border-radius: 4px; }
.stage .hd-pillar { position: absolute; line-height: 0; }
.stage .hdcard .hdpanel.frame { border-radius: 9px; }
.stage .hd-knob { position: absolute; top: 16px; width: 30px; height: 27px; box-sizing: border-box; border: 1.5px solid #000; border-radius: 4px;
  background: linear-gradient(90deg, transparent 0 10%, rgba(140,230,255,.75) 10% 17%, transparent 17% 21%, rgba(140,230,255,.6) 21% 24%, transparent 24% 76%, rgba(140,230,255,.6) 76% 79%, transparent 79% 83%, rgba(140,230,255,.75) 83% 90%, transparent 90%),
    linear-gradient(#5cd2ff, #21aade 18%, #0a86c4 45%, #006da5 75%, #00466e); }
.stage .hd-slash { position: absolute; top: 11px; width: 2px; height: 12px; background: #fff; transform: skewX(-20deg); }
.stage .hdcard .cardbox { transition: background-color .08s; }
.stage .hdcard.used.hover .cardbox { background: #10455a; }
.stage .hdcard.sel .cardbox { background: #185163; border-color: #94aeb5; box-shadow: inset 0 0 0 1px #527984; }
.stage .hd-badge { position: absolute; width: 64px; height: 27px; display: flex; align-items: center; justify-content: center;
  font: 900 18px/1 'Arial Black', Arial, sans-serif; letter-spacing: .5px; color: #59c6ff;
  -webkit-text-stroke: 3.4px #0b2f74; paint-order: stroke fill; text-shadow: 0 0 2px #8be4ff; }
.stage .hd-badge.wait { color: #ffe23a; text-shadow: 0 0 2px #fff6a0; }
.stage .hdcard .hd-ico { --ico-edge: #3a2600; --ico-gold: #ffd84a; }

/* ---- Configuration window ---- */
.stage .txt.opthead { font: 14px Arial, sans-serif; color: #d4efff; text-shadow: 0 1px 0 #001021, 0 0 3px #1d6fd0, 0 0 1px #31a6de; }
.stage .txt.optlbl { font: 11px Arial, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.stage .txt.opttiny { font: bold 7px/1 Arial, sans-serif; letter-spacing: .3px; color: #fff; text-shadow: none; }
.stage .hd-slider { position: absolute; height: 16px; cursor: pointer; touch-action: none; }
.stage .hd-slider .hd-tube { left: 7px; right: 7px; top: 6.5px; }
.stage .hd-slider .hd-fill { position: absolute; left: 7px; top: 6px; height: 4px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(#7fe6ff, #18b8f0 50%, #0a6fc4); box-shadow: 0 0 4px #4fc8ff; }
.stage .hd-slider .hd-knobball { position: absolute; top: 1px; width: 14px; height: 14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, #fff 0, #adffe7 22%, #00cbf7 34%, #0061de 52%, #0051ad 90%); box-shadow: 0 0 0 1px #001a40, 0 0 4px #4fc8ff; }
.stage .hd-slider:hover .hd-knobball { box-shadow: 0 0 0 1px #001a40, 0 0 7px #9ff0ff; }
.stage .hd-tube { position: absolute; height: 3px; border-radius: 1.5px; background: linear-gradient(#397d73, #6baeb5 25%, #addfef 50%, #def3f7 75%, #6baeb5); }
.stage .opt .hd-dot { position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, #f4fbff 0, #c6ebf7 25%, #7bbec6 60%, #317573 100%); box-shadow: 0 0 0 1px #00141c; }
.stage .opt.on .hd-dot { background: radial-gradient(circle at 32% 30%, #fff 0, #adffe7 22%, #00cbf7 34%, #0061de 52%, #0051ad 90%);
  box-shadow: 0 0 0 1px #001a40, 0 0 4px #4fc8ff; }
.stage .opt.on .hd-dot::after { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; border: 1.5px solid #00106b; border-color: transparent #00106b #00106b transparent; }
.stage .opt:hover .hd-dot { box-shadow: 0 0 0 1px #00141c, 0 0 5px #9ff0ff; }

/* buttons that only show a setting (no click): no hover / press */
.stage .hdbtn.static { cursor: default; }
.stage .hdbtn.static:hover .hd-pill::after, .stage .hdbtn.static:active .hd-pill::after { background: none; box-shadow: none; }
.stage .hdbtn.static:active .hd-in { transform: none; }

/* ---- more panel kinds (room) ---- */
.stage .hdpanel.inset.black { border-color: #000; border-radius: 5px; }
.stage .hdpanel.tile { border-radius: 6px; background: #0082bd;   /* the player plate boxes: faintly sunk */
  box-shadow: inset 2px 2px 0 #005194, inset -2px -2px 0 #089ace; }
.stage .hdpanel.card { border: 2px solid #000; border-radius: 8px;  /* the orange map card */
  background: linear-gradient(#f7c38c, #efae6b 1.5px, #ef9a42 3px, #ef9a42 calc(100% - 3px), #e78231 calc(100% - 2px), #de5918); }
.stage .hdpanel.inset.orange { border: 3px solid #ef9a42; border-radius: 8px; box-shadow: 0 0 0 1px #8a4a10; }
.stage .hdpanel.pill { border-radius: 4px; background: linear-gradient(#94d3ef, #21aade 25%, #21aade 80%, #008ec6); box-shadow: inset -1px -1px 0 #006194; }
.stage .artcrop { position: absolute; background: url(../assets/menu/ready_back/0.png) no-repeat; }

/* the room's mobile picker tiles: picture keyed out of the old tile, on a vector tile */
.stage .hdtile { position: absolute; padding: 0; margin: 0; border: 0; border-radius: 6px; cursor: pointer; overflow: hidden; isolation: isolate;
  background: linear-gradient(#5ab2de, #0a90cc 3px, #008ac6 50%, #0079c6 calc(100% - 3px), #0059b5);
  box-shadow: inset 0 0 0 1px #003873, 0 0 0 1px #003042; }
.stage .hdtile:hover { background: linear-gradient(#8fd6f4, #2aa6dc 3px, #1d9ad4 50%, #0a86cc calc(100% - 3px), #0066bd); }
.stage .hdtile.sel { background: linear-gradient(#ffd2bd, #efa694 3px, #e76d52 50%, #de5942 calc(100% - 3px), #b5381c);
  box-shadow: inset 0 0 0 1px #6b1c08, 0 0 0 1px #003042, 0 0 6px 1px rgba(255, 200, 120, .7); }
.stage .hdtile canvas.preview { position: absolute; left: 0; top: 0; }
.stage .hdtile:active canvas.preview { top: 1px; }

/* labels on a frame (no strip), e.g. EXITEM */
.stage .hdpanel.label { display: flex; align-items: center; gap: 6px; }
.stage .hdpanel.label .hd-title { margin-top: 2px; }
.stage .hdpanel.label .hd-ico { width: 24px; height: 24px; --ico: #3a6fe8; --ico-hi: #c8dcff; --ico-edge: #0b1f6e; }
/* list stripes (MY AVATAR / EXITEM): 17 px rows, dark and light in turn, like store_myavatar */
.stage .hdpanel.stripes { border: 2px solid #000; border-radius: 2px;
  background: repeating-linear-gradient(#6baace 0 1px, #1079ad 1px 16px, #104d94 16px 17px, #a5d7ef 17px 18px, #18a2de 18px 33px, #105d9c 33px 34px); }
.stage .hdpanel.box { border: 2px solid #003c6e; border-radius: 6px; background: linear-gradient(#1ea0e0, #008ac6 40%, #0079b5); }
.stage .hdpanel.tube { border: 1.5px solid #000; background: linear-gradient(90deg, #006da5, #21aade 25%, #00e3ff 40%, #21aade 55%, #006da5); }

/* avatar shop cards (store_avatar): frame, scalloped awning, picture, price area */
.stage .hd-scard { position: absolute; left: 1px; top: 0; width: 158px; height: 156px; box-sizing: border-box; border: 1px solid #000; border-radius: 6px;
  background: linear-gradient(#94dfff, #52cfff 3px, #00aeff 20px, #00aeff calc(100% - 9px), #7bdbff calc(100% - 7px), #00b6ff calc(100% - 3px), #000 calc(100% - 2px));
  box-shadow: 0 0 0 1px #003042; }
.stage .hd-awning { position: absolute; left: 7px; right: 7px; top: 1px; height: 22px; border-radius: 4px 4px 0 0;
  background: linear-gradient(#63d3ff, #31c7ff 2px, #00b6ff 6px, #00aaff); }
.stage .hd-awning::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 7px;
  background: radial-gradient(circle at 50% 0, #00aaff 5.5px, #003c6e 5.5px 6.5px, transparent 7px) 0 0 / 14px 7px repeat-x; }
.stage .hd-price { position: absolute; left: 7px; right: 7px; top: 102px; height: 45px; border-top: 1px solid #000; background: linear-gradient(#0a90cc, #008ac6 30%, #007dbd); }
.stage .shopcard.sel .hd-scard { background: linear-gradient(#c6f7ff, #84f3ff 3px, #18d3ff 20px, #18cbff calc(100% - 9px), #c6f3ff calc(100% - 7px), #18cbff calc(100% - 3px), #000 calc(100% - 2px)); }
.stage .shopcard.sel .hd-awning { background: linear-gradient(#a8f6ff, #52e3ff 2px, #18d3ff 6px, #18cbff); }
.stage .shopcard.sel .hd-awning::after { background-image: radial-gradient(circle at 50% 0, #18cbff 5.5px, #003c6e 5.5px 6.5px, transparent 7px); }
.stage .shopcard.sel .hd-price { background: linear-gradient(#3ab6f0, #21a6e7 30%, #1a96d6); }
.stage .shopcard:hover:not(.sel) .hd-price { background: linear-gradient(#1aa0dc, #0a96d4 30%, #0a88c8); }
.stage .shopcard .pic { border-top: 1px solid #a5a6a5; box-sizing: border-box; }
.stage .shopcard .txt.cur { font: 17px/1 Impact, 'Arial Narrow', sans-serif; letter-spacing: .5px; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000; overflow: visible; }
.stage .shopcard .txt.cur.cash { color: #6fe0ff; } .stage .shopcard .txt.cur.gold { color: #ffe36b; }
.stage .shopcard .txt.cur.only { color: #9fd8ff; }
.stage .hdpanel.title.shoptab { border-radius: 10px 10px 0 0; padding-left: 8px; gap: 4px; align-items: flex-start; }
.stage .hdpanel.title.shoptab .hd-ico { width: 28px; height: 28px; margin-top: 5px; }
.stage .hdpanel.title.shoptab .hd-title { font-size: 18px; line-height: 19px; margin-top: 4px; }
.stage .hdpanel.title.shoptab .hd-title .l2 { display: inline-block; padding-left: 38px; }
.stage .myrow .hd-rowsel { position: absolute; left: 18px; top: 0; width: 176px; height: 17px; background: rgba(255, 216, 74, .45); box-shadow: inset 0 0 0 1px #ffd84a; }

/* the CHANNEL title's sharingan turns by its own SVG animation; stopped for people who prefer reduced motion (hdui.js) */

/* ==== Kabooom card theme (the login / Create room / Settings look) on the HD kit ====
   A stage with class kbui gets it: space nebula behind, dark glass frames with a cyan edge glow, burst-logo
   header strips, glass pill buttons with cyan labels, orange for the selected / main action. Same positions,
   same elements as the HD kit, only the look changes. */
.stage.kbui { font: 12px/1.3 system-ui, sans-serif; image-rendering: auto; }
.stage.kbui .kb-nebula { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 26% at 38% 22%, rgba(190, 70, 230, .5), transparent 70%),
    radial-gradient(ellipse 24% 22% at 64% 16%, rgba(40, 210, 225, .38), transparent 70%),
    radial-gradient(ellipse 40% 30% at 14% 70%, rgba(60, 130, 200, .4), transparent 70%),
    radial-gradient(ellipse 40% 34% at 86% 76%, rgba(150, 60, 210, .32), transparent 70%),
    radial-gradient(ellipse 30% 20% at 55% 98%, rgba(255, 130, 40, .18), transparent 70%),
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #cfe8ff, transparent),
    radial-gradient(1px 1px at 33% 82%, #fff, transparent), radial-gradient(1px 1px at 88% 58%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 56% 22%, #e8f4ff, transparent), radial-gradient(1px 1px at 6% 52%, #fff, transparent),
    radial-gradient(1px 1px at 68% 90%, #cfe8ff, transparent), radial-gradient(1px 1px at 44% 8%, #fff, transparent),
    radial-gradient(1px 1px at 95% 30%, #fff, transparent), radial-gradient(1px 1px at 3% 6%, #cfe8ff, transparent),
    radial-gradient(1px 1px at 61% 44%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 40%, #e8f4ff, transparent),
    linear-gradient(160deg, #0a1630, #0d1a3c 45%, #0a1228); }
/* the wordmark in a free corner */
.stage.kbui .kb-brand { position: absolute; display: flex; align-items: center; gap: 7px; pointer-events: none; }
.stage.kbui .kb-brand .kb-logo { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(255, 130, 40, .55)) drop-shadow(0 0 4px rgba(79, 230, 255, .4)); }
.stage.kbui .kb-brand .kb-logo svg { width: 100%; height: 100%; display: block; }
.stage.kbui .kb-brand b { font: 900 italic 19px/1 system-ui, sans-serif; letter-spacing: .5px; color: #ffb457;
  text-shadow: 0 0 10px rgba(255, 130, 40, .55), 0 1px 0 #2a1200; }
.stage.kbui .kb-brand b span { color: #5fe6ff; text-shadow: 0 0 10px rgba(79, 224, 255, .6), 0 1px 0 #0b1029; }

/* buttons: glass pills with a cyan edge; selected / gold = the orange pill */
.stage.kbui .hdbtn { --ico: #4fe0ff; --ico-hi: #c8f8ff; --ico-edge: #07112e; --ico-gold: #ffb457; }
.stage.kbui .hdbtn.thick, .stage.kbui .hdbtn.thin, .stage.kbui .hdbtn.round {
  padding: 0; border: 1px solid rgba(120, 220, 255, .42); border-radius: 10px;
  background: linear-gradient(rgba(255, 255, 255, .07), transparent 45%), linear-gradient(170deg, #1b2556, #0d1331);
  box-shadow: 0 0 9px rgba(79, 224, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 6px rgba(0, 0, 0, .45); }
.stage.kbui .hdbtn.thick { border-radius: 12px; }
.stage.kbui .hdbtn.round { border-radius: 50%; }
.stage.kbui .hd-pill { background: none; box-shadow: none; border-radius: inherit; }
.stage.kbui .hdbtn:hover:not(:disabled) { border-color: #4fe0ff; box-shadow: 0 0 14px rgba(79, 224, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .14); }
.stage.kbui .hdbtn:hover:not(:disabled) .hd-pill::after { background: rgba(79, 224, 255, .08); }
.stage.kbui .hdbtn:active:not(:disabled) .hd-pill::after { background: rgba(0, 0, 0, .18); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45); }
.stage.kbui .hd-lbl { font: 800 1em/1 system-ui, sans-serif; letter-spacing: .06em; color: #dff6ff; -webkit-text-stroke: 0;
  text-shadow: 0 0 7px rgba(79, 224, 255, .55), 0 1px 0 #07112e; }
.stage.kbui .hdbtn.sel, .stage.kbui .hdbtn.gold { border-color: #ffc07a; background: linear-gradient(#ffb457, #f07c12);
  box-shadow: 0 0 12px rgba(255, 140, 40, .5), inset 0 1px 0 rgba(255, 255, 255, .35); --ico: #2a1200; --ico-edge: #ffd9a8; --ico-gold: #fff2d8; }
.stage.kbui .hdbtn.sel .hd-lbl, .stage.kbui .hdbtn.gold .hd-lbl { color: #2a1200; text-shadow: 0 1px 0 rgba(255, 230, 190, .5); }
.stage.kbui .hdbtn.sel:hover:not(:disabled), .stage.kbui .hdbtn.gold:hover:not(:disabled) { border-color: #ffd9a8; box-shadow: 0 0 16px rgba(255, 150, 50, .7); }
.stage.kbui .hdbtn:disabled { opacity: .42; filter: saturate(.4); --ico: #8fa6c8; --ico-gold: #b8c4da; --ico-edge: #07112e; --lbl: #cfd8ea; }
.stage.kbui .hdbtn:disabled .hd-lbl { color: #b8c4da; text-shadow: none; }
.stage.kbui .hdbtn.static:hover { border-color: rgba(120, 220, 255, .42); box-shadow: 0 0 9px rgba(79, 224, 255, .16); }
.stage.kbui .hdbtn.icononly .hd-ico { width: 70%; height: 62%; }
.stage.kbui .hdbtn.round.icononly .hd-ico { width: 62%; height: 62%; }
.stage.kbui .hd-ico * { stroke-width: 2; }
/* the main action (Create, Join): orange like the dialogs' OK */
.stage.kbui .hdbtn.kbgo:not(:disabled) { border-color: #ffc07a; background: linear-gradient(rgba(255, 255, 255, .25), transparent 50%), linear-gradient(#ffad4a, #f07c12);
  box-shadow: 0 0 14px rgba(255, 130, 30, .45), 0 3px 10px rgba(0, 0, 0, .5); --ico: #fff3e0; --ico-edge: #5a2600; --ico-gold: #fff3e0; }
.stage.kbui .hdbtn.kbgo:not(:disabled) .hd-lbl { color: #2a1200; text-shadow: 0 1px 0 rgba(255, 230, 190, .55); }
.stage.kbui .hdbtn.kbgo:hover:not(:disabled) { border-color: #ffe0b8; box-shadow: 0 0 20px rgba(255, 150, 50, .75); }

/* panels: dark glass with a cyan edge glow; insets are sunken tracks; titles are the burst header strip */
.stage.kbui .hdpanel.frame { border: 1px solid rgba(120, 220, 255, .4); border-radius: 12px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(150, 70, 220, .26), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(40, 200, 230, .15), transparent 60%),
    linear-gradient(170deg, rgba(20, 28, 66, .92), rgba(11, 16, 41, .94));
  box-shadow: 0 0 18px rgba(79, 224, 255, .2), 0 8px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07); }
.stage.kbui .hdpanel.inset { background: rgba(4, 8, 26, .62); border: 1px solid rgba(120, 220, 255, .16); border-radius: 8px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6); }
.stage.kbui .hdpanel.rule { background: linear-gradient(90deg, transparent, rgba(79, 224, 255, .5), transparent); }
.stage.kbui .hdpanel.groove { background: rgba(4, 8, 26, .7); border: 1px solid rgba(120, 220, 255, .14); border-radius: 3px; box-shadow: inset 0 1px 2px #000; }
.stage.kbui .hdpanel.title { gap: 7px; padding-left: 12px; border-radius: 11px 11px 0 0;
  background: linear-gradient(90deg, rgba(255, 138, 42, .3), rgba(120, 70, 220, .26) 55%, rgba(79, 224, 255, .18));
  border-bottom: 1px solid rgba(79, 224, 255, .45); box-shadow: 0 1px 10px rgba(79, 224, 255, .22); }
.stage.kbui .hd-title { font: 800 13px/1 system-ui, sans-serif; letter-spacing: 1.6px; color: #fff; -webkit-text-stroke: 0; margin: 0;
  text-shadow: 0 0 8px rgba(79, 224, 255, .65), 0 1px 0 #0b1029; }
.stage.kbui .hdpanel.title .hd-ico { width: 18px; height: 18px; margin: 0; --ico: #4fe0ff; --ico-hi: #c8f8ff; --ico-edge: #07112e; --ico-gold: #ffb457; }
.stage.kbui .hd-mark { display: none; }

/* lobby: player box, room cards and the conduit between the two columns */
.stage.kbui .rankicon { background: none; }
.stage.kbui .txt { text-shadow: 0 1px 2px #000; }
.stage.kbui .txt.nickw { font-weight: 700; color: #f2f6ff; }
.stage.kbui .txt.gold, .stage.kbui .txt.cash { font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.stage.kbui .txt.gold { color: #ffc46b; } .stage.kbui .txt.cash { color: #6fe6ff; }
.stage.kbui .hdcard .hdpanel.frame { border-radius: 10px; box-shadow: 0 0 10px rgba(79, 224, 255, .14), 0 4px 12px rgba(0, 0, 0, .4); }
.stage.kbui .hdcard.used .hdpanel.frame { border-color: rgba(120, 220, 255, .55); }
.stage.kbui .hdcard:not(.used) { opacity: .55; }
.stage.kbui .hdcard.used.hover .hdpanel.frame { border-color: #4fe0ff; box-shadow: 0 0 16px rgba(79, 224, 255, .4); }
.stage.kbui .hdcard.used.hover .cardbox { background: rgba(30, 60, 110, .55); }
.stage.kbui .hdcard.sel .hdpanel.frame { border-color: #ffb457; box-shadow: 0 0 18px rgba(255, 140, 40, .55), inset 0 0 12px rgba(255, 140, 40, .15); }
.stage.kbui .hdcard.sel .cardbox { background: rgba(70, 40, 20, .5); border-color: rgba(255, 180, 87, .45); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .5); }
.stage.kbui .hdcard .txt.cardtitle { font-weight: 700; color: #f2f6ff; }
.stage.kbui .hd-knob { top: 22px; width: 30px; height: 14px; border: 1px solid rgba(120, 220, 255, .6); border-radius: 7px;
  background: linear-gradient(#2a5a9e, #0d1d44); box-shadow: 0 0 8px rgba(79, 224, 255, .45); }
.stage.kbui .hdcard.sel .hd-knob { border-color: #ffc07a; background: linear-gradient(#ffb457, #f07c12); box-shadow: 0 0 10px rgba(255, 140, 40, .7); }
.stage.kbui .hd-slash { background: rgba(160, 200, 255, .55); }
.stage.kbui .hd-badge { margin-top: 4px; height: 18px; width: 58px; border-radius: 9px; font: 800 10px/1 system-ui, sans-serif; letter-spacing: 1.4px;
  -webkit-text-stroke: 0; color: #bff6ff; border: 1px solid rgba(79, 224, 255, .6); background: rgba(79, 224, 255, .12); text-shadow: 0 0 6px rgba(79, 224, 255, .7); }
.stage.kbui .hd-badge.wait { color: #2a1200; border-color: #ffc07a; background: linear-gradient(#ffb457, #f07c12); text-shadow: none; box-shadow: 0 0 8px rgba(255, 140, 40, .45); }
.stage.kbui .hd-badge.full { color: #ffb0a0; border-color: rgba(255, 120, 100, .6); background: rgba(255, 90, 70, .12); text-shadow: 0 0 6px rgba(255, 90, 70, .6); }
.stage.kbui .hdcard .hd-ico { --ico-edge: #2a1200; --ico-gold: #ffb457; }
.stage.kbui .chatlog .nick { color: #5fe6ff; font-weight: 600; }
.stage.kbui .chatlog .sys { color: #ffc46b; }
.stage.kbui .chatlog .sys.title { color: #ff9a4a; font-weight: 700; }
.stage.kbui .motd, .stage.kbui .chatlog div { font-size: 12px; }
.stage.kbui input.say { font: 12px system-ui, sans-serif; color: #fff; }
.stage.kbui input.say::placeholder { color: rgba(200, 215, 255, .4); }
.stage.kbui input.say:focus { box-shadow: 0 0 0 1px rgba(79, 224, 255, .55); border-radius: 6px; }
.stage.kbui .cplayer { gap: 6px; padding: 3px 4px; border-radius: 6px; font-size: 12px; }
.stage.kbui .cplayer:nth-child(odd) { background: rgba(120, 160, 255, .06); }
.stage.kbui .guild { color: #ff9a4a; }
.stage.kbui .hdpanel.frame.big { border-radius: 12px; }
.stage.kbui .hdpanel.title.kbtail { background: linear-gradient(90deg, rgba(79, 224, 255, .18), rgba(79, 224, 255, .26)); }
.stage.kbui .hdbtn.thick .hd-lbl { letter-spacing: .03em; }
.stage.kbui .kb-brand .kb-logo { width: 30px; height: 30px; }
.stage.kbui .kb-brand { gap: 5px; }
.stage.kbui .kb-brand b { font-size: 16px; }

/* room: player tiles, the orange map card, the mobile picker */
.stage.kbui .hdpanel.inset.black { border-color: rgba(120, 220, 255, .16); border-radius: 8px; }
.stage.kbui .hdpanel.inset.orange { border: 1px solid rgba(255, 180, 87, .5); border-radius: 8px; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6), 0 0 10px rgba(255, 140, 40, .18); }
.stage.kbui .hdpanel.tile { border-radius: 10px; border: 1px solid rgba(120, 220, 255, .22);
  background: radial-gradient(100% 70% at 50% 0%, rgba(79, 224, 255, .1), transparent 70%), rgba(6, 10, 30, .55);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .55); }
.stage.kbui .hdpanel.card { border: 1px solid #ffc07a; border-radius: 10px; box-shadow: 0 0 16px rgba(255, 140, 40, .45), 0 6px 16px rgba(0, 0, 0, .5); }
.stage.kbui .hdpanel.pill { border-radius: 8px; background: linear-gradient(#ffb457, #f07c12); box-shadow: 0 0 8px rgba(255, 140, 40, .45); }
.stage.kbui .hdtile { border-radius: 8px; background: linear-gradient(rgba(255, 255, 255, .06), transparent 50%), linear-gradient(170deg, #1b2556, #0d1331);
  box-shadow: inset 0 0 0 1px rgba(120, 220, 255, .35); }
.stage.kbui .hdtile:hover { background: linear-gradient(rgba(79, 224, 255, .16), rgba(79, 224, 255, .04)), linear-gradient(170deg, #1f2c64, #0f1638);
  box-shadow: inset 0 0 0 1px #4fe0ff, 0 0 10px rgba(79, 224, 255, .4); }
.stage.kbui .hdtile.sel { background: linear-gradient(#ffb457, #f07c12); box-shadow: inset 0 0 0 1px #ffd9a8, 0 0 12px rgba(255, 140, 40, .7); }
.stage.kbui .botplate.empty { border: 1px dashed rgba(120, 220, 255, .25); box-sizing: border-box; border-radius: 10px; }
.stage.kbui .botplate.empty span { font: 800 11px system-ui, sans-serif; letter-spacing: 1.2px; color: rgba(191, 246, 255, .4); text-shadow: none; }
.stage.kbui .botplate.empty:hover { background: rgba(79, 224, 255, .08); border-color: #4fe0ff; }
.stage.kbui .botplate.empty:hover span { color: #bff6ff; text-shadow: 0 0 6px rgba(79, 224, 255, .7); }
.stage.kbui .kb-brand.big { gap: 8px; }
.stage.kbui .kb-brand.big .kb-logo { width: 38px; height: 38px; }
.stage.kbui .kb-brand.big b { font-size: 24px; }

/* avatar shop: glass item cards with a header strip, spotlight picture, dark price band; list stripes as glass rows */
.stage.kbui .hdpanel.title.shoptab { align-items: center; padding-left: 10px; gap: 8px; border-radius: 12px 12px 0 0; border: 1px solid rgba(120, 220, 255, .4); border-bottom-color: rgba(79, 224, 255, .5); }
.stage.kbui .hdpanel.title.shoptab .hd-ico { width: 26px; height: 26px; margin: 0; }
.stage.kbui .hdpanel.title.shoptab .hd-title { font-size: 15px; line-height: 17px; margin: 0; }
.stage.kbui .hdpanel.title.shoptab .hd-title .l2 { padding-left: 0; color: #ffb457; text-shadow: 0 0 8px rgba(255, 130, 40, .6), 0 1px 0 #2a1200; }
.stage.kbui .hdpanel.tube { border: 1px solid rgba(120, 220, 255, .45); border-radius: 5px; background: linear-gradient(90deg, #0b1029, #4fe0ff 50%, #0b1029); box-shadow: 0 0 8px rgba(79, 224, 255, .5); }
.stage.kbui .hdpanel.stripes { border: 1px solid rgba(120, 220, 255, .18); border-radius: 6px;
  background: repeating-linear-gradient(rgba(120, 160, 255, .07) 0 16px, rgba(120, 220, 255, .1) 16px 17px, rgba(4, 8, 26, .5) 17px 33px, rgba(120, 220, 255, .1) 33px 34px), rgba(4, 8, 26, .55); }
.stage.kbui .hdpanel.box { border: 1px solid rgba(255, 180, 87, .45); border-radius: 8px;
  background: radial-gradient(90% 80% at 50% 30%, rgba(150, 90, 230, .45), transparent 75%), #0d1331; box-shadow: 0 0 10px rgba(255, 140, 40, .2); }
.stage.kbui .myrow span { text-shadow: 0 1px 2px #000; font: 12px/17px system-ui, sans-serif; }
.stage.kbui .myrow .hd-rowsel { background: rgba(255, 150, 50, .28); box-shadow: inset 0 0 0 1px #ffb457; border-radius: 3px; }
.stage.kbui .myrow:hover span { color: #bff6ff; }
.stage.kbui .hd-scard { border: 1px solid rgba(120, 220, 255, .45); border-radius: 10px; box-shadow: 0 0 10px rgba(79, 224, 255, .15), 0 4px 10px rgba(0, 0, 0, .4);
  background: radial-gradient(100% 60% at 0% 0%, rgba(150, 70, 220, .3), transparent 60%), linear-gradient(170deg, #141c44, #0b1029); }
.stage.kbui .hd-awning { left: 1px; right: 1px; top: 0; height: 23px; border-radius: 9px 9px 0 0;
  background: linear-gradient(90deg, rgba(255, 138, 42, .3), rgba(120, 70, 220, .3) 55%, rgba(79, 224, 255, .2)); border-bottom: 1px solid rgba(79, 224, 255, .45); }
.stage.kbui .hd-awning::after { display: none; }
.stage.kbui .hd-price { border-top: 1px solid rgba(120, 220, 255, .2); border-radius: 0 0 6px 6px; background: rgba(4, 8, 26, .55); }
.stage.kbui .shopcard .pic { border: 0; border-radius: 6px; background: radial-gradient(70% 90% at 50% 45%, #e9eeff, #b8c4ee 60%, #7d8cc8); }
.stage.kbui .shopcard:hover:not(.sel) .hd-scard { border-color: #4fe0ff; box-shadow: 0 0 14px rgba(79, 224, 255, .4); }
.stage.kbui .shopcard:hover:not(.sel) .hd-price { background: rgba(20, 40, 90, .55); }
.stage.kbui .shopcard.sel .hd-scard { border-color: #ffb457; background: radial-gradient(100% 60% at 0% 0%, rgba(255, 140, 40, .3), transparent 60%), linear-gradient(170deg, #1c1c44, #0b1029); }
.stage.kbui .shopcard.sel .hd-awning { background: linear-gradient(90deg, rgba(255, 160, 60, .65), rgba(255, 120, 30, .35)); border-bottom-color: #ffb457; }
.stage.kbui .shopcard.sel .hd-price { background: rgba(60, 30, 10, .5); }
.stage.kbui .shopcard.sel .pic { background: radial-gradient(70% 90% at 50% 45%, #fff6e6, #ffd9a8 60%, #e8a060); }
.stage.kbui .shopcard.sel::after { inset: 0; border: 1px solid #ffc07a; border-radius: 10px; box-shadow: 0 0 16px 2px rgba(255, 140, 40, .6); }
.stage.kbui .shopcard .txt.cardtitle { color: #f2f6ff; font-weight: 700; }
.stage.kbui .shopcard .txt.cur { font: 800 12px/14px system-ui, sans-serif; letter-spacing: .8px; text-shadow: 0 0 6px currentColor; }
.stage.kbui .shopcard .txt.cur.gold { color: #ffc46b; } .stage.kbui .shopcard .txt.cur.cash { color: #6fe6ff; }
.stage.kbui .shopcard .txt.cur.only { color: #8fa6c8; text-shadow: none; }
.stage.kbui .price { font: 800 13px system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
.stage.kbui .price.goldp { color: #ffc46b; } .stage.kbui .price.cashp { color: #6fe6ff; }
.stage.kbui .statv { font: 700 11px system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
.stage.kbui .shopwin .msg { font: 12px/16px system-ui, sans-serif; }
.stage.kbui .shopwin .kb-desc { white-space: pre-line; font-size: 12px; }
.stage.kbui .shopwin .kb-actions { gap: 8px; justify-content: flex-start; }
.stage.kbui .shopwin .kb-actions .kb-go { min-width: 90px; }
.stage.kbui .shopwin .kb-actions .kb-link { margin-left: auto; }
.stage.kbui .shopwin .kb-go:disabled { opacity: .4; filter: grayscale(.8); cursor: default; }

/* ---- Kabooom floating cards (buddy list, talk, add / remove buddy, Admin CP) and lists (ranking) ---- */
.stage .kb-card.kb-float { box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 22px rgba(79, 224, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.stage .kb-card .kb-head h3 small { font-size: 11px; font-weight: 600; color: #9fb3e6; text-shadow: none; letter-spacing: .3px; }
.stage .kb-count { flex: none; padding: 2px 7px; border-radius: 9px; font: 800 10px/1.2 system-ui, sans-serif; letter-spacing: .5px; color: #2a1200;
  background: linear-gradient(#ffb457, #f07c12); box-shadow: 0 0 6px rgba(255, 140, 40, .5); }
.stage .kb-list { position: relative; overflow-y: auto; border-radius: 8px; background: rgba(4, 8, 26, .55); border: 1px solid rgba(120, 220, 255, .16);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6); scrollbar-width: thin; scrollbar-color: rgba(79, 224, 255, .45) transparent; user-select: text; }
.stage .kb-list::-webkit-scrollbar { width: 6px; } .stage .kb-list::-webkit-scrollbar-thumb { background: rgba(79, 224, 255, .45); border-radius: 3px; }
.stage .kb-empty { padding: 18px 8px; text-align: center; color: #8fa6c8; }
.stage .kb-buddies { height: 196px; padding: 3px; user-select: none; }
.stage .kb-brow { display: flex; align-items: center; gap: 7px; padding: 3px 7px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.stage .kb-brow + .kb-brow { margin-top: 2px; }
.stage .kb-brow img { width: 15px; height: 25px; flex: none; }
.stage .kb-brow .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.stage .kb-brow .who b, .stage .kb-brow .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .kb-brow .who b { color: #f2f6ff; font-size: 12px; } .stage .kb-brow .who small { color: #6fe6ff; font-size: 10px; }
.stage .kb-brow .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #5df07a; box-shadow: 0 0 6px #5df07a; }
.stage .kb-brow.off { opacity: .5; } .stage .kb-brow.off .dot { background: #56607a; box-shadow: none; } .stage .kb-brow.off .who small { color: #8fa6c8; }
.stage .kb-brow:hover { background: rgba(79, 224, 255, .08); border-color: rgba(79, 224, 255, .35); }
.stage .kb-brow.sel { background: rgba(255, 150, 50, .2); border-color: #ffb457; box-shadow: 0 0 8px rgba(255, 140, 40, .35); }
.stage .kb-tools { display: flex; gap: 5px; margin-top: 8px; }
.stage .kb-tool { position: static; flex: 1; height: 24px; padding: 0 6px; border-radius: 12px; border: 1px solid rgba(120, 220, 255, .4);
  background: linear-gradient(rgba(255, 255, 255, .07), transparent 50%), linear-gradient(170deg, #1b2556, #0d1331); color: #dff6ff;
  font: 700 11px system-ui, sans-serif; letter-spacing: .3px; cursor: pointer; box-shadow: none; text-shadow: 0 0 6px rgba(79, 224, 255, .45); }
.stage .kb-tool:hover:not(:disabled) { border-color: #4fe0ff; box-shadow: 0 0 10px rgba(79, 224, 255, .4); }
.stage .kb-tool:first-child { border-color: #ffc07a; background: linear-gradient(#ffb457, #f07c12); color: #2a1200; text-shadow: none; }
.stage .kb-tool:disabled { opacity: .4; cursor: default; }
.stage .kb-card .talklog { height: 190px; margin-bottom: 7px; padding: 5px 7px; font-size: 12px; }
.stage .kb-card .talklog .nick { color: #5fe6ff; font-weight: 600; }
.stage .kb-card .talklog .sys { color: #ffc46b; }
/* ranking */
.stage .kb-rankwin .kb-rank { height: 320px; }
.stage .kb-rhead, .stage .kb-rrow { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.stage .kb-rhead { margin: 0 0 4px; color: #4fe0ff; font: 700 10px system-ui, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
.stage .kb-rrow { height: 29px; font-size: 12px; }
.stage .kb-rrow:nth-child(odd) { background: rgba(120, 160, 255, .06); }
.stage .kb-rrow img { width: 15px; height: 25px; flex: none; }
.stage .kb-rhead .c1, .stage .kb-rrow .c1 { width: 28px; text-align: right; flex: none; color: #9fb3e6; font-weight: 700; }
.stage .kb-rhead .c2 { margin-left: 23px; }
.stage .kb-rhead .c2, .stage .kb-rrow .c2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f2f6ff; }
.stage .kb-rhead .c2 { color: inherit; }
.stage .kb-rhead .c3, .stage .kb-rrow .c3 { width: 80px; text-align: right; flex: none; }
.stage .kb-rrow .c3 { color: #ffc46b; font-weight: 700; }
.stage .kb-rrow.top .c1 { font-size: 14px; color: #ffb457; text-shadow: 0 0 6px rgba(255, 140, 40, .7); }
.stage .kb-rrow.t1 .c2 { color: #ffd9a8; font-weight: 700; }
.stage .kb-rrow.me { background: rgba(79, 224, 255, .16); box-shadow: inset 3px 0 0 #4fe0ff; }

/* ---- results (over the battle field): headline, two team cards, Back to the room ---- */
#result .stage.kbui { overflow: visible; }
.stage.kbui .kb-result-title { position: absolute; left: 0; right: 0; top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.stage.kbui .kb-result-title .kb-logo { width: 52px; height: 52px; filter: drop-shadow(0 0 12px rgba(255, 130, 40, .7)) drop-shadow(0 0 6px rgba(79, 230, 255, .5)); }
.stage.kbui .kb-result-title .kb-logo svg { width: 100%; height: 100%; display: block; }
.stage.kbui .kb-result-title b { font: 900 italic 38px/1 system-ui, sans-serif; letter-spacing: 1px; color: #bff6ff;
  text-shadow: 0 0 14px rgba(79, 224, 255, .8), 0 2px 0 #0b1029, 0 0 30px rgba(0, 0, 0, .8); }
.stage.kbui .kb-result-title.won b { color: #ffb457; text-shadow: 0 0 16px rgba(255, 130, 40, .85), 0 2px 0 #2a1200, 0 0 30px rgba(0, 0, 0, .8); }
.stage .kb-card.kb-result { top: 96px; width: 360px; padding-bottom: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 22px rgba(79, 224, 255, .3); }
.stage .kb-card.kb-result.win { border-color: #ffc07a; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 140, 40, .55); }
.stage .kb-result .kb-head { cursor: default; }
.stage .kb-result.win .kb-head { background: linear-gradient(90deg, rgba(255, 150, 50, .55), rgba(255, 120, 30, .25) 60%, rgba(120, 70, 220, .2)); border-bottom-color: #ffb457; }
.stage .kb-team { width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font: 900 15px/1 system-ui, sans-serif; color: #07112e; background: radial-gradient(circle at 35% 30%, #fff, #8fe9ff 45%, #2aa6d6); box-shadow: 0 0 8px rgba(79, 224, 255, .6); }
.stage .kb-result.teamb .kb-team { background: radial-gradient(circle at 35% 30%, #fff, #ffd28f 45%, #f07c12); box-shadow: 0 0 8px rgba(255, 140, 40, .6); }
.stage .kb-wl { padding: 3px 9px; border-radius: 10px; font: 800 11px/1 system-ui, sans-serif; letter-spacing: 1.6px; color: #9fb3e6; border: 1px solid rgba(160, 185, 255, .35); }
.stage .kb-result.win .kb-wl { color: #2a1200; border-color: #ffd9a8; background: linear-gradient(#ffb457, #f07c12); box-shadow: 0 0 8px rgba(255, 140, 40, .6); }
.stage .kb-rres { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; background: rgba(4, 8, 26, .5); border: 1px solid rgba(120, 220, 255, .14); }
.stage .kb-rres + .kb-rres { margin-top: 5px; }
.stage .kb-rres .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.stage .kb-rres .who b { font-size: 13px; color: #f2f6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .kb-rres .who small { font-size: 10px; color: #9fb3e6; }
.stage .kb-rres .gain { flex: none; padding: 3px 8px; border-radius: 10px; font: 800 11px/1 system-ui, sans-serif; background: rgba(5, 10, 30, .6); }
.stage .kb-rres .gain.gold { color: #ffc46b; border: 1px solid rgba(255, 180, 87, .4); }
.stage .kb-rres .gain.gp { color: #6fe6ff; border: 1px solid rgba(79, 224, 255, .4); }
.stage.kbui .kb-result-ok { position: absolute; left: 0; right: 0; top: 470px; display: flex; justify-content: center; }
.stage.kbui .kb-result-ok .kb-go { min-width: 180px; height: 36px; border-radius: 18px; font-size: 15px; }

/* ---- Admin CP as a floating Kabooom card (the .adminwin rules in index.html are the old look; these win) ---- */
.stage .kb-card.adminwin .kb-head button.kb-x { margin: 0; padding: 0; font: 12px/1 system-ui, sans-serif; color: #b9c6ee; }
.stage .kb-card.adminwin .awho { margin: 0 0 8px; }
.stage .kb-card.adminwin .aform { height: 26px; margin: 0; padding: 4px 9px; border-radius: 6px; font: 12px system-ui, sans-serif; color: #fff;
  background: rgba(5, 10, 30, .6); border: 1px solid rgba(160, 185, 255, .28); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.stage .kb-card.adminwin .aform:focus { border-color: #4fe0ff; box-shadow: 0 0 0 2px rgba(79, 224, 255, .22); }
.stage .kb-card.adminwin .aform.want { border-color: #ff9a4a; box-shadow: 0 0 0 2px rgba(255, 140, 40, .35); }
.stage .kb-card.adminwin select.aform option { background: #0d1331; }
.stage .kb-card.adminwin .atabs { margin: 0 0 8px; padding: 2px; gap: 4px; border-radius: 13px; background: rgba(5, 10, 30, .55); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.stage .kb-card.adminwin .atabs button { height: 22px; margin: 0; padding: 0; border: 0; border-radius: 11px; background: none; box-shadow: none;
  font: 700 11px system-ui, sans-serif; letter-spacing: .4px; color: #b9c6ee; }
.stage .kb-card.adminwin .atabs button:hover:not(.on) { color: #fff; background: rgba(255, 255, 255, .07); }
.stage .kb-card.adminwin .atabs button.on { background: linear-gradient(#ffb457, #f07c12); color: #2a1200; box-shadow: 0 0 8px rgba(255, 140, 40, .5); }
.stage .kb-card.adminwin .apage .asec { margin: 0 0 8px; padding: 7px 9px 9px; border-radius: 8px; background: rgba(4, 8, 26, .5);
  border: 1px solid rgba(120, 220, 255, .16); border-left: 2px solid rgba(79, 224, 255, .6); }
.stage .kb-card.adminwin .apage .asec h3 { margin: 0 0 6px; color: #4fe0ff; font: 700 10px system-ui, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
.stage .kb-card.adminwin .apage .asec button { height: 26px; margin: 0; padding: 0 12px; border-radius: 13px; border: 1px solid rgba(120, 220, 255, .4);
  background: linear-gradient(rgba(255, 255, 255, .07), transparent 50%), linear-gradient(170deg, #1b2556, #0d1331); color: #dff6ff;
  font: 700 11px system-ui, sans-serif; letter-spacing: .3px; text-shadow: 0 0 6px rgba(79, 224, 255, .45); cursor: pointer; }
.stage .kb-card.adminwin .apage .asec button:hover { border-color: #4fe0ff; box-shadow: 0 0 10px rgba(79, 224, 255, .4); }
.stage .kb-card.adminwin .apage .asec button.warn { color: #ffb0a0; border-color: rgba(255, 120, 100, .55); text-shadow: 0 0 6px rgba(255, 90, 70, .5); }
.stage .kb-card.adminwin .apage .asec button.warn:hover { border-color: #ff7a5a; box-shadow: 0 0 10px rgba(255, 90, 70, .45); }
.stage .kb-card.adminwin .apage .arow + .arow { margin-top: 6px; }
.stage .kb-card.adminwin .acheck { color: #e6ecff; font: 12px system-ui, sans-serif; }
.stage .kb-card.adminwin .acheck input { width: auto; height: auto; accent-color: #4fe0ff; }
.stage .kb-card.adminwin .adminlog { position: static; height: 70px; margin-top: 2px; padding: 5px 8px; border-radius: 8px; color: #ffc46b; font: 11px/1.35 ui-monospace, Menlo, monospace;
  background: rgba(4, 8, 26, .6); border: 1px solid rgba(255, 180, 87, .3); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6); }
.stage .kb-card.keepwin .kb-go { min-width: 150px; }
