/* Cyber Strike - Modern Sci-Fi Tactical UI Stylesheet */

:root {
  --bg-dark: #080c14;
  --bg-panel: rgba(13, 22, 38, 0.78);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --glow-cyan: rgba(0, 240, 255, 0.6);
  --color-rock: #ff3b30;
  --color-paper: #34c759;
  --color-scissors: #007aff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 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);
  color: var(--text-main);
  font-family: var(--font-family);
}

canvas#gameCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  outline: none;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.65), 0 0 15px rgba(0, 240, 255, 0.15);
}

.hidden {
  display: none !important;
}

/* Screen Overlays */
.overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(8px);
}

/* Homescreen Container */
.home-panel {
  width: 880px;
  max-width: 95vw;
  max-height: 92vh;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.header-section {
  text-align: center;
}

.game-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.highlight-cyan {
  color: #00f0ff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

.highlight-red {
  color: #ff3b30;
  text-shadow: 0 0 16px rgba(255, 59, 48, 0.7);
}

.game-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.status-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.status-badge.online {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border: 1px solid #34c759;
}

.status-badge.connecting {
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
  border: 1px solid #ff9500;
}

.status-badge.offline {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  border: 1px solid #ff3b30;
}

/* Customizer Layout */
.customizer-container {
  display: flex;
  gap: 24px;
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-box {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 15px;
}

.preview-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 12px;
}

.options-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
}

.form-group input[type="text"],
.form-group select {
  background: rgba(10, 16, 28, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Team Selector (Rock, Paper, Scissors) */
.team-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.team-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.team-btn .team-icon {
  font-size: 24px;
}

.team-btn .team-info strong {
  display: block;
  font-size: 12px;
}

.team-btn .team-info small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.team-btn.rock-theme.active {
  border-color: var(--color-rock);
  background: rgba(255, 59, 48, 0.2);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}

.team-btn.paper-theme.active {
  border-color: var(--color-paper);
  background: rgba(52, 199, 89, 0.2);
  box-shadow: 0 0 15px rgba(52, 199, 89, 0.4);
}

.team-btn.scissors-theme.active {
  border-color: var(--color-scissors);
  background: rgba(0, 122, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.colors-row {
  display: flex;
  gap: 20px;
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-group label {
  font-size: 12px;
  color: var(--text-muted);
}

.color-picker-group input[type="color"] {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border-cyan);
  background: none;
  cursor: pointer;
}

/* Buttons */
.primary-btn {
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
  color: #040814;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-transform: uppercase;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.primary-btn:active {
  transform: translateY(1px);
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.8); }
  100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.micro-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

/* Footer & Controls Guide */
.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.controls-guide {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

kbd {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: monospace;
  color: #00f0ff;
  box-shadow: 0 2px 0 #0f172a;
}

/* IN-GAME HUD */
#hudOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

.top-hud {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.domination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dom-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.domination-bar {
  width: 380px;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dom-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  transition: width 0.3s ease;
}

.dom-segment.rock { background: var(--color-rock); }
.dom-segment.paper { background: var(--color-paper); }
.dom-segment.scissors { background: var(--color-scissors); }

.telemetry-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted);
}

/* Killfeed */
.killfeed-container {
  position: absolute;
  top: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.killfeed-item {
  background: rgba(13, 22, 38, 0.75);
  border-left: 3px solid #00f0ff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Leaderboard */
.leaderboard-panel {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 260px;
  padding: 12px;
  pointer-events: auto;
}

.lb-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00f0ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
}

.lb-row.is-me {
  background: rgba(0, 240, 255, 0.15);
  font-weight: bold;
}

.lb-rank {
  color: #ffd60a;
  width: 40px;
}

.lb-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.lb-score {
  font-family: monospace;
  color: #e2e8f0;
}

.lb-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: #00f0ff;
  text-align: center;
}

/* Stats Upgrades Panel (Bottom Left) */
.stats-panel {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: 250px;
  padding: 14px;
  pointer-events: auto;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00f0ff;
}

.sp-badge {
  background: #ffcc00;
  color: #000;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 10px;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.7; }
  to { opacity: 1; transform: scale(1.05); }
}

.stat-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 6px;
}

.stat-name {
  font-size: 12px;
  font-weight: 600;
}

.stat-lvl {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.stat-plus-btn {
  background: #00f0ff;
  color: #000;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.stat-plus-btn:hover:not(:disabled) {
  transform: scale(1.15);
}

.stat-plus-btn:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
}

/* Bottom Center HUD */
.bottom-center-hud {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.abilities-row {
  display: flex;
  gap: 16px;
}

.ability-slot {
  position: relative;
  width: 65px;
  height: 65px;
  background: rgba(13, 22, 38, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cooldown-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(0, 0, 0, 0.7);
  transition: height 0.1s linear;
}

.ability-key {
  font-size: 12px;
  font-weight: 900;
  color: #00f0ff;
  z-index: 2;
}

.ability-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  z-index: 2;
}

.cd-timer {
  font-size: 10px;
  font-family: monospace;
  font-weight: bold;
  color: #fff;
  z-index: 2;
}

/* Vitals (HP & Shield) */
.vitals-container {
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-wrapper {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shield-bar {
  height: 6px;
}

.hp-bar {
  height: 20px;
}

.bar-fill {
  height: 100%;
  transition: width 0.15s ease;
}

.shield-fill {
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

.hp-fill {
  background: linear-gradient(90deg, #34c759 0%, #30d158 100%);
  box-shadow: 0 0 12px rgba(52, 199, 89, 0.5);
}

.bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* EXP Container */
.exp-container {
  width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.exp-bar {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  border: 1px solid rgba(255, 204, 0, 0.3);
  overflow: hidden;
}

.exp-fill {
  background: linear-gradient(90deg, #ffcc00 0%, #ff9500 100%);
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}

.score-display {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffd60a;
}

/* Permadeath Recap Screen */
.death-panel {
  width: 580px;
  max-width: 90vw;
  padding: 35px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.death-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ff3b30;
  text-shadow: 0 0 20px rgba(255, 59, 48, 0.8);
}

.death-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

.rps-tip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.rps-tip strong {
  display: block;
  margin-bottom: 4px;
  color: #00f0ff;
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.summary-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.card-value {
  font-size: 20px;
  font-weight: 900;
  color: #00f0ff;
}

.permadeath-warning {
  font-size: 12px;
  color: #f59e0b;
}

.death-actions-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.return-btn {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Audio Settings Controls in Menus */
.audio-settings-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.audio-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  width: 70px;
  text-align: left;
}

.audio-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  cursor: pointer;
  transition: transform 0.1s, background 0.1s;
}

.audio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #ffffff;
}

.audio-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  cursor: pointer;
}

.audio-val {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #00f0ff;
  width: 38px;
  text-align: right;
}

/* Pause Menu Styling */
#pauseMenu {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(8px);
}

/* Weapon Arsenal HUD Panel (Positioned above Core Stats Panel) */
.arsenal-panel {
  position: absolute;
  bottom: 240px;
  left: 25px;
  width: 250px;
  padding: 12px 14px;
  pointer-events: auto;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.arsenal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00f0ff;
}

.weapon-level-badge {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.5);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 10px;
}

.weapon-select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(10, 16, 28, 0.9);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weapon-select:hover, .weapon-select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.weapon-select option {
  background: #0b111e;
  color: #ffffff;
  padding: 8px;
  font-size: 12px;
}

.weapon-select option:disabled {
  color: #64748b;
  background: #060a12;
}

.weapon-desc-preview {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Pause Menu Weapon Box */
.pause-arsenal-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0 6px 0;
}

.pause-arsenal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00f0ff;
}

/* ==========================================================================
   Specially Designed Cyber Ad Container Box (Left & Right Side Placements)
   ========================================================================== */
.menu-layout-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1480px;
  height: 100%;
  max-height: 98vh;
  box-sizing: border-box;
  padding: 10px;
  pointer-events: none;
}

.menu-layout-container > * {
  pointer-events: auto;
}

.menu-side-ad {
  width: 180px;
  min-width: 160px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  z-index: 101;
}

.cyber-ad-box {
  width: 100%;
  padding: 12px;
  background: rgba(4, 9, 18, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  box-shadow: inset 0 0 16px rgba(0, 240, 255, 0.05), 0 0 20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skyscraper-ad {
  width: 100%;
  height: 620px;
  max-height: 85vh;
  min-height: 420px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cyber-ad-box:hover {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1), 0 0 24px rgba(0, 240, 255, 0.18);
}

.cyber-ad-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cyber-ad-header .ad-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(0, 240, 255, 0.85);
  text-transform: uppercase;
}

.cyber-ad-header .ad-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 3px;
  padding: 2px 6px;
}

.cyber-ad-content {
  width: 100%;
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Ensure modal panels scroll smoothly if screen height is constrained */
.death-panel {
  max-height: 92vh;
  overflow-y: auto;
}

/* On smaller monitors or mobile/tablet viewports, gracefully hide side ads so the main game cards are never compressed */
@media (max-width: 1260px) {
  .menu-side-ad {
    display: none;
  }
}

/* ==========================================================================
   Cyber Sci-Fi Custom Scrollbars
   ========================================================================== */
.home-panel::-webkit-scrollbar,
.death-panel::-webkit-scrollbar,
.seo-intel-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.home-panel::-webkit-scrollbar-track,
.death-panel::-webkit-scrollbar-track,
.seo-intel-content::-webkit-scrollbar-track {
  background: rgba(4, 8, 16, 0.6);
}
.home-panel::-webkit-scrollbar-thumb,
.death-panel::-webkit-scrollbar-thumb,
.seo-intel-content::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 4px;
}
.home-panel::-webkit-scrollbar-thumb:hover,
.death-panel::-webkit-scrollbar-thumb:hover,
.seo-intel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.75);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

/* ==========================================================================
   SEO & Tactical Intel Accordion (High-Tech Hologram UI)
   ========================================================================== */
.seo-intel-accordion {
  margin-top: 14px;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(0, 240, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.seo-intel-accordion[open] {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.2);
}

.seo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.08) 0%, rgba(13, 22, 38, 0.4) 100%);
  list-style: none;
  transition: background 0.2s ease;
}

.seo-summary::-webkit-details-marker {
  display: none;
}

.seo-summary:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.16) 0%, rgba(13, 22, 38, 0.6) 100%);
}

