/* Star Rush is an observatory: an electric Spark meter over machine
   missions, a daily gift, and a gold-railed ascent. The destination shell
   owns the viewport, title and close control. */
#rush-sheet.destination-screen {
  --rush-night: #060e25;
  --rush-indigo: #16274d;
  --rush-teal: #103f4b;
  --rush-glass: #0b203b;
  --rush-ice: #99f3ef;
  --rush-star: rgba(214, 243, 255, 0.58);
  --rush-nebula: rgba(32, 185, 185, 0.14);
  --rush-orbit: rgba(123, 230, 230, 0.12);
  --rush-rail: rgba(241, 199, 103, 0.48);
}

#rush-sheet.destination-screen .rush-panel {
  gap: 14px;
  background:
    radial-gradient(ellipse at 78% 29%, var(--rush-nebula), transparent 43%),
    radial-gradient(1px 1px at 16% 18%, var(--rush-star) 95%, transparent),
    radial-gradient(1px 1px at 79% 8%, var(--rush-star) 95%, transparent),
    radial-gradient(1.5px 1.5px at 44% 39%, var(--rush-star) 95%, transparent),
    radial-gradient(1px 1px at 92% 65%, var(--rush-star) 95%, transparent),
    radial-gradient(1px 1px at 25% 81%, var(--rush-star) 95%, transparent),
    linear-gradient(150deg, var(--rush-indigo), var(--rush-night) 56%, var(--rush-teal));
  background-size: auto, 159px 197px, 229px 233px, 293px 337px, 173px 249px, 199px 311px, auto;
  background-color: var(--rush-night);
}

#rush-sheet.destination-screen .sheet-title {
  letter-spacing: 0.12em;
}

/* A large Spark set into the end of the black glass, rather than a row
   of small status chips. The weekly clock sits underneath the meter. */
#rush-sheet.destination-screen .rush-head {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 4px 2px 0;
}

#rush-sheet.destination-screen .rush-meter {
  flex: none;
  height: 54px;
}

#rush-sheet.destination-screen .rush-meter-mark {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 18px var(--neon-cyan));
}

#rush-sheet.destination-screen .rush-meter-bar {
  height: 33px;
  margin: 0 18px 0 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rush-night), var(--rush-glass));
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7), inset 0 -1px 0 var(--rush-ice), 0 0 0 1px var(--gold-deep);
}

#rush-sheet.destination-screen .rush-meter-fill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 45%, rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, var(--neon-pink), var(--magenta) 48%, var(--neon-cyan));
}

#rush-sheet.destination-screen .rush-meter-text {
  left: 54px;
  right: 36px;
  font-size: 1rem;
  letter-spacing: 0.07em;
}

#rush-sheet.destination-screen .rush-meter-tier {
  width: 39px;
  height: 39px;
  font-size: 1.05rem;
}

#rush-sheet.destination-screen .rush-meter-boost {
  left: 25px;
  top: -3px;
  bottom: auto;
  min-width: 27px;
  height: 20px;
  font-size: 0.75rem;
  line-height: 18px;
  text-align: center;
}

#rush-sheet.destination-screen .rush-timer {
  align-self: flex-end;
  margin: 0;
  padding: 3px 8px;
  background: var(--rush-night);
  font-size: 0.75rem;
}

/* Cabinet selector keys: the active tab is lit cyan glass with a gold
   underline. They remain 44px tall on the shortest phone. */
#rush-sheet.destination-screen .rush-tabs { gap: 5px; }

#rush-sheet.destination-screen .rush-tab {
  min-height: 48px;
  border: 1px solid var(--rush-orbit);
  border-bottom: 3px solid var(--gold-deep);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rush-indigo), var(--rush-night));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 0 rgba(0, 0, 0, 0.4);
}

#rush-sheet.destination-screen .rush-tab.active {
  color: var(--text);
  border-color: var(--rush-ice);
  border-bottom-color: var(--gold-light);
  background: linear-gradient(180deg, var(--rush-teal), var(--rush-glass));
}

#rush-sheet.destination-screen .rush-tab-label {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 #000;
}

#rush-sheet.destination-screen .rush-tab.active .rush-tab-label { color: var(--rush-ice); text-shadow: 0 1px 0 #000; }
#rush-sheet.destination-screen .rush-tab .rush-tab-count { top: -5px; right: -3px; }

#rush-sheet.destination-screen .rush-page {
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}

