/*
 * Aliens Online - Game Over Edition
 * Full-screen layout based on the approved 1402 x 1122 concept artwork.
 */

:root {
    --acid-green: #73d61f;
    --acid-green-bright: #8bff28;
    --acid-green-dark: #2d690d;
    --hover-blue: #1787ff;
    --hover-blue-bright: #5ab1ff;
    --warning-red: #df4233;
    --text: #e8ece9;
    --muted: #aeb8ae;
}

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;
    color: var(--text);
    font-family: "Trebuchet MS", Arial, sans-serif;
}

button,
a {
    font: inherit;
}

/*
 * Desktop layout
 *
 * The concept image and every interactive layer now use percentages of the
 * browser viewport. This allows the complete scene to expand to the full
 * width and height of the screen instead of being restricted by a fixed
 * 1402 x 1122 stage.
 */
.scene-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.scene-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #020403 url('../images/site-shell.png') center / 100% 100% no-repeat;
}

.logo-hitbox {
    position: absolute;
    z-index: 8;
    left: 1.712%;
    top: 2.496%;
    width: 23.538%;
    height: 18.271%;
    border-radius: clamp(24px, 3vw, 48px);
}

.logo-hitbox:focus-visible {
    outline: 3px solid var(--hover-blue-bright);
    outline-offset: -8px;
}

.top-strip {
    position: absolute;
    z-index: 10;
    left: 43.295%;
    top: .446%;
    width: 54.922%;
    height: 4.367%;
    padding: 0 clamp(12px, 1.65vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.6vw, 26px);
    background: rgba(0, 0, 0, .96);
    color: #c7d0c4;
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(11px, .94vw, 17px);
    letter-spacing: 1px;
    white-space: nowrap;
}

.top-strip strong,
.top-strip a {
    font-weight: 500;
}

.top-strip a {
    color: var(--acid-green);
    text-decoration: none;
    letter-spacing: 2px;
}

.top-strip a:hover,
.top-strip a:focus-visible {
    color: var(--hover-blue-bright);
    text-shadow: 0 0 8px var(--hover-blue);
}

.divider {
    margin: 0 clamp(5px, .8vw, 13px);
    color: #b3baa9;
}

.online {
    color: var(--acid-green);
}

.offline {
    color: var(--warning-red);
}

.navigation-mask {
    position: absolute;
    z-index: 2;
    left: 3.780%;
    top: 22.906%;
    width: 19.544%;
    height: 53.476%;
    border-radius: clamp(20px, 2.15vw, 34px);
    background:
        linear-gradient(90deg, rgba(0,0,0,.98), rgba(1,5,3,.96) 72%, rgba(0,0,0,.94)),
        radial-gradient(circle at 18% 20%, rgba(72,157,30,.12), transparent 33%);
}

.site-navigation {
    position: absolute;
    z-index: 8;
    left: 4.137%;
    top: 23.708%;
    width: 18.688%;
    height: 50.624%;
    display: grid;
    grid-template-rows: repeat(9, minmax(0, 1fr));
    gap: clamp(4px, .713vh, 9px);
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 6.8% 0 26.72%;
    overflow: visible;
    color: #edf0ed;
    text-decoration: none;
    background: url('../images/nav-normal.png') center / 100% 100% no-repeat;
    font-family: "Bahnschrift Condensed", "Agency FB", "Arial Narrow", sans-serif;
    font-size: clamp(14px, 1.18vw, 22px);
    letter-spacing: clamp(1px, .13vw, 2px);
    text-shadow: 0 2px 2px #000;
    transition: filter 140ms ease, color 140ms ease;
}

.nav-link span {
    position: relative;
    z-index: 2;
}

/*
 * The hover field starts at the actual left edge of the rectangular button
 * and reaches every remaining border. It no longer sits several pixels
 * inside the frame.
 */
.nav-link::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 3.05%;
    right: 0;
    top: 0;
    bottom: 0;
    border: 1px solid rgba(54, 163, 255, .94);
    border-radius: clamp(6px, .72vw, 11px);
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(90deg, rgba(0, 33, 79, .63), rgba(0, 70, 145, .76) 48%, rgba(0, 42, 101, .68));
    box-shadow:
        inset 0 0 0 1px rgba(71, 184, 255, .35),
        inset 0 0 18px rgba(0, 106, 255, .34),
        0 0 12px rgba(0, 111, 255, .82);
    transition: opacity 140ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
    outline: none;
    filter: brightness(1.18) saturate(1.15);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    opacity: 1;
}

