:root {
  --bg-dark: #070a12;
  --panel-bg: rgba(12, 18, 32, 0.78);
  --panel-border: rgba(255, 255, 255, 0.14);
  --accent-primary: #ff3355;
  --accent-secondary: #00e5ff;
  --accent-gold: #ffbe0b;
  --accent-green: #00f59b;
  --text-main: #f3f6fc;
  --text-dim: #94a3b8;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* Overlays */
#damage-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle, transparent 55%, rgba(255, 25, 55, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.12s ease-out;
}

#flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s ease-out;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(10, 16, 30, 0.85), rgba(4, 7, 15, 0.96));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Start Card */
.start-card {
  width: min(820px, 92vw);
  background: linear-gradient(145deg, rgba(18, 25, 44, 0.92), rgba(9, 13, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 51, 85, 0.18);
  text-align: center;
}

.badge-version {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 51, 85, 0.18);
  border: 1px solid var(--accent-primary);
  color: #ff6b84;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.game-logo {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 6px;
  background: linear-gradient(90deg, #ffffff 0%, #ff3355 55%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(255, 51, 85, 0.35);
  line-height: 1;
}

.game-subtitle {
  color: var(--text-dim);
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 0.95rem;
  margin-top: 6px;
  margin-bottom: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
  margin-bottom: 22px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.f-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.feature-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 4px;
}

.feature-box p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.feature-box code {
  color: var(--accent-secondary);
  font-weight: 700;
}

.controls-guide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  background: #1e293b;
  border: 1px solid #475569;
  border-bottom-width: 3px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  color: #fff;
  margin: 0 2px;
}

.start-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary {
  width: 100%;
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff2a50, #ff6224);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 42, 80, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 42, 80, 0.6);
}

.quick-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.btn-mode {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--accent-secondary);
  transform: translateY(-1px);
}

/* Modal */
.modal-card {
  width: min(760px, 92vw);
  background: rgba(13, 19, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.modal-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.mode-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-option:hover {
  border-color: var(--accent-secondary);
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

.m-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.mode-option h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.mode-option p {
  margin: 0;
  font-size: 0.82rem;
}

.btn-secondary {
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

/* HUD */
#hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 24px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.location-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.92rem;
}

.location-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

/* Match Scoreboard */
.scoreboard {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  display: flex;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.scoreboard.hidden {
  display: none;
}

.team-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.team-blue {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.22), transparent);
  border-left: 4px solid var(--accent-secondary);
}

.team-red {
  background: linear-gradient(-90deg, rgba(255, 51, 85, 0.22), transparent);
  border-right: 4px solid var(--accent-primary);
}

.team-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.score-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.alive-dots {
  display: flex;
  gap: 5px;
}

.alive-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
}

.alive-dot.blue {
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
}

.alive-dot.red {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.alive-dot.dead {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.match-center {
  padding: 6px 22px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
}

.timer {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.round-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* Shooting Range Panel */
.range-stats {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-right: 4px solid var(--accent-gold);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 210px;
}

.range-stats.hidden {
  display: none;
}

.r-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.r-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 3px;
}

.r-row strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
}

/* Killfeed */
#killfeed {
  position: fixed;
  top: 110px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  z-index: 12;
}

.kill-item {
  background: rgba(10, 15, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.k-blue { color: var(--accent-secondary); font-weight: 700; }
.k-red { color: var(--accent-primary); font-weight: 700; }
.k-weap {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--accent-gold);
}

/* Crosshair */
#crosshair-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#crosshair {
  position: relative;
  width: 26px;
  height: 26px;
  transition: transform 0.08s ease;
}

.ch-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #00ffaa;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px #00ffaa;
}

.ch-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

.ch-line.top {
  width: 2px;
  height: 7px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.ch-line.bottom {
  width: 2px;
  height: 7px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.ch-line.left {
  height: 2px;
  width: 7px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.ch-line.right {
  height: 2px;
  width: 7px;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

/* Hitmarker */
#hitmarker {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

#hitmarker.active {
  opacity: 1;
  transform: scale(1.15);
}

#hitmarker.headshot span {
  background: #ff2a50;
  box-shadow: 0 0 8px #ff2a50;
}

#hitmarker span {
  position: absolute;
  width: 8px;
  height: 2px;
  background: #ffffff;
}

#hitmarker span:nth-child(1) { top: 2px; left: 0; transform: rotate(45deg); }
#hitmarker span:nth-child(2) { top: 2px; right: 0; transform: rotate(-45deg); }
#hitmarker span:nth-child(3) { bottom: 2px; left: 0; transform: rotate(-45deg); }
#hitmarker span:nth-child(4) { bottom: 2px; right: 0; transform: rotate(45deg); }

#damage-indicator {
  position: absolute;
  top: -26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-gold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#damage-indicator.show {
  opacity: 1;
  transform: translateY(-6px);
}

