/* Ultimate Stars stylesheet 2.
   Original style id: us-final-cleanup-reset-deck-byline.
   Keep file order stable unless you are intentionally changing the cascade. */
  /* Final release cleanup: no player-facing reset button in the HUD. */
  #hudResetProgressBtn,
  .hud-reset-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Stable My Deck remove button: keep the X fixed under the cursor on hover. */
  #deckScreen .slot .remove-slot {
    top: 8px !important;
    right: 8px !important;
    transform: none !important;
    translate: none !important;
    z-index: 40 !important;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease !important;
  }

  #deckScreen .slot .remove-slot:hover,
  #deckScreen .slot .remove-slot:focus-visible,
  #deckScreen .slot .remove-slot:active {
    top: 8px !important;
    right: 8px !important;
    transform: none !important;
    translate: none !important;
  }

  #startScreen .start-main-title .start-byline {
    display: inline-block !important;
    margin-left: .32em !important;
    padding: .34em .58em .32em !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 209, 102, .34) !important;
    background: linear-gradient(135deg, rgba(255, 209, 102, .18), rgba(255,255,255,.07)) !important;
    color: #ffd166 !important;
    font-size: clamp(15px, 1.45vw, 24px) !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    text-shadow: 0 0 18px rgba(255, 209, 102, .25) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.18) !important;
    transform: translateY(-.12em) !important;
  }

  @media (max-width: 760px) {
    #startScreen .start-main-title .start-byline {
      margin-left: 0 !important;
      margin-top: .55em !important;
      display: table !important;
    }
  }


  /* Final modal layering fix: My Cards modal must stay above the global HUD/navigation. */
  body.modal-open .modal.active {
    z-index: 9000 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.modal-open .modal.active .modal-shell {
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.modal-open #economyHud,
  body.modal-open #hudRightGroup,
  body.modal-open .economy-hud,
  body.modal-open .top-hud,
  body.modal-open .player-hud,
  body.modal-open .compact-top-hud,
  body.modal-open .screen > .topbar {
    z-index: 0 !important;
    pointer-events: none !important;
  }

  #startScreen .start-main-title a.start-byline {
    text-decoration: none !important;
    cursor: pointer !important;
  }

  #startScreen .start-main-title a.start-byline:hover,
  #startScreen .start-main-title a.start-byline:focus-visible {
    color: #fff0b7 !important;
    border-color: rgba(255, 209, 102, .62) !important;
    background: linear-gradient(135deg, rgba(255, 209, 102, .25), rgba(255,255,255,.10)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 26px rgba(255, 209, 102, .16) !important;
  }
