:root {
    color-scheme: dark;
    --forest: #c3dec9;
    --forest-deep: #111a16;
    --forest-soft: #a8c0ae;
    --paper: #e9eee8;
    --paper-bright: #1d2922;
    --ink: #e9eee8;
    --muted: #acb8ae;
    --line: #3a4940;
    --coral: #d87864;
    --rose: #f1d7cf;
    --gold: #d8aa4d;
    --green: #91bb8c;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; touch-action: manipulation; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: #111713;
    background-image: repeating-linear-gradient(45deg, transparent 0 34px, rgba(255,255,255,.018) 35px 36px);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.5;
}
button, a { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(22px, calc((100vw - 1200px) / 2));
    color: var(--paper);
    background: #19231d;
    border-bottom: 4px solid var(--gold);
}
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: inherit; font: 700 17px/1 Georgia, "Times New Roman", serif; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.08); font-size: 22px; }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-nav > a { color: #e7d8b8; font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.top-nav > a:hover { color: #fff; }
.reset-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--paper); background: transparent; font-size: 23px; cursor: pointer; transition: background .16s ease, transform .2s ease; }
.reset-button:hover { transform: rotate(-24deg); background: rgba(255,255,255,.12); }

.game-shell { width: min(1200px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 22px; margin: 30px auto 28px; align-items: start; }
.game-floor, .workshop { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #1b2420; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.game-floor { overflow: hidden; padding: 26px 30px 21px; }
.game-heading { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.stitch-mark { width: 21px; height: 2px; background: var(--coral); }
h1, h2, h3, p { overflow-wrap: anywhere; }
.game-heading h1 { margin: 0; color: var(--forest); font: 700 38px/1.05 Georgia, "Times New Roman", serif; }
.game-intro { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.game-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bear-creator-open { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; margin-top: 13px; padding: 7px 11px; border: 1px solid #728c72; border-radius: 5px; color: #d3e2cb; background: #29372d; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.bear-creator-open:hover { border-color: #b7cf9f; background: #344638; }
.bear-creator-open span { color: #e2bd6d; }
.room-organize-toggle[aria-pressed="true"] { border-color: #d5ae6f; color: #fff0cd; background: #4a3e2e; }
.room-organize-status { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }

.bear-stage {
    position: relative;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    margin: 20px 0 0;
    padding: 20px 18px 17px;
    border: 1px solid #d5cfbc;
    border-radius: 7px;
    background-color: #f0e4cf;
    background-image:
        radial-gradient(circle at 50% 34%, rgba(255,253,246,.76) 0 120px, transparent 121px),
        repeating-linear-gradient(0deg, transparent 0 25px, rgba(138,106,77,.055) 26px 27px),
        repeating-linear-gradient(90deg, transparent 0 25px, rgba(138,106,77,.055) 26px 27px);
}
.bear-stage::after { position: absolute; top: 16px; right: 18px; width: 22px; height: 22px; content: "✿"; color: #bf775f; font-size: 21px; opacity: .8; }
.workshop-dressing { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.room-fullscreen-toggle { position: absolute; z-index: 10; right: 14px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #b98c67; border-radius: 50%; color: #6b654e; background: rgba(255, 248, 233, .9); box-shadow: 0 2px 6px rgba(68,42,29,.16); font: 700 23px/1 Arial, sans-serif; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.room-fullscreen-toggle:hover { background: #fff8e9; transform: scale(1.06); }
.room-fullscreen-toggle:focus-visible { outline: 2px solid #947449; outline-offset: 3px; }
.bear-stage:fullscreen,
.bear-stage.is-fullscreen-fallback { position: fixed; z-index: 1000; inset: 0; width: 100vw; height: 100vh; min-height: 100vh; margin: 0; padding: 28px; border: 0; border-radius: 0; }
.bear-stage:fullscreen .bear-button,
.bear-stage.is-fullscreen-fallback .bear-button { top: 50%; width: min(52vh, 420px); height: min(52vh, 420px); transform: translate(-50%, -58%); }
.bear-stage:fullscreen .hug-total,
.bear-stage.is-fullscreen-fallback .hug-total { position: absolute; bottom: 62px; }
.bear-stage:fullscreen .click-hint,
.bear-stage.is-fullscreen-fallback .click-hint { position: absolute; bottom: 32px; }
.bear-stage:fullscreen .room-fullscreen-toggle,
.bear-stage.is-fullscreen-fallback .room-fullscreen-toggle { z-index: 23; right: 24px; bottom: 24px; }
.bear-stage:fullscreen .workshop-dressing,
.bear-stage.is-fullscreen-fallback .workshop-dressing { overflow: hidden; }
.fullscreen-workbench-toggle[hidden] { display: none; }
.fullscreen-workbench-toggle { position: absolute; z-index: 22; top: 50%; right: 0; min-width: 46px; min-height: 58px; padding: 8px 7px; border: 1px solid #b98c67; border-right: 0; border-radius: 9px 0 0 9px; color: #51443b; background: rgba(255, 248, 233, .96); box-shadow: 0 2px 8px rgba(39,29,25,.22); font: 700 16px/1 Arial, sans-serif; cursor: pointer; transform: translateY(-50%); transition: right .22s ease, background .16s ease; }
.fullscreen-workbench-toggle:hover { background: #fff8e9; }
.fullscreen-workbench-toggle:focus-visible { outline: 2px solid #947449; outline-offset: -3px; }
.workshop.is-fullscreen-workbench { position: absolute; z-index: 21; top: 0; right: 0; bottom: 0; width: min(390px, 90vw); max-height: 100%; overflow-y: auto; margin: 0; border-radius: 0; transform: translateX(100%); transition: transform .22s ease; }
.workshop.is-fullscreen-workbench.is-drawer-open { transform: translateX(0); }
.bear-stage:fullscreen .fullscreen-workbench-toggle.is-open,
.bear-stage.is-fullscreen-fallback .fullscreen-workbench-toggle.is-open { right: min(390px, 90vw); }
.workshop-prop-group { position: absolute; display: flex; align-items: flex-end; gap: 3px; pointer-events: none; }
.workshop-prop-group.is-movable { pointer-events: auto; cursor: grab; touch-action: none; }
.workshop-prop-group.is-movable:active,
.workshop-prop-group.is-movable[aria-grabbed="true"] { cursor: grabbing; }
.workshop-prop-group.is-movable:focus-visible { outline: 2px dashed #d5ae6f; outline-offset: 3px; }
.bear-stage.is-organizing .workshop-dressing { pointer-events: none; }
.prop-shelf { top: 78px; left: 5%; width: 94px; height: 48px; padding: 0 8px 7px; border-bottom: 5px solid #9a6949; border-radius: 2px; background: linear-gradient(#aa7955 0 5px, transparent 5px); box-shadow: 0 3px 0 rgba(87,58,39,.12); }
.prop-book { width: 17px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(89,67,48,.25); border-radius: 2px 2px 0 0; color: #f9edd8; background: #71856a; font: 700 15px/1 Georgia, serif; }
.prop-book:nth-child(2) { height: 30px; color: #f5e5c4; background: #c16f57; }
.prop-book:nth-child(3) { height: 22px; color: #f7edd6; background: #708394; }
.prop-sewing-table { bottom: 54px; left: 4%; width: 82px; height: 53px; justify-content: center; padding-bottom: 8px; border-bottom: 7px solid #976d4e; border-radius: 3px; background: linear-gradient(#b98b62 0 5px, transparent 5px); }
.prop-sewing-table::before { position: absolute; inset: 5px 12px 0; border-right: 4px solid #9b7656; border-left: 4px solid #9b7656; content: ""; }
.prop-machine { z-index: 1; width: 31px; height: 23px; display: grid; place-items: center; border: 2px solid #738276; border-radius: 6px 6px 3px 3px; color: #f4e9d4; background: #829486; font: 15px/1 Georgia, serif; box-shadow: 0 2px 0 #53675b; }
.prop-machine::after { position: absolute; top: 8px; right: -5px; width: 9px; height: 2px; background: #b98b62; content: ""; }
.prop-pillows { z-index: 3; bottom: 42px; left: 15%; gap: 0; }
.prop-pillow { width: 39px; height: 20px; display: grid; place-items: center; border: 2px solid #d5aa86; border-radius: 48% 48% 40% 40%; color: #a76e5c; background: #f4d8c5; font: 12px/1 Georgia, serif; transform: rotate(-8deg); }
.prop-pillow:nth-child(2) { margin-left: -10px; color: #72816e; background: #d7ddc9; transform: rotate(7deg); }
.prop-pillow:nth-child(3) { margin-left: -10px; background: #ead9b8; transform: rotate(-3deg); }
.prop-little-bears { z-index: 3; right: 10%; bottom: 44px; align-items: flex-end; gap: 0; }
.prop-mini-bear { color: #9c6845; font-size: 23px; line-height: 1; filter: drop-shadow(0 2px 1px rgba(79,54,38,.15)); }
.prop-mini-bear:nth-child(2) { margin: 0 -3px 4px; font-size: 19px; }
.prop-stuffing-machine { right: 4%; bottom: 57px; width: 75px; height: 51px; justify-content: center; gap: 1px; border: 2px solid #9e8669; border-radius: 8px 8px 4px 4px; color: #f3ead7; background: #c3aa86; box-shadow: inset 0 5px rgba(255,255,255,.25), 0 3px 0 #9e8669; font-size: 20px; }
.prop-stuffing-machine::before { position: absolute; top: -12px; left: 27px; width: 17px; height: 12px; border: 2px solid #9e8669; border-bottom: 0; border-radius: 5px 5px 0 0; content: ""; }
.prop-stuffing-cloud { z-index: 1; }
.prop-stuffing-cloud + .prop-stuffing-cloud { margin-left: -4px; color: #f9f2df; font-size: 15px; }
.prop-lamps { top: 82px; right: 8%; width: 42px; height: 61px; justify-content: center; color: #aa7c43; font-size: 25px; }
.prop-lamps::before { position: absolute; top: 24px; width: 32px; height: 19px; border: 2px solid #b78a4c; border-radius: 50% 50% 5px 5px; background: #f4dfaa; box-shadow: 0 0 16px rgba(227,183,99,.35); content: ""; }
.prop-lamp { position: relative; z-index: 1; align-self: flex-start; }
.prop-lamp:nth-child(2) { position: absolute; top: 28px; left: -20px; font-size: 17px; }
.prop-honey-oven { top: 160px; left: 3%; width: 58px; height: 45px; justify-content: center; padding-bottom: 4px; border: 2px solid #a87b4d; border-radius: 7px 7px 4px 4px; color: #fff1d2; background: #c98d5d; box-shadow: inset 0 5px rgba(255,255,255,.2), 0 3px 0 #9c6947; font-size: 24px; }
.prop-honey-oven::before { position: absolute; top: -9px; left: 16px; width: 22px; height: 8px; border: 2px solid #a87b4d; border-bottom: 0; border-radius: 5px 5px 0 0; content: ""; }
.prop-oven-detail { position: relative; z-index: 1; }
.prop-quilt-stack { top: 165px; right: 3%; width: 66px; height: 43px; align-content: end; justify-content: center; padding: 5px 3px 3px; border: 2px solid #a98268; border-radius: 7px; background: repeating-linear-gradient(45deg, #f3dec7 0 11px, #d6dfcd 11px 22px, #ead3c2 22px 33px); box-shadow: 0 3px 0 rgba(87,58,39,.16); }
.prop-quilt-square { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid rgba(133,94,71,.4); border-radius: 3px; color: #a66053; background: rgba(255,248,232,.88); font-size: 11px; }
.prop-quilt-square:nth-child(2) { color: #70816a; background: rgba(246,239,216,.9); }
.prop-quilt-square:nth-child(3) { color: #9c7445; background: rgba(255,248,232,.88); }
.prop-cuddle-carousel { right: 3%; bottom: 116px; width: 65px; height: 53px; justify-content: center; gap: 0; padding-bottom: 5px; border-bottom: 3px solid #9c714e; border-radius: 50% 50% 4px 4px; background: linear-gradient(90deg, transparent 47%, #b98c5c 48% 52%, transparent 53%); }
.prop-cuddle-carousel::before { position: absolute; top: 7px; left: 11px; width: 42px; height: 42px; border: 2px solid #bf9c66; border-radius: 50%; content: ""; }
.prop-carousel-bear { position: relative; z-index: 1; align-self: center; margin: -4px -2px 0; color: #9c6845; font-size: 16px; }
.prop-carousel-bear:nth-child(2) { margin-top: 6px; font-size: 13px; }
.prop-starry-loom { bottom: 116px; left: 3%; width: 64px; height: 51px; justify-content: center; gap: 1px; border: 2px solid #788779; border-radius: 6px; color: #f7e8c1; background: #92a28d; box-shadow: 0 3px 0 #647664; font-size: 18px; }
.prop-starry-loom::before, .prop-starry-loom::after { position: absolute; top: -8px; width: 3px; height: 57px; background: #9a714d; content: ""; }
.prop-starry-loom::before { left: 8px; }
.prop-starry-loom::after { right: 8px; }
.prop-loom-star { position: relative; z-index: 1; }
.prop-cloud-castle { top: 149px; left: 50%; width: 69px; height: 47px; justify-content: center; gap: 0; border-bottom: 3px solid #9f8b70; border-radius: 50% 50% 4px 4px; color: #fff9e9; background: rgba(217,222,210,.88); box-shadow: 0 3px 0 rgba(87,58,39,.12); font-size: 25px; transform: translateX(-50%); }
.prop-cloud-castle::before { position: absolute; top: 4px; left: 22px; width: 21px; height: 27px; border: 2px solid #b99b6d; border-bottom: 0; border-radius: 12px 12px 0 0; content: ""; }
.prop-castle-cloud { position: relative; z-index: 1; margin: 0 -7px; }
.prop-castle-cloud:nth-child(2) { margin-top: -13px; font-size: 19px; }
.bear-button { z-index: 2; }
.stage-label { position: absolute; top: 16px; left: 17px; display: inline-flex; align-items: center; gap: 7px; color: var(--forest-soft); font: 700 9px/1.3 "Courier New", monospace; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #69905e; box-shadow: 0 0 0 3px rgba(105,144,94,.14); }
.lucky-button { position: absolute; z-index: 4; top: 11px; right: 12px; width: 42px; height: 42px; border: 1px solid #b98c36; border-radius: 50%; color: #70491e; background: #f5d274; box-shadow: 0 2px 0 #c2933a; font-size: 23px; cursor: pointer; animation: lucky-glow 1.2s ease-in-out infinite alternate; }
.lucky-button:hover { background: #ffe59a; }
.lucky-button[hidden] { display: none; }
.bear-button { position: absolute; top: 39px; left: 50%; width: min(75%, 280px); height: 282px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translateX(-50%); -webkit-tap-highlight-color: transparent; }
.bear-base { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 7px rgba(91,59,37,.13)); transition: transform .16s cubic-bezier(.2,.8,.2,1); user-select: none; -webkit-user-drag: none; }
.bear-button:hover .bear-base { transform: translateY(-4px) rotate(-2deg); }
.bear-button:active .bear-base, .bear-button.is-hugging .bear-base { transform: translateY(3px) scale(.96) rotate(2deg); }
.bear-button .bear-hat { position: absolute; z-index: 2; top: 0; left: 50%; width: 124px; height: 91px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(64,43,30,.2)); pointer-events: none; transform: translateX(-50%); }
.bear-button .bear-hat[hidden] { display: none; }
.bear-upgrade-layer { position: absolute; inset: 0; pointer-events: none; }
.bear-detail { position: absolute; display: block; pointer-events: none; }
.bear-paw { bottom: 8%; color: #d5a77f; font-size: 20px; line-height: 1; text-shadow: 0 1px #8f593e; }
.bear-paw-left { left: 21%; transform: rotate(-18deg); }
.bear-paw-right { right: 21%; transform: rotate(18deg); }
.bear-stitches { top: 62%; left: 34%; width: 32%; height: 14%; border: 2px dashed #f2d5a9; border-radius: 50%; opacity: .92; transform: rotate(-8deg); }
.bear-button-details { inset: 0; }
.bear-button-detail { position: absolute; width: 13px; height: 13px; border: 2px solid #f3e5c8; border-radius: 50%; background: #c66055; box-shadow: 0 1px 2px rgba(68,42,29,.28); }
.bear-button-detail:nth-of-type(3n) { background: #d6ad56; }
.bear-button-detail:nth-of-type(4n) { background: #71836b; }
.bear-button-detail:nth-of-type(1) { top: 58%; left: 28%; }
.bear-button-detail:nth-of-type(2) { top: 64%; left: 67%; }
.bear-button-detail:nth-of-type(3) { top: 73%; left: 31%; }
.bear-button-detail:nth-of-type(4) { top: 75%; left: 63%; }
.bear-button-detail:nth-of-type(5) { top: 53%; left: 64%; }
.bear-moon { top: 20%; right: 23%; color: #f7df9d; font: 700 22px/1 Georgia, serif; text-shadow: 0 1px 3px rgba(93,67,37,.45); }
.hug-total { z-index: 1; display: flex; align-items: baseline; gap: 7px; color: var(--forest); }
.hug-total strong { font: 700 36px/1 Georgia, "Times New Roman", serif; font-variant-numeric: tabular-nums; }
.hug-total span { color: var(--forest-soft); font-size: 12px; font-weight: 700; }
.click-hint { z-index: 1; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.click-bursts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.click-burst { position: absolute; z-index: 2; color: #a8cf91; font: 700 15px/1 Georgia, serif; animation: float-away .8s ease-out forwards; }
.event-status { min-height: 0; margin: 0; color: #916926; font-size: 11px; text-align: center; }
.event-status:empty { display: none; }

.run-stats { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 4px 13px; border-bottom: 1px dashed #c9cdbf; }
.run-stat { min-width: 0; display: grid; gap: 3px; }
.run-stat span { color: var(--muted); font-size: 10px; }
.run-stat strong { color: var(--forest); font: 700 17px/1 Georgia, serif; font-variant-numeric: tabular-nums; }
.stat-separator { width: 1px; height: 27px; flex: 0 0 1px; background: var(--line); }
.milestone-line { min-height: 20px; padding-top: 11px; color: var(--forest-soft); font-size: 11px; text-align: center; }
.milestone-line[data-category="achievement"] { color: var(--coral); font-weight: 700; }
.milestone-line[data-category="daily"] { color: var(--forest-deep); font-weight: 700; }
.milestone-line[data-category="lucky"] { color: var(--green); font-weight: 700; }
.dream-cradle { margin-top: 16px; padding: 16px; border: 1px solid #d5c6a9; border-radius: 7px; background: #f2ead8; }
.dream-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dream-heading .eyebrow { margin-bottom: 4px; color: #9c6845; }
.dream-heading h2 { margin: 0; color: var(--forest); font: 700 21px/1.1 Georgia, serif; }
.wish-total { display: grid; justify-items: end; gap: 1px; color: #94692a; }
.wish-total strong { font: 700 23px/1 Georgia, serif; font-variant-numeric: tabular-nums; }
.wish-total span { font-size: 9px; font-weight: 700; }
.dream-copy { margin: 10px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.dream-run-total { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 7px; color: var(--muted); font-size: 10px; }
.dream-run-total strong { color: var(--forest); font-variant-numeric: tabular-nums; }
.hat-reward-status { margin: 0 0 10px; color: #8d6338; font-size: 10px; }
.hat-picker { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 5px 9px; margin: 0 0 10px; }
.hat-picker label { color: var(--ink); font-size: 10px; font-weight: 700; }
.hat-picker select { min-width: 0; min-height: 31px; padding: 4px 8px; border: 1px solid #c9b991; border-radius: 4px; color: var(--ink); background: #282f2a; font: inherit; font-size: 10px; }
.hat-picker select:disabled { opacity: .65; }
.hat-picker select:focus-visible { outline: 2px solid #d5ae6f; outline-offset: 2px; }
.hat-picker small { grid-column: 2; color: var(--muted); font-size: 9px; }
.dream-meter { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 10px; }
#dream-progress { width: 100%; height: 7px; border: 0; border-radius: 6px; background: #dfd6c3; accent-color: var(--coral); }
#dream-progress::-webkit-progress-bar { border-radius: 6px; background: #dfd6c3; }
#dream-progress::-webkit-progress-value { border-radius: 6px; background: var(--coral); transition: width .3s ease; }
#dream-progress::-moz-progress-bar { border-radius: 6px; background: var(--coral); }
.dream-meter span { color: #745f44; font-size: 9px; font-variant-numeric: tabular-nums; }
.restuff-button { width: 100%; min-height: 39px; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--forest); border-radius: 5px; color: var(--paper-bright); background: var(--forest); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.restuff-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--forest-soft); }
.restuff-button:disabled { border-color: #b6b9ad; color: #858b80; background: #dfe1d7; cursor: not-allowed; }

.workshop { padding: 22px 22px 17px; }
.workshop-heading, .keepsake-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workshop-heading .eyebrow { margin-bottom: 5px; }
.workshop-heading h2 { margin: 0; color: var(--forest); font: 700 25px/1.1 Georgia, serif; }
.bench-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #dbb987; border-radius: 50%; color: #9c603e; background: #f5e1be; font: 24px/1 Georgia, serif; }
.workshop-balance { display: flex; justify-content: space-between; gap: 10px; margin: 19px 0 9px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.workshop-balance strong { color: var(--forest); font-size: 12px; font-variant-numeric: tabular-nums; }
.workshop-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 11px 0 9px; padding: 4px; border: 1px solid #d5cfbc; border-radius: 6px; background: #eee9dc; }
.workshop-tab { min-width: 0; min-height: 34px; padding: 6px 8px; border: 1px solid transparent; border-radius: 4px; color: var(--forest-soft); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.workshop-tab:hover { border-color: #b69055; color: var(--forest); background: rgba(245, 225, 190, .45); }
.workshop-tab[aria-selected="true"] { border-color: #d3c3a3; color: var(--forest); background: var(--paper-bright); box-shadow: 0 1px 3px rgba(34,56,44,.08); }
.workshop-tab:focus-visible { outline-offset: 1px; }
.workshop-tab span { margin-left: 3px; color: var(--muted); font-size: 9px; font-weight: 400; white-space: nowrap; }
.workshop-panel[hidden] { display: none; }
.daily-gift { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 4px; padding: 11px 12px; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; background: #f0ead8; }
.daily-copy { min-width: 0; display: grid; gap: 3px; }
.daily-copy .eyebrow { margin: 0; color: #9c6845; font-size: 8px; }
.daily-copy h3 { margin: 0; color: var(--forest); font: 700 15px/1.1 Georgia, serif; }
.daily-copy > span { color: var(--muted); font-size: 9px; }
.daily-button { min-width: 106px; min-height: 39px; display: grid; align-content: center; justify-items: center; gap: 1px; padding: 5px 9px; border: 1px solid #ad7940; border-radius: 5px; color: #fffaf0; background: #9d6943; cursor: pointer; transition: background .16s ease; }
.daily-button:hover:not(:disabled) { background: #7e5138; }
.daily-button:disabled { border-color: #c5c6bc; color: #7f857b; background: #e0e1d8; cursor: not-allowed; }
.daily-button strong { font-size: 10px; }
.daily-button span { font-size: 9px; }
.purchase-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 13px 0 8px; color: var(--muted); font-size: 10px; }
.purchase-controls > span { margin-right: auto; font-weight: 700; }
.purchase-controls button { min-width: 43px; min-height: 29px; padding: 4px 9px; border: 1px solid #d5cfbc; border-radius: 4px; color: var(--forest-soft); background: #f2eee3; font-size: 10px; font-weight: 700; cursor: pointer; }
.purchase-controls button[aria-pressed="true"] { border-color: #947449; color: var(--paper-bright); background: var(--forest); }
.purchase-controls button:focus-visible { outline-offset: 2px; }
.auto-hugger { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 9px 10px; border: 1px solid #d6c9aa; border-radius: 5px; background: #f5efdf; }
.auto-hugger-icon { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border: 1px solid #dbcda9; border-radius: 50%; background: #fff8e9; font-size: 17px; }
.auto-hugger-toggle { min-width: 48px; min-height: 28px; margin-left: auto; padding: 4px 8px; border: 1px solid #75866d; border-radius: 14px; color: #e7f0dd; background: #52664d; font-size: 10px; font-weight: 700; cursor: pointer; }
.auto-hugger-toggle[aria-checked="true"] { border-color: #9db884; color: #19241b; background: #bdd39f; }
.auto-hugger-toggle:disabled { border-color: #68716a; color: #aab3ac; background: #353c37; cursor: not-allowed; }
.auto-hugger-toggle:focus-visible { outline: 2px solid #d5ae6f; outline-offset: 2px; }
.auto-hugger h3 { margin: 0 0 2px; color: var(--forest); font: 700 12px/1.2 Georgia, serif; }
.auto-hugger p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.upgrade-milestone-summary { margin: 0; padding: 5px 0 7px; color: #896b43; font-size: 9px; font-weight: 700; }
.upgrade-list { display: grid; }
.upgrade-button { min-width: 0; display: grid; grid-template-columns: 39px minmax(0, 1fr) max-content; align-items: center; gap: 11px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: opacity .15s ease; }
.upgrade-button:not(:disabled):hover .upgrade-icon { transform: rotate(-5deg) scale(1.05); background: #f5e1be; }
.upgrade-button:disabled { opacity: .48; cursor: not-allowed; }
.upgrade-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d9ccae; border-radius: 7px; color: var(--forest); background: #f0ecdd; font-size: 19px; transition: transform .16s ease, background .16s ease; }
.upgrade-copy { min-width: 0; display: grid; gap: 3px; }
.upgrade-copy strong { color: var(--forest); font-size: 12px; }
.upgrade-copy span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.upgrade-price { display: grid; justify-items: end; gap: 2px; color: #e09887; font-size: 11px; font-weight: 700; white-space: nowrap; }
.upgrade-button:not(:disabled) .upgrade-price { color: #9fdb9b; }
.upgrade-button:disabled .upgrade-price { color: #e09887; }
.upgrade-price small { color: var(--muted); font-size: 9px; font-weight: 400; }
.upgrade-price .upgrade-time-left { color: inherit; font-size: 9px; }
.skill-tree-panel { padding-top: 4px; }
.moonlight-panel { padding-top: 4px; }
.moonlight-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid #8e815c; border-radius: 6px; color: #f0dfab; background: linear-gradient(110deg, #39354a, #3e4a42); font-size: 12px; font-weight: 700; }
.moonlight-balance > span { display: flex; align-items: center; gap: 7px; }
.moonlight-balance strong { font: 700 20px/1 Georgia, serif; }
.moon-prestige-button { width: 100%; min-height: 39px; margin-bottom: 6px; padding: 8px 10px; border: 1px solid #93825a; border-radius: 5px; color: #fff3cf; background: #5b536d; font-size: 11px; font-weight: 700; cursor: pointer; }
.moon-prestige-button:hover:not(:disabled) { background: #6a5e7e; }
.moon-prestige-button:disabled { border-color: #586056; color: #a0a99e; background: #303630; cursor: not-allowed; }
.moon-prestige-status { margin: 0 0 12px; color: var(--muted); font-size: 9px; text-align: center; }
.moonlight-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.moonlight-branch { min-width: 0; padding: 9px; border: 1px solid #655e70; border-radius: 7px; background: rgba(57,53,74,.24); }
.moonlight-branch h3 { margin: 0 0 8px; color: #e5d7a5; font: 700 11px/1.2 Georgia, serif; text-align: center; }
.moonlight-branch-path { display: grid; gap: 6px; }
.moonlight-node { min-width: 0; min-height: 56px; display: grid; gap: 3px; padding: 6px; border: 1px solid #655e70; border-radius: 5px; color: var(--ink); background: #302f39; text-align: left; cursor: pointer; }
.moonlight-node:not(:disabled):hover { border-color: #d3b86e; background: #3b3947; }
.moonlight-node:disabled { cursor: not-allowed; }
.moonlight-node.is-locked { border-style: dashed; opacity: .63; }
.moonlight-node.is-owned { border-color: #879a76; background: #303c32; }
.moonlight-node strong { color: #eee3c5; font: 700 10px/1.15 Georgia, serif; }
.moonlight-node > span { color: var(--muted); font-size: 8px; line-height: 1.2; }
.moonlight-node small { color: #d7be78; font-size: 8px; font-weight: 700; }
.moonlight-node.is-owned small { color: #a8c394; }
.skill-tree-intro { margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.skill-tree { display: grid; gap: 13px; }
.skill-tree-root { position: relative; display: grid; justify-items: center; padding-bottom: 16px; }
.skill-tree-root::after { position: absolute; bottom: 0; height: 16px; border-left: 1px solid #c9b991; content: ""; }
.skill-branches { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-top: 16px; }
.skill-branches::before { position: absolute; top: 0; right: 12.5%; left: 12.5%; border-top: 1px solid #c9b991; content: ""; }
.skill-branch { position: relative; min-width: 0; }
.skill-branch::before { position: absolute; top: -16px; left: 50%; height: 16px; border-left: 1px solid #c9b991; content: ""; }
.skill-branch h3 { min-height: 29px; display: flex; justify-content: center; align-items: center; gap: 3px; margin: 0 0 5px; color: #896b43; font: 700 9px/1.2 Georgia, serif; text-align: center; }
.skill-branch h3 span:first-child { font: 13px/1 Georgia, serif; }
.skill-branch-path { display: grid; gap: 11px; }
.skill-node { position: relative; min-width: 0; min-height: 81px; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 7px 4px 6px; border: 1px solid #d7c9a9; border-radius: 6px; color: var(--ink); background: #f5efdf; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.skill-node:not(:first-child)::before { position: absolute; bottom: calc(100% + 1px); left: 50%; height: 11px; border-left: 1px solid #c9b991; content: ""; }
.skill-node:not(:disabled):hover { transform: translateY(-2px); border-color: #b69055; background: #fff8e9; }
.skill-node:disabled { opacity: 1; cursor: not-allowed; }
.skill-node.is-locked { border-style: dashed; color: #858b80; background: #ecebe3; }
.skill-node.is-owned { border-color: #9caf90; background: #e8efdf; }
.skill-node-icon { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #dfcfad; border-radius: 50%; color: #926b3c; background: #fbf5e7; font-size: 13px; }
.skill-node-name { color: var(--forest); font: 700 9px/1.15 Georgia, serif; }
.skill-node-detail { color: var(--muted); font-size: 8px; line-height: 1.2; }
.skill-node-cost { margin-top: auto; color: #9e5142; font-size: 8px; font-weight: 700; line-height: 1.2; }
.skill-node.is-locked .skill-node-cost { color: #83877d; }
.skill-node.is-owned .skill-node-cost { color: #557a56; }
.skill-tree-root > .skill-node { width: min(100%, 190px); min-height: 82px; border-color: #c9aa68; background: #f5e8c9; }
.skill-capstones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-top: 8px; border-top: 1px dashed #c9cdbf; }
.skill-capstones h3 { grid-column: 1 / -1; margin: 0; color: #896b43; font: 700 10px/1.2 Georgia, serif; text-align: center; }
.skill-capstones .skill-node { min-height: 89px; border-color: #c9aa68; background: #f3ead4; }
.skill-capstones .skill-node::before { display: none; }
.keepsake-section { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.keepsake-heading h3 { margin: 0; color: var(--forest); font: 700 16px/1.2 Georgia, serif; }
.keepsake-heading span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.achievement-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.achievement { position: relative; min-width: 0; display: grid; justify-items: center; gap: 4px; color: #94998e; text-align: center; cursor: help; }
.achievement:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.achievement::after { position: absolute; z-index: 8; bottom: calc(100% + 7px); left: 50%; width: max-content; max-width: 210px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; color: var(--paper-bright); background: var(--forest-deep); box-shadow: 0 5px 14px rgba(21,43,37,.2); content: attr(data-tooltip); font-size: 10px; font-weight: 400; line-height: 1.4; opacity: 0; pointer-events: none; text-align: left; transform: translate(-50%, 4px); transition: opacity .12s ease, transform .12s ease; white-space: normal; }
.achievement:hover::after, .achievement:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.achievement:nth-child(4n + 1)::after { left: 0; transform: translateY(4px); }
.achievement:nth-child(4n + 1):hover::after, .achievement:nth-child(4n + 1):focus-visible::after { transform: translateY(0); }
.achievement:nth-child(4n)::after { right: 0; left: auto; transform: translateY(4px); }
.achievement:nth-child(4n):hover::after, .achievement:nth-child(4n):focus-visible::after { transform: translateY(0); }
.achievement-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #d9d9cf; border-radius: 50%; background: #edede5; filter: grayscale(1); opacity: .55; font-size: 17px; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.achievement.is-unlocked { color: var(--forest); }
.achievement.is-unlocked .achievement-icon { border-color: #d5ae6f; background: #f5e4bd; filter: none; opacity: 1; transform: translateY(-2px); }
.achievement-name { max-width: 68px; font-size: 8px; line-height: 1.2; }
.achievement-reward { max-width: 82px; color: var(--muted); font-size: 7px; line-height: 1.2; }
.achievement.is-unlocked .achievement-reward { color: #557a56; font-weight: 700; }
.save-status { min-height: 17px; margin: 14px 0 0; color: var(--muted); font-size: 10px; text-align: right; }
.game-footer { width: min(1200px, calc(100% - 40px)); display: flex; justify-content: space-between; gap: 12px; margin: 0 auto; padding: 0 2px 20px; color: var(--forest-soft); font: 10px/1.4 "Courier New", monospace; text-transform: uppercase; }
.confirm-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 1px solid #c9c1ac; border-radius: 8px; color: var(--ink); background: var(--paper-bright); box-shadow: 0 18px 60px rgba(21,43,37,.28); }
.confirm-dialog::backdrop { background: rgba(16,35,29,.58); backdrop-filter: blur(3px); }
.dialog-content { padding: 24px; }
.dialog-content h2 { margin: 0; color: var(--forest); font: 700 25px/1.15 Georgia, serif; }
.dialog-content > p:not(.eyebrow) { margin: 12px 0; color: var(--muted); font-size: 13px; }
.dialog-content > strong { color: #9c6845; font-size: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.dialog-actions button { min-height: 40px; padding: 8px 13px; border: 1px solid var(--forest); border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; }
.bear-creator-dialog { width: min(440px, calc(100% - 28px)); }
.bear-creator-fields { display: grid; gap: 10px; margin-top: 18px; }
.bear-color-field { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: rgba(255,255,255,.035); font-size: 13px; font-weight: 700; }
.bear-color-field input { width: 52px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-bright); cursor: pointer; }
.bear-color-field input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.dialog-cancel { color: var(--forest); background: transparent; }
.dialog-confirm { color: var(--paper-bright); background: var(--forest); }
.dialog-confirm:hover { background: var(--forest-soft); }

@keyframes float-away {
    0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -48px) scale(1.1); }
}

@keyframes lucky-glow {
    from { box-shadow: 0 2px 0 #c2933a, 0 0 0 0 rgba(216,170,77,.18); }
    to { box-shadow: 0 2px 0 #c2933a, 0 0 0 5px rgba(216,170,77,.26); }
}

@media (max-width: 820px) {
    .game-shell { width: min(620px, calc(100% - 32px)); grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
    .game-floor { padding: 22px 22px 18px; }
    .workshop { padding: 20px; }
    .moonlight-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-footer { width: min(620px, calc(100% - 32px)); }
}

@media (max-width: 480px) {
    .topbar { min-height: 62px; flex-wrap: wrap; gap: 7px 12px; padding: 8px 15px; }
    .brand { font-size: 15px; }
    .brand-mark { width: 34px; height: 34px; font-size: 19px; }
    .top-nav { gap: 13px; }
    .top-nav > a { font-size: 11px; }
    .header-preferences { width: 100%; justify-content: flex-end; }
    .header-preferences .theme-toggle { min-width: 72px; }
    .game-shell { width: calc(100% - 20px); margin-block: 10px 18px; }
    .game-floor { padding: 19px 15px 14px; }
    .game-heading h1 { font-size: 33px; }
    .bear-stage { min-height: 355px; }
    .bear-stage:fullscreen,
    .bear-stage.is-fullscreen-fallback { padding: 18px; }
    .bear-stage:fullscreen .bear-button,
    .bear-stage.is-fullscreen-fallback .bear-button { width: min(58vh, 360px); height: min(58vh, 360px); }
    .workshop.is-fullscreen-workbench { width: min(360px, 88vw); }
    .bear-stage:fullscreen .fullscreen-workbench-toggle.is-open,
    .bear-stage.is-fullscreen-fallback .fullscreen-workbench-toggle.is-open { right: min(360px, 88vw); }
    .bear-button { top: 41px; width: min(72%, 220px); height: 255px; }
    .prop-shelf { top: 72px; left: 3%; transform: scale(.65); transform-origin: top left; }
    .prop-sewing-table { left: 1%; transform: scale(.65); transform-origin: bottom left; }
    .prop-pillows { left: 8%; transform: scale(.65); transform-origin: bottom left; }
    .prop-little-bears { right: 8%; transform: scale(.65); transform-origin: bottom right; }
    .prop-stuffing-machine { right: 1%; transform: scale(.65); transform-origin: bottom right; }
    .prop-lamps { right: 3%; transform: scale(.65); transform-origin: top right; }
    .prop-honey-oven, .prop-starry-loom { left: 1%; transform: scale(.65); transform-origin: left center; }
    .prop-quilt-stack, .prop-cuddle-carousel { right: 1%; transform: scale(.65); transform-origin: right center; }
    .prop-cloud-castle { transform: translateX(-50%) scale(.65); }
    .run-stats { gap: 7px; }
    .run-stat span { font-size: 9px; }
    .run-stat strong { font-size: 15px; }
    .workshop { padding: 18px 15px 14px; }
    .workshop-tabs { gap: 2px; padding: 3px; }
    .workshop-tab { min-height: 38px; padding: 5px 3px; font-size: 9px; line-height: 1.2; }
    .workshop-tab span { display: block; margin: 2px 0 0; font-size: 8px; }
    .workshop-tabs { gap: 2px; padding: 3px; }
    .workshop-tab { min-height: 38px; padding: 5px 3px; font-size: 9px; line-height: 1.2; }
    .workshop-tab span { display: block; margin: 2px 0 0; font-size: 8px; }
    .upgrade-button { grid-template-columns: 34px minmax(0, 1fr) max-content; gap: 8px; }
    .upgrade-icon { width: 34px; height: 34px; }
    .skill-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; padding-top: 0; }
    .skill-branches::before, .skill-branch::before { display: none; }
    .skill-branch { padding: 8px 6px 9px; border: 1px solid #e0d7c4; border-radius: 6px; background: rgba(245,239,223,.5); }
    .skill-branch h3 { min-height: 24px; }
    .skill-branch-path { gap: 9px; }
    .skill-node { min-height: 77px; }
    .moonlight-tree { grid-template-columns: 1fr; }
    .moonlight-tree { grid-template-columns: 1fr; }
    .skill-capstones { grid-template-columns: 1fr; }
    .skill-capstones .skill-node { min-height: 68px; grid-template-columns: 27px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; }
    .skill-capstones .skill-node-icon { grid-row: span 3; }
    .skill-capstones .skill-node-cost { margin-top: 0; }
    .achievement-list { gap: 4px; }
    .achievement-icon { width: 32px; height: 32px; }
    .dream-cradle { padding: 13px; }
    .dream-meter { grid-template-columns: 1fr; gap: 4px; }
    .dream-meter span { text-align: right; }
    .daily-button { min-width: 98px; }
    .game-footer { width: calc(100% - 24px); font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.stage-label { color: #496458; }
.hug-total { color: #213b32; }
.hug-total span { color: #496458; }
.click-hint { color: #63716a; }
.event-status { color: #e0bd79; }
.run-stat strong { color: #c3dec9; }
.milestone-line[data-category="daily"] { color: #c3dec9; }
.dream-cradle { border-color: #465044; background: #222b24; }
.dream-heading .eyebrow { color: #c69b78; }
.dream-heading h2, .dream-run-total strong { color: var(--ink); }
.wish-total { color: #e0bd79; }
.hat-reward-status, .dream-meter span { color: #c1ad8e; }
#dream-progress, #dream-progress::-webkit-progress-bar { background: #39443a; }
.restuff-button:disabled { border-color: #465044; color: #929e94; background: #2a332c; }
.workshop-tab[aria-selected="true"] { border-color: #6a735f; color: var(--ink); background: #344038; }
.workshop-tab[aria-selected="false"] { border-color: #786641; color: #f0cf88; background: #302d23; box-shadow: inset 0 0 0 1px rgba(240, 207, 136, .08); }
.workshop-tab[aria-selected="false"]:hover { border-color: #d3a85d; color: #ffe4a3; background: #403827; }
.purchase-controls button { border-color: #455148; color: var(--forest-soft); background: #252f29; }
.daily-gift { background: #2b3026; }
.daily-copy .eyebrow { color: #d3b18a; }
.daily-copy h3 { color: var(--ink); }
.daily-button:disabled { border-color: #465044; color: #929e94; background: #2a332c; }
.auto-hugger { border-color: #465044; background: #252e28; }
.auto-hugger-icon { border-color: #465044; background: #303a32; }
.auto-hugger.is-locked { border-style: dashed; border-color: #515954; background: #202522; opacity: .68; }
.auto-hugger.is-locked .auto-hugger-icon { border-color: #515954; background: #292e2b; filter: grayscale(1); }
.auto-hugger.is-locked h3 { color: #aab3ac; }
.auto-hugger h3, .upgrade-copy strong, .skill-node-name, .keepsake-heading h3 { color: var(--ink); }
.upgrade-milestone-summary, .skill-branch h3, .skill-capstones h3 { color: #c1ad8e; }
.upgrade-icon { border-color: #465044; color: var(--ink); background: #303a32; }
.upgrade-button:not(:disabled):hover .upgrade-icon { background: #3a493e; }
.skill-tree-root::after, .skill-branches::before, .skill-branch::before, .skill-node:not(:first-child)::before { border-color: #536052; }
.skill-node { border-color: #465044; color: var(--ink); background: #252e28; }
.skill-node:not(:disabled):hover { border-color: #82916f; background: #303d33; }
.skill-node.is-locked { color: #99a49b; background: #202722; }
.skill-node.is-owned { border-color: #64846c; background: #26372b; }
.skill-node-icon { border-color: #59614d; color: #e0bd79; background: #30382d; }
.skill-node-cost, .skill-node.is-owned .skill-node-cost { color: #a9d0ad; }
.skill-node.is-locked .skill-node-cost { color: #99a49b; }
.skill-tree-root > .skill-node, .skill-capstones .skill-node { border-color: #786641; background: #302d23; }
.skill-capstones { border-color: #465044; }
.skill-icon { color: var(--ink); }
.skill-branch { background: transparent; }
.skill-branch h3 span:first-child { color: #e0bd79; }
.achievement::after { color: #e9eee8; }
.achievement-icon { border-color: #465044; background: #303a32; }
.achievement.is-unlocked .achievement-icon { border-color: #786641; background: #3a3427; }
.achievement.is-unlocked .achievement-reward { color: #a9d0ad; }
.confirm-dialog { border-color: #465044; color: var(--ink); background: #1b2420; }
.dialog-content h2 { color: var(--ink); }
.dialog-content > strong { color: #e0bd79; }
.dialog-cancel { color: var(--ink); }
.game-footer { color: var(--forest-soft); }

@media (max-width: 480px) {
    .skill-branch { border-color: #465044; background: #202722; }
}
