#barebone-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    position: sticky;
    min-height: 85px;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    overflow: visible;
    background: linear-gradient(to bottom, var(--color-bg-dark-alpha) 0%, transparent 100%);
    transition:
        background 0.35s ease,
        backdrop-filter 0.3s ease;
}

#barebone-header.scrolled {
  background: linear-gradient(to bottom, var(--color-bg-dark-alpha) 0%, var(--color-bg-dark-alpha) 100%);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#barebone-header-anim {
    will-change: transform, opacity, margin;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.barebone-logo {
    display: flex;
    align-items: center;
    padding: 10px;
    width: fit-content;
    cursor: pointer;

    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.barebone-logo-mobile {
    height: 20px;
    transform: translateZ(0);
    will-change: transform;
}

.barebone-logo img {
    height: 64px;
}

.barebone-sections {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    cursor: pointer;

    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.barebone-sections .barebone-sections-item {
    font-family: 'Dongle', Arial;
    font-size: 24px;
    transition: opacity 0.25s;
    white-space: nowrap;
}

a.barebone-sections-item {
    text-decoration: none;
    color: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

a.barebone-sections-item:visited {
    color: inherit;
}

.barebone-sections .barebone-sections-item:active {
    opacity: 0.5;
}

.barebone-sections .barebone-logo-mobile {
    margin-right: 20px;
    display: none;
    transform: translate(0px, -2px);
}

.barebone-sections .barebone-sections-item+.barebone-sections-item {
    margin-left: 20px;
}

.barebone-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* row-gap / column-gap — never collapse column-gap on narrow screens */
    gap: 10px 16px;
    padding: 6px 4px;
    opacity: 1;
}

.barebone-links .barebone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#steam-wishlist-button {
    background-color: var(--color-primary);
    margin: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 10px 18px;
    line-height: 1.2;
}

#barebone-canvas {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
    margin-bottom: -110vh;
    z-index: -10;

    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

#barebone-content {
    min-height: calc(100% - 200px);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

#barebone-content h1 {
    margin-top: 10px;
    font-size: 56px;
    font-weight: bold;
}

#barebone-content h2.lined {
    text-align: center;
}

#barebone-content h2.lined::before,
#barebone-content h2.lined::after {
    content: '-';
    flex: 1;
    display: inline-block;
    color: transparent;
    height: 3px;
    width: 10px;
    background-color: var(--color-text-light);
    margin: 0 10px;
    transform: translate(0, 15px);
}

#barebone-canvas + #barebone-content {
    background-color: transparent;
}

#barebone-footer {
    background-image: url('/solis/assets/images/banner.webp');
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
    width: 100%;
    text-align: left;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.barebone-footer-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark-alpha);
    backdrop-filter: blur(10px);
    z-index: 0;
}

#barebone-footer .container {
    position: relative;
    z-index: 1;
}

.footer-column {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.footer-column:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 767.98px) {
    .footer-column:not(:last-child)::after {
        display: none;
    }
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-transform: none;
}

.footer-logo .frog {
    width: 30px;
    margin-bottom: 5px;
    z-index: 300;
    transform: scale(1.01);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.footer-section-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-email {
    color: var(--color-text-light);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social-links {
    align-items: center;
}

.footer-social-link {
    color: var(--color-text-light);
    font-size: 1.5rem;
}

#steam-wishlist-button-footer {
    margin-top: 1rem;
}


#barebone-img-viewer::before {
    content: attr(display-title);
    position: absolute;
    top: -70px;
    left: 0;
    height: fit-content;
    min-height: 30px;
    width: calc(100% - 100px);
    color: var(--color-text-light);
    z-index: 9001;
    padding: 20px 80px 20px 20px;
    font-size: 18px;
    background: white;
    pointer-events: none;
    width: 100%;
}

#barebone-img-viewer {
    position: absolute;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    touch-action: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

#barebone-img-viewer::after {
    content: "";
    position: absolute;
    bottom: -10vh;
    left: 0;
    height: 10vh;
    width: 100%;
    background: inherit;
    z-index: 9001;
    pointer-events: none;
}

#barebone-img-viewer.show {
    opacity: 1;
}

#barebone-img-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

#barebone-img-viewer #close {
    position: absolute;
    top: -45px;
    right: 26px;
    color: black;
    font-size: 18px;
    cursor: pointer;
    z-index: 9100;
}


#buffbuff-button-container {
    position: sticky;
    bottom: 0px;
    width: 100%;
    height: 0px;
    display: flex;
    align-items: end;
    pointer-events: none;
    z-index: 5000;
    transform: translate(0, -25px);
    backface-visibility: hidden;
    will-change: transform;
    overflow: visible;
}

#buffbuff-button {
    width: 60px;
    height: 60px;
    padding: 0px;
    border-radius: 50% 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    pointer-events: all;
    backface-visibility: hidden;
    will-change: transform;
    background-color: #69dc10;
    box-shadow: black 0 0 2px;
    overflow: visible;
    transform-origin: right;
    opacity: 0.5;
}

#buffbuff-button img {
    width: 44px;
}

@media (min-width: 768px) {
    #barebone-header {
        justify-content: start;
        flex-direction: row;
    }

    #barebone-header .barebone-logo img {
        transform-origin: center left;
    }

    .barebone-sections {
        margin-left: auto;
        margin-right: auto;
    }

    .barebone-sections .barebone-sections-item {
        font-size: 32px;
    }

    .barebone-sections .barebone-sections-item+.barebone-sections-item {
        margin-left: 30px;
    }
}

@media (max-width: 1100px) {
    .barebone-links .barebone-link {
        padding: 10px 14px;
    }

    .barebone-links #steam-wishlist-button {
        display: none !important;
    }

}

/* ============================================================
   HEADER: Tablet & Mobile (< 1024px)
   Dimmer background + flexible wrapping so items never overflow.
   ============================================================ */
@media (max-width: 1023.98px) {
    #barebone-header {
        background: var(--color-bg-dark-alpha);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 8px 16px;
        row-gap: 8px;
    }

    #barebone-header.scrolled {
        background: var(--color-bg-dark-alpha);
    }

    .barebone-logo {
        padding: 4px 8px;
    }

    .barebone-logo img {
        height: 48px;
    }

    .barebone-sections {
        gap: 10px 18px;
    }

    .barebone-sections .barebone-sections-item+.barebone-sections-item {
        margin-left: 0;
    }

    .barebone-sections .barebone-sections-item {
        font-size: 26px;
    }

    .barebone-links {
        justify-content: center;
        max-width: 100%;
        padding: 8px 2px;
        gap: 12px 18px;
    }

    .barebone-links .barebone-link {
        min-width: 48px;
        min-height: 48px;
        padding: 10px 16px;
        font-size: 18px;
    }

    #steam-wishlist-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Phone-only refinements (< 768px) — header stacks vertically */
@media (max-width: 767.98px) {
    #barebone-header {
        padding: 10px 16px 12px;
    }

    .barebone-logo img {
        height: 44px;
    }

    .barebone-sections {
        width: 100%;
        gap: 8px 14px;
    }

    .barebone-sections .barebone-sections-item {
        font-size: 20px;
    }

    .barebone-links {
        padding: 10px 0;
        gap: 14px 20px;
    }

    .barebone-links .barebone-link {
        min-width: 48px;
        min-height: 48px;
        padding: 12px 18px;
        font-size: 17px;
    }

    #steam-wishlist-button {
        padding: 12px 20px;
        font-size: 13px;
    }

    #barebone-footer {
        text-align: center;
    }
}