:root {
    --foe-header-height: clamp(120px, 16.53vw, 140px);
}

body.foe-login-shell {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    background: #1b2838;
    color: #c7d5e0;
    font-family: sans-serif;
}

body.foe-login-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("clan-logo.png") center center / cover no-repeat;
    opacity: .11;
    mix-blend-mode: screen;
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.foe-site-header {
    position: relative;
    z-index: 20;
    height: var(--foe-header-height);
    background-color: #393939;
    background-image: url("foe-header-banner.png");
    background-position: calc(50% - 100px) center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    border-bottom: 1px solid rgba(153, 197, 226, .42);
    box-shadow: 0 5px 24px rgba(0, 0, 0, .28);
}

.foe-menu {
    position: absolute;
    z-index: 40;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.foe-menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid rgba(153, 197, 226, .62);
    border-radius: 10px;
    background: rgba(16, 26, 37, .88);
    color: #e8f4fc;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.foe-menu-toggle::-webkit-details-marker {
    display: none;
}

.foe-menu-toggle::marker {
    content: "";
}

.foe-menu-toggle:hover,
.foe-menu[open] > .foe-menu-toggle {
    background: #263b4d;
    border-color: #66c0f4;
}

.foe-menu-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.foe-menu-bars span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.foe-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100vh - 132px);
    box-sizing: border-box;
    overflow: auto;
    padding: 14px;
    border: 1px solid #45627a;
    border-radius: 10px;
    background: rgba(14, 22, 31, .97);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .48);
}

.foe-menu-heading {
    margin: 0 0 10px;
    color: #e8f4fc;
    font-size: 16px;
    font-weight: 700;
}

.foe-menu-help {
    border: 1px solid #385a73;
    border-radius: 7px;
    background: rgba(23, 36, 49, .96);
}

.foe-menu-help > summary {
    padding: 11px 13px;
    color: #d4e1eb;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}

.foe-menu-help > summary::-webkit-details-marker {
    display: none;
}

.foe-menu-help > summary::after {
    content: "+";
    float: right;
    color: #66c0f4;
    font-size: 17px;
    line-height: 13px;
}

.foe-menu-help[open] > summary::after {
    content: "−";
}

.steam-id-guide {
    margin: 0;
    border-top: 1px solid #385a73;
    background: #101a25;
}

.steam-id-guide img {
    display: block;
    width: 100%;
    max-height: 58vh;
    object-fit: contain;
}

.steam-id-guide figcaption {
    padding: 10px 14px;
    color: #b9c8d5;
    font-size: 13px;
    line-height: 1.4;
}

.steam-id-guide strong {
    color: #fff;
}

.foe-audio-player {
    position: absolute;
    z-index: 35;
    top: 50%;
    right: 18px;
    width: min(340px, calc(100vw - 112px));
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid rgba(102, 192, 244, .5);
    border-radius: 11px;
    background: rgba(15, 24, 34, .90);
    backdrop-filter: blur(8px);
    box-shadow: 0 7px 22px rgba(0, 0, 0, .34);
    transform: translateY(-50%);
}

.foe-audio-play,
.foe-audio-buttons button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid #466985;
    border-radius: 6px;
    background: #22394b;
    color: #e8f4fc;
    cursor: pointer;
}

.foe-audio-play {
    width: 30px;
    height: 30px;
    border-color: #66c0f4;
    border-radius: 8px;
    background: #66c0f4;
    color: #102131;
    font-size: 17px;
    font-weight: 700;
}

.foe-audio-play:disabled,
.foe-audio-buttons button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.foe-audio-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 8px;
    align-items: center;
}

.foe-audio-buttons {
    display: flex;
    gap: 5px;
}

.foe-audio-buttons button {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 14px;
}

.foe-audio-buttons button:hover,
.foe-audio-play:hover {
    filter: brightness(1.12);
}

.foe-audio-track {
    min-width: 0;
}

.foe-audio-track select {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #385a73;
    border-radius: 5px;
    background: #101a25;
    color: #e5edf4;
    font: inherit;
    font-size: 12px;
}

.foe-audio-volume {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9fb0c0;
    font-size: 10px;
}

.foe-audio-volume input {
    width: 100%;
    margin: 0;
    accent-color: #66c0f4;
}

.foe-audio-progress {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: #9fb0c0;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.foe-audio-progress span:last-child {
    text-align: right;
}

.foe-audio-progress input {
    width: 100%;
    min-width: 0;
    margin: 0;
    accent-color: #66c0f4;
    cursor: pointer;
}

