* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior-y: none;
}

/* Reveal the initial scene only after session and saved layout restoration. */
body.scene-loading {
    opacity: 0;
    pointer-events: none;
}

.background {
    position: fixed;
    left: 50%;
    bottom: 0;

    width: 100vw;
    height: 100vh;

    transform: translateX(-50%);

    background: url("/front/assets/optimized/bg-room-v6-shadows.2e62ead28393.avif") no-repeat center bottom;
    background-size: cover;

    z-index: -10;
}

/* Viewport layers sit above the tree and toys without intercepting input. */
.snowfall {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.background[data-background-id="forest"] ~ .snowfall {
    display: block;
}

.snowfall span {
    position: absolute;
    inset: -480px -100px;
    background-image:
        radial-gradient(circle at 24px 38px, #fff 0 1px, transparent 2px),
        radial-gradient(circle at 156px 92px, #fff 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 312px 24px, #fff 0 1px, transparent 2px),
        radial-gradient(circle at 78px 214px, #fff 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 248px 182px, #fff 0 1px, transparent 2px),
        radial-gradient(circle at 378px 286px, #fff 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 184px 354px, #fff 0 1px, transparent 2px),
        radial-gradient(circle at 42px 426px, #fff 0 1px, transparent 2px),
        radial-gradient(circle at 294px 452px, #fff 0 1.5px, transparent 2.5px);
    background-size: 420px 480px;
    opacity: .4;
    animation: snowfall-drift 26s linear infinite;
}

.snowfall span:nth-child(2) {
    background-position: 137px 173px;
    opacity: .65;
    animation-duration: 19s;
    animation-delay: -9s;
}

.snowfall span:nth-child(3) {
    background-position: 283px 317px;
    background-size: 630px 480px;
    opacity: .85;
    filter: blur(.4px);
    animation-duration: 14s;
    animation-delay: -5s;
}

@keyframes snowfall-drift {
    from { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(35px, 240px, 0); }
    to { transform: translate3d(0, 480px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    html:not([data-motion="true"]) .snowfall span { animation: none; }
}

.room-garland {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(58px, 8vw, 108px);
    z-index: 5;
    pointer-events: none;
}


.room-garland svg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: #392919;
    stroke-width: 2;
    filter: drop-shadow(0 1px 1px #0009);
}

.room-garland path { vector-effect: non-scaling-stroke; }

.room-garland i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: clamp(6px, .7vw, 10px);
    height: clamp(9px, 1vw, 14px);
    margin-top: 3px;
    border: 1px solid #ffd095;
    border-radius: 42% 42% 50% 50%;
    background: radial-gradient(ellipse at 40% 30%, #ffe0ac, #ffab51 50%, #ed6b20);
    box-shadow: 0 0 6px 2px #ff9c49e6, 0 0 22px 8px #ff701e99, 0 0 48px 16px #e7471440;
    transform: translateX(-50%) rotate(-8deg);
    animation: garland-twinkle 3.8s ease-in-out infinite alternate;
}

.room-garland i::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 4px;
    height: 5px;
    background: #6d502d;
    border-radius: 1px;
    transform: translateX(-50%);
}

.room-garland i:nth-of-type(3n) { animation-delay: -2.4s; animation-duration: 4.6s; }
.room-garland i:nth-of-type(3n + 1) { animation-delay: -1.2s; transform: translateX(-50%) rotate(8deg); }
.room-garland i:nth-of-type(4n) { animation-delay: -3.5s; animation-duration: 5.2s; }

@keyframes garland-twinkle {
    from { opacity: .85; filter: brightness(.95); }
    to { opacity: 1; filter: brightness(1.12); }
}

.garland-side {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(22px, 3vw, 42px);
    height: min(78vh, 760px);
}

.garland-side-right {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
    html:not([data-motion="true"]) .room-garland i { animation: none; }
}

.animation-button {
    position: fixed;
    top: 20px;
    left: 230px;
    z-index: 3001;
}

.animation-button .motion-play { display: none; }
html[data-motion="false"] .animation-button .motion-play { display: block; }
html[data-motion="false"] .animation-button .motion-pause { display: none; }

/* Same 3:2 cover canvas and bottom anchor as the painted background. */
.fireplace-effects {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 0;
    width: max(100vw, 150vh);
    height: max(66.666667vw, 100vh);
    transform: translateX(-50%);
    z-index: -9;
    pointer-events: none;
    overflow: hidden;
}

.background[data-background-id="fireplace"] ~ .fireplace-effects { display: block; }
.fireplace-flames {
    position: absolute;
    left: 87.23958333%;
    top: 48.828125%;
    width: 12.76041667%;
    height: 27.34375%;
    background: url('/front/assets/fireplace-burning.webp?v=2') center / 100% 100% no-repeat;
    /* Keep the old flame sprite inside the new painted firebox. */
    clip-path: polygon(29% 88%, 29% 46%, 32% 33%, 44% 23%, 61% 17%, 82% 16%, 100% 19%, 100% 93%);
}

html[data-motion="false"] .background ~ .snowfall,
html[data-motion="false"] .background ~ .fireplace-effects,
html[data-motion="false"] .background ~ .room-garland { display: none; }

@media (max-width: 600px) {
    .animation-button { left: 20px; top: 94px; }
}
@media (prefers-reduced-motion: reduce) {
    html:not([data-motion="true"]) .fireplace-effects { display: none; }
}

.background-controls {
    position: fixed;
    top: 20px;
    left: 160px;
    z-index: 3001;
}

.background-controls[hidden],
.background-panel[hidden] {
    display: none;
}

.background-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 204px;
    padding: 15px 12px 12px;
    border: 3px ridge #b48b54;
    border-radius: 6px;
    background:
        repeating-linear-gradient(2deg, transparent 0 6px, #21100824 7px, transparent 9px 15px),
        linear-gradient(105deg, #59381f, #805532 50%, #4b2e1b);
    color: #f4dfb5;
    box-shadow: 0 5px 20px #160c0890, inset 0 0 0 2px #2d1a10;
    transform-origin: right top;
    animation: background-panel-open .2s ease-out;
}

.background-panel h2 {
    margin: 0 0 14px;
    text-align: center;
    color: #f4dfb5;
    font: bold 16px Georgia, serif;
    text-shadow: 0 1px 2px #1e1008;
}

.background-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.background-choice {
    position: relative;
    min-width: 0;
    padding: 0 0 22px;
    border: 0;
    background: transparent;
    color: #ead5af;
    font: 11px Georgia, serif;
    cursor: pointer;
}

html[data-advent-gates] .background-choice { padding: 0; }

.background-choice::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #a37a44;
    border-radius: 50%;
    background: var(--preview) center / cover;
    box-shadow: 0 2px 4px #170b0880, inset 0 0 0 1px #2d190e;
}

.background-choice span {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
}

.background-choice[aria-pressed="true"]::before {
    border-color: #ffe1a0;
    outline: 2px solid #cda05a;
    outline-offset: 2px;
}

.background-choice:hover:not(:disabled)::before {
    filter: brightness(1.15);
}

.background-choice:focus-visible {
    outline: 2px solid #ffe1a0;
    outline-offset: 3px;
    border-radius: 5px;
}

.background-choice:disabled {
    opacity: .55;
    cursor: wait;
}

.background-status {
    margin: 10px 0 0;
    color: #ffd2b0;
    font: 12px/1.4 Georgia, serif;
}

.background-status:empty { display: none; }

@keyframes background-panel-open {
    from { opacity: 0; transform: translateX(20px) scaleX(.92); }
    to { opacity: 1; transform: translateX(0) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .background-panel { animation: none; }
}

.page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    margin: 16px;
    flex: 0 0 auto;
}

.toolbar {
    width: 80px;
    flex: 0 0 80px;
    padding: 8px;
}

.app {
    width: 100vw;
    height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: clip;
}

.tree-zone {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    /* One coordinate space keeps saved toys, tree and ground aligned on resize. */
    /* The tree occupies about half its transparent source canvas width. */
    width: min(200vw, 177.777778vh);
    height: min(112.5vw, 100vh);
    flex-shrink: 0;
    transform: translateY(-8%);
    isolation: isolate;
    container-type: size;
}

.tree {
    height: 90%;
    width: auto;
    position: relative;
    z-index: 1;
    display: block;
    pointer-events: none;
    user-select: none;
}

.tree, .tree-branch-lighting { filter: var(--tree-lighting, none); }

/* Match foliage highlights to the lighting in each scene. */
.tree-zone[data-background-id="room"] {
    --tree-lighting: url('/front/assets/tree-lighting.svg?v=5#room');
}

.tree-zone[data-background-id="fireplace"] {
    --tree-lighting: url('/front/assets/tree-lighting-directional.svg?v=4#fireplace');
}

.tree-zone[data-background-id="forest"] {
    --tree-lighting: url('/front/assets/tree-lighting-directional.svg?v=6#forest');
}

.tree-ground,
.tree-snow {
    position: absolute;
    left: 50%;
    pointer-events: none;
    background: center / 100% 100% no-repeat;
    transform: translateX(-50%);
}

.tree-ground {
    z-index: 0;
    width: 43.2%;
    height: 21.6%;
    /* The visible tree base is 5.8% above the canvas bottom. */
    bottom: -5%;
    background-image: url('/front/assets/ground-rug-room-windowlight.png');
}

.tree-zone[data-background-id="fireplace"] .tree-ground {
    background-image: url('/front/assets/ground-rug-fireplace-gingerbread-warm.png');
}

.tree-zone:not([data-background-id="forest"], [data-background-id="rink"])::after {
    content: "";
    position: absolute;
    z-index: 0;
    /* Anchor the gradient center to the visible bottom of the tree stand. */
    left: 50.5%;
    bottom: 5.4%;
    width: 34%;
    height: 11%;
    transform: translate(-50%, 50%);
    background: radial-gradient(ellipse closest-side, rgb(16 11 18 / 76%), rgb(16 11 18 / 42%) 55%, transparent);
    pointer-events: none;
}

.tree-zone:is([data-background-id="fireplace"], [data-background-id="library"], [data-background-id="hogwarts"], [data-background-id="gamer"])::after {
    width: 23%;
}

.tree-snow {
    display: none;
    z-index: 3;
    width: 37%;
    height: 18%;
    bottom: -.2%;
    background-image: url('/front/assets/ground-snow.png');
}

.tree-zone[data-background-id="forest"] .tree-ground {
    display: none;
}

.tree-zone:is([data-background-id="forest"], [data-background-id="rink"]) .tree-snow {
    display: block;
}

.tree-zone[data-background-id="forest"] .tree-snow {
    width: 32%;
    bottom: .8%;
    background-image: url('/front/assets/ground-snow-forest-v2.webp');
}

.tree-zone[data-background-id="rink"] .tree-snow {
    left: 50.5%;
    width: 12.5%;
    height: 6%;
    bottom: 3.6%;
    background-image: url('/front/assets/ground-snow-rink.png?v=5');
}

.placed-toy {
    position: absolute;
    z-index: 4;
    width: var(--scene-toy-size, var(--toy-size, 62px));
    height: var(--scene-toy-size, var(--toy-size, 62px));
    transform: translate(-50%, -50%);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.placed-toy[hidden] {
    display: none;
}

.ornament {
    display: block;
    flex-shrink: 0;
}

.ornament-body,
.ornament-image {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ornament-body {
    position: relative;
}

.ornament-image {
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.placed-toy:not(.dragging-toy) .ornament-body {
    --cord-length: calc(100% / 3);
    transform-origin: var(--cord-x, 50%) calc(var(--cord-top, 0%) - var(--cord-length));
    transform: rotate(var(--toy-tilt, 0deg));
}

.placed-toy .ornament-image {
    filter: drop-shadow(2px 4px 2px #071d1770) drop-shadow(0 1px 1px #07130e40);
}

.placed-toy:not(.dragging-toy) .ornament-body::before {
    content: "";
    position: absolute;
    left: calc(var(--cord-x, 50%) - .5px);
    top: calc(var(--cord-top, 0%) - var(--cord-length));
    width: 1px;
    height: calc(var(--cord-length) + var(--cord-overlap, 5px));
    background: linear-gradient(90deg, #584523, #dec58a);
    box-shadow: 1px 1px 1px #07130e60;
}

.placed-toy:not(.dragging-toy) .ornament-body::after {
    content: "";
    position: absolute;
    left: calc(50% - 3px);
    top: 1px;
    width: 6px;
    height: 7px;
    border: 1px solid #c4aa6b;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    box-shadow: 1px 1px 1px #09201770;
}

.placed-toy.painted-toy-mount {
    --cord-overlap: 0px;
}

.placed-toy.painted-toy-mount .ornament-body::after {
    content: none;
}

.placed-toy.just-hung:not(.dragging-toy) .ornament-body {
    animation: ornament-settle 1.4s ease-out both;
}

.dragging-toy .ornament-body {
    transform: none;
}

.dragging-toy .ornament-image {
    filter: drop-shadow(3px 8px 4px #0c100b80);
}

@keyframes ornament-settle {
    0% { transform: rotate(calc(var(--toy-tilt, 0deg) + 9deg)); }
    24% { transform: rotate(calc(var(--toy-tilt, 0deg) - 6deg)); }
    46% { transform: rotate(calc(var(--toy-tilt, 0deg) + 4deg)); }
    66% { transform: rotate(calc(var(--toy-tilt, 0deg) - 2deg)); }
    83% { transform: rotate(calc(var(--toy-tilt, 0deg) + 1deg)); }
    100% { transform: rotate(var(--toy-tilt, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
    .placed-toy.just-hung:not(.dragging-toy) .ornament-body {
        animation: none;
    }
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 16px;
    background: #100904a8;
    backdrop-filter: blur(4px);
}

.auth-modal.visible {
    display: flex;
}

.users-card.auth-card {
    width: min(380px, 100%);
    padding: 34px 24px 24px;
}

.auth-name-dialog {
    width: min(380px, calc(100% - 32px));
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-name-dialog::backdrop {
    background: #100904a8;
    backdrop-filter: blur(4px);
}

#discordNameForm {
    display: grid;
    gap: 12px;
}

#discordName {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #bd9159;
    border-radius: 5px;
    background: #f5e3bd;
    color: #301b10;
    font: 16px/1.3 Georgia, serif;
}

#discordName:focus-visible {
    outline: 2px solid #ffe0a1;
    outline-offset: 3px;
}

.auth-name-actions {
    display: grid;
    gap: 8px;
}

.auth-error {
    margin: 8px 0 0;
    color: #ffd4bc;
    font-size: 14px;
}

.auth-error:empty {
    margin: 0;
}

.shelf-button {
    position: absolute;
    left: calc(100% - 26px);
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 180px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.shelf-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 174px;
    height: 58px;
    transform: translate(-50%, -50%) rotate(-90deg);
    background: url("/front/assets/drawer-handle-bronze.png") center / contain no-repeat;
    filter: drop-shadow(-2px 3px 2px #1e100b90);
    pointer-events: none;
}

.shelf-button::after {
    content: none;
}

.shelf-button:hover::before,
.shelf-button:focus-visible::before {
    filter: brightness(1.12) drop-shadow(-2px 3px 2px #1e100b90);
}

.shelf-button:focus-visible {
    outline: 3px solid #ffe4a6;
    outline-offset: 3px;
}

.toy-shelf.dragging,
.toy-shelf.dragging .shelf-button {
    cursor: grabbing;
    user-select: none;
}

.toy-shelf.dragging {
    transition: none;
}

.toy-shelf {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 3000;

    display: flex;
    flex-direction: column;
    width: min(292px, calc(100vw - 68px));
    height: min(64vh, 560px);
    max-height: calc(100dvh - 100px);
    padding: 14px 18px 18px 8px;

    border: 2px solid #422512;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    background:
        repeating-linear-gradient(1deg, transparent 0 5px, #2d140b25 6px, transparent 7px 13px),
        linear-gradient(90deg, #9b693b, #bd8c54 18%, #996237 86%, #70401f);
    box-shadow:
        10px 5px 25px #120a0890,
        inset 0 3px 1px #e8bd7f90,
        inset -6px 0 1px #553018,
        inset 0 -6px 2px #5b321b,
        inset 3px 0 2px #d3a469;

    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.2, .7, .2, 1);
}

.toy-shelf.open {
    transform: translateX(0);
}

.secret-handles {
    position: absolute; top: -29px; left: 0; right: 0;
}
.secret-handle {
    position: absolute;
    display: grid; place-items: center;
    width: 46px; height: 29px; padding: 0;
    border: 0; border-radius: 50%;
    background: transparent;
    color: #493c22; cursor: pointer;
    transition: transform .32s ease;
    transform: translateX(-50%);
}
.secret-handle::before {
    content: ""; position: absolute; width: 8px; height: 5px; bottom: 0; left: 19px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, #3d301b, #957947 20%, #ead39b 39%, #b49a60 55%, #5e4928 83%, #352716);
    box-shadow: inset -1px 0 #34281370;
}
.secret-handle::after {
    content: ""; position: absolute; width: 27px; height: 27px; left: 9.5px; top: 0;
    border: 1px solid #594320; box-sizing: border-box; border-radius: 50%;
    background:
        radial-gradient(ellipse 7px 4px at 29% 21%, #fff2c9bb, transparent 100%),
        radial-gradient(ellipse at 31% 25%, #ead3a0 0, #d0b275 22%, #a78a50 42%, #786034 64%, #49351c 83%, #302414 100%);
    box-shadow: inset 1px 1px 1px #f5dfaa, inset -3px -4px 4px #291c12a0, inset 0 -1px 1px #c4a265;
}
.secret-handle[aria-expanded="true"] { transform: translate(-50%, calc(-1 * min(210px, 27dvh) + 2px)); color: #302713; }
.secret-handle:focus-visible { outline: 2px solid #ffe1a1; outline-offset: 3px; }
.secret-handle:disabled { display: none; }
.shelf-button[data-first-click]::before,
.secret-handle[data-first-click]::after {
    filter: brightness(1.3) drop-shadow(0 0 4px #ffe4a6) drop-shadow(0 0 9px #f7ad4a);
    animation: shelf-handle-glow 1.8s ease-in-out infinite;
}

@keyframes shelf-handle-glow {
    0%, 100% {
        filter: brightness(1.15) drop-shadow(0 0 3px #ffe4a6b0) drop-shadow(0 0 6px #f7ad4a70);
    }
    50% {
        filter: brightness(1.55) drop-shadow(0 0 6px #fff0bd) drop-shadow(0 0 15px #ffae42);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shelf-button[data-first-click]::before,
    .secret-handle[data-first-click]::after {
        animation: none;
    }
}
.secret-handle:nth-child(1) { left: 28%; z-index: 60; }
.secret-handle:nth-child(2) { left: 50%; z-index: 40; }
.secret-handle:nth-child(3) { left: 72%; z-index: 20; }
.toy-shelf { padding-top: 14px; }
.toy-shelf::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    background: inherit;
    border-radius: inherit;
    box-shadow: inset -6px 0 1px #553018, inset 0 -6px 2px #5b321b;
    pointer-events: none;
}
.toy-shelf > .toy-list { position: relative; z-index: 101; }
.toy-shelf > .shelf-button { z-index: 102; }
.secret-compartment {
    z-index: var(--secret-layer, 50);
    position: absolute; bottom: calc(100% - 2px); left: var(--secret-left, 0%); width: 56%;
    height: min(210px, 27dvh); padding: 10px 8px 12px; box-sizing: border-box;
    border: 2px solid #422512; border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, #9b693b, #bd8c54 18%, #996237 86%, #70401f);
    box-shadow: 7px -5px 18px #120a0860, inset 0 3px #e8bd7f90;
    display: flex; visibility: hidden; clip-path: inset(100% -30px 0 0); transform: translateY(100%);
    transition: clip-path .32s ease, transform .32s ease, visibility .32s;
}
.secret-compartment.open { visibility: visible; clip-path: inset(-30px -30px 0 0); transform: translateY(0); }
.secret-compartment .shelf-empty { width: 100%; padding: 8px 3px; gap: 5px; }
.secret-compartment .shelf-empty > span { font-size: 26px; }
.secret-compartment .shelf-empty h2 { font-size: 16px; }
.secret-compartment .shelf-empty p { font-size: 12px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .secret-compartment, .secret-handle { transition: none; } }
.toy-shelf .toy-list[hidden] { display: none; }
.toy-list.shelf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #efcea0;
    text-align: center;
    text-shadow: 0 2px 2px #3a1c11;
}
#shelfPanelRoom { position: relative; padding: 0; overflow: visible; }
#shelfPanelRoom > span, #shelfPanelRoom > h2, #shelfPanelRoom > p { display: none; }
#shelfPanelRoom::after {
    content: ''; position: absolute; inset: -4% -3% -8%; pointer-events: none;
    background: url('/front/assets/room-decoration-pile.png') center / contain no-repeat;
    filter: drop-shadow(0 4px 3px #28130690);
}
.shelf-empty > span { font-size: 48px; opacity: .65; }
.shelf-empty h2 { margin: 0; font: 19px Georgia, serif; }
.shelf-empty p { margin: 0; font: 14px/1.6 Georgia, serif; opacity: .85; }

.toy-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    justify-items: center;
    gap: 16px 5px;
    padding: 20px 4px 14px;
    border-style: solid;
    border-width: 10px 9px 12px 5px;
    border-color: #50301a #794b2b #c08b52 #5e371e;
    border-radius: 1px;
    background:
        repeating-linear-gradient(2deg, transparent 0 4px, #3d1d0d18 5px, transparent 6px 11px),
        repeating-linear-gradient(0deg, transparent 0 78px, #4d2b1638 79px, #d9ad7130 80px, transparent 82px 160px),
        linear-gradient(100deg, #89582f, #ae7d48 45%, #98663a);
    box-shadow:
        inset 0 14px 18px #25120790,
        inset 10px 0 16px #2e170d70,
        inset -7px 0 12px #32180d60,
        inset 0 -2px 3px #e5b97b60,
        0 1px 0 #dfaf70;
    scrollbar-width: thin;
    scrollbar-color: #d4aa70 #68401f;
}

.toy-list .toy {
    filter: drop-shadow(0 3px 2px #35200f50);
}

.shelf-toy-group { position: relative; flex: none; }
.shelf-toy-group > .toy ~ .toy { display: none; }
.shelf-toy-count {
    position: absolute;
    z-index: 1;
    right: -3px;
    bottom: -2px;
    min-width: 15px;
    padding: 1px 3px;
    box-sizing: border-box;
    border: 1px solid #e0ba7e;
    border-radius: 8px;
    background: #4b2b19;
    color: #fff0cf;
    font: 10px/12px system-ui, sans-serif;
    text-align: center;
    pointer-events: none;
}

.secret-compartment .toy-list {
    border-color: #422512 #936037 #c08b52 #936037;
    background:
        repeating-linear-gradient(2deg, transparent 0 4px, #3d1d0d18 5px, transparent 6px 11px),
        linear-gradient(180deg, #684020, #ae7d48 48%, #98663a);
    box-shadow:
        inset 0 18px 20px #251207b0,
        inset 3px 0 6px #2e170d30,
        inset -3px 0 6px #2e170d30,
        inset 0 -2px 3px #e5b97b60,
        0 1px 0 #dfaf70;
}

@media (prefers-reduced-motion: reduce) {
    .toy-shelf {
        transition: none;
    }
}

:root {
    /* Match 32px / 1280px scene sizing, including while dragged outside the shelf. */
    --shelf-toy-size: min(5vw, 4.44444445vh);
}

.toy {
    width: var(--shelf-toy-size);
    height: var(--shelf-toy-size);
    object-fit: contain;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.admin-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3001;

    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;

    font-size: 26px;
    cursor: pointer;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);
}

.admin-modal.visible {
    display: flex;
}

.admin-card {
    position: relative;

    width: 340px;
    padding: 24px;
    border-radius: 16px;

    background: white;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-card h2 {
    margin: 0 0 8px;
    text-align: center;
}

.admin-card button {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

.admin-close {
    position: absolute;
    top: 8px;
    right: 12px;

    border: none;
    background: transparent;

    font-size: 24px;
}

#createToyForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#createToyForm label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#createToyForm input,
#createToyForm textarea {
    padding: 8px;
    font-size: 15px;
}

#createToyForm textarea {
    resize: vertical;
    min-height: 80px;
}

#giveToyForm {
    display: none;
    flex-direction: column;
    gap: 12px;
}

#giveToyForm label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#giveToyForm select,
#giveToyForm button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.save-tree-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;

    padding: 10px 18px;

    border: none;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);

    font-size: 16px;
    cursor: pointer;
}

.save-tree-button:hover {
    background: white;
}

.save-tree-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.round-button {
    position: fixed;

    width: 64px;
    height: 64px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.9);
    backdrop-filter: blur(5px);

    box-shadow: 0 4px 10px rgba(0,0,0,.2);

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 30px;

    cursor: pointer;

    transition: .2s;
}

.round-button:hover {
    transform: scale(1.08);
}

#clearTreeButton {
    top: 20px;
    left: 20px;
}
#adminButton {
    display: none;
}

.users-button {
    position: fixed;
    top: 20px;
    left: 90px;
    z-index: 3000;
}

.users-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);
}

.users-modal.visible {
    display: flex;
}

.users-card {
    position: relative;

    width: min(380px, calc(100vw - 40px));
    max-height: 70vh;

    padding: 24px;
    box-sizing: border-box;

    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.users-card h2 {
    margin: 0 0 18px;
    text-align: center;
}

.users-close {
    position: absolute;
    top: 10px;
    right: 14px;

    border: none;
    background: transparent;

    font-size: 26px;
    cursor: pointer;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    max-height: 50vh;
    overflow-y: auto;
}

.user-list-item {
    width: 100%;
    padding: 12px 16px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;

    background: #f4f4f4;

    font-size: 17px;
    text-align: left;
    cursor: pointer;
}

.user-list-item:hover {
    background: #e8e8e8;
}

.users-error {
    margin-bottom: 0;
    color: #b00020;
    text-align: center;
}

.back-to-my-tree-button {
    position: fixed;
    top: 96px;
    left: 20px;
    right: auto;
    z-index: 3000;

    display: none;

    padding: 10px 18px;
    border: none;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);

    font-size: 16px;
    cursor: pointer;
}

.tree-title {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3000;
    max-width: min(280px, calc(100vw - 190px));
    height: 64px;
    padding: 17px 25px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 3px ridge #bb9457;
    border-radius: 5px;
    background:
        repeating-linear-gradient(2deg, transparent 0 5px, #24110730 6px, transparent 8px 14px),
        linear-gradient(100deg, #57351f, #81562f 48%, #422717);
    color: #f4dca2;
    font: bold 20px Georgia, serif;
    line-height: 24px;
    text-shadow: 0 1px 2px #1e1008;
    box-shadow: 0 4px 10px #160c0880, inset 0 0 0 2px #2e180d, inset 0 3px 3px #c18b4b70;
}

.tree-title[hidden] {
    display: none;
}

.tree-title::before,
.tree-title::after {
    content: "";
    position: absolute;
    top: 26px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f2dba5, #8b642e 70%);
    box-shadow: 0 1px 2px #1b0e08;
}

.tree-title::before { left: 8px; }
.tree-title::after { right: 8px; }
#deleteToyForm {
    flex-direction: column;
    gap: 12px;
}

#deleteToyForm label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#deleteToyForm select,
#deleteToyForm button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.tooltip {
    position: fixed;
    display: none;

    z-index: 10000;

    padding: 6px 12px;

    border-radius: 8px;

    background: rgba(30, 30, 30, 0.9);
    color: white;

    font-size: 14px;

    pointer-events: none;
}
.logout-button { position: fixed; top: 20px; right: 20px; z-index: 2500; padding: 8px 14px; border: none; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.92); }

/* Bronze hardware shares the same finish as the drawer's antique pull. */
.ornate-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: url("/front/assets/control-bronze.png") center / contain no-repeat;
    color: #f6dd9c;
    box-shadow: none;
    backdrop-filter: none;
    filter: drop-shadow(0 3px 3px #160c0890);
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

.ornate-control[hidden] {
    display: none;
}

.ornate-control svg,
.back-to-my-tree-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    filter: drop-shadow(0 1px 1px #120906);
}

.ornate-control:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.18) drop-shadow(0 4px 4px #160c0890);
}

.ornate-control:active:not(:disabled) {
    transform: translateY(1px);
}

.ornate-control:focus-visible {
    outline: 2px solid #ffe9b3;
    outline-offset: 3px;
}

.ornate-control:disabled {
    opacity: .45;
    cursor: wait;
    filter: saturate(.45) drop-shadow(0 2px 2px #160c0860);
}

.ornate-control.ornate-control-small {
    width: 36px;
    height: 36px;
    padding: 0;
}

.ornate-control-small svg {
    width: 18px;
    height: 18px;
}

.back-to-my-tree-button {
    align-items: center;
    gap: 9px;
    border: 2px solid #a58247;
    background: linear-gradient(135deg, #644922, #302012);
    color: #f6dd9c;
    box-shadow: 0 3px 7px #160c0870, inset 0 0 0 1px #d4ad6b50;
    font: 15px Georgia, serif;
}

.back-to-my-tree-button svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .ornate-control {
        transition: none;
    }
}

/* Wooden cabinet panels for the administration and tree browser. */
.admin-modal,
.users-modal {
    padding: 16px;
    background: #160e0b99;
    backdrop-filter: blur(4px);
}

.admin-card,
.users-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(420px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 58px 26px 28px;
    border: 8px ridge #a97845;
    border-radius: 7px;
    background:
        repeating-linear-gradient(2deg, transparent 0 6px, #24120728 7px, transparent 9px 17px),
        repeating-linear-gradient(0deg, transparent 0 87px, #1e0e0820 88px, #d7a26718 90px, transparent 92px 180px),
        linear-gradient(100deg, #58351e, #80512e 42%, #603a21);
    box-shadow:
        0 20px 60px #090605b0,
        inset 0 0 0 2px #302014,
        inset 0 5px 9px #170c0a90,
        inset 0 -3px 1px #c3945f50;
    color: #f5e3bd;
    scrollbar-width: thin;
    scrollbar-color: #c4a06b #3a2518;
}

.admin-card::before,
.users-card::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 17px;
    width: 9px;
    height: 9px;
    border: 1px solid #63451e;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #f5dba5, #aa8246 60%, #67491f);
    box-shadow: 0 1px 2px #170c08;
    pointer-events: none;
}

.admin-card h2,
.users-card h2 {
    margin: 0 0 24px;
    color: #f5dfac;
    font: bold 24px/1.25 Georgia, serif;
    text-align: center;
    text-shadow: 0 2px 2px #261107;
}

.admin-close,
.users-close {
    top: 10px;
    right: 10px;
}

#adminMenu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-card button:not(.ornate-control),
.user-list-item {
    width: 100%;
    min-height: 46px;
    padding: 12px 15px;
    border: 1px solid #bd9159;
    border-bottom: 3px solid #351c0e;
    border-radius: 5px;
    background:
        repeating-linear-gradient(2deg, transparent 0 5px, #210e071c 6px, transparent 8px 13px),
        linear-gradient(100deg, #7c502c, #9c6a3c 50%, #6f4526);
    color: #fff0ce;
    box-shadow: 0 3px 5px #1d0d0750, inset 0 1px 0 #e8b87c60;
    font: 16px/1.3 Georgia, serif;
    text-shadow: 0 1px 1px #34180d;
    cursor: pointer;
}

.admin-card button:not(.ornate-control):hover,
.user-list-item:hover {
    background:
        repeating-linear-gradient(2deg, transparent 0 5px, #210e071c 6px, transparent 8px 13px),
        linear-gradient(100deg, #916136, #b17c49 50%, #84532f);
    border-color: #e5be7e;
}

.admin-card button:focus-visible,
.user-list-item:focus-visible {
    outline: 2px solid #ffe0a1;
    outline-offset: 3px;
}

.admin-card button:not(.ornate-control):disabled {
    opacity: .55;
    cursor: wait;
}

.admin-card :is(#backToMenu, #backToMenuFromGive, #backToMenuFromDelete) {
    align-self: flex-start;
    width: auto;
    min-height: 36px;
    margin: -5px 0 4px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #ead0a0;
    font-size: 14px;
    text-align: left;
}

.admin-card :is(#createToyForm, #giveToyForm, #deleteToyForm) label {
    gap: 7px;
    color: #f2dbb3;
    font: 14px/1.4 Georgia, serif;
}

.admin-card :is(#createToyForm, #giveToyForm, #deleteToyForm) :is(input, textarea, select) {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #ad824e;
    border-radius: 4px;
    background: #2d1c12;
    color: #fff0d2;
    box-shadow: inset 0 3px 6px #140b0870, 0 1px 0 #c8975b40;
    font: 15px/1.4 Georgia, serif;
    color-scheme: dark;
}

.admin-card :is(input, textarea, select):focus {
    outline: 2px solid #e0ba77;
    outline-offset: 2px;
}

.admin-card textarea {
    max-height: 180px;
}

.admin-card :is(#createToySubmit, #giveToySubmit) {
    margin-top: 5px;
    border-color: #d6b475;
    border-bottom-color: #745021;
    background: linear-gradient(135deg, #e0c28b, #b78d4e 65%, #ceac6b);
    color: #302013;
    font-weight: bold;
    text-shadow: 0 1px 0 #f8e3b350;
}

.admin-card #deleteToySubmit {
    margin-top: 5px;
    border-color: #b67752;
    background: linear-gradient(100deg, #643023, #814530, #56281e);
    color: #ffe0bd;
}

.users-list {
    flex: 1 1 auto;
    min-height: 0;
    gap: 12px;
    max-height: min(50vh, 420px);
    padding: 3px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: #c4a06b #3a2518;
}

.user-list-item {
    position: relative;
    flex-shrink: 0;
    padding: 14px 36px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

.user-list-item::before {
    content: "";
    position: absolute;
    left: 14px;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #f0d59e, #a27a3b 70%);
    box-shadow: 0 1px 2px #251109;
}

.user-list-item::after {
    content: "";
    position: absolute;
    right: 17px;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-top: 1px solid #e5c58e;
    border-right: 1px solid #e5c58e;
    transform: rotate(45deg);
}

.users-error {
    color: #ffd0ae;
    font-size: 14px;
}

.users-error:empty {
    display: none;
}

@media (max-width: 480px) {
    .admin-card,
    .users-card {
        padding: 52px 16px 22px;
        border-width: 6px;
    }

    .admin-card h2,
    .users-card h2 {
        font-size: 22px;
    }
}

/* Illustrated controls on a stitched evergreen ribbon. */
.ribbon-menu {
    --ribbon-tail-width: 46px;
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    left: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 100vw;
    min-height: 76px;
    padding-left: 12px;
    transform: translateX(calc(-100% + var(--ribbon-tail-width)));
    transition: transform .38s cubic-bezier(.22,.8,.3,1);
    filter: drop-shadow(3px 5px 4px #16070970);
}
.ribbon-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #2c523b, #18392a 65%, #102b21);
    border-block: 2px dashed #b39258;
    clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%);
    box-shadow: inset 0 0 9px #0e1913a0;
    pointer-events: none;
}
.ribbon-menu.is-open { transform: translateX(0); }
.ribbon-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    align-items: center;
    gap: 5px;
    visibility: hidden;
}
.ribbon-menu.is-open .ribbon-items { visibility: visible; }
.ribbon-items > .ornate-control,
.ribbon-items > .background-controls {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    margin: 0;
}
.ribbon-items .ornate-control {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: var(--ribbon-icon) center / contain no-repeat;
    box-shadow: none;
}
.ribbon-items .ornate-control svg,
.ribbon-items .back-to-my-tree-button span { display: none; }
#calendarMenuButton { --ribbon-icon: url("/front/assets/ribbon-menu/01-calendar.png"); }
#shopButton { --ribbon-icon: url("/front/assets/ribbon-menu/02-shop.png"); }
#treeArchiveLink { --ribbon-icon: url("/front/assets/ribbon-menu/03-tree-archive.png"); }
#exchangeButton { --ribbon-icon: url("/front/assets/ribbon-menu/04-exchange.png"); }
#santaLetterButton { --ribbon-icon: url("/front/assets/ribbon-menu/05-santa-letter.png"); }
#clearTreeButton { --ribbon-icon: url("/front/assets/ribbon-menu/06-store-ornaments.png"); }
#usersButton { --ribbon-icon: url("/front/assets/ribbon-menu/07-visitors.png"); }
#treeContestLike { --ribbon-icon: url("/front/assets/ribbon-menu/08-like-v2.png"); }
#backToMyTreeButton { --ribbon-icon: url("/front/assets/ribbon-menu/09-my-tree-v2.png"); }
#backgroundButton { --ribbon-icon: url("/front/assets/ribbon-menu/10-background-v2.png"); }
#openPostcardArchive { --ribbon-icon: url("/front/assets/ribbon-menu/11-postcards.png"); }
#animationButton { --ribbon-icon: url("/front/assets/ribbon-menu/12-animation-pause.png"); }
html[data-motion="false"] #animationButton { --ribbon-icon: url("/front/assets/ribbon-menu/12-animation-play.png"); }
#adminButton { --ribbon-icon: url("/front/assets/ribbon-menu/13-settings.png"); }
#logoutButton { --ribbon-icon: url("/front/assets/ribbon-menu/14-logout-v2.png"); }
.ribbon-items .background-panel { top: calc(100% + 16px); left: 0; right: auto; transform-origin: left top; }
.ribbon-toggle {
    display: block;
    align-self: stretch;
    flex: 0 0 var(--ribbon-tail-width);
    width: var(--ribbon-tail-width);
    padding: 0;
    border: 0;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%);
    cursor: pointer;
}
.ribbon-toggle:hover { background-color: #e9c88c26; }
.ribbon-toggle:focus-visible { outline: 2px solid #ffe1a0; outline-offset: -15px; }
@media (max-width: 600px) {
    .ribbon-menu { top: max(8px, env(safe-area-inset-top)); min-height: 62px; padding-left: 6px; }
    .ribbon-items { gap: 2px; }
    .ribbon-items .ornate-control { width: 44px; height: 44px; }
    .ribbon-items .background-panel { position: absolute; top: calc(100% + 12px); left: 8px; width: 204px; }
    .ribbon-items .background-controls { position: static; }
}
@media (prefers-reduced-motion: reduce) {
    .ribbon-menu { transition: none; }
}
.ribbon-items #clearTreeButton { top: auto; left: auto; }
.ribbon-items #backToMyTreeButton { display: none; }
.ribbon-items .tree-title {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    max-width: min(280px, calc(100vw - 200px));
    height: 60px;
    margin: 0 5px 0 0;
    padding: 15px 25px;
}
@media (max-width: 600px) {
    .ribbon-items .tree-title {
        max-width: calc(100vw - 190px);
        height: 46px;
        padding: 8px 20px;
        font-size: 16px;
    }
    .ribbon-items .tree-title::before,
    .ribbon-items .tree-title::after { top: 17px; }
}

.tree-zone[data-background-id="town"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=7#town"); }
.tree-zone[data-background-id="town"] .tree-ground { display: none; }

.tree-zone[data-background-id="metropolis"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=8#metropolis"); }
.tree-zone[data-background-id="metropolis"] .tree-ground { display: none; }

.tree-zone[data-background-id="station"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=9#station"); }
.tree-zone[data-background-id="station"] .tree-ground { display: none; }

.tree-zone[data-background-id="rink"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=10#rink"); }
.tree-zone[data-background-id="rink"] .tree-ground { display: none; }
.tree-zone[data-background-id="library"] .tree-ground {
    background-image: url('/front/assets/ground-rug-library-woodland.png');
    filter: contrast(.83) brightness(1.24);
}

.tree-zone[data-background-id="hogwarts"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=12#hogwarts"); }
.tree-zone[data-background-id="hogwarts"] .tree-ground {
    background-image: url('/front/assets/ground-rug-hogwarts-owls-burgundy.png');
}
.tree-zone[data-background-id="summoners-rift"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=13#summoners-rift"); }
.tree-zone[data-background-id="summoners-rift"] .tree-ground { display: none; }
.tree-zone[data-background-id="gamer"] .tree-ground {
    background-image: url('/front/assets/ground-rug-gamer-pixel-forest.png');
    filter: saturate(.84) contrast(.94) brightness(.96);
}
.tree-zone[data-background-id="library"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=11#library"); }
.tree-zone[data-background-id="gamer"] { --tree-lighting: url("/front/assets/tree-lighting-directional.svg?v=14#gamer"); }

#treeContestLike[aria-pressed="true"] {
    filter: brightness(1.16) drop-shadow(0 0 5px #ffae67);
}
#treeContestStatus {
    position: fixed;
    z-index: 100;
    left: 12px;
    bottom: 12px;
    margin: 0;
    padding: 8px 12px;
    color: #fff3db;
    background: #41261c;
    border-radius: 6px;
}

#treeContestLikes {
    position: absolute;
    right: 1px;
    bottom: 1px;
    min-width: 1.35em;
    padding: 0 3px;
    border-radius: 20px;
    color: #fff3db;
    background: #702737;
    font-size: 12px;
    line-height: 1.35;
}
