/* =====================================================================
   Arena Wars � Full-Screen Slide-in Panel System  v3
   Five panels: Loadout � Skins � Settings � Game Info � Tutorials
   ===================================================================== */

/* -- Design tokens ---------------------------------------------------- */
:root {
  --aw-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --aw-panel-dur: 0.48s;
}

/* -- Nav Dock -------------------------------------------------------- */
#aw-nav-dock {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 100001;
  display: flex;
  flex-direction: row;
  gap: 8px;
  transition: opacity 0.3s, pointer-events 0s;
}
body:not(.session-menu) #aw-nav-dock {
  opacity: 0;
  pointer-events: none;
}

/* ── Mobile: shrink nav dock so it doesn't dominate the header ── */
@media (max-width: 480px) {
  #aw-nav-dock {
    left: 10px;
    top: 10px;
    gap: 5px;
  }
  .aw-nav-btn {
    height: 36px;
    padding: 0 9px;
    gap: 5px;
    border-radius: 10px;
  }
  .aw-nav-btn .nb-icon { font-size: 16px; }
  .aw-nav-btn .nb-label { font-size: 9px; letter-spacing: 1px; }
}

.aw-nav-btn {
  height: 40px;
  width: auto;
  border: 2px solid #00e5ff;
  border-radius: 12px;
  background: rgba(0, 12, 20, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #00e5ff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px; /* Uniform width for primary menu buttons */
  padding: 0 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.aw-nav-btn .nb-icon { font-size: 18px; line-height: 1; }
.aw-nav-btn .nb-icon { vertical-align: middle; margin-right: 6px; } /* Align icons and add spacing */
.aw-nav-btn .nb-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1;
}
.aw-nav-btn:hover {
  transform: scale(1.08);
  background: rgba(0, 229, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.9));
}
/* Unify colors for primary menu buttons to core cyan theme */
.aw-nav-btn[data-panel="loadout"],
.aw-nav-btn[data-panel="settings"],
.aw-nav-btn[data-panel="gameinfo"],
.aw-nav-btn[data-panel="skins"], /* Skins and Guide are unified to cyan */
.aw-nav-btn[data-panel="tutorial"] {
  border-color: var(--aw-cyan);
  color: var(--aw-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}
.aw-nav-btn[data-panel="loadout"]:hover,
.aw-nav-btn[data-panel="settings"]:hover,
.aw-nav-btn[data-panel="gameinfo"]:hover,
.aw-nav-btn[data-panel="skins"]:hover,
.aw-nav-btn[data-panel="tutorial"]:hover {
  background: var(--aw-cyan-ghost);
  border-color: #ffffff;
  color: #ffffff;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.9));
}
.aw-nav-btn[data-panel="loadout"].active,
.aw-nav-btn[data-panel="settings"].active,
.aw-nav-btn[data-panel="gameinfo"].active,
.aw-nav-btn[data-panel="skins"].active,
.aw-nav-btn[data-panel="tutorial"].active {
  background: var(--aw-cyan-tint);
  border-color: var(--aw-cyan);
  color: var(--aw-cyan);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.7));
}

/* -- Backdrop -------------------------------------------------------- */
#aw-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100002;
  background: rgba(0,0,0,.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
#aw-panel-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

/* -- Base Panel � fullscreen ----------------------------------------- */
.aw-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 100003;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--aw-panel-dur) var(--aw-ease-out);
  will-change: transform;
  overflow: hidden;
}
.aw-panel.open { transform: translateX(0); }

/* Per-panel atmospheric backgrounds */
#aw-panel-loadout {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(0,229,255,.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 95% 90%, rgba(0,100,255,.09) 0%, transparent 60%),
    linear-gradient(170deg, #000d18 0%, #001220 45%, #000810 100%);
}
#aw-panel-skins {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(180,0,255,.15) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 5% 90%, rgba(100,0,200,.1) 0%, transparent 60%),
    linear-gradient(170deg, #08000e 0%, #110020 45%, #060008 100%);
}
#aw-panel-settings {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(0,200,180,.11) 0%, transparent 65%),
    linear-gradient(170deg, #000e0c 0%, #000f0e 45%, #000a08 100%);
}
#aw-panel-gameinfo {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(0,120,255,.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 95% 88%, rgba(0,60,200,.09) 0%, transparent 60%),
    linear-gradient(170deg, #000814 0%, #000d1e 45%, #000610 100%);
}
#aw-panel-tutorial {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255,200,0,.11) 0%, transparent 65%),
    linear-gradient(170deg, #0d0900 0%, #120b00 45%, #080600 100%);
}
#aw-panel-account {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(0,229,255,.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 95% 90%, rgba(0,100,255,.09) 0%, transparent 60%),
    linear-gradient(170deg, #000d18 0%, #001220 45%, #000810 100%);
}
#aw-panel-shop {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255,170,0,.15) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 95% 88%, rgba(200,120,0,.09) 0%, transparent 60%),
    linear-gradient(170deg, #0e0a00 0%, #150f00 45%, #080600 100%);
}

/* Subtle scanline texture */
.aw-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 49px, rgba(255,255,255,.012) 50px
  );
  pointer-events: none;
  z-index: 0;
}