/* Portal Prompt */
.portal-prompt {
  position: fixed;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 16, 30, 0.88);
  border: 1px solid var(--accent-secondary);
  border-radius: 14px;
  padding: 12px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25);
}

.portal-prompt.hidden {
  display: none;
}

.pp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-secondary);
}

.pp-desc {
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-top: 2px;
}

/* Center Banner */
.center-banner {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(10, 15, 28, 0.9), transparent);
  padding: 18px 80px;
  border-top: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.center-banner.hidden {
  display: none;
}

.center-banner h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-style: italic;
  letter-spacing: 4px;
  text-shadow: 0 5px 20px rgba(255, 51, 85, 0.6);
}

.center-banner p {
  font-family: var(--font-display);
  color: var(--accent-gold);
  letter-spacing: 2px;
  font-size: 1rem;
}

/* Bottom HUD */
.hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.player-vitals {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 270px;
}

.hp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.hp-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 1px;
}

.hp-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.hp-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hp-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00f59b, #00e5ff);
  transition: width 0.18s ease;
}

.Quick-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Ammo Panel */
.ammo-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px 24px;
  text-align: right;
  min-width: 210px;
}

.w-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 1.5px;
}

.ammo-numbers {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px;
}

.ammo-big {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.ammo-sep, .ammo-sub {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dim);
}

.reload-status {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-top: 4px;
  letter-spacing: 1px;
}

.reload-status.hidden {
  display: none;
}

/* Loadout Bar */
.loadout-bar {
  display: flex;
  gap: 10px;
}

.weapon-slot {
  position: relative;
  width: 120px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.weapon-slot.active {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(255, 51, 85, 0.25), rgba(12, 18, 32, 0.9));
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(255, 51, 85, 0.3);
}

.slot-key {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
}

.slot-icon {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.slot-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.g-cd {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--accent-green);
}

/* Floating 3D Labels */
#world-labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.world-label {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(8, 12, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .quick-modes { grid-template-columns: repeat(2, 1fr); }
  .hud-bottom { flex-wrap: wrap; }
}
/* ==================== NEW STYLES FOR v0.2 (SETTINGS, 4s PREP PHASE, PEACE NOTICE) ==================== */

.hidden {
  display: none !important;
}

.top-left-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.fps-pill {
  background: rgba(12, 18, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-green);
}

.btn-secondary-wide {
  width: 100%;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.1);
  color: #e2e8f0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-wide:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: var(--accent-secondary);
}

/* Settings Modal */
.settings-card {
  width: min(760px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.settings-card h2, .settings-card > p {
  text-align: center;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  overflow-y: auto;
  padding-right: 6px;
  max-height: 58vh;
}

.setting-control input[type="color"] {
  width: 44px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 16px;
}

.setting-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
}

.setting-row span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-control input[type="range"] {
  width: 140px;
  accent-color: var(--accent-secondary);
  cursor: pointer;
}

.setting-control input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-green);
  cursor: pointer;
}

.setting-control select {
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.s-val {
  min-width: 42px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-secondary) !important;
  font-size: 0.95rem !important;
}

.modal-actions {
  display: flex;
  justify-content: center;
}

/* 4-Second Prep / Weapon Select Overlay */
.prep-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(12, 22, 42, 0.72), rgba(6, 10, 22, 0.9));
}

.prep-box {
  width: min(860px, 94vw);
  background: rgba(12, 19, 36, 0.94);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 190, 11, 0.25);
}

