/* =========================
   TOP BAR
========================= */

.top-bar {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-button,
.account-button {
    width: 82px;
    height: 82px;

    border: 1px solid rgba(46,188,255,0.40);
    border-radius: 18px;

    background: rgba(0,0,0,0.30);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    cursor: pointer;
    text-decoration: none;

    backdrop-filter: blur(8px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.home-button span,
.account-button span {
    font-size: 11px;
    line-height: 1;
    color: white;

    text-shadow:
        0 0 6px rgba(0,0,0,0.9);
}

.home-button:hover,
.account-button:hover {
    transform: scale(1.05);

    background: rgba(46,188,255,0.14);
    border-color: rgba(46,188,255,0.9);

    box-shadow:
        0 0 14px rgba(46,188,255,0.45),
        inset 0 0 10px rgba(46,188,255,0.12);
}

.home-button img,
.account-button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;

    image-rendering: pixelated;

    filter:
        drop-shadow(0 0 5px rgba(255,255,255,0.45))
        drop-shadow(0 0 10px rgba(46,188,255,0.30));
}

/* =========================
   ACCOUNT AREA
========================= */

.account-area {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.welcome-text {
    position: absolute;

    right: 96px;
    top: 30px;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    color: rgba(255,255,255,0.88);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.account-area:has(.account-button:hover) .welcome-text,
.account-area:has(.account-menu:hover) .welcome-text {
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

/* =========================
   ACCOUNT MENU
========================= */

.account-wrap {
    position: relative;
}

.account-button {
    position: relative;
    z-index: 3;
}

.account-menu {
    position: absolute;
    top: 0;
    right: 0;

    width: 240px;

    padding: 68px 10px 10px 10px;

    border-radius: 22px;

    background: rgba(5, 8, 14, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);

    box-shadow: 0 0 20px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    pointer-events: none;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.account-wrap:has(.account-button:hover) .account-menu,
.account-wrap:has(.account-menu:hover) .account-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.menu-user {
    padding: 0 0 12px 0;

    transform: translate(10px, -50px);

    font-size: 15px;
    font-weight: 600;

    color: rgba(255,255,255,0.92);

    white-space: nowrap;
}

.menu-divider {
    height: 1px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.12);
}

.account-menu a {
    display: block;

    padding: 10px 12px;

    color: white;
    text-decoration: none;

    border-radius: 10px;

    font-size: 15px;

    transition:
        background 0.22s ease,
        transform 0.18s ease;
}

.account-menu a:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(3px);
}