/* -- Panel Header ---------------------------------------------------- */
.aw-ph {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(0,229,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.aw-panel.open .aw-ph {
  animation: aw-header-in .5s var(--aw-ease-out) both;
}
.aw-ph-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #00e5ff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  text-shadow: 0 0 24px rgba(0,229,255,.45);
}
.aw-ph-title .ph-icon { font-size: 24px; }
.aw-ph-close {
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(0,229,255,.22);
  border-radius: 11px;
  background: rgba(0,229,255,.05);
  color: #00e5ff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, box-shadow .15s;
  padding: 0;
  flex-shrink: 0;
}
.aw-ph-close:hover {
  background: rgba(0,229,255,.15);
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0,229,255,.35);
}

/* Per-panel header accents */
#aw-panel-skins    .aw-ph { border-bottom-color: rgba(180,0,255,.12); }
#aw-panel-skins    .aw-ph-title { color: #b400ff; text-shadow: 0 0 24px rgba(180,0,255,.45); }
#aw-panel-skins    .aw-ph-close { border-color: rgba(180,0,255,.25); color: #b400ff; }
#aw-panel-skins    .aw-ph-close:hover { border-color: #b400ff; box-shadow: 0 0 14px rgba(180,0,255,.35); background: rgba(180,0,255,.1); }
#aw-panel-settings .aw-ph { border-bottom-color: rgba(0,200,180,.12); }
#aw-panel-settings .aw-ph-title { color: #00c8b4; text-shadow: 0 0 24px rgba(0,200,180,.45); }
#aw-panel-settings .aw-ph-close { border-color: rgba(0,200,180,.25); color: #00c8b4; }
#aw-panel-settings .aw-ph-close:hover { border-color: #00c8b4; box-shadow: 0 0 14px rgba(0,200,180,.35); background: rgba(0,200,180,.1); }
#aw-panel-gameinfo .aw-ph { border-bottom-color: rgba(0,120,255,.12); }
#aw-panel-gameinfo .aw-ph-title { color: #0078ff; text-shadow: 0 0 24px rgba(0,120,255,.45); }
#aw-panel-gameinfo .aw-ph-close { border-color: rgba(0,120,255,.25); color: #0078ff; }
#aw-panel-gameinfo .aw-ph-close:hover { border-color: #0078ff; box-shadow: 0 0 14px rgba(0,120,255,.35); background: rgba(0,120,255,.1); }
#aw-panel-tutorial .aw-ph { border-bottom-color: rgba(255,200,0,.12); }
#aw-panel-tutorial .aw-ph-title { color: #ffc800; text-shadow: 0 0 24px rgba(255,200,0,.45); }
#aw-panel-tutorial .aw-ph-close { border-color: rgba(255,200,0,.25); color: #ffc800; }
#aw-panel-tutorial .aw-ph-close:hover { border-color: #ffc800; box-shadow: 0 0 14px rgba(255,200,0,.35); background: rgba(255,200,0,.08); }

#aw-panel-account .aw-ph { border-bottom-color: rgba(0,229,255,.1); }
#aw-panel-account .aw-ph-title { color: #00e5ff; text-shadow: 0 0 24px rgba(0,229,255,.45); }
#aw-panel-account .aw-ph-close { border-color: rgba(0,229,255,.22); color: #00e5ff; }
#aw-panel-account .aw-ph-close:hover { border-color: #00e5ff; box-shadow: 0 0 14px rgba(0,229,255,.35); background: rgba(0,229,255,.05); }

#aw-panel-shop .aw-ph { border-bottom-color: rgba(255,170,0,.12); }
#aw-panel-shop .aw-ph-title { color: #ffaa00; text-shadow: 0 0 24px rgba(255,170,0,.45); }
#aw-panel-shop .aw-ph-close { border-color: rgba(255,170,0,.25); color: #ffaa00; }
#aw-panel-shop .aw-ph-close:hover { border-color: #ffaa00; box-shadow: 0 0 14px rgba(255,170,0,.35); background: rgba(255,170,0,.08); }

/* -- Panel Body ------------------------------------------------------ */
.aw-pb {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Centers content at max ~800px on wide screens, normal padding on small */
  padding: 32px max(28px, calc(50vw - 400px));
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,229,255,.18) transparent;
}
.aw-pb::-webkit-scrollbar { width: 4px; }
.aw-pb::-webkit-scrollbar-track { background: transparent; }
.aw-pb::-webkit-scrollbar-thumb { background: rgba(0,229,255,.18); border-radius: 2px; }
.aw-panel.open .aw-pb {
  animation: aw-body-in .52s var(--aw-ease-out) .06s both;
}

/* -- Shared typography ----------------------------------------------- */
.aw-section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(0,229,255,.45);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,229,255,.08);
}
.aw-section-label:first-child { margin-top: 0; }
#aw-panel-skins    .aw-section-label { color: rgba(180,0,255,.4);  border-bottom-color: rgba(180,0,255,.08); }
#aw-panel-settings .aw-section-label { color: rgba(0,200,180,.4);  border-bottom-color: rgba(0,200,180,.08); }
#aw-panel-gameinfo .aw-section-label { color: rgba(0,120,255,.4);  border-bottom-color: rgba(0,120,255,.08); }
#aw-panel-tutorial .aw-section-label { color: rgba(255,200,0,.4);  border-bottom-color: rgba(255,200,0,.08); }

/* -- -----------------------------------------------------------------
   PANEL 1: LOADOUT
   ------------------------------------------------------------------- */

/* Rank bar */
.aw-rank-bar {
  background: rgba(0,18,34,.7);
  border: 1px solid rgba(0,229,255,.18);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 0 40px rgba(0,229,255,.05), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}