.prep-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 190, 11, 0.18);
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.prep-timer-wrap {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.prep-timer-wrap span {
  color: var(--accent-gold);
  font-size: 2.6rem;
}

.prep-sub {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.prep-weapon-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.prep-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.prep-card:hover {
  border-color: var(--accent-secondary);
  background: rgba(0, 229, 255, 0.12);
  transform: translateY(-3px);
}

.prep-card.selected {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(255, 190, 11, 0.24), rgba(15, 23, 42, 0.9));
  box-shadow: 0 10px 25px rgba(255, 190, 11, 0.25);
  transform: translateY(-4px);
}

.p-key {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.p-icon {
  font-size: 1.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 4px 0;
}

.prep-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.prep-card p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Peaceful Lobby Notice */
.peace-notice {
  background: rgba(12, 20, 36, 0.92);
  border: 1px solid rgba(0, 245, 155, 0.4);
  border-left: 4px solid var(--accent-green);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.86rem;
  color: #e2e8f0;
  max-width: 580px;
}

/* ==================== ULTRA FPS OPTIMIZER BUTTONS & HUD ==================== */
.bottom-dual-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-optimizer {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid #00f59b;
  background: linear-gradient(90deg, rgba(0, 245, 155, 0.2), rgba(0, 229, 255, 0.2));
  color: #00f59b;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-optimizer:hover {
  background: linear-gradient(90deg, rgba(0, 245, 155, 0.35), rgba(0, 229, 255, 0.35));
  transform: translateY(-1px);
}

.btn-optimizer.active {
  background: linear-gradient(90deg, #00f59b, #00d8ff);
  color: #06101e;
  box-shadow: 0 0 20px rgba(0, 245, 155, 0.5);
}

.optimizer-highlight {
  border-color: rgba(0, 245, 155, 0.45) !important;
  background: rgba(0, 245, 155, 0.08) !important;
}

.btn-opt-toggle {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #1e293b;
  color: #f8fafc;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-opt-toggle.active {
  background: #00f59b;
  color: #07111e;
  border-color: #00f59b;
  box-shadow: 0 0 14px rgba(0, 245, 155, 0.5);
}

.fps-row-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opt-pill {
  background: rgba(12, 18, 32, 0.82);
  border: 1px solid rgba(255, 190, 11, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.opt-pill.active {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ==================== ROBLOX RIVALS LOBBY HUD (MATCHING SCREENSHOT) ==================== */

/* Top Center Keys Counter & Speech Bubble */
.rivals-keys-top {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 15;
  pointer-events: auto;
}

.keys-counter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 24, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.16);
  padding: 4px 12px 4px 10px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.key-icon-3d {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transform: rotate(-20deg);
}

.key-number {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

.key-plus-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #86efac;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
}

.key-plus-btn:hover {
  transform: scale(1.08);
}

.keys-speech-bubble {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.keys-speech-bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ffffff;
}

/* Bottom Center Rivals Lobby Dock */
.rivals-lobby-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 16;
  pointer-events: auto;
}

.rivals-play-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: -2px;
}

.rivals-green-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 175px;
  padding: 9px 22px;
  border-radius: 12px;
  border: 2px solid #d9f99d;
  background: linear-gradient(180deg, #a3e635 0%, #65a30d 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  box-shadow: 0 6px 18px rgba(101, 163, 13, 0.55);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.rivals-green-play:hover {
  transform: scale(1.04);
}

.play-door-icon {
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 6px;
  border-radius: 6px;
}

.rivals-party-slots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.party-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.party-avatar.add {
  background: rgba(30, 41, 59, 0.75);
  color: #cbd5e1;
  font-size: 1.3rem;
}

/* Red Claim Free Reward Bubble */
.rivals-claim-bubble {
  position: relative;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 6px 22px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.55);
  cursor: pointer;
  animation: pulseClaim 1.6s infinite ease-in-out;
}

.rivals-claim-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #dc2626;
}

@keyframes pulseClaim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 7 Bottom Icons Row */
.rivals-nav-icons {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 4px 14px;
}

.rivals-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.14s ease;
}

.rivals-nav-item:hover {
  transform: translateY(-5px) scale(1.06);
}

.r-icon-box {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(51, 65, 85, 0.92), rgba(15, 23, 42, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.r-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rivals-nav-item span {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.lf-body-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
  margin-top: 12px;
}

.lf-item-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== LOGIN SCREEN & AUTO-SAVE ACCOUNT SYSTEM ==================== */
.login-card {
  width: min(540px, 92vw);
}

.login-form-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
}

.login-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-secondary);
  letter-spacing: 1px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid rgba(0, 229, 255, 0.35);
  background: rgba(8, 12, 24, 0.9);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  outline: none;
  user-select: text;
}

.login-input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.login-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.login-note code {
  color: var(--accent-gold);
  font-weight: 700;
}

