﻿:root {
  --bg: #061012;
  --bg2: #0a1518;
  --panel: rgba(16, 27, 31, 0.82);
  --panel-strong: rgba(20, 33, 38, 0.92);
  --line: rgba(141, 242, 215, 0.23);
  --line-strong: rgba(141, 242, 215, 0.72);
  --text: #f5f7f4;
  --muted: rgba(245, 247, 244, 0.68);
  --muted2: rgba(245, 247, 244, 0.42);
  --aqua: #8df2d7;
  --aqua2: #38d8bf;
  --orange: #ff9f2f;
  --green: #36d399;
  --danger: #ff6b6b;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(141, 242, 215, 0.10), transparent 30rem),
    radial-gradient(circle at 84% 16%, rgba(255, 159, 47, 0.08), transparent 28rem),
    linear-gradient(145deg, #04080a, #071013 54%, #051012);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-linear-gradient(130deg, transparent 0 64px, rgba(255,255,255,0.026) 65px, transparent 67px),
    radial-gradient(circle at 80% 8%, rgba(141, 242, 215, 0.08), transparent 22rem);
  mix-blend-mode: screen;
}


body::before {
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.94;
  background:
    linear-gradient(90deg, rgba(4,8,10,0.34), rgba(4,8,10,0.06) 50%, rgba(4,8,10,0.32)),
    linear-gradient(180deg, rgba(4,8,10,0.03), rgba(4,8,10,0.40)),
    url("../img/launcher/launcher_map_bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(1.36) contrast(1.18) saturate(1.18);
}

.launcher-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 34px clamp(18px, 3.2vw, 56px) 30px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.launcher-header {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 30px;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  width: 175px;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.48));
}

.header-divider {
  width: 1px;
  height: 86px;
  background: rgba(255,255,255,0.40);
}

.header-title h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4.75rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-shadow: 0 10px 22px rgba(0,0,0,0.42);
}

.header-title h1 span {
  color: var(--aqua);
  font-weight: 850;
}

.header-title p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
}

.header-status {
  justify-self: end;
  text-align: right;
}

.location-line {
  color: var(--aqua);
  font-weight: 900;
  font-size: 1.05rem;
}

.region-line {
  color: rgba(255,255,255,0.84);
  margin-top: 3px;
}

.system-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
}

.system-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(54, 211, 153, 0.62);
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.spot-card {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--panel);
  box-shadow: 0 22px 42px var(--shadow);
}

.spot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,8,10,0.10), rgba(4,8,10,0.62) 46%, rgba(4,8,10,0.97)),
    linear-gradient(145deg, rgba(7, 20, 22, 0.10), rgba(0,0,0,0.32)),
    var(--tile-image);
  background-size: cover;
  background-position: var(--tile-position, center);
  background-repeat: no-repeat;
  opacity: 0.96;
}

.spot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 32%, rgba(141,242,215,0.12), transparent 24rem),
    linear-gradient(145deg, transparent, rgba(0,0,0,0.28));
  pointer-events: none;
}

.spot-card.enabled {
  border-color: var(--line-strong);
  box-shadow:
    0 24px 46px var(--shadow),
    0 0 28px rgba(141, 242, 215, 0.17),
    inset 0 0 30px rgba(141, 242, 215, 0.035);
}

.spot-card.disabled {
  filter: saturate(0.38);
}

.spot-card.disabled::before {
  opacity: 0.62;
}

.spot-packery {
  --tile-image: url("../img/launcher/tile_packery_channel.png");
  --tile-position: center;
}

.spot-bobhall {
  --tile-image: url("../img/launcher/tile_bob_hall_pier.png");
  --tile-position: center;
}

.spot-porta {
  --tile-image: url("../img/launcher/tile_port_aransas_jetties.png");
  --tile-position: center;
}

.spot-pins {
  --tile-image: url("../img/launcher/tile_pins.png");
  --tile-position: center;
}

.spot-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
}

.status-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(7, 20, 22, 0.78);
  border: 1px solid rgba(141,242,215,0.38);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(54, 211, 153, 0.62);
}

.spot-icon {
  width: 78px;
  height: 78px;
  margin-top: auto;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(18, 214, 192, 0.12);
  border: 1px solid rgba(141,242,215,0.44);
  color: var(--aqua2);
  font-size: 2.2rem;
  box-shadow:
    0 0 18px rgba(141, 242, 215, 0.15),
    inset 0 0 22px rgba(141, 242, 215, 0.06);
}

.spot-card.disabled .spot-icon {
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.055);
  box-shadow: none;
}

