/* ==========================================================
   STARNET ONLINE - COMPACT HQ ACCESS TERMINAL
   ========================================================== */

#yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
    position: relative !important;
    isolation: isolate !important;

    box-sizing: border-box !important;

    width: min(370px, calc(100vw - 32px)) !important;
    max-width: 370px !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 32px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 27px 26px 29px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0 !important;

    background: linear-gradient(
        150deg,
        rgba(7, 18, 36, .94),
        rgba(2, 10, 23, .94)
    ) !important;

    border: 1px solid rgba(103, 152, 203, .42) !important;
    border-radius: 11px !important;

    box-shadow:
        0 22px 65px rgba(0, 0, 0, .5),
        0 0 25px rgba(25, 105, 195, .07) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

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

    color: #f5f7fc !important;
    text-align: center !important;
}

#yc-game-menu .starnet-hq-terminal::before,
#yc-game-menu .starnet-hq-terminal::after {
    content: none !important;
    display: none !important;
}

#yc-game-menu .starnet-hq-terminal > * {
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

#yc-game-menu .starnet-hq-terminal .starnet-hq-emblem {
    order: 0 !important;
    display: block !important;

    width: 130px !important;
    height: 115px !important;
    max-width: 100% !important;

    object-fit: contain !important;

    margin: 0 auto 17px !important;
    padding: 0 !important;

    filter: drop-shadow(
        0 0 12px rgba(40, 145, 255, .22)
    ) !important;
}

#yc-game-menu .starnet-hq-terminal h1.starnet-hq-greeting {
    order: 1 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 13px !important;
    padding: 0 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 900 !important;
    line-height: 1.18 !important;

    text-align: center !important;
    white-space: normal !important;

    background: none !important;
    transform: none !important;
    text-shadow: none !important;
}

#yc-game-menu .starnet-hq-terminal h1 .starnet-hq-welcome {
    display: block !important;

    width: 100% !important;

    color: #f4f7ff !important;
    -webkit-text-fill-color: #f4f7ff !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: .005em !important;
    line-height: 1.3 !important;

    white-space: nowrap !important;
    background: none !important;
    transform: none !important;
}

#yc-game-menu .starnet-hq-terminal h1 .starnet-hq-commander {
    display: block !important;

    width: 100% !important;

    color: #ebc252 !important;
    -webkit-text-fill-color: #ebc252 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 31px !important;
    font-weight: 900 !important;
    letter-spacing: .015em !important;
    line-height: 1.25 !important;

    white-space: nowrap !important;
    background: none !important;
    transform: none !important;
}

#yc-game-menu .starnet-hq-terminal .starnet-hq-subtitle {
    order: 2 !important;

    display: block !important;

    margin: 0 0 23px !important;
    padding: 0 !important;

    color: #a9bed3 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;

    text-align: center !important;
}

#yc-game-menu .starnet-hq-terminal .yc-actions {
    order: 3 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

#yc-game-menu .starnet-hq-terminal .yc-actions .starnet-hq-enter {
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 47px !important;

    margin: 0 !important;
    padding: 12px 18px !important;

    background: linear-gradient(
        105deg,
        #ffe969,
        #ffc52b
    ) !important;

    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;

    border: 1px solid #ffe476 !important;
    border-radius: 7px !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .14em !important;

    text-align: center !important;
    text-decoration: none !important;

    box-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
}

#yc-game-menu .starnet-hq-terminal .starnet-hq-enter:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 0 20px rgba(255, 199, 48, .23) !important;
}

#yc-game-menu .starnet-hq-terminal .starnet-hq-enter:focus-visible {
    outline: 2px solid #7dcaff !important;
    outline-offset: 3px !important;
}

/* Never show the previous Sign In button. */
#yc-game-menu .starnet-hq-terminal .yc-signin {
    display: none !important;
}

/* Remove old terminal extras. */
#yc-game-menu .starnet-hq-terminal .yc-hq-terminal-header,
#yc-game-menu .starnet-hq-terminal .yc-hq-terminal-footer,
#yc-game-menu .starnet-hq-terminal .yc-hq-command-intro,
#yc-game-menu .starnet-hq-terminal .yc-hq-command-description,
#yc-game-menu .starnet-hq-terminal .yc-hq-separator,
#yc-game-menu .starnet-hq-terminal .yc-portal-bolt,
#yc-game-menu .starnet-hq-terminal .sno-brand {
    display: none !important;
}

