﻿/* Base body */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #0b0f1e 0%, #050816 100%);
  color: #fff;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Title */
h1 {
  text-align: center;
  margin-bottom: 5px;
  font-size: 2.8em;
  color: #ffcc00;
  text-shadow: 0 0 15px #ffcc00, 0 0 25px #ffcc00, 0 0 35px #ffcc00;
}

/* Subtitle */
.small {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 20px;
  font-size: 16px;
  text-shadow: 0 0 5px #00ffff;
}

.description {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.55;
  color: #d8f8ff;
  background: linear-gradient(120deg, rgba(0, 255, 255, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 0 18px rgba(0, 255, 255, 0.12);
  letter-spacing: 0.01em;
}

/* Input */
.row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

input {
  width: 100%;
  max-width: 400px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #555;
  outline: none;
  background: #111a33;
  color: #fff;
  box-shadow: 0 0 8px #00ffff inset;
  font-size: 16px;
  transition: 0.3s;
}

input::placeholder {
  color: #99ffff;
}

input:focus {
  box-shadow: 0 0 12px #00ffff inset, 0 0 25px #00ffff;
}

/* Status text */
.status {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 6px #00ffff;
}

/* Layout: sidebar + preview */
.mapsLayout {
  display: flex;
  gap: 20px;
}

/* Sidebar maps */
.mapsList {
  flex: 0 0 250px;
  background: linear-gradient(145deg, #111a33, #0a0f26);
  padding: 15px;
  border-radius: 16px;
  height: 75vh;
  overflow-y: auto;
  border: 1px solid #00ffff55;
  box-shadow: 0 0 20px #00ffff44 inset;
}

.mapsList h3 {
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 8px #00ffff;
}
/* Mode headers in sidebar */
.mode-section {
  margin-bottom: 14px;
}

.mode-header {
  margin: 6px 0 10px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #0f1729;
  border: 1px solid #2a344a;
  color: #dbe5ff;
}

.mode-header.mode-knockball {
  border-color: #3b82f655;
  color: #93c5fd;
}

.mode-header.mode-gemgrab {
  border-color: #a855f755;
  color: #d8b4fe;
}

.mode-header.mode-knockout {
  border-color: #fb923c55;
  color: #fdba74;
}

.mode-header.mode-heist {
  border-color: #ec489955;
  color: #f9a8d4;
}

/* Map buttons (game UI style) */
.map-item {
  --mode-color: #3b82f6;
  --mode-glow: rgba(59, 130, 246, 0.35);
  padding: 12px;
  border-radius: 10px;
  background: #1a2233;
  margin-bottom: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  color: #f4f7ff;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

/* Knockball -> blue */
.map-item[data-map="dry season"],
.map-item[data-map="hideout"],
.map-item[data-map="layer cake"],
.map-item[data-map="center stage"],
.map-item[data-map="pinball dreams"],
.map-item[data-map="sneaky fields"],
.map-item[data-map="triple dribble"] {
  --mode-color: #3b82f6;
  --mode-glow: rgba(59, 130, 246, 0.35);
}

/* Gem Grab -> purple */
.map-item[data-map="double swoosh"],
.map-item[data-map="gem fort"],
.map-item[data-map="hard rock mine"],
.map-item[data-map="undermine"] {
  --mode-color: #a855f7;
  --mode-glow: rgba(168, 85, 247, 0.35);
}

/* Knockout -> orange */
.map-item[data-map="shooting star"],
.map-item[data-map="bridge too far"],
.map-item[data-map="dueling beetles"],
.map-item[data-map="open business"],
.map-item[data-map="parallel plays"],
.map-item[data-map="ring of fire"],
.map-item[data-map="belles rock"],
.map-item[data-map="flaring phoenix"],
.map-item[data-map="new horizons"],
.map-item[data-map="out in the open"] {
  --mode-color: #fb923c;
  --mode-glow: rgba(251, 146, 60, 0.35);
}

/* Heist -> pink */
.map-item[data-map="hot potato"],
.map-item[data-map="kaboom canyon"],
.map-item[data-map="pit stop"],
.map-item[data-map="safe zone"],
.map-item[data-map="safer zone"] {
  --mode-color: #ec4899;
  --mode-glow: rgba(236, 72, 153, 0.35);
}

.map-item:hover {
  transform: translateY(-3px) scale(1.015);
  background: #212c42;
  border-color: var(--mode-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 16px var(--mode-glow);
  text-shadow: 0 0 8px var(--mode-glow);
}

.map-item.active {
  transform: translateY(-1px);
  background: #24324c;
  border-color: var(--mode-color);
  color: #ffffff;
  box-shadow: 0 0 0 1px var(--mode-color), 0 0 18px var(--mode-glow), inset 0 0 10px rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 6px var(--mode-glow);
}

.map-item.active:hover {
  transform: translateY(-2px) scale(1.01);
}
/* Touch support: use press state where hover does not exist */
.map-item:active {
  transform: translateY(-1px) scale(1.01);
  background: #212c42;
  border-color: var(--mode-color);
  box-shadow: 0 0 14px var(--mode-glow);
}

@media (hover: none) {
  .map-item:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    text-shadow: none;
  }
  .map-item:active {
    transform: translateY(-1px) scale(1.01);
    border-color: var(--mode-color);
    box-shadow: 0 0 14px var(--mode-glow);
  }
}
/* Preview panel */
.mapsPreview {
  --mode-color: #a855f7;
  --mode-glow: rgba(168, 85, 247, 0.35);
  flex: 1;
  background: linear-gradient(145deg, #111a33, #0a0f26);
  padding: 20px;
  border-radius: 16px;
  height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 2px solid var(--mode-color);
  box-shadow: 0 0 24px var(--mode-glow) inset, 0 0 20px var(--mode-glow);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.mapsPreview h3 {
  margin-bottom: 15px;
  text-shadow: 0 0 10px var(--mode-color);
  transition: text-shadow 0.28s ease;
}
.mapsPreview .status {
  color: var(--mode-color);
  text-shadow: 0 0 10px var(--mode-glow);
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.mapsPreview.mode-knockball {
  --mode-color: #3b82f6;
  --mode-glow: rgba(59, 130, 246, 0.35);
}

.mapsPreview.mode-gemgrab {
  --mode-color: #a855f7;
  --mode-glow: rgba(168, 85, 247, 0.35);
}

.mapsPreview.mode-knockout {
  --mode-color: #fb923c;
  --mode-glow: rgba(251, 146, 60, 0.35);
}

.mapsPreview.mode-heist {
  --mode-color: #ec4899;
  --mode-glow: rgba(236, 72, 153, 0.35);
}

/* Map image */
.mapsPreview .mapImage {
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  display: none;
  margin-bottom: 15px;
  border: 2px solid var(--mode-color);
  box-shadow: 0 0 22px var(--mode-glow), 0 0 42px var(--mode-glow), inset 0 0 14px var(--mode-glow);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, border-radius 0.3s ease, margin-bottom 0.3s ease;
}
.mapsPreview.mode-knockball .mapImage {
  border-color: #3b82f6;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.42), 0 0 46px rgba(59, 130, 246, 0.32), inset 0 0 14px rgba(59, 130, 246, 0.28);
}

.mapsPreview.mode-gemgrab .mapImage {
  border-color: #a855f7;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.42), 0 0 46px rgba(168, 85, 247, 0.32), inset 0 0 14px rgba(168, 85, 247, 0.28);
}

.mapsPreview.mode-knockout .mapImage {
  border-color: #fb923c;
  box-shadow: 0 0 22px rgba(251, 146, 60, 0.42), 0 0 46px rgba(251, 146, 60, 0.32), inset 0 0 14px rgba(251, 146, 60, 0.28);
}

.mapsPreview.mode-heist .mapImage {
  border-color: #ec4899;
  box-shadow: 0 0 22px rgba(236, 72, 153, 0.42), 0 0 46px rgba(236, 72, 153, 0.32), inset 0 0 14px rgba(236, 72, 153, 0.28);
}
/* Scrollbar sidebar */
.mapsList::-webkit-scrollbar {
  width: 6px;
}

.mapsList::-webkit-scrollbar-track {
  background: #111a33;
}

.mapsList::-webkit-scrollbar-thumb {
  background: #00ffff88;
  border-radius: 3px;
}

.mapsList::-webkit-scrollbar-thumb:hover {
  background: #00ffffbb;
}
/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 16px;
  }

  h1 {
    font-size: 2.2em;
  }

  .mapsLayout {
    flex-direction: column;
    gap: 16px;
  }

  .mapsList,
  .mapsPreview {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .mapsList {
    max-height: 320px;
  }

  .mapImage {
    max-width: 100%;
  }
}

/* Phone */
@media (max-width: 640px) {
  .container {
    padding: 12px;
  }

  h1 {
    font-size: 1.8em;
    line-height: 1.2;
  }

  .small {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .description {
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .row {
    margin-bottom: 14px;
  }

  input {
    max-width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .mapsList,
  .mapsPreview {
    padding: 12px;
    border-radius: 12px;
  }

  .mapsList {
    max-height: 240px;
  }

  .map-item {
    padding: 10px;
    font-size: 14px;
  }

  .mapsPreview h3 {
    margin-bottom: 10px;
  }

  .status {
    font-size: 14px;
  }

  .mapImage {
    border-radius: 10px;
    margin-bottom: 10px;
  }
}








