* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0c0b;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #e8efe6;
  user-select: none;
  cursor: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 7, 0.72);
  z-index: 20;
  cursor: default;
}

#overlay.hidden {
  display: none;
}

#team-pick {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 7, 0.78);
  cursor: default;
}

#team-pick.hidden {
  display: none;
}

#team-pick .panel {
  text-align: center;
}

#team-blu,
#team-red {
  padding: 12px 22px;
  letter-spacing: 0.16em;
  color: #f4f7ff;
  cursor: pointer;
  font: inherit;
}

#team-blu {
  background: #1c4f86;
  border: 1px solid #8eb6ff;
}

#team-red {
  background: #8a2e2e;
  border: 1px solid #ffb1a3;
}

.team {
  font-style: normal;
  letter-spacing: 0.08em;
  margin-right: 6px;
}

.team.red {
  color: #ff8d86;
}

.team.blu {
  color: #8eb6ff;
}

.panel {
  text-align: center;
  padding: 28px 36px 22px;
  border: 1px solid rgba(180, 210, 160, 0.25);
  background: rgba(18, 22, 18, 0.92);
  max-width: 460px;
  width: min(460px, calc(100% - 32px));
}

#policy {
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: min(280px, 30vw);
  padding: 18px 16px;
  border: 1px solid #a14a3e;
  background: rgba(48, 14, 12, 0.92);
  text-align: left;
}

#policy h2 {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #ffb0a4;
}

#policy p {
  font-size: 15px;
  line-height: 1.45;
  color: #ffe4de;
}

.field {
  display: block;
  text-align: left;
  margin: 10px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #c5d8b4;
}

.field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: #101410;
  color: #e8efe6;
  border: 1px solid rgba(180, 210, 160, 0.35);
  font: 15px/1.3 "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.04em;
}

.hint {
  font-size: 12px;
  opacity: 0.75;
  margin: 4px 0 12px;
}

#share-url {
  overflow-wrap: anywhere;
}

.auth-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 16px;
}

#signup-btn,
#login-btn,
#death-respawn {
  padding: 10px 18px;
  letter-spacing: 0.16em;
  background: #243024;
  color: #e8f6d4;
  border: 1px solid rgba(210, 240, 170, 0.55);
  cursor: pointer;
  font: inherit;
}

#signup-btn:hover,
#login-btn:hover,
#death-respawn:hover,
#team-blu:hover,
#team-red:hover {
  filter: brightness(1.15);
}

#auth-error {
  color: #ffb1a3;
  min-height: 18px;
}

#roster {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  pointer-events: none;
  width: 220px;
}

#net-status {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7f0b8;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px #000;
}

.who {
  background: rgba(10, 14, 10, 0.62);
  border: 1px solid rgba(200, 220, 180, 0.18);
  padding: 6px 10px;
  margin-bottom: 6px;
}

.who b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.who-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.who-row > b {
  flex: 1;
  min-width: 0;
}

.hp {
  display: block;
  width: 70px;
  height: 8px;
  flex: none;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hp i {
  display: block;
  height: 100%;
  width: 0;
}

.who span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7c8a8;
}

.who.you {
  border-color: rgba(210, 240, 170, 0.55);
}

.panel h1 {
  letter-spacing: 0.28em;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #c8e0b0;
}

.panel p {
  opacity: 0.8;
  margin-bottom: 22px;
}

.panel ul {
  list-style: none;
  text-align: left;
  line-height: 1.9;
  font-size: 14px;
  opacity: 0.92;
}

kbd {
  display: inline-block;
  min-width: 92px;
  font: 12px/1.4 Consolas, monospace;
  color: #d7f0b8;
}

#hud.hidden {
  display: none;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  color: #eaf7d8;
  transform: translate(-50%, -50%);
  transition: opacity 0.12s linear, transform 0.12s linear;
}

#crosshair.hidden {
  opacity: 0;
}

#crosshair.sniper-ads {
  opacity: 0;
}

