.mode-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  margin-top: 13px;
  padding: 3px 4px 3px 11px;
  border: 1px solid #658497;
  border-radius: 9px;
  background: #152c42;
  color: #f1faff;
  font: 800 clamp(0.76rem, 1.5vw, 0.95rem)/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.mode-option select {
  min-height: 33px;
  border: 1px solid #7c98af;
  border-radius: 6px;
  padding-inline: 8px 5px;
  color: inherit;
  background: #203c54;
  font: inherit;
  cursor: pointer;
}

.mode-option:focus-within {
  outline: 2px solid #c9f6ff;
  outline-offset: 3px;
}

.stage[data-mode="realistic"] .mode-option {
  border-color: #a8f780;
  background: #223d38;
  color: #e6ffd3;
}

.stage[data-mode="anime"] .mode-option {
  border-color: #ffce77;
  background: #443051;
  color: #fff2cb;
}

.stage[data-mode="anime"] .mode-option select {
  background: #593a68;
}

.stage[data-mode="anime"] .title-card h1 {
  color: #ffe481;
  text-shadow: 0 4px 0 #a7569c, 0 7px 0 #542f70;
}

.mode-option__description {
  margin: 5px 0 0;
  color: #c1d8e7;
  font: 500 clamp(0.7rem, 1.4vw, 0.85rem)/1.3 system-ui, sans-serif;
}

.mode-option__shop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  margin: 3px auto 0;
  color: #ffde85;
  font: 750 0.83rem/1.15 system-ui, sans-serif;
  text-underline-offset: 3px;
}

.mode-option__shop:focus-visible {
  outline: 2px solid #c9f6ff;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 740px) {
  .title-card:has(.mode-option) {
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px;
  }

  .title-card:has(.mode-option) :is(.title-card__lead, .tiny-note) {
    display: none;
  }

  .title-card:has(.mode-option) .title-card__actions {
    align-items: stretch;
    flex-flow: row nowrap;
    gap: 7px;
  }

  .title-card:has(.mode-option) .big-button {
    width: auto;
    min-width: 0;
    white-space: nowrap;
  }

  .mode-option {
    margin-top: 6px;
    min-height: 36px;
  }

  .mode-option select {
    min-height: 29px;
    max-width: min(192px, 58vw);
    font-size: 0.73rem;
  }

  .mode-option__shop {
    min-height: 24px;
    margin-top: 0;
    font-size: 0.72rem;
  }

  .mode-option__description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 365px) {
  .title-card:has(.mode-option) .production-credit {
    display: none;
  }

  .title-card:has(.mode-option) .title-card__actions {
    gap: 4px;
  }

  .title-card:has(.mode-option) .big-button {
    padding-inline: 6px;
    font-size: 0.6rem;
  }
}
