/* =====================================================================
   SHADOWSKINGS - LOGIN GATEWAY
   PC + TABLET + IPHONE + ANDROID

   DESKTOP:
   Full Shadowmere presentation + login gateway.

   MOBILE:
   Compact cinematic entrance with login controls immediately accessible.

   IMPORTANT:
   This file does not alter authentication behavior.
===================================================================== */


/* =====================================================================
   RESET / ROOT
===================================================================== */

#login-panel,
#login-panel *,
#login-panel *::before,
#login-panel *::after {
    box-sizing: border-box;
}


#login-panel.sk-login-wrapper {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;
    overflow-y: auto;

    color: #ede8f2;

    background:
        radial-gradient(
            circle at 28% 15%,
            rgba(74, 42, 110, 0.24),
            transparent 35%
        ),
        radial-gradient(
            circle at 82% 38%,
            rgba(92, 48, 133, 0.13),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #050508 0%,
            #08070d 42%,
            #030305 100%
        );

    font-family:
        "Cinzel",
        Georgia,
        serif;

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;
}


/* =====================================================================
   ATMOSPHERE
===================================================================== */

.sk-login-atmosphere {
    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 119px,
            rgba(255, 255, 255, 0.008) 120px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 119px,
            rgba(255, 255, 255, 0.006) 120px
        );

    opacity: 0.7;
}


.sk-login-atmosphere::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    left: -260px;
    top: -300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(121, 73, 174, 0.17),
            transparent 67%
        );

    filter: blur(25px);
}


.sk-login-atmosphere::after {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -180px;
    bottom: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(93, 52, 135, 0.15),
            transparent 68%
        );

    filter: blur(30px);
}


.sk-login-vignette {
    position: fixed;

    inset: 0;

    pointer-events: none;

    box-shadow:
        inset 0 0 200px rgba(0, 0, 0, 0.94);
}


/* =====================================================================
   MAIN DESKTOP GATEWAY
===================================================================== */

.sk-gateway-shell {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(600px, 1.65fr)
        minmax(360px, 0.85fr);

    width: min(1500px, calc(100% - 60px));

    min-height: 820px;

    margin:
        30px auto 16px;

    overflow: hidden;

    border:
        1px solid rgba(173, 139, 210, 0.26);

    background:
        linear-gradient(
            145deg,
            rgba(15, 13, 19, 0.985),
            rgba(6, 6, 10, 0.99)
        );

    box-shadow:
        0 35px 120px rgba(0, 0, 0, 0.85),
        0 0 50px rgba(100, 57, 145, 0.16),
        inset 0 0 90px rgba(112, 70, 155, 0.035);
}


.sk-gateway-shell::before {
    content: "";

    position: absolute;

    z-index: 10;

    left: 10px;
    top: 10px;
    right: 10px;
    bottom: 10px;

    border:
        1px solid rgba(255, 255, 255, 0.025);

    pointer-events: none;
}


/* =====================================================================
   LEFT WORLD PANEL
===================================================================== */

.sk-world-panel {
    position: relative;

    min-width: 0;

    padding:
        38px 45px 30px;

    overflow: hidden;

    border-right:
        1px solid rgba(162, 126, 201, 0.18);

    background:
        radial-gradient(
            circle at 50% 26%,
            rgba(87, 48, 126, 0.12),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            rgba(15, 13, 18, 0.97),
            rgba(8, 8, 11, 0.99)
        );
}


/* =====================================================================
   WORLD HEADER
===================================================================== */

.sk-world-header {
    position: relative;

    z-index: 3;

    text-align: center;
}


.sk-brand-kicker {
    margin-bottom: 7px;

    color: #866b9e;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.42em;
}


.sk-world-title {
    margin: 0;

    color: #f1eaf5;

    font-size:
        clamp(44px, 5.3vw, 78px);

    font-weight: 500;

    line-height: 0.95;

    letter-spacing: 0.075em;

    text-shadow:
        0 0 22px rgba(169, 115, 220, 0.27),
        0 8px 20px rgba(0, 0, 0, 0.85);
}


.sk-world-title-rule {
    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        16px auto 8px;
}