.spot-name {
  margin: 0;
  color: white;
  font-size: clamp(1.7rem, 2.1vw, 2.35rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.spot-card.disabled .spot-name {
  color: rgba(255,255,255,0.46);
}

.spot-type {
  margin-top: 9px;
  color: var(--aqua);
  font-size: 1rem;
  font-weight: 750;
}

.spot-description {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.17);
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  font-size: 0.98rem;
}

.spot-card.disabled .spot-description,
.spot-card.disabled .spot-type {
  color: rgba(255,255,255,0.48);
}

.tile-button {
  width: 100%;
  margin-top: auto;
  min-height: 58px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #061012;
  background: linear-gradient(180deg, #8df2d7, #56d7c1);
  box-shadow:
    0 12px 22px rgba(141, 242, 215, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.36);
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.tile-button.disabled {
  cursor: not-allowed;
  color: rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
}

.coming-ribbon {
  position: absolute;
  z-index: 3;
  top: 32px;
  right: -60px;
  width: 230px;
  padding: 10px 0;
  transform: rotate(45deg);
  text-align: center;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  background: rgba(12, 22, 26, 0.74);
  box-shadow: 0 18px 34px rgba(0,0,0,0.30);
}

.feature-item {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.11);
}

.feature-item:last-child {
  border-right: 0;
}

.feature-icon {
  color: var(--aqua2);
  font-size: 2rem;
}

.feature-title {
  color: white;
  font-weight: 850;
  font-size: 1rem;
}

.feature-text {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.launcher-footer {
  color: rgba(255,255,255,0.46);
  text-align: center;
  font-size: 0.94rem;
}

.progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(141,242,215,0.13), transparent 24rem),
    rgba(2, 7, 9, 0.82);
  backdrop-filter: blur(12px);
}

.progress-overlay.active {
  display: grid;
}

.progress-modal {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(13, 25, 29, 0.94);
  border: 1px solid rgba(141,242,215,0.28);
  box-shadow:
    0 24px 58px rgba(0,0,0,0.50),
    inset 0 0 28px rgba(141,242,215,0.035);
  text-align: center;
}

.progress-ring {
  width: 158px;
  height: 158px;
  margin: 0 auto 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--aqua) 0deg, rgba(255,255,255,0.10) 0deg);
  box-shadow: 0 0 26px rgba(141,242,215,0.18);
}

.progress-ring-inner {
  width: 124px;
  height: 124px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #081216;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 2rem;
  font-weight: 950;
}

.progress-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.progress-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.progress-phase {
  margin-top: 22px;
  min-height: 26px;
  color: var(--aqua);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-actions {
  margin-top: 24px;
  display: none;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.progress-actions.active {
  display: flex;
}

.modal-button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(141,242,215,0.28);
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  color: white;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.modal-button.primary {
  background: linear-gradient(180deg, #8df2d7, #56d7c1);
  color: #061012;
  border: 0;
}


/* Background visibility tuning */
@media (min-width: 1201px) {
  .spot-grid {
    margin-top: 64px;
  }

  .launcher-header,
  .feature-strip {
    background-color: rgba(6, 14, 16, 0.58);
    backdrop-filter: blur(8px);
  }
}




.progress-modal.progress-cached {
  border-color: rgba(141, 242, 215, 0.46);
  box-shadow:
    0 24px 58px rgba(0,0,0,0.50),
    0 0 34px rgba(141,242,215,0.12),
    inset 0 0 28px rgba(141,242,215,0.055);
}

.progress-modal.progress-cached .progress-phase {
  color: var(--aqua);
}

.progress-modal.progress-error {
  border-color: rgba(255, 107, 107, 0.48);
  box-shadow:
    0 24px 58px rgba(0,0,0,0.50),
    0 0 34px rgba(255,107,107,0.12),
    inset 0 0 28px rgba(255,107,107,0.045);
}

.progress-modal.progress-error .progress-ring {
  background: conic-gradient(var(--danger) 360deg, rgba(255,255,255,0.10) 0deg) !important;
  box-shadow: 0 0 26px rgba(255,107,107,0.18);
}

.progress-modal.progress-error .progress-phase {
  color: var(--danger);
}

.progress-error-detail {
  margin: 18px auto 0;
  max-width: 420px;
  max-height: 135px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 107, 107, 0.10);
  border: 1px solid rgba(255, 107, 107, 0.24);
  color: rgba(255,255,255,0.82);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
  white-space: pre-wrap;
}

.progress-error-detail[hidden] {
  display: none;
}


.progress-modal.progress-waiting {
  border-color: rgba(255, 214, 128, 0.42);
  box-shadow:
    0 24px 58px rgba(0,0,0,0.50),
    0 0 34px rgba(255,214,128,0.12),
    inset 0 0 28px rgba(255,214,128,0.045);
}

.progress-modal.progress-waiting .progress-ring {
  background: conic-gradient(var(--warning) 360deg, rgba(255,255,255,0.10) 0deg) !important;
  box-shadow: 0 0 26px rgba(255,214,128,0.16);
}

.progress-modal.progress-waiting .progress-phase {
  color: var(--warning);
}

@media (max-width: 1200px) {
  .launcher-header {
    grid-template-columns: 170px 1fr;
  }

  .header-status {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .brand-logo {
    width: 145px;
  }

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

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-item:nth-child(2) {
    border-right: 0;
  }

  .feature-item:nth-child(1),
  .feature-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.11);
  }
}

@media (max-width: 720px) {
  .launcher-page {
    padding: 22px 15px 24px;
    gap: 22px;
  }

  .launcher-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand-lockup {
    justify-content: space-between;
  }

  .header-divider {
    display: none;
  }

  .brand-logo {
    width: 142px;
  }

  .header-title h1 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .header-title p {
    font-size: 1rem;
  }

  .spot-grid {
    grid-template-columns: 1fr;
  }

  .spot-card {
    min-height: 430px;
  }

  .spot-content {
    padding: 24px 22px;
  }

  .spot-icon {
    width: 66px;
    height: 66px;
    font-size: 1.9rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.11);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }
}

