/* Mini Fighter lobby. One visual world taken from the original client's windows: bright blue frames
   with a pale rim and two rivets, deep navy wells inside, black title plates with gold lettering. */
:root {
  color-scheme: dark;
  --frame: #1479d6;
  --frame-hi: #3aa2f2;
  --rim: #a8e0ff;
  --well: #0b2a5c;
  --well-deep: #061a3d;
  --ink: #eef6ff;
  --muted: #9dbde4;
  --gold: #ffc93c;
  --gold-deep: #e08a12;
  --ok: #5fe38a;
  --bad: #ff6a5c;
  --ground: #05122b;
  --display: 'Russo One', 'Noto Sans TC', system-ui, sans-serif;
  --body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
}
html, body { height: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--ground); color: var(--ink); font: 14px/1.5 var(--body);
  background-image: radial-gradient(1200px 500px at 50% -10%, #12407e 0%, transparent 70%), linear-gradient(#071a3c, #05122b 60%);
}
.app { max-width: 1120px; margin: 0 auto; padding-block: 16px 24px; padding-inline: 16px; display: grid; gap: 12px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- windows ---------- */
.win {
  position: relative; background: linear-gradient(var(--frame-hi), var(--frame) 40px); border: 2px solid var(--rim);
  border-radius: 5px; padding: 22px 6px 6px; box-shadow: 0 4px 0 #031230, 0 10px 24px #0008; min-width: 0;
}
.win::before, .win::after { content: ''; position: absolute; top: 5px; width: 6px; height: 9px; background: linear-gradient(#fff, #9fb8d6); border: 1px solid #1d3f6b; }
.win::before { left: 8px; } .win::after { right: 8px; }
.win > h2 {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); margin: 0; padding: 2px 18px;
  background: linear-gradient(#2b2b2b, #000); border: 2px solid #6e7d95; border-radius: 6px; white-space: nowrap;
  font: 900 15px/1.4 var(--body); letter-spacing: .08em; color: var(--gold); text-shadow: 0 1px 0 #7a4300;
}
.well { background: var(--well); border: 2px solid var(--well-deep); border-radius: 3px; padding: 12px; min-width: 0; }
.well.deep { background: var(--well-deep); border-color: #02102a; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 4px 14px;
  background: linear-gradient(#3fb0ff, #0b6ed0 55%, #0a5fb8); border: 2px solid var(--rim); border-radius: 5px;
  font-weight: 700; letter-spacing: .04em; text-shadow: 0 1px 0 #03305f; box-shadow: 0 2px 0 #031230;
}
.btn:hover { filter: brightness(1.12); } .btn:active { transform: translateY(1px); box-shadow: none; }
.btn.gold { background: linear-gradient(#ffe27a, var(--gold) 50%, var(--gold-deep)); color: #3a1d00; text-shadow: none; border-color: #fff1bd; }
.btn.ghost { background: #0b2a5c; border-color: #3b6fb0; }
.btn:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }
.field { display: grid; gap: 4px; }
.field span { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.field input, .field select { background: #fff; color: #0b2040; border: 2px solid #7fb6e8; border-radius: 3px; padding: 7px 9px; min-width: 0; }
.coin { font-variant-numeric: tabular-nums; font-family: var(--display); color: var(--gold); letter-spacing: .02em; }

/* ---------- login ---------- */
.login { display: grid; place-items: center; min-height: min(640px, 90vh); }
.login .win { width: min(420px, 100%); }
.logo { text-align: center; padding-block: 8px 14px; }
.logo b { display: block; font: 36px/1 var(--display); letter-spacing: .04em; color: #fff;
  -webkit-text-stroke: 1px #0a3b7a; text-shadow: 0 3px 0 #0a3b7a, 0 0 18px #4fb2ff99; }
.logo b em { font-style: normal; color: var(--gold); }
.logo small { color: var(--muted); letter-spacing: .3em; font-size: 11px; }
.login form { display: grid; gap: 12px; }
.login .note { color: var(--muted); font-size: 12px; margin: 0; }
.login .row { display: flex; gap: 8px; flex-wrap: wrap; } .login .row .btn { flex: 1 1 140px; }
.err { color: var(--bad); min-height: 1.4em; margin: 0; font-size: 13px; }

/* ---------- lobby top bar ---------- */
.offline { background: #3a2b00; border: 1px solid #8a6a10; color: #ffe39a; border-radius: 4px; padding: 6px 10px; font-size: 13px; }
.topbar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.me { flex: 1 1 280px; display: flex; gap: 12px; align-items: center; }
.me canvas { width: 56px; height: 56px; background: var(--well-deep); border: 2px solid #3b6fb0; border-radius: 4px; image-rendering: pixelated; flex: none; }
.me .who { min-width: 0; flex: 1; display: grid; gap: 3px; }
.me .who strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv { font-family: var(--display); color: var(--gold); font-size: 12px; margin-right: 6px; }
.exp { height: 8px; background: #031230; border: 1px solid #3b6fb0; border-radius: 4px; overflow: hidden; }
.exp i { display: block; height: 100%; background: linear-gradient(90deg, #7ef0a0, #39c46a); }
.me .rec { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.wallet { flex: 1 1 auto; justify-content: space-between; display: flex; align-items: center; gap: 10px; }
.wallet .amount { display: grid; line-height: 1.1; }
.wallet .amount small { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.wallet .amount .coin { font-size: 22px; }
.wallet-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.menu { display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; flex: 1 1 auto; justify-content: space-around; }
.menu .icon-btn { display: grid; justify-items: center; align-content: end; gap: 2px; width: 64px; min-height: 64px; padding: 4px;
  background: linear-gradient(#123e7c, #0a2654); border: 2px solid #3b6fb0; border-radius: 5px; font-size: 12px; font-weight: 700; }
.menu .icon-btn img { image-rendering: pixelated; height: 32px; width: auto; }
.menu .icon-btn:hover { border-color: var(--rim); }

/* ---------- main grid ---------- */
.main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 820px) { .main { grid-template-columns: minmax(0, 1fr); } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rooms { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rooms th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .06em; padding: 4px 8px; border-bottom: 1px solid #1d4a8a; }
.rooms td { padding: 8px; border-bottom: 1px solid #0f3470; white-space: nowrap; }
.rooms th { white-space: nowrap; }
.rooms tr.row { cursor: pointer; } .rooms tr.row:hover td { background: #12407e; }
.rooms .no { font-family: var(--display); color: var(--gold); width: 3.5em; }
.rooms .name { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.pill.wait { background: #1f6b3a; color: #bff5cf; } .pill.fight { background: #7a2a1f; color: #ffc9c0; } .pill.full { background: #3a3f55; color: #c9d2e6; }
.lock { color: var(--gold); margin-left: 4px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 520px) { .rooms .col-mode, .rooms .col-host { display: none; } }

.show { display: grid; gap: 10px; grid-template-columns: auto minmax(0, 1fr); }
.show .chips { grid-column: 1 / -1; }
.skill-keys { display: grid; gap: 6px; align-content: start; }
.skill-keys.row { grid-auto-flow: column; justify-content: start; }
.skill-key { width: 40px; height: 36px; border-radius: 5px; background: linear-gradient(#1a4e98, #0b2a5e); border: 2px solid #3a78c8; color: #fff; font: 800 16px/1 var(--display, inherit); cursor: pointer; }
.skill-key:hover { border-color: #8fd0ff; }
.skill-key.ult { background: linear-gradient(#8a4d00, #4a2600); border-color: var(--gold); color: var(--gold); }
.skill-key.on { box-shadow: 0 0 0 2px var(--gold), 0 0 12px #ffc93c88; }
.skill-key:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.stage { position: relative; height: 210px; background: radial-gradient(160px 40px at 50% 86%, #1b4f95 0%, transparent 70%), linear-gradient(#0e3877, #061a3d); border-radius: 3px; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.stage .tag { position: absolute; left: 10px; top: 8px; display: grid; }
.stage .tag b { font-size: 20px; } .stage .tag small { color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chip { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; background: var(--well-deep); border: 2px solid #1d4a8a; border-radius: 4px; font-size: 12px; }
.chip canvas { width: 44px; height: 44px; image-rendering: pixelated; }
.chip[aria-pressed="true"] { border-color: var(--gold); background: #1a3a70; }
.chip.off { cursor: not-allowed; opacity: .45; filter: grayscale(1); }

.chat { display: grid; gap: 8px; }
.log { height: 120px; overflow-y: auto; font-size: 13px; display: grid; align-content: start; gap: 2px; }
.log .sys { color: var(--gold); } .log .you b { color: var(--ok); } .log b { color: #8fd0ff; font-weight: 700; margin-right: 6px; }
.say { display: flex; gap: 8px; } .say input { flex: 1; min-width: 0; background: #fff; color: #0b2040; border: 2px solid #7fb6e8; border-radius: 3px; padding: 6px 9px; }

/* ---------- room: RED TEAM | info + CHARACTER SELECT | BLUE TEAM (original 準備室) ---------- */
.room3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 860px) { .room3 { grid-template-columns: minmax(0, 1fr); } .room-mid { order: -1; } }
.team { border-radius: 4px; padding: 0 0 8px; overflow: hidden; }
.team h3 { margin: 0; padding: 6px; text-align: center; font: 18px/1 var(--display); letter-spacing: .08em; color: #fff; text-shadow: 0 2px 0 #0006; }
.team.red { background: linear-gradient(#5a1414cc, #3a0c0ccc); border: 2px solid #c0392b; }
.team.red h3 { background: linear-gradient(#e53b2c, #9c1a12); }
.team.blue { background: linear-gradient(#0d3a66cc, #082a4dcc); border: 2px solid #2f86d6; }
.team.blue h3 { background: linear-gradient(#2a8fe0, #0f5ca6); }
.team-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px 8px 0; }
.tslot { position: relative; min-height: 140px; border-radius: 3px; background: #ffffff10; border: 1px solid #ffffff22; display: grid; justify-items: center; align-content: end; padding: 4px 4px 6px; }
.tslot canvas { width: 120px; max-width: 100%; height: 104px; image-rendering: pixelated; }
.tslot .lv { position: absolute; left: 5px; top: 4px; font: 12px var(--display); color: #fff; text-shadow: 0 1px 0 #000; }
.tslot .host { margin-right: 3px; }
.tslot .st { position: absolute; right: 5px; top: 4px; font: 700 11px var(--display); letter-spacing: .06em; }
.tslot .st.ready { color: #7dff9a; text-shadow: 0 0 6px #1d8a3a; } .tslot .st.not { color: #ffffff88; }
.tslot .nm { width: 100%; text-align: center; font-weight: 700; font-size: 13px; background: #00000055; border-radius: 2px; padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team.red .tslot.you .nm { background: #c0392b; } .team.blue .tslot.you .nm { background: #2f86d6; }
.tslot.empty { place-content: center; color: #ffffffaa; font-size: 12px; }
.tslot.closed { background: #00000022; border-style: dashed; border-color: #ffffff14; }
.room-info { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.room-info th { width: 72px; text-align: center; font-weight: 700; color: #cfe3ff; background: #0a2350; border: 1px solid #1d4a8a; padding: 4px; }
.room-info td { border: 1px solid #1d4a8a; padding: 4px 8px; background: #061a3d; }
.room-info .no { font-family: var(--display); color: var(--gold); }
.csel-head { text-align: center; font: 14px var(--display); letter-spacing: .12em; color: #fff; background: linear-gradient(#1a3a70, #0a2350); border: 1px solid #1d4a8a; border-radius: 3px 3px 0 0; padding: 4px; }
.csel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; background: #020b1c; border: 1px solid #1d4a8a; border-top: 0; margin-bottom: 10px; }
.cface { padding: 0; border: 2px solid #3a78c8; border-radius: 3px; background: #10141c; aspect-ratio: 1; overflow: hidden; }
.cface img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.cface:not(.off):hover { border-color: var(--gold); }
.cface[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 10px #ffc93c99; }
.cface.off { cursor: not-allowed; filter: grayscale(1) brightness(.45); }
.room-actions { display: grid; gap: 6px; }
.room-actions .start { font: 22px/1 var(--display); letter-spacing: .08em; padding: 10px; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: none; background: transparent; color: var(--ink); width: min(620px, calc(100% - 32px)); max-height: calc(100% - 32px); }
dialog::backdrop { background: #020a1ccc; }
dialog .win { max-height: calc(100vh - 64px); display: grid; grid-template-rows: minmax(0, 1fr) auto; }
dialog .well { overflow-y: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.item { display: grid; gap: 4px; align-content: start; background: var(--well-deep); border: 2px solid #1d4a8a; border-radius: 4px; padding: 10px; }
.item .k { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.item .n { font-weight: 700; } .item .d { font-size: 12px; color: var(--muted); }
.item .foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.item .badge { font-size: 11px; background: #7a2a1f; color: #ffd8d0; padding: 0 6px; border-radius: 99px; justify-self: start; }
.cnt { font-family: var(--display); color: var(--gold); }
.slotbox { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; background: #0a2350; border: 2px dashed #1d4a8a; border-radius: 4px; color: #3b6fb0; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stat { background: var(--well-deep); border: 2px solid #1d4a8a; border-radius: 4px; padding: 8px 10px; display: grid; }
.stat small { color: var(--muted); font-size: 11px; letter-spacing: .08em; } .stat b { font: 22px/1.2 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px);
  background: #000d; border: 2px solid var(--rim); border-radius: 6px; padding: 8px 16px; font-weight: 700; }
.toast.bad { border-color: var(--bad); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise .2s ease-out; } @keyframes rise { from { transform: translate(-50%, 10px); opacity: 0; } } }

/* ---------- bag: 使用中的人物 / 物品欄位 / 卡片盒 ---------- */
dialog.wide { width: min(980px, calc(100% - 32px)); }
.bag { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .bag { grid-template-columns: minmax(0, 1fr); } }
.bag-title { display: inline-block; padding: 2px 12px; background: linear-gradient(#2b2b2b, #000); border: 1px solid #6e7d95; border-radius: 4px; color: var(--gold); font-weight: 900; font-size: 13px; letter-spacing: .08em; }
.bag-hero { display: grid; gap: 8px; }
.bag-stage { position: relative; height: 150px; border: 2px solid #1d4a8a; border-radius: 4px; overflow: hidden;
  background: radial-gradient(90px 18px at 50% 86%, #2fd0ff55 0%, transparent 70%), radial-gradient(260px 160px at 50% 20%, #1f5a8a 0%, #071a3a 70%); }
.bag-stage canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.bag-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.bag-card > img { width: 131px; height: auto; max-width: 100%; image-rendering: pixelated; border-radius: 3px; box-shadow: 0 3px 10px #0009; }
.bag-card-info { display: grid; gap: 6px; justify-items: start; }
.bag-card-info img { image-rendering: pixelated; height: 14px; width: auto; }
.bag-card-info b { font-size: 18px; } .bag-card-info span { color: var(--muted); font-size: 12px; }
.bag-side { display: grid; gap: 14px; min-width: 0; }
.bag-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bag-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; }
.tabs button { min-width: 44px; padding: 3px 8px; background: linear-gradient(#e9eef5, #aab6c6); color: #28364a; border: 1px solid #fff; border-radius: 4px 4px 0 0; font: 700 13px var(--display); }
.tabs button[aria-selected="true"] { background: linear-gradient(#ffe27a, #f5a623); color: #3a1d00; }
.slots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; max-width: 560px; }
.slot-i { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 3px; background: linear-gradient(#56657c, #3a475b); border: 1px solid #7c8ba3; display: grid; place-items: center; padding: 0; }
.slot-i img { width: 86%; height: 86%; object-fit: contain; image-rendering: pixelated; }
.slot-i .n { position: absolute; right: 3px; bottom: 1px; font: 12px var(--display); color: #fff; text-shadow: 0 0 2px #000, 0 1px 0 #000; }
.slot-i:not(:disabled):hover, .slot-i[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: -2px; }
.slot-i:disabled { cursor: default; }
.bag-info { margin: 6px 0 0; color: var(--muted); font-size: 12px; min-height: 1.5em; }
.cardbox { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; max-width: 560px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.cardbox .eq-empty, .equip-grid .eq-empty { aspect-ratio: 1; }
.card-s { position: relative; aspect-ratio: 1; max-width: 100%; padding: 0; border: 3px solid var(--rc); border-radius: 3px; background: #10141c; overflow: hidden; }
.card-s .face { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.card-s .lbl { position: absolute; left: 2px; top: 2px; height: 11px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 1px 0 #000); }
.card-s .use { position: absolute; right: 2px; bottom: 2px; font-size: 10px; font-weight: 900; background: var(--gold); color: #3a1d00; border-radius: 3px; padding: 0 3px; }
.card-s[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 10px var(--rc); }
.item .ico { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 3px; }

/* ---------- first login: starter pick ---------- */
.linkish { background: none; border: none; color: var(--muted); text-decoration: underline; font-size: 12px; justify-self: start; padding: 0; }
.starter { display: grid; gap: 14px; }
.starter-top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 14px; align-items: center; }
@media (max-width: 640px) { .starter-top { grid-template-columns: minmax(0, 1fr); } }
.starter-stage { height: 190px; border: 2px solid #1d4a8a; border-radius: 4px; background: radial-gradient(110px 20px at 50% 88%, #ffc93c44 0%, transparent 70%), linear-gradient(#123e7c, #061a3d); }
.starter-stage canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.starter-say { display: grid; gap: 6px; justify-items: start; }
.starter-say > b { font-size: 26px; font-weight: 900; } .starter-say > span { color: var(--muted); } .starter-say .note { color: var(--muted); font-size: 12px; margin: 0; }
.st-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-card { display: grid; gap: 4px; justify-items: center; padding: 6px; background: var(--well-deep); border: 2px solid #1d4a8a; border-radius: 5px; }
.st-card img { width: 100%; max-width: 109px; height: auto; image-rendering: pixelated; }
.st-card b { font-size: 15px; }
.st-card:hover { border-color: var(--rim); }
.st-card[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 16px #ffc93c66; background: #1a3a70; }
@media (prefers-reduced-motion: no-preference) { .st-card[aria-pressed="true"] img { animation: pop .25s ease-out; } @keyframes pop { from { transform: scale(.94); } } }

/* 已裝備卡片 */
.bag-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.equip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.eq-empty { aspect-ratio: 1; max-width: 100%; border-radius: 3px; background: repeating-linear-gradient(45deg, #0a2350 0 6px, #0c2a5c 6px 12px); border: 2px dashed #1d4a8a; }
.card-s .use.eq { background: #3aa2ff; color: #031230; }

/* ---------- loading screen (skill animations) ---------- */
.loading { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #030d22e6; }
.loading[hidden] { display: none; }
.loading .win { display: grid; gap: 10px; justify-items: center; padding: 26px 34px; min-width: min(320px, 86vw); }
.loading b { font-family: var(--display, inherit); font-size: 24px; letter-spacing: .08em; color: var(--gold); }
.loading span { color: var(--muted); font-size: 13px; }
.loading .meter { width: 100%; height: 10px; border-radius: 99px; background: #0a2350; border: 1px solid #1d4a8a; overflow: hidden; }
.loading .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffc93c, #ffe38a); transition: width .2s; }

/* ---------- login: Discord ---------- */
.btn.discord { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(#6d7cf5, #4752c4); border-color: #8f9bff; color: #fff; font-size: 17px; padding: 11px; }
.btn.discord:hover { filter: brightness(1.08); }
.login .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0 4px; }
.login .or::before, .login .or::after { content: ''; flex: 1; border-top: 1px solid #1d4a8a; }
a.btn { text-decoration: none; display: inline-grid; place-items: center; color: #fff; }

.login-tools { display: flex; justify-content: flex-end; gap: 6px; margin: -4px 0 6px; }
.btn.small { padding: 4px 10px; font-size: 12px; }

.tslot .ping { position: absolute; left: 5px; top: 20px; font: 700 11px var(--display); text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.tslot .ping.good { color: #7dff9a; } .tslot .ping.ok { color: #ffe27a; } .tslot .ping.bad { color: #ff8a8a; }