.sk-world-title-rule::before,
.sk-world-title-rule::after {
    content: "";

    width: min(180px, 25%);

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(172, 130, 215, 0.52)
        );
}


.sk-world-title-rule::after {
    transform: scaleX(-1);
}


.sk-world-title-rule span {
    width: 7px;
    height: 7px;

    margin:
        0 12px;

    border:
        1px solid rgba(195, 157, 230, 0.65);

    transform:
        rotate(45deg);
}


.sk-world-tagline {
    margin: 0;

    color: #aaa0af;

    font-family:
        Georgia,
        serif;

    font-size: 14px;
    font-style: italic;

    letter-spacing: 0.1em;
}


/* =====================================================================
   THRONE / HERO ART
===================================================================== */

.sk-throne-stage {
    position: relative;

    width: min(100%, 470px);

    margin:
        26px auto 22px;
}


.sk-throne-aura {
    position: absolute;

    width: 430px;
    height: 430px;

    left: 50%;
    top: 48%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(125, 73, 177, 0.2),
            rgba(71, 41, 101, 0.07) 45%,
            transparent 70%
        );

    filter:
        blur(18px);
}


.sk-throne-frame {
    position: relative;

    width: 100%;

    aspect-ratio: 1.25;

    overflow: hidden;

    border:
        1px solid rgba(175, 135, 212, 0.28);

    background:
        radial-gradient(
            circle at center,
            rgba(38, 28, 43, 0.65),
            #08080a 72%
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.75),
        0 0 35px rgba(116, 65, 160, 0.13),
        inset 0 0 45px rgba(0, 0, 0, 0.72);
}


.sk-throne-art {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    user-select: none;

    filter:
        brightness(0.82)
        contrast(1.06)
        saturate(0.82);

    transform:
        scale(1.02);

    transition:
        transform 1.4s ease,
        filter 1.4s ease;
}


@media (hover: hover) and (pointer: fine) {

    .sk-throne-frame:hover .sk-throne-art {
        transform:
            scale(1.055);

        filter:
            brightness(0.95)
            contrast(1.08)
            saturate(0.95);
    }
}


.sk-throne-fade {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08),
            transparent 48%,
            rgba(5, 5, 7, 0.82) 100%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.44),
            transparent 18%,
            transparent 82%,
            rgba(0, 0, 0, 0.44)
        );
}


/* =====================================================================
   THRONE CORNERS
===================================================================== */

.sk-throne-corner {
    position: absolute;

    z-index: 5;

    width: 28px;
    height: 28px;

    pointer-events: none;
}


.sk-corner-tl {
    left: 8px;
    top: 8px;

    border-left:
        1px solid rgba(212, 181, 239, 0.52);

    border-top:
        1px solid rgba(212, 181, 239, 0.52);
}


.sk-corner-tr {
    right: 8px;
    top: 8px;

    border-right:
        1px solid rgba(212, 181, 239, 0.52);

    border-top:
        1px solid rgba(212, 181, 239, 0.52);
}


.sk-corner-bl {
    left: 8px;
    bottom: 8px;

    border-left:
        1px solid rgba(212, 181, 239, 0.52);

    border-bottom:
        1px solid rgba(212, 181, 239, 0.52);
}


.sk-corner-br {
    right: 8px;
    bottom: 8px;

    border-right:
        1px solid rgba(212, 181, 239, 0.52);

    border-bottom:
        1px solid rgba(212, 181, 239, 0.52);
}


/* =====================================================================
   WORLD COPY
===================================================================== */

.sk-world-copy {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 10px;
}


.sk-world-copy-block {
    display: grid;

    grid-template-columns:
        28px 1fr;

    gap: 10px;

    min-width: 0;

    padding:
        14px 12px;

    border:
        1px solid rgba(146, 111, 180, 0.11);

    background:
        rgba(0, 0, 0, 0.16);
}


.sk-copy-number {
    color: #735b86;

    font-size: 11px;
}