.aw-rank-bar::before {
  content: '';
  position: absolute;
  top: -50%; right: -4%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,229,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.aw-rank-badge {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 20px rgba(0,229,255,.2);
}
.aw-rank-info { flex: 1; min-width: 0; }
.aw-rank-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00e5ff;
  margin: 0 0 5px;
  text-shadow: 0 0 14px rgba(0,229,255,.4);
}
.aw-rank-sub {
  font-size: 12px;
  color: rgba(180,215,235,.62);
  margin: 0 0 11px;
}
.aw-xp-track {
  height: 9px;
  background: rgba(255,255,255,.05);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.aw-xp-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #00e5ff 0%, #0060ff 100%);
  transition: width 1s cubic-bezier(0.2,.8,.3,1);
  position: relative;
  overflow: hidden;
}
.aw-xp-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: aw-xp-shimmer 2.2s ease-in-out infinite;
}
@keyframes aw-xp-shimmer {
  0%   { left: -100%; }
  100% { left: 250%; }
}
.aw-xp-label {
  font-size: 11px;
  color: rgba(180,215,230,.48);
  margin: 6px 0 0;
  display: block;
}

/* Weapon grid */
.aw-weapon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 540px) {
  .aw-weapon-grid { grid-template-columns: repeat(2, 1fr); }
}
.aw-weapon-card {
  background: rgba(0,14,28,.8);
  border: 1.5px solid rgba(0,229,255,.1);
  border-radius: 16px;
  padding: 20px 14px 14px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .15s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 110px;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.aw-weapon-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,229,255,.05) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .18s;
}
.aw-weapon-card:not(.locked):hover {
  border-color: rgba(0,229,255,.5);
  background: rgba(0,28,52,.9);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 20px rgba(0,229,255,.15);
}
.aw-weapon-card:not(.locked):hover::before { opacity: 1; }
.aw-weapon-card.selected {
  border-color: #00e5ff;
  background: rgba(0,40,68,.94);
  box-shadow: 0 0 30px rgba(0,229,255,.3), inset 0 0 16px rgba(0,229,255,.06);
  transform: translateY(-3px);
}
.aw-weapon-card.locked { opacity: .45; cursor: not-allowed; }
.aw-wc-icon {
  width: 72px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 36px; /* fallback for emoji */
  line-height: 1;
}
.aw-wc-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00e5ff;
  font-weight: 700;
}
.aw-wc-sub { font-size: 9.5px; color: rgba(180,215,235,.4); }
.aw-wc-lock { position: absolute; top: 9px; right: 10px; font-size: 12px; opacity: .5; }
.aw-wc-sel {
  position: absolute; top: 9px; right: 10px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff, 0 0 18px rgba(0,229,255,.6);
  animation: aw-dot-pulse 2s ease-in-out infinite;
}
@keyframes aw-dot-pulse {
  0%, 100% { box-shadow: 0 0 8px #00e5ff, 0 0 18px rgba(0,229,255,.6); }
  50%       { box-shadow: 0 0 14px #00e5ff, 0 0 30px rgba(0,229,255,.9); }
}

/* Attachment row */
.aw-attach-row {
  background: rgba(0,12,24,.68);
  border: 1px solid rgba(0,229,255,.1);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.aw-attach-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,229,255,.52);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.aw-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.035);
}
.aw-toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
.aw-toggle-label {
  font-size: 13px;
  color: rgba(200,228,240,.88);
  display: flex;
  align-items: center;
  gap: 7px;
}
.aw-toggle-label.locked { opacity: .36; }

/* Laser color picker */
.aw-laser-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.aw-laser-swatch {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
  flex-shrink: 0;
}
.aw-laser-swatch.locked { opacity: .25; cursor: not-allowed; }
.aw-laser-swatch:not(.locked):hover { transform: scale(1.18); }
.aw-laser-swatch.active {
  border-color: white;
  box-shadow: 0 0 16px currentColor, 0 0 32px rgba(255,255,255,.2);
  transform: scale(1.14);
}
.aw-laser-swatch[data-color="cyan"]   { background: #00e5ff; color: #00e5ff; }
.aw-laser-swatch[data-color="blue"]   { background: #0080ff; color: #0080ff; }
.aw-laser-swatch[data-color="purple"] { background: #9d00ff; color: #9d00ff; }
.aw-laser-swatch[data-color="gold"]   { background: #ffd700; color: #ffd700; }
.aw-swatch-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
}
.aw-save-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background: rgba(0,229,255,.08);
  border: 1.5px solid rgba(0,229,255,.3);
  border-radius: 14px;
  color: #00e5ff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .12s;
}
.aw-save-btn:hover {
  background: rgba(0,229,255,.16);
  box-shadow: 0 0 24px rgba(0,229,255,.28);
  transform: translateY(-1px);
}
.aw-save-btn:disabled { opacity: .36; cursor: not-allowed; transform: none; }
.aw-panel-msg {
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
  color: rgba(80,255,170,.88);
}
.aw-panel-msg.err { color: rgba(255,80,100,.92); }

/* -- -----------------------------------------------------------------
   PANEL 2: SKINS
   ------------------------------------------------------------------- */
.aw-skins-column + .aw-skins-column {
  margin-top: 24px;
}
.aw-skins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 540px) {
  .aw-skins-grid { grid-template-columns: repeat(3, 1fr); }
}
.aw-skin-slot {
  aspect-ratio: 2 / 3;
  background: rgba(28,0,48,.65);
  border: 1.5px solid rgba(180,0,255,.16);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: rgba(180,0,255,.3);
  position: relative;
  overflow: hidden;
  transition: border-color .18s, transform .15s, box-shadow .18s;
}
.aw-skin-slot:hover {
  border-color: rgba(180,0,255,.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 20px rgba(180,0,255,.15);
}
.aw-skin-slot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(180,0,255,.07), transparent 65%);
  pointer-events: none;
}
.aw-cs-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  -webkit-backdrop-filter: blur(12px) brightness(.5);
  backdrop-filter: blur(12px) brightness(.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  background: rgba(8,0,18,.35);
}
.aw-cs-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(210,80,255,.92);
  font-weight: 700;
  text-shadow: 0 0 28px rgba(180,0,255,.75);
}
.aw-cs-sub {
  font-size: 12px;
  color: rgba(180,100,255,.6);
  letter-spacing: 1px;
  text-align: center;
  max-width: 200px;
  line-height: 1.55;
}

