.nospill-page {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #030404 0%, #0b0d0e 52%, #030404 100%);
  color: #f4f7ef;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.nospill-page button,
.nospill-page input,
.nospill-page select {
  font: inherit;
}

.nospill-page code {
  color: #f7e4b8;
}

.nospill-app {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(90deg, rgba(244, 247, 239, 0.045), transparent 34%, rgba(244, 247, 239, 0.03)),
    #090b0b;
}

.nospill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 2px 18px;
}

.nospill-surface-nav {
  display: flex;
  flex: 1 1 260px;
  justify-content: flex-end;
  gap: 8px;
}

.nospill-surface-nav button {
  border: 1px solid rgba(244, 247, 239, 0.14);
  border-radius: 999px;
  padding: 9px 11px;
  color: #bbc7c0;
  background: rgba(244, 247, 239, 0.04);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.nospill-surface-nav button.is-active {
  border-color: rgba(85, 217, 138, 0.54);
  color: #06100b;
  background: #55d98a;
}

.nospill-surface-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.nospill-header h1,
.nospill-hero-copy h2,
.nospill-panel h2,
.nospill-panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.nospill-header h1 {
  font-size: 1.55rem;
  line-height: 1.05;
}

.nospill-kicker {
  margin: 0 0 7px;
  color: #9ee9bf;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nospill-water-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(110, 198, 255, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #101516;
}

.nospill-water-mark span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(110, 198, 255, 0.96) 0 54%, rgba(85, 217, 138, 0.92) 55% 100%);
  box-shadow: 0 0 20px rgba(110, 198, 255, 0.26);
}

.nospill-panel {
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(244, 247, 239, 0.06), transparent 32%),
    #101516;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.nospill-landing,
.nospill-run,
.nospill-summary {
  display: grid;
  gap: 18px;
}

.nospill-brand-hero {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(244, 247, 239, 0.08), transparent 36%),
    repeating-linear-gradient(135deg, rgba(244, 247, 239, 0.04) 0 2px, transparent 2px 18px),
    #050606;
}

.nospill-hero-art {
  order: 2;
  display: grid;
  place-items: center;
  min-height: 118px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f7ef;
}

.nospill-hero-art img {
  width: min(56%, 220px);
  height: auto;
  display: block;
}

.nospill-hero-fallback {
  display: grid;
  place-items: center;
  width: min(56%, 220px);
  aspect-ratio: 1;
  border: 2px solid #111;
  border-radius: 8px;
  color: #111;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.nospill-hero-fallback[hidden] {
  display: none;
}

.nospill-hero-copy {
  order: 1;
}

.nospill-hero-copy h2,
.nospill-panel h2 {
  font-size: 1.9rem;
  line-height: 1.04;
}

.nospill-brand-hero .nospill-hero-copy h2 {
  max-width: 10ch;
  color: #ffffff;
  font-size: 2.55rem;
  line-height: 0.94;
  text-transform: uppercase;
}

.nospill-hero-copy p,
.nospill-section p,
.nospill-note,
.nospill-status,
.nospill-mode-copy {
  color: #bbc7c0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.nospill-hero-copy p {
  margin: 9px 0 0;
}

.nospill-hero-tagline {
  color: #f4f7ef !important;
  font-weight: 900;
  text-transform: uppercase;
}

.nospill-hero-safety {
  padding-top: 12px;
  border-top: 1px solid rgba(244, 247, 239, 0.13);
}

.nospill-hero-actions,
.nospill-step-grid,
.nospill-safety-strip,
.nospill-setup {
  display: grid;
  gap: 10px;
}

.nospill-hero-actions {
  margin-top: 16px;
}

.nospill-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.nospill-inline-ledger {
  display: inline;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #edf2e9;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  vertical-align: middle;
}

.nospill-section {
  display: grid;
  gap: 12px;
}

.nospill-section h3 {
  font-size: 0.92rem;
  line-height: 1.25;
  color: #f4f7ef;
}

.nospill-how,
.nospill-merch-preview,
.nospill-discord-panel,
.nospill-game-dashboard,
.nospill-delivery-log,
.nospill-tofu-shop,
.nospill-collection,
.nospill-progress-tools,
.nospill-safety-strip {
  padding: 14px;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  background: rgba(5, 6, 6, 0.72);
}

.nospill-how h3,
.nospill-merch-preview h3,
.nospill-discord-panel h3,
.nospill-game-dashboard h3,
.nospill-delivery-log h3,
.nospill-tofu-shop h3,
.nospill-collection h3 {
  font-size: 1.2rem;
}

.nospill-game-dashboard {
  border-color: rgba(85, 217, 138, 0.32);
  background:
    linear-gradient(180deg, rgba(85, 217, 138, 0.08), transparent 38%),
    rgba(5, 6, 6, 0.82);
}

.nospill-game-head,
.nospill-game-grid,
.nospill-game-mission-card,
.nospill-next-action-card,
.nospill-passport-preview,
.nospill-game-passport,
.nospill-game-shop-action {
  display: grid;
  gap: 10px;
}

.nospill-game-head {
  gap: 12px;
}

.nospill-next-action-buttons {
  display: grid;
  gap: 8px;
}

.nospill-game-head p,
.nospill-game-passport p {
  margin: 0;
}

.nospill-game-grid div,
.nospill-game-mission-card,
.nospill-game-passport {
  min-width: 0;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  padding: 11px;
  background: #0b0f10;
}

.nospill-game-grid span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-game-grid strong {
  display: block;
  color: #f4f7ef;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nospill-game-mission-card {
  border-color: rgba(85, 217, 138, 0.28);
}

.nospill-next-action-card {
  border: 1px solid rgba(85, 217, 138, 0.42);
  border-radius: 8px;
  padding: 12px;
  background: rgba(85, 217, 138, 0.1);
}