/* Keep the external network status visible. */
#yc-game-menu .yc-top,
#yc-game-menu .yc-bottom {
    z-index: 12 !important;
}

@media (max-width: 480px) {
    #yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
        width: min(350px, calc(100vw - 28px)) !important;
        padding: 23px 20px 25px !important;
    }

    #yc-game-menu .starnet-hq-terminal .starnet-hq-emblem {
        width: 105px !important;
        height: 94px !important;
    }

    #yc-game-menu .starnet-hq-terminal h1 .starnet-hq-welcome {
        font-size: 21px !important;
    }

    #yc-game-menu .starnet-hq-terminal h1 .starnet-hq-commander {
        font-size: 27px !important;
    }
}

@media (max-height: 550px) {
    #yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    #yc-game-menu .starnet-hq-terminal .starnet-hq-emblem {
        width: 80px !important;
        height: 70px !important;
        margin-bottom: 8px !important;
    }

    #yc-game-menu .starnet-hq-terminal .starnet-hq-subtitle {
        margin-bottom: 12px !important;
    }
}


/* STARNET CLASSIFIED TERMINAL V2 */

/* Compact military-grade sci-fi visual design */

#yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
    width: min(390px, calc(100vw - 28px)) !important;
    max-width: 390px !important;

    padding: 18px 24px 20px !important;

    background:
        linear-gradient(
            145deg,
            rgba(9, 22, 43, .96),
            rgba(2, 9, 22, .97)
        ) !important;

    border: 1px solid rgba(91, 157, 218, .55) !important;
    border-radius: 10px !important;

    box-shadow:
        0 25px 80px rgba(0,0,0,.65),
        0 0 35px rgba(18,110,220,.10),
        inset 0 0 30px rgba(35,110,200,.035) !important;

    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

/* Security header */

#yc-game-menu .starnet-hq-terminal .snt-security-header {
    order: -2 !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;

    width: 100% !important;

    padding: 0 0 12px !important;
    margin: 0 0 13px !important;

    border-bottom: 1px solid rgba(83,145,200,.3) !important;
}

#yc-game-menu .starnet-hq-terminal .snt-security-left,
#yc-game-menu .starnet-hq-terminal .snt-security-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;

    white-space: nowrap !important;
}

#yc-game-menu .starnet-hq-terminal .snt-security-icon {
    color: #70c9ff !important;
    font-size: 11px !important;
    text-shadow: 0 0 12px rgba(45,160,255,.65);
}

#yc-game-menu .starnet-hq-terminal .snt-security-title {
    color: #92cefa !important;

    font-family: Arial, sans-serif !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .10em !important;
}

#yc-game-menu .starnet-hq-terminal .snt-waiting-text {
    color: #f4c35b !important;

    font-family: Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .035em !important;
}

#yc-game-menu .starnet-hq-terminal .snt-waiting-dot {
    width: 6px !important;
    height: 6px !important;

    display: inline-block !important;
    flex-shrink: 0 !important;

    border-radius: 50% !important;
    background: #ffbf43 !important;

    box-shadow: 0 0 9px rgba(255,183,49,.9) !important;

    animation: sntWaitingPulse 1.8s ease-in-out infinite !important;
}

@keyframes sntWaitingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .35;
        transform: scale(.75);
    }
}

/* Official STARNET emblem */

#yc-game-menu .starnet-hq-terminal .starnet-hq-emblem {
    order: -1 !important;

    width: 125px !important;
    height: 105px !important;

    margin: 4px auto 7px !important;

    object-fit: contain !important;

    filter:
        drop-shadow(0 0 9px rgba(40,145,255,.25))
        drop-shadow(0 0 20px rgba(30,105,255,.12)) !important;

    animation: sntEmblemGlow 4s ease-in-out infinite !important;
}

@keyframes sntEmblemGlow {
    0%, 100% {
        filter:
            drop-shadow(0 0 8px rgba(30,130,255,.20))
            drop-shadow(0 0 16px rgba(30,110,255,.08));
    }
    50% {
        filter:
            drop-shadow(0 0 15px rgba(35,155,255,.48))
            drop-shadow(0 0 26px rgba(30,115,255,.22));
    }
}