/* -- -----------------------------------------------------------------
   PANEL 3: SETTINGS
   ------------------------------------------------------------------- */
.aw-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin-bottom: 8px;
  border-radius: 16px;
  border: 1px solid rgba(0,200,180,.1);
  background: rgba(0,18,16,.55);
  gap: 18px;
  transition: background .15s, border-color .15s;
}
.aw-setting-row:hover {
  background: rgba(0,28,24,.65);
  border-color: rgba(0,200,180,.22);
}
.aw-setting-info { flex: 1; min-width: 0; }
.aw-setting-name { font-size: 15px; color: rgba(205,245,238,.92); font-weight: 500; }
.aw-setting-desc { font-size: 11.5px; color: rgba(110,190,180,.52); margin-top: 4px; }

/* Toggle switch */
.aw-switch {
  position: relative;
  width: 46px; height: 26px;
  flex-shrink: 0;
}
.aw-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.aw-switch-slider {
  position: absolute; inset: 0;
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(0,200,180,.22);
  cursor: pointer;
  transition: background .22s, border-color .22s, box-shadow .22s;
}
.aw-switch-slider::before {
  content: '';
  position: absolute;
  width: 19px; height: 19px;
  left: 2px; top: 2px;
  background: rgba(180,220,215,.55);
  border-radius: 50%;
  transition: transform .24s cubic-bezier(.2,.8,.3,1), background .22s;
}
.aw-switch input:checked + .aw-switch-slider {
  background: rgba(0,200,180,.22);
  border-color: #00c8b4;
  box-shadow: 0 0 12px rgba(0,200,180,.35);
}
.aw-switch input:checked + .aw-switch-slider::before {
  transform: translateX(20px);
  background: #00c8b4;
  box-shadow: 0 0 10px rgba(0,200,180,.75);
}

/* Volume slider */
.aw-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: 170px;
  max-width: 100%;
  min-width: 0;
}
.aw-slider-wrap input[type="range"] {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: rgba(0,200,180,.18);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.aw-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #00c8b4;
  box-shadow: 0 0 10px rgba(0,200,180,.65);
  cursor: pointer;
  transition: transform .15s;
}
.aw-slider-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.3); }
.aw-slider-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  color: #00c8b4;
  width: 32px;
  min-width: 32px;
  text-align: right;
  white-space: nowrap;
}

/* -- -----------------------------------------------------------------
   PANEL 4: GAME INFO
   ------------------------------------------------------------------- */
.aw-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,38,105,.5);
  border: 1.5px solid rgba(0,120,255,.32);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 22px;
  box-shadow: 0 0 28px rgba(0,120,255,.1);
  position: static; /* Ensure it never leaks into absolute positioning context */
  max-width: 100%;
}
.aw-version-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0078ff;
  letter-spacing: 1.5px;
  text-shadow: 0 0 14px rgba(0,120,255,.55);
}
.aw-version-date { font-size: 11.5px; color: rgba(100,165,255,.62); }
.aw-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,120,255,.07);
}
.aw-feature-item:last-of-type { border-bottom: none; }
.aw-fi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0078ff;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 9px rgba(0,120,255,.75);
}
.aw-fi-text { font-size: 13.5px; color: rgba(180,215,248,.88); line-height: 1.62; }
.aw-fi-text strong { color: rgba(120,185,255,.96); }
.aw-info-footer {
  margin-top: 26px;
  padding: 18px 20px;
  background: rgba(0,18,50,.5);
  border: 1px solid rgba(0,120,255,.12);
  border-radius: 16px;
  font-size: 11.5px;
  color: rgba(120,165,215,.62);
  line-height: 1.7;
}
.aw-info-footer a { color: rgba(0,160,255,.82); text-decoration: none; }
.aw-info-footer a:hover { color: #0078ff; text-decoration: underline; }

/* -- -----------------------------------------------------------------
   PANEL 5: TUTORIALS
   ------------------------------------------------------------------- */
.aw-tut-step {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 10px;
  background: rgba(20,12,0,.55);
  border: 1px solid rgba(255,200,0,.08);
  align-items: flex-start;
  transition: border-color .18s, background .18s, transform .15s, box-shadow .18s;
}
.aw-tut-step:hover {
  border-color: rgba(255,200,0,.25);
  background: rgba(28,18,0,.65);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.aw-tut-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,200,0,.42);
  color: #ffc800;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,200,0,.07);
  box-shadow: 0 0 12px rgba(255,200,0,.15);
}
.aw-tut-content { flex: 1; }
.aw-tut-title {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,238,148,.96);
  margin-bottom: 5px;
}
.aw-tut-desc { font-size: 12.5px; color: rgba(200,195,172,.72); line-height: 1.62; }
.aw-key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: rgba(255,200,0,.09);
  border: 1px solid rgba(255,200,0,.32);
  border-radius: 5px;
  font-size: 10px;
  font-family: 'Rajdhani', sans-serif;
  color: rgba(255,226,90,.92);
  letter-spacing: 0.5px;
}

