:root {
  color-scheme: dark;
  --background: #020008;
  --surface: #060314;
  --surface-card: #0c081f;
  --surface-raised: #151342;
  --primary: #a855f7;
  --primary-deep: #351f8b;
  --secondary: #f8c84b;
  --secondary-deep: #b86a08;
  --text: #f8fbff;
  --muted: rgba(218, 226, 255, 0.74);
  --line: rgba(168, 85, 247, 0.28);
  --line-gold: rgba(248, 200, 75, 0.26);
  --danger: #ff6b6b;
  --page-bg:
    radial-gradient(circle at 9% 7%, rgba(168, 85, 247, 0.36), transparent 24rem),
    radial-gradient(circle at 92% 9%, rgba(217, 70, 239, 0.3), transparent 23rem),
    radial-gradient(circle at 52% 12%, rgba(14, 165, 233, 0.18), transparent 32rem),
    linear-gradient(180deg, #030615 0%, #050012 42%, #020008 100%);
  --gold-button:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 230, 0.86) 0%, transparent 20%),
    linear-gradient(180deg, #fff1a8 0%, #f8c84b 30%, #b86a08 74%, #5b2500 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--text);
  font-family: Lato, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
  pointer-events: none;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 40px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

.brand-title {
  margin: 0;
  font-family: "Rubik One", Impact, sans-serif;
  font-size: clamp(1.42rem, 3.8vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.brand-title span {
  opacity: 0.72;
}

.brand-subtitle,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.top-chips {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.chip {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(12, 7, 35, 0.82);
  padding: 0 18px;
  color: var(--text);
  font-family: "Rubik One", Impact, sans-serif;
  font-size: 0.9rem;
  box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.08), 0 10px 28px rgba(0, 0, 0, 0.38);
}

.chip-star span {
  color: var(--secondary);
  filter: drop-shadow(0 0 8px rgba(248, 200, 75, 0.6));
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 20%, rgba(168, 85, 247, 0.34), transparent 28rem),
    linear-gradient(135deg, rgba(12, 17, 43, 0.96) 0%, rgba(6, 3, 20, 0.98) 58%, rgba(43, 24, 88, 0.82) 100%);
  box-shadow:
    inset 0 0 40px rgba(168, 85, 247, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.48);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

h1,
h2 {
  margin: 0;
  font-family: "Rubik One", Impact, sans-serif;
  text-transform: uppercase;
}

h1 {
  margin-top: 10px;
  font-size: clamp(4.2rem, 9.2vw, 8.4rem);
  line-height: 0.86;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.62);
}

h2 {
  font-size: clamp(1.48rem, 3vw, 2rem);
  line-height: 1;
}

.hero-text {
  max-width: 440px;
  margin: 28px 0 0;
  color: rgba(248, 251, 255, 0.68);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.status-dock {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  width: min(100%, 500px);
  min-height: 82px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(248, 200, 75, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(248, 200, 75, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(12, 7, 35, 0.88);
  padding: 12px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(168, 85, 247, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.status-dock::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #fff1a8, var(--secondary), var(--secondary-deep));
  box-shadow: 0 0 18px rgba(248, 200, 75, 0.58);
}

.state-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(248, 200, 75, 0.22), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(248, 200, 75, 0.24);
}

.state-mark span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 8px rgba(248, 200, 75, 0.12), 0 0 18px rgba(248, 200, 75, 0.55);
  animation: pulse 1.7s ease-in-out infinite;
}

.state-copy {
  min-width: 0;
}

.state-kicker {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.state-copy strong,
.state-copy em {
  display: block;
}

.state-copy strong {
  color: var(--text);
  font-family: "Rubik One", Impact, sans-serif;
  font-size: clamp(0.86rem, 1.35vw, 1rem);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

.state-copy em {
  margin-top: 5px;
  color: rgba(218, 226, 255, 0.66);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.35;
}

.mini-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mini-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.52);
  animation: meterDrift 2.8s ease-in-out infinite;
}

.dot-field {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  mask-image: linear-gradient(to right, transparent 8%, black 52%, transparent 100%);
  pointer-events: none;
}

.dot-purple {
  background-image: radial-gradient(circle, rgba(168, 85, 247, 0.52) 1.7px, transparent 1.8px);
  opacity: 0.28;
}

.dot-gold {
  background-image: radial-gradient(circle, rgba(248, 200, 75, 0.52) 1.7px, transparent 1.8px);
  opacity: 0.18;
}

.bridge-stage {
  position: relative;
  min-height: 520px;
}

#bridge-canvas {
  position: absolute;
  inset: 9% 3% auto auto;
  width: min(520px, 88%);
  height: 340px;
  opacity: 0.92;
}

.stage-asset {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.72));
}

.dart-asset {
  right: 10%;
  top: 12%;
  width: min(320px, 50%);
  animation: floatA 5s ease-in-out infinite;
}

.trophy-asset {
  right: 30%;
  bottom: 2%;
  width: min(245px, 42%);
  animation: floatB 5.8s ease-in-out infinite;
}

.status-band,
.info-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.status-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-band article,
.info-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%),
    rgba(12, 7, 35, 0.76);
  padding: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.status-band span,
.address-list dt {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.status-band strong {
  display: block;
  margin-top: 8px;
  font-family: "Rubik One", Impact, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

.info-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.info-panel {
  min-height: 250px;
  padding: clamp(22px, 4vw, 34px);
}

.qa-panel {
  border-color: var(--line-gold);
}

.info-panel p:not(.section-label) {
  max-width: 680px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 1rem;
  line-height: 1.7;
}

.address-list {
  margin: 22px 0 0;
}

.address-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.address-list dd {
  margin: 0;
  color: #c084fc;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

@keyframes pulse {
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 12px rgba(248, 200, 75, 0.08), 0 0 18px rgba(248, 200, 75, 0.54);
  }
}

@keyframes meterDrift {
  50% {
    width: 72%;
    filter: brightness(1.18);
  }
}

@keyframes floatA {
  50% {
    transform: translate3d(0, -12px, 0) rotate(2deg);
  }
}

@keyframes floatB {
  50% {
    transform: translate3d(0, 10px, 0) rotate(-1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100vw - 20px, 620px);
    padding-top: 12px;
  }

  .brand-bar {
    align-items: flex-start;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .top-chips {
    flex-direction: column;
    gap: 8px;
  }

  .chip {
    min-height: 38px;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 28px;
  }

  .hero-copy {
    min-height: 420px;
    justify-content: flex-start;
    padding: 28px;
  }

  .bridge-stage {
    min-height: 280px;
    margin-top: -130px;
  }

  #bridge-canvas {
    inset: 0 -18% auto auto;
    width: 520px;
    max-width: none;
  }

  .dart-asset {
    right: 4%;
    top: 4%;
    width: 210px;
  }

  .trophy-asset {
    right: 42%;
    bottom: 0;
    width: 168px;
  }

  .status-band,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .address-list div {
    display: block;
  }

  .address-list dd {
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 1.18rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .top-chips {
    display: none;
  }

  h1 {
    font-size: clamp(3.3rem, 16vw, 4.8rem);
  }

  .hero-copy {
    min-height: 390px;
  }

  .status-dock {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .mini-meter {
    grid-column: 1 / -1;
    width: 100%;
  }

  .status-band {
    grid-template-columns: 1fr;
  }
}