/* Command terminal identification */

#yc-game-menu .starnet-hq-terminal .snt-terminal-identification {
    order: 0 !important;

    width: 100% !important;
    margin: 0 0 16px !important;

    color: #709dbd !important;

    font-family: Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;

    text-align: center !important;
}

/* Commander greeting */

#yc-game-menu .starnet-hq-terminal h1.starnet-hq-greeting {
    order: 1 !important;
    margin: 0 0 12px !important;
}

#yc-game-menu .starnet-hq-terminal h1 .starnet-hq-welcome {
    font-size: 23px !important;
    letter-spacing: .005em !important;
}

#yc-game-menu .starnet-hq-terminal h1 .starnet-hq-commander {
    font-size: 30px !important;
    color: #f5c550 !important;
    -webkit-text-fill-color: #f5c550 !important;
}

#yc-game-menu .starnet-hq-terminal .starnet-hq-subtitle {
    order: 2 !important;
    margin: 0 0 23px !important;
    color: #a9bed3 !important;
}

/* Gold HQ entry button */

#yc-game-menu .starnet-hq-terminal .yc-actions {
    order: 3 !important;
}

#yc-game-menu .starnet-hq-terminal .starnet-hq-enter {
    min-height: 46px !important;

    background:
        linear-gradient(110deg, #ffe66b, #ffc53c) !important;

    border: 1px solid #ffe57b !important;
    border-radius: 6px !important;

    color: #08111c !important;
    -webkit-text-fill-color: #08111c !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 5px 20px rgba(255,180,40,.08) !important;

    transition:
        filter .2s ease,
        box-shadow .2s ease !important;
}

#yc-game-menu .starnet-hq-terminal .starnet-hq-enter:hover {
    filter: brightness(1.09) !important;

    box-shadow:
        0 0 20px rgba(255,197,55,.28),
        0 0 35px rgba(255,197,55,.10) !important;
}

/* Bottom security strip */

#yc-game-menu .starnet-hq-terminal .snt-security-footer {
    order: 4 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;

    width: 100% !important;
    gap: 7px !important;

    margin-top: 17px !important;
    padding-top: 13px !important;

    border-top: 1px solid rgba(83,145,200,.27) !important;

    font-family: Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .035em !important;
}

#yc-game-menu .starnet-hq-terminal .snt-footer-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;

    color: #80c5ae !important;
}

#yc-game-menu .starnet-hq-terminal .snt-footer-dot {
    display: inline-block !important;

    width: 6px !important;
    height: 6px !important;

    background: #51d9ad !important;
    border-radius: 50% !important;

    box-shadow: 0 0 8px rgba(60,230,170,.55) !important;
}

#yc-game-menu .starnet-hq-terminal .snt-footer-right {
    color: #759bb8 !important;
}

/* Responsive layout */

@media (max-width: 480px) {
    #yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
        width: min(350px, calc(100vw - 24px)) !important;
        padding: 17px 17px 19px !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-security-title {
        font-size: 8px !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-waiting-text {
        font-size: 7px !important;
    }

    #yc-game-menu .starnet-hq-terminal .starnet-hq-emblem {
        width: 105px !important;
        height: 88px !important;
    }
}

@media (max-height: 600px) {
    #yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    #yc-game-menu .starnet-hq-terminal .starnet-hq-emblem {
        width: 85px !important;
        height: 70px !important;
        margin-bottom: 4px !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-terminal-identification {
        margin-bottom: 7px !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-security-footer {
        margin-top: 9px !important;
        padding-top: 8px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #yc-game-menu .starnet-hq-terminal .starnet-hq-emblem,
    #yc-game-menu .starnet-hq-terminal .snt-waiting-dot {
        animation: none !important;
    }
}

/* END STARNET CLASSIFIED TERMINAL V2 */


/* STARNET DUAL EMBLEM V6 START */

/* Restore original classified terminal background */
#yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
    background:
        linear-gradient(
            145deg,
            rgba(9,22,43,.96),
            rgba(2,9,22,.97)
        ) !important;

    animation: none !important;
}