.ch {
  position: absolute;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.ch-n,
.ch-s {
  left: 50%;
  width: 2px;
  height: 8px;
  margin-left: -1px;
}

.ch-n {
  top: 0;
}

.ch-s {
  bottom: 0;
}

.ch-e,
.ch-w {
  top: 50%;
  width: 8px;
  height: 2px;
  margin-top: -1px;
}

.ch-e {
  right: 0;
}

.ch-w {
  left: 0;
}

.ch-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: currentColor;
  border-radius: 50%;
}

#scope {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at center, transparent 16%, rgba(0, 0, 0, 0.15) 18%, rgba(0, 0, 0, 0.92) 34%),
    repeating-linear-gradient(90deg, transparent 0 49.7%, rgba(180, 220, 150, 0.25) 49.7% 50.3%, transparent 50.3%),
    repeating-linear-gradient(0deg, transparent 0 49.7%, rgba(180, 220, 150, 0.25) 49.7% 50.3%, transparent 50.3%);
  transition: opacity 0.12s linear;
}

#scope.active {
  opacity: 1;
}

#resume-hint {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.22em;
  font-size: 16px;
  color: #e8f6d4;
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
}

#resume-hint.hidden {
  display: none;
}

body.resuming,
body.resuming canvas {
  cursor: default;
}

#hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  opacity: 0;
  border: 2px solid #f2ffd0;
  transform: rotate(45deg) scale(0.4);
  box-sizing: border-box;
  pointer-events: none;
}

#hitmarker.show {
  animation: hitpop 0.2s ease-out;
}

#hitmarker.blocked {
  border-color: #9fd0ff;
  box-shadow: none;
}

#hitmarker.plates {
  border-color: #3d9eff;
  box-shadow: 0 0 0 2px rgba(61, 158, 255, 0.35), 0 0 14px rgba(61, 158, 255, 0.85);
}

#hitmarker.flesh {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28), 0 0 10px rgba(255, 255, 255, 0.55);
}

#hitmarker.kill {
  border-color: #ff2d2d;
  box-shadow: 0 0 0 2px rgba(255, 45, 45, 0.4), 0 0 16px rgba(255, 45, 45, 0.9);
}

#hurt-flash {
  position: fixed;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 40, 40, 0.05) 28%, rgba(170, 0, 0, 0.62) 100%);
}

#hurt-flash.on {
  animation: hurtflash 0.42s ease-out;
}

@keyframes hurtflash {
  0% { opacity: var(--hurt, 0.8); }
  100% { opacity: 0; }
}

#damage-indicators {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 15;
  width: 0;
  height: 0;
  pointer-events: none;
}

.dmg-arrow {
  position: absolute;
  left: -9px;
  top: -168px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 18px solid #ff2a22;
  transform-origin: 9px 168px;
  filter: drop-shadow(0 0 6px rgba(255, 30, 20, 0.9));
}

#ability {
  position: absolute;
  left: 28px;
  bottom: 148px;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: #e7c2b8;
  text-shadow: 0 2px 6px #000;
}

#ability.ready {
  color: #ffd0c4;
}

#ability.hot {
  color: #ff3a2c;
}

#ability.hidden {
  display: none;
}

#protect-banner,
#death-banner {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  letter-spacing: 0.22em;
  font-size: 14px;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

#protect-banner {
  color: #d7ecff;
}

#protect-banner.show,
#death-banner.show {
  opacity: 1;
}

#death-banner {
  color: #ffb1a3;
}

#death-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(110, 6, 6, 0.94);
  pointer-events: auto;
  cursor: default;
}

.death-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 980px;
}

#death-screen.hidden {
  display: none;
}

#killcam {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 9vh;
  z-index: 70;
  text-align: center;
  pointer-events: none;
}

#killcam.hidden {
  display: none;
}

#killcam-line {
  margin: 0;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff4ef;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.9);
}

#killcam-skip {
  margin: 10px 0 0;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #f0d2c8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

#killcam-tracker {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  text-align: left;
  background: rgba(8, 10, 8, 0.72);
  border: 1px solid rgba(210, 240, 170, 0.35);
}