.nospill-next-action-card h4,
.nospill-next-action-card p {
  margin: 0;
}

.nospill-next-action-card h4 {
  color: #f4f7ef;
  font-size: 1.02rem;
}

.nospill-next-action-card p:not(.nospill-kicker) {
  color: #bbc7c0;
  line-height: 1.42;
}

.nospill-game-mission-card span {
  color: #9ee9bf;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nospill-game-mission-card strong {
  display: block;
  color: #f4f7ef;
  line-height: 1.25;
}

.nospill-game-cargo-line {
  color: #bbc7c0;
}

.nospill-game-cargo-line strong {
  display: inline;
}

.nospill-game-primary-cta {
  width: 100%;
  min-height: 56px;
  font-size: 1.02rem;
}

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

.nospill-teaser-grid {
  display: grid;
  gap: 8px;
}

.nospill-teaser-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(244, 247, 239, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(244, 247, 239, 0.035);
}

.nospill-teaser-card strong {
  color: #f4f7ef;
  font-size: 0.9rem;
}

.nospill-teaser-card span {
  color: #bbc7c0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.nospill-game-passport h4 {
  margin: 0 0 5px;
  color: #f4f7ef;
  font-size: 0.92rem;
}

.nospill-passport-preview span {
  border: 1px solid rgba(240, 185, 90, 0.32);
  border-radius: 999px;
  padding: 7px 9px;
  color: #ffe2a8;
  background: rgba(240, 185, 90, 0.09);
  font-size: 0.78rem;
  font-weight: 800;
}

.nospill-game-shop-action {
  padding: 10px 12px;
  border: 1px solid rgba(240, 185, 90, 0.28);
  border-radius: 8px;
  background: rgba(240, 185, 90, 0.08);
}

.nospill-discord-panel {
  display: grid;
  gap: 12px;
}

.nospill-discord-panel p {
  margin: 0;
}

.nospill-discord-panel .nospill-link-button {
  width: 100%;
}

.nospill-progress-tools details {
  display: grid;
  gap: 10px;
}

.nospill-progress-tools summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #f4f7ef;
  font-weight: 900;
  cursor: pointer;
}

.nospill-progress-tools details[open] {
  gap: 12px;
}

.nospill-delivery-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.nospill-delivery-log-head > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(85, 217, 138, 0.42);
  border-radius: 8px;
  padding: 8px 10px;
  color: #06100b;
  background: #55d98a;
  font-size: 0.86rem;
}

.nospill-delivery-mission,
.nospill-delivery-grid div,
.nospill-shop-grid div,
.nospill-merch-progress-grid div,
.nospill-delivery-summary-grid div,
.nospill-upgrade-item,
.nospill-generator-item,
.nospill-idle-card,
.nospill-delivery-wall-item {
  min-width: 0;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  padding: 11px;
  background: #0b0f10;
}

.nospill-delivery-mission {
  display: grid;
  gap: 6px;
}

.nospill-delivery-mission span,
.nospill-delivery-grid span,
.nospill-shop-grid span,
.nospill-merch-progress-grid span,
.nospill-delivery-summary-grid span,
.nospill-delivery-wall-item span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-delivery-mission strong,
.nospill-delivery-grid strong,
.nospill-shop-grid strong,
.nospill-merch-progress-grid strong,
.nospill-delivery-summary-grid strong,
.nospill-delivery-wall-item strong {
  display: block;
  color: #f4f7ef;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nospill-delivery-mission p,
.nospill-delivery-mission small,
.nospill-shop-grid small,
.nospill-upgrade-item small,
.nospill-generator-item small,
.nospill-idle-card small {
  margin: 0;
  color: #bbc7c0;
  line-height: 1.42;
}

.nospill-delivery-grid,
.nospill-shop-grid,
.nospill-merch-progress-grid,
.nospill-delivery-summary-grid,
.nospill-delivery-actions,
.nospill-upgrade-list,
.nospill-generator-list,
.nospill-idle-grid,
.nospill-collection-list,
.nospill-delivery-wall-grid,
.nospill-shop-action-row,
.nospill-shop-panel {
  display: grid;
  gap: 10px;
}

.nospill-shop-action-row {
  scroll-margin-top: 18px;
}

.nospill-manual-backup {
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(244, 247, 239, 0.035);
}

.nospill-manual-backup summary {
  cursor: pointer;
  color: #bbc7c0;
  font-weight: 800;
}

.nospill-shop-action-row:focus {
  outline: 2px solid rgba(158, 233, 191, 0.72);
  outline-offset: 4px;
}

.nospill-cup-trail-card:empty {
  display: none;
}

.nospill-coach-recap-card:empty {
  display: none;
}

.nospill-cargo-commentary:empty {
  display: none;
}

.nospill-cargo-commentary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(158, 233, 191, 0.26);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(158, 233, 191, 0.08), transparent 60%),
    #0b0f10;
}

.nospill-cargo-commentary strong {
  color: #f4f7ef;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.nospill-cargo-commentary span {
  color: #bbc7c0;
  line-height: 1.45;
}

.nospill-cargo-commentary.is-spilled {
  border-color: rgba(240, 185, 90, 0.34);
  background:
    linear-gradient(180deg, rgba(240, 185, 90, 0.08), transparent 60%),
    #0b0f10;
}

.nospill-story-card-preview {
  display: grid;
  gap: 12px;
  max-width: 100%;
  border: 1px solid rgba(244, 247, 239, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(158, 233, 191, 0.10), transparent 44%),
    linear-gradient(180deg, rgba(244, 247, 239, 0.055), transparent 72%),
    #0b0f10;
}

