/* ═══ BLAZE ROYALE — UI ═══ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #ff9f1a;
  --accent2: #ffd11a;
  --danger: #ff3344;
  --hp: #5fd35f;
  --ep: #33ddff;
  --armor: #8fb6ff;
  --panel: rgba(12, 14, 20, 0.82);
  --panel-light: rgba(255, 255, 255, 0.08);
}
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0c12; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#app { width: 100%; height: 100%; position: relative; }
canvas.game { display: block; position: absolute; inset: 0; }
.hidden { display: none !important; }

/* ═══ ECRÃS ═══ */
.screen {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
}
#screen-menu {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 120, 30, 0.22), transparent 60%),
    linear-gradient(160deg, #14161f 0%, #1c1410 55%, #0a0c12 100%);
  overflow-y: auto;
}
.menu-bg-stripes {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background: repeating-linear-gradient(-55deg, transparent 0 26px, #ff9f1a 26px 30px);
}
.menu-content {
  position: relative; text-align: center; padding: 28px 20px; max-width: 860px; width: 100%;
}
.game-title {
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 900; font-style: italic;
  letter-spacing: 2px; line-height: 0.9;
  background: linear-gradient(180deg, #ffd11a 20%, #ff7a00 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.45));
}
.game-title span { display: block; font-size: 0.62em; color: #fff; -webkit-text-fill-color: #fff; letter-spacing: 14px; }
.game-subtitle { margin: 10px 0 26px; color: #cfd3dd; font-style: italic; letter-spacing: 1px; }

.char-select h2 {
  font-size: 15px; letter-spacing: 3px; color: var(--accent2);
  margin-bottom: 12px; font-style: italic;
}
.char-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.char-card {
  width: 158px; padding: 13px 11px; cursor: pointer;
  background: var(--panel); border: 2px solid var(--panel-light);
  border-radius: 8px; transform: skewX(-4deg);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.char-card:hover { transform: skewX(-4deg) translateY(-3px); }
.char-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255, 159, 26, 0.45);
  background: linear-gradient(180deg, rgba(255,159,26,0.18), var(--panel));
}
.char-card .cc-face { font-size: 34px; }
.char-card h3 { font-size: 16px; margin: 6px 0 2px; font-style: italic; }
.char-card .cc-skill { font-size: 12px; color: var(--accent2); font-weight: 700; }
.char-card p { font-size: 11px; color: #aab; margin-top: 4px; line-height: 1.35; }

.menu-row {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin: 22px 0 18px; font-size: 13px; color: #cfd3dd;
}
.menu-row label { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.menu-row input[type="text"], .menu-row select {
  background: var(--panel); color: #fff; border: 1px solid var(--panel-light);
  padding: 7px 10px; border-radius: 4px; font-size: 14px; width: 140px; text-align: center;
}
.menu-row input[type="range"] { width: 140px; accent-color: var(--accent); }

.btn-primary {
  display: inline-block; cursor: pointer;
  font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: 2px;
  color: #1a1206; background: linear-gradient(180deg, #ffd11a, #ff8c00);
  border: none; padding: 15px 64px; border-radius: 6px;
  transform: skewX(-6deg);
  box-shadow: 0 5px 0 #9e5500, 0 8px 22px rgba(255, 140, 0, 0.35);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-primary:hover { transform: skewX(-6deg) translateY(-2px); }
.btn-primary:active { transform: skewX(-6deg) translateY(2px); box-shadow: 0 2px 0 #9e5500; }
.btn-secondary {
  display: inline-block; cursor: pointer; margin-top: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  color: #cfd3dd; background: var(--panel); border: 1px solid var(--panel-light);
  padding: 10px 26px; border-radius: 6px; transform: skewX(-6deg);
}
.btn-secondary:hover { border-color: var(--accent); color: #fff; }

.controls-help {
  margin-top: 22px; font-size: 12px; color: #8a90a0; line-height: 1.9; max-width: 700px;
  margin-left: auto; margin-right: auto;
}
.controls-help b { color: var(--accent2); background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 3px; }

/* matchmaking */
#screen-mm { background: #0a0c12; }
.mm-content { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mm-box {
  background: rgba(18, 21, 30, 0.85); border: 1px solid #2a2f3d; border-radius: 14px;
  padding: 34px 46px; text-align: center; min-width: 360px; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.mm-box h2 { font-style: italic; letter-spacing: 3px; color: var(--accent2); margin: 14px 0 6px; }
.mm-box #mm-sub { color: #c7cdda; font-size: 15px; min-height: 20px; }
.mm-spinner {
  width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%;
  border: 4px solid #2a2f3d; border-top-color: #ff8c00; animation: mm-spin 0.9s linear infinite;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }
.mm-bar { width: 300px; height: 8px; margin: 18px auto 0; background: #222630; border-radius: 4px; overflow: hidden; }
#mm-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #ff8c00, #ffd11a); transition: width 0.25s linear; }

/* loading */
#screen-loading { background: #0a0c12; }
.loading-box { text-align: center; }
.loading-box h2 { font-style: italic; letter-spacing: 4px; color: var(--accent2); margin-bottom: 18px; }
.loading-bar { width: 320px; height: 10px; background: #222630; border-radius: 5px; overflow: hidden; }
#loading-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #ff8c00, #ffd11a); transition: width 0.2s; }

/* overlays (pausa/morte/vitória) */
.screen.overlay { background: rgba(5, 6, 10, 0.78); backdrop-filter: blur(4px); z-index: 60; }
.panel {
  background: var(--panel); border: 1px solid var(--panel-light);
  padding: 34px 48px; border-radius: 10px; text-align: center; min-width: 340px;
}
.panel h2 { font-style: italic; letter-spacing: 3px; margin-bottom: 14px; }
.panel label { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 13px; color: #cfd3dd; }
.panel input[type="range"] { accent-color: var(--accent); }
.panel .btn-primary { font-size: 17px; padding: 12px 44px; margin-top: 16px; }
.pause-hint { font-size: 13px; color: #8a90a0; margin-bottom: 8px; }

.death-title { color: var(--danger); font-size: 44px; text-shadow: 0 0 24px rgba(255, 51, 68, 0.6); }
#death-killer { color: #cfd3dd; font-size: 14px; margin-bottom: 8px; }
.booyah {
  font-size: 64px; font-weight: 900;
  background: linear-gradient(180deg, #ffd11a, #ff7a00);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 170, 26, 0.55));
  animation: booyah-pop 0.6s cubic-bezier(0.2, 2.4, 0.4, 1);
}
@keyframes booyah-pop { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-stats { display: flex; gap: 26px; justify-content: center; margin: 22px 0 6px; }
.result-stats div { display: flex; flex-direction: column; }
.result-stats span { font-size: 30px; font-weight: 900; font-style: italic; color: var(--accent2); }
.result-stats label { font-size: 11px; color: #8a90a0; letter-spacing: 1px; text-transform: uppercase; }

/* how to play (onboarding) */
.howto-panel { max-width: 580px; }
.howto-title {
  font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 2px; margin-bottom: 6px;
  background: linear-gradient(180deg, #ffd11a, #ff7a00);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.howto-title span { -webkit-text-fill-color: #fff; }
.howto-sub { color: #cfd3dd; font-size: 13px; line-height: 1.5; margin: 0 auto 20px; max-width: 460px; }
.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; text-align: left; margin-bottom: 22px; }
.howto-row { display: flex; align-items: center; gap: 11px; font-size: 13px; color: #cfd3dd; }
.howto-row kbd {
  flex: none; min-width: 58px; text-align: center; font-family: inherit; font-weight: 900; font-size: 12px;
  color: var(--accent2); background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-light); border-bottom-width: 2px;
  padding: 4px 8px; border-radius: 5px;
}
@media (max-width: 560px) { .howto-grid { grid-template-columns: 1fr; gap: 7px; } }

/* ═══ HUD ═══ */
#hud { position: absolute; inset: 0; z-index: 40; pointer-events: none; }

#minimap-wrap { position: absolute; top: 14px; left: 14px; }
#minimap {
  width: 170px; height: 170px; border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.25); box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
#zone-timer {
  margin-top: 5px; display: flex; justify-content: space-between; align-items: center;
  background: var(--panel); border-radius: 5px; padding: 4px 10px; font-size: 13px;
}
#zone-phase-label { color: #9fb6ff; font-weight: 700; font-size: 11px; letter-spacing: 1px; }
#zone-time { font-weight: 900; font-variant-numeric: tabular-nums; }
#zone-timer.warning #zone-phase-label { color: var(--danger); }
#zone-timer.warning #zone-time { color: var(--danger); }

#match-info { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.mi-box {
  background: var(--panel); border-radius: 6px; padding: 7px 14px;
  font-size: 19px; font-weight: 900; font-style: italic;
  display: flex; align-items: center; gap: 7px;
  border-left: 3px solid var(--accent);
}
.mi-box.kills { border-left-color: var(--danger); }
.mi-icon { font-size: 15px; font-style: normal; }

#killfeed {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.kf-entry {
  background: var(--panel); padding: 4px 14px; border-radius: 4px;
  font-size: 13px; animation: kf-in 0.25s ease-out;
  white-space: nowrap;
}
.kf-entry .kf-killer { color: var(--accent2); font-weight: 700; }
.kf-entry .kf-victim { color: #ff8899; font-weight: 700; }
.kf-entry .kf-weapon { color: #8a90a0; font-size: 11px; margin: 0 6px; }
.kf-entry.me { border: 1px solid var(--accent); }
@keyframes kf-in { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

#announce {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: 2px;
  color: var(--accent2); text-shadow: 0 0 18px rgba(0,0,0,0.9), 0 2px 4px #000;
  text-align: center; white-space: nowrap;
  animation: ann-in 0.3s ease-out;
}
#announce.danger { color: var(--danger); }
@keyframes ann-in { from { transform: translateX(-50%) scale(1.5); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* crosshair */
#crosshair { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.ch-dot { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 2px #000; }
.ch-line { position: absolute; background: #fff; box-shadow: 0 0 2px #000; }
.ch-t, .ch-b { width: 2px; height: 9px; left: -1px; }
.ch-l, .ch-r { width: 9px; height: 2px; top: -1px; }
#crosshair { --gap: 7px; }
.ch-t { top: calc(-9px - var(--gap)); }
.ch-b { top: var(--gap); }
.ch-l { left: calc(-9px - var(--gap)); }
.ch-r { left: var(--gap); }
#crosshair.ads { --gap: 4px; }

#hitmarker { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
#hitmarker div { position: absolute; width: 3px; height: 11px; background: #fff; box-shadow: 0 0 3px rgba(0,0,0,0.8); }
#hitmarker div:nth-child(1) { transform: translate(-9px, -14px) rotate(-45deg); }
#hitmarker div:nth-child(2) { transform: translate(6px, -14px) rotate(45deg); }
#hitmarker div:nth-child(3) { transform: translate(-9px, 3px) rotate(45deg); }
#hitmarker div:nth-child(4) { transform: translate(6px, 3px) rotate(-45deg); }
#hitmarker.head div { background: #ffd11a; }
#hitmarker.kill div { background: #ff3344; height: 15px; }

#interact-prompt {
  position: absolute; bottom: 31%; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--panel-light);
  padding: 8px 18px; border-radius: 6px; font-size: 14px; white-space: nowrap;
}
#interact-prompt b { color: var(--accent2); background: rgba(255,255,255,0.1); padding: 1px 7px; border-radius: 3px; margin-right: 6px; }
#interact-prompt .ip-rarity { font-weight: 700; }

/* estado (esquerda fundo) */
#status-wrap { position: absolute; bottom: 16px; left: 16px; width: 250px; }
#char-badge {
  display: flex; justify-content: space-between; font-size: 12px;
  color: #cfd3dd; margin-bottom: 4px; font-weight: 700; font-style: italic;
}
.bar-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bar-ico { font-size: 11px; width: 16px; text-align: center; }
.bar {
  position: relative; flex: 1; height: 14px; background: rgba(8, 10, 14, 0.75);
  border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12);
}
.bar.hp { height: 20px; }
.bar.ep, .bar.armor { height: 9px; }
.bar > div { height: 100%; width: 100%; transition: width 0.18s ease-out; border-radius: 3px; }
#hp-fill { background: linear-gradient(180deg, #7ce87c, #3eb43e); }
#hp-fill.low { background: linear-gradient(180deg, #ff7766, #d42a2a); }
/* vida do veículo (acima do bloco de estado, só visível a conduzir) */
#veh-status { position: absolute; bottom: 92px; left: 16px; width: 250px; }
.veh-label { font-size: 11px; font-weight: 700; font-style: italic; color: #ffd11a; margin-bottom: 3px; text-shadow: 0 1px 2px #000; }
.bar.veh { height: 14px; }
#veh-fill { background: linear-gradient(180deg, #ffd36b, #e8902a); }
#veh-fill.low { background: linear-gradient(180deg, #ff8a5a, #d4552a); }
#ep-fill { background: linear-gradient(180deg, #6ae6ff, #19a8cc); }
#armor-fill { background: linear-gradient(180deg, #b8d0ff, #6a90d8); }
.bar span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; text-shadow: 0 1px 2px #000;
}
.bar.ep span { font-size: 8px; }

/* consumíveis (centro fundo) */
#item-bar {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; pointer-events: none;
}
.item-slot {
  position: relative; width: 52px; height: 52px;
  background: var(--panel); border: 1px solid var(--panel-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.item-slot .item-count {
  position: absolute; bottom: 2px; right: 4px; font-size: 12px; font-weight: 900; color: var(--accent2);
}
.item-slot .item-key {
  position: absolute; top: -7px; left: -5px; font-size: 10px; font-weight: 700;
  background: #2a2e3a; padding: 1px 5px; border-radius: 3px; color: #cfd3dd;
}
.item-slot.empty { opacity: 0.35; }
.item-slot.ability { border-color: rgba(255, 159, 26, 0.5); }
.item-slot .item-ico { font-style: normal; }
.cd-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.cd-ring circle {
  fill: none; stroke: var(--accent); stroke-width: 3;
  stroke-dasharray: 107; stroke-dashoffset: 0;
}
.item-slot.flash { animation: slot-flash 0.4s; }
@keyframes slot-flash { 50% { box-shadow: 0 0 16px var(--accent); } }

/* arma (direita fundo) */
#weapon-wrap { position: absolute; bottom: 16px; right: 16px; text-align: right; }
#ammo-display { font-variant-numeric: tabular-nums; }
#ammo-mag { font-size: 38px; font-weight: 900; font-style: italic; }
#ammo-mag.low { color: var(--danger); }
#ammo-reserve { font-size: 18px; color: #8a90a0; font-weight: 700; margin-left: 4px; }
#weapon-name { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent2); margin: 2px 0 8px; }
#weapon-slots { display: flex; gap: 6px; justify-content: flex-end; }
.wslot {
  min-width: 64px; padding: 5px 9px; background: var(--panel);
  border: 1px solid var(--panel-light); border-radius: 5px; font-size: 11px;
  display: flex; gap: 6px; align-items: center;
}
.wslot.active { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,159,26,0.22), var(--panel)); }
.wslot-key { color: #8a90a0; font-weight: 900; }
.wslot.active .wslot-key { color: var(--accent2); }
.wslot-name { font-weight: 700; white-space: nowrap; }
#reload-hint { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent2); animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* overlays de dano/zona/cura */
#damage-vignette, #zone-vignette, #heal-vignette {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
#damage-vignette { box-shadow: inset 0 0 130px 40px rgba(255, 30, 30, 0.55); }
#zone-vignette { box-shadow: inset 0 0 150px 50px rgba(60, 90, 255, 0.45); }
#heal-vignette { box-shadow: inset 0 0 110px 30px rgba(60, 255, 120, 0.35); }

#drop-prompt {
  position: absolute; bottom: 24%; left: 50%; transform: translateX(-50%);
  font-size: 22px; font-weight: 700; font-style: italic;
  background: var(--panel); padding: 12px 28px; border-radius: 8px;
  border: 1px solid var(--accent); animation: blink 1.2s infinite;
  white-space: nowrap;
}
#drop-prompt b { color: var(--accent2); }

/* ═══ CONTROLOS TÁTEIS ═══ */
#touch-layer { position: absolute; inset: 0; pointer-events: none; }
body.touch-mode #touch-layer { pointer-events: auto; }
#joystick {
  position: absolute; bottom: 70px; left: 40px; width: 140px; height: 140px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06); display: none;
}
body.touch-mode #joystick { display: block; }
#joystick-knob {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px;
  margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(255, 159, 26, 0.55); border: 2px solid rgba(255,255,255,0.5);
}
.tbtn {
  position: absolute; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(12, 14, 20, 0.55); border: 2px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 24px; display: none;
  align-items: center; justify-content: center;
}
body.touch-mode .tbtn { display: flex; }
.tbtn.held { background: rgba(255, 159, 26, 0.5); }
.tbtn-fire-main { right: 56px; bottom: 120px; width: 88px; height: 88px; font-size: 34px; background: rgba(255, 80, 30, 0.4); }
.tbtn-fire-left { left: 26px; bottom: 240px; }
.tbtn-aim { right: 30px; bottom: 240px; }
.tbtn-jump { right: 160px; bottom: 88px; }
.tbtn-crouch { right: 170px; bottom: 200px; }
.tbtn-reload { right: 36px; bottom: 36px; width: 50px; height: 50px; font-size: 18px; }
.tbtn-pickup { right: 250px; bottom: 130px; }
.tbtn-med { left: 50%; margin-left: -110px; bottom: 86px; width: 50px; height: 50px; font-size: 18px; }
.tbtn-gloo { left: 50%; margin-left: -50px; bottom: 86px; width: 50px; height: 50px; font-size: 18px; }
.tbtn-nade { left: 50%; margin-left: 10px; bottom: 86px; width: 50px; height: 50px; font-size: 18px; }
.tbtn-ability { left: 50%; margin-left: 70px; bottom: 86px; width: 50px; height: 50px; font-size: 18px; }
.tbtn-swap { right: 110px; bottom: 36px; width: 50px; height: 50px; font-size: 18px; }
body.touch-mode #item-bar { bottom: 150px; }
body.touch-mode .controls-help { display: none; }

/* ═══ GUARDA-ROUPA ═══ */
.menu-buttons { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-secondary.big { font-size: 17px; padding: 14px 30px; margin-top: 0; }

#screen-wardrobe, #screen-dev {
  background:
    radial-gradient(ellipse at 68% 40%, rgba(255, 130, 30, 0.16), transparent 55%),
    linear-gradient(150deg, #181b24 0%, #221a14 60%, #0d0f15 100%);
  align-items: stretch; justify-content: stretch;
}
.wd-layout { display: flex; width: 100%; height: 100%; }
.wd-panel {
  width: 350px; min-width: 290px; height: 100%; overflow-y: auto;
  background: rgba(10, 12, 18, 0.82); border-right: 1px solid var(--panel-light);
  padding: 22px 22px 30px;
}
.wd-title {
  font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 1px;
  background: linear-gradient(180deg, #ffd11a, #ff7a00);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.wd-title span { -webkit-text-fill-color: #fff; }
.wd-section { margin-bottom: 20px; }
.wd-section h3 {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent2); font-style: italic; margin-bottom: 9px;
  border-bottom: 1px solid rgba(255, 159, 26, 0.25); padding-bottom: 5px;
}
.wd-label { display: block; font-size: 11px; color: #8a90a0; margin: 8px 0 4px; letter-spacing: 1px; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.18);
  transition: transform 0.1s, border-color 0.1s, box-shadow 0.1s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.selected { border-color: var(--accent2); box-shadow: 0 0 10px rgba(255, 209, 26, 0.55); transform: scale(1.12); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.style-chip {
  background: var(--panel); color: #cfd3dd; border: 1px solid var(--panel-light);
  padding: 6px 13px; border-radius: 14px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.style-chip:hover { border-color: var(--accent); color: #fff; }
.style-chip.selected { background: linear-gradient(180deg, rgba(255,159,26,0.35), var(--panel)); border-color: var(--accent); color: var(--accent2); }
.wd-slider { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #cfd3dd; margin: 7px 0; }
.wd-slider input { flex: 1; accent-color: var(--accent); }
.wd-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.wd-actions .btn-primary { font-size: 16px; padding: 12px 20px; }
.wd-actions .btn-secondary { margin-top: 0; }

.wd-stage { flex: 1; position: relative; min-width: 0; }
#wd-viewport, #dev-viewport, #bcol-viewport { position: absolute; inset: 0; cursor: grab; }
#wd-viewport:active, #dev-viewport:active, #bcol-viewport:active { cursor: grabbing; }
#wd-viewport canvas, #dev-viewport canvas, #bcol-viewport canvas { display: block; }
.wd-nameplate {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%) skewX(-5deg);
  background: var(--panel); border: 1px solid var(--panel-light); border-left: 3px solid var(--accent);
  padding: 8px 26px; border-radius: 6px; text-align: center; pointer-events: none;
}
.wd-nameplate span { display: block; }
#wd-name { font-size: 18px; font-weight: 900; font-style: italic; color: var(--accent2); }
.wd-hint { font-size: 10px; color: #8a90a0; letter-spacing: 1px; }

@media (max-width: 700px) {
  .wd-layout { flex-direction: column-reverse; }
  .wd-panel { width: 100%; height: 52%; min-width: 0; }
  .wd-stage { height: 48%; }
}

@media (max-width: 760px) {
  #minimap { width: 120px; height: 120px; }
  #status-wrap { width: 180px; }
  #ammo-mag { font-size: 28px; }
  .panel { padding: 24px 26px; min-width: 300px; }
  .char-card { width: 132px; }
}

/* ═══ SPLASH (loading inicial) ═══ */
.splash-content { align-items: center; text-align: center; }
.splash-spinner {
  width: 44px; height: 44px;
  margin: 26px auto 14px;
  border: 4px solid rgba(255, 159, 26, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: splash-spin 0.9s linear infinite;
}
@keyframes splash-spin { to { transform: rotate(360deg); } }
.splash-status { color: #b9b3a8; font-size: 13px; letter-spacing: 1px; }