.sk-world-copy-block h2 {
    margin:
        0 0 6px;

    color: #d9d0df;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}


.sk-world-copy-block p {
    margin: 0;

    color: #8f8794;

    font-family:
        Georgia,
        serif;

    font-size: 11px;
    line-height: 1.5;
}


/* =====================================================================
   SYSTEM STRIP
===================================================================== */

.sk-world-systems {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    margin-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}


.sk-system-entry {
    padding:
        12px 10px;

    border-right:
        1px solid rgba(255, 255, 255, 0.045);

    text-align: center;
}


.sk-system-entry:last-child {
    border-right: 0;
}


.sk-system-label {
    display: block;

    margin-bottom: 4px;

    color: #735d82;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: 0.18em;
}


.sk-system-entry strong {
    color: #aaa0b1;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.055em;
}


/* =====================================================================
   RIGHT ENTRY COLUMN
===================================================================== */

.sk-entry-column {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    padding:
        34px 30px;

    background:
        linear-gradient(
            180deg,
            rgba(11, 10, 14, 0.99),
            rgba(5, 5, 8, 0.995)
        );
}


/* =====================================================================
   ENTRY BRAND
===================================================================== */

.sk-entry-brand {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 27px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}


.sk-entry-brand-symbol {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    border:
        1px solid rgba(171, 129, 212, 0.35);

    transform:
        rotate(45deg);

    background:
        rgba(75, 44, 101, 0.15);
}


.sk-entry-brand-symbol span {
    width: 10px;
    height: 10px;

    border:
        1px solid rgba(201, 168, 230, 0.6);
}


.sk-entry-brand > div:last-child {
    display: flex;

    flex-direction: column;
}


.sk-entry-brand-small {
    margin-bottom: 3px;

    color: #715b82;

    font-size: 7px;

    letter-spacing: 0.26em;
}


.sk-entry-brand strong {
    color: #c7bdce;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.11em;
}


/* =====================================================================
   LOGIN CARD
===================================================================== */

.sk-login-card {
    position: relative;

    padding:
        27px 25px 25px;

    border:
        1px solid rgba(166, 127, 202, 0.25);

    border-radius: 4px;

    background:
        linear-gradient(
            145deg,
            rgba(23, 18, 29, 0.95),
            rgba(10, 9, 13, 0.97)
        );

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.55),
        inset 0 0 35px rgba(103, 62, 139, 0.03);

    text-align: left;
}


.sk-login-card::before {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    top: 8px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(187, 145, 224, 0.28),
            transparent
        );
}


.sk-card-eyebrow {
    margin-bottom: 6px;

    color: #806491;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.27em;
}


.sk-login-title {
    margin: 0;

    color: #ede6f2;

    font-size: 28px;
    font-weight: 500;

    letter-spacing: 0.045em;

    text-shadow:
        0 0 18px rgba(150, 94, 197, 0.2);
}


.sk-login-subtitle {
    margin:
        6px 0 24px;

    color: #817987;

    font-family:
        Georgia,
        serif;

    font-size: 12px;
}


/* =====================================================================
   FORM
===================================================================== */

.sk-field {
    margin-bottom: 15px;
}


.sk-form label {
    display: block;

    margin-bottom: 6px;

    color: #8e8395;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}


.sk-input-shell {
    position: relative;
}


.sk-input-mark {
    position: absolute;

    z-index: 2;

    left: 11px;
    top: 50%;

    width: 5px;
    height: 5px;

    transform:
        translateY(-50%)
        rotate(45deg);

    border:
        1px solid rgba(173, 128, 214, 0.45);

    pointer-events: none;
}


.sk-input {
    display: block;

    width: 100%;

    margin: 0;

    padding:
        12px 12px 12px 29px;

    border:
        1px solid rgba(132, 107, 151, 0.29);

    border-radius: 3px;

    outline: none;

    background:
        rgba(3, 3, 6, 0.72);

    color: #e0d9e5;

    font-family:
        Georgia,
        serif;

    font-size: 16px;

    line-height: 1.25;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

    -webkit-appearance: none;
    appearance: none;
}


.sk-input::placeholder {
    color: #514b55;
}


.sk-input:focus {
    border-color:
        rgba(176, 127, 219, 0.62);

    background:
        rgba(15, 9, 19, 0.9);

    box-shadow:
        0 0 18px rgba(120, 70, 164, 0.13);
}


/* =====================================================================
   BUTTONS
===================================================================== */

.sk-btn {
    width: 100%;

    min-height: 46px;

    border-radius: 3px;

    font-family:
        "Cinzel",
        Georgia,
        serif;

    cursor: pointer;

    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


/* =====================================================================
   PRIMARY BUTTON
===================================================================== */

.sk-btn-primary {
    position: relative;

    margin-top: 8px;

    padding:
        10px 18px 12px;

    overflow: hidden;

    border:
        1px solid rgba(189, 145, 227, 0.58);

    background:
        linear-gradient(
            180deg,
            rgba(99, 58, 137, 0.88),
            rgba(49, 29, 69, 0.95)
        );

    color: #eee6f4;

    box-shadow:
        0 0 22px rgba(128, 75, 177, 0.13),
        inset 0 1px rgba(255, 255, 255, 0.08);
}


.sk-btn-primary::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            100deg,
            transparent 30%,
            rgba(255, 255, 255, 0.07) 50%,
            transparent 70%
        );

    transform:
        translateX(-120%);

    transition:
        transform 0.5s ease;
}