.nospill-story-card-preview-head,
.nospill-story-card-preview-facts {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.nospill-story-card-preview-head span,
.nospill-story-card-preview-facts span,
.nospill-story-card-preview-note span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nospill-story-card-preview-head strong {
  color: #f4f7ef;
  font-size: clamp(1.7rem, 8vw, 2.8rem);
  line-height: 1;
}

.nospill-story-card-preview-facts {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nospill-story-card-preview-note {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  padding: 11px;
  overflow-wrap: anywhere;
}

.nospill-story-card-preview-note strong {
  color: #f4f7ef;
  line-height: 1.35;
}

.nospill-story-card-preview-note.is-generated {
  border: 1px solid rgba(158, 233, 191, 0.28);
  background: rgba(158, 233, 191, 0.055);
}

.nospill-story-card-preview-note.is-coach {
  border: 1px solid rgba(110, 198, 255, 0.28);
  background: rgba(110, 198, 255, 0.06);
}

.nospill-story-card-preview-note.is-player {
  border: 1px solid rgba(240, 185, 90, 0.46);
  background: rgba(240, 185, 90, 0.09);
}

.nospill-story-card-preview-route {
  min-width: 0;
}

.nospill-route-artifact,
.nospill-story-card-preview p {
  margin: 0;
}

.nospill-route-artifact {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 8px;
  padding: 10px;
  background: rgba(110, 198, 255, 0.055);
}

.nospill-route-artifact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.nospill-route-artifact-head span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nospill-route-artifact-head strong {
  color: #9ee9bf;
  font-size: 0.86rem;
}

.nospill-route-artifact svg {
  width: 100%;
  min-height: 126px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(244, 247, 239, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 247, 239, 0.04) 1px, transparent 1px),
    #070a0a;
  background-size: 32px 28px;
}

.nospill-route-outline-shadow {
  fill: none;
  stroke: rgba(7, 10, 10, 0.75);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 13;
}

.nospill-route-outline-line {
  fill: none;
  stroke: rgba(110, 198, 255, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.nospill-route-outline-marker {
  stroke: #070a0a;
  stroke-width: 2;
}

.nospill-route-outline-marker.is-steady {
  fill: #55d98a;
}

.nospill-route-outline-marker.is-mixed {
  fill: #f7d66b;
}

.nospill-route-outline-marker.is-messy {
  fill: #f0b95a;
}

.nospill-route-artifact small {
  color: #f8d891;
  font-size: 0.78rem;
  line-height: 1.35;
}

.nospill-story-card-preview p {
  color: #9ee9bf;
  font-weight: 900;
}

.nospill-coach-recap-card {
  display: grid;
  gap: 12px;
}

.nospill-coach-recap {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(240, 185, 90, 0.28);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(240, 185, 90, 0.08), transparent 56%),
    #0b0f10;
}

.nospill-coach-recap h4 {
  margin: 0;
  color: #f4f7ef;
  font-size: 1rem;
}

.nospill-coach-recap dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.nospill-coach-recap dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(244, 247, 239, 0.09);
  padding-bottom: 7px;
}

.nospill-coach-recap dt {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-coach-recap dd {
  margin: 0;
  color: #f4f7ef;
  font-weight: 800;
  text-align: right;
}

.nospill-coach-recap p {
  margin: 0;
  color: #bbc7c0;
  line-height: 1.45;
}

.nospill-cup-trail {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  border: 1px solid rgba(110, 198, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(110, 198, 255, 0.07), transparent 56%),
    #0b0f10;
}

.nospill-cup-trail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nospill-cup-trail-head span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-cup-trail-head strong {
  display: block;
  margin-top: 3px;
  color: #f4f7ef;
  font-size: 1rem;
}

.nospill-cup-trail svg {
  width: 100%;
  height: auto;
  display: block;
}

.nospill-cup-trail-guide {
  fill: none;
  stroke: rgba(244, 247, 239, 0.16);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.nospill-cup-trail-line {
  fill: none;
  stroke: #9ee9bf;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nospill-cup-trail small {
  color: #bbc7c0;
  line-height: 1.45;
}

.nospill-character-cameo-card:empty {
  display: none;
}

.nospill-character-cameo {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(158, 233, 191, 0.22);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(135deg, rgba(158, 233, 191, 0.08), transparent 56%),
    #0b0f10;
}

.nospill-character-cameo img,
.nospill-character-art-placeholder {
  width: 76px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.16);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(244, 247, 239, 0.06) 0 2px, transparent 2px 12px),
    #101516;
}

.nospill-character-cameo img {
  object-fit: cover;
}

.nospill-character-art-placeholder {
  color: #9ee9bf;
  font-size: 1.25rem;
  font-weight: 900;
}

.nospill-character-cameo span {
  display: block;
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-character-cameo strong {
  display: block;
  margin-top: 3px;
  color: #f4f7ef;
  line-height: 1.2;
}

.nospill-character-cameo small {
  display: block;
  margin-top: 4px;
  color: #bbc7c0;
  line-height: 1.35;
}

.nospill-character-cameo.is-result-cameo,
.nospill-character-cameo.is-coach-cameo {
  grid-template-columns: minmax(120px, clamp(120px, 28vw, 220px)) minmax(0, 1fr);
  align-items: end;
  border-color: rgba(240, 185, 90, 0.3);
  background:
    linear-gradient(135deg, rgba(240, 185, 90, 0.12), transparent 58%),
    #0b0f10;
}

.nospill-character-cameo.is-result-cameo img,
.nospill-character-cameo.is-coach-cameo img,
.nospill-character-cameo.is-result-cameo .nospill-character-art-placeholder,
.nospill-character-cameo.is-coach-cameo .nospill-character-art-placeholder {
  width: clamp(120px, 28vw, 220px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.nospill-character-cameo.is-result-cameo strong,
.nospill-character-cameo.is-coach-cameo strong {
  font-size: 1.08rem;
}

.nospill-character-cameo.is-result-cameo small,
.nospill-character-cameo.is-coach-cameo small {
  color: #f4f7ef;
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .nospill-coach-recap-card {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .nospill-coach-recap-card .nospill-character-cameo.is-coach-cameo {
    align-content: end;
  }
}

@media (max-width: 520px) {
  .nospill-character-cameo.is-result-cameo,
  .nospill-character-cameo.is-coach-cameo {
    grid-template-columns: 1fr;
  }
}

.nospill-shop-scene {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 0;
  border: 1px solid rgba(158, 233, 191, 0.2);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(158, 233, 191, 0.09), transparent 42%),
    #070a0a;
  pointer-events: none;
  user-select: none;
}

.nospill-shop-scene-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.nospill-shop-scene-head span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-shop-scene-head strong {
  color: #f4f7ef;
  font-size: 0.9rem;
}

.nospill-shop-scene-stage {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: clamp(180px, 34vw, 340px);
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(244, 247, 239, 0.04) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #121817, #0b0f10);
  pointer-events: none;
}

.nospill-shop-scene-image {
  min-width: 0;
  display: grid;
  min-height: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 20%, rgba(158, 233, 191, 0.16), transparent 34%),
    linear-gradient(140deg, rgba(240, 185, 90, 0.08), transparent 42%),
    rgba(244, 247, 239, 0.045);
}

.nospill-shop-scene-image img,
.nospill-shop-scene-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #9ee9bf;
  font-size: clamp(0.84rem, 1.8vw, 1.05rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
}

.nospill-shop-scene-image img {
  display: block;
  border: 0;
  background: transparent;
  object-fit: cover;
}

.nospill-shop-scene-placeholder {
  min-height: 120px;
  border: 1px dashed rgba(158, 233, 191, 0.28);
  background:
    linear-gradient(135deg, rgba(158, 233, 191, 0.08), transparent 58%),
    rgba(5, 6, 6, 0.82);
}

.nospill-shop-scene-flavor {
  margin: 0;
  color: #bbc7c0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.nospill-shop-safety {
  padding: 10px 12px;
  border: 1px solid rgba(240, 185, 90, 0.34);
  border-radius: 8px;
  color: #f7e4b8;
  background: rgba(240, 185, 90, 0.08);
}

.nospill-delivery-wall-group {
  display: grid;
  gap: 8px;
}

.nospill-delivery-wall-group h5 {
  margin: 0;
  color: #f4f7ef;
  font-size: 0.95rem;
}

.nospill-delivery-wall-group p {
  margin: 0;
  color: #bbc7c0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.nospill-field,
.nospill-checkline {
  display: grid;
  gap: 7px;
}

.nospill-field span,
.nospill-checkline span {
  color: #bbc7c0;
  font-size: 0.82rem;
  font-weight: 800;
}

.nospill-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(244, 247, 239, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  color: #f4f7ef;
  background: #0b0f10;
}

.nospill-checkline {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.nospill-shop-panel h4 {
  margin: 0;
  color: #f4f7ef;
  font-size: 0.92rem;
}

.nospill-upgrade-item,
.nospill-generator-item,
.nospill-idle-card {
  display: grid;
  gap: 8px;
}

.nospill-upgrade-item.is-locked,
.nospill-generator-item.is-locked,
.nospill-idle-card.is-locked {
  opacity: 0.72;
}

.nospill-upgrade-item header,
.nospill-generator-item header,
.nospill-idle-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.nospill-upgrade-item strong,
.nospill-generator-item strong,
.nospill-idle-card strong {
  color: #f4f7ef;
}

.nospill-upgrade-item button,
.nospill-generator-item button,
.nospill-idle-card button {
  min-height: 40px;
}

.nospill-story-splash-art {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 8px 0 0;
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 10px;
  background: rgba(244, 247, 239, 0.045);
  pointer-events: none;
}

.nospill-story-splash-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nospill-shop-tabs {
  display: grid;
  gap: 10px;
}

.nospill-shop-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nospill-shop-tab-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 999px;
  padding: 7px 10px;
  color: #bbc7c0;
  background: rgba(244, 247, 239, 0.04);
  font-size: 0.76rem;
  font-weight: 800;
}

.nospill-shop-tab-list button.is-active {
  border-color: rgba(85, 217, 138, 0.54);
  color: #06100b;
  background: #55d98a;
}

.nospill-shop-tab-list button:focus-visible {
  outline: 2px solid #f7d66b;
  outline-offset: 3px;
}

.nospill-shop-tab-list button.is-newly-revealed:not(.is-active) {
  border-color: rgba(158, 233, 191, 0.48);
  box-shadow: 0 0 0 1px rgba(158, 233, 191, 0.10);
}

.nospill-tab-badge {
  border-radius: 999px;
  padding: 1px 6px;
  color: #06100b;
  background: #f7d66b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nospill-shop-tab-list button.is-active .nospill-tab-badge {
  background: #06100b;
  color: #f7d66b;
}

.nospill-idle-panel h4,
.nospill-idle-panel h5 {
  margin: 0;
}

.nospill-idle-grid {
  grid-template-columns: 1fr;
}

.nospill-idle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nospill-idle-actions button {
  flex: 1 1 120px;
}

.nospill-action-wrap {
  flex: 1 1 120px;
  display: grid;
  gap: 4px;
}

.nospill-action-wrap button {
  width: 100%;
}

.nospill-action-reason {
  color: #9ca89b;
  font-size: 0.72rem;
  line-height: 1.25;
}

.nospill-available-badge {
  justify-self: start;
  border: 1px solid rgba(85, 217, 138, 0.36);
  border-radius: 999px;
  padding: 2px 7px;
  color: #bdf7d4;
  background: rgba(85, 217, 138, 0.10);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nospill-afford-progress {
  display: grid;
  gap: 5px;
  margin-top: 2px;
}

.nospill-afford-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #bbc7c0;
  font-size: 0.76rem;
  font-weight: 800;
}

.nospill-afford-progress-head strong {
  color: #f4f7ef;
}

.nospill-afford-progress-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 999px;
  background: #070a0a;
}

.nospill-afford-progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 2px;
  border-radius: inherit;
  background: #9ee9bf;
}

.nospill-afford-progress small {
  color: #9ca89b;
  line-height: 1.3;
}

.nospill-builder-note-card {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.nospill-builder-note-card.is-collapsed {
  gap: 10px;
}

.nospill-builder-note-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f4f7ef;
  font-size: 0.8rem;
  font-weight: 850;
}

.nospill-builder-note-label small,
.nospill-builder-note-help {
  margin: 0;
  color: #93a099;
  font-size: 0.72rem;
  line-height: 1.3;
}

.nospill-builder-note-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(244, 247, 239, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  color: #f4f7ef;
  background: #070a0a;
  font: inherit;
}

.nospill-builder-note-input:focus-visible {
  outline: 2px solid #f7d66b;
  outline-offset: 2px;
}

.nospill-builder-note-chips,
.nospill-builder-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.nospill-builder-note-chip {
  flex: 1 1 128px;
  font-size: 0.72rem;
}

.nospill-builder-note-display {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(247, 214, 107, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: rgba(247, 214, 107, 0.08);
}

.nospill-builder-note-display span {
  color: #f7d66b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nospill-builder-note-display strong {
  overflow-wrap: anywhere;
  color: #f4f7ef;
  line-height: 1.35;
}

.nospill-next-milestone {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(110, 198, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(110, 198, 255, 0.10), rgba(244, 247, 239, 0.035));
}

.nospill-next-milestone p {
  margin: 0;
  color: #d8e3dc;
  font-size: 0.82rem;
  line-height: 1.35;
}

.nospill-next-milestone-head,
.nospill-next-milestone-progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.nospill-next-milestone-head span,
.nospill-next-milestone-progress span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nospill-next-milestone-head strong {
  color: #f4f7ef;
}

.nospill-cash-conversion-shelf {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(158, 233, 191, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(158, 233, 191, 0.035);
}

.nospill-next-milestone-progress strong {
  color: #9ee9bf;
}

.nospill-next-milestone-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 999px;
  background: #070a0a;
}

.nospill-next-milestone-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #55d98a, #f7d66b);
  transition: width 220ms ease;
}

.nospill-long-road {
  border-top: 1px solid rgba(244, 247, 239, 0.10);
  padding-top: 8px;
  color: #f7d66b !important;
  font-weight: 800;
}

.nospill-compact-details {
  border: 1px solid rgba(244, 247, 239, 0.10);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(7, 10, 10, 0.28);
}

.nospill-compact-details summary {
  cursor: pointer;
  color: #f7d66b;
  font-size: 0.76rem;
  font-weight: 900;
  list-style-position: inside;
}

.nospill-compact-details summary:focus-visible {
  outline: 2px solid #f7d66b;
  outline-offset: 3px;
}

.nospill-compact-details p {
  margin: 7px 0 0;
  color: #d8e3dc;
  font-size: 0.78rem;
  line-height: 1.35;
}

.nospill-overview-brief {
  margin-bottom: 0;
}

.nospill-overview-details {
  margin: 8px 0 10px;
}

.nospill-overview-recent {
  margin: 10px 0;
}

.nospill-goal-stack {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(110, 198, 255, 0.10), rgba(244, 247, 239, 0.035));
}

.nospill-goal-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nospill-goal-stack-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  padding: 10px;
  background: rgba(7, 10, 10, 0.38);
}