#rush-sheet.destination-screen .rush-page-timer {
  align-self: flex-start;
  margin: 1px 0 0;
  padding: 4px 8px;
  font-size: 0.75rem;
  background: var(--rush-night);
}

/* Mission portraits make the board feel like a walk along the machines.
   Ledger lines stay unframed; only the PLAY/CLAIM keys have a rim. */
#rush-sheet.destination-screen .rush-mission {
  grid-template-columns: 70px minmax(0, 1fr) 76px;
  min-height: 110px;
  gap: 10px;
  padding: 12px 0;
  border-bottom-color: var(--rush-rail);
}

#rush-sheet.destination-screen .rush-mission-art {
  width: 70px;
  height: 90px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  object-position: 50% 18%;
  box-shadow: 0 0 0 1px var(--gold-deep), 0 5px 8px rgba(0, 0, 0, 0.4);
}

#rush-sheet.destination-screen .rush-mission-body { gap: 9px; }
#rush-sheet.destination-screen .rush-mission-text { font-size: 0.95rem; line-height: 1.25; letter-spacing: 0.035em; }
#rush-sheet.destination-screen .rush-mission-meter { gap: 5px; }
#rush-sheet.destination-screen .rush-mission-pct { min-width: 30px; font-size: 0.8rem; color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-mission-bet { flex-wrap: wrap; gap: 4px; }
#rush-sheet.destination-screen .rush-mission-bet-name { font-size: 0.7rem; }
#rush-sheet.destination-screen .rush-mission-bet-coins { font-size: 0.82rem; }
#rush-sheet.destination-screen .rush-mission-side { gap: 9px; }
#rush-sheet.destination-screen .rush-reward { justify-content: center; gap: 5px; }
#rush-sheet.destination-screen .rush-reward-mark { width: 20px; height: 20px; }
#rush-sheet.destination-screen .rush-reward-text { font-size: 1.1rem; }
#rush-sheet.destination-screen .rush-key { min-height: 44px; border-radius: 5px; }
#rush-sheet.destination-screen .rush-key-label { font-size: 1rem; }

#rush-sheet.destination-screen .rush-bar {
  height: 9px;
  border-radius: 3px;
  background: var(--rush-night);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.75), 0 1px 0 var(--rush-orbit);
  filter: none;
}

#rush-sheet.destination-screen .rush-bar-fill {
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rush-ice), var(--neon-cyan) 42%, var(--rush-teal));
}

#rush-sheet.destination-screen .rush-mission.done .rush-bar-fill,
#rush-sheet.destination-screen .rush-mission.claimed .rush-bar-fill,
#rush-sheet.destination-screen .rush-task.done .rush-bar-fill {
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
}

/* The daily gift has its own stage. No reward cards surround it. */
#rush-sheet.destination-screen .rush-gift {
  position: relative;
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  min-height: 112px;
  padding: 12px 0 16px;
  gap: 10px;
  border-bottom-color: var(--rush-rail);
}

#rush-sheet.destination-screen .rush-gift-art {
  width: 82px;
  height: 80px;
  background: radial-gradient(ellipse, var(--rush-nebula), transparent 70%);
}

#rush-sheet.destination-screen .rush-gift-art .chest { width: 70px; height: 52px; transform: rotate(-7deg); }
#rush-sheet.destination-screen .rush-gift-art .chest::after { width: 16px; height: 16px; margin-left: -8px; }
#rush-sheet.destination-screen .rush-gift-name { font-size: 1.5rem; letter-spacing: 0.08em; }
#rush-sheet.destination-screen .rush-gift-text { font-size: 0.8125rem; line-height: 1.35; }
#rush-sheet.destination-screen .rush-gift-body { gap: 6px; }
#rush-sheet.destination-screen .rush-gift-open { min-height: 52px; border-radius: 5px; }

#rush-sheet.destination-screen .rush-task {
  grid-template-columns: 30px minmax(0, 1fr) 65px;
  min-height: 68px;
  gap: 11px;
  padding: 10px 0;
  border-bottom-color: var(--rush-orbit);
}

#rush-sheet.destination-screen .rush-task-icon { width: 28px; height: 28px; color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-task-text { font-size: 0.9rem; }
#rush-sheet.destination-screen .rush-task-body { gap: 8px; }
#rush-sheet.destination-screen .rush-task-count { font-size: 0.75rem; color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-week { margin-top: auto; padding: 16px 0 8px; gap: 12px; }
#rush-sheet.destination-screen .rush-week-name { color: var(--gold-light); font-size: 0.95rem; }
#rush-sheet.destination-screen .rush-week-timer { padding: 3px 6px; background: var(--rush-night); font-size: 0.75rem; }
#rush-sheet.destination-screen .rush-week-steps { gap: 3px; }
#rush-sheet.destination-screen .rush-step {
  gap: 5px;
  padding: 7px 1px;
  background: none;
  clip-path: none;
  box-shadow: inset 0 -2px 0 var(--rush-orbit);
}

