.launcher {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3.5vw, 55px);
  box-sizing: border-box;
  color: #efe8dd;
  color-scheme: dark;
  font: 1rem/1.45 system-ui, sans-serif;
  background: radial-gradient(ellipse at 49% 30%, #51483f 0%, #30302e 42%, #15181b 83%);
}
.launcher *, .launcher *::before, .launcher *::after { box-sizing: border-box; }
.launcher-frame {
  --accent: #c2abec;
  --button: #a78bce;
  position: relative;
  isolation: isolate;
  width: min(100%, 1220px);
  min-height: min(570px, 87svh);
  display: grid;
  grid-template-columns: clamp(148px, 14vw, 188px) minmax(0, 1fr) clamp(178px, 17vw, 235px);
  grid-template-rows: minmax(330px, 1fr) auto;
  align-items: end;
  gap: 12px 16px;
  padding: 2.75rem 0 1.5rem;
}
.launcher-frame[data-realm="human"] { --accent: #f3d095; --button: #cfab76; }
.launcher-frame[data-realm="elf"] { --accent: #b8e2cc; --button: #96c3a9; }
.launcher-frame[data-realm="dwarf"] { --accent: #efcb9c; --button: #c59a68; }
.launcher-frame[data-realm="orc"] { --accent: #e8c6a2; --button: #c09169; }
.launcher-frame[data-realm="mage"] { --accent: #c4ddfc; --button: #9bbce4; }
.launcher-frame[data-realm="druid"] { --accent: #d1e5ac; --button: #adbf83; }
.launcher-frame[data-realm="titan"] { --accent: #ffd0a9; --button: #d69972; }
.launcher-frame[data-realm="assassin"] { --accent: #cce2ec; --button: #9ab6c7; }
.launcher-scene {
  position: absolute;
  inset: 0 5% 0 7%;
  z-index: -1;
  pointer-events: none;
}
.launcher-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 830 / 464;
  filter: drop-shadow(0 18px 21px #0006);
}
.launcher-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 56% 0 0;
  background: linear-gradient(180deg, transparent 0%, #15121be3 84%, #15121b 100%);
}
.launcher-plane { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.launcher-plane.knight { z-index: 2; }
.launcher-rail, .launcher-account {
  align-self: center;
  background: linear-gradient(150deg, #1a2024f2, #18151ef7);
  border: 1px solid #a89bab64;
  border-radius: 9px;
  box-shadow: 0 13px 34px #0c091055;
}
.launcher-rail { grid-column: 1; grid-row: 1 / span 2; padding: .7rem .55rem; }
.launcher-rail h2, .launcher-account h2 { margin: .15rem .4rem .6rem; font-size: 1rem; color: #f4e8d0; }
#launcher-realms { display: grid; gap: .15rem; }
.launcher button { cursor: pointer; font: inherit; }
.launcher button:disabled { opacity: .64; cursor: default; }
.launcher button:focus-visible, .launcher a:focus-visible, .launcher input:focus-visible, .nx-desktop-update a:focus-visible {
  outline: 2px solid #f0cea1;
  outline-offset: 3px;
}
#launcher-realms button {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 35px;
  padding: .25rem .4rem;
  text-align: left;
  font-size: .82rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #e0dadc;
}
#launcher-realms button:hover, #launcher-realms button[aria-pressed="true"] {
  background: #60517355;
  color: var(--accent);
}
#launcher-realms button[aria-pressed="true"] { border-color: #a995c6a0; }
#launcher-realms svg { flex: 0 0 21px; width: 21px; height: 23px; }
.launcher-entry { grid-row: 1; grid-column: 2; padding: 2rem 0 1.9rem; }
.launcher-brand { margin-left: 29%; text-shadow: 0 2px 13px #0a0810, 0 1px #171220; }
.launcher-season {
  margin: 0 0 .45rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
}
#launcher-title { margin: 0; font: 500 clamp(2.35rem, 4.65vw, 4.6rem)/.96 Georgia, serif; }
#launcher-capital { margin: .6rem 0 1.15rem; font-weight: 700; color: #eee5ff; }
#launcher-play, .launcher-signin, #passwordRecovery .enter {
  background: linear-gradient(145deg, var(--accent, #ccb5ea), var(--button, #a78bce));
  color: #191326;
  border: 1px solid #e8dcf6aa;
  border-radius: 5px;
  font-weight: 700;
}
#launcher-play { padding: .72rem 1.65rem; min-width: min(100%, 185px); font-size: 1.2rem; }
#launcher-play:enabled:hover, .launcher-signin:enabled:hover { filter: brightness(1.12); }
.launcher-account { grid-row: 1 / span 2; grid-column: 3; padding: .85rem; margin-top: 5rem; }
.launcher-account h2 { margin-left: 0; }
.launcher-account label, #passwordRecovery label { display: block; font-size: .82rem; }
.launcher-account input, #passwordRecovery input, #passwordRecovery output {
  display: block;
  width: 100%;
  margin: .22rem 0 .6rem;
  padding: .38rem .5rem;
  background: #282631;
  color: #f5ecf3;
  border: 1px solid #786b80;
  border-radius: 4px;
  font: inherit;
}
.launcher-signin { width: 100%; padding: .36rem .6rem; }
#accountStatus, #recoveryStatus { margin: .3rem 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.launcher-account-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .75rem; margin-top: .45rem; }
.launcher-account-links :is(a,button), .launcher-runtime-controls > button, #passwordRecovery .link {
  padding: .17rem 0;
  border: 0;
  background: transparent;
  color: var(--accent, #d7c1f4);
  font-size: .78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.launcher-runtime {
  grid-column: 2;
  grid-row: 2;
  min-height: 79px;
  padding: 0 .5rem 0 15%;
  text-shadow: 0 1px 4px #000;
}
#launcher-status { margin: 0 0 .5rem; color: #f2e9e6; font-size: .9rem; overflow-wrap: anywhere; }
.launcher-runtime progress { display: block; width: 100%; height: .45rem; margin-bottom: .5rem; accent-color: var(--accent); }
.launcher-runtime-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.launcher-versions { display: flex; gap: .65rem; margin: 0 0 0 auto; font-size: .71rem; color: #d5cbd7; }
.launcher-versions div { display: flex; align-items: baseline; gap: .3rem; }
.launcher-versions dd { margin: 0; font-variant-numeric: tabular-nums; }
#passwordRecovery {
  width: min(27rem, calc(100% - 2rem));
  background: #201c26;
  color: #f1e8ec;
  border: 1px solid #9b86ae;
  border-radius: 8px;
  padding: 1.3rem;
}
#passwordRecovery::backdrop { background: #100d17bc; }
#passwordRecovery h2 { margin: 0 0 1rem; font-size: 1.15rem; }
#passwordRecovery .enter { padding: .5rem .8rem; }
#passwordRecovery p { font-size: .86rem; }
#passwordRecovery output { font-family: monospace; overflow-wrap: anywhere; user-select: all; }
.launcher [hidden] { display: none; }
@media (max-width: 900px) {
  .launcher-frame { grid-template-columns: 145px minmax(0,1fr) 179px; column-gap: 8px; }
  .launcher-brand { margin-left: 18%; }
  .launcher-runtime { padding-left: 4%; }
  .launcher-art { width: 112%; left: -6%; }
}
@media (max-width: 660px) {
  .launcher-frame { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(255px, auto) auto auto; padding: .35rem 0; gap: .65rem; }
  .launcher-scene { inset: 3.8rem -6px auto; height: 295px; overflow: hidden; }
  .launcher-art { width: max(100%, 480px); left: 50%; bottom: 0; transform: translateX(-50%); }
  .launcher-rail { grid-column: 1; grid-row: 1; padding: .35rem .4rem; }
  .launcher-rail h2 { margin: .1rem .4rem; font-size: .85rem; }
  #launcher-realms { display: flex; overflow-x: auto; }
  #launcher-realms button { flex: none; white-space: nowrap; }
  .launcher-entry { grid-column: 1; grid-row: 2; align-self: end; padding: .25rem .7rem 1rem; }
  .launcher-brand { margin-left: 37%; }
  #launcher-title { font-size: clamp(1.7rem, 6.3vw, 2.5rem); }
  #launcher-play { min-width: min(100%, 125px); padding: .48rem .8rem; font-size: 1rem; }
  .launcher-account { grid-column: 1; grid-row: 4; margin-top: 0; width: min(100%, 370px); justify-self: center; }
  .launcher-runtime { grid-column: 1; grid-row: 3; padding: .35rem .6rem; }
}
.nx-desktop-update a{border:1px solid #b78a4a;border-radius:3px;background:#372819;color:#ffe5b6;padding:.5rem 1rem;font:inherit;font-weight:bold}
.nx-desktop-update{position:fixed;z-index:1010;right:1rem;bottom:4rem;max-width:calc(100vw - 2rem);box-sizing:border-box;display:grid;gap:.5rem;padding:1rem;background:#1c1914;color:#ffe7b5;border:1px solid #b88a4d;box-shadow:0 4px 15px #000a;font:1rem Georgia,serif}
.nx-desktop-update a{border:1px solid #b78a4a;border-radius:3px;background:#372819;color:#ffe5b6;padding:.5rem 1rem;font:inherit;font-weight:bold}
.nx-desktop-update{position:fixed;z-index:1010;right:1rem;bottom:4rem;max-width:calc(100vw - 2rem);box-sizing:border-box;display:grid;gap:.5rem;padding:1rem;background:#1c1914;color:#ffe7b5;border:1px solid #b88a4d;box-shadow:0 4px 15px #000a;font:1rem Georgia,serif}
.nx-desktop-update a{justify-self:start;text-decoration:none}

html.wonk-native, .wonk-native body.launcher { background: transparent; }
.wonk-native #passwordRecovery::backdrop { background: transparent; }
.wonk-native #launcher-title { cursor: move; user-select: none; }
.launcher-account-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; }
.launcher-native-controls { display: flex; gap: .25rem; }
.launcher-native-controls button {
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  line-height: 1;
  background: #282531;
  border: 1px solid #776884;
  border-radius: 4px;
  color: #f5ebf2;
}

.launcher-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.launcher-backdrop-art {
  position: absolute;
  inset: -12vmax;
  background: #262333;
  filter: blur(clamp(28px, 3.06vmax, 61px)) brightness(.72) saturate(1.15);
}
.launcher-backdrop-art .launcher-plane {
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.14) translateY(-15%);
}
.launcher-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 36%, #100e1970 100%);
}
.wonk-native .launcher-backdrop { display: none; }

.launcher-languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(7px, 1.6vw, 27px);
  margin: 0 0 clamp(12px, 2.9vh, 27px);
}
.launcher-languages .language-coin {
  position: relative;
  flex: none;
  width: clamp(36px, 3vw, 53px);
  height: clamp(36px, 3vw, 53px);
  padding: 4px;
  border-radius: 50%;
  border: 1px solid #806643;
  background: linear-gradient(145deg, #f6dfa1, #8c704d 38%, #352a20 65%, #aa8a54);
  box-shadow: 0 2px 5px #090907ab;
}
.launcher-languages .language-coin svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.launcher-languages .language-coin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 31% 20%, #fff6, transparent 49%), linear-gradient(165deg, transparent 48%, #15100c65);
  box-shadow: inset 0 0 3px #1f170c;
}
.launcher-languages .language-coin[aria-pressed="true"] {
  border: 2px solid #f8d985;
  box-shadow: 0 0 10px #cf9f49a8;
}
.launcher-languages .language-coin:hover { filter: brightness(1.16); }
@media (max-width: 660px) {
  .launcher-languages { width: max-content; max-width: calc(100vw - 40px); margin-left: min(0px, 270px - 53vw); }
}