.seo-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seo-pulse-dot {
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f0ff;
  animation: radarPulse 2s infinite ease-in-out;
}

@keyframes radarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.seo-terminal-tag {
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 1.5px;
  color: rgba(0, 240, 255, 0.9);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 3px;
  padding: 2px 6px;
}

.seo-summary-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.seo-toggle-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 1px;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.seo-toggle-badge::before {
  content: "[ ACCESS INTEL ]";
}

.seo-intel-accordion[open] .seo-toggle-badge {
  color: #ff9500;
  border-color: rgba(255, 149, 0, 0.5);
  background: rgba(255, 149, 0, 0.15);
  box-shadow: 0 0 8px rgba(255, 149, 0, 0.3);
}

.seo-intel-accordion[open] .seo-toggle-badge::before {
  content: "[ CLOSE ARCHIVE ]";
}

/* Accordion Interior Content */
.seo-intel-content {
  padding: 22px;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.05), transparent 60%),
              radial-gradient(circle at bottom right, rgba(0, 119, 255, 0.06), transparent 60%),
              rgba(4, 9, 20, 0.95);
  color: #c8d6e5;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}

/* Header Card */
.intel-header-card {
  background: rgba(10, 20, 38, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-left: 4px solid #00f0ff;
  border-radius: 8px;
  padding: 16px 20px;
}

.intel-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: monospace;
  font-size: 11px;
}