#killcam-tracker.hidden,
#killcam-skin-row.hidden {
  display: none;
}

#killcam-camo-row,
#killcam-skin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff4ef;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

#killcam-tracker b {
  color: #d7f0b8;
  font-weight: 700;
  margin-right: 6px;
}

#killcam-tracker .swatch {
  width: 54px;
  height: 28px;
  flex: 0 0 54px;
}

#killcam-tracker .swatch.galaxy {
  background: radial-gradient(circle at 40% 40%, #e4c8ff, #5a2a88 45%, #12081c);
}

#death-line {
  max-width: 980px;
  text-align: center;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.2;
  font-weight: 700;
  color: #ffe8e4;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.85);
}

#death-line b {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(72px, 11vw, 132px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
}

#death-count {
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

#death-respawn {
  font-size: 18px;
  padding: 14px 28px;
}

#death-respawn.hidden,
#death-count.hidden,
#unstuck.hidden {
  display: none;
}

#command-dock {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  cursor: default;
}

#command-dock.hidden {
  display: none;
}

#command-toggle {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #d7f0b8;
  background: rgba(10, 14, 10, 0.88);
  border: 1px solid rgba(210, 240, 170, 0.55);
  cursor: pointer;
}

#command-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

#command-toggle:hover,
#command-dock.open #command-toggle {
  background: #314231;
}

#command-panel {
  width: 0;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 14, 10, 0.92);
  border: 1px solid transparent;
  user-select: text;
}

#command-dock.open #command-panel {
  width: min(340px, 46vw);
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  padding: 14px 14px 18px;
  border-color: rgba(210, 240, 170, 0.35);
}

#command-panel h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #d7f0b8;
}

#command-panel h2 + h2,
#command-panel dl + h2 {
  margin-top: 16px;
}

#command-panel p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #c5d8b4;
}

#command-panel dl {
  margin: 0;
}

#command-panel dt {
  margin-top: 8px;
  font-size: 13px;
  color: #f2ffd0;
}

#command-panel dd {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #c5d8b4;
}

#command-panel kbd {
  font: inherit;
  color: #ffe2a4;
}

body.commands-open #unstuck {
  right: min(400px, 54vw);
}

#unstuck {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  padding: 14px 18px;
  pointer-events: auto;
  cursor: pointer;
  letter-spacing: 0.16em;
  font: 13px "Segoe UI", Tahoma, sans-serif;
  color: #e8efe6;
  background: rgba(10, 14, 10, 0.82);
  border: 1px solid rgba(210, 240, 170, 0.45);
}

#unstuck:hover {
  background: #314231;
}

#health-wrap {
  width: 240px;
  margin-bottom: 8px;
}

#vitals-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

#health-bar,
#plate-bar {
  height: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex: 1;
  min-width: 0;
}

#plate-bar {
  border-color: rgba(90, 170, 255, 0.45);
}

#health-fill {
  height: 100%;
  width: 100%;
  background: #d45448;
}

#plate-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f6fd4, #4db0ff);
  transition: width 0.08s linear;
}

#health-fill.safe {
  background: #6eb6ff;
}

#health-num {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #f0d2cc;
}

#health-num.plating {
  color: #8ec8ff;
}

@keyframes hitpop {
  0% {
    opacity: 1;
    transform: rotate(45deg) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) scale(1.15);
  }
}

#bottom-hud {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

#weapon-name {
  letter-spacing: 0.22em;
  font-size: 13px;
  color: #b7d59a;
  margin-bottom: 4px;
}

#ammo {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

#ammo.low {
  color: #ffce7a;
}

#ammo.empty {
  color: #ff8a73;
}

#weapon-list {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.wep {
  padding: 6px 10px;
  border: 1px solid rgba(200, 220, 180, 0.18);
  color: #9aaa90;
}

.wep.active {
  color: #e8f6d4;
  border-color: rgba(210, 240, 170, 0.55);
  background: rgba(40, 52, 32, 0.55);
}

#stats {
  text-align: right;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: #c5d8b4;
}

