/* 《龙域战境 · FUN.MALTESE.ASIA》AAA 战术射击游戏平台样式 */
:root {
  --bg-panel: rgba(14, 18, 24, 0.84);
  --bg-card: rgba(20, 25, 33, 0.88);
  --bg-elevated: rgba(28, 34, 44, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text-main: #f1f5f9;
  --text-dim: #9aa6b5;
  --accent-gold: #e0a943;
  --accent-gold-hover: #f0ba55;
  --team-red: #dc3545;
  --team-blue: #2f7df6;
  --danger: #ef4444;
  --success: #22c55e;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #0d1117; color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

#game-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1;
}

#screen-flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 15;
  opacity: 0; transition: opacity 0.18s ease-out;
}
#screen-flash.red { background: radial-gradient(circle, transparent 48%, rgba(220,38,38,0.58) 100%); opacity: 1; }
#screen-flash.orange { background: radial-gradient(circle, rgba(251,146,60,0.3) 20%, rgba(234,88,12,0.65) 100%); opacity: 1; }
#screen-flash.purple { background: radial-gradient(circle, rgba(168,85,247,0.28) 20%, rgba(126,34,206,0.68) 100%); opacity: 1; }

/* 狙击高倍瞄准镜 */
#sniper-scope {
  position: fixed; inset: 0; z-index: 12; pointer-events: none;
  background: radial-gradient(circle at center, transparent 32vh, rgba(4, 6, 10, 0.96) 33vh);
}
.scope-h { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(15, 23, 42, 0.85); }
.scope-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(15, 23, 42, 0.85); }
.scope-ring {
  position: absolute; top: 50%; left: 50%; width: 65vh; height: 65vh;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

#damage-layer { position: fixed; inset: 0; pointer-events: none; z-index: 18; overflow: hidden; }
.dmg-float {
  position: absolute; font-weight: 800; font-size: 18px; color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85); transform: translate(-50%, -50%);
  animation: floatUp 0.75s ease-out forwards;
}
.dmg-float.head { font-size: 24px; color: #facc15; }
@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(0.9); }
}

/* ==================== 平台大厅界面 ==================== */
#lobby-screen {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10,14,20,0.72) 0%, rgba(10,14,20,0.45) 45%, rgba(10,14,20,0.86) 100%);
  overflow-y: auto;
}

.top-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 36px;
  background: rgba(12, 16, 22, 0.76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--accent-gold); color: #11161d;
  font-weight: 900; font-size: 18px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
}
.brand-title { font-size: 20px; font-weight: 800; letter-spacing: 0.06em; }
.brand-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.14em; margin-top: 2px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 6px;
  background: rgba(224, 169, 67, 0.14); border: 1px solid rgba(224, 169, 67, 0.38);
  font-weight: 700; font-size: 15px; color: #fde68a;
}
.coin-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-gold); display: inline-block;
}
.wallet-chip .unit { font-size: 12px; color: #d6b66f; font-weight: 500; }

.btn-nav, .btn-secondary {
  background: rgba(255, 255, 255, 0.07); color: var(--text-main);
  border: 1px solid var(--border-subtle); border-radius: 6px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.12s;
}
.btn-nav:hover, .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14); border-color: var(--border-strong);
}

.btn-primary {
  background: var(--accent-gold); color: #11161d;
  border: none; border-radius: 6px;
  padding: 11px 24px; font-size: 15px; font-weight: 800; cursor: pointer;
  letter-spacing: 0.03em; transition: background 0.16s, transform 0.12s;
}
.btn-primary:hover { background: var(--accent-gold-hover); transform: translateY(-1px); }

