@import url("./santa.css");

@font-face {
    font-family: Winter Inter;
    src: url("./inter-cyrillic.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+2116;
}
@font-face {
    font-family: Winter Inter;
    src: url("./inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

.winter-surface, #winter-widget { font-family: Winter Inter, system-ui, sans-serif; }
.winter-surface *, #winter-widget *, .winter-hideout * { box-sizing: border-box; }
.winter-surface [hidden], #winter-widget [hidden] { display: none !important; }
.winter-surface {
    --winter-gold: #edc364;
    --winter-soft: #baccc8;
    --winter-edge: #4a5e58;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    color: #f6f5ef;
    background: radial-gradient(ellipse at 74% 0%, #385a47 0%, transparent 64%), linear-gradient(111deg, #182b23, #244437 62%, #192d25);
    border: 1px solid var(--winter-edge);
    border-radius: 16px;
    padding: 14px 19px;
    gap: 12px 20px;
    line-height: 1.4;
}
.winter-cover {
    width: 100%;
    margin: clamp(24px, 3vw, 46px) auto;
    min-height: 192px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    padding: clamp(22px, 3vw, 39px);
    gap: 18px;
    border-color: #60736f;
    background: radial-gradient(ellipse at 82% 5%, #486e53b0, transparent 63%),
        linear-gradient(110deg, #192b23 5%, #26483a 58%, #152b23);
}
.main-promo .winter-compact { margin: 22px 0; }
body[data-winter-page="registration"] .winter-compact { width: min(1200px, calc(100% - 32px)); margin: 24px auto; }
body[data-winter-page="cabinet"] .winter-compact { width: min(1200px, calc(100% - 32px)); margin: 24px auto; }
#winter-lk { padding-block: 34px 8px; }
#winter-lk .winter-wallet-numbers { max-width: 480px; margin: 12px 0 18px; }
#winter-lk .winter-ui-button { display: inline-block; margin-bottom: 12px; }
.winter-shop-sidebar {
    width: min(270px, calc(100% - 32px)); margin: 16px 16px 0 auto;
}
.winter-shop-stack { display: grid; align-content: start; gap: 15px; }
.winter-shop-sidebar:has(#fundraiser-slot[hidden]):has(#winter-shop-slot:empty),
.winter-shop-sidebar #winter-shop-slot:empty { display: none; }
.winter-shop-sidebar #fundraiser-slot:not([hidden]) { position: static; width: auto; margin: 0; }
.winter-shop-sidebar .fundraiser-card { position: relative; inset: auto; }
.winter-store-disclosure {
    background: #192c25; color: #f3f3e8; border: 1px solid #476654; border-radius: 13px;
}
.winter-store-disclosure > summary {
    position: relative; display: flex; align-items: center; gap: 8px; min-height: 43px;
    padding: 7px 12px; border-radius: 12px; cursor: pointer; list-style: none;
    background: linear-gradient(105deg, #2e4a39, #22352e 74%); font: 650 .9rem/1.25 Winter Inter, system-ui, sans-serif;
}
.winter-store-disclosure > summary::-webkit-details-marker { display: none; }
.winter-store-disclosure > summary > span:first-child { color: #f2cd78; }
.winter-store-disclosure > summary::after {
    content: ""; width: 7px; height: 7px; margin-left: auto;
    border: solid #d7bd7c; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.winter-store-disclosure[open] > summary { border-radius: 12px 12px 0 0; border-bottom: 1px solid #476654; }
.winter-store-disclosure[open] > summary::after { transform: rotate(225deg); }
.winter-store-disclosure > summary:hover { background: #375446; }
.winter-shop-sidebar .winter-shop-card {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
    background: #192c25; border: 0; border-radius: 0 0 12px 12px; padding: 10px;
}
.winter-shop-card .winter-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.winter-shop-card .winter-button { min-height: 34px; padding: 5px 7px; font-size: .82rem; }
.winter-shop-card .winter-hunt { font-size: .78rem; }
.winter-shop-card .winter-shop-reward-hint { color: #e4d5ac; font-size: .79rem; }
.winter-shop-card .winter-instructions { font-size: .8rem; }
.winter-shop-card .winter-stats { gap: 3px; font-size: .72rem; }
.winter-shop-card .winter-stats span { padding: 4px 5px; }
.winter-shop-card .winter-field { padding: 8px; }
.winter-shop-card .winter-ribbon { min-height: 34px; padding: 5px 7px; }
.winter-store-disclosure > summary > .winter-snow-trim { --snow-height: 23px !important; }
.winter-purchase-reward { border: 1px solid #806733; border-radius: 8px; background: #2c261b; padding: 8px 11px; color: #fae0a0; }
@media (min-width: 1760px) {
    .winter-shop-sidebar { position: absolute; inset: 28px 16px 0 auto; margin: 0; width: min(270px, calc((100% - 1240px) / 2 - 36px)); }
    .winter-shop-stack { position: sticky; top: 16px; }
}
@media (max-width: 410px) {
    .winter-shop-sidebar { width: calc(100% - 22px); margin-right: 11px; }
    body[data-winter-page="shop"] .top-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
}
@media (min-width: 1191px) {
    body[data-winter-page="shop"] .topbar-inner { gap: 19px; }
    body[data-winter-page="shop"] .main-nav { gap: 14px; }
    body[data-winter-page="shop"] .top-actions { gap: 8px; }
    body[data-winter-page="shop"] #account { max-width: 148px; }
    body[data-winter-page="shop"] #account [data-account-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 1191px) and (max-width: 1510px) {
    body[data-winter-page="shop"] .topbar-inner { flex-wrap: wrap; gap: 8px 19px; padding-top: 8px; }
    body[data-winter-page="shop"] .main-nav { order: 3; width: 100%; min-height: 36px; padding-bottom: 6px; flex-wrap: wrap; }
}
.winter-copy, .winter-actions, .winter-game-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.winter-copy { flex-wrap: nowrap; min-width: 0; }
.winter-scene-icon {
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    height: 37px;
    border: 1px solid #f3d2815c;
    border-radius: 9px;
    color: #ffdf91;
    background: #e6c47713;
    font-size: 22px;
}
.winter-cover .winter-scene-icon { display: none; }
.winter-surface h2 { color: inherit; margin: 0; font: 720 clamp(.98rem, 1.5vw, 1.17rem)/1.17 Winter Inter, system-ui, sans-serif; }
.winter-cover h2 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
.winter-surface p { margin: 0; color: var(--winter-soft); }
.winter-cover .winter-copy p { margin-top: 8px; color: #e9ece5; font-size: clamp(.92rem, 1.4vw, 1.08rem); }
.winter-button, .winter-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #ecc364;
    border-radius: 9px;
    background: var(--winter-gold);
    color: #211a10;
    font: 670 .88rem/1.2 Winter Inter, system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.winter-button:hover { color: #171008; background: #ffe393; }
.winter-quick-tree {
    align-self: center;
    min-height: 42px;
    padding: 7px 13px;
    border: 1px solid #d6b66b88;
    border-radius: 10px;
    background: #1f2b2adb;
    color: #f9d786;
    font: 650 .92rem/1.2 Winter Inter, system-ui, sans-serif;
    white-space: nowrap;
    transition: background-color .18s, border-color .18s;
}
.winter-quick-tree:hover, .winter-quick-tree:focus-visible { background: #34433c; border-color: #f9d786; }
.minefite-block__buttons:has(.winter-quick-tree) { flex-wrap: wrap; }
.winter-quiet, .winter-ribbon {
    color: #edf4ed;
    background: #172425e0;
    border-color: #7e9488;
}
.winter-button.winter-quiet:hover, .winter-ribbon:hover { color: #fff; background: #334545; }
.winter-surface :focus-visible, #winter-widget :focus-visible, .winter-hideout :focus-visible {
    outline: 2px solid #ffe099;
    outline-offset: 3px;
}
.winter-header-lights {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: calc(100% + 1px);
    width: min(87%, 1020px);
    height: 82px;
    transform: translateX(-50%);
    pointer-events: none;
}
.winter-garland-window { position: absolute; inset: 0; overflow: clip; }
.winter-garland-panel {
    position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: translateY(-75px);
    transition: transform .51s cubic-bezier(.59,.04,.71,.43), opacity .26s ease .12s, visibility 0s .52s;
}
.winter-garland-panel.is-unfurled {
    visibility: visible; opacity: 1; transform: none;
    transition: transform .66s cubic-bezier(.19,.75,.25,1.04) .08s, opacity .27s ease .07s, visibility 0s;
}
.winter-garland-wire { position: absolute; inset: 0; width: 100%; height: 67px; overflow: hidden; }
.winter-garland-wire path { fill: none; stroke: #a09575; stroke-width: 1.65px; vector-effect: non-scaling-stroke; }
.winter-garland-pull {
    position: absolute; z-index: 1; inset: 0 auto auto 50%; translate: -50% 0; display: block;
    width: 35px; height: 61px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
}
.winter-garland-pull:focus-visible { outline: 2px solid #f1ce7e; outline-offset: -3px; border-radius: 6px; }
.winter-garland-anchor {
    position: absolute; inset: 0 auto auto 50%; translate: -50% 0;
    width: 14px; height: 8px; border: 1px solid #aa8a5e; border-top: 0;
    border-radius: 0 0 5px 5px; background: linear-gradient(95deg, #514331, #a68556 52%, #554535);
}
.winter-garland-cord {
    position: absolute; inset: 6px auto auto 50%; translate: -50% 0; width: 3px; height: 38px;
    background: repeating-linear-gradient(140deg, #d9b878 0 2px, #75613d 2.3px 4px);
    transform-origin: 50% 0; box-shadow: 1px 1px 2px #060810ad;
}
.winter-garland-cord::after {
    content: ''; position: absolute; inset: auto auto -1px 50%; translate: -50% 0; transform: rotate(45deg);
    width: 11px; height: 11px; border-radius: 3px; border: 1px solid #dab97c;
    background: linear-gradient(145deg, #edcc8b, #86633d 75%);
    box-shadow: 0 1px 7px #170e04c7;
}
.winter-garland-pull:hover .winter-garland-cord::after { background: linear-gradient(145deg, #ffe3a4, #a88351 75%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .winter-garland-cord { transition: transform .18s ease-out; }
    .winter-garland-pull:hover:not([data-pulled]) .winter-garland-cord { transform: scaleY(1.2); }
}
.winter-garland-piece {
    position: absolute;
    left: var(--lamp-x);
    top: var(--lamp-y);
    width: clamp(15px, 2vw, 32px);
    height: 38px;
    padding: 0;
    border: 0;
    transform: translate(-50%, -3px);
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}
.winter-garland-hanging {
    position: absolute; top: 2px; left: 50%; width: 22px; height: 34px; margin-left: -11px;
    display: block; transform-origin: 50% 0; pointer-events: none;
}
.winter-garland-hanging::before {
    position: absolute; left: calc(50% - .75px); top: 0; width: 1.5px; height: 10px;
    content: ''; background: #998d70;
}
.winter-garland-lamp .winter-garland-hanging i {
    position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 10px; height: 15px; border-radius: 5px 5px 6px 6px;
    background: radial-gradient(ellipse at 35% 27%, #fffdf0, var(--lamp-color) 47%);
    box-shadow: 0 0 12px 4px var(--lamp-color), 0 0 24px 1px var(--lamp-color);
    animation: winter-lamp 3.3s var(--lamp-delay) ease-in-out infinite;
}
.winter-garland-lamp .winter-garland-hanging i::before {
    content: ''; position: absolute; inset: -2px 1px auto; height: 4px; border-radius: 1px; background: #796b4e;
}
.winter-garland-lamp[aria-pressed="false"] .winter-garland-hanging i { animation: none; box-shadow: none; background: #3f4850; }
.winter-garland-bell .winter-garland-hanging svg {
    position: absolute; inset: 8px -1px auto; width: 24px; height: 27px; filter: drop-shadow(0 2px 2px #0a0b10b0);
}
.winter-garland-bell:hover .winter-garland-hanging svg { filter: drop-shadow(0 0 5px #f5d38a8d); }
.winter-garland-piece:focus-visible { border-radius: 5px; outline: 2px solid #f4d38c; outline-offset: 2px; }
@keyframes winter-lamp { 0%, 100% { opacity: .68; } 43% { opacity: 1; } }
.mirtan-promo:has(> .winter-promo-art) { overflow: visible; }
.winter-promo-art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.winter-snow-trim {
    position: absolute; top: 0; left: var(--snow-inset); z-index: 7; pointer-events: none;
    display: block; width: min(55%, var(--snow-width)); height: var(--snow-height);
    transform: translateY(-50%);
}
.winter-snow-trim[data-edge="right"] { left: auto; right: var(--snow-inset); }
.winter-snow-trim svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 3px #09152299); overflow: visible; }
.winter-weather-canvas[hidden] { display: none !important; }
.winter-weather-canvas { position: fixed; inset: 0; z-index: 900; pointer-events: none; width: 100%; height: 100%; }
.winter-weather-actions {
    position: fixed; z-index: 1001;
    top: max(12px, calc(env(safe-area-inset-top) + 6px));
    right: max(12px, calc(env(safe-area-inset-right) + 6px));
    display: flex; align-items: center; gap: 5px; pointer-events: none;
}
body[data-winter-page="shop"] .winter-weather-actions { z-index: 49; }
body:has(.header-mobile.__open) .winter-weather-actions { z-index: 999; }
.winter-weather-actions > button { pointer-events: auto; }
.winter-weather-toggle, .winter-weather-shovel {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 10px; border: 1px solid #516173; border-radius: 8px;
    background: #1e2834; color: #e5f4ff; font: 650 .81rem/1.15 Winter Inter, system-ui, sans-serif;
    cursor: pointer; white-space: nowrap;
}
.winter-weather-toggle, .winter-weather-shovel { min-height: 38px; }
.winter-weather-shovel { width: 35px; padding: 0; }
.winter-shovel-icon { display: block; width: 29px; height: 29px; filter: drop-shadow(0 1px 1px #05070c); }
.winter-weather-shovel:not(:disabled, [aria-disabled="true"]):hover { background: #33435a; border-color: #a99671; }
.winter-weather-shovel:is(:disabled, [aria-disabled="true"]) { opacity: .52; cursor: default; }
.winter-weather-toggle[aria-pressed="true"] { border-color: #8ba4b5; color: #f0fbff; }
.winter-weather-toggle[aria-pressed="false"] { color: #bac5cb; background: #22242b; }
.winter-weather-toggle:hover { background: #33435a; }
@media (max-width: 540px) {
    .winter-weather-toggle { min-height: 34px; padding-inline: 7px; font-size: .76rem; }
    .winter-weather-shovel { min-height: 34px; width: 32px; }
}
.winter-ornaments { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.winter-ornaments i {
    position: absolute;
    top: 14%;
    right: 8%;
    width: 3px;
    height: 3px;
    background: #ecffff;
    box-shadow: 0 0 8px #e3ffff;
    transform: rotate(45deg);
    opacity: .55;
    animation: winter-drift 7s ease-in-out infinite;
}
.winter-ornaments i:nth-child(2n) { top: 36%; right: 26%; animation-delay: -2s; }
.winter-ornaments i:nth-child(3n) { top: 62%; right: 14%; animation-delay: -4s; }
.winter-ornaments i:nth-child(4n) { top: 75%; right: 36%; animation-delay: -5s; }
.winter-ornaments i:nth-child(5n) { top: 42%; right: 5%; animation-delay: -1s; }
.winter-ornaments i:nth-child(7n) { top: 16%; right: 40%; animation-delay: -3s; }
@keyframes winter-drift {
    0%, 100% { transform: translate(0, -6px) rotate(45deg); opacity: .2; }
    50% { transform: translate(-12px, 10px) rotate(45deg); opacity: .8; }
}
.winter-game {
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid #7b9d8f5e;
    padding-top: 14px;
    animation: winter-in .24s ease-out both;
}
.winter-game .winter-instructions { color: #e3e9e1; font-size: .9rem; }
.winter-game-bar { justify-content: space-between; margin-top: 11px; }
.winter-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .83rem; }
.winter-stats span { padding: 6px 10px; border: 1px solid #9ac4b735; border-radius: 7px; background: #111c1fd6; }
.winter-stats strong { color: #ffdb8a; font-variant-numeric: tabular-nums; }
.winter-field { position: relative; overflow: hidden; margin-top: 10px; border: 1px solid #89ac9f75; border-radius: 10px; }
.winter-snow {
    height: clamp(230px, 32vw, 310px);
    background: linear-gradient(150deg, #1526281c, #0e212bdc), url("./winter.webp") center 61% / cover;
}
.winter-flake {
    position: absolute;
    top: 0;
    left: var(--flake-x);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e3ffffa1;
    border-radius: 50%;
    color: #eaffff;
    background: #18323cdd;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    animation: winter-fall var(--fall-time) linear forwards;
}
.winter-flake:hover { background: #345263; }
.winter-flake-gold { color: #ffe199; border-color: #ffda82; box-shadow: 0 0 10px #ffce7e6b; }
.winter-flake[data-caught] { opacity: 0; pointer-events: none; }
@keyframes winter-fall {
    from { top: 4px; transform: translateX(-50%); }
    to { top: calc(100% - 44px); transform: translateX(calc(-50% + 9px)); }
}
.winter-packing {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px 12px;
    background: radial-gradient(ellipse at 50% 18%, #535033, #1f3334 66%, #152426);
}
.winter-parcel, .winter-ribbon { --ribbon: #e9a2a1; }
[data-ribbon="pine"] { --ribbon: #a6d5ae; }
[data-ribbon="golden"] { --ribbon: #f5ca70; }
[data-ribbon="frost"] { --ribbon: #b5e0f8; }
.winter-parcel {
    width: 86px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid #ffdbab70;
    border-radius: 9px;
    color: #20292c;
    font-size: 29px;
    text-shadow: 0 1px #ede5cc53;
    background: linear-gradient(90deg, transparent 42%, var(--ribbon) 42% 58%, transparent 58%),
        linear-gradient(0deg, transparent 46%, var(--ribbon) 46% 63%, transparent 63%),
        linear-gradient(150deg, #bfa07b, #80674e);
    box-shadow: 0 7px 17px #0d1c1f91;
}
.winter-ribbons { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.winter-ribbon, .winter-ribbon:hover { border-color: var(--ribbon); color: var(--ribbon); }
.winter-feedback { text-align: center; font-size: .85rem; }
.winter-game-result:not(:empty) { margin-top: 10px; color: #ffd990; }
.winter-spot-anchor { position: relative; }
.winter-loose-layer { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; z-index: 9; }
.winter-hideout { display: grid; place-items: center; position: absolute; width: 48px; height: 48px; z-index: 8; pointer-events: none; transform: translate(-50%, -50%); background: none; border: 0; box-shadow: none; }
.winter-hideout:empty, .winter-hideout[hidden] { display: none; }
.winter-hideout img.winter-found-model {
    width: 50px; height: 50px; object-fit: contain; display: block;
    padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0;
    cursor: pointer; pointer-events: auto; user-select: none;
    transform: rotate(var(--toy-turn, 20deg));
    filter: drop-shadow(0 0 3px #f4dba979) drop-shadow(0 2px 2px #09111d91);
    transition: transform .16s ease, filter .16s ease;
}
.winter-hideout img.winter-found-model:is(:hover, :focus-visible) {
    transform: translateY(-4px) rotate(var(--toy-turn, 20deg)); filter: drop-shadow(0 0 7px #ffdc93dc);
}
.winter-hideout img.winter-first-model { width: 57px; height: 57px; filter: drop-shadow(1px 3px 4px #e6ad6280); }
.winter-hunt {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
    color: #d5e3da; padding-top: 7px; border-top: 1px solid #a7bcaa42; font-size: .84rem; width: 100%;
}
.winter-hunt details { min-width: 0; }
.winter-hunt summary, .winter-hunt-signin { color: #ffe29a; cursor: pointer; }
.winter-hunt-signin { padding: 0; border: none; background: none; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.winter-hunt details[open] { flex: 1 0 100%; }
.winter-hunt ul { padding-left: 18px; margin: 6px 0 0; line-height: 1.45; }
.winter-hunt li a { color: #ffdf95; text-decoration: underline; text-underline-offset: 3px; }
#winter-widget dialog[open] { margin: auto; position: fixed; inset: 0; animation: winter-in .26s cubic-bezier(.2,.66,.26,1) both; }
body:has(#winter-widget dialog[open]) { overflow: hidden; }
#winter-widget dialog[open]::backdrop { animation: winter-veil-in .26s ease-out both; }
#winter-widget dialog[data-closing] { animation: winter-out .25s ease-in both; pointer-events: none; }
#winter-widget dialog[data-closing]::backdrop { animation: winter-veil-out .25s ease-in both; }
#winter-widget .dialog-header > #winter-music {
    order: 1;
    margin-inline-start: auto;
    min-height: 39px;
    font-size: .78rem;
    white-space: nowrap;
}
#winter-widget .dialog-header > .close { order: 2; margin-inline-start: 0; flex: 0 0 auto; }
#winter-widget .winter-demo { margin-top: 8px; font-size: .83rem; }
#winter-widget .winter-demo label { display: block; margin-top: 5px; }
#winter-widget #winter-account { max-width: 100%; margin-top: 5px; }
#winter-widget .winter-demo button { font-size: .78rem; }
#winter-widget .winter-demo .demo-buttons { margin-top: 9px; }
#winter-widget {
    --panel: #22252e; --well: #181a21; --line: #414652; --faint: #383d48;
    --text: #f4f5f8; --muted: #b5bece; --gold: #e2b53e; --gold-line: #a17d3d;
}
#winter-widget dialog { background: #22252e; border-color: #444956; }
#winter-widget .dialog-header, #winter-widget .tree-panel { background: #22252e; border-color: #434853; }
#winter-widget .dialog-title h2, #winter-widget .rewards h3 { font-family: Winter Inter, system-ui, sans-serif; }
#winter-widget .tree-stage { background: radial-gradient(ellipse at 48% 44%, #495465 0, #303947 50%, #202732 100%); }
#winter-widget .tree-stage::before, #winter-widget .tree-stage::after { content: none; }
#winter-widget .tree-story, #winter-widget .scene-controls .icon-button, #winter-widget .tab[aria-pressed=true],
#winter-widget .tree-progress, #winter-widget .inventory-content, #winter-widget .inventory-item,
#winter-widget .book-item { background: #1a1c24; border-color: #484e5b; }
#winter-widget .tab { background: #2a2d37; color: #cad0db; }
#winter-widget .tab[aria-pressed=true] { color: #f1c864; }
#winter-widget .inventory-item.rare, #winter-widget .gift-button, #winter-widget .garland { background: #383020; border-color: #8a6e37; }
#winter-widget .inventory-item[aria-pressed=true] { border-color: #e5b84a; background: #37301f; }
#winter-widget .drag-toy {
    position: absolute; top: 0; left: 0; width: 44px; height: 44px; z-index: 220;
    margin: 0; animation: none; transition: none;
    transform: translate(var(--drag-x), var(--drag-y)) translate(-50%, -54%);
}
@media (min-width: 980px) {
    #winter-widget .scene-controls { left: auto; right: 16px; bottom: 23px; transform: none; }
    #winter-widget .scene-tip { left: 13px; right: auto; bottom: 13px; transform: none; text-align: left; }
}
@media (min-width: 701px) {
    #winter-widget .tree-layout { --scene-size: clamp(520px, 71dvh, 650px); }
    #winter-widget .tree-stage { min-height: var(--scene-size); }
    #winter-widget .tree-panel { max-height: var(--scene-size); overflow: auto; scrollbar-width: thin; }
    #winter-widget .tree-panel > * { flex-shrink: 0; }
}
.winter-toast:not([hidden]) {
    display: block !important;
    position: fixed;
    z-index: 12000;
    bottom: 19px;
    right: 16px;
    width: fit-content;
    max-width: calc(100vw - 34px);
    padding: 10px 15px;
    border: 1px solid #8b7853;
    border-radius: 8px;
    color: #ffdf95;
    background: #202a2bef;
    box-shadow: 0 8px 20px #0a1118bc;
}
@keyframes winter-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes winter-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes winter-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes winter-veil-out { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 720px) {
    .winter-surface { grid-template-columns: 1fr; }
    .winter-compact .winter-button { padding-inline: 9px; }
    .winter-garland-lamp .winter-garland-hanging i { width: 7px; height: 11px; }
    .winter-garland-bell .winter-garland-hanging svg { inset-inline: 0; width: 20px; }
}
@media (max-width: 440px) {
    #winter-widget .dialog-header { gap: 7px; flex-wrap: wrap; }
    #winter-widget .dialog-header > #winter-music { font-size: .69rem; }
    #winter-widget .dialog-header .tree-emblem { width: 33px; height: 33px; }
    #winter-widget .dialog-title h2 { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .winter-garland-lamp .winter-garland-hanging i, .winter-ornaments i, .winter-game,
    #winter-widget dialog[open], #winter-widget dialog[open]::backdrop { animation: none; }
    .winter-garland-panel, .winter-garland-panel.is-unfurled { transition: none; }
    .winter-flake { top: var(--flake-y); transform: translateX(-50%); animation: none; }
}

.winter-coupon-trigger { display: inline-flex; align-items: center; gap: .4em; }
.winter-coupon-trigger svg { color: #e8bd52; flex: none; }
.winter-coupon-dialog {
    max-width: min(480px, calc(100% - 28px)); width: 100%;
    max-height: calc(100dvh - 30px); padding: 0;
    border: 1px solid #464b58; border-radius: 15px;
    background: #22252e; color: #f3f4f7;
    font: 400 .94rem/1.45 Winter Inter, system-ui, sans-serif;
}
.winter-coupon-dialog::backdrop { background: #0b0d12a8; backdrop-filter: blur(4px); }
.winter-dialog-inner { padding: 21px; }
.winter-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.winter-dialog-head h2 { margin: 0; font: 720 1.55rem/1.2 Winter Inter, system-ui, sans-serif; }
.winter-dialog-close { background: #181a20; border: 1px solid #464b58; color: #fff; border-radius: 7px; width: 36px; height: 36px; cursor: pointer; }
.winter-dialog-body > button { margin-top: 12px; }
.winter-coupon-form { display: grid; gap: 12px; }
.winter-coupon-form label, .winter-wallet-checkout label { display: grid; gap: 5px; color: #e0e3ea; font-size: .88rem; }
.winter-coupon-form input, .winter-coupon-form select, .winter-wallet-checkout input {
    width: 100%; min-width: 0; min-height: 42px; border-radius: 8px;
    border: 1px solid #484e5d; background: #191b23; color: #fff; padding: 7px 10px; font: inherit;
}
.winter-coupon-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.winter-ui-button { background: #e2b53e; color: #17140c; padding: 10px 12px; border: 1px solid #e2b53e; border-radius: 8px; font-weight: 650; text-decoration: none; cursor: pointer; }
.winter-ui-outline { background: #282933; color: #f2d987; border-color: #8c7544; }
.winter-wallet-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.winter-wallet-numbers div { display: grid; gap: 3px; background: #191b23; border: 1px solid #373b48; border-radius: 9px; padding: 10px; }
.winter-wallet-numbers small { color: #b9c1d3; }
.winter-wallet-numbers strong { color: #edc24e; font-size: 1.2rem; }
.winter-coupon-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-radius: 9px; border: 1px solid #786033; background: #282319; }
.winter-coupon-balance small { font-size: .9rem; color: #f4e5bd; }
.winter-coupon-balance strong { font-size: 1.3rem; color: #f4cf6e; font-variant-numeric: tabular-nums; }
.winter-profile-picker { position: relative; display: grid; gap: 6px; color: #e0e3ea; font-size: .88rem; }
.winter-profile-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 44px; background: #191b23; border: 1px solid #484e5d; border-radius: 9px;
    color: #f7f6f1; padding: 7px 12px; cursor: pointer;
}
.winter-profile-trigger i { width: 8px; height: 8px; border: solid #eac368; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.winter-profile-trigger[aria-expanded="true"] { border-color: #d5a84d; }
.winter-profile-trigger[aria-expanded="true"] i { transform: rotate(-135deg); }
.winter-profile-picker [role=listbox] {
    position: absolute; z-index: 2; top: calc(100% + 5px); left: 0; right: 0;
    display: grid; gap: 3px; padding: 5px; max-height: 180px; overflow: auto;
    border-radius: 9px; border: 1px solid #515663; background: #1c1f28; box-shadow: 0 12px 28px #0a0a10aa;
}
.winter-profile-picker [role=listbox][hidden] { display: none; }
.winter-profile-option {
    display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 41px;
    border: 1px solid transparent; border-radius: 6px; padding: 6px 9px;
    background: none; color: #f1f1f3; font: inherit; text-align: left; cursor: pointer;
}
.winter-profile-option[aria-selected="true"] { color: #ffe09e; background: #342c1d; }
.winter-profile-option[aria-selected="true"]::after { content: '✓'; }
.winter-profile-option:hover, .winter-profile-option:focus-visible { background: #323947; border-color: #ac925d; outline: none; }
.winter-profile-trigger:focus-visible, .winter-weather-toggle:focus-visible, .winter-weather-shovel:focus-visible { outline: 2px solid #e9bf66; outline-offset: 2px; }
.winter-coupon-form [role=status]:empty { display: none; }
.winter-coupon-form [role=status] { color: #afd9aa; margin: 0; }
.winter-coupon-form [data-error=true] { color: #ffafa6; }
.winter-cart-wallet { border: 1px solid #90743f; border-radius: 9px; background: #2c271d; padding: 10px 13px; }
.winter-cart-wallet > strong, .winter-cart-wallet > small { color: #edd286; }
.winter-wallet-checkout { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; margin: 6px 0; }
.winter-wallet-checkout input { max-width: 120px; min-height: 34px; }
.winter-admin-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.winter-admin-editor form { align-content: start; background: #22252e; border: 1px solid #454a56; border-radius: 12px; color: #f5f5f8; padding: 16px; }
.winter-admin-editor h2 { margin: 0; font-size: 1.18rem; }
.winter-inline-field { display: flex; gap: 6px; }
.winter-code-list { display: grid; gap: 7px; margin-top: 16px; }
.winter-code-row { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 8px; border: 1px solid #494e59; background: #22252e; color: #f4f5f7; border-radius: 8px; padding: 8px 10px; }
.winter-code-row code { overflow-wrap: anywhere; color: #e9c667; }
.winter-coupon-status[data-active=true] { color: #aeddb0; }
.winter-coupon-status[data-active=false] { color: #ddb1aa; }
@media (max-width: 660px) {
    .winter-admin-editor { grid-template-columns: 1fr; }
    .winter-code-row { grid-template-columns: 1fr 1fr; }
    .winter-coupon-trigger { gap: 3px; padding-inline: 7px; }
    .winter-coupon-trigger svg { width: 17px; }
}