/* Shared image container */
#yc-game-menu .starnet-hq-terminal .snt-emblem-container {
    order: -1 !important;

    position: relative !important;
    display: block !important;

    width: 165px !important;
    height: 140px !important;

    max-width: 100% !important;

    margin: 0 auto 4px !important;
    padding: 0 !important;

    flex-shrink: 0 !important;
    isolation: isolate !important;
}

/* Both images occupy exactly the same position */
#yc-game-menu .starnet-hq-terminal .snt-emblem-container img {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

    transform: none !important;
    filter: none !important;

    border: 0 !important;
    background: transparent !important;
}

/* Original emblem always remains underneath */
#yc-game-menu .starnet-hq-terminal .snt-emblem-container .starnet-hq-emblem {
    z-index: 1 !important;
    animation: none !important;
}

/* Energized emblem appears only during the surge */
#yc-game-menu .starnet-hq-terminal .snt-emblem-container .snt-emblem-energized {
    z-index: 2 !important;

    opacity: 0;

    animation:
        starnetDualEmblemSurgeV6 4s linear infinite !important;

    will-change: opacity;
}

/*
    Normal: 0% to 72%
    Charge: 72% to 75%
    Flash: 75% to 80%
    Reset: 80% to 100%

    Instant image switching.
    No continuous breathing glow.
*/

@keyframes starnetDualEmblemSurgeV6 {
    0%, 71.99% {
        opacity: 0;
    }

    72%, 74.99% {
        opacity: .55;
    }

    75%, 79.99% {
        opacity: 1;
    }

    80%, 100% {
        opacity: 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    #yc-game-menu .starnet-hq-terminal .snt-emblem-container {
        width: 145px !important;
        height: 120px !important;
    }
}

