/* Modais launcher / flashbrowser / flash-missing (home + login) */
.launcher-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
}
.launcher-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.launcher-modal-backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  /* Sem backdrop-filter: blur costuma atrasar um frame e “travar” ao abrir o modal */
  background: rgba(4, 4, 12, 0.88);
}
.launcher-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,106,0,.55), rgba(255,80,0,.15), rgba(120,60,200,.2));
  box-shadow:
    0 0 0 1px rgba(255,106,0,.12),
    0 24px 80px rgba(0,0,0,.65),
    0 0 120px rgba(255,106,0,.08);
  transform: translateY(12px) scale(.98);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.launcher-modal.is-open .launcher-modal-panel {
  transform: translateY(0) scale(1);
}
.launcher-modal-inner {
  position: relative;
  border-radius: 21px;
  /* Cor sólida evita “buraco preto” em WebViews com gradiente quebrado */
  background-color: #121018;
  background: linear-gradient(165deg, rgba(18,18,28,.98) 0%, rgba(10,10,16,.99) 100%);
  padding: 28px 28px 26px;
  border: 1px solid rgba(255,255,255,.06);
}
.launcher-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #b8b8c8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.launcher-modal-close:hover {
  background: rgba(255,106,0,.15);
  color: #fff;
}
.launcher-modal-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffb84d;
  margin: 0 44px 8px 0;
  letter-spacing: .02em;
  max-width: none;
}
.launcher-modal-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: #8c8c9c;
  line-height: 1.45;
  max-width: none;
}
.launcher-modal-note {
  margin: 18px 0 0;
  padding: 12px 14px 12px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #a8a8b8;
  background: rgba(255, 106, 0, 0.06);
  border-radius: 12px;
  border-left: 3px solid rgba(255, 106, 0, 0.45);
  max-width: none;
}
.launcher-modal-note strong {
  color: #c9c9d4;
}
.launcher-modal-note--mac .launcher-modal-mac-intro {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #a8a8b8;
}
.launcher-modal-note--mac .launcher-modal-mac-tip {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9494a8;
}
.launcher-modal-disclaimer-inline {
  font-size: 11.5px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  color: #d4d4e0;
}
.launcher-modal-disclaimer-steps {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}
.launcher-modal-disclaimer-steps li {
  margin: 0.35em 0;
}
.launcher-modal-disclaimer-cmd {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  word-break: break-all;
  color: #d4d4e0;
}
.flash-missing-mac-note {
  margin-top: 16px;
}
.launcher-modal-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -7px;
}
.launcher-modal-grid .launcher-opt {
  flex: 1 1 45%;
  min-width: 140px;
  margin: 7px;
  box-sizing: border-box;
}
@supports (display: grid) {
  .launcher-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: -7px;
  }
  .launcher-modal-grid .launcher-opt {
    margin: 7px;
    min-width: 0;
    flex: initial;
  }
}
.launcher-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 14px 18px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #e8e8ee !important;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,106,0,.18);
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.launcher-opt > * + * {
  margin-top: 10px;
}
.launcher-opt:hover {
  transform: translateY(-3px);
  border-color: rgba(255,106,0,.45);
  background: rgba(255,106,0,.08);
  box-shadow: 0 12px 36px rgba(255,106,0,.15);
  color: #fff !important;
}
.launcher-opt-fig {
  box-sizing: border-box;
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  max-width: 68px;
  max-height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.launcher-opt-fig--mac {
  overflow: hidden;
}
.launcher-opt-fig img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.launcher-opt-fig--mac img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}
.launcher-opt-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.launcher-opt-meta {
  font-size: 11px;
  color: #6c6c7c;
  font-weight: 600;
}
.launcher-opt:hover .launcher-opt-meta { color: #a8a8b8; }
.launcher-opt--soon {
  cursor: default;
  opacity: .55;
  filter: grayscale(.6);
}
.launcher-opt--soon:hover {
  transform: none;
  border-color: rgba(255,106,0,.18);
  background: rgba(255,255,255,.04);
  box-shadow: none;
}
.launcher-opt--soon .launcher-opt-meta {
  color: #a8a8b8;
  text-transform: uppercase;
  letter-spacing: .06em;
}
body.launcher-modal-open { overflow: hidden; }

#flash-missing-modal { z-index: 10060; }

/*
 * Launcher / WebView antigo: opacity + transition no overlay costuma resultar em tela toda preta
 * (camada composta não repinta). Estes modais usam display como “gate” em vez de opacity:0.
 */
#flash-missing-modal.launcher-modal,
#launcher-modal.launcher-modal {
  display: none;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
#flash-missing-modal.launcher-modal.is-open,
#launcher-modal.launcher-modal.is-open {
  display: flex;
  visibility: visible;
  pointer-events: auto;
}
#flash-missing-modal .launcher-modal-panel,
#launcher-modal .launcher-modal-panel {
  transform: none;
  transition: none;
  -webkit-transform: none;
}

.flash-missing-actions {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.flash-missing-actions > * + * {
  margin-top: 14px;
}
.flash-missing-choice {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Outfit', 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .15s, border-color .2s, background .2s;
  text-decoration: none !important;
}
.flash-missing-choice > i,
.flash-missing-choice > .fa-solid {
  flex-shrink: 0;
}
.flash-missing-choice > * + * {
  margin-left: 14px;
}
.flash-missing-choice__label {
  display: inline-block;
  line-height: 1.25;
}
.flash-missing-choice--primary {
  border: none;
  color: #fff;
  background: linear-gradient(90deg, #ff6a00, #cc2200);
  box-shadow: 0 8px 28px rgba(255,106,0,.35);
}
.flash-missing-choice--primary:hover {
  opacity: .93;
  transform: translateY(-1px);
}
.flash-missing-choice--secondary {
  background: transparent;
  border: 2px solid rgba(255,106,0,.45);
  color: #ffcc00;
}
.flash-missing-choice--secondary:hover {
  background: rgba(255,204,0,.08);
  border-color: #ffcc00;
  color: #ffe566;
}

.flash-missing-pick-os-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #8c8c9c;
  line-height: 1.45;
}
.flash-missing-actions--pick-os .launcher-modal-grid {
  margin-top: 2px;
}
.flash-missing-actions--pick-os .launcher-opt-name {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.flash-missing-actions--pick-os .launcher-opt-meta {
  font-size: 10px;
  line-height: 1.3;
}