.nospill-goal-stack-label {
  color: #93a099;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nospill-goal-stack-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.nospill-goal-stack-title strong {
  min-width: 0;
  color: #f4f7ef;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.nospill-goal-stack-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(247, 214, 107, 0.32);
  border-radius: 999px;
  padding: 2px 7px;
  color: #f7d66b;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nospill-goal-stack-item p,
.nospill-goal-stack-reward {
  margin: 0;
  color: #d8e3dc;
  font-size: 0.8rem;
  line-height: 1.35;
}

.nospill-goal-stack-reward {
  color: #f7d66b;
  font-weight: 800;
}

.nospill-goal-stack-progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #d8e3dc;
  font-size: 0.78rem;
}

.nospill-goal-stack-progress span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nospill-goal-stack-progress strong {
  color: #9ee9bf;
  white-space: nowrap;
}

.nospill-counter-service {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(244, 247, 239, 0.10);
  border-radius: 8px;
  padding: 10px;
  background: rgba(110, 198, 255, 0.055);
}

.nospill-counter-service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.nospill-counter-service-row span,
.nospill-counter-service small {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
}

.nospill-counter-service-row span {
  text-transform: uppercase;
}

.nospill-counter-service-row strong {
  color: #f4f7ef;
}

.nospill-counter-service-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 999px;
  background: #070a0a;
}