#rush-sheet.destination-screen .rush-step.done { background: none; box-shadow: inset 0 -3px 0 var(--gold); }
#rush-sheet.destination-screen .rush-step.next { background: none; box-shadow: inset 0 -3px 0 var(--neon-cyan); }
#rush-sheet.destination-screen .rush-step-day { font-size: 0.75rem; }
#rush-sheet.destination-screen .rush-step.next .rush-step-day { color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-step-mark { height: 22px; }
#rush-sheet.destination-screen .rush-step-coins { font-size: 0.75rem; }
#rush-sheet.destination-screen .rush-week-ready { padding-top: 5px; grid-template-columns: 28px minmax(0, 1fr) 96px; }
#rush-sheet.destination-screen .rush-week-ready-coins { font-size: 1.05rem; white-space: normal; }
#rush-sheet.destination-screen .rush-week-collect { min-height: 48px; border-radius: 5px; font-size: 1rem; }

/* The prize tower is an actual ascent, with broad gem ribbons laid across
   tall gold uprights and a stepped eave beneath each prize. It scrolls
   independently so the active tier can remain centred by the renderer. */
#rush-sheet.destination-screen .rush-boosters { flex: none; padding-bottom: 6px; border-bottom: 1px solid var(--rush-rail); }
#rush-sheet.destination-screen .rush-booster { grid-template-columns: 38px minmax(0, 1fr) 92px; min-height: 52px; gap: 9px; }
#rush-sheet.destination-screen .rush-booster + .rush-booster { border-top-color: var(--rush-orbit); }
#rush-sheet.destination-screen .rush-booster-mark { width: 38px; height: 38px; }
#rush-sheet.destination-screen .rush-booster-name { font-size: 0.88rem; }
#rush-sheet.destination-screen .rush-booster-state { font-size: 0.72rem; }
#rush-sheet.destination-screen .rush-boost-buy { min-height: 44px; border-radius: 5px; font-size: 1rem; }

#rush-sheet.destination-screen #rush-tower .rush-tower-list {
  gap: 8px;
  padding: 12px 11px 22px;
  background:
    linear-gradient(90deg, transparent 7px, var(--rush-rail) 7px 9px, transparent 9px calc(100% - 9px), var(--rush-rail) calc(100% - 9px) calc(100% - 7px), transparent calc(100% - 7px)),
    radial-gradient(ellipse at 50% 45%, var(--rush-nebula), transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 10px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 10px), transparent);
}

#rush-sheet.destination-screen .rush-tier {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 31px minmax(30px, auto);
  gap: 6px 8px;
  min-height: 90px;
  padding: 4px 8px 14px;
}

#rush-sheet.destination-screen .rush-tier::before {
  left: -7px;
  right: -7px;
  bottom: 2px;
  height: 9px;
  background: var(--gold-rim);
  opacity: 1;
  clip-path: polygon(0 0, 6% 43%, 94% 43%, 100% 0, 98% 73%, 92% 100%, 8% 100%, 2% 73%);
}

#rush-sheet.destination-screen .rush-tier .spire-ribbon {
  grid-column: 1 / -1;
  justify-self: center;
  width: 160px;
  height: 31px;
}

#rush-sheet.destination-screen .rush-tier .spire-ribbon-name { font-size: 1rem; letter-spacing: 0.12em; }
#rush-sheet.destination-screen .rush-tier-need { height: auto; min-height: 30px; padding: 0; justify-content: flex-start; gap: 6px; border-radius: 3px; }
#rush-sheet.destination-screen .rush-tier-text { font-size: 0.95rem; color: var(--rush-ice); }
#rush-sheet.destination-screen .rush-tier-mark { width: 20px; height: 20px; }
#rush-sheet.destination-screen .rush-tier .spire-prize { justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
#rush-sheet.destination-screen .rush-tier .spire-prize-coins { font-size: 1.35rem; letter-spacing: 0.04em; }
#rush-sheet.destination-screen .rush-tier .spire-coin { width: 19px; height: 19px; }
#rush-sheet.destination-screen .rush-tier .spire-planet { width: 20px; height: 20px; font-size: 20px; }
#rush-sheet.destination-screen .rush-tier .rush-tier-boost { font-size: 0.8rem; }