.login-error {
  color: #ff4d6d;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 51, 85, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ff3355;
}

/* Account Top Bar on Start Card */
.account-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 14px;
}

.acc-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.acc-avatar {
  font-size: 1.5rem;
}

.acc-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.acc-user-tag {
  font-family: var(--font-display);
  font-size: 0.76rem;
  color: var(--accent-secondary);
}

.acc-autosave-badge {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
}

/* Settings Account Inputs */
.profile-setting-row {
  border-color: rgba(0, 229, 255, 0.35) !important;
  background: rgba(0, 229, 255, 0.06) !important;
}

.input-locked {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #94a3b8;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: not-allowed;
  width: 170px;
}

.input-display-name {
  background: #0f172a;
  border: 1px solid var(--accent-secondary);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  width: 170px;
  user-select: text;
}

.btn-save-name {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent-secondary);
  color: #06101e;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-save-name:hover {
  filter: brightness(1.1);
}

.hud-profile-pill {
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-profile-pill small {
  color: var(--accent-secondary);
  font-weight: 700;
}

/* ==================== LEFT SCREEN DAILY TASKS PANEL (EXACT RIVALS SCREENSHOT STYLE) ==================== */
.rivals-daily-tasks {
  position: fixed;
  top: 196px;
  left: 20px;
  width: 300px;
  background: rgba(18, 22, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 12;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.rdt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.rdt-cal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.rdt-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.38rem;
  color: #ffffff;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
}

.rdt-row {
  display: grid;
  grid-template-columns: 30px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.rdt-left-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65));
}

.rdt-mid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rdt-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rdt-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: #d8dee9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.rdt-counter {
  font-family: var(--font-body);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.rdt-counter b {
  font-weight: 900;
  font-size: 1.15rem;
}

.rdt-counter small {
  font-weight: 800;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.rdt-row.completed .rdt-counter {
  display: none;
}

.rdt-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(10, 14, 18, 0.75);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.rdt-bar-fill {
  width: 0%;
  height: 100%;
  background: #00b4ff;
  border-radius: 999px;
  transition: width 0.28s ease, background-color 0.25s ease;
}

.rdt-row.completed .rdt-bar-fill {
  background: #48ff28;
}

.rdt-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdt-key-reward {
  position: relative;
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdt-key-ico {
  font-size: 1.55rem;
  transform: rotate(-15deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.rdt-key-mult {
  position: absolute;
  bottom: -3px;
  right: 1px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.92rem;
  color: #ffffff;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0, 0, 0, 0.9);
}

.rdt-check-done {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
}

/* ==================== RIVALS VERTICAL WEAPON LIST (EXACT SCREENSHOT STYLE) ==================== */
.rivals-weapon-panel-wrap {
  width: min(390px, 92vw);
  background: rgba(24, 26, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  text-align: center;
  margin: 0 auto;
}

.rw-remove-notifs-btn {
  width: 100%;
  background: linear-gradient(180deg, #ff3b3b 0%, #dc2626 100%);
  border: none;
  border-bottom: 2px solid #991b1b;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 11px 16px;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s ease;
}

.rw-remove-notifs-btn:hover {
  filter: brightness(1.1);
}

.rivals-weapon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  max-height: 56vh;
  overflow-y: auto;
}

.rivals-prep-list-box {
  width: min(460px, 94vw);
  padding: 22px 24px;
  pointer-events: auto;
}

.rw-category-bar {
  flex-shrink: 0;
  min-height: 40px;
  background: linear-gradient(180deg, #32363f 0%, #14161b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

.rw-row,
.rivals-weapon-list .prep-card {
  position: relative;
  flex-shrink: 0;
  flex-direction: row;
  height: 58px;
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.14s ease;
  overflow: hidden;
}

.rw-row:hover,
.rw-row.selected {
  background: linear-gradient(180deg, #4b505c 0%, #1c1e24 48%, #101216 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 6px 16px rgba(0, 0, 0, 0.65);
}

.rw-gun-art {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-14deg);
  width: 88px;
  height: 52px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.75));
}

/* Crisp SVG silhouettes for the 4 starter weapons */
.rw-gun-art.ar-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><rect x='10' y='22' width='22' height='12' rx='2' fill='%23d4a359'/><rect x='32' y='18' width='48' height='14' rx='2' fill='%23e0b26b'/><rect x='80' y='22' width='30' height='5' fill='%2327272a'/><rect x='46' y='32' width='11' height='20' rx='2' transform='rotate(14 46 32)' fill='%23a16207'/><rect x='34' y='32' width='9' height='15' rx='2' fill='%233f3f46'/><rect x='45' y='12' width='22' height='6' rx='1' fill='%2327272a'/></svg>");
}

.rw-gun-art.hg-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><rect x='30' y='16' width='52' height='13' rx='2' fill='%23cbd5e1'/><rect x='34' y='20' width='44' height='3' fill='%2300e5ff'/><rect x='34' y='28' width='14' height='24' rx='3' transform='rotate(15 34 28)' fill='%23334155'/></svg>");
}

.rw-gun-art.fist-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><rect x='28' y='12' width='46' height='34' rx='10' fill='%23ef4444'/><rect x='66' y='14' width='12' height='30' rx='4' fill='%23f8fafc'/><rect x='16' y='20' width='16' height='18' rx='3' fill='%23f1c27d'/></svg>");
}

.rw-gun-art.nade-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><circle cx='56' cy='33' r='18' fill='%23f97316' stroke='%239a3412' stroke-width='3'/><rect x='50' y='8' width='12' height='8' rx='2' fill='%2394a3b8'/><circle cx='66' cy='12' r='5' fill='none' stroke='%23f8fafc' stroke-width='2.5'/></svg>");
}

.rw-gun-art.sg-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><rect x='8' y='24' width='26' height='12' rx='2' fill='%237c2d12'/><rect x='34' y='20' width='38' height='12' rx='2' fill='%23a855f7'/><rect x='72' y='20' width='40' height='5' fill='%2327272a'/><rect x='72' y='26' width='34' height='5' fill='%2352525b'/><rect x='74' y='25' width='20' height='7' rx='2' fill='%23c084fc'/><rect x='36' y='32' width='10' height='16' rx='2' transform='rotate(16 36 32)' fill='%23581c87'/></svg>");
}