@media (hover: hover) and (pointer: fine) {

    .sk-btn-primary:hover:not(:disabled) {
        transform:
            translateY(-2px);

        border-color:
            rgba(218, 182, 246, 0.9);

        background:
            linear-gradient(
                180deg,
                rgba(120, 70, 163, 0.92),
                rgba(62, 36, 86, 0.97)
            );

        box-shadow:
            0 0 30px rgba(142, 83, 194, 0.27);
    }


    .sk-btn-primary:hover:not(:disabled)::before {
        transform:
            translateX(120%);
    }
}


.sk-btn-primary:active:not(:disabled) {
    transform:
        translateY(1px);
}


.sk-btn-primary:disabled {
    opacity: 0.48;

    cursor: default;
}


.sk-btn-small {
    position: relative;

    z-index: 2;

    display: block;

    margin-bottom: 2px;

    font-size: 7px;

    letter-spacing: 0.25em;

    opacity: 0.62;
}


.sk-btn-main {
    position: relative;

    z-index: 2;

    display: block;

    font-size: 13px;

    letter-spacing: 0.09em;
}


/* =====================================================================
   SECONDARY BUTTON
===================================================================== */

.sk-btn-secondary {
    margin: 0;

    padding:
        11px 16px;

    border:
        1px solid rgba(133, 107, 151, 0.3);

    background:
        rgba(24, 20, 29, 0.82);

    color: #a9a0ae;

    font-size: 10px;

    letter-spacing: 0.09em;
}


@media (hover: hover) and (pointer: fine) {

    .sk-btn-secondary:hover {
        transform:
            translateY(-1px);

        border-color:
            rgba(168, 130, 197, 0.5);

        background:
            rgba(55, 39, 67, 0.62);

        color: #ded5e4;
    }
}


/* =====================================================================
   ERROR
===================================================================== */

.sk-error {
    min-height: 20px;

    margin-top: 10px;

    color: #d98a91;

    font-family:
        Georgia,
        serif;

    font-size: 11px;
    line-height: 1.45;
}


/* =====================================================================
   DIVIDER
===================================================================== */

.sk-entry-divider {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 9px;

    margin:
        12px 0;
}


.sk-entry-divider span {
    height: 1px;

    background:
        rgba(255, 255, 255, 0.055);
}


.sk-entry-divider div {
    color: #665d6b;

    font-size: 7px;

    letter-spacing: 0.13em;

    white-space: nowrap;
}


/* =====================================================================
   STATUS PANEL
===================================================================== */

.sk-status-panel {
    margin-top: 17px;

    border:
        1px solid rgba(139, 107, 165, 0.17);

    background:
        rgba(9, 8, 12, 0.82);
}


.sk-panel-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        10px 12px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);

    color: #786c80;

    font-size: 8px;

    letter-spacing: 0.18em;
}


.sk-status-light {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #729a76;

    box-shadow:
        0 0 8px rgba(114, 154, 118, 0.65);
}


.sk-status-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


.sk-status-entry {
    padding:
        11px 7px;

    border-right:
        1px solid rgba(255, 255, 255, 0.045);

    text-align: center;
}