.nospill-counter-service-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 3px;
  border-radius: inherit;
  background: #6ec6ff;
  transition: width 220ms ease;
}

.nospill-spirit-wallet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
}

.nospill-spirit-wallet div {
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  background: rgba(244, 247, 239, 0.045);
  padding: 0.75rem;
}

.nospill-spirit-wallet span {
  display: block;
  color: #aeb8b2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nospill-spirit-wallet strong {
  display: block;
  margin-top: 0.25rem;
  color: #f4f7ef;
}

.nospill-spirit-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.nospill-spirit-section h5 {
  margin: 0;
  color: #f4f7ef;
  font-size: 0.82rem;
}

.nospill-order-prep {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(244, 247, 239, 0.1);
  border-radius: 8px;
  background: rgba(244, 247, 239, 0.035);
}

.nospill-order-prep-head,
.nospill-order-prep-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.nospill-order-prep-head span,
.nospill-order-prep small {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
}

.nospill-order-prep-head span {
  text-transform: uppercase;
}

.nospill-order-prep-head strong,
.nospill-order-prep-copy strong {
  color: #f4f7ef;
}

.nospill-order-prep-copy small {
  max-width: 56%;
  text-align: right;
}

.nospill-order-prep-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 999px;
  background: #070a0a;
}

.nospill-order-prep-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 3px;
  border-radius: inherit;
  background: #55d98a;
  transition: width 220ms ease;
}

