@font-face {
    font-family: "Geist Pixel";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../../tresneria-gamification/assets/fonts/geist-pixel/GeistPixel-Regular-VariableFont_ELSH.ttf") format("truetype");
}

:root {
    --tss-background: #f7f9ff;
    --tss-surface: #ffffff;
    --tss-text: #181c20;
    --tss-muted: #5d6572;
    --tss-border: #dce3ef;
    --tss-primary: #002f59;
    --tss-primary-soft: #d4e3ff;
    --tss-accent: #ff5b4a;
    --tss-accent-soft: #fff0ed;
    --tss-gold: #d6ad47;
    --tss-footer: #07182b;
    --tss-footer-muted: #aebdd0;
    --tss-font-body: "Geist Mono", ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
    --tss-font-display: "Geist Pixel", "Geist Mono", ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
}

html {
    background: var(--tss-background);
    box-sizing: border-box;
    color: var(--tss-text);
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.tresneria-site-shell {
    background: var(--tss-background);
    color: var(--tss-text);
    font-family: var(--tss-font-body);
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

body.tresneria-site-shell img:not(.tresneria-site-shell__logo),
body.tresneria-site-shell video {
    height: auto;
    max-width: 100%;
}

body.tresneria-site-shell .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

body.tresneria-site-shell .screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
}

.tresneria-site-shell__skip-link {
    background: var(--tss-primary);
    border-radius: 0 0 8px 8px;
    color: #ffffff;
    left: 16px;
    padding: 10px 14px;
    position: fixed;
    top: -80px;
    transition: top 120ms ease;
    z-index: 100000;
}

.tresneria-site-shell__skip-link:focus {
    top: 0;
}

.tresneria-site-shell__header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--tss-border);
    box-shadow: 0 10px 34px rgba(10, 34, 60, 0.06);
    position: relative;
    z-index: 800;
}

.tresneria-site-shell__header-inner {
    align-items: center;
    display: grid;
    gap: clamp(16px, 2.4vw, 34px);
    grid-template-columns: auto minmax(280px, 1fr) auto;
    margin: 0 auto;
    max-width: 1360px;
    min-height: 78px;
    padding: 10px clamp(18px, 4vw, 44px);
}

.tresneria-site-shell__brand-cluster {
    align-items: center;
    display: flex;
    gap: 10px;
}