.rw-gun-art.sn-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><rect x='6' y='24' width='24' height='11' rx='2' fill='%23166534'/><rect x='30' y='21' width='42' height='11' rx='2' fill='%2322c55e'/><rect x='72' y='24' width='44' height='4' fill='%2318181b'/><rect x='36' y='11' width='32' height='7' rx='2' fill='%2309090b'/><polygon points='36,11 30,9 30,20 36,18' fill='%2318181b'/><polygon points='68,11 75,9 75,20 68,18' fill='%2318181b'/><rect x='46' y='32' width='10' height='14' rx='1' fill='%2327272a'/><rect x='32' y='32' width='9' height='16' rx='2' transform='rotate(14 32 32)' fill='%2314532d'/></svg>");
}

.rw-gun-art.knife-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><rect x='20' y='25' width='28' height='10' rx='3' fill='%231e293b' stroke='%23ef4444' stroke-width='2'/><rect x='48' y='19' width='5' height='22' rx='2' fill='%23fbbf24'/><path d='M53 22 L98 22 C94 31 82 37 53 37 Z' fill='%23e2e8f0'/><path d='M53 22 L96 22 L88 26 L53 26 Z' fill='%2338bdf8'/></svg>");
}

.rw-gun-art.molo-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><rect x='44' y='24' width='24' height='30' rx='6' fill='%23ea580c' stroke='%23fdba74' stroke-width='2'/><rect x='51' y='13' width='10' height='12' rx='2' fill='%2378350f'/><path d='M56 14 C50 6 58 2 66 3 C62 8 68 11 58 15 Z' fill='%23facc15'/><path d='M46 35 Q56 32 66 35 L66 50 Q56 53 46 50 Z' fill='%23fef08a' opacity='0.75'/></svg>");
}

.rw-gun-art.bow-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><path d='M38 6 C72 14 72 46 38 54' fill='none' stroke='%23eab308' stroke-width='5' stroke-linecap='round'/><line x1='38' y1='6' x2='38' y2='54' stroke='%23e2e8f0' stroke-width='2'/><line x1='24' y1='30' x2='96' y2='30' stroke='%2338bdf8' stroke-width='3.5'/><polygon points='104,30 92,24 92,36' fill='%23facc15'/><polygon points='22,30 30,25 28,30 30,35' fill='%23ef4444'/></svg>");
}