.intel-badge-green {
  color: #34c759;
  font-weight: 700;
  letter-spacing: 1px;
}

.intel-protocol {
  color: var(--text-muted);
  letter-spacing: 1px;
}

.intel-header-card h2 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intel-intro-text {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.intel-intro-text strong {
  color: #00f0ff;
}

/* Section Header Structure */
.intel-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intel-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-num {
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  color: #00f0ff;
}

.intel-section-title h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
}

/* RPS Dynamic Cyclic Banner */
.rps-flow-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(0, 240, 255, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-step.rock { color: var(--color-rock); }
.flow-step.scissors { color: var(--color-scissors); }
.flow-step.paper { color: var(--color-paper); }
.flow-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Faction Cards Grid */
.intel-faction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.intel-card {
  background: rgba(13, 22, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.intel-card:hover {
  transform: translateY(-2px);
}

.intel-card.faction-rock {
  border-left: 4px solid var(--color-rock);
}
.intel-card.faction-rock:hover {
  border-color: var(--color-rock);
  box-shadow: 0 4px 18px rgba(255, 59, 48, 0.2);
}

.intel-card.faction-paper {
  border-left: 4px solid var(--color-paper);
}
.intel-card.faction-paper:hover {
  border-color: var(--color-paper);
  box-shadow: 0 4px 18px rgba(52, 199, 89, 0.2);
}

.intel-card.faction-scissors {
  border-left: 4px solid var(--color-scissors);
}
.intel-card.faction-scissors:hover {
  border-color: var(--color-scissors);
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.2);
}

.intel-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faction-icon {
  font-size: 24px;
}

.intel-card-header h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 2px;
}

.faction-sub {
  font-size: 10px;
  font-family: monospace;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.multiplier-pill.bonus {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.8px;
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 4px;
  padding: 2px 8px;
}

.intel-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.card-trait {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-trait span {
  color: #ff3b30;
  font-family: monospace;
  font-weight: 700;
}

/* Controls Grid */
.intel-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.control-key-card {
  background: rgba(10, 18, 32, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-key-card .key-combo {
  display: flex;
  gap: 6px;
}

.control-key-card .key-combo kbd {
  font-size: 11px;
  font-weight: 800;
  background: #0f1c32;
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
  color: #00f0ff;
}

.control-key-card .key-desc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.control-key-card .key-desc strong {
  color: #ffffff;
  font-size: 12px;
}

.control-key-card .key-desc span {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

/* Weapons Arsenal Grid */
.intel-weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.weapon-tier-card {
  background: rgba(12, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #00f0ff;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.weapon-tier-card:hover {
  transform: translateY(-2px);
  border-top-color: #ff9500;
}

.wt-badge {
  font-family: monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ff9500;
}

.weapon-tier-card h4 {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.weapon-tier-card p {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Strategy Grid */
.intel-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.strategy-card {
  background: rgba(10, 18, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 14px;
}

.strategy-card h4 {
  font-size: 13px;
  font-weight: 800;
  color: #00f0ff;
  margin-bottom: 6px;
}

.strategy-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.strategy-card p strong {
  color: #f1f5f9;
}

/* System Specifications Footer */
.intel-footer-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 8, 16, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 11px;
}

.spec-item {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-label {
  color: rgba(0, 240, 255, 0.85);
  font-weight: 700;
}

.spec-val {
  color: #e2e8f0;
}