.nospill-order-prep.is-paused .nospill-order-prep-bar span {
  background: #f0b95a;
}

@media (max-width: 560px) {
  .nospill-order-prep-head,
  .nospill-order-prep-copy {
    display: grid;
    gap: 4px;
  }

  .nospill-order-prep-copy small {
    max-width: none;
    text-align: left;
  }

  .nospill-next-milestone-head,
  .nospill-next-milestone-progress,
  .nospill-goal-stack-grid,
  .nospill-goal-stack-title,
  .nospill-goal-stack-progress,
  .nospill-counter-service-row {
    display: grid;
    gap: 4px;
  }

  .nospill-goal-stack-grid {
    grid-template-columns: 1fr;
  }

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

.nospill-collection-item {
  min-width: 0;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  padding: 11px;
  background: #0b0f10;
  display: grid;
  gap: 8px;
}

.nospill-collection-item.is-locked {
  opacity: 0.72;
}

.nospill-collection-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.nospill-collection-item strong {
  color: #f4f7ef;
}

.nospill-collection-item span,
.nospill-collection-item small {
  color: #bbc7c0;
  line-height: 1.42;
}

.nospill-collection-item button {
  min-height: 40px;
}

.nospill-upgrade-item button:disabled,
.nospill-collection-item button:disabled,
.nospill-secondary:disabled,
.nospill-danger:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.nospill-delivery-wall-item {
  display: grid;
  gap: 8px;
}

.nospill-stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nospill-stamp-row span {
  border: 1px solid rgba(240, 185, 90, 0.34);
  border-radius: 999px;
  padding: 7px 9px;
  color: #ffe2a8;
  background: rgba(240, 185, 90, 0.09);
  font-size: 0.78rem;
  font-weight: 800;
}

.nospill-stamp-fanfare,
.nospill-discovery-fanfare {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 8, 0.76);
}

.nospill-stamp-fanfare.is-hidden,
.nospill-discovery-fanfare.is-hidden {
  display: none;
}

.nospill-stamp-fanfare-card,
.nospill-discovery-fanfare-card {
  width: min(500px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(240, 185, 90, 0.48);
  border-radius: 12px;
  padding: 22px;
  background: #101719;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.nospill-stamp-fanfare.is-animated .nospill-stamp-fanfare-card,
.nospill-discovery-fanfare.is-animated .nospill-discovery-fanfare-card {
  animation: stamp-pop 360ms ease-out;
}

.nospill-stamp-mark,
.nospill-system-mark {
  width: fit-content;
  max-width: 100%;
  border: 2px solid rgba(240, 185, 90, 0.7);
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffe2a8;
  background: rgba(240, 185, 90, 0.12);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nospill-system-mark {
  border-color: rgba(158, 233, 191, 0.65);
  color: #9ee9bf;
  background: rgba(158, 233, 191, 0.1);
}

.nospill-stamp-rewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nospill-stamp-fanfare-art {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 10px;
  background: rgba(244, 247, 239, 0.045);
}

.nospill-stamp-fanfare-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nospill-stamp-fanfare-art.is-placeholder,
.nospill-stamp-fanfare-art-fallback {
  min-height: 120px;
  place-items: center;
  color: #ffe2a8;
  font-weight: 900;
}

.nospill-stamp-fanfare-art.is-placeholder {
  display: grid;
}

.nospill-stamp-fanfare-art-fallback:not([hidden]) {
  display: grid;
  width: 100%;
  height: 100%;
}

.nospill-stamp-reward-metric {
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(244, 247, 239, 0.045);
}

.nospill-stamp-reward-metric span {
  display: block;
  color: #9ee9bf;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nospill-stamp-reward-metric strong {
  color: #f4f7ef;
}

@media (max-width: 560px) {
  .nospill-stamp-rewards {
    grid-template-columns: 1fr;
  }
}

.nospill-stamp-actions {
  margin-top: 4px;
}

.nospill-discovery-actions {
  margin-top: 4px;
}

@keyframes stamp-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nospill-stamp-fanfare.is-animated .nospill-stamp-fanfare-card,
  .nospill-discovery-fanfare.is-animated .nospill-discovery-fanfare-card {
    animation: none;
  }
}

.nospill-step-grid div {
  min-height: 76px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: #0b0f10;
}

.nospill-step-grid span,
.nospill-safety-strip span {
  color: #9ee9bf;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nospill-step-grid strong {
  color: #f4f7ef;
  font-size: 0.98rem;
  line-height: 1.24;
}

.nospill-merch-preview {
  overflow: hidden;
}

.nospill-merch-preview .nospill-merch-partner-link {
  margin-top: 4px;
}

.nospill-merch-preview img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
}

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

.nospill-safety-strip span {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-left: 3px solid rgba(85, 217, 138, 0.75);
  padding: 8px 10px;
  color: #f4f7ef;
  background: rgba(244, 247, 239, 0.04);
}

.nospill-checklist {
  display: grid;
  gap: 10px;
}

.nospill-checklist label,
.nospill-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #edf2e9;
}

.nospill-checklist input,
.nospill-toggle input {
  width: 22px;
  height: 22px;
  accent-color: #55d98a;
  flex: 0 0 auto;
}

.nospill-segmented,
.nospill-choice-row,
.nospill-mount-options,
.nospill-audio-settings,
.nospill-controls,
.nospill-share-actions {
  display: grid;
  gap: 10px;
}

.nospill-segmented {
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  background: #090c0d;
}

