/* Drop Radar */
.radar-page {
  padding: 28px 0 72px;
}

.radar-shell {
  width: min(94vw, 2080px);
  margin-inline: auto;
}

.radar-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(520px, 0.92fr);
  gap: clamp(24px, 2.5vw, 56px);
  align-items: end;
  padding: clamp(30px, 2.5vw, 56px);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 40%, rgba(56, 231, 255, 0.13), transparent 32%),
    radial-gradient(circle at 34% 10%, rgba(255, 77, 221, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(20, 6, 34, 0.94), rgba(7, 2, 12, 0.96));
  border: 1px solid rgba(205, 116, 255, 0.26);
  box-shadow: 0 0 42px rgba(150, 52, 255, 0.2);
}

.radar-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 113, 232, 0.15);
  pointer-events: none;
}

.radar-kicker {
  margin: 0 0 8px;
  color: #ff74e9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.radar-hero h1 {
  margin: 0;
  font-size: clamp(58px, 5vw, 116px);
  line-height: 0.95;
  text-shadow:
    0 0 12px rgba(255,255,255,0.44),
    0 0 32px rgba(165, 72, 255, 0.72),
    7px 0 0 rgba(56, 231, 255, 0.25),
    -7px 0 0 rgba(255, 77, 221, 0.25);
}

.radar-hero-copy p:not(.radar-kicker) {
  max-width: 780px;
  margin: 22px 0 0;
  color: #d2bee8;
  font-size: 18px;
  line-height: 1.8;
}

.radar-hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.radar-hero-status div {
  min-height: 122px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(14, 5, 24, 0.82);
  border: 1px solid rgba(205, 116, 255, 0.24);
}

.radar-hero-status span {
  display: block;
  margin-bottom: 14px;
  color: #bda1da;
  font-size: 13px;
  font-weight: 800;
}

.radar-hero-status strong {
  font-size: clamp(26px, 2vw, 38px);
}

.radar-game-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(720px, 1.45fr) minmax(390px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.radar-board-panel,
.radar-control-panel,
.radar-log-section {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(15, 5, 25, 0.92), rgba(7, 2, 12, 0.96));
  border: 1px solid rgba(205, 116, 255, 0.24);
  box-shadow:
    0 0 42px rgba(150, 52, 255, 0.16),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.radar-board-panel {
  min-height: 850px;
  isolation: isolate;
}

.radar-board-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 113, 232, 0.13);
  z-index: 2;
  pointer-events: none;
}

.radar-city {
  position: absolute;
  bottom: 0;
  width: min(26vw, 480px);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

.radar-city.city-left {
  left: -40px;
}

.radar-city.city-right {
  right: -40px;
  transform: scaleX(-1);
}

.radar-spark {
  position: absolute;
  width: min(22vw, 320px);
  z-index: 1;
  opacity: 0.8;
}

.radar-spark.spark-a {
  right: 6%;
  top: 9%;
  animation: radarFlicker 1.3s infinite;
}

.radar-spark.spark-b {
  left: 9%;
  bottom: 12%;
  transform: rotate(180deg);
  animation: radarFlicker 1.6s infinite 0.2s;
}

.radar-screen {
  position: absolute;
  inset: clamp(28px, 2vw, 42px);
  display: grid;
  place-items: center;
  z-index: 3;
}

.radar-circle {
  position: absolute;
  width: min(74vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(56, 231, 255, 0.06), transparent 64%),
    radial-gradient(circle at center, rgba(255, 77, 221, 0.08), transparent 46%);
  border: 1px solid rgba(145, 241, 255, 0.16);
  box-shadow:
    0 0 70px rgba(56, 231, 255, 0.08),
    inset 0 0 70px rgba(163, 61, 255, 0.12);
}

.radar-ring {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(145, 241, 255, 0.25);
}

.ring-1 { width: 28%; height: 28%; }
.ring-2 { width: 56%; height: 56%; border-color: rgba(255, 116, 233, 0.24); }
.ring-3 { width: 84%; height: 84%; }

.radar-cross {
  position: absolute;
  background: rgba(145, 241, 255, 0.18);
}

.radar-cross.horizontal {
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
}

.radar-cross.vertical {
  top: 5%;
  bottom: 5%;
  left: 50%;
  width: 1px;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(56, 231, 255, 0.0) 0deg, rgba(56, 231, 255, 0.0) 284deg, rgba(56, 231, 255, 0.28) 330deg, rgba(255, 77, 221, 0.52) 358deg, rgba(255, 77, 221, 0) 360deg);
  opacity: 0;
  transform: rotate(0deg);
}