.nav-link.active {
    color: #efffe9;
    filter: brightness(1.18) saturate(1.18);
    text-shadow: 0 0 7px rgba(108, 255, 42, .78), 0 2px 2px #000;
}

.nav-link.active::after {
    opacity: 1;
    border-color: rgba(89, 222, 27, .86);
    background:
        linear-gradient(90deg, rgba(15, 56, 4, .42), rgba(28, 96, 7, .54) 48%, rgba(10, 45, 3, .46));
    box-shadow:
        inset 0 0 0 1px rgba(121, 255, 55, .24),
        inset 0 0 15px rgba(66, 200, 20, .2),
        0 0 10px rgba(66, 200, 20, .58);
}

.nav-link.active:hover::after,
.nav-link.active:focus-visible::after {
    border-color: rgba(54, 163, 255, .94);
    background:
        linear-gradient(90deg, rgba(0, 33, 79, .63), rgba(0, 70, 145, .76) 48%, rgba(0, 42, 101, .68));
    box-shadow:
        inset 0 0 0 1px rgba(71, 184, 255, .35),
        inset 0 0 18px rgba(0, 106, 255, .34),
        0 0 12px rgba(0, 111, 255, .82);
}

.server-panel {
    position: absolute;
    z-index: 8;
    left: 4.922%;
    top: 77.184%;
    width: 17.546%;
    height: 12.923%;
    padding-top: clamp(6px, .98vh, 13px);
    text-align: center;
    isolation: isolate;
    background: transparent;
    border-radius: clamp(10px, 1.15vw, 18px);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
}

/*
 * The generated shell already contains placeholder server-status artwork.
 * This fully opaque backing plate extends to every edge of the panel's black
 * interior so none of that baked-in text or imagery can show around it.
 * The live text keeps its original alignment because only the backing plate
 * is enlarged.
 */
.server-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -.8%;
    right: -.8%;
    top: -3.5%;
    bottom: -4.5%;
    border-radius: clamp(11px, 1.22vw, 19px);
    background: #000;
    box-shadow: inset 0 0 18px rgba(29, 76, 15, .12);
    pointer-events: none;
}

.server-heading {
    color: var(--acid-green);
    font-size: clamp(14px, 1.15vw, 21px);
    letter-spacing: clamp(1px, .13vw, 2px);
}

.server-state {
    margin-top: clamp(4px, .8vh, 10px);
    font-size: clamp(19px, 1.65vw, 30px);
    letter-spacing: clamp(2px, .22vw, 4px);
    text-shadow: 0 0 9px currentColor;
}

