/* ========================================================================== */
/* ARCADEON VICE 3 — clean cinematic hero, account pill and refined actions   */
/* ========================================================================== */

:root {
    --vi-cream: #fff7f3;
    --vi-ink: #12101c;
    --vi-glass: rgba(14, 11, 25, .62);
    --vi-glass-strong: rgba(14, 11, 25, .86);
    --vi-glass-line: rgba(255, 255, 255, .14);
}

/* Floating navigation surface */
#navbar.ui.secondary.menu,
body.dark #navbar.ui.secondary.menu:not(.inverted) {
    right: clamp(.8rem, 2vw, 2rem);
    left: clamp(.8rem, 2vw, 2rem);
    min-height: 4.25rem;
    padding: .42rem .55rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1.35rem;
    background: rgba(11, 9, 20, .42);
    box-shadow: 0 18px 55px rgba(3, 2, 10, .18);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

#navbar.ui.secondary.menu.vice-nav-scrolled,
body.dark #navbar.ui.secondary.menu.vice-nav-scrolled {
    background: var(--vi-glass-strong);
    border-color: rgba(255,255,255,.13);
    box-shadow: 0 20px 60px rgba(3, 2, 10, .38);
}

#navbar .vice-brand { padding: .45rem .5rem; }
.vice-brand-mark b { font-size: 1.65rem; letter-spacing: -.1em; }

.vice-nav-links {
    padding: .25rem;
    border-color: rgba(255,255,255,.1);
    background: rgba(9,7,17,.44);
}

#navbar.ui.menu .vice-nav-links > .item,
body.dark #navbar.ui.menu .vice-nav-links > .item:not(.active) {
    min-height: 2.55rem;
    padding: .78rem 1.05rem;
    font-size: .62rem;
    letter-spacing: .14em;
}

#navbar .right.menu {
    gap: .32rem;
    margin-right: 0;
}

/* Guest actions */
#navbar .right.menu .vice-auth-button,
body.dark #navbar .right.menu .vice-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.85rem;
    padding: .8rem 1.1rem;
    color: #fff !important;
    border: 1px solid var(--vi-glass-line);
    border-radius: 999px;
    background: rgba(10,8,18,.48);
    box-shadow: none;
    font: 800 .67rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: .035em;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#navbar .right.menu .vice-auth-button i { margin: 0; font-size: .78rem; }

#navbar .right.menu .vice-auth-login:hover {
    color: var(--vi-ink) !important;
    border-color: var(--vi-cream);
    background: var(--vi-cream);
    transform: translateY(-1px);
}

#navbar .right.menu .vice-auth-register,
body.dark #navbar .right.menu .vice-auth-register {
    color: var(--vi-ink) !important;
    border-color: var(--vi-pink);
    background: var(--vi-pink);
    box-shadow: 0 10px 30px rgba(255,178,198,.2);
}

#navbar .right.menu .vice-auth-register:hover {
    background: #ffd4df;
    box-shadow: 0 14px 35px rgba(255,178,198,.3);
    transform: translateY(-1px);
}

/* Logged-in profile is a direct link; the chevron only opens its menu. */
#navbar .right.menu .vice-account-profile {
    display: inline-flex;
    align-items: center;
    gap: .62rem;
    min-height: 2.85rem;
    margin: 0;
    padding: .28rem .85rem .28rem .3rem;
    color: #fff !important;
    border: 1px solid var(--vi-glass-line);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    background: rgba(10,8,18,.56);
    box-shadow: none;
    font: 800 .68rem/1 Arial, Helvetica, sans-serif;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

#navbar .right.menu .vice-account-profile:hover {
    border-color: rgba(255,178,198,.5);
    background: rgba(255,178,198,.13);
}

.vice-account-avatar {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.86);
    border-radius: 50%;
    background: #2a203b;
    box-shadow: 0 0 0 3px rgba(255,178,198,.1);
}

.vice-account-avatar img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
}

