/* Launcher: dieselben festen Kettenanker und dieselbe Boxposition wie Videos und Modpacks. */
@media (min-width: 1001px) {
  .profilseite:has(.profil-bereich) .hangende-platzhalter.launcher-startbox {
    width: min(900px, calc(100% - 250px));
  }

  .profilseite .hangende-platzhalter.launcher-startbox > .profil-fenster {
    box-sizing: border-box;
    width: min(1100px, calc(100vw - 64px));
    max-width: none;
    margin-left: 0;
    transform: translateX(-10px);
  }
}
.launcher-startbox .profil-grunddaten {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 54px);
  background:
    radial-gradient(circle at 20% 48%, rgba(134, 54, 197, .24), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(209, 124, 39, .14), transparent 28%),
    linear-gradient(130deg, #22282b, #15191c 58%, #261a14);
  isolation: isolate;
}

.launcher-startbox .profil-grunddaten::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 221, 166, .045) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(255, 221, 166, .035) 50%, transparent 50.3%);
  background-size: 44px 44px;
  transform: rotate(8deg);
}

.launcher-startbox .profil-grunddaten::after {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: -1;
  border: 1px solid rgba(218, 147, 72, .27);
  border-radius: 5px;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, .3);
  pointer-events: none;
}

.launcher-download {
  display: grid;
  grid-template-columns: minmax(190px, .62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(28px, 6vw, 68px);
  width: min(900px, 100%);
  margin: 0 auto;
}

.launcher-download__ornament {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
}

.launcher-download__ornament::before,
.launcher-download__ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 58px;
  background: linear-gradient(transparent, #b2743d, transparent);
}

.launcher-download__ornament::before { top: 0; }
.launcher-download__ornament::after { bottom: 0; }

.launcher-download__portal {
  position: relative;
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  border: 3px solid #bc7b43;
  border-radius: 34px;
  background:
    repeating-conic-gradient(from 45deg, rgba(246, 189, 102, .72) 0 4deg, transparent 4deg 22.5deg),
    linear-gradient(135deg, #352039, #15131b 58%, #5b301a);
  box-shadow:
    inset 0 0 0 8px #161217,
    inset 0 0 26px rgba(182, 79, 255, .42),
    0 0 0 6px rgba(46, 25, 17, .9),
    0 18px 38px rgba(0, 0, 0, .46),
    0 0 38px rgba(128, 44, 200, .38);
  transform: rotate(45deg);
}

.launcher-download__portal::before,
.launcher-download__portal::after {
  content: "";
  position: absolute;
  inset: 25px;
  border: 2px solid rgba(213, 139, 255, .72);
  border-radius: 50%;
  box-shadow: inset 0 0 22px #6d238d, 0 0 16px rgba(175, 81, 239, .5);
}

.launcher-download__portal::after {
  inset: 43px;
  border-color: #f2bd68;
  background: radial-gradient(circle, #f7d38d 0 8%, #7c319d 10% 34%, #211225 67%);
  box-shadow: 0 0 22px rgba(227, 126, 255, .72);
}

.launcher-download__portal i {
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(236, 179, 103, .36);
  border-radius: 39px;
}

.launcher-download__ornament-line {
  position: absolute;
  top: 50%;
  right: -24px;
  width: 62px;
  height: 1px;
  background: linear-gradient(90deg, #c48747, transparent);
}

.launcher-download__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.launcher-download__eyebrow {
  margin: 0 0 8px;
  color: #d69b60;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.launcher-download__content h2 {
  margin: 0 0 18px;
  color: #fff4df;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.08;
  text-shadow: 0 3px 0 #130d0a, 0 0 22px rgba(172, 79, 222, .2);
}

.launcher-download__intro,
.launcher-download__text {
  max-width: 620px;
  margin: 0;
  color: #f5e5ce;
  line-height: 1.68;
}

.launcher-download__intro {
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  font-weight: 700;
}

.launcher-download__text {
  margin-top: 11px;
  color: #d9c8b2;
  font-size: .96rem;
}

.launcher-download__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 17px;
  margin: 22px 0 26px;
  color: #efc98e;
  font-size: .82rem;
  font-weight: 800;
}

.launcher-download__features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.launcher-download__features span::before {
  content: "◆";
  color: #a84ed2;
  font-size: .62rem;
  text-shadow: 0 0 8px rgba(185, 81, 233, .8);
}

.launcher-download__button {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  width: min(500px, 100%);
  min-height: 76px;
  padding: 11px 24px 12px 14px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 13px;
  color: #fffaf0;
  background:
    linear-gradient(145deg, #9d4c22, #622718 76%, #3d1712) padding-box,
    linear-gradient(115deg, #ffe4a4, #cf7c35 38%, #bd69e8 72%, #ffe3a0) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 220, .35),
    inset 0 -2px 8px rgba(48, 12, 14, .5),
    0 8px 0 #271008,
    0 17px 34px rgba(0, 0, 0, .5),
    -12px 0 34px rgba(122, 41, 179, .16),
    12px 0 34px rgba(239, 145, 48, .2);
  text-align: left;
  text-decoration: none;
  text-shadow: 0 2px 1px #3c140b;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.launcher-download__button::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid rgba(255, 226, 162, .26);
  border-radius: 8px;
  box-shadow: inset 0 0 19px rgba(198, 83, 227, .13), 0 0 13px rgba(245, 160, 63, .08);
  animation: launcher-button-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.launcher-download__button::after {
  content: "";
  position: absolute;
  inset: -85% auto -85% -27%;
  z-index: -1;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 226, .5), transparent);
  transform: rotate(18deg);
  transition: left .5s ease;
  pointer-events: none;
}

.launcher-download__button-icon {
  position: relative;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 2px solid #ffd88e;
  border-radius: 50%;
  color: #fff1c2;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 234, 169, .28), transparent 29%),
    linear-gradient(145deg, #8d3caa, #4a175f 68%, #28102f);
  box-shadow:
    inset 0 0 0 3px rgba(32, 10, 35, .58),
    inset 0 0 16px rgba(222, 118, 255, .42),
    0 0 0 3px rgba(78, 27, 27, .5),
    0 0 22px rgba(188, 72, 233, .42);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 #35103e;
  transition: transform .2s ease, box-shadow .2s ease;
}

.launcher-download__button-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(255, 213, 137, .5);
  border-radius: 50%;
  animation: launcher-button-rune 9s linear infinite;
}

.launcher-download__button-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.launcher-download__button-copy small {
  color: #efc889;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.launcher-download__button-copy strong {
  color: #fffaf0;
  font-size: clamp(.98rem, 2vw, 1.14rem);
  font-weight: 900;
  line-height: 1.25;
}

.launcher-download__button:hover,
.launcher-download__button:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 230, .48),
    inset 0 -2px 8px rgba(50, 12, 16, .5),
    0 10px 0 #271008,
    0 22px 42px rgba(0, 0, 0, .54),
    -15px 0 42px rgba(149, 51, 209, .26),
    15px 0 42px rgba(249, 158, 61, .34);
  filter: saturate(1.16) brightness(1.1);
  transform: translateY(-4px) scale(1.015);
}

.launcher-download__button:hover::after,
.launcher-download__button:focus-visible::after {
  left: 122%;
}

.launcher-download__button:hover .launcher-download__button-icon,
.launcher-download__button:focus-visible .launcher-download__button-icon {
  box-shadow: inset 0 0 0 3px rgba(32, 10, 35, .58), inset 0 0 19px rgba(233, 140, 255, .55), 0 0 0 3px rgba(78, 27, 27, .5), 0 0 30px rgba(205, 91, 245, .65);
  transform: translateY(2px) scale(1.07);
}

.launcher-download__button:focus-visible {
  outline: 3px solid #d895f5;
  outline-offset: 6px;
}

.launcher-download__button:active {
  box-shadow: inset 0 0 0 2px rgba(70, 27, 11, .7), 0 3px 0 #271008, 0 8px 18px rgba(0, 0, 0, .4);
  transform: translateY(5px) scale(1);
}

@keyframes launcher-button-pulse {
  0%, 100% { opacity: .62; box-shadow: inset 0 0 16px rgba(198, 83, 227, .1), 0 0 10px rgba(245, 160, 63, .06); }
  50% { opacity: 1; box-shadow: inset 0 0 24px rgba(198, 83, 227, .23), 0 0 18px rgba(245, 160, 63, .17); }
}

@keyframes launcher-button-rune {
  to { transform: rotate(360deg); }
}
@media (max-width: 760px) {
  .launcher-download {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .launcher-download__ornament {
    min-height: 178px;
  }

  .launcher-download__ornament::before,
  .launcher-download__ornament::after,
  .launcher-download__ornament-line {
    display: none;
  }

  .launcher-download__portal {
    width: 112px;
    height: 112px;
    border-radius: 26px;
  }

  .launcher-download__portal::before { inset: 19px; }
  .launcher-download__portal::after { inset: 32px; }
}

@media (max-width: 620px) {
  .launcher-startbox .profil-grunddaten {
    padding: 27px 14px 34px;
  }

  .launcher-startbox .profil-grunddaten::after {
    inset: 7px;
  }

  .launcher-download__features {
    display: grid;
    justify-items: start;
  }

  .launcher-download__button {
    width: 100%;
    padding: 10px 14px 11px 11px;
  }

  .launcher-download__button-icon {
    width: 43px;
    height: 43px;
    font-size: 1.45rem;
  }

  .launcher-download__button-copy small {
    font-size: .6rem;
    letter-spacing: .1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launcher-download__button,
  .launcher-download__button::after,
  .launcher-download__button-icon {
    transition: none;
  }

  .launcher-download__button::before,
  .launcher-download__button-icon::after {
    animation: none;
  }
}

.launcher-admin-bar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  margin: 0;
}

.launcher-edit-button,
.launcher-dialog-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #b9783d;
  border-radius: 4px;
  color: #fff5e5;
  background: linear-gradient(#6d4225, #382316);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 164, .13), 0 2px 0 #170d08;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.launcher-edit-button:hover,
.launcher-edit-button:focus-visible,
.launcher-dialog-button:hover,
.launcher-dialog-button:focus-visible {
  border-color: #e1a15e;
  background: linear-gradient(#84512b, #462a19);
}

.launcher-message {
  position: relative;
  z-index: 3;
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid;
  border-radius: 4px;
  line-height: 1.45;
}

.launcher-message--success {
  border-color: #6f9d5a;
  color: #e5f7d9;
  background: rgba(34, 65, 28, .8);
}

.launcher-message--error {
  border-color: #b8574b;
  color: #ffe0da;
  background: rgba(73, 25, 21, .85);
}

.launcher-download__button.is-disabled {
  opacity: .55;
  filter: grayscale(.45);
  pointer-events: none;
}

.launcher-edit-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 2px solid #a66a37;
  border-radius: 7px;
  color: #f8ead5;
  background: #171719;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7), inset 0 0 0 2px #33241b;
}

.launcher-edit-dialog::backdrop {
  background: rgba(7, 5, 5, .78);
  backdrop-filter: blur(3px);
}

.launcher-edit-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.launcher-edit-form > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -20px -20px 2px;
  padding: 14px 18px;
  border-bottom: 1px solid #744a2d;
  background: linear-gradient(90deg, #3d2518, #241a18 55%, #352039);
}

.launcher-edit-form h2 {
  margin: 0;
  color: #fff2dc;
  font-size: 1.15rem;
}

.launcher-dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid #9a6840;
  border-radius: 4px;
  color: #fff0d9;
  background: #30231c;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.launcher-edit-form label {
  display: grid;
  gap: 7px;
  color: #f2d9b5;
  font-weight: 800;
}

.launcher-edit-form input,
.launcher-edit-form select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #805636;
  border-radius: 4px;
  color: #fff9ef;
  background: #211d1b;
  font: inherit;
}

.launcher-edit-form input:focus-visible,
.launcher-edit-form select:focus-visible,
.launcher-dialog-close:focus-visible {
  outline: 2px solid #d18bef;
  outline-offset: 2px;
}

.launcher-edit-form__hint {
  margin: -3px 0 0;
  color: #cbbba7;
  font-size: .88rem;
  line-height: 1.5;
}

.launcher-edit-form__hint code {
  color: #f3c985;
  overflow-wrap: anywhere;
}

.launcher-edit-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.launcher-dialog-button--quiet {
  border-color: #6e5a48;
  color: #d9cbb9;
  background: #312b27;
}

.launcher-dialog-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 620px) {
  .launcher-edit-form { padding: 16px; }
  .launcher-edit-form > header { margin: -16px -16px 2px; }
  .launcher-edit-form__actions { flex-direction: column-reverse; }
  .launcher-dialog-button { width: 100%; }
}
@media (max-width: 620px) {
  .launcher-admin-bar {
    top: 10px;
    right: 10px;
  }
}
/* Launcher-Meldungen stehen oberhalb des Inhalts statt als Flex-Spalte daneben. */
.profilseite .hangende-platzhalter.launcher-startbox .profil-grunddaten {
  display: block;
  text-align: initial;
}

.profilseite .launcher-startbox .launcher-message {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 18px;
  text-align: center;
}

/* Verwaltung des Indlvarn-Netzwerks im Launcher-Dialog. */
.launcher-edit-dialog {
  width: min(920px, calc(100vw - 28px));
}

.launcher-edit-shell {
  display: grid;
  min-width: 0;
}

.launcher-edit-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #744a2d;
  background: linear-gradient(90deg, #3d2518, #241a18 55%, #352039);
}

.launcher-edit-dialog__header h2 {
  margin: 0;
  color: #fff2dc;
  font-size: 1.15rem;
}

.launcher-edit-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
  border-bottom: 1px solid #5e402b;
  background: #131315;
}

