:root
{
    --action-background: rgb(194 236 212 / 70%);
    --action-hover-background: #aee1c4;
    --action-text: #214b35;
}

.site-header
{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1290px, calc(100% - 48px));
    min-height: 80px;
    padding: 8px 18px;
    border: 1px solid rgb(255 255 255 / 48%);
    border-radius: 28px;
    background: rgb(255 255 255 / 58%);
    box-shadow: 0 8px 32px rgb(24 55 42 / 4%);
    backdrop-filter: blur(20px) saturate(125%);
    animation: header-arrive .65s cubic-bezier(.2, .7, .2, 1) both;
    transition: top .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease;
}
.site-header.is-scrolled
{
    top: 12px;
    background: rgb(255 255 255 / 78%);
    border-color: rgb(255 255 255 / 68%);
    box-shadow: 0 8px 28px rgb(24 55 42 / 7%);
}
.site-brand
{
    display: flex;
    flex: 0 0 165px;
    align-items: center;
    justify-self: start;
}
.site-brand img
{
    display: block;
    width: 165px;
    height: 62px;
    object-fit: contain;
}
.site-navigation, .site-header__actions
{
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-header__actions
{
    justify-self: end;
}
.site-navigation a
{
    padding: 12px 17px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #48574f;
    transition: background .2s, color .2s;
}
.site-navigation a:hover, .site-navigation a.is-active
{
    color: #1e553b;
    background: rgb(215 239 224 / 65%);
}
.header-download, .header-account
{
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    height: 44px;
    padding: 0 17px;
    border-radius: 22px;
    font: 600 14px 'DM Sans', sans-serif;
    text-decoration: none;
}
.header-account
{
    gap: 8px;
    padding-inline: 15px;
}
.header-identity
{
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-coins
{
    display: flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    height: 44px;
    padding: 0 12px;
    border-radius: 22px;
    background: rgb(255 245 212 / 75%);
    color: #5b4923;
    font: 600 14px 'DM Sans', sans-serif;
    font-variant-numeric: tabular-nums;
}
.header-coins:hover
{
    background: #faebbf;
    color: #423619;
}
.header-coins img
{
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.header-coins span
{
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-download
{
    background: rgb(255 255 255 / 50%);
    color: #375a46;
}
.header-download:hover
{
    background: #ffffffbf;
    color: #224f35;
}
.header-account
{
    background: var(--action-background);
    color: var(--action-text);
}
.header-account:hover
{
    color: #173d29;
    background: var(--action-hover-background);
}
.site-header svg, .action-dock svg
{
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-download svg
{
    transition: transform .25s ease;
}
.header-download:hover svg
{
    transform: translate(2px, -2px);
}
@keyframes header-arrive
{
    from
    {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
    to
    {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
@media (prefers-reduced-motion: reduce)
{
    .site-header, .header-download svg
    {
        animation: none;
        transition: none;
    }
}
.header-menu-toggle, .site-navigation .site-navigation__mobile
{
    display: none;
}
.skip-link
{
    position: fixed;
    top: -100px;
    left: 24px;
    z-index: 2000;
    padding: 12px 20px;
    background: #fff;
    color: #173d29;
    border-radius: 10px;
}
.skip-link:focus
{
    top: 12px;
}
.action-dock
{
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px 8px;
    border: 1px solid #ffffffc4;
    border-radius: 24px;
    background: #fffef9ed;
    box-shadow: 0 8px 30px rgb(24 55 42 / 16%);
    backdrop-filter: blur(14px);
}
.action-dock__caption
{
    font-size: 9px;
    letter-spacing: .02em;
    font-weight: 700;
    color: #56715f;
    margin-bottom: 2px;
}
.action-dock__link, .action-dock__top
{
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #eef5ee;
    color: #234a35;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.action-dock__link img
{
    width: 22px;
    height: 22px;
    filter: brightness(0);
}
.action-dock__top
{
    background: var(--action-background);
    color: var(--action-text);
    margin-top: 4px;
}
.action-dock__link:hover, .action-dock__link:focus-visible
{
    background: #c2ecd4;
    transform: translateY(-2px);
}
.action-dock__top:hover
{
    background: var(--action-hover-background);
}
.action-dock__link span, .action-dock__top span
{
    position: absolute;
    right: calc(100% + 18px);
    padding: 8px 12px;
    border-radius: 10px;
    background: #172a20;
    color: #fff;
    font: 500 12px 'DM Sans', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.action-dock__link:hover span, .action-dock__link:focus-visible span,
.action-dock__top:hover span, .action-dock__top:focus-visible span
{
    opacity: 1;
}
section[id]
{
    scroll-margin-top: 125px;
}
@media (max-width: 1050px)
{
    .site-header
    {
        gap: 16px;
    }
    .site-navigation a
    {
        padding: 11px 10px;
    }
    .header-download
    {
        display: none;
    }
}
@media (max-width: 900px)
{
    .site-header, .site-header.is-scrolled
    {
        box-sizing: border-box;
        width: calc(100% - 24px);
        top: 12px;
        min-height: 70px;
        padding: 8px 12px;
        border-radius: 23px;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .site-brand
    {
        flex-basis: 116px;
    }
    .site-brand img
    {
        width: 116px;
        height: 50px;
    }
    .header-account
    {
        min-height: 42px;
        height: 42px;
        padding: 0 13px;
        gap: 7px;
        font-size: 13px;
    }
    .header-account svg
    {
        width: 17px;
        height: 17px;
    }
    .header-account.is-authenticated
    {
        width: 42px;
        padding: 0;
    }
    .header-account.is-authenticated .aqira-header-login-text
    {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .header-coins
    {
        height: 42px;
        padding: 0 9px;
        gap: 5px;
        font-size: 12px;
    }
    .header-coins span
    {
        max-width: 56px;
    }
    .header-menu-toggle
    {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 42px;
        height: 42px;
        padding: 11px;
        border-radius: 50%;
        background: #f0f3ed;
        border: 0;
        cursor: pointer;
    }
    .header-menu-toggle span
    {
        display: block;
        height: 2px;
        width: 20px;
        background: #254c36;
        transition: transform .2s;
    }
    .header-menu-toggle[aria-expanded="true"] span:first-child
    {
        transform: translateY(4px) rotate(45deg);
    }
    .header-menu-toggle[aria-expanded="true"] span:last-child
    {
        transform: translateY(-4px) rotate(-45deg);
    }
    .site-navigation
    {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        padding: 14px;
        border-radius: 23px;
        background: #fffef9;
        box-shadow: 0 14px 30px #1c382026;
    }
    .site-header.menu-open .site-navigation
    {
        display: grid;
        gap: 4px;
    }
    .site-navigation a, .site-navigation .site-navigation__mobile
    {
        display: block;
        padding: 14px 18px;
    }
    .action-dock
    {
        flex-direction: row;
        padding: 6px;
        gap: 4px;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        border-radius: 22px;
    }
    .action-dock__caption
    {
        display: none;
    }
    .action-dock__top
    {
        margin: 0 0 0 4px;
    }
    .action-dock__link span, .action-dock__top span
    {
        right: 0;
        bottom: calc(100% + 14px);
    }
    .footer_wrap
    {
        padding-bottom: 82px;
    }
}
@media (max-width: 420px)
{
    .site-header.has-account-balance .site-brand
    {
        flex-basis: 90px;
    }
    .site-header.has-account-balance .site-brand img
    {
        width: 90px;
    }
    .header-identity
    {
        gap: 6px;
    }
}