.vice-account-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#navbar .right.menu .vice-account-toggle {
    display: grid;
    place-items: center;
    width: 2.45rem;
    min-width: 2.45rem;
    height: 2.85rem;
    margin: 0 0 0 -.32rem;
    padding: 0;
    color: rgba(255,255,255,.76);
    border: 1px solid var(--vi-glass-line);
    border-left-color: rgba(255,255,255,.07);
    border-radius: 0 999px 999px 0;
    background: rgba(10,8,18,.56);
    cursor: pointer;
}

#navbar .right.menu .vice-account-toggle:hover {
    color: var(--vi-ink);
    background: var(--vi-pink);
}

.vice-account-toggle i {
    margin: 0 !important;
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
}

#navbar .right.menu .vice-account-toggle:hover i,
#navbar .right.menu .vice-account-toggle.visible i { transform: rotate(180deg); }

#navbar .right.menu .vice-nav-utility,
#navbar .right.menu .vice-panel-control {
    position: relative;
    display: grid !important;
    place-items: center;
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.85rem;
    padding: 0 !important;
    overflow: hidden;
    color: #fff !important;
    border: 1px solid var(--vi-glass-line) !important;
    border-radius: 50% !important;
    background: rgba(10,8,18,.48) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.05);
    transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

#navbar .right.menu .vice-nav-utility i,
#navbar .right.menu .vice-panel-control i {
    margin: 0 !important;
    font-size: .94rem;
    transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

#navbar .right.menu .vice-nav-utility:hover,
#navbar .right.menu .vice-nav-utility:focus-visible {
    color: var(--vi-ink) !important;
    border-color: var(--vi-pink) !important;
    background: var(--vi-pink) !important;
    box-shadow: 0 10px 28px rgba(255,178,198,.24);
    transform: translateY(-2px) scale(1.035);
}

#navbar .right.menu #button-alerts:hover,
#navbar .right.menu #button-alerts:focus-visible {
    border-color: var(--vi-peach) !important;
    background: var(--vi-peach) !important;
}

#navbar .right.menu .vice-panel-control:hover,
#navbar .right.menu .vice-panel-control:focus-visible {
    color: var(--vi-ink) !important;
    border-color: var(--vi-lilac) !important;
    background: var(--vi-lilac) !important;
    box-shadow: 0 10px 28px rgba(178,155,255,.24);
    transform: translateY(-2px) rotate(-3deg);
}

#navbar .right.menu .vice-nav-utility:hover i,
#navbar .right.menu .vice-panel-control:hover i { transform: scale(1.12); }

#navbar .right.menu .vice-nav-utility.red {
    color: var(--vi-ink) !important;
    border-color: var(--vi-pink-strong) !important;
    background: var(--vi-pink-strong) !important;
    box-shadow: 0 0 0 4px rgba(255,143,178,.12);
}

.vice-nav-account-divider {
    width: 1px;
    height: 1.8rem;
    margin: 0 .12rem 0 .22rem;
    background: linear-gradient(transparent, rgba(255,255,255,.24), transparent);
}

.vice-user-popup.ui.popup {
    min-width: 19rem;
    max-width: min(22rem, calc(100vw - 1.5rem));
    padding: .72rem;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 1.45rem;
    background:
        radial-gradient(circle at 88% 0%, rgba(255,178,198,.16), transparent 10rem),
        linear-gradient(145deg, rgba(31,24,48,.98), rgba(13,10,23,.98));
    box-shadow: 0 28px 80px rgba(3,2,10,.58), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.vice-user-popup.ui.popup::before {
    border-color: rgba(255,255,255,.13) !important;
    background: #1d172d !important;
}

.vice-user-popup > .ui.header {
    margin: .2rem .3rem .65rem !important;
    color: rgba(255,255,255,.88) !important;
    font: 900 .7rem/1 Arial, Helvetica, sans-serif !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vice-popup-account-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    margin: 0 0 .45rem;
    padding: .45rem .5rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.vice-popup-account-head strong {
    overflow: hidden;
    color: #fff;
    font: 900 .92rem/1.1 Arial, Helvetica, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vice-popup-avatar {
    width: 2.65rem;
    height: 2.65rem;
    padding: 2px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vi-pink), var(--vi-peach), var(--vi-lilac));
    box-shadow: 0 8px 24px rgba(255,178,198,.18);
}

.vice-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #171225;
    border-radius: inherit;
}