.sk-status-entry:last-child {
    border-right: 0;
}


.sk-status-entry span {
    display: block;

    margin-bottom: 4px;

    color: #625a67;

    font-size: 7px;

    letter-spacing: 0.12em;
}


.sk-status-entry strong {
    color: #a79dac;

    font-size: 9px;
    font-weight: 500;
}


/* =====================================================================
   DISCORD
===================================================================== */

.shadowskings-discord-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;

    min-height: 46px;

    margin-top: 12px;

    padding:
        11px 12px;

    border:
        1px solid rgba(123, 92, 159, 0.24);

    border-radius: 3px;

    background:
        linear-gradient(
            135deg,
            rgba(51, 34, 66, 0.75),
            rgba(14, 12, 18, 0.9)
        );

    color: #a9a0b0;

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size: 9px;

    letter-spacing: 0.075em;

    cursor: pointer;

    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


@media (hover: hover) and (pointer: fine) {

    .shadowskings-discord-btn:hover {
        border-color:
            rgba(163, 119, 205, 0.48);

        background:
            linear-gradient(
                135deg,
                rgba(70, 43, 91, 0.82),
                rgba(20, 14, 24, 0.94)
            );

        color: #dbd2e1;

        box-shadow:
            0 0 18px rgba(111, 65, 151, 0.14);
    }
}


.shadowskings-icon {
    display: block;

    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    object-fit: contain;

    opacity: 0.78;
}


/* =====================================================================
   LORE
===================================================================== */

.sk-entry-lore {
    margin-top: auto;

    padding-top: 25px;

    text-align: center;
}


.sk-entry-lore > span {
    color: #665873;

    font-size: 7px;

    letter-spacing: 0.25em;
}


.sk-entry-lore p {
    max-width: 300px;

    margin:
        9px auto 0;

    color: #756d79;

    font-family:
        Georgia,
        serif;

    font-size: 11px;
    font-style: italic;

    line-height: 1.55;
}


/* =====================================================================
   FOOTER
===================================================================== */

.sk-login-footer {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding:
        4px 20px 22px;

    color: #49434d;

    font-size: 7px;

    letter-spacing: 0.18em;
}


.sk-footer-divider {
    width: 25px;
    height: 1px;

    background:
        rgba(139, 104, 169, 0.3);
}


/* =====================================================================
   MEDIUM DESKTOP / TABLET LANDSCAPE
   761px - 1100px
===================================================================== */

@media (max-width: 1100px) and (min-width: 761px) {

    .sk-gateway-shell {
        grid-template-columns:
            minmax(400px, 1.25fr)
            minmax(330px, 0.85fr);

        width:
            calc(100% - 24px);

        min-height: 760px;

        margin-top: 12px;
    }


    .sk-world-panel {
        padding:
            30px 25px 25px;
    }


    .sk-world-title {
        font-size:
            clamp(40px, 5.7vw, 62px);
    }


    .sk-throne-stage {
        width:
            min(100%, 430px);
    }


    .sk-world-copy {
        grid-template-columns:
            1fr;
    }


    .sk-world-copy-block {
        grid-template-columns:
            24px 1fr;

        padding:
            10px 12px;
    }


    .sk-world-copy-block p {
        font-size: 10px;
    }


    .sk-world-systems {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .sk-system-entry:nth-child(2) {
        border-right: 0;
    }


    .sk-system-entry:nth-child(-n + 2) {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.045);
    }


    .sk-entry-column {
        padding:
            28px 22px;
    }
}


/* =====================================================================
   MOBILE
   IPHONE + ANDROID
===================================================================== */