#reload-hint {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  letter-spacing: 0.24em;
  font-size: 13px;
  color: #ffe2a4;
  min-height: 18px;
}

#chat {
  position: absolute;
  left: 28px;
  bottom: 118px;
  width: min(440px, 48vw);
  pointer-events: none;
  z-index: 12;
}

#chat-log {
  max-height: 150px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#chat.open {
  pointer-events: auto;
}

#chat.open #chat-log {
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 10px;
  background: rgba(8, 10, 8, 0.62);
  border: 1px solid rgba(200, 220, 180, 0.22);
}

.chat-line {
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  color: #e8efe6;
}

.chat-line b {
  color: #d7f0b8;
  font-weight: 600;
  margin-right: 6px;
}

.chat-line.kill {
  color: #ffe2a4;
}

#chat-input {
  display: none;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(10, 14, 10, 0.9);
  color: #e8efe6;
  border: 1px solid rgba(210, 240, 170, 0.45);
  font: 14px/1.3 "Segoe UI", Tahoma, sans-serif;
}

#chat.open #chat-input {
  display: block;
}

#shop-bar {
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  cursor: default;
}

#map-banner {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 41;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 6px #000;
}

#scoreboard {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 420px;
  padding: 8px 16px;
  background: rgba(8, 10, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sb {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 92px;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.sb b {
  font-size: 28px;
  letter-spacing: 0.04em;
}

.sb.blu {
  color: #8eb6ff;
  justify-content: flex-end;
}

.sb.red {
  color: #ff8d86;
  justify-content: flex-start;
}

.sb.mid {
  text-align: center;
  min-width: 120px;
}

#red-dot {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 8px #ff2020;
}

#red-dot.on {
  display: block;
}

#crosshair.red-dot-ads {
  visibility: hidden;
}

#drop-hint {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translateX(-50%);
  letter-spacing: 0.18em;
  color: #f4f7ff;
  text-shadow: 0 2px 8px #000;
  font-size: 14px;
}

#drop-hint.hidden {
  display: none;
}

#round-end {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

#round-end.hidden {
  display: none;
}

#round-end-title {
  margin: 0;
  font-size: 92px;
  letter-spacing: 0.18em;
  line-height: 1;
}

#round-end-sub {
  margin: 12px 0 0;
  letter-spacing: 0.16em;
  font-size: 18px;
}

#round-end.win {
  background: linear-gradient(180deg, rgba(22, 48, 92, 0.88), rgba(120, 86, 24, 0.82));
  color: #f8e7b0;
}

#round-end.loss {
  background: rgba(92, 16, 16, 0.9);
  color: #ffd0cc;
}

#round-end.draw {
  background: rgba(18, 22, 26, 0.88);
  color: #e7eef6;
}

#map-banner.hidden {
  display: none;
}

#map-next {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #f3ffe8;
}

#map-time {
  font-size: 20px;
  letter-spacing: 0.12em;
  color: #ffe2a4;
}

#shop-bar.hidden,
#shop.hidden,
#events.hidden,
#skins.hidden,
#bundles.hidden,
#spin-window.hidden {
  display: none;
}

#shop-btn,
#events-btn,
#skins-btn,
#bundles-btn,
#shop-close,
#events-close,
#skins-close,
#bundles-close,
.case-buy {
  font: inherit;
  letter-spacing: 0.16em;
  background: #243024;
  color: #e8f6d4;
  border: 1px solid rgba(210, 240, 170, 0.55);
  padding: 8px 14px;
  cursor: pointer;
}

#shop-btn:hover,
#shop-close:hover,
.case-buy:hover:not(:disabled) {
  background: #314231;
}

#events-btn,
#events-close {
  background: #3a1412;
  color: #ffd2cc;
  border-color: rgba(255, 70, 48, 0.75);
}

#events-btn:hover,
#events-close:hover {
  background: #54201c;
}

#skins-btn,
#skins-close {
  background: #14283a;
  color: #d5e9ff;
  border-color: rgba(120, 180, 255, 0.7);
}