.rw-gun-art.dagger-art {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><circle cx='22' cy='30' r='5' fill='none' stroke='%23f43f5e' stroke-width='3'/><rect x='26' y='26' width='20' height='8' rx='2' fill='%231e293b'/><polygon points='46,19 52,24 52,36 46,41' fill='%23f43f5e'/><polygon points='52,23 102,30 52,37' fill='%23f8fafc'/><polygon points='52,27 98,30 52,33' fill='%23fb7185'/></svg>");
}

.rw-gun-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.15rem;
  color: #a1a1aa;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  transition: color 0.14s ease, transform 0.14s ease;
}

.rw-row:hover .rw-gun-name,
.rw-row.selected .rw-gun-name {
  color: #fde047;
  font-size: 1.25rem;
}

.rw-notif-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: #ff2a2a;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 42, 42, 0.5);
}

.rw-key-tag {
  position: absolute;
  right: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #38bdf8;
}

/* ==================== DAILY GIFT IN SHOP ==================== */
.shop-daily-gift-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.22), rgba(255, 51, 85, 0.18));
  border: 2px solid var(--accent-gold);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(255, 190, 11, 0.2);
}

.btn-claim-daily {
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid #fef08a;
  background: linear-gradient(180deg, #facc15, #ca8a04);
  color: #0f172a;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.45);
  transition: transform 0.14s ease;
}

.btn-claim-daily:hover:not(:disabled) {
  transform: scale(1.05);
}

.btn-claim-daily:disabled {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
  box-shadow: none;
  cursor: default;
}

/* ==================== RIGHT-CLICK ADS & SNIPER SCOPE OVERLAY ==================== */
#crosshair.ads-active {
  transform: scale(0.68);
}

.sniper-scope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Soft feathered dark vignette matching media_1793180341128_0999d2e8.png */
  background: radial-gradient(circle at center, transparent 38%, rgba(10, 15, 25, 0.65) 47%, rgba(0, 0, 0, 0.94) 56%, #000000 70%);
  transition: opacity 0.15s ease;
}

.rivals-scope-circle {
  position: relative;
  width: min(78vh, 78vw);
  height: min(78vh, 78vw);
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.rivals-scope-vignette {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.82);
  pointer-events: none;
}

.rivals-scope-crosshair-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%);
}

.rivals-scope-crosshair-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(-50%);
}

.rivals-scope-ticks-h {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 60%;
  height: 8px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 19px,
    rgba(0, 0, 0, 0.8) 19px,
    rgba(0, 0, 0, 0.8) 20.5px
  );
}

.rivals-scope-ticks-v {
  position: absolute;
  left: 50%;
  top: 20%;
  height: 60%;
  width: 8px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 19px,
    rgba(0, 0, 0, 0.8) 19px,
    rgba(0, 0, 0, 0.8) 20.5px
  );
}

.rivals-scope-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #ff2a50;
  box-shadow: 0 0 6px rgba(255, 42, 80, 0.95);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.scope-hint {
  position: absolute;
  bottom: 10%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
}

/* ==================== CUSTOM HOTKEY SETTINGS UI ==================== */
.hotkey-section-row {
  border-color: rgba(255, 190, 11, 0.4) !important;
  background: rgba(255, 190, 11, 0.08) !important;
}

.btn-reset-hk {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 190, 11, 0.45);
  background: rgba(255, 190, 11, 0.14);
  color: #fde047;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-reset-hk:hover {
  background: rgba(255, 190, 11, 0.28);
}

.hk-category-title {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 1px;
  padding: 6px 4px 2px 4px;
  text-transform: uppercase;
}

.hotkey-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.hk-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 14px;
  gap: 10px;
}

.hk-card span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.btn-hotkey {
  min-width: 92px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid #38bdf8;
  background: #0f172a;
  color: #38bdf8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.btn-hotkey:hover {
  background: rgba(56, 189, 248, 0.18);
}

.btn-hotkey.listening {
  border-color: #ffbe0b;
  background: rgba(255, 190, 11, 0.25);
  color: #fde047;
  animation: pulseClaim 0.8s infinite ease-in-out;
}

/* ==================== WEAPON SKINS & WRAPS CUSTOMIZATION MENU ==================== */
.rw-gun-art.ar-skin-aug {
  background-image: url("skins/ar_aug.png");
  transform: translateY(-50%) rotate(0deg);
  width: 96px;
  height: 54px;
}