/* -- Loading state --------------------------------------------------- */
.aw-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
  color: rgba(0,229,255,.4);
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  gap: 10px;
}
.aw-loading::before {
  content: '';
  width: 18px; height: 18px;
  border: 2px solid rgba(0,229,255,.12);
  border-top-color: rgba(0,229,255,.65);
  border-radius: 50%;
  animation: aw-spin .8s linear infinite;
}
@keyframes aw-spin { to { transform: rotate(360deg); } }

/* -- Unlock hint tag -------------------------------------------------- */
.aw-lock-hint {
  font-size: 10px;
  color: rgba(255,160,60,.72);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* -- Panel open animations -------------------------------------------- */
@keyframes aw-header-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aw-body-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- -----------------------------------------------------------------
   GAME INFO � TABBED LAYOUT (About � Modes � Progression � Features � Credits)
   Migrated from the legacy #gc-pager scroll-snap pages.
   Accent color: #0078ff (blue) � matches #aw-panel-gameinfo theme.
   ------------------------------------------------------------------- */

/* Tab bar ---------------------------------------------------------- */
.aw-tab-bar {
  display: flex;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  background: rgba(0,18,50,.42);
  border: 1px solid rgba(0,120,255,.16);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.aw-tab-bar::-webkit-scrollbar { display: none; }
.aw-tab-btn {
  flex: 1 1 auto;
  min-width: 88px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(120,165,215,.6);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .2s;
  white-space: nowrap;
  position: relative;
}
.aw-tab-btn:hover { color: rgba(180,215,255,.92); background: rgba(0,120,255,.06); }
.aw-tab-btn.active {
  color: #0078ff;
  background: rgba(0,120,255,.12);
  box-shadow: inset 0 -2px 0 0 #0078ff, 0 0 18px rgba(0,120,255,.32);
  text-shadow: 0 0 14px rgba(0,120,255,.55);
}
.aw-tab-btn:focus-visible { outline: 2px solid rgba(0,160,255,.55); outline-offset: 2px; }

/* Tab panes -------------------------------------------------------- */
.aw-tab-pane { display: none; animation: aw-pane-in .22s ease-out; }
.aw-tab-pane.active { display: block; }
@keyframes aw-pane-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shared typography ------------------------------------------------ */
.aw-gi-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0,160,255,.65);
  margin: 0 0 12px;
}
.aw-gi-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #0078ff;
  text-shadow: 0 0 28px rgba(0,120,255,.55);
  margin: 0 0 12px;
}
.aw-gi-title em { font-style: normal; }
.aw-gi-h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(20px, 3.4vw, 26px);
  color: rgba(180,215,255,.96);
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.aw-gi-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(180,215,248,.88);
  margin: 0 0 22px;
}
.aw-gi-lead {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(180,215,248,.88);
  margin: 0 0 20px;
}
.aw-gi-tagline-sm {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,160,255,.65);
}