@media (max-width: 760px) {

    #login-panel.sk-login-wrapper {
        position: fixed;

        height: 100vh;
        height: 100dvh;

        overflow-y: auto;

        padding:
            env(safe-area-inset-top, 0px)
            env(safe-area-inset-right, 0px)
            env(safe-area-inset-bottom, 0px)
            env(safe-area-inset-left, 0px);
    }


    /*
       MOBILE BECOMES A TRUE SINGLE COLUMN.
       NO DESKTOP PANEL CRAMMED INTO A PHONE.
    */

    .sk-gateway-shell {
        display: flex;

        flex-direction: column;

        width: 100%;

        min-height: 100%;

        margin: 0;

        border: 0;

        box-shadow: none;

        overflow: visible;
    }


    .sk-gateway-shell::before {
        display: none;
    }


    /* ================================================================
       MOBILE WORLD HEADER
    ================================================================ */

    .sk-world-panel {
        flex: 0 0 auto;

        width: 100%;

        padding:
            22px 16px 12px;

        overflow: hidden;

        border-right: 0;

        border-bottom:
            1px solid rgba(162, 126, 201, 0.17);

        background:
            radial-gradient(
                circle at 50% 30%,
                rgba(96, 53, 138, 0.18),
                transparent 48%
            ),
            linear-gradient(
                180deg,
                rgba(14, 12, 18, 0.99),
                rgba(7, 7, 10, 0.99)
            );
    }


    .sk-brand-kicker {
        margin-bottom: 5px;

        font-size: 7px;

        letter-spacing: 0.32em;
    }


    .sk-world-title {
        font-size:
            clamp(34px, 11vw, 52px);

        line-height: 1;

        letter-spacing: 0.045em;
    }


    .sk-world-title-rule {
        margin:
            10px auto 5px;
    }


    .sk-world-title-rule::before,
    .sk-world-title-rule::after {
        width: 22%;
    }


    .sk-world-title-rule span {
        width: 6px;
        height: 6px;

        margin:
            0 9px;
    }


    .sk-world-tagline {
        font-size: 11px;

        letter-spacing: 0.07em;
    }


    /* ================================================================
       MOBILE HERO IMAGE

       Cinematic but deliberately compact.
       Login remains close to top of page.
    ================================================================ */

    .sk-throne-stage {
        width:
            min(100%, 390px);

        margin:
            14px auto 0;
    }


    .sk-throne-aura {
        width: 300px;
        height: 240px;

        opacity: 0.8;
    }


    .sk-throne-frame {
        width: 100%;

        height: clamp(155px, 39vw, 220px);

        aspect-ratio: auto;

        border-color:
            rgba(175, 135, 212, 0.22);

        box-shadow:
            0 14px 40px rgba(0, 0, 0, 0.7),
            0 0 24px rgba(116, 65, 160, 0.1);
    }


    .sk-throne-art {
        object-fit: contain;

        transform: none;

        filter:
            brightness(0.9)
            contrast(1.05)
            saturate(0.88);
    }


    .sk-throne-fade {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.02),
                transparent 55%,
                rgba(5, 5, 7, 0.6) 100%
            ),
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.28),
                transparent 15%,
                transparent 85%,
                rgba(0, 0, 0, 0.28)
            );
    }


    .sk-throne-corner {
        width: 20px;
        height: 20px;
    }


    /*
       DESKTOP MARKETING COPY IS REMOVED ON MOBILE.
       PLAYER CAME HERE TO ENTER THE GAME.
    */

    .sk-world-copy {
        display: none;
    }


    /*
       KEEP THE SYSTEM STRIP BUT MAKE IT SMALL.
    */

    .sk-world-systems {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        margin-top: 10px;
    }


    .sk-system-entry {
        padding:
            8px 3px;
    }


    .sk-system-label {
        margin-bottom: 2px;

        font-size: 6px;

        letter-spacing: 0.11em;
    }


    .sk-system-entry strong {
        font-size: 7px;

        letter-spacing: 0;
    }


    /* ================================================================
       MOBILE LOGIN AREA
    ================================================================ */

    .sk-entry-column {
        flex: 1 0 auto;

        width: 100%;

        padding:
            16px 16px
            calc(24px + env(safe-area-inset-bottom, 0px));

        background:
            linear-gradient(
                180deg,
                rgba(8, 7, 11, 0.995),
                rgba(4, 4, 6, 1)
            );
    }


    /*
       DESKTOP GATE BRAND IS REDUNDANT ON MOBILE.
       SHADOWSKINGS TITLE IS ALREADY DIRECTLY ABOVE.
    */

    .sk-entry-brand {
        display: none;
    }


    /* ================================================================
       MOBILE LOGIN CARD
    ================================================================ */

    .sk-login-card {
        width: 100%;

        max-width: 520px;

        margin:
            0 auto;

        padding:
            20px 18px;

        border-color:
            rgba(166, 127, 202, 0.28);

        background:
            linear-gradient(
                145deg,
                rgba(23, 18, 29, 0.97),
                rgba(9, 8, 12, 0.985)
            );

        box-shadow:
            0 18px 45px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(104, 62, 141, 0.06);
    }


    .sk-card-eyebrow {
        margin-bottom: 5px;

        font-size: 7px;

        letter-spacing: 0.22em;
    }


    .sk-login-title {
        font-size: 25px;

        line-height: 1.1;
    }


    .sk-login-subtitle {
        margin:
            5px 0 18px;

        font-size: 11px;
    }


    /* ================================================================
       MOBILE INPUTS

       16px prevents Safari's automatic focus zoom.
    ================================================================ */

    .sk-field {
        margin-bottom: 13px;
    }


    .sk-form label {
        margin-bottom: 6px;

        font-size: 8px;
    }


    .sk-input {
        min-height: 48px;

        padding:
            12px 12px 12px 30px;

        font-size: 16px;
    }


    .sk-btn {
        min-height: 48px;
    }


    .sk-btn-primary {
        margin-top: 5px;

        padding:
            10px 14px;
    }


    .sk-btn-main {
        font-size: 12px;
    }


    .sk-btn-secondary {
        padding:
            11px 14px;
    }


    .sk-error {
        min-height: 18px;

        margin-top: 8px;
    }


    .sk-entry-divider {
        margin:
            10px 0;
    }


    /* ================================================================
       MOBILE STATUS
    ================================================================ */

    .sk-status-panel {
        width: 100%;

        max-width: 520px;

        margin:
            12px auto 0;
    }


    .sk-status-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .sk-status-entry {
        padding:
            9px 4px;
    }


    /* ================================================================
       MOBILE DISCORD
    ================================================================ */

    .shadowskings-discord-btn {
        width: 100%;

        max-width: 520px;

        min-height: 46px;

        margin:
            10px auto 0;
    }


    /* ================================================================
       MOBILE LORE
    ================================================================ */

    .sk-entry-lore {
        margin-top: 17px;

        padding-top: 0;
    }


    .sk-entry-lore > span {
        font-size: 6px;
    }


    .sk-entry-lore p {
        margin-top: 6px;

        font-size: 10px;

        line-height: 1.45;
    }


    /*
       DESKTOP FOOTER IS UNNECESSARY ON PHONE.
    */

    .sk-login-footer {
        display: none;
    }
}