/* Short screens */
@media (max-height: 600px) {
    #yc-game-menu .starnet-hq-terminal .snt-emblem-container {
        width: 120px !important;
        height: 100px !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #yc-game-menu .starnet-hq-terminal .snt-emblem-container .snt-emblem-energized {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* STARNET DUAL EMBLEM V6 END */


/* STARNET CONTINUOUS PULSE V7 START */

/* Normal emblem stays beneath energized emblem */
#yc-game-menu .starnet-hq-terminal
.snt-emblem-container .starnet-hq-emblem {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Rapid continuous switching between both images */
#yc-game-menu .starnet-hq-terminal
.snt-emblem-container .snt-emblem-energized {
    animation: starnetContinuousPulseV7 1.2s ease-in-out infinite !important;

    filter: none !important;
    will-change: opacity !important;
}

@keyframes starnetContinuousPulseV7 {
    0%, 100% {
        opacity: 0;
    }

    45%, 55% {
        opacity: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #yc-game-menu .starnet-hq-terminal
    .snt-emblem-container .snt-emblem-energized {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* STARNET CONTINUOUS PULSE V7 END */


/* STARNET DELAYED ACTIVATION V9 START */

/*
  Initial state: Original emblem
  Wait: 1 second
  Then: Continuous 1.2-second energy pulses
*/

#yc-game-menu .starnet-hq-terminal
.snt-emblem-container .snt-emblem-energized {

    opacity: 0;

    animation-name: starnetContinuousPulseV7 !important;
    animation-duration: 2s !important;
    animation-timing-function: ease-in-out !important;
    animation-delay: 1s !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: backwards !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #yc-game-menu .starnet-hq-terminal
    .snt-emblem-container .snt-emblem-energized {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* STARNET DELAYED ACTIVATION V9 END */


/* STARNET COMPACT HUD V12 START */

/* Shorter panel with no forced height:auto */
#yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    row-gap: 3px !important;
    gap: 3px !important;
    min-height: 0 !important;
}

/* Reduce the emblem's allocated vertical space */
#yc-game-menu .starnet-hq-terminal .snt-emblem-container {
    height: 115px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Tight heading */
#yc-game-menu .starnet-hq-terminal h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

/* Tight subtitle */
#yc-game-menu .starnet-hq-terminal p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

/* Tight button spacing */
#yc-game-menu .starnet-hq-terminal button,
#yc-game-menu .starnet-hq-terminal a.yc-enter-hq {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

/* Mobile */
@media (max-width: 480px) {
    #yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-emblem-container {
        height: 105px !important;
    }
}

/* STARNET COMPACT HUD V12 END */


/* STARNET SINGLE BLINK V15 START */

/*
  Initial startup delay: 1 second

  Each repeating cycle:
  0s -> 2s : One blink
  2s -> 3s : Rest (original emblem)
*/

#yc-game-menu .starnet-hq-terminal
.snt-emblem-container .snt-emblem-energized {

    opacity: 0;

    animation-name: starnetSingleBlinkV15 !important;
    animation-duration: 3s !important;
    animation-timing-function: linear !important;
    animation-delay: 1s !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: backwards !important;
}

@keyframes starnetSingleBlinkV15 {

    /* Begin normal */
    0% {
        opacity: 0;
    }

    /* Reach energized peak halfway through 2s blink */
    33.3333% {
        opacity: 1;
    }

    /* Return to normal at 2s */
    66.6667% {
        opacity: 0;
    }

    /* Stay normal during 1s rest */
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #yc-game-menu .starnet-hq-terminal
    .snt-emblem-container .snt-emblem-energized {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* STARNET SINGLE BLINK V15 END */


/* STARNET MOBILE COMPACT V18 START */

@media (max-width: 600px) {

    /* Compact overall terminal */
    #yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
        width: min(90vw, 390px) !important;
        max-width: 390px !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: 82dvh !important;

        padding: 14px 17px 13px !important;

        gap: 0 !important;
        row-gap: 0 !important;

        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }

    /* Security header */
    #yc-game-menu .starnet-hq-terminal .snt-security-header {
        margin: 0 0 10px !important;
        padding: 0 0 10px !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-security-title,
    #yc-game-menu .starnet-hq-terminal .snt-waiting-text {
        font-size: 9px !important;
        letter-spacing: .05em !important;
    }

    /* Emblem container - preserve both animated layers */
    #yc-game-menu .starnet-hq-terminal .snt-emblem-container {
        width: 112px !important;
        height: 100px !important;

        margin: 0 auto 3px !important;
        padding: 0 !important;
    }

    /* Terminal identification */
    #yc-game-menu .starnet-hq-terminal .snt-terminal-identification {
        margin: 0 0 16px !important;
        padding: 0 !important;

        font-size: 8px !important;
        line-height: 1.2 !important;
        letter-spacing: .08em !important;
    }

    /* Welcome heading */
    #yc-game-menu .starnet-hq-terminal h1.starnet-hq-greeting {
        margin: 0 0 10px !important;
        padding: 0 !important;

        font-size: clamp(23px, 6.5vw, 29px) !important;
        line-height: 1.08 !important;
        letter-spacing: .01em !important;
    }

    #yc-game-menu .starnet-hq-terminal .starnet-hq-welcome,
    #yc-game-menu .starnet-hq-terminal .starnet-hq-commander {
        line-height: 1.08 !important;
    }

    /* Subtitle */
    #yc-game-menu .starnet-hq-terminal .starnet-hq-subtitle {
        margin: 0 0 17px !important;
        padding: 0 !important;

        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Action wrapper */
    #yc-game-menu .starnet-hq-terminal .yc-actions {
        width: 100% !important;
        max-width: 280px !important;

        margin: 0 auto !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* ENTER HQ button */
    #yc-game-menu .starnet-hq-terminal .yc-enter {
        min-height: 43px !important;
        height: 43px !important;

        margin: 0 !important;
        padding: 9px 14px !important;

        font-size: 12px !important;
        letter-spacing: .14em !important;
    }

    /* Remove unused message space */
    #yc-game-menu .starnet-hq-terminal .yc-message {
        display: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Security footer */
    #yc-game-menu .starnet-hq-terminal .snt-security-footer {
        margin: 15px 0 0 !important;
        padding: 10px 0 0 !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-security-footer * {
        font-size: 8px !important;
        letter-spacing: .02em !important;
    }
}

/* Short mobile screens */
@media (max-width: 600px) and (max-height: 700px) {

    #yc-game-menu .starnet-hq-terminal .snt-emblem-container {
        width: 95px !important;
        height: 83px !important;
    }

    #yc-game-menu .starnet-hq-terminal .snt-terminal-identification {
        margin-bottom: 10px !important;
    }

    #yc-game-menu .starnet-hq-terminal .starnet-hq-subtitle {
        margin-bottom: 12px !important;
    }
}