/* About � stat grid ----------------------------------------------- */
.aw-gi-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.aw-gi-stat {
  background: rgba(0,18,50,.5);
  border: 1px solid rgba(0,120,255,.18);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.aw-gi-stat:hover {
  border-color: rgba(0,120,255,.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 18px rgba(0,120,255,.18);
}
.aw-gi-stat-n {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #0078ff;
  text-shadow: 0 0 16px rgba(0,120,255,.55);
  line-height: 1;
}
.aw-gi-stat-l {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(120,165,215,.7);
}
@media (max-width: 480px) {
  .aw-gi-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* About � Discord CTA --------------------------------------------- */
.aw-gi-discord {
  background: linear-gradient(135deg, rgba(88,101,242,.18), rgba(0,18,50,.5));
  border: 1px solid rgba(88,101,242,.4);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 0 32px rgba(88,101,242,.14);
}
.aw-gi-discord h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: rgba(200,210,255,.96);
  margin: 0 0 6px;
}
.aw-gi-discord p {
  font-size: 12.5px;
  color: rgba(180,200,235,.78);
  margin: 0 0 14px;
  line-height: 1.55;
}
.aw-gi-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: #5865f2;
  color: #fff;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(88,101,242,.45);
  transition: transform .15s, box-shadow .18s, background .18s;
}
.aw-gi-discord-btn:hover {
  background: #6873ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(88,101,242,.6);
}

/* Modes � mode cards ---------------------------------------------- */
.aw-gi-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 18px;
}
.aw-gi-card {
  background: rgba(0,18,50,.5);
  border: 1px solid rgba(0,120,255,.18);
  border-left: 3px solid rgba(0,120,255,.55);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.aw-gi-card:hover {
  border-color: rgba(0,160,255,.55);
  border-left-color: #0078ff;
  transform: translateX(2px);
  box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 18px rgba(0,120,255,.18);
}
.aw-gi-card[data-mode="flagship"] {
  border-left-color: #ffb300;
  background: linear-gradient(135deg, rgba(255,179,0,.08), rgba(0,18,50,.5));
}
.aw-gi-card[data-mode="flagship"]:hover { border-left-color: #ffd84a; }
.aw-gi-card[data-mode="chaos"]    { border-left-color: #ff4a72; }
.aw-gi-card[data-mode="training"] { border-left-color: #7dd87d; }
.aw-gi-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: rgba(180,215,255,.96);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.aw-gi-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(180,215,248,.78);
  margin: 0;
}
.aw-gi-card p strong { color: rgba(120,185,255,.96); }

/* Modes / Progression � callout box ------------------------------- */
.aw-gi-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(0,120,255,.07);
  border: 1px solid rgba(0,120,255,.2);
  border-radius: 14px;
}
.aw-gi-callout-icon { font-size: 18px; line-height: 1.3; flex-shrink: 0; }
.aw-gi-callout p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(180,215,248,.85);
}
.aw-gi-callout strong { color: #0078ff; }

/* Progression � unlock grid --------------------------------------- */
.aw-gi-unlocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 4px;
}
.aw-gi-unlock {
  background: rgba(0,18,50,.5);
  border: 1px solid rgba(0,120,255,.18);
  border-radius: 14px;
  padding: 14px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.aw-gi-unlock:hover {
  border-color: rgba(0,160,255,.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 16px rgba(0,120,255,.18);
}
.aw-gi-unlock[data-tier="prestige"] {
  border-color: rgba(255,179,0,.35);
  background: linear-gradient(135deg, rgba(255,179,0,.08), rgba(0,18,50,.5));
}
.aw-gi-unlock[data-tier="prestige"]:hover { border-color: rgba(255,210,80,.7); box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 18px rgba(255,179,0,.22); }
.aw-gi-unlock-lvl {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(0,160,255,.7);
  margin: 0 0 4px;
}
.aw-gi-unlock[data-tier="prestige"] .aw-gi-unlock-lvl { color: rgba(255,210,80,.9); }
.aw-gi-unlock h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  letter-spacing: 1.1px;
  color: rgba(200,225,255,.96);
  margin: 0 0 6px;
}
.aw-gi-unlock p {
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(170,200,235,.72);
  margin: 0;
}
@media (max-width: 480px) {
  .aw-gi-unlocks { grid-template-columns: 1fr; }
}

/* Features � feature rows ----------------------------------------- */
.aw-gi-features { display: flex; flex-direction: column; gap: 14px; }
.aw-gi-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0,18,50,.4);
  border: 1px solid rgba(0,120,255,.14);
  border-radius: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.aw-gi-feature:hover { border-color: rgba(0,120,255,.35); box-shadow: 0 0 18px rgba(0,120,255,.12); }
.aw-gi-feature-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,120,255,.12);
  border-radius: 10px;
}
.aw-gi-feature-text h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  letter-spacing: 1.2px;
  color: rgba(180,215,255,.96);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.aw-gi-feature-text p {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(180,215,248,.8);
  margin: 0;
}
.aw-gi-feature-text strong { color: rgba(120,185,255,.96); }

/* Credits --------------------------------------------------------- */
.aw-gi-credits {
  background: rgba(0,18,50,.4);
  border: 1px solid rgba(0,120,255,.14);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.aw-gi-credits p {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(180,215,248,.85);
  margin: 0 0 10px;
}
.aw-gi-credits p strong { color: rgba(120,185,255,.96); }
.aw-gi-credits ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aw-gi-credits li {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(170,200,235,.75);
  padding-left: 14px;
  position: relative;
}
.aw-gi-credits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 10px;
  height: 10px;
  background-color: rgba(0,160,255,.55);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  animation: icon-pulse 2s infinite ease-in-out;
}
.aw-gi-credits a { color: rgba(0,160,255,.85); text-decoration: none; }
.aw-gi-credits a:hover { color: #0078ff; text-decoration: underline; }

/* ── Fullscreen Account & Shop Panel Cyber Styling ── */
.aw-account-column {
  display: flex;
  flex-direction: column;
}
#aw-panel-account .name-row {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin: 10px 0 4px 0;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}
#aw-panel-account .status-row {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00e5ff;
  margin: 0 0 24px 0;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
#aw-panel-account input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  margin: 8px 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#aw-panel-account input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
#aw-panel-account button:not(.aw-ph-close) {
  width: 100%;
  padding: 11px;
  margin-top: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.05);
  border: 1.5px solid #00e5ff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 0 8px rgba(0, 229, 255, 0.15);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}
#aw-panel-account button:not(.aw-ph-close):hover {
  background: rgba(0, 229, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35), inset 0 0 8px rgba(0, 229, 255, 0.15);
}
#aw-panel-account button:not(.aw-ph-close):active {
  transform: scale(0.98);
}
#aw-panel-account button.ghost {
  color: #b0e0ff;
  border-color: rgba(176, 224, 255, 0.4);
  background: transparent;
  box-shadow: none;
}
#aw-panel-account button.ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
#aw-panel-account button.danger {
  color: #ff8090;
  border-color: rgba(255, 64, 96, 0.5);
  box-shadow: inset 0 0 8px rgba(255, 64, 96, 0.1);
}
#aw-panel-account button.danger:hover {
  color: #ffffff;
  background: rgba(255, 64, 96, 0.2);
  border-color: #ff4060;
  box-shadow: 0 0 14px rgba(255, 64, 96, 0.35);
}
#aw-panel-account .divider {
  border: none;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  margin: 20px 0 16px 0;
}
#aw-panel-account .msg,
#aw-panel-shop .msg {
  min-height: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  margin: 12px 0 4px 0;
  color: #b0e0ff;
}
#aw-panel-account .msg.ok,
#aw-panel-shop .msg.ok { color: #50ffaa; text-shadow: 0 0 8px rgba(80, 255, 170, 0.3); }
#aw-panel-account .msg.err,
#aw-panel-shop .msg.err { color: #ff8090; text-shadow: 0 0 8px rgba(255, 128, 144, 0.3); }