/* =====================================================================
   SMALL PHONES
   OLDER IPHONES / SMALL ANDROID DEVICES
===================================================================== */

@media (max-width: 430px) {

    .sk-world-panel {
        padding:
            18px 12px 10px;
    }


    .sk-brand-kicker {
        font-size: 6px;

        letter-spacing: 0.27em;
    }


    .sk-world-title {
        font-size:
            clamp(31px, 10.5vw, 44px);
    }


    .sk-world-title-rule {
        margin:
            8px auto 4px;
    }


    .sk-world-tagline {
        font-size: 10px;
    }


    .sk-throne-stage {
        width:
            min(100%, 340px);

        margin-top: 11px;
    }


    .sk-throne-frame {
        height:
            clamp(140px, 38vw, 175px);
    }


    .sk-world-systems {
        margin-top: 8px;
    }


    .sk-system-entry {
        padding:
            7px 2px;
    }


    .sk-system-label {
        font-size: 5px;
    }


    .sk-system-entry strong {
        font-size: 6px;
    }


    .sk-entry-column {
        padding:
            13px 12px
            calc(20px + env(safe-area-inset-bottom, 0px));
    }


    .sk-login-card {
        padding:
            18px 15px;
    }


    .sk-login-title {
        font-size: 23px;
    }


    .sk-login-subtitle {
        margin-bottom: 16px;
    }


    .sk-status-entry strong {
        font-size: 8px;
    }


    .shadowskings-discord-btn {
        font-size: 8px;
    }


    .sk-entry-lore {
        margin-top: 14px;
    }
}