.rw-gun-art.hg-skin-blaster {
  background-image: url("skins/hg_blaster.webp");
  transform: translateY(-50%) rotate(0deg);
  width: 82px;
  height: 54px;
}

.rw-gun-art.fist-skin-boxing {
  background-image: url("skins/fist_boxing.png");
  transform: translateY(-50%) rotate(0deg);
  width: 82px;
  height: 54px;
}

.rw-gun-art.nade-skin-balloon {
  background-image: url("skins/nade_balloon.png");
  transform: translateY(-50%) rotate(0deg);
  width: 76px;
  height: 54px;
}

.rw-gun-art.bow-skin-frost {
  background-image: url("skins/bow_frost.png");
  transform: translateY(-50%) rotate(-90deg);
  width: 54px;
  height: 92px;
}

.rw-gun-art.dg-skin-aces {
  background-image: url("skins/dagger_aces.png");
  transform: translateY(-50%) rotate(0deg);
  width: 78px;
  height: 56px;
}

.rw-gun-art.knife-skin-karambit {
  background-image: url("skins/knife_karambit.png");
  transform: translateY(-50%) rotate(0deg);
  width: 54px;
  height: 60px;
}

.wd-skin-thumb.bow-skin-frost,
.wd-preview-art.bow-skin-frost {
  transform: rotate(-90deg) !important;
  width: 40px !important;
  height: 92px !important;
}

.wd-preview-art.bow-skin-frost {
  transform: rotate(-90deg) scale(1.45) !important;
}

.wd-skin-thumb.knife-skin-karambit {
  transform: none !important;
  width: 52px !important;
  height: 64px !important;
}

.wd-preview-art.knife-skin-karambit {
  transform: scale(1.45) !important;
  width: 56px !important;
  height: 72px !important;
}

/* 2 NEW CUSTOM SKINS: SHOTGUN (Royal Violet) & SNIPER (Golden Key) */
.rw-gun-art.sg-skin-magic {
  background-image: url("skins/sg_magic.png");
  transform: translateY(-50%) rotate(0deg);
  width: 96px;
  height: 54px;
}

.rw-gun-art.sniper-skin-key {
  background-image: url("skins/sniper_key.png");
  transform: translateY(-50%) rotate(0deg);
  width: 104px;
  height: 52px;
}

.wd-skin-thumb.sg-skin-magic {
  transform: none !important;
  width: 84px !important;
  height: 48px !important;
}

.wd-preview-art.sg-skin-magic {
  transform: scale(1.35) !important;
  width: 96px !important;
  height: 54px !important;
}

.wd-skin-thumb.sniper-skin-key {
  transform: none !important;
  width: 92px !important;
  height: 46px !important;
}

.wd-preview-art.sniper-skin-key {
  transform: scale(1.35) !important;
  width: 104px !important;
  height: 52px !important;
}

/* ==================== WEAPON INSPECT LABEL ==================== */
#inspect-label {
  position: fixed;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%) translateY(8px);
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fde047;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

#inspect-label.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.slot-skin-img {
  width: 48px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.weap-detail-wrap {
  width: min(500px, 94vw);
  background: rgba(20, 22, 27, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88);
}

.wd-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.btn-wd-back {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-wd-back:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #38bdf8;
}

.btn-wd-equip {
  padding: 8px 16px;
  border-radius: 9px;
  border: 2px solid #4ade80;
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.wd-preview-box {
  position: relative;
  height: 148px;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0.95) 85%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.wd-preview-art {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: scale(1.65) !important;
  width: 125px !important;
  height: 75px !important;
}

.wd-preview-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: #fde047;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.wd-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-wd-tab {
  padding: 11px 14px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: #1e232d;
  color: #cbd5e1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-wd-tab:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-wd-tab.active {
  background: linear-gradient(180deg, #facc15 0%, #ca8a04 100%);
  border-color: #fef08a;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.35);
}

.wd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 34vh;
  overflow-y: auto;
  padding: 2px;
}

.wd-item-card {
  position: relative;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wd-item-card:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
}

.wd-item-card.selected {
  border-color: #facc15;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.22), rgba(15, 23, 42, 0.9));
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.28);
}

.wd-skin-thumb {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 96px !important;
  height: 56px !important;
}

.wd-wrap-swatch {
  width: 72px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.28), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.wd-item-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: #f8fafc;
}

.wd-item-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.25;
}