.vice-popup-online {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(91,255,173,.1);
}

.vice-popup-online i {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: #5bffad;
    box-shadow: 0 0 12px rgba(91,255,173,.75);
}

.vice-user-popup .ui.link.list { margin: 0; }

.vice-user-popup .ui.link.list > .item,
.vice-user-popup .ui.link.list > a.item {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 3rem;
    margin: .12rem 0;
    padding: .62rem .7rem !important;
    color: rgba(255,255,255,.72) !important;
    border-radius: .9rem;
    font: 850 .68rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vice-user-popup .ui.link.list > .item:hover,
.vice-user-popup .ui.link.list > .item:focus-visible {
    color: #fff !important;
    background: linear-gradient(105deg, rgba(255,178,198,.2), rgba(178,155,255,.12));
    box-shadow: inset 0 0 0 1px rgba(255,178,198,.18);
    transform: translateX(4px);
}

.vice-user-popup .ui.link.list > .item:not(.vice-popup-item)::after {
    margin-left: auto;
    color: var(--vi-pink);
    content: "\203A";
    font-size: 1.15rem;
    opacity: 0;
    transform: translateX(-.35rem);
    transition: opacity .2s ease, transform .2s ease;
}

.vice-user-popup .ui.link.list > .item:not(.vice-popup-item):hover::after {
    opacity: 1;
    transform: translateX(0);
}

.vice-popup-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-right: .7rem;
    color: var(--vi-pink);
    border: 1px solid rgba(255,178,198,.16);
    border-radius: .65rem;
    background: rgba(255,178,198,.08);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.vice-popup-icon .fas {
    width: 1rem;
    font-size: .82rem;
    line-height: 1;
    text-align: center;
}

.vice-popup-profile .vice-popup-icon { color: var(--vi-pink); }
.vice-popup-user .vice-popup-icon { color: var(--vi-lilac); }
.vice-popup-logout .vice-popup-icon { color: var(--vi-peach); }

.vice-popup-item:hover .vice-popup-icon {
    color: var(--vi-ink);
    background: var(--vi-pink);
    transform: rotate(-4deg) scale(1.05);
}

.vice-popup-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.vice-popup-arrow {
    margin: 0 0 0 auto !important;
    color: var(--vi-pink);
    font-size: .62rem;
    opacity: .28;
    transform: translateX(-.2rem);
    transition: opacity .2s ease, transform .2s ease;
}

.vice-popup-item:hover .vice-popup-arrow,
.vice-popup-item:focus-visible .vice-popup-arrow {
    opacity: 1;
    transform: translateX(.18rem);
}

.vice-popup-divider.ui.divider {
    margin: .45rem .35rem !important;
    border-top-color: rgba(255,255,255,.1) !important;
}

.vice-user-popup .ui.link.list > .vice-popup-logout:hover {
    background: linear-gradient(105deg, rgba(255,112,143,.2), rgba(255,178,198,.08));
    box-shadow: inset 0 0 0 1px rgba(255,112,143,.2);
}

/* Clean cinematic hero */
.vice-hero-scrollstage > .ui.masthead.vice-hero {
    align-items: stretch;
    padding: 0;
    background: var(--vi-bg);
}

.vice-hero-scene-primary {
    background-image:
        linear-gradient(90deg, rgba(12,9,22,.94) 0%, rgba(12,9,22,.7) 28%, rgba(12,9,22,.16) 58%, rgba(12,9,22,.03) 100%),
        linear-gradient(0deg, rgba(12,9,22,.82) 0%, transparent 42%, rgba(12,9,22,.08) 100%),
        url('../assets/images/arcadeon-keyart-sunset-v3.png');
    background-position: center;
}

.vice-hero-scene-secondary {
    background-image:
        linear-gradient(90deg, rgba(9,10,27,.92) 0%, rgba(9,10,27,.64) 32%, rgba(9,10,27,.14) 62%, rgba(9,10,27,.02) 100%),
        linear-gradient(0deg, rgba(9,10,27,.78) 0%, transparent 46%),
        url('../assets/images/arcadeon-keyart-night-v3.png');
    background-position: center;
}

.vice-hero-noise { opacity: .035; }
.vice-hero-roman,
.vice-hero-rail,
.vice-sun { display: none !important; }

.vice-hero-scrollstage .vice-hero > .ui.container.vice-hero-content {
    display: flex;
    align-items: flex-end;
    width: min(73.75rem, calc(100% - 3rem)) !important;
    max-width: none !important;
    height: 100%;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-bottom: clamp(4.25rem, 8vh, 6.75rem);
}

.vice-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 49rem) auto;
    align-items: end;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 7rem);
    width: 100%;
}

