:root {
                    --bg: #fbf7f2;
                    --surface: #171719;
                    --surface-soft: #202023;
                    --brand: #aa3516;
                    --brand-dark: #76220d;
                    --accent: #f1b35c;
                    --text: #f7f1e9;
                    --muted: #b9b2aa;
                    --border: rgba(255, 255, 255, .11);
                    --shadow: 0 22px 60px rgba(0, 0, 0, .32);
                    --content: min(1160px, calc(100% - 40px))
                }

                * {
                    box-sizing: border-box
                }

                html {
                    scroll-behavior: smooth
                }

                body {
                    min-height: 100vh;
                    margin: 0;
                    color: var(--text);
                    background: var(--bg);
                    font-family: Inter, Arial, sans-serif
                }

                body.menu-open {
                    overflow: hidden
                }

                a {
                    color: inherit
                }

                button,
                a {
                    -webkit-tap-highlight-color: transparent
                }

                input,
                select,
                textarea {
                    border: 1px solid var(--border);
                    border-radius: 7px;
                    color: var(--text);
                    background: var(--surface-soft);
                    font: inherit;
                    outline: none
                }

                input:focus,
                select:focus,
                textarea:focus {
                    border-color: rgba(241, 179, 92, .72);
                    box-shadow: 0 0 0 3px rgba(241, 179, 92, .09)
                }

                .page-title {
                    margin: 0;
                    font-family: Impact, Arial Black, sans-serif;
                    font-size: clamp(36px, 5vw, 58px);
                    line-height: 1;
                    text-transform: uppercase
                }

                .btn-style {
                    min-height: 44px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    padding: 0 16px;
                    border: 1px solid var(--border);
                    border-radius: 7px;
                    color: var(--text);
                    background: var(--surface-soft);
                    cursor: pointer;
                    font: inherit;
                    font-size: 13px;
                    font-weight: 800;
                    text-decoration: none;
                    transition: .2s
                }

                .btn-style:hover {
                    transform: translateY(-1px);
                    border-color: rgba(255, 255, 255, .25);
                    background: #29292d
                }

                .btn-primary-style {
                    border-color: var(--brand);
                    background: var(--brand)
                }

                .btn-primary-style:hover {
                    background: #c2411f
                }

                .site-header {
                    position: sticky;
                    z-index: 50;
                    top: 0;
                    border-bottom: 1px solid rgba(255, 255, 255, .09);
                    background: rgba(12, 12, 13, .96);
                    box-shadow: 0 10px 34px rgba(0, 0, 0, .2);
                    backdrop-filter: blur(16px)
                }

                .portal-note {
                    min-height: 25px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 4px 16px;
                    border-bottom: 1px solid rgba(240, 90, 42, .42);
                    color: #fff1e7;
                    background: linear-gradient(90deg, #160b08 0%, #501a0b 48%, #2b0f08 62%, #160b08 100%);
                    background-size: 220% 100%;
                    box-shadow: inset 0 -1px 0 rgba(255, 116, 62, .12), 0 2px 12px rgba(184, 52, 17, .12);
                    font-size: 9px;
                    font-weight: 900;
                    letter-spacing: .12em;
                    line-height: 1.35;
                    text-align: center;
                    text-shadow: 0 0 12px rgba(255, 150, 103, .2);
                    text-transform: uppercase;
                    animation: portalNoteAttention 3.4s ease-in-out infinite
                }

                .portal-note::before {
                    content: "";
                    width: 6px;
                    height: 6px;
                    flex: 0 0 auto;
                    margin-inline-end: 8px;
                    border-radius: 50%;
                    background: #ff7040;
                    box-shadow: 0 0 8px rgba(255,112,64,.72);
                    animation: portalNoteDot 1.35s ease-in-out infinite
                }

                .portal-note span {
                    min-width: 0;
                    overflow-wrap: break-word
                }

                @keyframes portalNoteAttention {
                    0%,100% { background-position: 0 50%; border-bottom-color: rgba(240,90,42,.32) }
                    50% { background-position: 100% 50%; border-bottom-color: rgba(255,126,74,.72) }
                }

                @keyframes portalNoteDot {
                    0%,100% { opacity: .58; transform: scale(.82); box-shadow: 0 0 5px rgba(255,112,64,.5) }
                    50% { opacity: 1; transform: scale(1.28); box-shadow: 0 0 15px rgba(255,112,64,1) }
                }

                .header-inner {
                    width: var(--content);
                    min-height: 70px;
                    margin: 0 auto;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    position: relative;
                    gap: 32px
                }

                .brand-link {
                    display: inline-flex;
                    align-items: center;
                    gap: 10px;
                    flex: 0 0 auto;
                    text-decoration: none
                }

                .brand-logo {
                    display: block;
                    width: 46px;
                    height: 48px;
                    object-fit: contain;
                    border-radius: 2px
                }

                .brand-copy {
                    display: grid;
                    gap: 2px;
                    color: var(--text);
                    line-height: 1
                    
                }

                .brand-copy strong {
                    color: #f2e8df;
                    font-size: 11px;
                    font-weight: 950;
                    letter-spacing: .12em;
                    text-transform: uppercase
                }

                .brand-copy small {
                    color: #b36a50;
                    font-size: 7px;
                    font-weight: 850;
                    letter-spacing: .16em;
                    text-transform: uppercase
                }

                .header-nav {
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    gap: 32px;
                    margin-inline-start: auto
                }

                .nav-links {
                    display: flex;
                    align-items: center;
                    gap: 24px;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%)
                }

                .nav-links a {
                    position: relative;
                    display: inline-flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 4px;
                    min-width: 48px;
                    color: var(--muted);
                    font-size: 11px;
                    font-weight: 850;
                    letter-spacing: .02em;
                    text-decoration: none;
                    transition: color .2s
                }

                .nav-icon {
                    width: 15px;
                    height: 15px;
                    flex: 0 0 auto;
                    stroke: currentColor;
                    stroke-width: 1.8;
                    stroke-linecap: round;
                    stroke-linejoin: round
                }

                .nav-links a::after {
                    content: "";
                    position: absolute;
                    right: 0;
                    bottom: -8px;
                    left: 0;
                    height: 2px;
                    border-radius: 999px;
                    background: var(--brand);
                    transform: scaleX(0);
                    transition: transform .2s
                }

                .nav-links a:hover,
                .nav-links a:focus-visible,
                .nav-links a.is-active {
                    color: var(--text)
                }

                .nav-links a:hover::after,
                .nav-links a:focus-visible::after,
                .nav-links a.is-active::after {
                    transform: scaleX(1)
                }

                .nav-coming-soon {
                    color: #756d67;
                    font-size: 11px;
                    font-weight: 850;
                    letter-spacing: .02em;
                    cursor: default
                }

                .header-tools {
                    display: flex;
                    align-items: center;
                    gap: 8px
                }

                .account-menu { position:relative }

                .account-trigger {
                    min-height: 40px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    padding-block: 4px;
                    padding-inline: 6px 10px;
                    border: 1px solid var(--border);
                    border-radius: 8px;
                    color: var(--text);
                    background: rgba(255,255,255,.035);
                    cursor: pointer;
                    font: inherit;
                    font-size: 11px;
                    font-weight: 900;
                    white-space: nowrap;
                    transition: .2s
                }

                .account-trigger:hover,.account-trigger[aria-expanded="true"] { border-color:rgba(241,179,92,.62);background:rgba(241,179,92,.08) }
                .account-trigger-icon { width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:7px;color:#fff5e9;background:linear-gradient(145deg,var(--brand),#70200c) }
                .account-trigger-icon svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round }
                .account-chevron { width:7px;height:7px;margin-inline-start:2px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:translateY(-2px) rotate(45deg);transition:transform .2s }
                .account-trigger[aria-expanded="true"] .account-chevron { transform:translateY(2px) rotate(225deg) }

                .account-avatar {
                    width: 36px;
                    height: 36px;
                    display: grid;
                    place-items: center;
                    flex: 0 0 auto;
                    overflow: hidden;
                    border-radius: 50%;
                    color: #fff5e9;
                    background: linear-gradient(145deg,var(--brand),#70200c);
                    font-size: 12px;
                    font-weight: 950;
                    text-transform: uppercase
                }

                .account-avatar img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                    image-rendering: auto
                }

                .account-user-name {
                    max-width: 120px;
                    overflow: hidden;
                    color: var(--text);
                    font-size: 11px;
                    font-weight: 900;
                    text-overflow: ellipsis;
                    white-space: nowrap
                }

                .account-alliance-badge { display:inline-flex;align-items:center;min-width:0;max-width:112px;min-height:20px;overflow:hidden;padding:0 8px;border:1px solid rgba(241,179,92,.38);border-radius:999px;color:#ffd89c;background:rgba(241,179,92,.1);font-size:8px;font-weight:950;letter-spacing:.035em;text-overflow:ellipsis;white-space:nowrap }

                .account-menu-panel { position:absolute;z-index:85;top:calc(100% + 8px);inset-inline-end:0;width:230px;display:grid;gap:5px;padding:8px;border:1px solid var(--border);border-radius:10px;background:#18181b;box-shadow:0 18px 45px rgba(0,0,0,.45) }
                .account-menu-panel[hidden] { display:none }
                .account-menu-title { padding:7px 9px;color:#8f8882;font-size:9px;font-weight:950;letter-spacing:.13em;text-transform:uppercase }
                .account-summary { display:grid;gap:3px;margin-bottom:3px;padding:10px;border-radius:8px;background:rgba(255,255,255,.04) }
                .account-summary strong,.account-summary small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
                .account-summary strong { color:var(--text);font-size:12px }.account-summary small { color:var(--muted);font-size:10px }
                .account-menu-link { min-height:42px;display:flex;align-items:center;gap:10px;padding:0 11px;border-radius:7px;color:var(--muted);font-size:12px;font-weight:850;text-decoration:none;transition:.2s }
                .account-menu-link:hover,.account-menu-link:focus-visible { color:var(--text);background:var(--surface-soft) }
                .account-menu-link svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round }
                .account-menu-link.is-primary { color:#fff;border:1px solid var(--brand);background:var(--brand) }
                .account-menu-link.is-primary:hover { background:#c2411f }.account-menu-link.is-logout { color:#f2a07d }
                .account-menu-link.is-alliance { color:#ffd89c;background:rgba(241,179,92,.07) }
                .account-menu-link.is-alliance:hover,.account-menu-link.is-alliance:focus-visible { color:#fff1d7;background:rgba(241,179,92,.14) }
                .calculator-quota-bar { position:sticky;z-index:49;top:96px;padding:7px 16px;color:#f8e7d4;background:linear-gradient(90deg,#8e2b12,#b84620);box-shadow:0 8px 18px rgba(72,22,9,.2);font-size:11px;font-weight:900;letter-spacing:.03em;text-align:center }
                .calculator-quota-bar.is-critical { animation:calculatorQuotaCritical 1.15s ease-in-out infinite;background:linear-gradient(90deg,#a9190f,#ed4f1d,#a9190f);background-size:200% 100% }
                @keyframes calculatorQuotaCritical { 0%,100%{background-position:0 50%;box-shadow:0 7px 17px rgba(121,20,8,.28)} 50%{background-position:100% 50%;box-shadow:0 9px 30px rgba(232,62,20,.72)} }
                @media (prefers-reduced-motion:reduce){.calculator-quota-bar.is-critical{animation:none;background:#b82014;box-shadow:inset 0 0 0 2px #ffb081,0 8px 22px rgba(121,20,8,.38)}}

                .visually-hidden {
                    position: absolute !important;
                    width: 1px !important;
                    height: 1px !important;
                    padding: 0 !important;
                    margin: -1px !important;
                    overflow: hidden !important;
                    clip: rect(0, 0, 0, 0) !important;
                    white-space: nowrap !important;
                    border: 0 !important
                }

                .language-switcher {
                    position: relative;
                    display: flex;
                    align-items: center;
                    width: 48px;
                    min-width: 48px;
                    height: 40px;
                    border: 1px solid var(--border);
                    border-radius: 9px;
                    background: rgba(255, 255, 255, .045);
                    transition: .2s
                }

                .language-switcher::after {
                    content: "";
                    position: absolute;
                    right: 14px;
                    width: 8px;
                    height: 8px;
                    border-right: 2px solid var(--accent);
                    border-bottom: 2px solid var(--accent);
                    pointer-events: none;
                    transform: translateY(-3px) rotate(45deg)
                }

                .language-switcher:hover {
                    border-color: rgba(255, 255, 255, .25);
                    background: rgba(255, 255, 255, .07)
                }

                .language-switcher:focus-within {
                    border-color: rgba(241, 179, 92, .72);
                    box-shadow: 0 0 0 3px rgba(241, 179, 92, .09)
                }

                .language-select {
                    width: 100%;
                    height: 44px;
                    padding: 0 40px 0 14px;
                    border: 0;
                    border-radius: 9px;
                    color: var(--text);
                    background: transparent;
                    box-shadow: none !important;
                    cursor: pointer;
                    appearance: none;
                    -webkit-appearance: none;
                    font-size: 13px;
                    font-weight: 800
                }

                .language-select option {
                    color: #f7f1e9;
                    background: #202023
                }

                .language-switcher::after {
                    display: none
                }

                .language-flag {
                    position: static;
                    width: 28px;
                    height: 19px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    overflow: hidden;
                    border-radius: 2px;
                    font-size: 18px;
                    line-height: 1;
                    box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
                    pointer-events: none
                }

                .language-flag svg {
                    display: block;
                    width: 28px;
                    height: 19px
                }

                .language-trigger {
                    width: 46px;
                    height: 38px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0;
                    border: 0;
                    border-radius: 9px;
                    color: var(--text);
                    background: transparent;
                    cursor: pointer;
                    font: inherit;
                    font-size: 13px;
                    font-weight: 800;
                    text-align: center
                }

                .language-trigger::after {
                    display: none
                }

                .language-trigger[aria-expanded="true"]::after {
                    transform: translateY(2px) rotate(225deg)
                }

                .language-options {
                    position: absolute;
                    z-index: 80;
                    top: calc(100% + 8px);
                    inset-inline-end: 0;
                    width: 220px;
                    display: grid;
                    max-height: min(68vh, 480px);
                    overflow-y: auto;
                    padding: 7px;
                    border: 1px solid var(--border);
                    border-radius: 10px;
                    background: #18181b;
                    box-shadow: 0 18px 45px rgba(0, 0, 0, .45)
                }

                .language-options[hidden] {
                    display: none
                }

                .language-option {
                    display: flex;
                    align-items: center;
                    gap: 11px;
                    min-height: 43px;
                    padding: 8px 10px;
                    border-radius: 7px;
                    color: var(--muted);
                    font-size: 13px;
                    font-weight: 800;
                    text-decoration: none
                }

                .language-option:hover,
                .language-option:focus-visible {
                    color: var(--text);
                    background: var(--surface-soft)
                }

                .language-option[aria-selected="true"] {
                    color: var(--accent);
                    background: rgba(241, 179, 92, .08)
                }

                .language-option[aria-selected="true"]::after {
                    content: '✓';
                    margin-inline-start: auto
                }

                .language-option-flag {
                    width: 24px;
                    height: 16px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex: 0 0 auto;
                    overflow: hidden;
                    border-radius: 2px;
                    font-size: 18px;
                    line-height: 1;
                    box-shadow: 0 0 0 1px rgba(255, 255, 255, .22)
                }

                .language-option-flag svg {
                    display: block;
                    width: 24px;
                    height: 16px
                }

                .language-flag-emoji {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 100%;
                    font-size: 18px;
                    line-height: 1
                }

                html[dir="rtl"] body {
                    direction: rtl
                }

                html[dir="rtl"] .site-header,
                html[dir="rtl"] .site-footer {
                    text-align: right
                }

                html[dir="rtl"] .portal-note,
                html[dir="rtl"] .brand-copy strong,
                html[dir="rtl"] .brand-copy small,
                html[dir="rtl"] .account-menu-title,
                html[dir="rtl"] .account-alliance-badge {
                    letter-spacing: 0
                }

                html[dir="rtl"] .brand-copy,
                html[dir="rtl"] .account-summary,
                html[dir="rtl"] .account-menu-panel,
                html[dir="rtl"] .language-options {
                    text-align: right
                }

                .menu-toggle {
                    display: none;
                    width: 44px;
                    height: 44px;
                    padding: 0;
                    border: 1px solid var(--border);
                    border-radius: 10px;
                    color: var(--text);
                    background: var(--surface);
                    cursor: pointer
                }

                .menu-toggle span,
                .menu-toggle::before,
                .menu-toggle::after {
                    content: "";
                    display: block;
                    width: 20px;
                    height: 2px;
                    margin: 4px auto;
                    border-radius: 2px;
                    background: currentColor;
                    transition: .2s
                }

                .menu-toggle.is-open span {
                    opacity: 0
                }

                .menu-toggle.is-open::before {
                    transform: translateY(6px) rotate(45deg)
                }

                .menu-toggle.is-open::after {
                    transform: translateY(-6px) rotate(-45deg)
                }

                @media(min-width:981px) and (max-width:1320px) {
                    .header-inner {
                        gap: 14px
                    }

                    .header-nav {
                        min-width: 0;
                        gap: 14px
                    }

                    .nav-links {
                        position: static;
                        gap: 10px;
                        transform: none
                    }

                    .nav-links a {
                        min-width: 40px;
                        font-size: 9px
                    }
                }

                @media(max-width:980px) {
                    .site-header {
                        backdrop-filter: none
                    }

                    .header-inner {
                        min-height: 70px
                    }

                    .brand-logo {
                        width: 46px;
                        height: 48px
                    }

                    .brand-copy strong {
                        font-size: 10px
                    }

                    .menu-toggle {
                        display: block
                    }

                    .header-nav {
                        position: fixed;
                        top: 92px;
                        right: 0;
                        left: 0;
                        height: calc(100vh - 92px);
                        height: calc(100dvh - 92px);
                        min-height: 0;
                        padding: 30px 20px 44px;
                        flex-direction: column;
                        justify-content: flex-start;
                        background: rgba(13, 13, 14, .98);
                        opacity: 0;
                        visibility: hidden;
                        pointer-events: none;
                        overflow-y: auto;
                        overscroll-behavior: contain;
                        -webkit-overflow-scrolling: touch;
                        transition: opacity .25s, visibility .25s
                    }

                    .header-nav.is-open {
                        opacity: 1;
                        visibility: visible;
                        pointer-events: auto
                    }

                    .nav-links {
                        width: 100%;
                        position: static;
                        transform: none;
                        flex-direction: column;
                        align-items: stretch;
                        gap: 0
                    }

                    .nav-links a {
                        padding: 18px 4px;
                        border-bottom: 1px solid var(--border);
                        font-size: 20px
                    }

                    .nav-icon {
                        width: 24px;
                        height: 24px
                    }

                    .nav-coming-soon {
                        padding: 18px 4px;
                        border-bottom: 1px solid var(--border);
                        font-size: 20px
                    }

                    .nav-links a::after {
                        display: none
                    }

                    .nav-links a.is-active {
                        padding-inline-start: 14px;
                        color: var(--accent);
                        background: rgba(241, 179, 92, .06)
                    }

                    .language-switcher {
                        width: 52px;
                        min-width: 52px;
                        height: 50px;
                        margin: 0;
                        align-items: center;
                        flex-direction: row
                    }

                    .language-trigger {
                        width: 50px;
                        height: 48px
                    }

                    .language-flag,.language-flag svg { width:30px;height:20px }

                    .language-options {
                        position: fixed;
                        z-index: 110;
                        top: 108px;
                        right: 20px;
                        bottom: max(16px,env(safe-area-inset-bottom));
                        left: 20px;
                        width: auto;
                        max-height: none;
                        align-content: start;
                        margin: 0;
                        overscroll-behavior: contain;
                        box-shadow: 0 18px 45px rgba(0,0,0,.45)
                    }

                    .header-tools {
                        width: 100%;
                        flex-direction: row;
                        align-items: center
                    }

                    .account-menu { flex:1 }
                    .account-trigger { width:100%;min-height:50px;justify-content:flex-start;font-size:14px }
                    .account-trigger .account-chevron { margin-inline-start:auto }
                    .account-avatar { width:34px;height:34px }
                    .account-user-name { max-width: 65vw; font-size: 14px }
                    .account-alliance-badge { margin-inline-start:auto }
                    .account-trigger .account-alliance-badge + .account-chevron { margin-inline-start:0 }
                    .account-menu-panel { top:auto;bottom:calc(100% + 8px);width:min(280px,calc(100vw - 40px));inset-inline-end:0 }

                    .language-select {
                        height: 50px;
                        font-size: 15px
                    }
                }

                @media(max-width:520px) {
                    :root {
                        --content: min(100% - 28px, 1160px)
                    }

                    .portal-note {
                        padding-right: 10px;
                        padding-left: 10px;
                        font-size: 8px;
                        letter-spacing: .075em
                    }

                }

                @media(prefers-reduced-motion:reduce) {

                    *,
                    *::before,
                    *::after {
                        scroll-behavior: auto !important;
                        transition: none !important
                    }

                    .portal-note,
                    .portal-note::before {
                        animation: none !important
                    }
                }

.site-footer {
        padding: 58px 0 22px;
        border-top: 1px solid rgba(236,107,45,.35);
        color: #b9aea5;
        background: radial-gradient(circle at 9% 0%, rgba(203,81,31,.18), transparent 27%), linear-gradient(135deg, #090a0d, #14100f)
    }

    .footer-inner { width: var(--content); margin: 0 auto }

    .footer-top {
        display: grid;
        grid-template-columns: minmax(230px, 1.55fr) repeat(3, minmax(120px, .7fr));
        gap: clamp(28px, 5vw, 72px);
        padding-bottom: 42px
    }

    .footer-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 19px }
    .footer-brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; text-decoration: none }
    .footer-brand img { width: 62px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.34)) }
    .footer-brand-copy strong { color: #f2e8df !important; font-size: 11px; letter-spacing: .13em }
    .footer-brand-copy small { color: #b36a50; font-size: 7px; letter-spacing: .17em }
    .footer-socials { display: flex; align-items: center; gap: 9px }
    .footer-socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #e9ded6; background: rgba(255,255,255,.035); transition: .2s }
    .footer-socials a:hover { border-color: #ec6b2d; color: #fff; background: #d95f27; transform: translateY(-2px) }
    .footer-socials svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
    .footer-socials a:first-child svg, .footer-socials a:nth-child(2) svg { fill: currentColor; stroke: none }
    .footer-socials .footer-social-play { fill: #090a0d }
    .footer-socials .footer-social-fill { fill: currentColor; stroke: none }
    .footer-column h2 { margin: 4px 0 16px; color: #f1a15e; font-size: 10px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase }
    .footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px }
    .footer-nav a, .footer-nav span { color: #d9d0ca; font-size: 12px; font-weight: 750; line-height: 1.35; text-decoration: none }
    .footer-nav a:hover { color: #f1a15e }
    .footer-disclaimer { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; margin-bottom: 22px; padding: 18px 20px; border: 1px solid rgba(241,161,94,.28); border-radius: 10px; color: #d9d0ca; background: linear-gradient(110deg,rgba(170,53,22,.16),rgba(241,179,92,.045)); box-shadow: inset 3px 0 0 #d65328 }
    .footer-disclaimer-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(241,161,94,.3); border-radius: 50%; color: #f1a15e; background: rgba(241,161,94,.08) }
    .footer-disclaimer-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
    .footer-disclaimer-copy h2 { margin: 0 0 5px; color: #f5e7dc; font-size: 12px; font-weight: 950; letter-spacing: .055em; text-transform: uppercase }
    .footer-disclaimer-copy p { max-width: 850px; margin: 0; color: #bfb5ad; font-size: 11px; font-weight: 650; line-height: 1.65 }
    .footer-disclaimer-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid rgba(241,161,94,.25); border-radius: 7px; color: #f1b35c; font-size: 10px; font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; transition: color .2s,border-color .2s,background .2s }
    .footer-disclaimer-link:hover,.footer-disclaimer-link:focus-visible { color: #fff3df; border-color: rgba(241,161,94,.55); background: rgba(241,161,94,.09); outline: 0 }
    .footer-bottom { display: flex; justify-content: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #938982; font-size: 10px; line-height: 1.65; text-align: center }
.footer-bottom p { max-width: 760px; margin: 0 }
.footer-inner strong { color: var(--text) }

.google-auth-block{display:grid;gap:14px;margin:0 0 20px}
.google-auth-button{min-height:50px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 13px;border:1px solid rgba(255,255,255,.16);border-radius:8px;color:#ded8d1;background:rgba(255,255,255,.045);font:inherit;font-size:13px;font-weight:850;cursor:pointer;opacity:1;text-decoration:none;transition:border-color .18s,background .18s,transform .18s}
.google-auth-button:hover,.google-auth-button:focus-visible{border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.085);transform:translateY(-1px);outline:0}
.google-auth-button.is-disabled{cursor:not-allowed;opacity:.62;transform:none}
.google-auth-button small{margin-left:auto;color:#d8b98f;font-size:8px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.google-auth-button svg{width:19px;height:19px;flex:0 0 auto}
.google-auth-soon{margin-left:auto;padding:4px 6px;border-radius:5px;color:#d8b98f;background:rgba(241,179,92,.1);font-size:8px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.google-auth-divider{display:flex;align-items:center;gap:11px;color:#837c76;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.google-auth-divider::before,.google-auth-divider::after{content:"";height:1px;flex:1;background:var(--border)}

.google-auth-block{display:grid;gap:14px;margin:0 0 20px}
.google-auth-button{min-height:50px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 13px;border:1px solid rgba(255,255,255,.16);border-radius:8px;color:#ded8d1;background:rgba(255,255,255,.045);font:inherit;font-size:13px;font-weight:850;cursor:pointer;opacity:1;text-decoration:none;transition:border-color .18s,background .18s,transform .18s}
.google-auth-button svg{width:19px;height:19px;flex:0 0 auto}
.google-auth-soon{margin-left:auto;padding:4px 6px;border-radius:5px;color:#d8b98f;background:rgba(241,179,92,.1);font-size:8px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.google-auth-divider{display:flex;align-items:center;gap:11px;color:#837c76;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.google-auth-divider::before,.google-auth-divider::after{content:"";height:1px;flex:1;background:var(--border)}

    @media(max-width:820px) {
        .footer-top { grid-template-columns: minmax(190px, 1.2fr) repeat(3, minmax(105px, .7fr)); gap: 25px }
    }

    @media(max-width:620px) {
        .site-footer { padding: 42px 0 19px }
        .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; padding-bottom: 32px }
        .footer-identity { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between }
        .footer-brand img { width: 54px; height: 56px }
        .footer-column h2 { margin-top: 0 }
        .footer-disclaimer { grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 13px; padding: 17px 16px }
        .footer-disclaimer-icon { width: 34px; height: 34px }
        .footer-disclaimer-link { grid-column: 2; justify-self: start }
    }

    @media(max-width:380px) {
        .footer-top { grid-template-columns: 1fr }
        .footer-identity { grid-column: auto }
    }
.account-menu-link.is-admin {
    color: #b4471e;
    background: #fff3e8
}
.header-logout-form{margin:0;padding:0}.header-logout-form button{width:100%;font-family:inherit;cursor:pointer;text-align:left}.account-menu-link[type="submit"]{border:0;background:transparent}.account-menu-link[type="submit"]:hover,.account-menu-link[type="submit"]:focus-visible{color:var(--text);background:var(--surface-soft)}

.account-menu-link.is-admin:hover,
.account-menu-link.is-admin:focus-visible {
    color: #8f3010;
    background: #ffe7d4
}

body.cookie-consent-open,
body.terms-entry-open {
    overflow: hidden
}

.terms-entry {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4,4,5,.88);
    backdrop-filter: blur(12px)
}

.terms-entry[hidden] { display: none !important }

.terms-entry-panel {
    width: min(780px,100%);
    max-height: calc(100dvh - 44px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(241,161,94,.32);
    border-radius: 14px;
    color: #e9dfd7;
    background: radial-gradient(circle at 8% 0%,rgba(202,73,27,.2),transparent 31%),#111113;
    box-shadow: 0 30px 90px rgba(0,0,0,.68),inset 3px 0 0 #d65328;
    outline: 0
}

.terms-entry-header { display: flex; align-items: center; gap: 14px }
.terms-entry-header p { margin: 0 0 4px; color: #ef8650; font-size: 9px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase }
.terms-entry-header h2 { margin: 0; color: #fff7ef; font-size: clamp(20px,3vw,27px); line-height: 1.1 }
.terms-entry-mark { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(241,161,94,.34); border-radius: 50%; color: #f1a15e; background: rgba(241,161,94,.08) }
.terms-entry-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.terms-entry-intro { margin: 14px 0; color: #bdb3ab; font-size: 12px; line-height: 1.6 }
.terms-entry-unofficial { display: grid; gap: 5px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(231,91,42,.36); border-radius: 8px; background: rgba(150,44,17,.14) }
.terms-entry-unofficial strong { color: #ffb07e; font-size: 11px; font-weight: 950; letter-spacing: .055em; text-transform: uppercase }
.terms-entry-unofficial span { color: #dfd1c7; font-size: 11px; font-weight: 650; line-height: 1.55 }
.terms-entry-document { min-height: 150px; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: #c9c0b9; background: rgba(4,4,5,.72); scrollbar-color: #c85127 #262224; outline: 0 }
.terms-entry-document:focus-visible { border-color: rgba(241,179,92,.55); box-shadow: 0 0 0 3px rgba(241,179,92,.09) }
.terms-entry-document-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.09) }
.terms-entry-document-title h3 { margin: 0; color: #fff5eb; font-size: 18px }
.terms-entry-document-title small { color: #8f857e; font-size: 9px; text-align: right }
.terms-entry-document section { margin-top: 18px }
.terms-entry-document h4 { margin: 0 0 7px; color: #f2a16a; font-size: 12px }
.terms-entry-document p,.terms-entry-document li { font-size: 11px; line-height: 1.65 }
.terms-entry-document p { margin: 7px 0 }
.terms-entry-document ul { margin: 7px 0; padding-left: 19px }
.terms-entry-version { margin-top: 22px !important; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); color: #948a83 }
.terms-entry-scroll-status { margin: 10px 0 8px; color: #d6a072; font-size: 10px; font-weight: 800 }
.terms-entry-scroll-status.is-complete { color: #79c997 }
.terms-entry-confirm { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #ddd2ca; background: rgba(255,255,255,.035); font-size: 11px; font-weight: 700; line-height: 1.5 }
.terms-entry-confirm input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: #d65328 }
.terms-entry-confirm:has(input:disabled) { color: #817872; opacity: .72 }
.terms-entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px }
.terms-entry-actions a { color: #b9aea5; font-size: 10px; font-weight: 800 }
.terms-entry-actions button { min-height: 43px; padding: 0 17px; border: 1px solid #d65328; border-radius: 8px; color: #fff; background: #d65328; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer }
.terms-entry-actions button:hover:not(:disabled),.terms-entry-actions button:focus-visible:not(:disabled) { background: #ee632f; outline: 2px solid rgba(241,179,92,.55); outline-offset: 2px }
.terms-entry-actions button:disabled { cursor: not-allowed; color: #857b74; border-color: rgba(255,255,255,.1); background: #282426 }
.terms-entry-error { margin: 10px 0 0; color: #ff9e86; font-size: 10px; font-weight: 750; text-align: right }

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    align-items: end;
    padding: 16px;
    background: rgba(8, 8, 10, .58);
    backdrop-filter: blur(3px);
    overscroll-behavior: contain
}

.cookie-consent[hidden] {
    display: none !important
}

.cookie-consent-panel {
    width: min(720px, 100%);
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
    padding: 22px 22px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: linear-gradient(180deg, #202023 0%, #171719 100%);
    box-shadow: var(--shadow);
    overflow-y: auto
}

.cookie-consent-panel h2 {
    margin: 0 0 10px;
    font-family: Impact, Arial Black, sans-serif;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.05;
    text-transform: uppercase
}

.cookie-consent-panel p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55
}

.cookie-consent-copy {
    margin-bottom: 16px
}

.cookie-consent-copy p {
    margin-bottom: 0
}

.cookie-consent-panel a {
    color: var(--accent);
    text-underline-offset: 2px
}

.cookie-consent-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px
}

.cookie-consent-list li {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
    line-height: 1.45
}

.cookie-consent-list label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer
}

.cookie-consent-list input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: #b9481f;
    flex: 0 0 auto
}

.cookie-consent-list input[type="checkbox"]:disabled {
    opacity: .72
}

.cookie-consent-list label span {
    display: grid;
    gap: 2px
}

.cookie-consent-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.cookie-consent-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: var(--surface-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer
}

.cookie-consent-btn.is-primary {
    border-color: rgba(241, 179, 92, .45);
    color: #fff6ea;
    background: linear-gradient(180deg, #b9481f 0%, #8f3010 100%)
}

.cookie-consent-btn.is-ghost {
    color: var(--muted);
    background: transparent
}

.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible {
    filter: brightness(1.06)
}

.cookie-consent-btn:focus-visible,
.cookie-consent-panel a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

@media (max-width: 620px) {
    .terms-entry { padding: 8px }
    .terms-entry-panel { max-height: calc(100dvh - 16px); padding: 16px 14px; border-radius: 11px }
    .terms-entry-header { gap: 10px }
    .terms-entry-mark { width: 38px; height: 38px }
    .terms-entry-header h2 { font-size: 19px }
    .terms-entry-intro { margin: 10px 0; font-size: 11px }
    .terms-entry-unofficial { margin-bottom: 10px; padding: 10px 11px }
    .terms-entry-document { padding: 15px 14px }
    .terms-entry-document-title { display: grid; gap: 4px }
    .terms-entry-document-title small { text-align: left }
    .terms-entry-actions { align-items: stretch; flex-direction: column-reverse; gap: 9px }
    .terms-entry-actions a { align-self: center }
    .terms-entry-actions button { width: 100% }

    .cookie-consent {
        padding: 10px
    }

    .cookie-consent-panel {
        max-height: calc(100dvh - 20px);
        padding: 18px 16px 14px
    }

    .cookie-consent-actions {
        flex-direction: column
    }

    .cookie-consent-btn {
        width: 100%
    }
}
