/* =========================================
   Main Navigation Menu
   ========================================= */
.top-nav {
    display: flex;
    align-items: center;
    gap: 1.5vw;
}

.menu-item-link {
    color: #ffff97;
    text-decoration: none;
    font-size: 2rem;
    line-height: 1;
    text-shadow: var(--pixel-outline);
    white-space: nowrap;
    font-family: 'Ithaca', serif !important;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    text-rendering: geometricPrecision;
    background-color: transparent;
}

.menu-item-link:hover {
    color: #ffffdd;
    text-decoration: none;
}

.pixel-cta,
.home-cta {
    display: inline-block;
    min-width: 320px;
    text-align: center;
    text-decoration: none;
    border: 10px solid transparent;
    border-bottom-width: 16px;
    border-image: url('/images/WebUI/Thick_Button_Red.png') 5 5 8 5 fill stretch;
    image-rendering: pixelated;
    padding: 4px 26px 2px;
    line-height: 1;
    color: #ffff97;
    text-shadow: var(--pixel-outline);
}

.pixel-cta--green,
.home-cta--green {
    border-image-source: url('/images/WebUI/Thick_Button.png');
}

.home-cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pixel-cta:hover,
.pixel-cta:focus,
.home-cta:hover,
.home-cta:focus {
    color: #f4e3c2;
    filter: brightness(1.1);
    text-decoration: none;
}

.sprite-button {
    background-image: url('/images/WebUI/Buy_Button_3.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 312px 130px;
    image-rendering: pixelated;
    border: none;
    cursor: pointer;
    background-color: transparent;
    width: 156px;
    height: 130px;
    display: block;
    text-decoration: none;
    padding: 0;
    margin: 0;
    outline: none;
    transition: none !important;
}

.sprite-button:hover {
    background-position: -156px 0;
}

@media (max-width: 768px) {
    .top-nav {
        display: none;
    }
}

/* =========================================
   Ornate panel frame (home features)
   ========================================= */
.ornate-frame {
    border: 48px solid transparent;
    border-image: url('/images/WebUI/Background_Box_Frame.png') 24 fill repeat;
    background-color: transparent;
    image-rendering: pixelated;
    padding: 4px 6px 8px;
    box-sizing: border-box;
}

/* =========================================
   Account Button & Dropdown
   ========================================= */
.account-button-container {
    padding-top: 28px;
    width: 180px;
    height: 75px;
}

.account-button-container.dropdown {
    position: relative;
}

.account-button {
    background-image: url('/images/WebUI/Enter_Button_2.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 322px 42px;
    image-rendering: pixelated;
    width: 161px;
    height: 42px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: none;
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

.account-button:hover {
    background-position: -161px 0;
    transition: none !important;
}

.account-button:focus {
    outline: none;
    box-shadow: none;
}

.account-button-label {
    font-family: 'Ithaca', serif;
    font-size: 1.4em;
    line-height: 1;
    display: block;
    text-decoration: none;
    pointer-events: none;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    image-rendering: pixelated;
}

a.account-button {
    text-decoration: none;
}

.account-button--text-only {
    background-image: none !important;
    background-color: transparent;
    color: #ffff97;
    width: auto;
    min-width: 0;
    padding: 6px 24px;
    position: absolute;
    right: 0;
    top: 28px;
}
.account-button--text-only:hover {
    background-position: 0 0;
    filter: brightness(1.15);
}
.account-button--text-only .account-button-label {
    max-width: 320px;
    font-size: 2rem;
    color: #ffff97;
    text-shadow: var(--pixel-outline);
    overflow: visible;
    text-align: center;
    text-transform: uppercase;
}

.account-caret {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid currentColor;
    margin-left: 10px;
    flex-shrink: 0;
    filter: drop-shadow(1px 1px 0 #1c0f10);
    transition: transform 0.15s ease;
}

.top-overlay-nav .account-button-container .dropdown-menu {
    right: 0;
    left: auto;
    margin-top: 0;
}

.top-overlay-nav .account-button-container:hover .dropdown-menu,
.top-overlay-nav .account-button-container:focus-within .dropdown-menu {
    display: block;
}

.top-overlay-nav .account-button-container:hover .account-caret,
.top-overlay-nav .account-button-container:focus-within .account-caret {
    transform: rotate(180deg);
}

.custom-account-menu {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 8px 0 0;
    min-width: 0;
    box-shadow: none;
    text-align: right;
}

.custom-account-menu .dropdown-item,
.custom-account-menu .balance-link {
    display: block;
    width: auto;
    background: none;
    color: #ffff97;
    font-family: 'Ithaca', serif;
    font-size: 2rem;
    text-shadow: var(--pixel-outline);
    text-decoration: none;
    white-space: nowrap;
    text-align: right;
    padding: 6px 0;
    -webkit-font-smoothing: none;
    text-rendering: geometricPrecision;
}

.custom-account-menu .dropdown-item:hover,
.custom-account-menu .dropdown-item:focus,
.custom-account-menu .balance-link:hover {
    background: none;
    color: #ffffdd;
}

.lpx-avatar-wrapper {
    display: none !important;
}