.btn-danger {
  background: rgba(220, 53, 69, 0.2); color: #fca5a5;
  border: 1px solid rgba(220, 53, 69, 0.45); border-radius: 6px;
  padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-danger:hover { background: rgba(220, 53, 69, 0.35); }

.lobby-main {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  max-width: 1320px; width: 100%; margin: 0 auto; padding: 34px 36px 24px;
  gap: 26px;
}

.hero-intro h1 {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; letter-spacing: 0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}
.hero-desc {
  max-width: 760px; margin-top: 10px; font-size: 15px; line-height: 1.65;
  color: #d4dce6; text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.quick-bar {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 12px 18px; border-radius: 8px;
  background: var(--bg-panel); backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}
.quick-group { display: flex; align-items: center; gap: 10px; }
.quick-group label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.quick-group select, .setting-row select {
  background: #141921; color: var(--text-main);
  border: 1px solid var(--border-strong); border-radius: 5px;
  padding: 6px 10px; font-size: 13px; outline: none; cursor: pointer;
}
.stats-strip {
  margin-left: auto; display: flex; gap: 18px; font-size: 13px; color: var(--text-dim);
}
.stats-strip strong { color: var(--text-main); margin-left: 4px; font-size: 14px; }

/* 模式卡片网格 */
.mode-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.mode-card {
  background: var(--bg-card); backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.mode-card:hover {
  transform: translateY(-4px); border-color: rgba(224, 169, 67, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
.mode-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.mode-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mode-card:hover .mode-thumb img { transform: scale(1.04); }
.mode-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(12, 16, 22, 0.84); color: var(--accent-gold);
  border: 1px solid rgba(224, 169, 67, 0.45);
  padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700;
}
.mode-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.mode-title { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.mode-sub { font-size: 12px; color: var(--accent-gold); margin-top: 4px; font-weight: 600; }
.mode-desc { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin-top: 10px; flex: 1; }
.mode-cta {
  margin-top: 16px; width: 100%; padding: 10px; border-radius: 6px;
  background: var(--accent-gold); color: #11161d; font-weight: 800; font-size: 14px;
  border: none; cursor: pointer; transition: background 0.16s;
}
.mode-card:hover .mode-cta { background: var(--accent-gold-hover); }

.lobby-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-dim);
}
.controls-legend { display: flex; flex-wrap: wrap; gap: 14px; }
kbd {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.12); color: #fff; font-family: monospace; font-size: 11px;
  border: 1px solid rgba(255,255,255,0.18); margin-right: 3px;
}

/* ==================== 倒计时 & 暂停遮罩 ==================== */
#countdown-overlay, #pause-overlay {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(8, 11, 16, 0.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.cd-box, .pause-card {
  text-align: center; padding: 36px 52px; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
}
.cd-team { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.cd-num { font-size: 84px; font-weight: 900; color: var(--accent-gold); line-height: 1; }
.cd-hint { margin-top: 12px; color: var(--text-dim); font-size: 14px; }
.pause-card h2 { font-size: 22px; margin-bottom: 8px; }
.pause-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.pause-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ==================== 局内 HUD ==================== */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }

.minimap-wrap {
  position: absolute; top: 16px; left: 16px;
  background: rgba(12, 16, 22, 0.84); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 6px;
}
#minimap { display: block; border-radius: 4px; background: #141a22; }
.minimap-label { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 4px; }