#skins-btn:hover,
#skins-close:hover {
  background: #1c3a54;
}

#bundles-btn,
#bundles-close {
  background: #3a1024;
  color: #ffd6ea;
  border-color: rgba(220, 40, 70, 0.8);
}

#bundles-btn:hover,
#bundles-close:hover {
  background: #541832;
}

.case-buy:disabled {
  opacity: 0.45;
  cursor: default;
}

#token-pill {
  padding: 8px 12px;
  background: rgba(10, 14, 10, 0.78);
  border: 1px solid rgba(200, 220, 180, 0.28);
  letter-spacing: 0.14em;
  font-size: 13px;
  color: #ffe2a4;
}

#shop,
#events,
#skins,
#bundles {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(6, 8, 7, 0.78);
  pointer-events: auto;
  cursor: default;
}

.shop-panel {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: rgba(18, 22, 18, 0.96);
  border: 1px solid rgba(180, 210, 160, 0.28);
  padding: 20px 20px 16px;
}

.shop-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-head h2 {
  letter-spacing: 0.22em;
  font-size: 18px;
  font-weight: 600;
  color: #c8e0b0;
}

#shop-weapon,
#events-status,
#bundles-status {
  flex: 1;
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: #d7f0b8;
}

#events-status {
  color: #ffb0a4;
}

#bundles-status {
  color: #ffb7c8;
}

.events-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

#event-preview-wrap {
  background: radial-gradient(circle at 50% 30%, #3a1814, #100806 70%);
  border: 1px solid rgba(255, 70, 48, 0.45);
  min-height: 320px;
}

#event-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

#event-preview-label {
  margin: 0;
  padding: 8px 10px 10px;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: #ffb0a4;
}

#bundle-preview-wrap {
  background: radial-gradient(circle at 50% 28%, #4a1830, #10060c 72%);
  border: 1px solid rgba(220, 48, 72, 0.5);
  min-height: 320px;
}

#bundle-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

#bundle-preview-label {
  margin: 0;
  padding: 8px 10px 10px;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: #ffc0d0;
}

.bundle-card {
  border: 1px solid rgba(220, 48, 80, 0.45);
  background: rgba(28, 8, 16, 0.55);
  padding: 12px;
  margin-bottom: 12px;
}

.bundle-card h3 {
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 4px;
}

.bundle-card p {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.86;
}

.bundle-hands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.hand-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  padding: 8px;
  min-height: 72px;
}

.hand-chip b {
  display: block;
  letter-spacing: 0.12em;
  font-size: 11px;
  margin-bottom: 4px;
}

.hand-chip span {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.8;
}

.bundle-skins {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.event-card {
  border: 1px solid rgba(255, 80, 48, 0.4);
  background: rgba(28, 10, 8, 0.55);
  padding: 12px;
  margin-bottom: 12px;
}

.event-card h3 {
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 4px;
}

.event-card p {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.86;
  min-height: 34px;
}

.skins-label {
  margin: 16px 0 8px;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #c5d4c2;
}

#skins-events,
#skins-bundles,
#skins-costumes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.skin-card {
  border: 1px solid rgba(180, 210, 160, 0.28);
  background: rgba(10, 14, 12, 0.55);
  padding: 12px;
}

.skin-card h3 {
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 6px;
}

.skin-card p {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.8;
  min-height: 32px;
}

.skin-card .case-buy {
  margin-top: 8px;
}

.skins-empty {
  grid-column: 1 / -1;
  font-size: 13px;
  opacity: 0.75;
}

.event-card .swatch {
  width: 44px;
  height: 44px;
  margin: 8px 0;
}

@media (max-width: 720px) {
  .events-layout {
    grid-template-columns: 1fr;
  }
}

.shop-note {
  margin: 12px 0 14px;
  font-size: 13px;
  opacity: 0.8;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.shop-tabs button {
  padding: 8px 14px;
  letter-spacing: 0.14em;
  background: #1a221a;
  color: #d7e8cc;
  border: 1px solid rgba(200, 220, 180, 0.28);
  cursor: pointer;
  font: inherit;
}

.shop-tabs button.on {
  background: #314231;
  color: #fff;
}

#case-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.case-card {
  border: 1px solid rgba(200, 220, 180, 0.22);
  background: rgba(10, 14, 10, 0.5);
  padding: 12px;
}