/* ── Fullscreen Boost Shop Card Styling ── */
#aw-panel-shop .shop-item {
  padding: 24px;
  margin-bottom: 20px;
  background: rgba(255, 170, 0, 0.05);
  border: 1.5px solid rgba(255, 170, 0, 0.22);
  border-radius: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: inset 0 0 16px rgba(255, 170, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s;
}
#aw-panel-shop .shop-item:hover {
  border-color: rgba(255, 170, 0, 0.45);
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.12), inset 0 0 16px rgba(255, 170, 0, 0.04);
}
#aw-panel-shop .shop-item h5 {
  margin: 0 0 8px 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#aw-panel-shop .shop-item .desc {
  font-size: 13px;
  color: #a4ccdf;
  margin: 0 0 18px 0;
  line-height: 1.5;
}
#aw-panel-shop .shop-item .owned {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #50ffaa;
  background: rgba(80, 255, 170, 0.08);
  border: 1.5px solid rgba(80, 255, 170, 0.35);
  border-radius: 5px;
  text-transform: uppercase;
}
#aw-panel-shop .shop-item button {
  width: 100%;
  padding: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.05);
  border: 1.5px solid #ffaa00;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 0 8px rgba(255, 170, 0, 0.1);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}
#aw-panel-shop .shop-item button:hover {
  background: rgba(255, 170, 0, 0.18);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 170, 0, 0.35), inset 0 0 8px rgba(255, 170, 0, 0.1);
}
#aw-panel-shop .shop-item button:active {
  transform: scale(0.98);
}
#aw-panel-shop .shop-item button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────────────────
   MOBILE & LANDSCAPE COMTACT POLISH (Scroll-Free viewports)
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 800px), (max-height: 520px) {
  /* -- General Panel Scale Downs -- */
  .aw-panel {
    height: 100% !important;
    overflow: hidden !important;
  }
  
  .aw-ph {
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  .aw-ph-title {
    font-size: 14px !important;
    letter-spacing: 2px !important;
    gap: 8px !important;
  }
  .aw-ph-title .ph-icon {
    font-size: 16px !important;
  }
  .aw-ph-close {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }

  .aw-pb {
    padding: 12px 14px !important;
    overflow-y: auto !important; /* fallback but we design content to fit without scrolling */
  }

  .aw-section-label {
    font-size: 9px !important;
    letter-spacing: 2px !important;
    margin: 8px 0 4px !important;
    padding-bottom: 4px !important;
  }

  /* -- Secondary Text Elimination to Prevent Scroll -- */
  .aw-wc-sub,
  .aw-cs-sub,
  .aw-tut-desc,
  .aw-setting-desc,
  .aw-gi-discord p,
  .aw-gi-card p,
  .aw-gi-unlock p,
  .aw-gi-feature p,
  .aw-gi-credits p,
  .aw-lock-hint,
  .aw-xp-label {
    display: none !important;
  }

  /* ── Panel 1: Loadout ── */
  .aw-rank-bar {
    padding: 4px 6px !important;
    margin-bottom: 6px !important;
    gap: 8px !important;
  }
  .aw-rank-badge {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
  }
  .aw-rank-name {
    font-size: 11px !important;
  }
  .aw-rank-sub {
    font-size: 9px !important;
  }
  .aw-xp-track {
    height: 6px !important;
    margin-top: 4px !important;
    border-radius: 3px !important;
  }

  .aw-weapon-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .aw-weapon-card {
    min-height: auto !important;
    height: 48px !important;
    padding: 4px !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
  }
  .aw-weapon-card.selected,
  .aw-weapon-card:not(.locked):hover {
    transform: none !important;
  }
  .aw-wc-icon {
    width: 44px !important;
    height: 32px !important;
    font-size: 22px !important;
  }
  .aw-wc-name {
    font-size: 9px !important;
    letter-spacing: 0.8px !important;
  }
  .aw-wc-sel {
    top: 4px !important;
    right: 4px !important;
    width: 6px !important;
    height: 6px !important;
  }
  .aw-wc-lock {
    top: 4px !important;
    right: 4px !important;
    font-size: 8px !important;
  }

  .aw-attach-row {
    padding: 4px 0 !important;
    margin: 0 !important;
  }
  .aw-attach-title {
    font-size: 9px !important;
    margin-bottom: 4px !important;
    letter-spacing: 1.2px !important;
  }
  
  /* Stack crosshairs in 2x2 grid */
  .aw-crosshair-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .aw-toggle-row {
    margin: 0 !important;
    padding: 4px 6px !important;
    background: rgba(0, 14, 28, 0.4) !important;
    border: 1px solid rgba(0, 229, 255, 0.1) !important;
    border-radius: 6px !important;
  }
  .aw-toggle-label span {
    font-size: 10px !important;
  }
  .aw-switch {
    width: 32px !important;
    height: 18px !important;
  }
  .aw-switch-slider::before {
    height: 12px !important;
    width: 12px !important;
    left: 3px !important;
    bottom: 3px !important;
  }
  input:checked + .aw-switch-slider::before {
    transform: translateX(14px) !important;
  }

  /* Inline laser selector next to title */
  .aw-attach-row:last-of-type {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 6px !important;
    padding: 4px 6px !important;
    background: rgba(0, 14, 28, 0.4) !important;
    border: 1px solid rgba(0, 229, 255, 0.1) !important;
    border-radius: 6px !important;
  }
  .aw-attach-row:last-of-type .aw-attach-title {
    margin-bottom: 0 !important;
  }
  .aw-laser-row {
    margin-top: 0 !important;
    gap: 6px !important;
  }
  .aw-laser-swatch {
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
  }
  .aw-swatch-lock {
    font-size: 7px !important;
  }

  .aw-save-btn {
    margin-top: 8px !important;
    padding: 8px !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    border-radius: 6px !important;
  }
  .aw-panel-msg {
    margin-top: 4px !important;
    font-size: 11px !important;
  }

  /* ── Panel 2: Skins ── */
  #aw-panel-skins .aw-pb {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
  }
  #aw-panel-skins .aw-pb > div {
    flex: 1 !important;
  }
  .aw-skins-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
  }
  .aw-skin-slot {
    width: auto !important;
    height: 38px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
  .aw-cs-overlay {
    border-radius: 8px !important;
    gap: 2px !important;
  }
  .aw-cs-overlay span[style*="font-size"] {
    font-size: 16px !important;
  }
  .aw-cs-label {
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  /* ── Panel 3: Settings ── */
  .aw-setting-row {
    padding: 8px 10px !important;
    margin: 0 0 6px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  .aw-setting-name {
    font-size: 11px !important;
  }
  .aw-setting-info {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  .aw-slider-wrap {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 44% !important;
    min-width: 80px !important;
    gap: 6px !important;
  }
  .aw-slider-val {
    font-size: 10px !important;
    min-width: 28px !important;
    width: 28px !important;
    white-space: nowrap !important;
  }

  /* ── Panel 4: Game Info ── */
  .aw-version-badge {
    position: static !important;
    display: inline-flex !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    margin: 0 0 8px !important;
    max-width: 100% !important;
  }
  .aw-version-tag {
    font-size: 13px !important;
    letter-spacing: 1px !important;
  }
  .aw-version-date {
    font-size: 10px !important;
  }
  .aw-tab-bar {
    gap: 4px !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
  }
  .aw-tab-btn {
    padding: 5px 8px !important;
    font-size: 10px !important;
    letter-spacing: 0.8px !important;
    border-radius: 5px !important;
  }
  .aw-gi-eyebrow {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }
  .aw-gi-title {
    font-size: 16px !important;
    margin: 0 0 4px !important;
  }
  .aw-gi-tagline {
    font-size: 11px !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
  }
  .aw-gi-stats {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .aw-gi-stat {
    padding: 6px !important;
    border-radius: 8px !important;
  }
  .aw-gi-stat-n {
    font-size: 16px !important;
  }
  .aw-gi-stat-l {
    font-size: 8px !important;
    letter-spacing: 0.8px !important;
  }
  .aw-gi-discord {
    padding: 10px !important;
    border-radius: 8px !important;
  }
  .aw-gi-discord h3 {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  .aw-gi-discord-btn {
    padding: 6px 14px !important;
    font-size: 9px !important;
    border-radius: 6px !important;
  }

  /* Grid restructuring for game info tab sections */
  .aw-gi-cards,
  .aw-gi-unlocks,
  .aw-gi-features {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  .aw-gi-features {
    display: grid !important;
  }
  .aw-gi-card,
  .aw-gi-unlock,
  .aw-gi-feature {
    padding: 6px 10px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
  }
  .aw-gi-card h3,
  .aw-gi-unlock-lvl,
  .aw-gi-unlock h4,
  .aw-gi-feature-text h3 {
    font-size: 11px !important;
    margin: 0 !important;
  }
  .aw-gi-feature {
    align-items: center !important;
    gap: 8px !important;
  }
  .aw-gi-feature-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
  }
  .aw-gi-credits {
    padding: 10px !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
  }
  .aw-gi-credits ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
  }
  .aw-gi-credits li {
    font-size: 10px !important;
    padding-left: 12px !important;
  }

  /* ── Panel 5: Tutorial/Guide ── */
  #aw-panel-tutorial .aw-pb {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: start !important;
  }
  #aw-panel-tutorial section {
    margin: 0 !important;
  }
  .aw-tut-step {
    padding: 4px 6px !important;
    margin-bottom: 5px !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .aw-tut-num {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
  .aw-tut-num lucide-icon {
    width: 10px !important;
    height: 10px !important;
  }
  .aw-tut-title {
    font-size: 11px !important;
    margin: 0 !important;
  }

  /* ── Panel 6 & 7: Account & Shop ── */
  #aw-panel-account .name-row {
    font-size: 18px !important;
    margin: 0 0 2px 0 !important;
  }
  #aw-panel-account .status-row {
    font-size: 10px !important;
    margin: 0 0 10px 0 !important;
  }
  #aw-panel-account input {
    padding: 6px 10px !important;
    margin: 4px 0 !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }
  #aw-panel-account button:not(.aw-ph-close) {
    padding: 8px !important;
    margin-top: 6px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
  }
  #aw-panel-account .divider {
    margin: 10px 0 !important;
  }

  /* Side-by-side Guest forms layout on landscape/mobile */
  #account-actions-guest {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: start !important;
  }
  #account-actions-guest .divider {
    display: none !important; /* Hide vertical divider to keep layout clean */
  }
  .aw-account-column {
    display: flex !important;
    flex-direction: column !important;
  }
  .aw-skins-column + .aw-skins-column {
    margin-top: 0 !important;
  }

  #aw-panel-shop .shop-item {
    padding: 16px !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
  }
  #aw-panel-shop .shop-item h5 {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
  #aw-panel-shop .shop-item button {
    padding: 9px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
}