.launcher-edit-tabs button {
  padding: 10px 15px;
  border: 1px solid #6c4a31;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  color: #d7c6ae;
  background: #29221e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.launcher-edit-tabs button[aria-selected="true"] {
  color: #fff3df;
  border-color: #b7773b;
  background: #442a1b;
  box-shadow: inset 0 2px 0 rgba(226, 153, 83, .22);
}

.launcher-edit-panel[hidden] {
  display: none;
}

.launcher-edit-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid #805636;
  border-radius: 4px;
  color: #fff9ef;
  background: #211d1b;
  font: inherit;
}

.launcher-edit-form textarea:focus-visible,
.launcher-edit-tabs button:focus-visible,
.launcher-add-row:focus-visible,
.launcher-row-remove:focus-visible {
  outline: 2px solid #d18bef;
  outline-offset: 2px;
}

.launcher-network-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.launcher-network-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid #6e4a31;
  border-radius: 5px;
  background: rgba(32, 27, 24, .72);
}

.launcher-network-group legend {
  padding: 0 8px;
  color: #f2c27f;
  font-weight: 900;
}

.launcher-network-items,
.launcher-network-tags {
  display: grid;
  gap: 10px;
}

.launcher-network-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, .55fr) minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #514239;
  border-radius: 4px;
  background: #191718;
}