.case-card h3 {
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 4px;
}

.case-cost {
  color: #ffe2a4;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.case-card p {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.82;
  min-height: 34px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0;
}

.swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-size: cover;
}

.swatch.rainbow,
.spin-tile.rainbow {
  background-image: linear-gradient(90deg, #ff4d4d, #ffe14d, #4dff88, #4de4ff, #6a6bff, #ff4dff);
  animation: camo-hue 2.4s linear infinite;
}

@keyframes camo-hue {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

#spin-window {
  position: relative;
  width: 100%;
  margin-top: 16px;
  height: 96px;
  overflow: hidden;
  border: 1px solid rgba(210, 240, 170, 0.35);
  background: #0c100c;
}

#spin-marker {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #f2ffd0;
  z-index: 2;
  box-shadow: 0 0 8px rgba(242, 255, 208, 0.8);
}

#spin-strip {
  display: flex;
  height: 100%;
  will-change: transform;
}

.spin-tile {
  flex: 0 0 112px;
  margin: 8px 3px;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  background-size: cover;
}

#spin-result {
  min-height: 22px;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.12em;
  color: #d7f0b8;
}

.swatch.anim-pulse,
.spin-tile.anim-pulse {
  animation: camo-pulse 1.1s ease-in-out infinite;
}

.swatch.anim-flow,
.spin-tile.anim-flow {
  background-size: 220% 100%;
  animation: camo-flow 2.6s linear infinite;
}

.swatch.anim-rise,
.spin-tile.anim-rise {
  background-size: 100% 220%;
  animation: camo-rise 2.4s linear infinite;
}

.swatch.anim-shimmer,
.spin-tile.anim-shimmer {
  animation: camo-shimmer 1.4s ease-in-out infinite;
}

.swatch.anim-boil,
.spin-tile.anim-boil {
  background-size: 180% 180%;
  animation: camo-boil 1.6s linear infinite;
}

.swatch.anim-shift,
.spin-tile.anim-shift {
  animation: camo-shift 3.2s linear infinite;
}

@keyframes camo-pulse {
  0%, 100% { filter: brightness(0.72); }
  50% { filter: brightness(1.5); }
}

@keyframes camo-flow {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes camo-rise {
  from { background-position: 0 100%; }
  to { background-position: 0 0; }
}

@keyframes camo-shimmer {
  0%, 100% { filter: brightness(0.7) saturate(1); }
  50% { filter: brightness(1.65) saturate(1.45); }
}

@keyframes camo-boil {
  0% { background-position: 0 80%; filter: brightness(0.8); }
  50% { filter: brightness(1.4); }
  100% { background-position: 70% 0; filter: brightness(0.85); }
}

@keyframes camo-shift {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(70deg); }
}

.swatch .live-swatch {
  width: 100%;
  height: 100%;
  display: block;
}

#shop-tab-secret.on {
  background: #3a2414;
  color: #ffe7b0;
  border-color: rgba(255, 196, 90, 0.7);
}

#shop-tab-outfit.on {
  background: #2a1830;
  color: #f3e2ff;
  border-color: rgba(210, 150, 255, 0.7);
}

.case-card.tier-small {
  border-color: rgba(150, 200, 255, 0.5);
  background: rgba(8, 16, 28, 0.5);
}

.case-card.tier-large {
  border-color: rgba(255, 130, 50, 0.55);
  background: rgba(32, 12, 6, 0.5);
}

.case-card.tier-elite {
  border-color: rgba(214, 160, 255, 0.75);
  background: rgba(22, 10, 28, 0.55);
  box-shadow: inset 0 0 22px rgba(150, 70, 220, 0.14);
}

.swatch.anim-cape,
.spin-tile.anim-cape,
.swatch.anim-cloak,
.spin-tile.anim-cloak {
  animation: camo-seraph 1.6s ease-in-out infinite;
}