.nospill-volume-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  background: #090c0d;
}

.nospill-choice-row {
  grid-template-columns: 1fr;
}

.nospill-segmented button,
.nospill-choice-row button,
.nospill-mount-option,
.nospill-volume-options button,
.nospill-primary,
.nospill-secondary,
.nospill-danger {
  min-height: 48px;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 8px;
  padding: 11px 13px;
  color: #f4f7ef;
  background: #151b1c;
  cursor: pointer;
}

.nospill-segmented button,
.nospill-choice-row button,
.nospill-mount-option {
  text-align: left;
  color: #c6d0ca;
}

.nospill-segmented button {
  text-align: center;
}

.nospill-volume-options button {
  min-height: 38px;
  padding: 8px 7px;
  color: #c6d0ca;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.nospill-choice-row button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nospill-mount-option {
  display: grid;
  gap: 5px;
}

.nospill-mount-option strong {
  color: #f4f7ef;
  font-size: 0.98rem;
  line-height: 1.2;
}

.nospill-mount-option span {
  color: #9aa7a0;
  font-size: 0.86rem;
  line-height: 1.35;
}

.nospill-segmented button.is-active,
.nospill-choice-row button.is-active,
.nospill-mount-option.is-active,
.nospill-volume-options button.is-active {
  border-color: rgba(85, 217, 138, 0.72);
  color: #f4f7ef;
  background: rgba(85, 217, 138, 0.13);
}

.nospill-primary {
  border-color: rgba(85, 217, 138, 0.84);
  color: #06100b;
  background: #55d98a;
  font-weight: 900;
}

.nospill-primary:disabled {
  border-color: rgba(244, 247, 239, 0.08);
  color: #7d8983;
  background: #171c1d;
  cursor: not-allowed;
}

.nospill-secondary {
  background: #171c1d;
  color: #edf2e9;
}

.nospill-danger {
  border-color: rgba(255, 110, 110, 0.66);
  color: #ffe8e8;
  background: rgba(255, 110, 110, 0.14);
}

.nospill-controls {
  align-items: center;
}

.nospill-audio-settings {
  min-width: 0;
}

.nospill-audio-volume {
  display: grid;
  gap: 7px;
}

.nospill-audio-volume > span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-safety-copy {
  padding: 12px;
  border: 1px solid rgba(240, 185, 90, 0.28);
  border-radius: 8px;
  background: rgba(240, 185, 90, 0.08);
}

.nospill-safety-copy p {
  margin: 0;
}

.nospill-axis-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  background: #0b0f10;
}

.nospill-axis-panel p {
  margin: 0;
}

.nospill-axis-bars,
.nospill-axis-controls {
  display: grid;
  gap: 10px;
}

.nospill-axis-bar {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.nospill-axis-bar span,
.nospill-axis-controls label > span {
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-axis-bar div {
  position: relative;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 999px;
  background: #070a0a;
}

.nospill-axis-bar div::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(244, 247, 239, 0.26);
}

.nospill-axis-bar i {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 0;
  height: 8px;
  border-radius: 999px;
  background: #55d98a;
}

.nospill-axis-bar output {
  color: #edf2e9;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.nospill-axis-controls label {
  display: grid;
  gap: 7px;
}

.nospill-axis-controls select {
  min-height: 44px;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 8px;
  padding: 10px 12px;
  color: #f4f7ef;
  background: #151b1c;
}

.nospill-note {
  margin: 0;
}

.nospill-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(110, 198, 255, 0.24);
  border-radius: 8px;
  background: rgba(110, 198, 255, 0.08);
}

.nospill-run-top,
.nospill-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.nospill-summary-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nospill-summary-brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid rgba(244, 247, 239, 0.16);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7ef;
}

.nospill-summary-brand .nospill-hero-fallback {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  font-size: 0.65rem;
  background: #f4f7ef;
}

.nospill-summary-brand img:not([hidden]) + .nospill-hero-fallback,
.nospill-summary-brand .nospill-hero-fallback[hidden] {
  display: none;
}

.nospill-summary.is-shop-result .nospill-summary-head {
  align-items: center;
}

.nospill-summary.is-shop-result .nospill-water-percent {
  padding: 10px 12px;
  border: 1px solid rgba(244, 197, 107, 0.28);
  border-radius: 8px;
  background: rgba(244, 197, 107, 0.1);
  color: #f8d891;
  font-size: 1.6rem;
}

.nospill-water-percent {
  color: #f4f7ef;
  font-size: 2.3rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.nospill-canvas,
.nospill-share-canvas {
  width: 100%;
  display: block;
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  background: #070a0a;
}

.nospill-canvas {
  aspect-ratio: 1 / 1;
  max-height: min(66vh, 520px);
}

.nospill-share-canvas {
  aspect-ratio: 4 / 5;
}

.nospill-run-details {
  display: block;
}

.nospill-progress-shelf {
  display: grid;
  gap: 12px;
}

.nospill-progress-shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.nospill-progress-shelf-head h3 {
  margin: 0;
}

.nospill-progress-shelf-head p {
  max-width: 34rem;
  margin: 0;
  color: #bbc7c0;
  font-size: 0.9rem;
}

.nospill-progress-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.nospill-progress-shelf-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(244, 247, 239, 0.12);
  border-radius: 8px;
  background: rgba(244, 247, 239, 0.045);
}

.nospill-progress-shelf-card strong,
.nospill-progress-shelf-card span,
.nospill-progress-shelf-card small {
  min-width: 0;
}

.nospill-progress-shelf-card strong {
  color: #f4f7ef;
  font-size: 0.95rem;
}

.nospill-progress-shelf-card span {
  color: #dfe7e2;
  font-size: 0.86rem;
  font-weight: 800;
}

.nospill-progress-shelf-card small {
  color: #93a099;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-progress-shelf-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 247, 239, 0.1);
}

