/* Shared JNT art direction; the launcher and game behavior stay in their existing scripts. */
@font-face {
    font-family: "Cinzel Decorative";
    src: url("media/fonts/CinzelDecorative-Bold.ttf?v=ebd3b37a67e2") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Cinzel Decorative";
    src: url("media/fonts/CinzelDecorative-Black.ttf?v=ebd3b37a67e2") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}
:root {
    --bg: #090e12;
    --bg-2: #10181d;
    --panel: #131d22;
    --panel-2: #1e2a30;
    --line: #65563c;
    --line-2: #8f774c;
    --text: #e8e1d1;
    --muted: #b6b6a9;
    --faint: #9d9f93;
    --gold: #c8a568;
    --gold-2: #eed69e;
    --radius: 3px;
    --fantasy: "Cinzel Decorative", "Palatino Linotype", Georgia, serif;
}
body {
    background: #080e12;
}
body:not(.playing)::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, #06101928, #080e1240 40%, #080e12e8 92%),
        url("media/northrend-hero.webp?v=ebd3b37a67e2") center top / cover no-repeat;
    pointer-events: none;
}
button,
a,
summary,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
.account-item:focus-visible {
    outline: 2px solid #f0d398;
    outline-offset: 4px;
}
::selection {
    background: #745c37;
    color: #fff2d0;
}