.swatch.anim-flap,
.spin-tile.anim-flap {
  animation: camo-shock 0.7s ease-in-out infinite;
}

.swatch.anim-glow,
.spin-tile.anim-glow,
.swatch.anim-core,
.spin-tile.anim-core {
  animation: camo-pulse 1s ease-in-out infinite;
}

.swatch.anim-orbit,
.spin-tile.anim-orbit,
.swatch.anim-wisp,
.spin-tile.anim-wisp {
  animation: camo-plasma 2s linear infinite;
}

.case-card.tier-heat {
  border-color: rgba(255, 90, 30, 0.6);
  background: rgba(42, 12, 4, 0.55);
}

.case-card.tier-extreme {
  border-color: rgba(70, 230, 255, 0.55);
  background: rgba(4, 18, 28, 0.55);
}

.case-card.tier-godly {
  border-color: rgba(255, 214, 110, 0.8);
  background: rgba(36, 24, 6, 0.6);
  box-shadow: inset 0 0 24px rgba(255, 190, 60, 0.14);
}

.swatch.anim-inferno,
.spin-tile.anim-inferno,
.swatch.anim-wildfire,
.spin-tile.anim-wildfire {
  animation: camo-inferno 0.7s ease-in-out infinite;
}

.swatch.anim-cinder,
.spin-tile.anim-cinder {
  animation: camo-cinder 0.45s steps(2) infinite;
}

.swatch.anim-solar,
.spin-tile.anim-solar,
.swatch.anim-halo,
.spin-tile.anim-halo,
.swatch.anim-divinity,
.spin-tile.anim-divinity {
  animation: camo-solar 1.6s linear infinite;
}

.swatch.anim-voltage,
.spin-tile.anim-voltage {
  animation: camo-voltage 0.18s steps(2) infinite;
}

.swatch.anim-plasma,
.spin-tile.anim-plasma {
  animation: camo-plasma 1.8s linear infinite;
}

.swatch.anim-shock,
.spin-tile.anim-shock {
  animation: camo-shock 1.1s ease-out infinite;
}

.swatch.anim-overload,
.spin-tile.anim-overload {
  animation: camo-overload 0.22s steps(2) infinite;
}

.swatch.anim-seraph,
.spin-tile.anim-seraph {
  animation: camo-seraph 2.2s ease-in-out infinite;
}

.swatch.anim-apotheosis,
.spin-tile.anim-apotheosis {
  animation: camo-apotheosis 1.4s linear infinite;
}

@keyframes camo-inferno {
  0%, 100% { filter: brightness(0.75) saturate(1.1); }
  50% { filter: brightness(1.7) saturate(1.6); }
}

@keyframes camo-cinder {
  0%, 100% { filter: brightness(0.55); }
  50% { filter: brightness(1.8); }
}

@keyframes camo-solar {
  from { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(18deg) brightness(1.55); }
  to { filter: hue-rotate(0deg) brightness(1); }
}

@keyframes camo-voltage {
  0%, 100% { filter: brightness(0.7); }
  50% { filter: brightness(2.1) saturate(1.4); }
}

@keyframes camo-plasma {
  from { filter: hue-rotate(0deg) brightness(1.05); }
  to { filter: hue-rotate(140deg) brightness(1.35); }
}

@keyframes camo-shock {
  0% { filter: brightness(1.8); transform: scale(1); }
  100% { filter: brightness(0.7); transform: scale(0.92); }
}

@keyframes camo-overload {
  0%, 100% { filter: brightness(0.45) hue-rotate(0deg); }
  50% { filter: brightness(2) hue-rotate(40deg); }
}

@keyframes camo-seraph {
  0%, 100% { filter: brightness(0.8); }
  50% { filter: brightness(1.65) saturate(0.7); }
}

@keyframes camo-apotheosis {
  from { filter: hue-rotate(0deg) brightness(1.15); }
  to { filter: hue-rotate(360deg) brightness(1.55); }
}