.foe-audio-progress input:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.foe-audio-lyrics {
    margin-top: 7px;
    padding: 6px 8px;
    border-top: 1px solid rgba(102, 192, 244, .28);
    color: #f3f7fb;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}

.foe-audio-lyrics[hidden] {
    display: none;
}

.login-page {
    display: flex;
    width: min(1000px, 100%);
    min-height: calc(100vh - var(--foe-header-height));
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto;
    padding: 28px 18px;
}

.box {
    position: relative;
    width: min(320px, 100%);
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid rgba(153, 197, 226, .38);
    border-radius: 11px;
    background: rgba(42, 71, 94, .84);
    text-align: center;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .32);
    backdrop-filter: blur(7px);
}

.box h2 {
    margin: 0 0 18px;
    color: #e5edf4;
    font-size: 22px;
}

.login-method {
    margin: 12px 0;
}

.login-method-help {
    display: none;
    margin: 8px 3px 0;
    color: #d0deea;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.login-method:hover > .login-method-help,
.login-method:focus-within > .login-method-help {
    display: block;
}

.foe-login-steam {
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 11px;
    border: 1px solid #66c0f4;
    border-radius: 5px;
    background: rgba(23, 26, 33, .94);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.foe-login-steam:hover,
.foe-login-steam:focus-visible {
    background: #17232e;
    outline: 2px solid rgba(102, 192, 244, .55);
    outline-offset: 2px;
}

.login-method form {
    margin: 0;
}

.login-method input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 9px;
    padding: 10px;
    border: 0;
    border-radius: 4px;
}

.login-method input[type="password"] {
    margin-top: 0;
}

.login-method .submit {
    background: #66c0f4;
    color: #102131;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 700px) {
    :root {
        --foe-header-height: 120px;
    }

    .foe-site-header {
        background-position: center;
    }

    .foe-menu {
        left: 12px;
    }

    .foe-audio-player {
        top: auto;
        right: 12px;
        bottom: -100px;
        width: calc(100vw - 24px);
        transform: none;
    }

    .login-page {
        min-height: calc(100vh - var(--foe-header-height));
        padding: 114px 18px 28px;
    }
}

/* Hjælpepunkt i burgermenuen og responsivt, centreret SteamID-vindue */
.foe-menu-help-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #385a73;
    border-radius: 7px;
    background: rgba(23, 36, 49, .96);
    color: #d4e1eb;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.foe-menu-help-trigger:hover,
.foe-menu-help-trigger:focus-visible {
    border-color: #66c0f4;
    background: #20384d;
    outline: none;
}
.foe-menu-help-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.foe-menu-help-title { color: #fff; font-size: 13px; font-weight: 700; }
.foe-menu-help-description { color: #aebdcc; font-size: 12px; line-height: 1.35; }
.foe-menu-help-arrow { flex: 0 0 auto; color: #66c0f4; font-size: 18px; }
.foe-help-dialog {
    width: min(680px, calc(100vw - 24px));
    max-width: none;
    max-height: min(88vh, 900px);
    max-height: min(88dvh, 900px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #55758f;
    border-radius: 12px;
    background: #1b2838;
    color: #c7d5e0;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
}
.foe-help-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px); }
.foe-help-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #385a73; background: #17212d; }
.foe-help-dialog-header h2 { margin: 0; color: #e8f4fc; font-size: 17px; line-height: 1.3; }
.foe-help-dialog-close { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #45627a; border-radius: 6px; background: #20384d; color: #fff; font: inherit; cursor: pointer; }
.foe-help-dialog-close:hover, .foe-help-dialog-close:focus-visible { border-color: #66c0f4; background: #315b78; outline: none; }
.foe-help-dialog-close span { margin-left: 4px; font-size: 18px; line-height: 0; }
.foe-help-dialog-body { max-height: calc(88vh - 60px); max-height: calc(88dvh - 60px); overflow: auto; overscroll-behavior: contain; }
.foe-help-dialog .steam-id-guide { background: #101a25; }
.foe-help-dialog .steam-id-guide img { width: 100%; max-height: 62vh; max-height: 62dvh; object-fit: contain; }
@media (max-width: 600px) {
    .foe-menu-help-trigger { align-items: flex-start; gap: 8px; padding: 10px; }
    .foe-menu-help-copy { display: grid; gap: 3px; }
    .foe-menu-help-description { font-size: 11px; }
    .foe-help-dialog { width: calc(100vw - 16px); max-height: 90vh; max-height: 90dvh; border-radius: 9px; }
    .foe-help-dialog-header { padding: 10px 12px; }
    .foe-help-dialog-header h2 { font-size: 15px; }
    .foe-help-dialog-body { max-height: calc(90vh - 54px); max-height: calc(90dvh - 54px); }
    .foe-help-dialog .steam-id-guide img { max-height: 58vh; max-height: 58dvh; }
    .foe-help-dialog .steam-id-guide figcaption { padding: 10px 12px; font-size: 12px; }
}