/* STARNET MOBILE COMPACT V18 END */


/* STARNET HUD TRANSPARENCY V19 START */

/*
  Subtle glass transparency.
  Only the HUD background becomes translucent.
  Text, emblem, button and borders remain solid.
*/

#yc-game-menu .yc-content.yc-portal-welcome.starnet-hq-terminal {
    background:
        linear-gradient(
            145deg,
            rgba(9, 22, 43, 0.90),
            rgba(2, 9, 22, 0.90)
        ) !important;

    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

/* STARNET HUD TRANSPARENCY V19 END */


/* STARNET TRANSITION V24 START */

/* Remove cyan outline when button receives focus
   from Safari or automatic focus restoration. */
#yc-game-menu .starnet-hq-terminal
.starnet-hq-enter:focus,
#yc-game-menu .starnet-hq-terminal
.starnet-hq-enter:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
}

/* Preserve a visible keyboard focus indicator,
   using a gold inner ring rather than cyan. */
#yc-game-menu .starnet-hq-terminal
.starnet-hq-enter:focus-visible {
    box-shadow:
        inset 0 0 0 2px #071321,
        inset 0 0 0 4px #ffe476 !important;
}

/* Keep the cinematic video beneath the HUD. */
#yc-game-menu #starnet-hq-flight {
    position: absolute !important;
    z-index: 5 !important;
}

/* STARNET TRANSITION V24 END */


/* STARNET HUD POLISH V25 START */

/* 1. Remove redundant SECURE ACCESS label and icon */
#yc-game-menu .starnet-hq-terminal
.snt-security-left {
    display: none !important;
}

/* Keep WAITING FOR LOGIN on the right */
#yc-game-menu .starnet-hq-terminal
.snt-security-header {
    justify-content: flex-end !important;
}

/* 2. Slightly stronger HUD opacity on mobile only */
@media (max-width: 600px) {

    #yc-game-menu
    .yc-content.yc-portal-welcome.starnet-hq-terminal {

        background: linear-gradient(
            145deg,
            rgba(9, 22, 43, .94),
            rgba(2, 9, 22, .94)
        ) !important;

        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }
}

/* STARNET HUD POLISH V25 END */


/* STARNET MOBILE TRANSPARENCY V26 START */

@media (max-width: 600px) {

    #yc-game-menu
    .yc-content.yc-portal-welcome.starnet-hq-terminal {

        background: linear-gradient(
            145deg,
            rgba(9, 22, 43, .78),
            rgba(2, 9, 22, .78)
        ) !important;

        backdrop-filter: blur(3px) !important;
        -webkit-backdrop-filter: blur(3px) !important;
    }
}

/* STARNET MOBILE TRANSPARENCY V26 END */


/* STARNET HUD STATUS V27 START */

/* Hide the old top-left floating status */
#yc-game-menu .yc-top {
    display: none !important;
}

/* Use the HUD header as the status row */
#yc-game-menu .starnet-hq-terminal
.snt-security-header {
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

/* Restore the left header area */
#yc-game-menu .starnet-hq-terminal
.snt-security-left {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

/* Replace the old blue diamond with green status light */
#yc-game-menu .starnet-hq-terminal
.snt-security-icon {
    font-size: 0 !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #37ed86 !important;
    box-shadow:
        0 0 7px #37ed86,
        0 0 14px rgba(55,237,134,.65) !important;
}

/* Online status lettering */
#yc-game-menu .starnet-hq-terminal
.snt-security-title {
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .07em !important;
    color: #ffde21 !important;
}

/* Keep login status right aligned */
#yc-game-menu .starnet-hq-terminal
.snt-security-right {
    margin-left: auto !important;
}

/* Smaller text on mobile */
@media (max-width: 480px) {
    #yc-game-menu .starnet-hq-terminal
    .snt-security-title {
        font-size: 8px !important;
        letter-spacing: .03em !important;
    }

    #yc-game-menu .starnet-hq-terminal
    .snt-security-header {
        gap: 5px !important;
    }
}

/* STARNET HUD STATUS V27 END */


/* STARNET MINIMAL HUD V29 START */

/* Restore STARNET IS ONLINE to viewport top-left */
#yc-game-menu .yc-top {
    display: flex !important;
    position: absolute !important;
    z-index: 12 !important;
}

/* Static green light */
#yc-game-menu .yc-online .yc-dot {
    background: #37ed86 !important;
    box-shadow:
        0 0 6px #37ed86,
        0 0 13px rgba(55,237,134,.7) !important;

    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Yellow online text */
#yc-game-menu .yc-online {
    color: #ffde21 !important;
    text-shadow: none !important;
    animation: none !important;
}