.launcher-network-required-mods {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 3px;
  padding: 11px;
  border: 1px solid rgba(122, 139, 160, .5);
  border-radius: 4px;
  background: rgba(17, 22, 28, .56);
}

.launcher-network-required-mods__header {
  color: #d9e7f5;
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.launcher-network-required-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launcher-network-required-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid rgba(121, 144, 168, .55);
  border-radius: 4px;
  color: #f4f7fb;
  background: rgba(41, 51, 62, .72);
  cursor: pointer;
}

.launcher-network-required-option input {
  accent-color: #b7773b;
}

.launcher-network-coremods {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  margin-top: 3px;
  padding: 11px;
  border: 1px solid rgba(184, 121, 63, .48);
  border-radius: 4px;
  background: rgba(8, 7, 7, .38);
}

.launcher-network-coremods__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f2c584;
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.launcher-network-coremod-list {
  display: grid;
  gap: 9px;
}

.launcher-network-coremod-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, .55fr) minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 9px;
  border-top: 1px solid rgba(119, 89, 62, .45);
}

.launcher-add-row--small {
  min-height: 30px;
  padding: 4px 9px;
  font-size: .82rem;
}

.launcher-network-tag-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.launcher-add-row,
.launcher-row-remove {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #85603f;
  border-radius: 4px;
  color: #fff0d9;
  background: #34271f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.launcher-add-row {
  justify-self: start;
  color: #f5cf93;
  border-color: #a36b37;
  background: #432a1b;
}

.launcher-row-remove {
  color: #ffd9d1;
  border-color: #94504a;
  background: #472522;
}

.launcher-add-row:hover,
.launcher-row-remove:hover {
  filter: brightness(1.16);
}

.launcher-add-row:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.launcher-network-empty {
  margin: 0;
  color: #c9b9a4;
  font-size: .88rem;
}

@media (max-width: 760px) {
  .launcher-network-split,
  .launcher-network-item,
  .launcher-network-coremod-row {
    grid-template-columns: 1fr;
  }

  .launcher-edit-tabs {
    padding-inline: 16px;
  }

  .launcher-edit-tabs button {
    flex: 1;
  }

  .launcher-network-item .launcher-row-remove {
    justify-self: start;
  }
}