.server-rule {
    width: 81.3%;
    height: 1px;
    margin: clamp(6px, .98vh, 12px) auto;
    background: linear-gradient(90deg, transparent, #285f0b 12%, #285f0b 88%, transparent);
}

.players-label {
    color: #c8d2ad;
    font-size: clamp(11px, .98vw, 17px);
    letter-spacing: clamp(1px, .1vw, 1.6px);
}

.players-count {
    margin-top: clamp(2px, .45vh, 6px);
    color: var(--acid-green);
    font-size: clamp(12px, 1vw, 18px);
}

.content-mask {
    position: absolute;
    z-index: 3;
    left: 32.382%;
    top: 16.934%;
    width: 40.656%;
    height: 66.310%;
    border-radius: clamp(18px, 1.85vw, 30px);
    background:
        radial-gradient(circle at 50% 10%, rgba(21, 55, 14, .16), transparent 45%),
        linear-gradient(rgba(0, 4, 2, .985), rgba(0, 2, 1, .995));
    box-shadow: inset 0 0 32px rgba(29, 93, 17, .14);
}

.content-panel {
    position: absolute;
    z-index: 8;
    left: 33.880%;
    top: 18.538%;
    width: 37.589%;
    height: 63.280%;
    padding: clamp(6px, .7vh, 10px) clamp(6px, .6vw, 10px) clamp(14px, 1.95vh, 24px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #386d16 #020503;
}

.content-panel::-webkit-scrollbar {
    width: 9px;
}

.content-panel::-webkit-scrollbar-track {
    background: #020503;
}

.content-panel::-webkit-scrollbar-thumb {
    border: 2px solid #020503;
    border-radius: 10px;
    background: #386d16;
}

.page-heading {
    margin: 0;
    text-align: center;
    color: var(--acid-green);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(20px, 1.75vw, 31px);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(72, 196, 23, .2);
}

.page-kicker {
    margin: clamp(10px, 1.7vh, 20px) 0 clamp(14px, 2.3vh, 28px);
    text-align: center;
    color: var(--acid-green);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(13px, 1.08vw, 19px);
    letter-spacing: clamp(4px, .64vw, 10px);
    text-transform: uppercase;
}

.content-panel p,
.content-panel li {
    color: #e3e7e3;
    font-size: clamp(13px, .96vw, 17px);
    line-height: 1.48;
}

.content-panel p {
    margin: 0 0 clamp(11px, 1.6vh, 19px);
}

.content-panel h2 {
    margin: clamp(17px, 2.4vh, 28px) 0 clamp(10px, 1.35vh, 16px);
    padding-top: clamp(13px, 1.95vh, 23px);
    border-top: 1px solid rgba(76, 149, 28, .42);
    color: var(--acid-green);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(18px, 1.5vw, 27px);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.content-panel h3 {
    margin: 0 0 4px;
    color: #3d94ff;
    font-size: clamp(15px, 1.14vw, 20px);
    font-weight: 500;
}

.content-panel a {
    color: #3d94ff;
    text-decoration: none;
}

.content-panel a:hover,
.content-panel a:focus-visible {
    color: #8bc5ff;
    text-shadow: 0 0 7px rgba(31, 132, 255, .8);
}

.news-list {
    display: grid;
    gap: 0;
}

.news-item {
    position: relative;
    padding: 0 24% clamp(10px, 1.5vh, 18px) 0;
    margin-bottom: clamp(10px, 1.5vh, 18px);
    border-bottom: 1px solid rgba(70, 132, 25, .38);
}

.news-item:last-child {
    margin-bottom: 6px;
}

.news-item p {
    margin: 0;
    font-size: clamp(12px, .9vw, 16px);
    line-height: 1.45;
}

.news-date {
    position: absolute;
    top: 2px;
    right: 0;
    color: var(--acid-green);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(12px, .96vw, 17px);
    letter-spacing: .8px;
}

.feature-list,
.download-list {
    margin: 0;
    padding-left: 22px;
}

.feature-list li,
.download-list li {
    margin-bottom: 13px;
}

.info-card {
    margin: 0 0 16px;
    padding: clamp(11px, 1.4vh, 17px) clamp(12px, 1.25vw, 19px);
    border: 1px solid rgba(81, 151, 31, .38);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(23, 64, 13, .18), rgba(0,0,0,.2));
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, .9vw, 14px);
}

.stat-card {
    padding: clamp(11px, 1.5vh, 18px) clamp(9px, 1vw, 15px);
    text-align: center;
    border: 1px solid rgba(85, 157, 33, .38);
    background: rgba(3, 17, 7, .58);
}

.stat-value {
    display: block;
    color: var(--acid-green);
    font-size: clamp(21px, 1.75vw, 31px);
}

.stat-label {
    display: block;
    margin-top: 5px;
    color: #bcc7ba;
    font-size: clamp(10px, .78vw, 14px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.callout {
    padding: clamp(11px, 1.4vh, 17px) clamp(12px, 1.25vw, 19px);
    border-left: 3px solid var(--hover-blue);
    background: rgba(0, 53, 105, .18);
}

.site-footer {
    position: absolute;
    z-index: 10;
    left: 29.244%;
    top: 92.870%;
    width: 42.083%;
    min-height: 4.902%;
    padding: clamp(5px, .8vh, 10px) clamp(12px, 1.4vw, 22px) 0;
    text-align: center;
    background: rgba(0, 0, 0, .96);
    color: #aeb4ae;
    font-size: clamp(9px, .72vw, 13px);
    line-height: 1.55;
}

@media (max-aspect-ratio: 7 / 6) and (max-width: 760px) {
    html,
    body {
        height: auto;
        min-height: 100%;
    }

    body {
        overflow: auto;
        background:
            linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.78)),
            url('../images/site-shell.png') 74% center / auto 100vh fixed no-repeat,
            #000;
    }

    .scene-viewport {
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .scene-stage {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 20px 16px 26px;
        background: rgba(0, 0, 0, .74);
    }

    .logo-hitbox,
    .navigation-mask,
    .content-mask {
        display: none;
    }

    .top-strip,
    .site-navigation,
    .server-panel,
    .content-panel,
    .site-footer {
        position: static;
        width: 100%;
        height: auto;
    }

    .top-strip {
        padding: 13px 15px;
        flex-wrap: wrap;
        border: 1px solid #28451f;
        font-size: 13px;
    }

    .site-navigation {
        margin: 18px 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 8px;
    }

    .nav-link {
        width: 100%;
        height: 56px;
        padding-left: 67px;
        font-size: 18px;
    }

    .nav-link::after {
        left: 8px;
    }

    .server-panel {
        position: relative;
        margin-bottom: 18px;
        padding: 14px;
        border: 1px solid #28451f;
        background: #000;
    }

    .server-panel::before {
        display: none;
    }

    .content-panel {
        padding: 24px 20px;
        overflow: visible;
        border: 2px solid #24391f;
        border-radius: 18px;
        background: rgba(0, 4, 2, .94);
        box-shadow: 0 0 24px rgba(58, 137, 21, .28);
    }

    .site-footer {
        margin-top: 18px;
        padding: 14px;
        border-top: 1px solid #28451f;
    }

    .news-item {
        padding-right: 0;
    }

    .news-date {
        position: static;
        display: block;
        margin-bottom: 5px;
    }
}

/* Account registration, login, roster, and character creation */
.site-navigation {
    grid-template-rows: repeat(auto-fit, minmax(0, 1fr));
}

.auth-panel {
    padding-left: clamp(18px, 1.8vw, 30px);
    padding-right: clamp(18px, 1.8vw, 30px);
}

.form-intro,
.form-switch {
    text-align: center;
}

.alien-form {
    display: grid;
    gap: clamp(12px, 1.4vh, 18px);
    max-width: 520px;
    margin: 0 auto;
}

.field-group {
    position: relative;
    display: grid;
    gap: 6px;
}

.field-group > span,
.creator-section > h2 {
    color: var(--acid-green);
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(14px, 1vw, 18px);
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.field-group input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #35512a;
    border-radius: 4px;
    outline: none;
    background: linear-gradient(#050a07, #020403);
    color: #f2f5f2;
    box-shadow: inset 0 0 12px rgba(39, 101, 22, .12);
}

.field-group input:focus {
    border-color: var(--hover-blue-bright);
    box-shadow: 0 0 10px rgba(23, 135, 255, .52), inset 0 0 12px rgba(23, 135, 255, .12);
}

.field-group small {
    color: #93a092;
    font-size: 12px;
}

.password-field input {
    padding-right: 68px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    bottom: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #2d6d9f;
    border-radius: 3px;
    background: #06192b;
    color: #70b8ff;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid #4fa71d;
    border-radius: 4px;
    background: linear-gradient(#153f0a, #071d04);
    color: #b6ff7b !important;
    cursor: pointer;
    font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(114, 214, 31, .55);
    box-shadow: inset 0 0 12px rgba(113, 230, 37, .15), 0 0 8px rgba(61, 153, 21, .28);
}

.primary-action:hover,
.primary-action:focus-visible {
    border-color: var(--hover-blue-bright);
    background: linear-gradient(#0b3f75, #031b35);
    color: #fff !important;
    box-shadow: inset 0 0 12px rgba(62, 165, 255, .26), 0 0 12px rgba(23, 135, 255, .62);
}

.secondary-action {
    border-color: #536057;
    background: #090d0a;
    color: #d2d8d2 !important;
}

.form-message {
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid;
    border-radius: 4px;
}

.form-message ul {
    margin: 7px 0 0;
}

.form-message.error {
    border-color: #8d2d28;
    background: rgba(91, 15, 13, .42);
    color: #ffc4be;
}

.form-message.success {
    border-color: #4c8b25;
    background: rgba(23, 75, 12, .42);
    color: #caffaa;
}

.wide-panel {
    left: 28.4%;
    top: 12.4%;
    width: 66.2%;
    height: 76.8%;
    padding: clamp(16px, 1.5vw, 26px);
    border: 1px solid rgba(70, 133, 36, .55);
    border-radius: clamp(14px, 1.4vw, 24px);
    background: linear-gradient(135deg, rgba(0, 5, 2, .985), rgba(1, 10, 6, .965));
    box-shadow: inset 0 0 35px rgba(49, 124, 24, .17), 0 0 22px rgba(0, 0, 0, .8);
}

.account-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.left-heading,
.left-kicker {
    text-align: left;
}

.left-kicker {
    margin-bottom: 0;
}

.compact-action {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 15px;
    font-size: 13px;
}

.empty-roster {
    max-width: 620px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    border: 1px solid #30492a;
    background: rgba(3, 16, 7, .58);
}

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

.player-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 170px;
    overflow: hidden;
    border: 1px solid #4c634a;
    border-radius: 6px;
    background: rgba(5, 10, 7, .92);
}

.player-card.marine {
    border-color: #2c6592;
    background: linear-gradient(135deg, rgba(4, 25, 43, .9), rgba(2, 8, 11, .95));
}

.player-card.alien {
    border-color: #426e27;
    background: linear-gradient(135deg, rgba(14, 39, 8, .9), rgba(2, 8, 3, .95));
}

.player-card.active-player {
    box-shadow: 0 0 13px rgba(99, 235, 37, .62), inset 0 0 15px rgba(80, 195, 29, .11);
}

.player-portrait,
.portrait-option {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.player-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(102, 143, 93, .45);
    background-image: radial-gradient(circle at 50% 32%, rgba(101, 224, 64, .25), transparent 30%), linear-gradient(145deg, #102311, #010302);
}

.player-portrait span,
.portrait-option span {
    color: rgba(206, 240, 202, .58);
    font-family: "Bahnschrift Condensed", sans-serif;
    letter-spacing: 1px;
}

.player-details {
    padding: 12px 14px;
}

.player-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.player-name-row h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 21px;
}

.active-badge {
    padding: 3px 6px;
    border: 1px solid #65bd2f;
    color: #9fff62;
    font-size: 10px;
    letter-spacing: 1px;
}

.player-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px;
    margin: 10px 0;
}

.player-details dl div {
    min-width: 0;
}

.player-details dt {
    color: #839081;
    font-size: 10px;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.player-details dd {
    margin: 1px 0 0;
    overflow: hidden;
    color: #eef1ed;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: #9da79b;
    font-size: 11px;
}

.mini-stats b {
    color: var(--acid-green);
}

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

.faction-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    min-height: 98px;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #3e5540;
    border-radius: 6px;
    background: #050806;
    color: #e9ede8;
    cursor: pointer;
}

.faction-card.marine { border-color: #28648f; }
.faction-card.alien { border-color: #4f772d; }
.faction-card.selected { box-shadow: 0 0 14px rgba(23, 135, 255, .72), inset 0 0 18px rgba(23, 135, 255, .16); }
.faction-card.alien.selected { box-shadow: 0 0 14px rgba(95, 213, 37, .62), inset 0 0 18px rgba(95, 213, 37, .14); }

.faction-emblem {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #7dbcf3;
    font-size: 13px;
}

.faction-card.alien .faction-emblem { color: #83d64d; }
.faction-card strong { align-self: end; font-family: "Bahnschrift Condensed", sans-serif; letter-spacing: 1.5px; }
.faction-card small { color: #9ba49a; }

.creator-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(74, 139, 39, .35);
}

.creator-section > h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}

.name-check-field {
    max-width: 520px;
}

.name-status {
    position: absolute;
    right: 10px;
    bottom: 13px;
    font-size: 12px;
}

.name-status.available { color: #87e34f; }
.name-status.unavailable { color: #ff776d; }

.role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.role-card {
    display: block;
    cursor: pointer;
}

.role-card input {
    position: absolute;
    opacity: 0;
}

.role-card span {
    display: grid;
    min-height: 84px;
    align-content: start;
    gap: 5px;
    padding: 11px;
    border: 1px solid #354835;
    border-radius: 4px;
    background: rgba(4, 11, 6, .8);
}

.role-card strong {
    color: #dce4dc;
    font-family: "Bahnschrift Condensed", sans-serif;
    letter-spacing: 1px;
}

.role-card small {
    color: #8d998b;
    line-height: 1.3;
}

.role-card input:checked + span {
    border-color: var(--hover-blue-bright);
    background: rgba(5, 39, 72, .62);
    box-shadow: 0 0 9px rgba(23, 135, 255, .45);
}

.portrait-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(78px, 1fr));
    gap: 9px;
}

.portrait-option {
    aspect-ratio: 4 / 5;
    border: 1px solid #405240;
    border-radius: 4px;
    background-color: #050906;
    background-image: radial-gradient(circle at 50% 34%, rgba(73, 182, 40, .23), transparent 28%), linear-gradient(145deg, #142316, #010302);
    cursor: pointer;
}

.portrait-option span {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.portrait-option b {
    display: block;
    margin-top: 4px;
    font-size: 22px;
}

.portrait-option.selected {
    border-color: var(--hover-blue-bright);
    box-shadow: 0 0 10px rgba(23, 135, 255, .68);
}

.portrait-note {
    margin-top: 8px !important;
    color: #899486 !important;
    font-size: 11px !important;
}

.portrait-note code {
    color: #79bfff;
}

.creator-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

@media (min-width: 761px) {
    .character-panel,
    .account-panel {
        z-index: 12;
    }
}

@media (max-width: 1100px) and (min-width: 761px) {
    .roster-grid { grid-template-columns: 1fr; }
    .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portrait-grid { grid-template-columns: repeat(3, minmax(78px, 1fr)); }
}

@media (max-width: 760px) {
    .wide-panel { width: 100%; height: auto; }
    .faction-selector,
    .roster-grid { grid-template-columns: 1fr; }
    .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portrait-grid { grid-template-columns: repeat(3, minmax(78px, 1fr)); }
    .account-heading-row { align-items: stretch; flex-direction: column; }
    .player-card { grid-template-columns: 95px minmax(0, 1fr); }
}

.portrait-marine-1 { background-image: url('../images/portraits/marine-1.webp'), radial-gradient(circle at 50% 34%, rgba(54, 142, 211, .25), transparent 29%), linear-gradient(145deg, #10253a, #010304); }
.portrait-marine-2 { background-image: url('../images/portraits/marine-2.webp'), radial-gradient(circle at 50% 34%, rgba(73, 169, 224, .25), transparent 29%), linear-gradient(155deg, #152b3d, #010304); }
.portrait-marine-3 { background-image: url('../images/portraits/marine-3.webp'), radial-gradient(circle at 45% 32%, rgba(52, 128, 196, .28), transparent 30%), linear-gradient(135deg, #0f2437, #020405); }
.portrait-marine-4 { background-image: url('../images/portraits/marine-4.webp'), radial-gradient(circle at 55% 34%, rgba(59, 151, 214, .25), transparent 30%), linear-gradient(160deg, #10283d, #010304); }
.portrait-marine-5 { background-image: url('../images/portraits/marine-5.webp'), radial-gradient(circle at 50% 30%, rgba(83, 170, 222, .24), transparent 29%), linear-gradient(145deg, #14283a, #010304); }
.portrait-marine-6 { background-image: url('../images/portraits/marine-6.webp'), radial-gradient(circle at 48% 35%, rgba(62, 147, 207, .27), transparent 30%), linear-gradient(150deg, #11263a, #010304); }
.portrait-alien-1 { background-image: url('../images/portraits/alien-1.webp'), radial-gradient(ellipse at 50% 35%, rgba(102, 220, 48, .24), transparent 31%), linear-gradient(145deg, #162b0e, #010302); }
.portrait-alien-2 { background-image: url('../images/portraits/alien-2.webp'), radial-gradient(ellipse at 45% 33%, rgba(88, 194, 40, .26), transparent 31%), linear-gradient(155deg, #12270c, #010302); }
.portrait-alien-3 { background-image: url('../images/portraits/alien-3.webp'), radial-gradient(ellipse at 55% 31%, rgba(112, 226, 55, .23), transparent 32%), linear-gradient(135deg, #182e10, #010302); }
.portrait-alien-4 { background-image: url('../images/portraits/alien-4.webp'), radial-gradient(ellipse at 50% 36%, rgba(91, 205, 43, .25), transparent 30%), linear-gradient(160deg, #14290d, #010302); }
.portrait-alien-5 { background-image: url('../images/portraits/alien-5.webp'), radial-gradient(ellipse at 52% 32%, rgba(119, 230, 58, .22), transparent 31%), linear-gradient(145deg, #172d0f, #010302); }
.portrait-alien-6 { background-image: url('../images/portraits/alien-6.webp'), radial-gradient(ellipse at 47% 34%, rgba(84, 193, 39, .27), transparent 31%), linear-gradient(150deg, #11250b, #010302); }
