@font-face {
    font-family: "Overwatch BigNoodleToo";
    src: url("../fonts/overwatch/BigNoodleToo.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Overwatch Futura";
    src: url("../fonts/overwatch/Futura.ttf") format("truetype");
    font-display: swap;
}

:root {
    color-scheme: dark;
    --accent: #28b8ff;
    --accent-light: #79d8ff;
    --paper: #f5f7f8;
    --muted: rgba(255, 255, 255, 0.66);
    --line: rgba(255, 255, 255, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    background: #07131c;
}

body {
    color: var(--paper);
    font-family: "Overwatch Futura", Arial, sans-serif;
}

.community-page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: 20px clamp(24px, 6vw, 96px) 86px;
    overflow: hidden;
}

.background {
    position: fixed;
    z-index: -2;
    inset: 0;
    background-color: #0a2c45;
    background-image: url("slide-paladins.png");
    background-position: center;
    background-size: cover;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 13, 21, 0.83) 0%, rgba(3, 13, 21, 0.56) 28%, rgba(3, 13, 21, 0.08) 58%, rgba(3, 13, 21, 0.14) 100%),
        linear-gradient(180deg, rgba(3, 12, 19, 0.08) 58%, rgba(3, 12, 19, 0.86) 100%);
}

.discord-panel {
    width: 100%;
    max-width: 394px;
    min-width: 0;
    padding: 18px 18px 17px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 4px;
    background: rgba(5, 16, 25, 0.93);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.panel-heading {
    margin-bottom: 12px;
}

.institutional-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.institutional-label span {
    color: var(--accent-light);
}

.institutional-label small {
    color: rgba(255, 255, 255, 0.48);
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0.08em;
}

h1 {
    margin: 11px 0 4px;
    font-family: "Overwatch BigNoodleToo", Impact, "Arial Narrow", sans-serif;
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 0.035em;
    line-height: 1;
    white-space: nowrap;
}

.panel-heading p {
    max-width: 335px;
    margin: 6px 0 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.4;
}

.widget-frame {
    width: 100%;
    min-width: 0;
    height: clamp(330px, calc(100svh - 360px), 500px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    background: #1e1f22;
}

.widget-frame iframe {
    display: block;
    width: 100%;
    height: clamp(330px, calc(100svh - 360px), 500px);
    border: 0;
}

.join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 56px;
    margin-top: 16px;
    padding: 14px 20px;
    border: 1px solid var(--accent-light);
    border-radius: 3px;
    color: #03131e;
    background: var(--accent);
    font-family: "Overwatch Futura", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-decoration: none;
}

.join-button svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    fill: currentColor;
}

.join-button:focus-visible,
.institutional-footer a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.institutional-footer {
    position: absolute;
    z-index: 2;
    right: clamp(24px, 6vw, 96px);
    bottom: 0;
    left: clamp(24px, 6vw, 96px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    border-top: 1px solid var(--line);
    color: rgba(255, 255, 255, 0.72);
}

.footer-signature {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.footer-signature strong {
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.institutional-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.institutional-footer a svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent-light);
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.8;
}

@media (max-width: 760px) {
    .community-page {
        align-items: flex-start;
        justify-content: center;
        min-height: 100svh;
        padding: 22px 14px 112px;
        overflow: visible;
    }

    .background {
        background-position: center;
    }

    .background::after {
        background: rgba(3, 13, 21, 0.74);
    }

    .discord-panel {
        padding: 17px 15px 16px;
    }

    .institutional-label {
        gap: 10px;
        font-size: 0.56rem;
    }

    .institutional-footer {
        right: 14px;
        left: 14px;
        min-height: 88px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .footer-signature {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px 8px;
        text-align: center;
    }

    .institutional-footer a {
        justify-content: center;
        width: 100%;
    }
}

@media (max-height: 850px) and (min-width: 761px) {
    .community-page {
        padding-top: 12px;
        padding-bottom: 74px;
    }

    .discord-panel {
        padding: 16px 18px 14px;
    }

    .join-button {
        min-height: 50px;
        margin-top: 12px;
        padding-block: 10px;
    }

    .institutional-footer {
        min-height: 60px;
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: 1.65rem;
    }

    .institutional-label small {
        display: none;
    }
}
