/* SkyBlast 2D — Full Self-Contained Stylesheet (Canvas & Offline Ready) */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: rgba(51, 65, 85, 0.8);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #020617;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f1f5f9;
  touch-action: pan-x pan-y;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.pseudo-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
}
h1, h2, h3, h4, p, ol, ul, li {
  margin: 0;
  padding: 0;
}
ol, ul {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
input, select, textarea {
  user-select: text;
  -webkit-user-select: text;
}
#gameCanvas {
  position: fixed;
  touch-action: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: crosshair;
  z-index: 1;
  /* 把 canvas 提升为独立合成层，并隔离其内部布局/绘制影响范围。
     canvas 每帧整屏重绘；若与上层 HUD（血条、小地图、击杀播报）同层，
     那些 DOM 元素一变化就会连带 canvas 区域一起重新合成。
     contain:layout paint 让浏览器知道 canvas 内部的绘制不外溢、外部变化也不影响它；
     will-change:transform 提示合成器为它单独建层。
     两者都不改变尺寸（尺寸仍由 100vw/100vh 决定），因此不影响现有布局。 */
  contain: layout paint;
  will-change: transform;
}
#igeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
/* reloadProgressWrap alignment helper */
#reloadProgressWrap.-translate-x-1\/2.translate-y-1 {
  transform: translate(-50%, 0.25rem);
}
#reloadProgressWrap.-translate-x-1\/2.translate-y-0 {
  transform: translate(-50%, 0px);
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.6);
  border-radius: 3px;
}
.glass-panel {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
/* 高频 60Hz JS 驱动进度条禁用 CSS transition，消除每帧启动/取消过渡动画的合成器抖动 */
#hudHpBar,
#hudShieldBar,
#hudFuelBar,
#hudCapCardBar,
#reloadProgressBar,
#reloadDockBottomBar,
#deathRespawnProgressBar,
#deathRankSelfBar,
#grenadeCdOverlay {
  transition: none !important;
}
.kill-item {
  animation: slideInRight 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRight {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes tw-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes tw-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes tw-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.absolute { position: absolute; }
.fixed { position: fixed; }
.relative { position: relative; }
.inset-0 { top: 0px; right: 0px; bottom: 0px; left: 0px; }
.inset-x-0 { left: 0px; right: 0px; }
.inset-y-0 { top: 0px; bottom: 0px; }
.-top-8 { top: -2rem; }
.bottom-0 { bottom: 0px; }
.bottom-16 { bottom: 4rem; }
.bottom-2\.5 { bottom: 0.625rem; }
.bottom-48 { bottom: 12rem; }
.bottom-5 { bottom: 1.25rem; }
.left-0 { left: 0px; }
.left-1\/2 { left: 50%; }
.left-2 { left: 0.5rem; }
.left-5 { left: 1.25rem; }
.left-full { left: 100%; }
.right-0 { right: 0px; }
.right-2 { right: 0.5rem; }
.right-3 { right: 0.75rem; }
.right-5 { right: 1.25rem; }
.top-0 { top: 0px; }
.top-1\/2 { top: 50%; }
.top-14 { top: 3.5rem; }
.top-2 { top: 0.5rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[70\] { z-index: 70; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.invisible { visibility: hidden; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-baseline { align-items: baseline; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.shrink-0 { flex-shrink: 0; }
.col-span-2 { grid-column: span 2 / span 2; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.cursor-crosshair { cursor: crosshair; }
.cursor-not-allowed { cursor: not-allowed; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.pointer-events-auto { pointer-events: auto; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; -webkit-user-select: none; }
.touch-none { touch-action: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.h-1\.5 { height: 0.375rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-40 { height: 10rem; }
.h-6 { height: 1.5rem; }
.h-\[2px\] { height: 2px; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0px; }
.w-1\.5 { width: 0.375rem; }
.w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-2 { width: 0.5rem; }
.w-20 { width: 5rem; }
.w-4 { width: 1rem; }
.w-40 { width: 10rem; }
.w-6 { width: 1.5rem; }
.w-72 { width: 18rem; }
.w-9 { width: 2.25rem; }
.w-\[1\.6em\] { width: 1.6em; }
.w-\[2\.1em\] { width: 2.1em; }
.w-\[2\.4em\] { width: 2.4em; }
.w-\[2\.6em\] { width: 2.6em; }
.w-\[2\.8em\] { width: 2.8em; }
.w-\[min\(94vw\,1000px\)\] { width: min(94vw,1000px); }
.w-full { width: 100%; }
.w-px { width: 1px; }
.min-w-\[140px\] { min-width: 140px; }
.min-w-\[155px\] { min-width: 155px; }
.min-w-\[64px\] { min-width: 64px; }
.min-w-\[68px\] { min-width: 68px; }
.min-w-\[70px\] { min-width: 70px; }
.max-h-\[210px\] { max-height: 210px; }
.max-h-\[92vh\] { max-height: 92vh; }
.max-h-\[96vh\] { max-height: 96vh; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-\[76px\] { max-width: 76px; }
.max-w-\[82px\] { max-width: 82px; }
.max-w-\[98vw\] { max-width: 98vw; }
.max-w-xs { max-width: 20rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.-ml-7 { margin-left: -1.75rem; }
.-mt-7 { margin-top: -1.75rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-3 { margin-top: 0.75rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-1\.5 { padding-bottom: 0.375rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-1\.5 { padding-left: 0.375rem; }
.pl-2 { padding-left: 0.5rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.rounded { border-radius: 0.25rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-xs { border-radius: 0.125rem; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-t { border-top-width: 1px; }
.border-dashed { border-style: dashed; }
.border-amber-200 { border-color: rgb(253, 230, 138); }
.border-amber-400 { border-color: rgb(251, 191, 36); }
.border-amber-400\/50 { border-color: rgba(251, 191, 36, 0.5); }
.border-amber-500\/35 { border-color: rgba(245, 158, 11, 0.35); }
.border-amber-500\/40 { border-color: rgba(245, 158, 11, 0.4); }
.border-amber-500\/60 { border-color: rgba(245, 158, 11, 0.6); }
.border-cyan-300\/60 { border-color: rgba(103, 232, 249, 0.6); }
.border-cyan-400\/50 { border-color: rgba(34, 211, 238, 0.5); }
.border-cyan-500\/40 { border-color: rgba(6, 182, 212, 0.4); }
.border-emerald-200 { border-color: rgb(167, 243, 208); }
.border-emerald-400 { border-color: rgb(52, 211, 153); }
.border-emerald-400\/50 { border-color: rgba(52, 211, 153, 0.5); }
.border-emerald-400\/60 { border-color: rgba(52, 211, 153, 0.6); }
.border-emerald-500\/40 { border-color: rgba(16, 185, 129, 0.4); }
.border-indigo-400\/50 { border-color: rgba(129, 140, 248, 0.5); }
.border-indigo-500\/50 { border-color: rgba(99, 102, 241, 0.5); }
.border-purple-400 { border-color: rgb(192, 132, 252); }
.border-purple-400\/50 { border-color: rgba(192, 132, 252, 0.5); }
.border-rose-300 { border-color: rgb(253, 164, 175); }
.border-rose-300\/30 { border-color: rgba(253, 164, 175, 0.3); }
.border-rose-400 { border-color: rgb(251, 113, 133); }
.border-rose-400\/30 { border-color: rgba(251, 113, 133, 0.3); }
.border-rose-400\/45 { border-color: rgba(251, 113, 133, 0.45); }
.border-rose-500\/35 { border-color: rgba(244, 63, 94, 0.35); }
.border-rose-500\/40 { border-color: rgba(244, 63, 94, 0.4); }
.border-rose-500\/60 { border-color: rgba(244, 63, 94, 0.6); }
.border-sky-400 { border-color: rgb(56, 189, 248); }
.border-sky-400\/40 { border-color: rgba(56, 189, 248, 0.4); }
.border-sky-400\/45 { border-color: rgba(56, 189, 248, 0.45); }
.border-sky-400\/50 { border-color: rgba(56, 189, 248, 0.5); }
.border-sky-500\/35 { border-color: rgba(14, 165, 233, 0.35); }
.border-sky-500\/40 { border-color: rgba(14, 165, 233, 0.4); }
.border-sky-500\/50 { border-color: rgba(14, 165, 233, 0.5); }
.border-sky-500\/60 { border-color: rgba(14, 165, 233, 0.6); }
.border-slate-600 { border-color: rgb(71, 85, 105); }
.border-slate-600\/80 { border-color: rgba(71, 85, 105, 0.8); }
.border-slate-700 { border-color: rgb(51, 65, 85); }
.border-slate-700\/80 { border-color: rgba(51, 65, 85, 0.8); }
.border-slate-700\/90 { border-color: rgba(51, 65, 85, 0.9); }
.border-slate-800 { border-color: rgb(30, 41, 59); }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-white\/80 { border-color: rgba(255, 255, 255, 0.8); }
.bg-amber-400 { background-color: rgb(251, 191, 36); }
.bg-amber-500 { background-color: rgb(245, 158, 11); }
.bg-amber-500\/15 { background-color: rgba(245, 158, 11, 0.15); }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.bg-amber-500\/25 { background-color: rgba(245, 158, 11, 0.25); }
.bg-amber-500\/85 { background-color: rgba(245, 158, 11, 0.85); }
.bg-amber-500\/95 { background-color: rgba(245, 158, 11, 0.95); }
.bg-cyan-400 { background-color: rgb(34, 211, 238); }
.bg-cyan-400\/80 { background-color: rgba(34, 211, 238, 0.8); }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.bg-cyan-500\/30 { background-color: rgba(6, 182, 212, 0.3); }
.bg-emerald-400 { background-color: rgb(52, 211, 153); }
.bg-emerald-500 { background-color: rgb(16, 185, 129); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-emerald-500\/25 { background-color: rgba(16, 185, 129, 0.25); }
.bg-emerald-500\/90 { background-color: rgba(16, 185, 129, 0.9); }
.bg-emerald-700\/80 { background-color: rgba(4, 120, 87, 0.8); }
.bg-indigo-500\/25 { background-color: rgba(99, 102, 241, 0.25); }
.bg-indigo-600 { background-color: rgb(79, 70, 229); }
.bg-purple-500\/25 { background-color: rgba(168, 85, 247, 0.25); }
.bg-rose-500 { background-color: rgb(244, 63, 94); }
.bg-rose-500\/15 { background-color: rgba(244, 63, 94, 0.15); }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }
.bg-rose-500\/55 { background-color: rgba(244, 63, 94, 0.55); }
.bg-rose-500\/60 { background-color: rgba(244, 63, 94, 0.6); }
.bg-rose-600\/85 { background-color: rgba(225, 29, 72, 0.85); }
.bg-sky-400 { background-color: rgb(56, 189, 248); }
.bg-sky-400\/10 { background-color: rgba(56, 189, 248, 0.1); }
.bg-sky-400\/60 { background-color: rgba(56, 189, 248, 0.6); }
.bg-sky-500 { background-color: rgb(14, 165, 233); }
.bg-sky-500\/15 { background-color: rgba(14, 165, 233, 0.15); }
.bg-sky-500\/20 { background-color: rgba(14, 165, 233, 0.2); }
.bg-sky-500\/25 { background-color: rgba(14, 165, 233, 0.25); }
.bg-sky-600 { background-color: rgb(2, 132, 199); }
.bg-sky-700\/80 { background-color: rgba(3, 105, 161, 0.8); }
.bg-slate-500 { background-color: rgb(100, 116, 139); }
.bg-slate-800 { background-color: rgb(30, 41, 59); }
.bg-slate-800\/90 { background-color: rgba(30, 41, 59, 0.9); }
.bg-slate-900 { background-color: rgb(15, 23, 42); }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-slate-900\/70 { background-color: rgba(15, 23, 42, 0.7); }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-900\/95 { background-color: rgba(15, 23, 42, 0.95); }
.bg-slate-950 { background-color: rgb(2, 6, 23); }
.bg-slate-950\/40 { background-color: rgba(2, 6, 23, 0.4); }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6); }
.bg-slate-950\/70 { background-color: rgba(2, 6, 23, 0.7); }
.bg-slate-950\/75 { background-color: rgba(2, 6, 23, 0.75); }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-slate-950\/85 { background-color: rgba(2, 6, 23, 0.85); }
.bg-slate-950\/88 { background-color: rgba(2, 6, 23, 0.88); }
.bg-slate-950\/90 { background-color: rgba(2, 6, 23, 0.9); }
.bg-slate-950\/92 { background-color: rgba(2, 6, 23, 0.92); }
.bg-slate-950\/95 { background-color: rgba(2, 6, 23, 0.95); }
.bg-transparent { background-color: transparent; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-amber-400 { --tw-gradient-from: rgb(251, 191, 36); --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-emerald-500 { --tw-gradient-from: rgb(16, 185, 129); --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-rose-500 { --tw-gradient-from: rgb(244, 63, 94); --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-sky-500 { --tw-gradient-from: rgb(14, 165, 233); --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-cyan-300 { --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), rgb(103, 232, 249), var(--tw-gradient-to); }
.via-teal-400 { --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), rgb(45, 212, 191), var(--tw-gradient-to); }
.to-amber-400 { --tw-gradient-to: rgb(251, 191, 36); }
.to-cyan-300 { --tw-gradient-to: rgb(103, 232, 249); }
.to-cyan-400 { --tw-gradient-to: rgb(34, 211, 238); }
.to-emerald-400 { --tw-gradient-to: rgb(52, 211, 153); }
.to-teal-400 { --tw-gradient-to: rgb(45, 212, 191); }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-semibold { font-weight: 600; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[8px\] { font-size: 8px; }
.text-\[9px\] { font-size: 9px; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-amber-200 { color: rgb(253, 230, 138); }
.text-amber-300 { color: rgb(252, 211, 77); }
.text-cyan-200 { color: rgb(165, 243, 252); }
.text-cyan-200\/70 { color: rgba(165, 243, 252, 0.7); }
.text-cyan-300 { color: rgb(103, 232, 249); }
.text-cyan-400 { color: rgb(34, 211, 238); }
.text-emerald-200 { color: rgb(167, 243, 208); }
.text-emerald-300 { color: rgb(110, 231, 183); }
.text-indigo-200 { color: rgb(199, 210, 254); }
.text-pink-200\/70 { color: rgba(251, 207, 232, 0.7); }
.text-pink-300 { color: rgb(249, 168, 212); }
.text-purple-200 { color: rgb(233, 213, 255); }
.text-purple-200\/70 { color: rgba(233, 213, 255, 0.7); }
.text-purple-300 { color: rgb(216, 180, 254); }
.text-rose-200 { color: rgb(254, 205, 211); }
.text-rose-200\/75 { color: rgba(254, 205, 211, 0.75); }
.text-rose-300 { color: rgb(253, 164, 175); }
.text-rose-300\/60 { color: rgba(253, 164, 175, 0.6); }
.text-sky-100 { color: rgb(224, 242, 254); }
.text-sky-200 { color: rgb(186, 230, 253); }
.text-sky-200\/70 { color: rgba(186, 230, 253, 0.7); }
.text-sky-200\/75 { color: rgba(186, 230, 253, 0.75); }
.text-sky-300 { color: rgb(125, 211, 252); }
.text-slate-100 { color: rgb(241, 245, 249); }
.text-slate-200 { color: rgb(226, 232, 240); }
.text-slate-300 { color: rgb(203, 213, 225); }
.text-slate-400 { color: rgb(148, 163, 184); }
.text-slate-400\/60 { color: rgba(148, 163, 184, 0.6); }
.text-slate-400\/70 { color: rgba(148, 163, 184, 0.7); }
.text-slate-500 { color: rgb(100, 116, 139); }
.text-slate-600 { color: rgb(71, 85, 105); }
.text-slate-950 { color: rgb(2, 6, 23); }
.text-white { color: rgb(255, 255, 255); }
.backdrop-blur-md { background-color: rgba(2, 6, 23, 0.92); }
.drop-shadow { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.65)); }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.opacity-35 { opacity: 0.35; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-55 { opacity: 0.55; }
.opacity-60 { opacity: 0.6; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3), 0 1px 2px -1px rgba(0,0,0,0.3); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.65); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.4); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.35), 0 2px 4px -2px rgba(0,0,0,0.35); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.45), 0 8px 10px -6px rgba(0,0,0,0.45); }
.ring-emerald-400 { --tw-ring-color: rgb(52, 211, 153); }
.ring-sky-400\/50 { --tw-ring-color: rgba(56, 189, 248, 0.5); }
.shadow-\[0_0_20px_rgba\(16\,185\,129\,0\.6\)\] { box-shadow: 0 0 20px rgba(16,185,129,0.6); }
.shadow-\[0_0_24px_rgba\(14\,165\,233\,0\.18\)\] { box-shadow: 0 0 24px rgba(14,165,233,0.18); }
.shadow-\[0_0_24px_rgba\(244\,63\,94\,0\.18\)\] { box-shadow: 0 0 24px rgba(244,63,94,0.18); }
.shadow-\[0_0_28px_rgba\(16\,185\,129\,0\.45\)\] { box-shadow: 0 0 28px rgba(16,185,129,0.45); }
.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color, rgba(52, 211, 153, 0.75)); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-100 { transition-duration: 100ms; }
.duration-150 { transition-duration: 150ms; }
.duration-50 { transition-duration: 50ms; }
.duration-75 { transition-duration: 75ms; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-0 { transform: translateY(0px); }
.translate-y-1 { transform: translateY(0.25rem); }
.accent-amber-400 { accent-color: rgb(251, 191, 36); }
.accent-emerald-400 { accent-color: rgb(52, 211, 153); }
.accent-rose-400 { accent-color: rgb(251, 113, 133); }
.accent-sky-400 { accent-color: rgb(56, 189, 248); }
.animate-bounce { animation: tw-bounce 1s infinite; }
.animate-ping { animation: tw-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-pulse { animation: tw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.hidden { display: none !important; }
.hover\:border-emerald-400\/50:hover { border-color: rgba(52, 211, 153, 0.5); }
.hover\:border-rose-400\/60:hover { border-color: rgba(251, 113, 133, 0.6); }
.hover\:border-slate-500:hover { border-color: rgb(100, 116, 139); }
.hover\:bg-amber-400:hover { background-color: rgb(251, 191, 36); }
.hover\:bg-amber-500\/30:hover { background-color: rgba(245, 158, 11, 0.3); }
.hover\:bg-cyan-500\/30:hover { background-color: rgba(6, 182, 212, 0.3); }
.hover\:bg-emerald-400:hover { background-color: rgb(52, 211, 153); }
.hover\:bg-emerald-500\/30:hover { background-color: rgba(16, 185, 129, 0.3); }
.hover\:bg-emerald-500\/40:hover { background-color: rgba(16, 185, 129, 0.4); }
.hover\:bg-emerald-600:hover { background-color: rgb(5, 150, 105); }
.hover\:bg-indigo-500:hover { background-color: rgb(99, 102, 241); }
.hover\:bg-indigo-500\/40:hover { background-color: rgba(99, 102, 241, 0.4); }
.hover\:bg-rose-500\/25:hover { background-color: rgba(244, 63, 94, 0.25); }
.hover\:bg-rose-500\/35:hover { background-color: rgba(244, 63, 94, 0.35); }
.hover\:bg-sky-400:hover { background-color: rgb(56, 189, 248); }
.hover\:bg-sky-500:hover { background-color: rgb(14, 165, 233); }
.hover\:bg-sky-500\/35:hover { background-color: rgba(14, 165, 233, 0.35); }
.hover\:bg-sky-600:hover { background-color: rgb(2, 132, 199); }
.hover\:bg-slate-700:hover { background-color: rgb(51, 65, 85); }
.hover\:from-emerald-400:hover { --tw-gradient-from: rgb(52, 211, 153); --tw-gradient-to: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:to-cyan-300:hover { --tw-gradient-to: rgb(103, 232, 249); }
.focus\:border-cyan-400:focus { border-color: rgb(34, 211, 238); }
.focus\:border-indigo-400:focus { border-color: rgb(129, 140, 248); }
.hover\:text-slate-200:hover { color: rgb(226, 232, 240); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-\[0\.99\]:active { transform: scale(0.99); }
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:inline { display: inline !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sm\:min-w-\[180px\] { min-width: 180px; }
  .sm\:max-w-sm { max-width: 24rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:sticky { position: sticky; }
  .lg\:top-0 { top: 0px; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:grid-cols-\[minmax\(0\,1fr\)_280px\] { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-height: 820px) {
  #lobbyModal .p-4, #deathScreen .p-4 { padding: 0.65rem; }
  #lobbyModal .gap-3, #deathScreen .gap-3 { gap: 0.5rem; }
  #lobbyModal .p-3, #deathScreen .p-3 { padding: 0.55rem; }
  #lobbyModal .py-2\.5, #deathScreen .py-2\.5 { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  #lobbyModal .py-3, #deathScreen .py-3 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  #lobbyModal .lobby-wep-btn, #lobbyModal .lobby-sec-btn,
  #deathScreen .death-wep-btn, #deathScreen .death-sec-btn { padding-top: 0.35rem; padding-bottom: 0.35rem; }
  #lobbyModal #startBattleBtn { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  #lobbyModal .p-3\.5, #deathScreen .p-3\.5 { padding: 0.55rem; }
}

.h-3 { height: 0.75rem; }
.h-2\.5 { height: 0.625rem; }


.bottom-20 { bottom: 5rem; }
.bottom-24 { bottom: 6rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-80 { width: 20rem; }
.w-\[256px\] { width: 256px; }
.w-\[min\(86vw\,260px\)\] { width: min(86vw, 260px); }
.h-\[80px\] { height: 80px; }
.h-\[148px\] { height: 148px; }
.min-w-\[185px\] { min-width: 185px; }
.max-w-\[90px\] { max-width: 90px; }
.max-w-\[96px\] { max-width: 96px; }
.p-1\.5 { padding: 0.375rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.tracking-tight { letter-spacing: -0.025em; }
.cursor-pointer { cursor: pointer; }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.45); }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.backdrop-blur-none { backdrop-filter: none; }
.bg-emerald-500\/15 { background-color: rgba(16, 185, 129, 0.15); }
.bg-rose-500\/25 { background-color: rgba(244, 63, 94, 0.25); }
.bg-slate-950\/94 { background-color: rgba(2, 6, 23, 0.94); }
.bg-slate-950\/96 { background-color: rgba(2, 6, 23, 0.96); }
.bg-slate-950\/97 { background-color: rgba(2, 6, 23, 0.97); }
.border-emerald-400\/40 { border-color: rgba(52, 211, 153, 0.4); }
.border-emerald-500\/35 { border-color: rgba(16, 185, 129, 0.35); }
.border-rose-400\/50 { border-color: rgba(251, 113, 133, 0.5); }
.hover\:bg-emerald-500\/25:hover { background-color: rgba(16, 185, 129, 0.25); }
.hover\:bg-emerald-500\/35:hover { background-color: rgba(16, 185, 129, 0.35); }
.hover\:bg-rose-500\/40:hover { background-color: rgba(244, 63, 94, 0.4); }
.hover\:bg-slate-800:hover { background-color: rgb(30, 41, 59); }
@media (min-width: 640px) {
  .sm\:h-\[168px\] { height: 168px; }
  .sm\:min-w-\[210px\] { min-width: 210px; }
}

/* 移动端伪全屏与竖屏自动横屏旋转容器 */
body.pseudo-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
  overflow: hidden !important;
}
body.auto-landscape-rotated {
  position: fixed !important;
  top: 0 !important;
  left: 100vw !important;
  width: 100vh !important;
  height: 100vw !important;
  transform: rotate(90deg) !important;
  transform-origin: 0 0 !important;
  overflow: hidden !important;
}

/* ==========================================================================
   手机 / 小屏 HUD 紧凑适配
   --------------------------------------------------------------------------
   问题：HUD 用 Tailwind 的 sm: 断点（640px），但手机横屏在"布局视口"上
   往往仍报告为竖屏宽度，加上 1x 渲染下可用像素本就紧张，左上状态面板
   （min-width 185/210px）、右上小地图、底部武器栏三块会互相挤压甚至溢出。
   方案：按真实可视高度/宽度判断"矮屏"，统一收紧各 HUD 块的尺寸与字号，
   不改动桌面端任何表现。
   ========================================================================== */

/* 矮屏（横屏手机常见：可视高度 <= 520px）或极窄屏：整体收紧 */
@media (max-height: 520px), (max-width: 620px) {
  /* 左上状态面板：缩小内边距与最小宽度，避免挤压小地图 */
  #topHudBar > .glass-panel {
    min-width: 132px !important;
    padding: 4px 7px !important;
    gap: 3px !important;
    border-radius: 10px !important;
  }
  #hudPlayerName { font-size: 10px !important; max-width: 62px !important; }
  #hudHpBarWrap { height: 8px !important; }
  #topHudBar .text-xs { font-size: 10px !important; }
  #topHudBar .text-\[10px\] { font-size: 9px !important; }


  /* 顶部常驻房间与 Ping 信息栏：矮屏紧凑化 */
  #topRoomPingBar {
    padding: 3px 6px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }
  #topRoomPingBar > div {
    padding: 1px 6px !important;
    gap: 4px !important;
  }
  #openLobbyBtn {
    padding: 2px 6px !important;
    font-size: 9px !important;
  }

  /* 右上小地图：只收窄「面板」，canvas 按原始 244x80 比例跟着缩。
     给 canvas 同时套 width+height 双约束会让两条约束各自生效 →
     地图被压扁、面板却没收窄，右侧留出一块完全没有绘制的空缺。 */
  #hudMinimapPanel {
    width: 176px !important;
    padding: 3px !important;
  }
  #miniMapWrap, #minimapWrap { max-width: 176px !important; }
  #topHudBar #hudMinimapCanvas { border-radius: 8px !important; }

  /* 底部武器栏：收紧间距与字号 */
  #bottomWeaponDock { bottom: 4px !important; padding-left: 4px !important; padding-right: 4px !important; }
  #bottomWeaponDock .glass-panel { padding: 3px 6px !important; gap: 5px !important; border-radius: 10px !important; }
  #currentWeaponName { font-size: 11px !important; max-width: 56px !important; }
  #bottomWeaponDock .text-\[10px\] { font-size: 9px !important; }

  /* 换弹进度条：避免顶到屏幕外 */
  #reloadProgressWrap { top: -6px !important; transform: translate(-50%, -100%) !important; }

  /* 占点进度卡与交互提示：上移，避免与底部武器栏重叠 */
  #hudCaptureProgressCard { bottom: 64px !important; }
  #interactBanner { bottom: 56px !important; }

  /* 击杀信息：缩小并限制宽度 */
  #killFeedContainer { max-width: 150px !important; gap: 3px !important; }
  #killFeedContainer > * { font-size: 9px !important; padding: 2px 5px !important; }
}

/* 极矮屏（例如手机横屏但浏览器地址栏占位）：进一步压缩，优先保证不重叠 */
@media (max-height: 400px) {
  #topHudBar > .glass-panel { min-width: 112px !important; }
  #hudMinimapPanel { width: 168px !important; }
  #miniMapWrap, #minimapWrap { max-width: 168px !important; }
  #bottomWeaponDock .glass-panel { padding: 2px 5px !important; gap: 4px !important; }
}

.inset-2 { top: 0.5rem; right: 0.5rem; bottom: 0.5rem; left: 0.5rem; }
.border-rose-300\/45 { border-color: rgba(253, 164, 175, 0.45); }
.border-amber-300\/90 { border-color: rgba(252, 211, 77, 0.9); }
@media (min-width: 640px) {
  .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

/* 阵亡界面与弹窗滚动修复：
   避免 flex items-center 在内容超高时将顶部武器区推入负坐标（scrollTop < 0 不可达区域），
   使用 align-items: flex-start 配合子面板 margin: auto 实现「矮时居中、高时从顶可滚」，
   并显式开启 pan-y 触控滚动。 */
#deathScreen,
#lobbyModal,
#paramsModal {
  align-items: flex-start !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#deathScreen > div,
#lobbyModal > div,
#paramsModal > div {
  margin-top: auto;
  margin-bottom: auto;
}
#deathScreen *,
#lobbyModal *,
#paramsModal * {
  touch-action: pan-y;
}



/* ==========================================================================
   小地图 canvas：永远按自身原始比例缩放（244x80 / 528x168）。
   宽度交给面板，高度由 aspect-ratio 推导 —— 既不会被压扁、也不会留空缺。
   ========================================================================== */
#hudMinimapCanvas {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 244 / 80;
}
#deathMinimapCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 528 / 168;
}
#deathMinimapPanel { width: 100%; margin-left: auto; margin-right: auto; }