#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-need {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 4px 6px;
  background: var(--rush-glass);
  box-shadow: 0 0 18px var(--rush-nebula), inset 0 0 0 1px var(--rush-ice);
}

#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-bar { grid-column: 1 / -1; grid-row: 2; width: 100%; }
#rush-sheet.destination-screen .rush-tier.climbing .rush-tier-text { font-size: 0.8rem; text-align: right; }
#rush-sheet.destination-screen .rush-tier.climbing .rush-you { padding: 2px 4px; font-size: 0.7rem; }
#rush-sheet.destination-screen .rush-tier.vault { min-height: 108px; }
#rush-sheet.destination-screen .rush-tier.vault .spire-ribbon { width: 200px; height: 34px; }
#rush-sheet.destination-screen .rush-tier.vault .spire-ribbon-name { font-size: 1.2rem; }
#rush-sheet.destination-screen .rush-tier.vault .spire-prize-coins { font-size: 1.6rem; }

@media (max-height: 720px) and (max-width: 759px) {
  #rush-sheet.destination-screen .rush-panel { gap: 9px; }
  #rush-sheet.destination-screen .rush-head { gap: 4px; padding-top: 0; }
  #rush-sheet.destination-screen .rush-meter { height: 46px; }
  #rush-sheet.destination-screen .rush-meter-mark { width: 44px; height: 44px; }
  #rush-sheet.destination-screen .rush-meter-text { left: 46px; font-size: 0.9rem; }
  #rush-sheet.destination-screen .rush-tab { min-height: 44px; }
  #rush-sheet.destination-screen .rush-page { gap: 5px; }
  #rush-sheet.destination-screen .rush-mission { min-height: 96px; padding: 9px 0; }
  #rush-sheet.destination-screen .rush-mission-art { height: 78px; }
  #rush-sheet.destination-screen .rush-mission-body { gap: 6px; }
  #rush-sheet.destination-screen .rush-gift { min-height: 94px; padding: 6px 0 10px; }
  #rush-sheet.destination-screen .rush-task { min-height: 60px; padding: 8px 0; }
  #rush-sheet.destination-screen .rush-week { padding-top: 10px; gap: 8px; }
  #rush-sheet.destination-screen .rush-booster { min-height: 49px; }
}

@media (min-width: 760px) {
  #rush-sheet.destination-screen .rush-panel { gap: 12px; }
  #rush-sheet.destination-screen .rush-head,
  #rush-sheet.destination-screen .rush-tabs { width: min(760px, 100%); align-self: center; }
  #rush-sheet.destination-screen .rush-head { flex-direction: row; align-items: center; }
  #rush-sheet.destination-screen .rush-meter { flex: 1; }
  #rush-sheet.destination-screen .rush-timer { align-self: center; }
  #rush-sheet.destination-screen .rush-page { width: min(1000px, 100%); align-self: center; }
  #rush-sheet.destination-screen #rush-mission-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  #rush-sheet.destination-screen .rush-mission { grid-template-columns: 72px minmax(0, 1fr); padding: 12px 0; align-items: start; }
  #rush-sheet.destination-screen .rush-mission-art { grid-row: 1 / 3; width: 72px; height: 126px; }
  #rush-sheet.destination-screen .rush-mission-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  #rush-sheet.destination-screen .rush-key { min-width: 84px; }
  #rush-sheet.destination-screen #rush-daily { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 12px 36px; }
  #rush-sheet.destination-screen #rush-daily[hidden] { display: none; }
  #rush-sheet.destination-screen .rush-gift { grid-column: 1; }
  #rush-sheet.destination-screen #rush-task-list { grid-column: 2; grid-row: 1 / 3; }
  #rush-sheet.destination-screen .rush-week { grid-column: 1; margin-top: 0; }
  #rush-sheet.destination-screen #rush-tower { width: min(760px, 100%); }
  #rush-sheet.destination-screen .rush-boosters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  #rush-sheet.destination-screen .rush-booster + .rush-booster { border-top: 0; }
  #rush-sheet.destination-screen #rush-tower .rush-tower-list { padding-left: 20px; padding-right: 20px; }
  #rush-sheet.destination-screen .rush-tier { padding-left: 70px; padding-right: 70px; }
}
