@scope (#winter-widget) {
:scope {
    color-scheme: dark;
    --page: #141a1c;
    --panel: #1d2426;
    --well: #171e20;
    --line: #384446;
    --faint: #2f3b3d;
    --text: #f3f0e6;
    --muted: #afbbb8;
    --gold: #e5c58a;
    --gold-line: #91734b;
    --mint: #a1cbb8;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: var(--page);
    font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
button, select, input { font: inherit; }
button { color: inherit; }
button:not(:disabled), summary, select, a { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid #ffe0a0;
    outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }

.site-header {
    display: flex;
    min-height: 78px;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 14px max(20px, calc((100vw - 1260px) / 2));
    background: #121718;
    border-bottom: 1px solid #303c3d;
}
.brand { display: inline-flex; flex-shrink: 0; align-items: center; }
.brand img { width: 150px; max-width: 100%; height: auto; }
.site-nav, .site-actions { display: flex; align-items: center; gap: 18px; }
.site-nav a {
    padding: 9px 0;
    color: var(--muted);
    font-size: .91rem;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold); }
.site-nav a[aria-current] { border-bottom-color: #a28960; }
.site-actions { justify-content: flex-end; }
.account { display: block; }
select, input {
    padding: 11px 13px;
    color: var(--text);
    background-color: var(--well);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
}
select {
    appearance: none;
    padding-right: 33px;
    background-image: linear-gradient(45deg, transparent 49%, #c5b58e 50%), linear-gradient(135deg, #c5b58e 50%, transparent 51%);
    background-position: calc(100% - 17px) 53%, calc(100% - 12px) 53%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
.account select { font-size: .88rem; }
.button, .icon-button, .tab, .quiet {
    border: 1px solid transparent;
    transition: border-color .18s, background-color .18s, color .18s, transform .18s;
}
.button {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: .91rem;
    font-weight: 650;
    line-height: 1.25;
}
.button:hover:enabled, .icon-button:hover:enabled { transform: translateY(-1px); }
.button:active:enabled, .icon-button:active:enabled { transform: translateY(0); }
.brass {
    background: #ddbc7d;
    border-color: #f1d598;
    color: #1f211a;
    box-shadow: inset 0 0 0 1px #b7935d55;
}
.brass:hover:enabled { background: #f1d49b; }
.nav-tree { white-space: nowrap; }
.nav-tree span { margin-right: 4px; }
.ghost { background: #252e30; border-color: #56625e; }
.ghost:hover:enabled { background: #303c3e; border-color: #998264; }
.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #e9e1ce;
    background: #222b2d;
    border-color: #54615d;
    border-radius: 8px;
    line-height: 1;
    font-size: 1.20rem;
}
.icon-button:hover:enabled { background: #354244; border-color: var(--gold-line); }
.quiet {
    border: 0;
    background: none;
    color: var(--gold);
    padding: 6px 2px;
    font-size: .91rem;
    font-weight: 620;
}
.quiet:hover { color: #ffe4b2; text-decoration: underline; text-underline-offset: 4px; }

.site-main { max-width: 1300px; margin-inline: auto; padding: 24px 20px 38px; }
.season-status { display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.season-status .quiet { margin-left: auto; }
.season-day { color: var(--gold); white-space: nowrap; }
.season-day > span:first-child { margin-right: 5px; }
.daily { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.daily b { color: var(--text); }
.daily-dots { display: inline-flex; gap: 5px; margin-left: 7px; }
.daily-dots i { width: 6px; height: 6px; border: 1px solid #7a836f; transform: rotate(45deg); border-radius: 1px; }
.daily-dots i.found { background-color: #e4c389; border-color: #e4c389; }
.daily-dots i.missed { background-color: #675149; border-color: #9b7561; }
.hints { padding: 12px 17px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 15px; color: var(--muted); background: var(--well); }
.hints ul { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.hints strong { color: var(--text); }
.hints li { font-size: .9rem; }
.hints [data-state="missed"], .hints [data-state="collected"] { opacity: .72; }

.hero {
    isolation: isolate;
    position: relative;
    border-radius: 19px;
    min-height: 355px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #222d2e center 48% / cover no-repeat;
    border: 1px solid #5b665e;
}
.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, #182023 0%, #172123f5 24%, #162326ab 55%, #0c171c26 100%),
        linear-gradient(0deg, #111b21ab, transparent 50%);
}
.hero-home { background-image: url("./winter.webp"); }
.hero-shop { background-image: url("assets/shop-cover.webp"); min-height: 268px; }
.hero-world { background-image: url("assets/harbor.webp"); }
.hero-content { padding: 43px 52px; max-width: 670px; }
.kicker { font-size: .86rem; color: var(--gold); font-weight: 650; letter-spacing: .055em; }
.hero h1 { font-size: clamp(2.45rem, 6vw, 5.2rem); letter-spacing: -.040em; line-height: 1.06; margin: 10px 0 15px; color: #faf4e8; }
.hero-content > p:not(.kicker) { color: #e1e8e3; max-width: 450px; line-height: 1.6; font-size: 1.01rem; }
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 25px; }
.hero-actions .button { padding: 12px 17px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 27px 0 12px; gap: 12px; }
.section-heading h2 { font-size: 1.74rem; }
.site-cards, .shop-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.realm-card {
    position: relative;
    display: grid;
    align-items: end;
    padding: 24px;
    min-height: 183px;
    border: 1px solid #4f5b59;
    border-radius: 13px;
    color: #fff8ec;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}
.realm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #161d23dd 0, #1b2c3630 80%), linear-gradient(0deg, #121a20bb, transparent);
    border-radius: inherit;
    z-index: -1;
}
.realm-card h3 { font: 600 2rem Georgia, serif; }
.realm-card p { margin-top: 5px; color: #e1e7e5; }
.mirtan { background-image: url("assets/mirtan.webp"); }
.anthalor, .harbor { background-image: url("assets/harbor.webp"); }
.road { background-image: url("./winter.webp"); }
.news { display: flex; align-items: center; gap: 20px; position: relative; background: #20282b; border: 1px solid var(--faint); border-radius: 12px; padding: 10px 56px 10px 10px; }
.news img { width: 150px; height: 88px; object-fit: cover; border-radius: 8px; }
.news h3 { font-size: 1.05rem; margin-bottom: 6px; }
.news p { color: var(--muted); line-height: 1.5; font-size: .93rem; }
.shop-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-items article { position: relative; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #232b2d; }
.shop-items img { width: 100%; aspect-ratio: 1.46; object-fit: cover; display: block; }
.shop-items h3 { padding: 13px 48px 14px 14px; font-size: 1rem; }
.hideout { width: 42px; height: 42px; display: inline-grid; place-items: center; }
.hero-hideout { position: absolute; bottom: 20px; right: 34px; }
.corner-hideout { position: absolute; bottom: 6px; right: 12px; }
.find-item {
    height: 42px;
    width: 42px;
    padding: 3px;
    background: #171e2166;
    border: 1px solid #b7a27754;
    border-radius: 9px;
    display: grid;
    place-items: center;
    transition: transform .18s, border-color .18s, background .18s;
}
.find-item img { width: 34px; height: 34px; }
.find-item:hover, .find-item:focus-visible { border-color: #e6c483; transform: translateY(-2px); background: #323638; }
.find-item.rare { box-shadow: inset 0 0 13px #dbb66c29, 0 0 11px #dbb66c22; }
.demo-tools { color: var(--muted); margin-top: 24px; border-top: 1px solid var(--faint); padding-top: 14px; font-size: .92rem; }
.demo-tools summary { color: #c9ceca; width: fit-content; padding: 4px 0; }
.demo-tools p { line-height: 1.5; margin: 9px 0; }
.demo-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

dialog {
    padding: 0;
    color: var(--text);
    background: #1c2427;
    border: 1px solid #62736d;
    border-radius: 16px;
    box-shadow: 0 24px 100px #080e10d6, 0 0 0 1px #292e26;
    max-height: calc(100dvh - 32px);
    overscroll-behavior: contain;
}
dialog::backdrop { background: #0d1418bf; backdrop-filter: blur(5px); }
dialog[open] { animation: appear .23s ease-out both; }
@keyframes appear {
    from { opacity: 0; transform: translateY(7px) scale(.985); }
    to { opacity: 1; transform: none; }
}
.tree-dialog { width: min(1170px, calc(100vw - 38px)); max-width: none; }
.dialog-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    border-bottom: 1px solid #4b5651;
    background: #202a2c;
}
.tree-emblem {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse, #76624267, #2c3231 77%);
    color: #f0d393;
    border: 1px solid #967c51;
    border-radius: 11px;
    font-size: 1.65rem;
}
.dialog-title h2 { font-size: 1.9rem; line-height: 1.07; }
.owner-line { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.owner-line strong { color: var(--gold); }
.dialog-header > .close { margin-left: auto; }
.tree-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); }
.tree-stage {
    position: relative;
    min-width: 0;
    min-height: 594px;
    isolation: isolate;
    background: radial-gradient(ellipse at 50% 52%, #354b48 0, #263e3c 36%, #192c2e 60%, #172427 100%);
    overflow: hidden;
}
.tree-stage::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    background: radial-gradient(ellipse at 50% 43%, #1e3c390f 0, #182b30b0 68%, #17252b 100%), url("./winter.webp") center 42% / cover;
    opacity: .37;
}
.tree-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(0deg, #152528e8 0, transparent 25%, transparent 80%, #1525285e 100%);
}
.tree-story {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 16px;
    background: #172527db;
    border: 1px solid #788d7f7f;
    font-size: .85rem;
    color: #dfebdd;
    border-radius: 7px;
    padding: 7px 10px;
    pointer-events: none;
}
.tree-story span { color: #b5dfdd; margin-right: 5px; }
.tree-view { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.tree-view.rotating { cursor: grabbing; }
.tree-view > canvas { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.anchors { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.anchor {
    position: absolute;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 1px solid transparent;
    pointer-events: auto;
}
.anchor::after {
    position: absolute;
    content: '';
    width: 8px;
    height: 8px;
    left: 9px;
    top: 9px;
    transform: rotate(45deg);
    background: #294a4896;
    border: 1px solid #d1dbc3;
    border-radius: 1px;
    box-shadow: 0 0 5px #21322d;
}
.anchor:hover, .anchor:focus-visible { background: #fef1ba25; border-color: #ffe3a0; outline: 0; }
.anchor.can-hang::after { background: #eec582; border-color: #fff0c3; box-shadow: 0 0 8px #eec582a6; }
.anchor.filled::after { display: none; }
.scene-controls {
    position: absolute;
    z-index: 4;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.scene-controls .icon-button { background: #172527eb; border-color: #62766e; width: 37px; height: 37px; }
.scene-controls .icon-button:hover { background: #384b46; }
.scene-tip {
    position: absolute;
    z-index: 3;
    bottom: 10px;
    width: 100%;
    text-align: center;
    padding: 0 6px;
    pointer-events: none;
    color: #e2e4d3;
    font-size: .82rem;
}
.selected-preview {
    position: absolute;
    z-index: 3;
    right: 12px;
    top: 13px;
    background: #172527ec;
    color: var(--gold);
    font-size: .78rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 9px;
    padding: 3px 9px;
    border: 1px solid #a98f625e;
    max-width: 48%;
}
.selected-preview img { width: 30px; height: 30px; }
.fallback-tree { position: absolute; width: min(72%, 390px); top: 8%; left: 50%; transform: translateX(-50%); }
.fallback .anchors {
    top: 45%;
    inset-inline: 9%;
    bottom: 80px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    align-content: center;
    gap: 4px;
}
.fallback .anchor { position: relative; transform: none; width: 100%; min-width: 18px; height: 25px; border: 1px solid var(--line); background-color: #171f23b9; background-position: center; background-size: 22px; background-repeat: no-repeat; }
.fallback .anchor::after { left: calc(50% - 4px); top: 7px; }
.fallback.lit { filter: brightness(1.16); }
.tree-stage:has(.fallback) .scene-controls { display: none; }

.tree-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 19px 19px 18px;
    border-left: 1px solid #52615a;
    background: #222b2d;
}
.tree-progress { padding: 12px 14px; border: 1px solid #57665c; border-radius: 9px; background: #1b2426; }
.tree-progress > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #dfe6df; font-size: .93rem; }
.tree-progress strong { color: var(--gold); font-size: 1.07rem; white-space: nowrap; }
progress { display: block; border: 0; height: 6px; width: 100%; margin-top: 9px; border-radius: 8px; background: #394646; accent-color: #d5b47e; }
progress::-webkit-progress-bar { border-radius: 8px; background: #394646; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #ae905c, #ecd194); border-radius: 8px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, #ae905c, #ecd194); border-radius: 8px; }
.inventory-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 14px; }
.tab {
    min-height: 41px;
    padding: 8px 7px;
    border-radius: 7px 7px 0 0;
    color: #b7c5c1;
    background: #273438;
    line-height: 1.25;
    font-size: .86rem;
    font-weight: 640;
}
.tab span { display: inline-block; padding-left: 4px; color: #ded9bf; font-size: .79rem; }
.tab[aria-pressed="true"] { background: #182326; border-color: #64726a; color: #f4e0b4; }
.inventory-content {
    border: 1px solid #58665e;
    background: #182326;
    border-radius: 0 0 9px 9px;
    min-height: 156px;
    max-height: 190px;
    overflow: auto;
    padding: 9px;
    scrollbar-width: thin;
    scrollbar-color: #7d7258 #222d30;
}
.inventory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.inventory-item {
    position: relative;
    display: flex;
    min-height: 64px;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 5px 4px 5px 2px;
    border: 1px solid #4b6059;
    border-radius: 7px;
    background: #273536;
    cursor: grab;
    user-select: none;
}
.inventory-item:hover, .inventory-item[aria-pressed="true"] { border-color: #cda974; background: #38433a; }
.inventory-item.rare { background: #34352e; border-color: #7c694c; }
.inventory-item.rare:hover, .inventory-item.rare[aria-pressed="true"] { border-color: #e8c284; background: #4c4334; }
.inventory-item img { width: 36px; height: 36px; margin-inline: 1px; flex-shrink: 0; pointer-events: none; }
.inventory-item b { font-size: .78rem; overflow-wrap: anywhere; display: block; line-height: 1.22; }
.inventory-item span { display: block; color: #c6caba; font-size: .73rem; line-height: 1.12; margin-top: 3px; }
.inventory-item em { color: var(--gold); font-size: .72rem; font-style: normal; padding-right: 2px; margin-left: auto; white-space: nowrap; }
.drag-toy { position: fixed; left: 0; top: 0; width: 54px; height: 54px; pointer-events: none; z-index: 9; filter: drop-shadow(0 0 8px #efc87f); }
.inventory-empty { color: var(--muted); line-height: 1.6; padding: 18px 12px; }
.book-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.book-item { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #445554; background: #253233; border-radius: 5px; color: #6e8682; font-size: 1.1rem; padding: 0; }
.book-item.rare { border-color: #75654d; }
.book-item:hover, .book-item:focus-visible { border-color: #d6b47a; }
.book-item img { width: 88%; height: auto; }
.inventory-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin: 11px 0 13px; }
.inventory-actions .button:disabled, .rewards .button:disabled { opacity: .53; cursor: default; }
.rewards { border-top: 1px solid #52605b; padding-top: 11px; margin-top: auto; }
.rewards h3 { font: 600 1.20rem Georgia, serif; margin-bottom: 6px; }
.reward {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 48px;
}
.reward-icon { display: grid; place-items: center; background: #2d372e; border: 1px solid #665d45; border-radius: 7px; height: 34px; }
.reward-icon img { width: 31px; height: 31px; }
.reward > div { display: grid; gap: 2px; }
.reward > div strong { font-weight: 650; font-size: .87rem; }
.reward > div span { color: var(--muted); font-size: .77rem; line-height: 1.25; }
.gift-button { color: var(--gold); background: #34382e; border-color: #9b8059; min-height: 32px; padding: 6px 8px; font-size: .79rem; }
.gift-button:hover:enabled { background: #534630; }
.garland { margin-top: 9px; width: 100%; color: #f1d69f; background: #353b30; border-color: #8e7655; }
.garland[aria-pressed="true"] { background: #5b4e32; border-color: #e1ba7d; }

.small-dialog { width: min(445px, calc(100vw - 24px)); max-width: none; padding: 18px; }
.small-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 15px; }
.small-heading h2 { font-size: 1.59rem; }
.small-dialog form { display: grid; gap: 13px; }
.small-dialog label { display: grid; gap: 6px; color: #dedfd2; font-size: .9rem; }
.form-error { color: #ffc0ad; font-size: .9rem; }
.context-content { position: relative; min-height: 126px; border: 1px solid var(--line); border-radius: 9px; background: #182327; padding: 15px 55px 20px 15px; color: #d9e2de; line-height: 1.65; }
.context-content .hideout { position: absolute; right: 8px; bottom: 8px; }
#history { display: grid; gap: 6px; color: var(--muted); }
.history-entry { padding: 8px; background: #162022; border-radius: 7px; display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--text); }
.history-entry img { width: 34px; height: 34px; }
.gift-dialog { text-align: center; }
.gift-picture { display: grid; place-items: center; min-height: 146px; background: radial-gradient(ellipse, #9175436a, transparent 70%); }
.gift-picture img { width: 133px; height: 133px; image-rendering: pixelated; }
.gift-dialog p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.toast {
    position: fixed;
    z-index: 8;
    right: 18px;
    bottom: 18px;
    width: min(350px, calc(100% - 36px));
    padding: 12px 15px;
    border: 1px solid #988462;
    border-radius: 10px;
    background: #293733;
    color: #fff1d5;
    box-shadow: 0 10px 30px #0f1619ad;
    line-height: 1.4;
    font-size: .9rem;
    animation: appear .17s ease both;
}
.tree-dialog .toast { position: absolute; }

@media (max-width: 935px) {
    .site-header { gap: 11px; }
    .site-nav, .site-actions { gap: 9px; }
    .brand img { width: 119px; }
    .tree-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 335px); }
    .tree-panel { padding-inline: 12px; }
}
@media (max-width: 700px) {
    .site-header { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; padding: 12px 12px 8px; }
    .brand { grid-area: 1 / 1; }
    .site-actions { grid-area: 1 / 2; }
    .site-nav { grid-area: 2 / 1 / 3 / -1; gap: 18px; }
    .site-nav a { font-size: .81rem; padding-block: 6px; }
    .account select { max-width: 126px; min-height: 38px; padding-left: 8px; font-size: .82rem; }
    .nav-tree { min-height: 38px; padding-inline: 8px; font-size: .81rem; }
    .site-main { padding: 14px 12px 24px; }
    .hero { min-height: 310px; background-position: 62% center; }
    .hero::before { background: linear-gradient(90deg, #172123f6, #1721238d 80%, #14212170); }
    .hero-content { padding: 32px 18px 42px; }
    .hero h1 { font-size: clamp(2.35rem, 9vw, 4.0rem); }
    .hero-content p:not(.kicker) { font-size: .94rem; }
    .hero-hideout { bottom: 6px; right: 6px; }
    .season-status { gap: 5px 11px; flex-wrap: wrap; font-size: .78rem; }
    .season-status .quiet { font-size: .81rem; }
    .daily-dots { display: none; }
    .realm-card { min-height: 126px; padding: 12px 43px 12px 11px; }
    .realm-card h3 { font-size: 1.33rem; }
    .realm-card p { font-size: .78rem; }
    .corner-hideout { right: 4px; bottom: 4px; }
    .news { gap: 9px; }
    .news img { width: 74px; height: 72px; }
    .news p { font-size: .84rem; }
    .shop-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-items h3 { font-size: .89rem; }
    .tree-dialog { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); }
    .dialog-header { position: sticky; top: 0; z-index: 6; padding: 9px 11px; }
    .dialog-title h2 { font-size: 1.47rem; }
    .tree-emblem { width: 37px; height: 37px; }
    .owner-line { font-size: .76rem; }
    .tree-layout { display: flex; flex-direction: column; }
    .tree-stage { min-height: min(454px, 58dvh); }
    .tree-panel { border-left: 0; border-top: 1px solid #52615a; padding: 12px; }
    .tree-story { left: 7px; top: 7px; font-size: .74rem; }
    .selected-preview { top: 7px; right: 7px; }
    .inventory-content { max-height: 190px; min-height: 111px; }
    .anchor { width: 29px; height: 29px; }
}
@media (max-width: 364px) {
    .site-nav { justify-content: space-between; gap: 5px; }
    .brand img { width: 90px; }
    .site-actions { gap: 4px; }
    .site-cards { grid-template-columns: 1fr; }
    .daily > span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

}