.tresneria-site-shell__brand {
    align-items: center;
    color: var(--tss-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-family: var(--tss-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    gap: 10px;
    line-height: 1;
    text-decoration: none;
}

body.tresneria-site-shell .tresneria-site-shell__brand--header .tresneria-site-shell__logo {
    display: block;
    height: 52px;
    max-height: 52px;
    max-width: 132px;
    object-fit: contain;
    width: auto;
}

.tresneria-site-shell__brand-mark {
    align-items: center;
    background: linear-gradient(135deg, #f2d98c, var(--tss-gold));
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(180, 132, 30, 0.25);
    color: #172437;
    font-family: Georgia, serif;
    font-size: 1.85rem;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.tresneria-site-shell__context-label {
    background: var(--tss-accent-soft);
    border: 1px solid #ffd2ca;
    border-radius: 999px;
    color: #a52a20;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    padding: 5px 8px 4px;
    text-transform: uppercase;
}

.tresneria-site-shell__desktop-nav {
    align-items: center;
    background: #f5f8fc;
    border: 1px solid #e2e9f2;
    border-radius: 999px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-self: center;
    padding: 4px;
}

.tresneria-site-shell__desktop-nav a {
    border-radius: 999px;
    color: var(--tss-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 9px 14px;
    text-decoration: none;
    white-space: nowrap;
}

.tresneria-site-shell__desktop-nav a:hover,
.tresneria-site-shell__desktop-nav a:focus-visible,
.tresneria-site-shell__desktop-nav a[aria-current="page"] {
    background: var(--tss-primary-soft);
    outline: none;
}

.tresneria-site-shell__desktop-nav a[aria-current="page"] {
    background: var(--tss-primary);
    box-shadow: 0 5px 14px rgba(0, 47, 89, 0.18);
    color: #ffffff;
}

.tresneria-site-shell__header-actions {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: flex-end;
}

.tresneria-site-shell__mobile-controls {
    display: none;
}

.tresneria-site-shell__help-link,
.tresneria-site-shell__header-action {
    align-items: center;
    border-radius: 12px;
    color: var(--tss-primary);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 750;
    gap: 7px;
    min-height: 42px;
    padding: 8px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.tresneria-site-shell__help-link:hover,
.tresneria-site-shell__help-link:focus-visible,
.tresneria-site-shell__header-action:hover,
.tresneria-site-shell__header-action:focus-visible {
    background: #edf3fa;
    outline: 2px solid transparent;
}

.tresneria-site-shell__cart {
    background: var(--tss-primary);
    color: #ffffff;
    padding-left: 12px;
}

.tresneria-site-shell__cart:hover,
.tresneria-site-shell__cart:focus-visible {
    background: #064678;
}

.tresneria-site-shell__cart-count {
    align-items: center;
    background: var(--tss-accent);
    border: 2px solid var(--tss-primary);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 850;
    height: 22px;
    justify-content: center;
    line-height: 1;
    min-width: 22px;
    padding: 0 5px;
}

.tresneria-site-shell__content {
    margin: 0 auto;
    max-width: 1320px;
    min-height: calc(100vh - 420px);
    padding: 18px 16px 32px;
    width: 100%;
}

.tresneria-site-shell__entry {
    margin: 0;
    padding: 0;
}

.tresneria-site-shell__entry > :first-child {
    margin-top: 0;
}

body.tresneria-site-shell .tresneria-account-app.tresneria-leaderboard-app {
    margin: 0 auto 24px !important;
    max-width: 1180px !important;
    padding: 22px;
    transform: none !important;
    width: 100% !important;
}

body.tresneria-site-shell .tresneria-arena-shell {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1280px !important;
    transform: none !important;
    width: 100% !important;
}

.tresneria-site-shell__footer {
    background: var(--tss-footer);
    color: #ffffff;
    margin-top: 24px;
    overflow: hidden;
    position: relative;
}

.tresneria-site-shell__footer-glow {
    background: radial-gradient(circle, rgba(255, 91, 74, 0.2), rgba(255, 91, 74, 0) 70%);
    height: 420px;
    pointer-events: none;
    position: absolute;
    right: -150px;
    top: -220px;
    width: 520px;
}

.tresneria-site-shell__footer-inner {
    margin: 0 auto;
    max-width: 1360px;
    padding: 56px clamp(18px, 4vw, 44px) 26px;
    position: relative;
    z-index: 1;
}

.tresneria-site-shell__footer-grid {
    display: grid;
    gap: clamp(28px, 4vw, 62px);
    grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(135px, 0.75fr));
}

.tresneria-site-shell__footer-brand {
    max-width: 340px;
}

.tresneria-site-shell__footer .tresneria-site-shell__brand--footer {
    background: #ffffff;
    border-radius: 18px;
    display: inline-flex;
    padding: 8px 13px;
}

body.tresneria-site-shell .tresneria-site-shell__brand--footer .tresneria-site-shell__logo {
    height: 58px;
    max-height: 58px;
    max-width: 150px;
    object-fit: contain;
    width: auto;
}

.tresneria-site-shell__footer-brand p {
    color: #dce6f2;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 20px 0 14px;
    max-width: 32ch;
}

.tresneria-site-shell__footer-context {
    color: #ffab9f;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tresneria-site-shell__footer-group {
    align-content: start;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tresneria-site-shell__footer-group h2 {
    color: #ffffff;
    font-family: var(--tss-font-display);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    margin: 5px 0 9px;
}

.tresneria-site-shell__footer-group address {
    color: var(--tss-footer-muted);
    font-size: 0.76rem;
    font-style: normal;
    line-height: 1.65;
    margin: 0 0 2px;
}

.tresneria-site-shell__footer-group a,
.tresneria-site-shell__legal-links a {
    color: var(--tss-footer-muted);
    font-size: 0.75rem;
    line-height: 1.45;
    text-decoration: none;
}

.tresneria-site-shell__footer-group a:hover,
.tresneria-site-shell__footer-group a:focus-visible,
.tresneria-site-shell__legal-links a:hover,
.tresneria-site-shell__legal-links a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--tss-accent);
    text-underline-offset: 4px;
}

.tresneria-site-shell__footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto 1fr;
    margin-top: 48px;
    padding-top: 24px;
}

.tresneria-site-shell__footer-bottom p {
    color: var(--tss-footer-muted);
    font-size: 0.68rem;
    margin: 0;
    text-align: center;
}

.tresneria-site-shell__social-links,
.tresneria-site-shell__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tresneria-site-shell__social-links a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 750;
    padding: 7px 10px;
    text-decoration: none;
}

.tresneria-site-shell__social-links a:hover,
.tresneria-site-shell__social-links a:focus-visible {
    background: var(--tss-accent);
    border-color: var(--tss-accent);
}

.tresneria-site-shell__legal-links {
    justify-content: flex-end;
}

.tresneria-site-shell__legal-links a {
    font-size: 0.66rem;
}

.tresneria-site-shell .xoo-wsc-modal,
.tresneria-site-shell .ios-glass-tabbar {
    font-family: var(--tss-font-body);
}

body.admin-bar .tresneria-arena-topbar {
    top: 32px;
}

@media (max-width: 1080px) {
    .tresneria-site-shell__header-inner {
        gap: 14px;
        grid-template-columns: auto 1fr auto;
    }

    .tresneria-site-shell__context-label,
    .tresneria-site-shell__help-link,
    .tresneria-site-shell__header-action > span:not(.tresneria-site-shell__cart-count) {
        display: none;
    }

    .tresneria-site-shell__header-action {
        justify-content: center;
        min-width: 42px;
        padding: 8px;
    }
}

@media (max-width: 900px) {
    .tresneria-site-shell__footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tresneria-site-shell__footer-brand {
        grid-column: 1 / -1;
        max-width: 440px;
    }

    .tresneria-site-shell__footer-contact {
        grid-column: 1 / -1;
    }

    .tresneria-site-shell__footer-bottom {
        grid-template-columns: 1fr;
    }

    .tresneria-site-shell__social-links,
    .tresneria-site-shell__legal-links {
        justify-content: center;
    }
}

@media (max-width: 782px) {
    body.admin-bar .tresneria-arena-topbar {
        top: 46px;
    }

}

@media (max-width: 767px) {
    body.tresneria-site-shell {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .tresneria-site-shell__header-inner {
        display: grid;
        gap: 6px;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 76px;
        padding: 8px 12px;
        position: relative;
    }

    .tresneria-site-shell__desktop-nav,
    .tresneria-site-shell__header-actions {
        display: none;
    }

    .tresneria-site-shell__mobile-controls {
        align-items: center;
        display: flex;
        gap: 4px;
        min-width: 0;
    }

    .tresneria-site-shell__mobile-controls--start {
        justify-content: flex-start;
    }

    .tresneria-site-shell__mobile-controls--end {
        justify-content: flex-end;
    }

    .tresneria-site-shell__mobile-disclosure {
        position: static;
    }

    .tresneria-site-shell__mobile-icon {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 10px;
        color: #1c2430;
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 auto;
        height: 40px;
        justify-content: center;
        list-style: none;
        padding: 6px;
        text-decoration: none;
        width: 40px;
    }

    .tresneria-site-shell__mobile-icon::-webkit-details-marker {
        display: none;
    }

    .tresneria-site-shell__mobile-icon:hover,
    .tresneria-site-shell__mobile-icon:focus-visible,
    .tresneria-site-shell__mobile-disclosure[open] > .tresneria-site-shell__mobile-icon {
        background: #edf3fa;
        outline: none;
    }

    .tresneria-site-shell__mobile-icon:focus-visible {
        box-shadow: 0 0 0 2px var(--tss-primary-soft);
    }

    .tresneria-site-shell__mobile-icon svg {
        display: block;
        height: 30px;
        width: 30px;
    }

    .tresneria-site-shell__brand-cluster {
        grid-column: 2;
        justify-self: center;
    }

    .tresneria-site-shell__mobile-popover {
        background: #ffffff;
        border: 1px solid var(--tss-border);
        border-radius: 16px;
        box-sizing: border-box;
        box-shadow: 0 18px 46px rgba(10, 34, 60, 0.18);
        position: absolute;
        top: calc(100% - 2px);
        width: min(296px, calc(100vw - 24px));
        z-index: 920;
    }

    .tresneria-site-shell__mobile-menu-popover {
        left: 0;
        padding: 10px;
    }

    .tresneria-site-shell__mobile-menu-popover nav {
        display: grid;
        gap: 4px;
    }

    .tresneria-site-shell__mobile-menu-popover a {
        border-radius: 10px;
        color: var(--tss-primary);
        font-size: 0.78rem;
        font-weight: 750;
        min-width: 0;
        overflow-wrap: anywhere;
        padding: 11px 12px;
        text-decoration: none;
    }

    .tresneria-site-shell__mobile-menu-popover a:hover,
    .tresneria-site-shell__mobile-menu-popover a:focus-visible,
    .tresneria-site-shell__mobile-menu-popover a[aria-current="page"] {
        background: #edf3fa;
        outline: none;
    }

    .tresneria-site-shell__mobile-menu-popover a[aria-current="page"] {
        color: var(--tss-accent);
    }

    .tresneria-site-shell__brand {
        font-size: 1.35rem;
    }

    body.tresneria-site-shell .tresneria-site-shell__brand--header .tresneria-site-shell__logo {
        height: 56px;
        max-height: 56px;
        max-width: 112px;
    }

    .tresneria-site-shell__brand-mark {
        border-radius: 13px;
        font-size: 1.6rem;
        height: 42px;
        width: 42px;
    }

    .tresneria-site-shell__content {
        padding: 10px 0 24px;
    }

    body.tresneria-site-shell .tresneria-account-app.tresneria-leaderboard-app {
        border-radius: 0;
        margin-bottom: 0 !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .tresneria-site-shell__footer-inner {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
        padding-top: 44px;
    }

    .tresneria-site-shell__footer-grid {
        gap: 34px 22px;
    }

    .tresneria-site-shell__footer-bottom {
        margin-top: 38px;
    }
}

@media (max-width: 480px) {
    .tresneria-site-shell__footer-grid {
        grid-template-columns: 1fr;
    }

    .tresneria-site-shell__footer-brand,
    .tresneria-site-shell__footer-contact {
        grid-column: auto;
    }

    body.tresneria-site-shell .tresneria-site-shell__brand--footer .tresneria-site-shell__logo {
        height: 52px;
        max-height: 52px;
        max-width: 136px;
    }

    .tresneria-site-shell__social-links {
        justify-content: flex-start;
    }

    .tresneria-site-shell__legal-links {
        justify-content: flex-start;
    }

    .tresneria-site-shell__footer-bottom p {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tresneria-site-shell__skip-link {
        transition: none;
    }
}