/* Centered header, with the same metal rails as the player portal. */
.top {
    position: relative;
    z-index: 10;
    display: block;
    padding: 0 24px;
    border-bottom: 1px solid #7b6541;
    background: #080e11d9;
    box-shadow: 0 3px 16px #0007;
}
.top-shell {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1280px;
    min-height: 94px;
    margin: 0 auto;
    padding: 10px 28px 10px 20px;
    background:
        repeating-linear-gradient(122deg, #ffffff02 0 1px, transparent 1px 5px),
        linear-gradient(#263032, #111b20);
}
.top-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 16px solid transparent;
    border-image: url("media/ui/panel-frame.webp?v=ebd3b37a67e2") 200 / 16px / 0 stretch;
    pointer-events: none;
}
.brand {
    flex: none;
    padding-right: 20px;
    border-right: 1px solid #9d835044;
    text-decoration: none;
}
.brand img {
    width: 98px;
    height: 70px;
}
.client-identity {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: auto;
}
.client-identity strong {
    color: #e8cf98;
    font: 700 14px/1.3 var(--fantasy);
    white-space: nowrap;
}
.client-identity > span {
    color: #a9aca3;
    font-size: 10px;
    letter-spacing: 0.035em;
}
.top nav {
    gap: 18px;
    justify-content: center;
}
.top nav a {
    font-size: 12px;
    color: #c4bea9;
    white-space: nowrap;
}
.top nav a:hover {
    color: #f2d799;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}
.top .btn,
.top #installBtn {
    min-height: 37px;
    padding: 4px 12px;
    font-size: 12px;
    color: #d8c18f;
    background: linear-gradient(#293337, #111c22);
    border: 8px solid transparent;
    border-image: url("media/ui/panel-frame.webp?v=ebd3b37a67e2") 200 / 8px / 0 stretch;
    box-shadow: inset 0 0 10px #0009;
    white-space: nowrap;
}
.top .account-btn {
    min-height: 37px;
    border-radius: 3px;
    border-color: #796640;
    background: linear-gradient(#273238, #111b20);
}

/* The welcome screen is a launcher window, framed by the landscape. */
main {
    max-width: 1200px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
    padding: 52px 32px 54px;
    align-items: start;
}
.intro {
    padding-top: 8px;
    text-align: center;
}
.intro .eyebrow {
    color: #d7c49c;
    font: 700 10px/1.5 var(--fantasy);
    letter-spacing: 0.15em;
    text-shadow: 0 2px 3px #000;
}
.intro h1.has-logo {
    margin: 12px auto 0;
}
.logo {
    width: min(340px, 90%);
    margin: 0 auto;
    filter: drop-shadow(0 9px 22px #000b);
    animation: none;
}
.welcome-title {
    font: 700 25px/1.4 var(--fantasy);
    color: #ead7b0;
    margin: 8px 0 12px;
    text-shadow: 0 2px 5px #000;
}
.intro p.lead {
    margin: 0 auto 18px;
    font-size: 14px;
    max-width: 350px;
    color: #c6ccc4;
    text-shadow: 0 1px 4px #000;
}
.badges {
    justify-content: center;
    gap: 0;
    margin-bottom: 27px;
}
.badges span {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 10px;
    color: #c8b68e;
    font-size: 10px;
}
.badges span + span {
    border-left: 1px solid #b89a5d66;
}
.facts {
    gap: 17px;
    max-width: 415px;
    margin: 0 auto;
    text-align: left;
}
.facts li {
    grid-template-columns: 34px 1fr;
    gap: 13px;
    font-size: 12px;
    line-height: 1.65;
    color: #b4bcb5;
}
.facts li b {
    display: block;
    font-family: var(--serif);
    font-size: 14px;
    color: #dfc995;
    margin-bottom: 2px;
}
.facts svg {
    width: 33px;
    height: 35px;
    margin-top: 2px;
    padding: 6px;
    border: 1px solid #8d7549;
    border-radius: 4px 4px 10px 10px;
    color: #e1c68b;
    background: linear-gradient(#2d4249, #0b1b25);
    box-shadow: 0 2px 7px #0008;
}
main > .launch-section:last-child {
    padding-top: 39px;
    min-width: 0;
}
.card {
    isolation: isolate;
    padding: 56px 30px 26px;
    border: 1px solid #8e7649;
    border-radius: 0;
    background:
        repeating-linear-gradient(119deg, #ffffff02 0 1px, transparent 1px 5px),
        radial-gradient(ellipse at 50% 0, #414a3f44, transparent 65%), linear-gradient(#192225f5, #0c151afc);
    box-shadow:
        inset 0 0 26px #000a,
        0 18px 50px #0008;
}
.card::before {
    z-index: -1;
    inset: -5px;
    padding: 0;
    border: 29px solid transparent;
    border-radius: 0;
    border-image: url("media/ui/panel-frame.webp?v=ebd3b37a67e2") 200 / 29px / 0 stretch;
    background: none;
    mask: none;
    -webkit-mask: none;
}
.launch-title {
    position: absolute;
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 390px;
    max-width: 100%;
    height: 88px;
    padding: 20px 35px 14px;
    margin: 0;
    color: #f0d397;
    font: 700 20px/1 var(--fantasy);
    white-space: nowrap;
    background: url("media/ui/title-crest.webp?v=ebd3b37a67e2") center / 100% 100% no-repeat;
    text-shadow: 0 2px 3px #000;
}
.launch-subtitle {
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #826b3e55;
    text-align: center;
    color: #aaa995;
    font-size: 11px;
}
.step {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 13px;
}
.num {
    width: 27px;
    height: 30px;
    border: 2px solid #947c4c;
    border-radius: 3px 3px 9px 9px;
    background: linear-gradient(#354145, #111e26);
    color: #d9c18c;
    font-family: var(--serif);
    box-shadow:
        inset 0 1px #dec58b33,
        0 2px 5px #0006;
}
.step.done .num {
    background: linear-gradient(#b49351, #614625);
    border-color: #d9b46d;
    color: #fff1c6;
}
.step h2 {
    margin-top: 3px;
    font: 700 14px/1.5 var(--fantasy);
    color: #e4ce9e;
}
.step p {
    font-size: 12px;
    line-height: 1.7;
    color: #b6bcaf;
}
.step + .step {
    border-top-color: #7b663b66;
    margin-top: 24px;
    padding-top: 23px;
}
.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    margin: 15px 0;
}
.seg button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 5px 8px;
    border: 9px solid transparent;
    border-image: url("media/ui/panel-frame.webp?v=ebd3b37a67e2") 200 / 9px / 0 stretch;
    border-radius: 0;
    background: linear-gradient(#273136, #0e1b23);
    color: #b6baa9;
    font-size: 11px;
    line-height: 1.3;
}
.seg button[aria-pressed="true"] {
    color: #f4d79a;
    background: radial-gradient(ellipse at 50% 100%, #cfa04c33, transparent), #252a24;
    box-shadow:
        inset 0 0 8px #cba34e22,
        0 0 8px #d4aa4d16;
}
.seg button:hover {
    filter: brightness(1.14);
}
.btn {
    border-radius: 3px;
    border-color: #7a6746;
    background: linear-gradient(#29363a, #142128);
    color: #d9c69d;
    font-size: 12px;
}
.btn.link {
    background: none;
    border-color: transparent;
}
.btn.primary {
    color: #f5dda5;
    border-color: #ad8749;
    background: linear-gradient(#655134, #37291a);
}
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Painted controls retain real button text and the original handlers. */
#chooseFolder,
#play {
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #efc66f;
    font-family: var(--fantasy);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow:
        0 1px #ffe7a1,
        1px 2px #66370e,
        0 3px 5px #000;
    box-shadow: none;
    filter: drop-shadow(0 4px 4px #0009);
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}
#chooseFolder {
    width: 272px;
    min-height: 86px;
    padding: 14px 23px 14px 92px;
    background-image: url("media/ui/button-join.webp?v=ebd3b37a67e2");
    font-size: 15px;
    line-height: 1.2;
}
#play {
    display: block;
    width: 360px;
    min-height: 106px;
    margin: 13px auto 0;
    padding: 18px 25px 18px 111px;
    background-image: url("media/ui/button-play.webp?v=ebd3b37a67e2");
    font-size: 27px;
    line-height: 1.05;
}
#chooseFolder:hover,
#play:hover:not(:disabled) {
    filter: brightness(1.16) drop-shadow(0 0 9px #d2a34b44) drop-shadow(0 5px 4px #0009);
    transform: translateY(-2px);
}
#chooseFolder:active,
#play:active:not(:disabled) {
    transform: translateY(1px);
}
#play:disabled {
    color: #c0ae86;
    background: transparent url("media/ui/button-play.webp?v=ebd3b37a67e2") center / 100% 100% no-repeat;
    box-shadow: none;
    filter: saturate(0.45) brightness(0.72) drop-shadow(0 4px 4px #0008);
    cursor: not-allowed;
}
#playNote {
    margin: 9px 0 0;
    font-size: 11px;
    text-align: center;
}
.found,
.update {
    border-radius: 3px;
    border-color: #806a42;
    background: #0a1318;
    font-size: 12px;
}
.found.ok {
    border-color: #567048;
}
.found.bad {
    border-color: #9b5e48;
}
.found {
    overflow-wrap: anywhere;
}
.notice {
    border-radius: 2px;
    border-color: #a77447;
    background: #30211ae8;
    color: #e4ceb0;
    font-size: 12px;
    line-height: 1.6;
}
.notice b {
    color: #f7dfb3;
}
.launch-section > .notice {
    margin-top: -25px;
    margin-bottom: 62px;
}
details.options {
    border-top-color: #7b663b55;
    margin-top: 19px;
}
details.options summary {
    font-size: 12px;
    color: #c7b58e;
}
.opt {
    grid-template-columns: 105px minmax(0, 1fr);
    font-size: 12px;
    gap: 10px 13px;
}
.opt select,
.opt input[type="number"] {
    max-width: 100%;
    border-radius: 2px;
    border-color: #746442;
    padding: 8px;
    font-size: 12px;
    background: #0b171e;
}
.opt .hint {
    font-size: 10px;
    color: #a2a696;
}
.dl h3 {
    color: #d6c291;
    font-family: var(--serif);
}
.dl p,
.dl-note,
.stream-store {
    font-size: 11px;
}
.stream-store .btn.link,
.folder-get .btn.link {
    font-size: 11px;
}
footer {
    margin-top: auto;
    padding: 22px 28px;
    border-top: 1px solid #7a643c55;
    color: #949d94;
    background: #070c10a8;
    font-size: 10px;
}
footer > a {
    color: #cdb486;
    text-decoration: none;
    white-space: nowrap;
}
.footer-rule {
    display: inline-block;
    margin: 0 12px;
    font-size: 7px;
    color: #9f804a;
}

/* The same palette continues into account, news and guild drawers and the game HUD. */
.account-btn {
    border-radius: 3px;
}
.account-menu {
    border-radius: 3px;
    border-color: #947e52;
    background: linear-gradient(#202b2ee8, #0e191efc);
    box-shadow:
        inset 0 0 0 3px #070e1377,
        0 12px 35px #000a;
    padding: 12px;
}
.account-item {
    border-radius: 2px;
}
.account-primary {
    border-radius: 2px;
    background: linear-gradient(#c3a369, #967139);
    color: #171209;
}
.news-panel,
.gp-panel {
    background: linear-gradient(145deg, #1c282bf5, #0c161cfb);
    border-left: 3px double #ab8c55;
}
.news-head,
.gp-head {
    border-bottom-color: #8a714355;
    background: linear-gradient(#2a3435aa, transparent);
}
.news-title,
.gp-title {
    font: 700 16px/1.5 var(--fantasy);
}
.news-card {
    border-radius: 3px;
    background: linear-gradient(#263035, #141f25);
}
.news-heading {
    color: #e2cca0;
}
.gp-input,
.gp-select {
    border-radius: 2px;
}
#hud {
    border-radius: 0 0 4px 4px;
    border: 3px double #a28750;
    border-top: 0;
    background: linear-gradient(#243035ed, #0c181eed);
    box-shadow: 0 3px 12px #0008;
}
#hud button {
    border-radius: 2px;
    font-size: 12px;
    color: #daceb3;
}
#hud button:hover {
    border-color: #947c4e;
}
.voice-chip,
#streamPill {
    border-radius: 4px;
    background: #101d24f5;
}
.overlay {
    background:
        linear-gradient(#06111a70, #050b10c9),
        url("media/northrend-hero.webp?v=ebd3b37a67e2") center / cover no-repeat;
}
.overlay > div {
    position: relative;
    isolation: isolate;
    width: min(600px, 100%);
    padding: 28px 35px 35px;
    border: 1px solid #7c6540;
    background: linear-gradient(#18252be8, #0b151bee);
    box-shadow: 0 20px 70px #000a;
}
.overlay > div::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -5px;
    border: 27px solid transparent;
    border-image: url("media/ui/panel-frame.webp?v=ebd3b37a67e2") 200 / 27px / 0 stretch;
    pointer-events: none;
}
.overlay h2 {
    font: 700 22px/1.5 var(--fantasy);
    color: #e8d09b;
}
.overlay p {
    font-size: 13px;
    line-height: 1.7;
}
.loading-logo {
    width: min(280px, 65vw);
    margin-bottom: 14px;
    animation: none;
}
.progress {
    max-width: 100%;
}
.bar {
    height: 9px;
    border: 1px solid #7c6843;
    border-radius: 2px;
    background: #080f16;
}
.bar > i {
    border-radius: 0;
    background: linear-gradient(#f1d69b, #c29548 48%, #8e652f 52%, #ba8c42);
}
.spin {
    width: 32px;
    height: 32px;
    border-width: 2px;
}
#loadingStep {
    color: #b0b6a9;
}
#failureWhat {
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .top {
        padding: 0 14px;
    }
    .top-shell {
        gap: 18px;
    }
    .client-identity strong {
        font-size: 12px;
    }
    .client-identity > span {
        display: none;
    }
    .top nav {
        gap: 13px;
    }
    main {
        gap: 36px;
        padding-left: 26px;
        padding-right: 26px;
    }
    .welcome-title {
        font-size: 22px;
    }
    .card {
        padding-left: 24px;
        padding-right: 24px;
    }
    .step {
        gap: 10px;
        grid-template-columns: 25px minmax(0, 1fr);
    }
    #play {
        font-size: 24px;
        padding-left: 100px;
    }
}
@media (max-width: 860px) {
    .top-shell {
        flex-wrap: wrap;
        gap: 10px 18px;
        padding: 10px 22px 15px;
    }
    .brand {
        border: 0;
        padding: 0;
    }
    .brand img {
        width: 82px;
        height: 59px;
    }
    .client-identity {
        flex: 1;
    }
    .top nav {
        order: 4;
        flex-basis: 100%;
        padding-top: 10px;
        border-top: 1px solid #8b714344;
    }
    main {
        max-width: 620px;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 25px 40px;
    }
    .intro {
        padding-top: 0;
    }
    .logo {
        width: 280px;
    }
    .intro p.lead {
        margin-bottom: 16px;
    }
    .facts {
        display: none;
    }
    .badges {
        margin-bottom: 5px;
    }
    main > .launch-section:last-child {
        padding-top: 38px;
    }
    .card {
        padding-left: 28px;
        padding-right: 28px;
    }
    #play {
        font-size: 27px;
        padding-left: 112px;
    }
}
@media (max-width: 560px) {
    .top {
        padding: 0;
    }
    .top-shell {
        gap: 6px 12px;
        padding: 9px 19px 14px;
    }
    .top-shell::before {
        border-width: 14px;
        border-image-width: 14px;
    }
    .brand img {
        width: 75px;
        height: 54px;
    }
    .client-identity {
        display: none;
    }
    .top-actions {
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
    }
    .top .btn,
    .top #installBtn {
        padding: 2px 7px;
        font-size: 10px;
        min-height: 34px;
    }
    .account-btn {
        max-width: 150px;
    }
    .top .account-name {
        max-width: 75px;
    }
    .top nav a {
        font-size: 11px;
    }
    .top nav {
        padding-top: 8px;
    }
    main {
        padding: 24px 17px 35px;
        gap: 15px;
    }
    .logo {
        width: 265px;
    }
    .welcome-title {
        font-size: 20px;
        margin-top: 8px;
    }
    .intro p.lead {
        font-size: 12px;
    }
    .intro .eyebrow {
        font-size: 8px;
    }
    .badges span {
        font-size: 8px;
        padding: 0 8px;
    }
    .card {
        padding: 46px 18px 23px;
    }
    .launch-title {
        top: -34px;
        width: 330px;
        height: 73px;
        font-size: 17px;
    }
    .launch-subtitle {
        font-size: 10px;
        margin-bottom: 20px;
    }
    .step {
        grid-template-columns: 23px minmax(0, 1fr);
        gap: 10px;
    }
    .num {
        width: 23px;
        height: 27px;
        font-size: 11px;
    }
    .step h2 {
        font-size: 12px;
    }
    .step p {
        font-size: 11px;
    }
    .seg {
        gap: 7px;
    }
    .seg button {
        padding: 4px;
        font-size: 10px;
        border-width: 8px;
        border-image-width: 8px;
    }
    #chooseFolder {
        min-height: 76px;
        width: 250px;
        padding-left: 82px;
        padding-right: 18px;
        font-size: 13px;
    }
    #play {
        min-height: 86px;
        padding-left: 89px;
        padding-right: 18px;
        font-size: 21px;
    }
    .opt {
        grid-template-columns: 1fr;
    }
    .opt .hint {
        grid-column: 1;
    }
    .opt > .name:empty {
        display: none;
    }
    .overlay {
        padding: 19px;
    }
    .overlay > div {
        padding: 22px 18px 26px;
    }
    .overlay h2 {
        font-size: 18px;
    }
    .overlay p {
        font-size: 11px;
    }
    .loading-logo {
        width: 220px;
    }
    .prog-head,
    .prog-sub {
        font-size: 11px;
    }
    footer {
        padding: 20px;
        font-size: 9px;
    }
    footer > a {
        display: block;
        margin-bottom: 10px;
    }
    .footer-rule {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    #chooseFolder,
    #play {
        transition: none;
    }
    #chooseFolder:hover,
    #chooseFolder:active,
    #play:hover:not(:disabled),
    #play:active:not(:disabled) {
        transform: none;
    }
}