.ui.masthead.vice-hero .vice-hero-copy {
    width: auto !important;
    max-width: 49rem;
    padding: 0 !important;
}

.ui.masthead.vice-hero .vice-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.35rem;
    color: rgba(255,255,255,.74);
    font-size: .62rem;
    letter-spacing: .27em;
}

.ui.masthead.vice-hero h1 {
    max-width: none;
    margin: 0 0 1.45rem;
    font-family: Arial Black, Impact, sans-serif;
    font-size: clamp(4.5rem, 7vw, 7.35rem);
    font-weight: 900;
    line-height: .78;
    letter-spacing: -.055em;
    text-shadow: 0 24px 65px rgba(4,2,12,.38);
}

.ui.masthead.vice-hero h1 span {
    max-width: none;
    overflow-wrap: normal !important;
    word-break: normal;
    white-space: nowrap;
}

.ui.masthead.vice-hero h1 em {
    margin: .45em 0 0 .05em;
    color: var(--vi-pink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .19em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .34em;
}

.ui.masthead.vice-hero .vice-hero-copy > p {
    max-width: 35rem;
    margin-bottom: 1.8rem;
    color: rgba(255,255,255,.78);
    font-size: clamp(.98rem, 1.35vw, 1.12rem);
    line-height: 1.62;
    text-shadow: 0 4px 20px rgba(4,2,12,.55);
}

.vice-hero-actions {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.vice-hero-actions .ui.button.vice-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.45rem;
    padding: .38rem .4rem .38rem 1.35rem;
    color: var(--vi-ink);
    border: 0;
    background: var(--vi-pink);
    box-shadow: 0 16px 45px rgba(255,178,198,.2);
    font-size: .7rem;
    letter-spacing: .055em;
}

.vice-button-arrow {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    color: #fff;
    background: var(--vi-ink);
}

.vice-button-arrow i { margin: 0 !important; }

.vice-hero-actions .ui.button.vice-hero-primary:hover {
    color: var(--vi-ink);
    background: #ffd2dd;
    box-shadow: 0 20px 50px rgba(255,178,198,.3);
    transform: translateY(-2px);
}

.vice-hero-actions .ui.button.vice-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 3.45rem;
    padding: 1rem 1.25rem;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    background: rgba(12,9,22,.48) !important;
    box-shadow: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.vice-hero-actions .ui.button.vice-hero-secondary:hover {
    border-color: rgba(255,255,255,.42) !important;
    background: rgba(255,255,255,.12) !important;
    transform: translateY(-2px);
}

/* Server state becomes a small supporting pill instead of a competing card. */
.ui.masthead.vice-hero .vice-hero-status {
    width: auto !important;
    padding: 0 !important;
}

.ui.masthead.vice-hero .vice-hero-status .connect-server {
    position: static;
    display: grid;
    gap: .28rem;
    width: auto;
    min-width: 14rem;
    margin: 0;
    padding: 1rem 1.05rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 1.2rem;
    background: rgba(12,9,22,.62);
    box-shadow: 0 22px 60px rgba(3,2,10,.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ui.masthead.vice-hero .vice-hero-status .ui.header {
    margin: .2rem 0;
    color: #fff;
    font: 800 .9rem/1.2 Arial, Helvetica, sans-serif;
}

.vice-hero-status .vice-live {
    color: var(--vi-pink);
    font-size: .58rem;
    letter-spacing: .13em;
}

.vice-server-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .2rem;
    padding: .65rem .75rem;
    color: rgba(255,255,255,.82);
    border: 0;
    border-radius: .75rem;
    background: rgba(255,255,255,.08);
    font: 700 .65rem/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.vice-server-copy:hover { color: var(--vi-ink); background: var(--vi-pink); }
.vice-server-copy i { margin: 0 !important; }

/* The content starts after the scroll stage; it must never cover hero copy. */
.vice-hero-scrollstage + .ui.container {
    margin-top: 0 !important;
}

/* Routes without the front-page hero need their own breathing room below the
 * fixed city strip and floating navigation. */
#vice-content.vice-page-content {
    min-height: 55svh;
    padding-top: clamp(8.75rem, 11vw, 10.5rem);
}

#navbar a:focus-visible,
#navbar button:focus-visible,
.vice-hero-actions .ui.button:focus-visible,
.vice-server-copy:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .vice-hero-layout { grid-template-columns: minmax(0, 1fr) auto; }
    .ui.masthead.vice-hero h1 { font-size: clamp(4.2rem, 8.5vw, 6.5rem); }
}

@media (max-width: 768px) {
    #navbar.ui.secondary.menu,
    body.dark #navbar.ui.secondary.menu:not(.inverted) {
        right: .55rem;
        left: .55rem;
        min-height: 3.65rem;
        padding: .28rem .35rem;
        background: rgba(11,9,20,.78);
    }

    #navbar.ui.menu .right.menu {
        display: flex !important;
        gap: .25rem;
        margin-left: auto;
    }

    #navbar .right.menu .vice-nav-utility,
    #navbar .right.menu .vice-panel-control { display: none !important; }

    .vice-nav-account-divider { display: none; }

    #navbar .right.menu .vice-auth-login { display: none !important; }

    #navbar .right.menu .vice-auth-register {
        min-height: 2.65rem;
        padding: .72rem .85rem;
    }

    #navbar .right.menu .vice-account-profile {
        min-height: 2.65rem;
        padding: .2rem .35rem .2rem .22rem;
    }

    .vice-account-avatar { width: 2.1rem; height: 2.1rem; }
    .vice-account-name { display: none; }

    #navbar .right.menu .vice-account-toggle {
        width: 2rem;
        min-width: 2rem;
        height: 2.65rem;
    }

    .vice-hero-scene-primary,
    .vice-hero-scene-secondary { background-position: 68% center; }

    .vice-hero-scrollstage .vice-hero > .ui.container.vice-hero-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 8rem 1.1rem 4rem;
    }

    .vice-hero-layout { display: block; }

    .ui.masthead.vice-hero .vice-hero-copy {
        width: 100% !important;
        max-width: 34rem;
    }

    .ui.masthead.vice-hero h1 {
        max-width: none;
        font-size: clamp(3.2rem, 14.5vw, 5.5rem);
    }

    .ui.masthead.vice-hero h1 em {
        font-size: .2em;
        letter-spacing: .22em;
    }

    .ui.masthead.vice-hero .vice-hero-copy > p { max-width: 27rem; }
    .ui.masthead.vice-hero .vice-hero-status { display: none; }

    #vice-content.vice-page-content { padding-top: 7.5rem; }
}

@media (max-width: 480px) {
    #navbar .right.menu .vice-auth-register span { display: none; }
    #navbar .right.menu .vice-auth-register i { font-size: .9rem; }
    #navbar .right.menu .vice-auth-register { width: 2.65rem; padding: 0; }

    .vice-hero-scrollstage .vice-hero > .ui.container.vice-hero-content {
        padding-right: 1rem;
        padding-bottom: 3.25rem;
        padding-left: 1rem;
    }

    .ui.masthead.vice-hero .vice-kicker { margin-bottom: 1rem; font-size: .55rem; }
    .ui.masthead.vice-hero h1 { margin-bottom: 1.1rem; }

    .vice-hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: min(100%, 22rem);
    }

    .vice-hero-actions .ui.button { width: 100%; }
    .vice-hero-actions .ui.button.vice-hero-primary { justify-content: space-between; }
    .vice-hero-actions .ui.button.vice-hero-secondary { justify-content: center; }
}