/* =====================================================================
   VERY SMALL PHONES
===================================================================== */

@media (max-width: 360px) {

    .sk-world-title {
        font-size: 30px;
    }


    .sk-throne-frame {
        height: 132px;
    }


    .sk-world-systems {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .sk-system-entry:nth-child(2) {
        border-right: 0;
    }


    .sk-system-entry:nth-child(-n + 2) {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.045);
    }


    .sk-system-entry {
        padding:
            6px 3px;
    }


    .sk-login-card {
        padding:
            17px 13px;
    }


    .sk-entry-divider {
        gap: 6px;
    }


    .sk-entry-divider div {
        font-size: 6px;

        letter-spacing: 0.08em;
    }
}


/* =====================================================================
   PHONE LANDSCAPE / SHORT VIEWPORT

   This is important for iPhone + Android landscape.
   We drastically reduce the presentation so the login is reachable.
===================================================================== */

@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {

    #login-panel.sk-login-wrapper {
        overflow-y: auto;
    }


    .sk-gateway-shell {
        display: grid;

        grid-template-columns:
            minmax(260px, 0.8fr)
            minmax(340px, 1fr);

        width: 100%;

        min-height: 100%;

        margin: 0;

        border: 0;

        overflow: visible;
    }


    .sk-world-panel {
        display: flex;

        flex-direction: column;

        justify-content: center;

        min-height: 100vh;
        min-height: 100dvh;

        padding:
            18px 16px;

        border-right:
            1px solid rgba(162, 126, 201, 0.17);

        border-bottom: 0;
    }


    .sk-brand-kicker {
        font-size: 6px;
    }


    .sk-world-title {
        font-size:
            clamp(30px, 5vw, 44px);
    }


    .sk-world-title-rule {
        margin:
            8px auto 4px;
    }


    .sk-world-tagline {
        font-size: 9px;
    }


    .sk-throne-stage {
        width:
            min(100%, 290px);

        margin:
            10px auto 0;
    }


    .sk-throne-frame {
        height: 150px;
    }


    .sk-world-copy,
    .sk-world-systems {
        display: none;
    }


    .sk-entry-column {
        justify-content: center;

        min-height: 100vh;
        min-height: 100dvh;

        padding:
            16px
            max(18px, env(safe-area-inset-right, 0px))
            16px
            max(18px, env(safe-area-inset-left, 0px));
    }


    .sk-entry-brand {
        display: none;
    }


    .sk-login-card {
        max-width: 480px;

        padding:
            16px 18px;
    }


    .sk-card-eyebrow {
        font-size: 6px;
    }


    .sk-login-title {
        font-size: 21px;
    }


    .sk-login-subtitle {
        margin:
            3px 0 12px;

        font-size: 10px;
    }


    .sk-field {
        margin-bottom: 9px;
    }


    .sk-input {
        min-height: 42px;

        padding:
            9px 12px 9px 29px;

        font-size: 16px;
    }


    .sk-btn {
        min-height: 42px;
    }


    .sk-btn-primary {
        padding:
            7px 14px;
    }


    .sk-btn-small {
        font-size: 6px;
    }


    .sk-btn-main {
        font-size: 11px;
    }


    .sk-error {
        min-height: 14px;

        margin-top: 5px;

        font-size: 9px;
    }


    .sk-entry-divider {
        margin:
            6px 0;
    }


    .sk-status-panel,
    .shadowskings-discord-btn,
    .sk-entry-lore,
    .sk-login-footer {
        display: none;
    }
}


/* =====================================================================
   LARGE DESKTOPS
===================================================================== */

@media (min-width: 1600px) {

    .sk-gateway-shell {
        margin-top: 40px;
    }


    .sk-world-panel {
        padding-left: 55px;
        padding-right: 55px;
    }


    .sk-entry-column {
        padding:
            38px 34px;
    }
}


/* =====================================================================
   REDUCED MOTION
===================================================================== */

@media (prefers-reduced-motion: reduce) {

    .sk-throne-art,
    .sk-btn,
    .sk-btn-primary::before,
    .sk-input,
    .shadowskings-discord-btn {
        transition: none !important;
    }
}