.radar-screen.is-scanning .radar-sweep {
  opacity: 1;
  animation: radarSweep 0.92s linear infinite;
}

.radar-screen.is-scanning.is-overdrive .radar-sweep {
  animation: none;
  filter:
    drop-shadow(0 0 16px rgba(255, 77, 221, .72))
    drop-shadow(0 0 34px rgba(56, 231, 255, .38));
}

.signal-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff74e9;
  box-shadow: 0 0 16px #ff74e9;
  opacity: 0.7;
  animation: signalPulse 1.8s infinite;
}

.dot-1 { left: 64%; top: 34%; }
.dot-2 { left: 31%; top: 68%; animation-delay: 0.4s; background: #91f1ff; box-shadow: 0 0 16px #91f1ff; }
.dot-3 { left: 72%; top: 74%; animation-delay: 0.8s; }

.radar-grid-stack {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.radar-reset-countdown {
  width: min(100%, 766px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 18px;
  padding: 16px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(56, 231, 255, .14), transparent 32%),
    linear-gradient(135deg, rgba(19, 6, 34, .88), rgba(6, 1, 12, .84));
  border: 1px solid rgba(255, 113, 232, .22);
  box-shadow:
    0 0 28px rgba(56, 231, 255, .10),
    inset 0 0 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(5px);
}

.radar-reset-countdown span {
  color: #ff74e9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.radar-reset-countdown strong {
  grid-row: span 2;
  color: #fff0ad;
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 1;
  text-align: right;
  text-shadow:
    0 0 16px rgba(255, 240, 173, .34),
    0 0 28px rgba(255, 77, 221, .18);
  white-space: nowrap;
}

.radar-reset-countdown small {
  color: #bfa8d8;
  font-size: 13px;
  line-height: 1.45;
}

.coordinate-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 142px));
  gap: clamp(10px, 0.9vw, 14px);
  padding: 22px;
  border-radius: 34px;
  background: rgba(5, 1, 10, 0.42);
  border: 1px solid rgba(255, 113, 232, 0.14);
  backdrop-filter: blur(4px);
}

.coordinate-cell {
  aspect-ratio: 1;
  position: relative;
  border: 1px solid rgba(145, 241, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 77, 221, 0.13), transparent 60%),
    rgba(17, 5, 29, 0.88);
  color: #e8d9ff;
  cursor: pointer;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: 0.22s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.coordinate-cell::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 113, 232, 0.12);
}

.coordinate-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 113, 232, 0.58);
  box-shadow: 0 0 22px rgba(255, 77, 221, 0.18);
}

.coordinate-cell.is-selected {
  border-color: rgba(255, 113, 232, 0.95);
  background:
    radial-gradient(circle at center, rgba(255, 77, 221, 0.33), transparent 62%),
    rgba(32, 8, 54, 0.96);
  box-shadow:
    0 0 28px rgba(255, 77, 221, 0.36),
    inset 0 0 20px rgba(255, 77, 221, 0.14);
}

.coordinate-cell.is-detected {
  border-color: rgba(255, 197, 109, 0.95);
  box-shadow:
    0 0 42px rgba(255, 197, 109, 0.3),
    inset 0 0 22px rgba(255, 197, 109, 0.16);
}

.coordinate-cell.is-detected::after {
  content: "USED";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: #ffd58f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.coordinate-cell.is-locked {
  pointer-events: none;
  opacity: 0.68;
}