/* Remove the entire redundant HUD header */
#yc-game-menu .starnet-hq-terminal
.snt-security-header {
    display: none !important;
}

/* Remove the entire redundant HUD footer */
#yc-game-menu .starnet-hq-terminal
.snt-security-footer {
    display: none !important;
}

/* Remove any old header/footer spacing */
#yc-game-menu .starnet-hq-terminal
.snt-security-header,
#yc-game-menu .starnet-hq-terminal
.snt-security-footer {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Keep the emblem and its existing animation intact */
#yc-game-menu .starnet-hq-terminal
.snt-emblem-container {
    margin-top: 0 !important;
}

/* STARNET MINIMAL HUD V29 END */


/* STARNET RESPONSIVE STATUS V30 START */

/* Desktop: top-left */
#yc-game-menu .yc-top {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Mobile: top-right */
@media (max-width: 600px) {

    #yc-game-menu .yc-top {
        justify-content: flex-end !important;
        text-align: right !important;
    }

    #yc-game-menu .yc-online {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* STARNET RESPONSIVE STATUS V30 END */


/* STARNET COMMAND TERMINAL V31 START */

/* Restore clean technical header and footer */
#yc-game-menu .starnet-hq-terminal .snt-security-header,
#yc-game-menu .starnet-hq-terminal .snt-security-footer {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Header */
#yc-game-menu .starnet-hq-terminal .snt-security-header {
    padding: 0 0 11px !important;
    margin: 0 0 12px !important;
    border-bottom: 1px solid rgba(83,145,200,.3) !important;
}

/* Footer */
#yc-game-menu .starnet-hq-terminal .snt-security-footer {
    margin: 15px 0 0 !important;
    padding: 11px 0 0 !important;
    border-top: 1px solid rgba(83,145,200,.27) !important;
}

/* Show technical labels */
#yc-game-menu .starnet-hq-terminal .snt-security-left,
#yc-game-menu .starnet-hq-terminal .snt-security-right,
#yc-game-menu .starnet-hq-terminal .snt-footer-left,
#yc-game-menu .starnet-hq-terminal .snt-footer-right {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* Remove ALL HUD status lights */
#yc-game-menu .starnet-hq-terminal .snt-security-icon,
#yc-game-menu .starnet-hq-terminal .snt-waiting-dot,
#yc-game-menu .starnet-hq-terminal .snt-footer-dot {
    display: none !important;
    animation: none !important;
}

/* Static technical text */
#yc-game-menu .starnet-hq-terminal .snt-security-title,
#yc-game-menu .starnet-hq-terminal .snt-waiting-text,
#yc-game-menu .starnet-hq-terminal .snt-footer-left,
#yc-game-menu .starnet-hq-terminal .snt-footer-right {
    font-family: Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .07em !important;
    animation: none !important;
    text-shadow: none !important;
}

#yc-game-menu .starnet-hq-terminal .snt-security-title {
    color: #91bad8 !important;
}

#yc-game-menu .starnet-hq-terminal .snt-waiting-text,
#yc-game-menu .starnet-hq-terminal .snt-footer-right {
    color: #eac56d !important;
}

#yc-game-menu .starnet-hq-terminal .snt-footer-left {
    color: #81a5c3 !important;
}

/* Keep labels compact on phones */
@media (max-width: 480px) {
    #yc-game-menu .starnet-hq-terminal .snt-security-title,
    #yc-game-menu .starnet-hq-terminal .snt-waiting-text,
    #yc-game-menu .starnet-hq-terminal .snt-footer-left,
    #yc-game-menu .starnet-hq-terminal .snt-footer-right {
        font-size: 7px !important;
        letter-spacing: .02em !important;
    }
}

/* STARNET COMMAND TERMINAL V31 END */
