/* V1.28Beta-mobile-select-readable1
   Phone character-select cards must always show title, name, and skill chips above decorative frames. */
@media (max-width: 899px) {
  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) {
    isolation: isolate !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > .card-outer-frame.card-outer-frame,
  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span::before {
    z-index: 24 !important;
    pointer-events: none !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) .mini-art.mini-art {
    z-index: 1 !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span > .card-inscription.card-inscription {
    position: absolute !important;
    left: auto !important;
    right: 8.2% !important;
    top: 50% !important;
    bottom: auto !important;
    z-index: 80 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: min(62%, 104px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 16.4%) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2px !important;
    overflow: visible !important;
    text-align: right !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span > .card-inscription.card-inscription small,
  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span > .card-inscription.card-inscription strong {
    position: relative !important;
    z-index: 81 !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.86), 0 0 8px rgba(255, 255, 255, 0.24) !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span > .card-inscription.card-inscription small {
    font-size: clamp(9px, calc(var(--select-card-outer-w, 180px) * 0.058), 11px) !important;
    line-height: 1.05 !important;
    font-weight: 850 !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span > .card-inscription.card-inscription strong {
    font-size: clamp(19px, calc(var(--select-card-outer-w, 180px) * 0.122), 25px) !important;
    line-height: 0.98 !important;
    font-weight: 950 !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder):not(.no-skill) > span > em:not([hidden]) {
    position: absolute !important;
    left: 8.4% !important;
    right: 8.4% !important;
    top: auto !important;
    bottom: 17% !important;
    z-index: 90 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: var(--select-skill-h, 24px) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    pointer-events: none !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span > em:not([hidden]) > b.skill-tip.skill-tip.skill-tip {
    box-sizing: border-box !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 91 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: clamp(70px, calc(var(--select-card-w, 140px) * 0.52), 98px) !important;
    max-width: min(100%, 132px) !important;
    height: var(--select-skill-h, 24px) !important;
    min-height: var(--select-skill-h, 24px) !important;
    max-height: var(--select-skill-h, 24px) !important;
    margin: 0 !important;
    padding: 0 clamp(8px, calc(var(--select-card-w, 140px) * 0.06), 11px) 1px !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    line-height: 1 !important;
    font-size: clamp(10px, calc(var(--select-card-outer-w, 180px) * 0.064), 12px) !important;
    pointer-events: auto !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder) > span > em:not([hidden]) > b.skill-tip.skill-tip.skill-tip .skill-inline-text {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option.has-special-mode:not(.placeholder) > span > em:not([hidden]) > b.mode-tip.mode-tip.mode-only-text {
    min-width: clamp(76px, calc(var(--select-card-w, 140px) * 0.6), 116px) !important;
  }

  /* V1.28Beta-mobile-thumb-skill-lower1:
     Phone small cards move the whole skill badge group down; special badges move with it. */
  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select:not([hidden]) .character-option.character-option.character-option.character-option.character-option:not(.placeholder):not(.no-skill) > span > em:not([hidden]) {
    --select-thumb-skill-drop-mobile: clamp(5px, 1.8vw, 8px) !important;
    bottom: calc(17% - var(--select-thumb-skill-drop-mobile)) !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select.preview-open:not([hidden]) #characterPreview#characterPreview#characterPreview#characterPreview#characterPreview.character-preview.character-preview:not([hidden]) .preview-copy.preview-copy {
    z-index: 140 !important;
    overflow: visible !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select.preview-open:not([hidden]) #characterPreview#characterPreview#characterPreview#characterPreview#characterPreview.character-preview.character-preview:not([hidden]) .preview-skill.preview-skill {
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 150 !important;
    margin: 0 auto !important;
    padding: clamp(10px, 3vw, 14px) clamp(12px, 3.6vw, 16px) !important;
    width: min(86%, 310px) !important;
    max-width: min(86%, 310px) !important;
    min-height: clamp(106px, 26vw, 136px) !important;
    border: 1.5px solid rgba(148, 213, 255, 0.92) !important;
    border-radius: 12px !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 245, 255, 0.88) 58%, rgba(203, 232, 251, 0.82)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(122, 190, 231, 0.18)) !important;
    box-shadow:
      0 8px 18px rgba(6, 28, 48, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.72) inset,
      0 0 18px rgba(115, 199, 255, 0.18) !important;
    color: #12314c !important;
    overflow: hidden !important;
    transform: translateY(var(--bigcard-skill-drop, 12px)) !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select.preview-open:not([hidden]) #characterPreview#characterPreview#characterPreview#characterPreview#characterPreview.character-preview.character-preview:not([hidden]) .preview-skill.preview-skill::before {
    content: "" !important;
    position: absolute !important;
    inset: 5px !important;
    z-index: -1 !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 8px !important;
    pointer-events: none !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select.preview-open:not([hidden]) #characterPreview#characterPreview#characterPreview#characterPreview#characterPreview.character-preview.character-preview:not([hidden]) .preview-skill.preview-skill > strong {
    position: relative !important;
    z-index: 1 !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 26px !important;
    margin: 0 0 8px !important;
    color: #13324c !important;
  }

  html body:not(.maintenance-mode) #appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot#appRoot.app.character-select-app #characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect#characterSelect.character-select.preview-open:not([hidden]) #characterPreview#characterPreview#characterPreview#characterPreview#characterPreview.character-preview.character-preview:not([hidden]) .preview-skill.preview-skill > span {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    max-height: clamp(58px, 16vw, 84px) !important;
    padding-right: 4px !important;
    color: #18364f !important;
    font-size: clamp(12px, 3.25vw, 14px) !important;
    line-height: 1.48 !important;
    overflow-y: auto !important;
    text-shadow: none !important;
  }
}