.nospill-progress-shelf-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ee9bf, #f4c56b);
}

.nospill-run-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #f4f7ef;
  font-weight: 900;
}

.nospill-run-details summary::after {
  content: "Open";
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nospill-run-details[open] summary {
  margin-bottom: 12px;
}

.nospill-run-details[open] summary::after {
  content: "Close";
}

.nospill-run-details > .nospill-section {
  margin-top: 12px;
}

.nospill-share-trail-mode {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.nospill-share-trail-mode label,
.nospill-story-card-preview-trail {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  color: #edf2e9;
  font-size: 0.9rem;
  font-weight: 800;
}

.nospill-share-trail-mode input {
  width: 20px;
  height: 20px;
  accent-color: #55d98a;
}

.nospill-route-share-warning {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(240, 185, 90, 0.36);
  border-radius: 8px;
  background: rgba(240, 185, 90, 0.1);
  color: #f8d891;
  font-size: 0.84rem;
  line-height: 1.45;
}

.nospill-story-card-preview-trail {
  flex-wrap: wrap;
  justify-content: space-between;
  color: #9ee9bf;
}

.nospill-story-card-preview-trail span:last-child {
  color: #bbc7c0;
  font-size: 0.78rem;
}

.nospill-story-caption-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: #f4f7ef;
  font-size: 0.82rem;
  font-weight: 850;
}

.nospill-story-caption-label span {
  color: #93a099;
  font-size: 0.76rem;
  font-weight: 750;
}

.nospill-story-caption-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 247, 239, 0.18);
  border-radius: 8px;
  background: #070a0a;
  color: #f4f7ef;
  font: inherit;
}

.nospill-story-caption-input:focus-visible {
  outline: 3px solid rgba(110, 198, 255, 0.8);
  outline-offset: 2px;
}

.nospill-story-caption-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.nospill-story-caption-chips button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(158, 233, 191, 0.24);
  border-radius: 999px;
  background: rgba(158, 233, 191, 0.08);
  color: #dff9e8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.nospill-story-caption-chips button:focus-visible {
  outline: 3px solid rgba(110, 198, 255, 0.8);
  outline-offset: 2px;
}

.nospill-story-caption-preview {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(240, 185, 90, 0.26);
  border-radius: 8px;
  background: rgba(240, 185, 90, 0.08);
  color: #f8d891;
  font-size: 0.86rem;
  line-height: 1.45;
}

.nospill-run-metrics,
.nospill-summary-grid,
.nospill-route-grid,
.nospill-merch-grid {
  display: grid;
  gap: 10px;
}

.nospill-run-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nospill-run-metrics div,
.nospill-summary-grid div,
.nospill-route-grid div,
.nospill-merch-item {
  min-width: 0;
  border: 1px solid rgba(244, 247, 239, 0.11);
  border-radius: 8px;
  padding: 11px;
  background: #0b0f10;
}

.nospill-run-metrics span,
.nospill-summary-grid span,
.nospill-route-grid span,
.nospill-merch-item span {
  display: block;
  margin-bottom: 5px;
  color: #93a099;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nospill-run-metrics strong,
.nospill-summary-grid strong,
.nospill-route-grid strong,
.nospill-merch-item strong {
  display: block;
  color: #f4f7ef;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nospill-milestone {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(85, 217, 138, 0.32);
  border-radius: 8px;
  color: #eaf5ed;
  background: rgba(85, 217, 138, 0.09);
}

.nospill-panel-helper {
  margin: 0;
  color: #bbc7c0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.nospill-inline-result {
  min-height: 1.45em;
  margin: 0;
  color: #9ee9bf;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.nospill-merch-item {
  display: grid;
  gap: 10px;
}

.nospill-merch-item.is-locked {
  opacity: 0.62;
}

.nospill-merch-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(85, 217, 138, 0.82);
  border-radius: 8px;
  padding: 10px 12px;
  color: #06100b;
  background: #55d98a;
  font-weight: 900;
  text-decoration: none;
}

.nospill-hidden-shirt-reveal {
  border-color: rgba(248, 216, 145, 0.42);
  background: linear-gradient(180deg, rgba(248, 216, 145, 0.12), rgba(11, 15, 16, 0.98));
}

.nospill-hidden-shirt-reveal h3 {
  margin-bottom: 8px;
}

.nospill-hidden-shirt-actions {
  margin-top: 14px;
}

.nospill-is-good {
  color: #9ee9bf;
}

.nospill-is-warn {
  color: #f0c576;
}

.nospill-is-bad {
  color: #ff9b9b;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 520px) {
  .nospill-app {
    padding-top: 28px;
  }

  .nospill-choice-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nospill-brand-hero {
    grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
  }

  .nospill-hero-art {
    order: 0;
    min-height: 220px;
  }

  .nospill-hero-art img {
    width: min(88%, 360px);
  }

  .nospill-hero-copy {
    order: 0;
  }

  .nospill-brand-hero .nospill-hero-copy h2 {
    font-size: 3.1rem;
  }

  .nospill-hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .nospill-game-head,
  .nospill-game-shop-action {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .nospill-game-mission-card {
    grid-template-columns: 0.82fr 1fr 1fr;
    align-items: center;
  }

  .nospill-game-grid,
  .nospill-passport-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .nospill-choice-row button {
    display: grid;
  }

  .nospill-controls,
  .nospill-share-actions {
    grid-template-columns: auto 1fr;
  }

  .nospill-summary.is-shop-result .nospill-result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nospill-summary-grid,
  .nospill-route-grid,
  .nospill-merch-grid,
  .nospill-delivery-grid,
  .nospill-shop-grid,
  .nospill-delivery-wall-grid,
  .nospill-merch-progress-grid,
  .nospill-delivery-summary-grid,
  .nospill-delivery-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nospill-delivery-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nospill-step-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nospill-safety-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