.score-bar {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: rgba(12, 16, 22, 0.84); backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle); border-radius: 8px; padding: 8px 18px;
}
.team-score { display: flex; align-items: center; gap: 10px; min-width: 82px; }
.team-score.red { justify-content: flex-end; }
.team-score.red .ts-val { color: #f87171; }
.team-score.blue .ts-val { color: #60a5fa; }
.ts-label { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.ts-val { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer-box { text-align: center; padding: 0 14px; border-left: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); }
#hud-timer { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.my-team-tag { font-size: 11px; font-weight: 700; margin-top: 2px; }

#rainbow-bar-wrap {
  position: absolute; top: 76px; left: 50%; transform: translateX(-50%);
  width: 360px; background: rgba(12,16,22,0.88); border: 1px solid var(--accent-gold);
  border-radius: 6px; padding: 8px 12px;
}
.rb-title { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #fde68a; margin-bottom: 5px; }
.rb-track { height: 8px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
#rb-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6); transition: width 0.12s; }

#hud-banner {
  position: absolute; top: 120px; left: 50%; transform: translateX(-50%);
  background: rgba(12, 16, 22, 0.9); border-left: 4px solid var(--accent-gold);
  padding: 10px 22px; border-radius: 6px; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

#kill-feed {
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end; width: 300px;
}
.kf-item {
  background: rgba(12, 16, 22, 0.8); border: 1px solid var(--border-subtle);
  padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: 600;
  animation: fadeSlide 0.2s ease-out;
}
@keyframes fadeSlide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* 准星 */
#crosshair {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px;
}
.ch-line { position: absolute; background: rgba(255,255,255,0.92); box-shadow: 0 0 2px #000; }
.ch-line.top { top: 0; left: 13px; width: 2px; height: 8px; }
.ch-line.bottom { bottom: 0; left: 13px; width: 2px; height: 8px; }
.ch-line.left { left: 0; top: 13px; width: 8px; height: 2px; }
.ch-line.right { right: 0; top: 13px; width: 8px; height: 2px; }
.ch-dot { position: absolute; top: 13px; left: 13px; width: 2px; height: 2px; background: #facc15; }
#hitmarker {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 22px; font-weight: 900; color: #ffffff; text-shadow: 0 0 4px #000;
}
#hitmarker.head { color: #facc15; font-size: 26px; }

.status-stack {
  position: absolute; bottom: 132px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.warn-pill {
  background: rgba(185, 28, 28, 0.88); color: #fff; padding: 6px 16px;
  border-radius: 5px; font-size: 13px; font-weight: 700;
}
.warn-pill.rad { background: rgba(107, 33, 168, 0.9); }
.info-pill {
  background: rgba(15, 23, 42, 0.86); border: 1px solid rgba(224,169,67,0.45);
  color: #fde68a; padding: 6px 14px; border-radius: 5px; font-size: 13px; font-weight: 700;
}
#heal-bar-wrap {
  width: 220px; background: rgba(12,16,22,0.88); padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--border-strong);
}
.heal-label { font-size: 12px; color: #86efac; margin-bottom: 4px; text-align: center; }
.heal-track { height: 7px; background: rgba(255,255,255,0.14); border-radius: 4px; overflow: hidden; }
#heal-fill { height: 100%; width: 0%; background: #22c55e; }

.hud-bottom-left {
  position: absolute; bottom: 20px; left: 20px; width: 270px;
  background: rgba(12, 16, 22, 0.82); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 12px 14px;
}
.personal-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.personal-row strong { color: var(--text-main); margin-left: 3px; }
.gold-text { color: var(--accent-gold) !important; }
.hp-box { display: flex; align-items: center; gap: 10px; }
.hp-num { font-size: 24px; font-weight: 900; min-width: 44px; font-variant-numeric: tabular-nums; }
.hp-track { flex: 1; height: 12px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
#hud-hp-fill { height: 100%; width: 100%; background: #22c55e; transition: width 0.12s, background 0.2s; }

/* 底部 1-9 快捷栏 */
#quickbar {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.qb-slot {
  width: 60px; height: 54px; border-radius: 6px;
  background: rgba(12, 16, 22, 0.82); border: 1px solid var(--border-subtle);
  padding: 4px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.qb-slot.active { border-color: var(--accent-gold); background: rgba(224, 169, 67, 0.18); }
.qb-slot.protected { box-shadow: inset 0 2px 0 var(--accent-gold); }
.qb-num { font-size: 10px; color: var(--text-dim); }
.qb-name { font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hud-bottom-right {
  position: absolute; bottom: 20px; right: 20px; min-width: 220px; text-align: right;
  background: rgba(12, 16, 22, 0.82); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 12px 16px;
}
.weapon-title { font-size: 15px; font-weight: 800; color: var(--accent-gold); }
.ammo-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; margin-top: 2px; }
.ammo-cur { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ammo-sep { color: var(--text-dim); font-size: 18px; }
.ammo-inf { color: var(--text-dim); font-size: 20px; }
#reload-bar-wrap { height: 5px; background: rgba(255,255,255,0.14); border-radius: 3px; margin-top: 6px; overflow: hidden; }
#reload-fill { height: 100%; width: 0%; background: var(--accent-gold); }
.hud-mini-keys { font-size: 11px; color: var(--text-dim); margin-top: 6px; }

#toast-box {
  position: absolute; bottom: 88px; right: 20px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.toast-msg {
  background: rgba(15, 23, 42, 0.9); border-left: 3px solid var(--accent-gold);
  padding: 7px 14px; border-radius: 4px; font-size: 13px; font-weight: 600;
}

/* ==================== 弹窗通用（商城 / 背包 / 设置 / 结算） ==================== */
.modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8, 11, 16, 0.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-panel {
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: 12px; width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.shop-panel { max-width: 1040px; }
.backpack-panel { max-width: 820px; }
.settings-panel { max-width: 520px; }
.settle-panel { max-width: 860px; }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border-subtle);
}
.modal-head h2 { font-size: 20px; font-weight: 800; }
.modal-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.head-right { display: flex; align-items: center; gap: 12px; }
.btn-icon {
  width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 16px; cursor: pointer;
}
.btn-icon:hover { background: rgba(255,255,255,0.16); }

/* 商城 */
.shop-tabs { display: flex; gap: 8px; padding: 14px 24px 0; flex-wrap: wrap; }
.tab-btn {
  background: rgba(255,255,255,0.06); color: var(--text-dim);
  border: 1px solid var(--border-subtle); border-radius: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tab-btn.active { background: var(--accent-gold); color: #11161d; border-color: var(--accent-gold); font-weight: 800; }
.shop-msg {
  margin: 12px 24px 0; padding: 9px 14px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border-left: 3px solid var(--accent-gold);
  font-size: 13px; color: #e2e8f0;
}
.shop-grid {
  padding: 16px 24px 24px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px;
}
.shop-card {
  background: rgba(15, 20, 27, 0.9); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.shop-card.exclusive { border-color: rgba(224, 169, 67, 0.45); }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.sc-name { font-size: 15px; font-weight: 800; }
.sc-en { font-size: 11px; color: var(--text-dim); }
.sc-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(224,169,67,0.2); color: var(--accent-gold); }
.sc-stats { font-size: 12px; color: #cbd5e1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sc-desc { font-size: 11px; color: var(--text-dim); line-height: 1.45; flex: 1; }
.sc-buy {
  margin-top: 6px; width: 100%; padding: 8px; border-radius: 5px;
  background: var(--accent-gold); color: #11161d; border: none; font-weight: 800; font-size: 13px; cursor: pointer;
}
.sc-buy:hover { background: var(--accent-gold-hover); }

/* 36 格背包 */
.backpack-grid {
  padding: 20px 24px 24px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px;
}
.bp-cell {
  aspect-ratio: 1; border-radius: 6px; background: rgba(14, 18, 24, 0.9);
  border: 1px solid var(--border-subtle); padding: 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; position: relative; font-size: 11px;
}
.bp-cell.protected { border-color: rgba(224, 169, 67, 0.6); background: rgba(224, 169, 67, 0.08); }
.bp-cell.active { outline: 2px solid var(--accent-gold); }
.bp-cell.drag-over { border-color: #38bdf8; background: rgba(56, 189, 248, 0.16); }
.bp-idx { font-size: 10px; color: var(--text-dim); display: flex; justify-content: space-between; }
.bp-gun { font-weight: 700; font-size: 11px; line-height: 1.25; }
.bp-meta { font-size: 10px; color: #fca5a5; }

/* 设置 */
.settings-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; }
.setting-row input[type="range"] { width: 200px; accent-color: var(--accent-gold); }

/* 结算 */
.settle-header { padding: 24px; text-align: center; border-bottom: 1px solid var(--border-subtle); }
.settle-result { font-size: 38px; font-weight: 900; letter-spacing: 0.08em; }
.settle-sub { font-size: 15px; color: var(--text-dim); margin-top: 6px; }
.mvp-bonus {
  display: inline-block; margin-top: 12px; padding: 6px 16px; border-radius: 6px;
  background: rgba(224, 169, 67, 0.2); border: 1px solid var(--accent-gold);
  color: #fde68a; font-weight: 800; font-size: 14px;
}
.settle-table-wrap { padding: 14px 24px; overflow-y: auto; max-height: 360px; }
.settle-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.settle-table th { text-align: left; padding: 8px; color: var(--text-dim); border-bottom: 1px solid var(--border-subtle); }
.settle-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.settle-table tr.me { background: rgba(224, 169, 67, 0.14); font-weight: 700; }
.settle-actions { padding: 18px 24px; display: flex; justify-content: center; gap: 12px; border-top: 1px solid var(--border-subtle); }

@media (max-width: 960px) {
  .mode-grid { grid-template-columns: 1fr; }
  .backpack-grid { grid-template-columns: repeat(6, 1fr); }
  .top-nav { padding: 12px 18px; }
  .lobby-main { padding: 20px 18px; }
}