.coordinate-cell:disabled {
  cursor: not-allowed;
}

.scan-result-card {
  position: absolute;
  z-index: 9;
  width: min(90%, 560px);
  padding: 28px;
  text-align: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 77, 221, 0.20), transparent 36%),
    linear-gradient(180deg, rgba(22, 8, 36, 0.97), rgba(6, 1, 12, 0.98));
  border: 1px solid rgba(255, 113, 232, 0.46);
  box-shadow:
    0 0 72px rgba(255, 77, 221, 0.36),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: 0.42s ease;
}

.scan-result-card.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scan-result-card span {
  display: inline-flex;
  height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #ff87ec;
  background: rgba(255, 77, 221, 0.12);
  border: 1px solid rgba(255, 77, 221, 0.38);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.scan-result-card.legendary span { color: #ffd58f; border-color: rgba(255, 197, 109, 0.42); background: rgba(255, 197, 109, 0.12); }
.scan-result-card.epic span { color: #ff87ec; }
.scan-result-card.rare span { color: #91f1ff; border-color: rgba(56, 231, 255, 0.38); background: rgba(56, 231, 255, 0.1); }
.scan-result-card.normal span { color: #d9c7e9; border-color: rgba(198, 182, 216, 0.24); background: rgba(198, 182, 216, 0.08); }

.scan-result-card img {
  display: block;
  width: min(80%, 360px);
  margin: 16px auto 8px;
  filter:
    drop-shadow(0 0 24px rgba(255, 77, 221, 0.26))
    drop-shadow(0 0 64px rgba(163, 61, 255, 0.38));
}

.scan-result-card h2 {
  margin: 8px 0;
  font-size: clamp(34px, 2.5vw, 58px);
}

.scan-result-card p {
  margin: 0;
  color: #cab4df;
}

.radar-control-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.panel-block {
  padding: 22px;
  border-radius: 26px;
  background: rgba(15, 5, 25, 0.84);
  border: 1px solid rgba(205, 116, 255, 0.20);
}

.selected-coordinate h2 {
  margin: 0 0 8px;
  font-size: clamp(38px, 3vw, 58px);
}

.selected-coordinate span {
  color: #bfa8d8;
}

.jackpot-image {
  min-height: 190px;
  display: grid;
  place-items: center;
}

.jackpot-image img {
  width: min(92%, 260px);
  filter: drop-shadow(0 0 28px rgba(255, 197, 109, 0.18));
}

.today-jackpot h3 {
  margin: 8px 0;
  font-size: 25px;
}

.today-jackpot p {
  margin: 0;
  color: #bfa8d8;
  line-height: 1.65;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(205, 116, 255, 0.18);
}

.price-row span {
  color: #bfa8d8;
  font-weight: 800;
}

.price-row strong {
  font-size: 30px;
}

.probability-strip {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.probability-strip div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.055);
}

.probability-strip b,
.probability-strip span {
  font-size: 13px;
}

.probability-strip .legendary { color: #ffd58f; }
.probability-strip .epic { color: #ff87ec; }
.probability-strip .rare { color: #91f1ff; }
.probability-strip .normal { color: #d9c7e9; }

.scan-button,
.reset-button {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.scan-button {
  background: linear-gradient(135deg, #7920e9, #ff4ddd);
  box-shadow: 0 0 30px rgba(255, 77, 221, 0.28);
}

.scan-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.7);
}

.reset-button {
  margin-top: 10px;
  background: rgba(31, 10, 50, 0.88);
  border: 1px solid rgba(255, 130, 237, 0.28);
}

.mini-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.mini-head h3 {
  margin: 0;
  font-size: 22px;
}

.mini-head span {
  color: #91f1ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.recent-list {
  display: grid;
  gap: 10px;
}

.recent-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(22, 8, 34, 0.82);
  border: 1px solid rgba(205, 116, 255, 0.14);
}

.recent-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.recent-item b {
  display: block;
  font-size: 14px;
}

.recent-item p {
  margin: 4px 0 0;
  color: #a98ec2;
  font-size: 12px;
}

.recent-item span {
  font-size: 12px;
  font-weight: 900;
}

.recent-item.legendary span { color: #ffd58f; }
.recent-item.epic span { color: #ff87ec; }
.recent-item.rare span { color: #91f1ff; }

.radar-log-section {
  margin-top: 28px;
  padding: clamp(24px, 2vw, 38px);
}

.radar-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.radar-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 2.3vw, 48px);
}

.radar-section-head span {
  color: #bfa8d8;
}

.my-scan-log {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.empty-log {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(22, 8, 34, 0.82);
  border: 1px solid rgba(205, 116, 255, 0.16);
  color: #bfa8d8;
}

.log-card {
  min-height: 250px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(163, 61, 255, 0.16), transparent 36%),
    rgba(19, 7, 31, 0.88);
  border: 1px solid rgba(205, 116, 255, 0.20);
}

.log-card.legendary { border-color: rgba(255, 197, 109, 0.50); }
.log-card.epic { border-color: rgba(255, 77, 221, 0.48); }
.log-card.rare { border-color: rgba(56, 231, 255, 0.42); }
.log-card.normal { border-color: rgba(198, 182, 216, 0.22); }

.log-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
}

.log-card h3 {
  margin: 8px 0 6px;
  font-size: 17px;
}

.log-card p {
  margin: 0;
  color: #bfa8d8;
  font-size: 13px;
}

.log-card .coupon-condition {
  margin: -2px 0 8px;
  color: #91f1ff;
  font-weight: 900;
}

.log-card .coupon-expiry {
  margin-top: 7px;
  color: #fff0ad;
  font-weight: 900;
}

.log-card .coupon-expiry-time {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 240, 173, 0.28);
}

.log-card span {
  display: inline-flex;
  margin-top: 10px;
  height: 27px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 900;
}

.log-card.legendary span { color: #ffd58f; }
.log-card.epic span { color: #ff87ec; }
.log-card.rare span { color: #91f1ff; }
.log-card.normal span { color: #d9c7e9; }

@keyframes radarSweep {
  to { transform: rotate(360deg); }
}

@keyframes radarSweepEmergency {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(2520deg); }
}

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

@keyframes radarFlicker {
  0%, 100% { opacity: 0.42; }
  45% { opacity: 1; }
  52% { opacity: 0.26; }
  68% { opacity: 0.88; }
}

@media (max-width: 1480px) {
  .radar-game-layout {
    grid-template-columns: minmax(620px, 1.25fr) minmax(360px, 0.75fr);
  }

  .my-scan-log {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .radar-hero,
  .radar-game-layout {
    grid-template-columns: 1fr;
  }

  .radar-hero-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .radar-board-panel {
    min-height: 760px;
  }

  .radar-control-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-signals {
    grid-column: 1 / -1;
  }

  .my-scan-log {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .radar-page {
    padding-top: 14px;
  }

  .radar-hero,
  .radar-board-panel,
  .radar-control-panel,
  .radar-log-section {
    border-radius: 24px;
  }

  .radar-hero {
    padding: 24px 18px;
  }

  .radar-hero h1 {
    font-size: 50px;
  }

  .radar-hero-status,
  .radar-control-panel,
  .my-scan-log {
    grid-template-columns: 1fr;
  }

  .radar-board-panel {
    min-height: 680px;
  }

  .coordinate-grid {
    grid-template-columns: repeat(5, minmax(58px, 88px));
    padding: 12px;
    gap: 8px;
  }

  .radar-reset-countdown {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px;
  }

  .radar-reset-countdown strong {
    grid-row: auto;
    font-size: 28px;
    text-align: left;
  }

  .coordinate-cell {
    border-radius: 12px;
    font-size: 13px;
  }

  .radar-city {
    display: none;
  }

  .scan-result-card {
    width: 94%;
    padding: 22px;
  }

  .radar-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
