/* The clearing belongs to the existing forest/ivory game, with native controls. */
.hb-dialog{--hb-ink:#233b31;--hb-soft:#56634e;--hb-gold:#ac8543;--hb-paper:#f4edda;--hb-edge:#c9bea0;width:min(1120px,calc(100vw - 32px));max-width:1120px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #cab88a;border-radius:22px;color:var(--hb-ink);background:var(--hb-paper);box-shadow:0 24px 100px #071b18a8;overflow:hidden;box-sizing:border-box;font-family:inherit}
.hb-dialog::backdrop{background:#071a17bd;backdrop-filter:blur(6px)}
.hb-dialog[open]{display:flex;flex-direction:column}.hb-dialog [hidden]{display:none!important}.hb-dialog button{font:inherit;cursor:pointer}.hb-dialog button:disabled{cursor:default;opacity:.55}.hb-dialog button:focus-visible,.hb-dialog summary:focus-visible{outline:3px solid #9a6c19;outline-offset:4px}
.hb-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px 16px;background:linear-gradient(110deg,#f8f3e5,#e8dfc7);border-bottom:1px solid var(--hb-edge);flex:none}.hb-eyebrow{font-size:11px;letter-spacing:.15em;color:#75603b;font-weight:700}.hb-header h2{font-family:Georgia,'Noto Serif TC',serif;font-size:29px;line-height:1.3;margin:5px 0 0;font-weight:600}.hb-close{width:44px;height:44px;flex-shrink:0;border:1px solid #bfb391;background:#f6f0df;border-radius:50%;color:var(--hb-ink);font-size:29px!important;line-height:1}
.hb-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 28px 30px}.hb-intro{font-size:15px;line-height:1.65;max-width:780px;margin-bottom:18px;color:var(--hb-soft)}.hb-access{padding:16px 20px;background:#e5eadb;border:1px solid #bdc8ac;border-radius:14px;margin:0 0 18px}.hb-access h3{margin:0 0 7px;font-size:19px}.hb-access p{line-height:1.6;margin:0 0 12px}
.hb-workspace{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:22px;align-items:start}.hb-garden-wrap{min-width:0;background:#244237;border:1px solid #516855;border-radius:18px;overflow:hidden;box-shadow:0 8px 22px #243a241c}.hb-garden-caption{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:13px 18px;color:#f1e3b9;font-size:12px;line-height:1.5;background:#1e352e}.hb-garden-caption span:last-child{font-variant-numeric:tabular-nums;color:#c8d3b2;white-space:nowrap}.hb-garden{position:relative;aspect-ratio:1000/620;isolation:isolate;min-width:0}.hb-clearing-art{display:block;width:100%;height:100%}.hb-plots{position:absolute;inset:0}.hb-plot{position:absolute;width:12%;height:14%;transform:translate(-50%,-50%);border:0;border-radius:20px;padding:0;background:transparent;color:#e9e0bd;isolation:isolate;min-width:44px;min-height:44px;z-index:1}.hb-plot .hb-item-art{position:absolute;display:block;left:50%;bottom:50%;width:133.333333%;height:auto;transform:translate(-50%,16.129032%);overflow:visible;pointer-events:none;filter:drop-shadow(0 4px 5px #19312325)}.hb-plot-ring{position:absolute;left:0;right:0;height:50%;bottom:25%;border:1px dashed #f6e9b56e;border-radius:50%;transform:rotate(-2deg);background:#d4de9d0c;z-index:-1}.hb-plot.is-selected .hb-plot-ring{background:#f2dca647;border:3px solid #f7dc8e;box-shadow:0 0 15px #f3d99155}.hb-plot.is-target .hb-plot-ring{background:#dfecc844;border:2px dashed #e2edbb}.hb-empty-mark{display:block;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);color:#fff2c0;font-size:29px;text-shadow:0 1px 4px #293e26;opacity:.6}.hb-plot-label{position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);background:#102b25ed;padding:4px 7px;border:1px solid #829371;border-radius:6px;color:#fff2d4;font-size:10px;white-space:nowrap;opacity:0;pointer-events:none}.hb-plot:hover,.hb-plot:focus-visible,.hb-plot.is-selected{z-index:3}.hb-plot:hover .hb-plot-label,.hb-plot:focus-visible .hb-plot-label,.hb-plot.is-selected .hb-plot-label{opacity:1}.hb-plot:disabled{opacity:1!important}.hb-plot:focus-visible{outline:0!important}.hb-plot:focus-visible .hb-plot-ring{outline:3px solid #fff5cf;outline-offset:4px}
.hb-plot-tools{min-height:68px;padding:12px 16px;display:flex;gap:14px;align-items:center;justify-content:space-between;color:#efe3c4;background:#1e352e;font-size:14px}.hb-plot-tools small{display:block;color:#b5c7a5;margin-top:3px;font-size:11px}.hb-plot-tools>div{display:flex;gap:7px;flex-wrap:wrap}.hb-plot-tools .hb-button{min-height:39px;padding:8px 12px;font-size:12px;background:#304b3e;color:#fff1ce;border-color:#72805c}
.hb-guide{padding:18px 0}.hb-guide .hb-eyebrow{font-size:12px;letter-spacing:.04em}.hb-guide p{font-size:14px;line-height:1.6;margin:10px 0}.hb-guide .hb-item-art{width:110px;height:122px;display:block;margin:0 auto}.hb-guide #hb-view-note{color:var(--hb-soft);font-size:12px}.hb-fair-play{color:#6c644d;border-top:1px solid #c6bda1;padding-top:12px;font-size:12px!important}.hb-scene-preview{margin-top:18px}.hb-scene-preview h3{font-size:14px;font-weight:600;margin:0 0 8px}.hb-dialog #home-base-stage{min-width:0}.hb-dialog #home-base-stage #campaign-view-controls.world-mode-controls{position:static;margin:0 0 10px;flex-wrap:wrap}.hb-dialog #home-base-stage iframe{width:100%;height:100%;min-height:280px;border:0}.hb-dialog #campaign-diorama{position:relative;width:100%;height:360px;min-height:280px;max-height:50dvh;margin:0;border-radius:16px;overflow:hidden}.hb-dialog #campaign-diorama[hidden]{display:none}.hb-dialog #home-base-stage #campaign-view-controls.world-mode-controls{position:static}
.hb-collection{margin-top:28px;border-top:1px solid var(--hb-edge);padding-top:23px}.hb-collection-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:16px}.hb-collection h3{margin:0 0 5px;font-family:Georgia,'Noto Serif TC',serif;font-size:24px;font-weight:600}.hb-collection-heading p{font-size:13px;line-height:1.6;max-width:600px;color:var(--hb-soft);margin:0}.hb-shop-button{flex-shrink:0}.hb-inventory{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.hb-inventory-item{min-width:0;display:flex;flex-direction:column;align-items:stretch;padding:12px 9px 11px;border:1px solid #cfbf98;border-radius:13px;background:linear-gradient(150deg,#f9f3e4,#e6ddc3);color:var(--hb-ink);text-align:left;position:relative;box-shadow:0 2px 4px #273e2110}.hb-inventory-item .hb-item-art{width:100%;height:108px;flex-shrink:0;display:block}.hb-inventory-item.is-selected{border:2px solid #617842;padding:11px 8px 10px;background:linear-gradient(150deg,#edf4db,#d7dfbd);box-shadow:0 0 0 2px #85965b30}.hb-inventory-item:hover{border-color:#7a8552;background:#f7f2de}.hb-item-copy strong{display:block;font-size:12px;line-height:1.4;min-height:34px;font-weight:650}.hb-item-copy small{display:block;font-size:10px;line-height:1.4;color:#657348;margin-top:5px}.hb-inventory-item.is-locked .hb-item-copy small{color:#795a21}.hb-inventory-item.is-locked{background:linear-gradient(150deg,#efe9db,#e2d9c4)}
.hb-button{min-height:44px;padding:10px 16px;border-radius:10px;border:1px solid #a99a76;background:#f5efdc;color:#2b4436;font-weight:600;line-height:1.35}.hb-button:hover:not(:disabled){background:#e5e3cb;border-color:#747d56}.hb-primary{background:#284c3d!important;color:#fff9e8!important;border-color:#1d4133!important;box-shadow:0 3px 8px #18332626}.hb-primary:hover:not(:disabled){background:#37604a!important}.hb-footer{display:flex;gap:16px;align-items:center;padding:14px 28px;background:#e9e2cc;border-top:1px solid var(--hb-edge);flex:none}.hb-footer>span{flex:1;font-size:12px;line-height:1.45;color:#5d604a}.hb-status,.hb-decision{padding:12px 28px;border-top:1px solid #b5bfa3;background:#e1e7d3;flex:none;line-height:1.5;font-size:13px}.hb-status p,.hb-decision p{margin:0 0 7px}.hb-status p:last-child{margin-bottom:0}.hb-decision{background:#f1dfb3;border-color:#c5aa6e}.hb-decision .hb-button{margin:6px 8px 0 0}.hb-decision strong{display:block}
.hb-home-entry{display:flex!important;align-items:center;gap:10px;border:1px solid #e6d69d55;border-radius:12px;padding:8px 13px;background:#183a2a99;color:#fff3d4;min-height:48px;text-align:left;cursor:pointer}.hb-home-entry .hb-item-art{width:38px;height:42px;flex:none}.hb-home-entry strong{display:block;font-size:13px;font-weight:600}.hb-home-entry small{display:block;font-size:10px;line-height:1.45;color:#e0dab9;margin-top:3px}.hb-home-entry:focus-visible{outline:3px solid #eed8a2;outline-offset:4px}
.ph-decoration-art{width:100%;height:100%;min-height:150px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 75%,#bbbd8b,#52694f 80%);border-radius:inherit}.ph-decoration-art .hb-item-art{width:78%;height:88%;max-height:340px}.ph-card-art.ph-decoration-art .hb-item-art{max-height:145px}.ph-home-entry{display:flex;align-items:center;gap:15px;padding:18px 20px;background:#e1e6cf;border:1px solid #b7bea0;border-radius:16px;margin:18px 0}.ph-home-entry>.hb-item-art{width:62px;height:75px;flex:none}.ph-home-entry>div{flex:1}.ph-home-entry h3{margin:0 0 5px}.ph-home-entry p{margin:0;font-size:13px;line-height:1.6}.ph-decoration-preview .ph-scene-fallback{opacity:1!important;visibility:visible!important}.ph-decoration-preview .ph-scene-toolbar,.ph-decoration-preview .ph-scene-feedback{display:none!important}
.ph-market-filters{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
@media(max-width:800px){.hb-workspace{grid-template-columns:minmax(0,1fr)}.hb-guide{display:grid;grid-template-columns:1fr auto;column-gap:15px;padding:0}.hb-guide #hb-selected-art{grid-row:1/5;grid-column:2}.hb-guide .hb-item-art{width:82px;height:95px}.hb-guide p{margin:4px 0}.hb-guide #hb-fair-play{display:none}.hb-inventory{grid-template-columns:repeat(4,minmax(0,1fr))}.hb-collection-heading{align-items:flex-start}.hb-collection-heading .hb-button{font-size:12px;max-width:150px}.hb-scene-preview{margin-top:15px}}
@media(max-width:520px){.hb-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:15px}.hb-header{padding:15px 16px 12px}.hb-header h2{font-size:24px}.hb-scroll{padding:14px 12px 20px;scrollbar-gutter:auto}.hb-intro{font-size:13px;margin-bottom:13px}.hb-garden-caption{padding:10px;font-size:10px;gap:5px}.hb-garden-wrap{border-radius:12px}.hb-plot-tools{padding:10px;flex-wrap:wrap;gap:8px;font-size:12px}.hb-plot-tools>div{margin-left:auto}.hb-plot-tools .hb-button{min-height:44px}.hb-plot-label{font-size:8px;bottom:-11px}.hb-inventory{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hb-inventory-item .hb-item-art{height:90px}.hb-item-copy strong{font-size:11px}.hb-item-copy small{font-size:10px}.hb-collection h3{font-size:21px}.hb-collection-heading{gap:10px;flex-wrap:wrap}.hb-collection-heading p{font-size:12px}.hb-collection-heading .hb-button{max-width:none}.hb-footer{padding:11px 12px;gap:10px}.hb-footer>span{font-size:10px}.hb-footer .hb-button{font-size:12px;padding:10px 12px}.hb-status,.hb-decision{padding:11px 14px;font-size:12px}.hb-dialog #campaign-diorama{height:290px;max-height:55dvh}.ph-home-entry{flex-wrap:wrap;padding:14px}.ph-home-entry .ph-button{width:100%}.hb-home-entry{min-width:0}}
@media(prefers-reduced-motion:reduce){.hb-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* The game's explicit Less motion choice is independent of the device's
   media preference. Also stop CSS pseudo-element animation immediately. */
html[data-motion="reduced"] .hb-dialog,
html[data-motion="reduced"] .hb-dialog *,
html[data-motion="reduced"] .hb-dialog *::before,
html[data-motion="reduced"] .hb-dialog *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

@media(forced-colors:active){.hb-plot-ring{border:2px solid ButtonText}.hb-plot.is-selected .hb-plot-ring,.hb-inventory-item.is-selected{outline:3px solid Highlight}.hb-empty-mark{color:ButtonText}.hb-plot-label{background:Canvas;color:CanvasText}.hb-primary{forced-color-adjust:auto}.hb-inventory-item,.hb-button{border:1px solid ButtonText}}

/* One placement mode: choose a destination or cancel, never edit another prop. */
.hb-plot-tools{flex-wrap:wrap}
.hb-plot-tools>span{flex:1 1 160px;min-width:0;overflow-wrap:anywhere}
.hb-plot-tools>div{max-width:100%}
.hb-plot-tools .hb-button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.hb-placement-summary strong{display:block;color:#fff1ce;font-size:14px;line-height:1.45}
.hb-placement-summary small{line-height:1.6}
.hb-picking .hb-plot-tools{border-top:2px solid #d9bd7a}
.hb-picking .hb-plot.is-source .hb-plot-ring{border:2px dotted #f4d393;background:#e3cb8e26}
.hb-picking .hb-plot.is-target .hb-empty-mark{opacity:1}
.hb-picking .hb-plot.is-target:focus-visible .hb-plot-ring{background:#e1edab66}
html[data-text-size="large"] .hb-dialog :is(.hb-plot-tools,.hb-plot-tools .hb-button,.hb-placement-summary strong){font-size:1rem}
html[data-text-size="large"] .hb-dialog .hb-plot-tools small{font-size:.875rem}
html[data-contrast="high"] .hb-dialog .hb-plot-tools{background:#10271f;color:#fff5dd}
html[data-contrast="high"] .hb-dialog .hb-plot-tools :is(small,strong){color:#fff5dd}
@media(forced-colors:active){.hb-picking .hb-plot-tools{border-top-color:Highlight}.hb-picking .hb-plot.is-source .hb-plot-ring{border-color:Highlight}.hb-placement-summary strong,.hb-plot-tools small{color:CanvasText}}

.hb-plot-tools .hb-button:hover:not(:disabled){background:#3a5a47;color:#fff1ce;border-color:#a8b683}

/* Woodland atelier: scenery first, one contextual dock, a real-object shelf. */
.hb-dialog{--hb-ink:#243f35;--hb-soft:#53634f;--hb-edge:#cdc4a9;--hb-paper:#f4efdf;width:min(1160px,calc(100vw - 32px));max-width:1160px;border-color:#a69c70;border-radius:20px;background:radial-gradient(ellipse at 12% 15%,#fffbed 0,transparent 60%),var(--hb-paper);box-shadow:0 36px 120px #061c17b3,0 0 0 5px #b8aa7812}
.hb-header{padding:19px 26px;background:linear-gradient(115deg,#163a31,#294d3e);border-bottom:1px solid #b7a371;color:#fff6df}
.hb-header>div{position:relative;padding-left:58px;min-width:0}
.hb-header>div::before{content:'✦';display:grid;place-items:center;position:absolute;left:0;top:50%;transform:translateY(-50%) rotate(-10deg);width:42px;height:48px;border:1px solid #c3ac6b;border-radius:45% 45% 40% 40%;color:#e6cf8f;font-size:28px;background:#f0d89a0b;box-shadow:inset 0 0 0 4px #193a31,inset 0 0 0 5px #b5a26e66}
.hb-header .hb-eyebrow{color:#d9c48b;font-size:.65rem;letter-spacing:.16em}
.hb-header h2{font-size:1.8rem;font-weight:500;letter-spacing:-.025em;line-height:1.22;color:#fff5dd;margin-top:4px}
.hb-close{color:#f3e8c6;background:#e1d7af09;border-color:#b7bc9466;border-radius:50%;width:44px;height:44px}
.hb-close:hover{background:#f1e0b922}
.hb-scroll{padding:17px 22px 22px;scroll-padding-block:12px}
.hb-intro{font-family:Georgia,'Noto Serif TC',serif;font-size:1rem;color:#64715a;margin:0 0 15px;line-height:1.45;font-style:italic}
.hb-columns{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:23px;align-items:start}
.hb-main,.hb-workspace{min-width:0}
.hb-workspace{display:block;position:relative}
.hb-garden-wrap{border:1px solid #58715a;border-radius:13px;box-shadow:0 10px 28px #16392b19,0 0 0 4px #ddd8bd55}
.hb-garden-caption{padding:11px 15px;font-size:.7rem;letter-spacing:.015em;color:#f2e3b9;background:#1b3b30;gap:8px}
#hb-layout-status{display:flex;align-items:center;gap:7px}
#hb-layout-status::before{content:'';width:6px;height:6px;border-radius:50%;background:#c5d5a0;box-shadow:0 0 0 3px #b4c58e13;flex:none}
.hb-dirty #hb-layout-status::before{background:#f0c778}
.hb-garden-caption span:last-child{color:#d0d9b7;font-size:inherit}
.hb-garden{background:#254a3c;overflow:hidden}
.hb-plot .hb-item-art{filter:drop-shadow(1px 5px 3px #122f2230)}
.hb-plot-ring{border:1px dashed #f4e9bc99;background:#344e2c0d;opacity:.6}
.hb-plot.is-occupied .hb-plot-ring{opacity:.2}
.hb-plot.is-selected .hb-plot-ring{border:2px solid #f9e3a2;background:#ead9a92b;box-shadow:0 0 0 3px #f1df9f13,0 0 15px #ffe5a22b;opacity:1}
.hb-plot.is-target .hb-plot-ring{border:2px dashed #fff2b8;background:#e9efb64d;opacity:1}
.hb-plot.is-source .hb-plot-ring{border-color:#f0cc80;opacity:1}
.hb-empty-mark{font-size:22px;font-weight:300;opacity:.72;color:#fff8d8;text-shadow:0 1px 3px #253a22}
.hb-plot:not(.is-occupied):hover .hb-plot-ring{opacity:1;background:#faf0c44d}
.hb-plot-label{font-size:.65rem;border-radius:4px;border-color:#c9c392;color:#fff5d9;background:#15362cf5;box-shadow:0 2px 8px #15372b3d;padding:4px 6px}
.hb-plot-tools{min-height:94px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;border-top:1px solid #c0b87955;background:linear-gradient(110deg,#193a2e,#244637);color:#fff4d5;font-size:.85rem}
.hb-plot-tools>span{flex:1 1 150px;min-width:0;line-height:1.5}
.hb-plot-tools small{font-size:.7rem;color:#d1d9b9;line-height:1.5;margin-top:3px}
.hb-plot-tools>div{display:flex;flex-wrap:wrap;gap:7px;margin-left:auto}
.hb-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:7px;font-size:.8rem;line-height:1.4;padding:9px 12px;white-space:normal}
.hb-plot-tools .hb-button{min-height:44px;font-size:.73rem;padding:9px 10px;border-color:#819375;color:#fff5d8;background:#375641}
.hb-plot-tools .hb-button:hover:not(:disabled){background:#47664e;color:#fff9e6;border-color:#c2c99f}
.hb-action-icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hb-guide{position:absolute!important;display:block!important;width:1px;height:1px;padding:0!important;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hb-scene-preview{margin:14px 0 0}
/* Never hide the live stage or its switch: only suppress the genuinely empty shell. */
@supports selector(:has(*)){
  .hb-scene-preview:has(#home-base-stage:empty){display:none}
  .hb-scene-preview:not(:has(#campaign-diorama iframe))>h3{display:none}
}
.hb-scene-preview h3{font-size:.8rem;color:#475c4a}
.hb-dialog #home-base-stage #campaign-view-controls.world-mode-controls{gap:10px;padding:11px 12px;border:1px solid #c7c2a7;border-radius:8px;background:#ebe8d7;box-shadow:none}
.hb-dialog #home-base-stage #campaign-view-controls button{min-height:44px}
.hb-collection{margin:0;padding:0 0 0 18px;border-top:0;border-left:1px solid #d4cdb3;min-width:0}
.hb-collection-heading{display:block;margin-bottom:12px}
.hb-collection h3{font-size:1.25rem;font-weight:500;letter-spacing:-.02em;line-height:1.3;margin-bottom:6px}
.hb-collection-heading p{font-size:.74rem;line-height:1.6;color:#566650;max-width:270px}
.hb-shop-button{margin-top:10px;padding:8px 12px;font-size:.75rem;color:#36543c;border-color:#b4ad8a;background:#ebe8d6}
.hb-shop-button::after{content:'↗';font-size:1rem;line-height:1;margin-left:3px}
.hb-inventory{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 5px;align-items:stretch}
.hb-inventory-item{padding:6px 4px 11px;border:1px solid transparent;border-bottom-color:#d0c6a5;border-radius:6px 6px 2px 2px;background:radial-gradient(ellipse at 50% 42%,#fff9e6 0,transparent 68%);box-shadow:0 3px 0 #d7ceb049;text-align:center;transition:background-color .15s,border-color .15s}
.hb-inventory-item .hb-item-art{height:96px;max-width:120px;margin:0 auto;filter:drop-shadow(0 3px 2px #7a735010)}
.hb-inventory-item.is-locked{background:radial-gradient(ellipse at 50% 40%,#eee5c9 0,transparent 70%)}
.hb-inventory-item.is-selected{padding:6px 4px 11px;border:1px solid #778b56;background:#e4e9cc;box-shadow:0 3px 0 #7c8b55}
.hb-inventory-item:hover:not(:disabled){border-color:#a0a57b;background:#e8ebd5}
.hb-item-copy{display:flex;flex-direction:column;flex:1;align-items:center}
.hb-item-copy strong{font-size:.71rem;line-height:1.4;min-height:2.8em;display:block;font-weight:600;overflow-wrap:anywhere}
.hb-item-copy small{font-size:.64rem;line-height:1.4;color:#4f653d;margin-top:4px}
.hb-inventory-item.is-locked .hb-item-copy small{color:#76521e}
.hb-market-tag{display:block;font-size:.56rem;letter-spacing:.035em;line-height:1.4;margin:-4px 0 4px;color:#73654b}
.hb-fair-play{margin:14px 0 0;padding:10px 0 0;border-top:1px solid #d5ccb2;font-size:.66rem!important;line-height:1.6;color:#5e674e}
.hb-footer{padding:13px 23px;gap:13px;background:#eee9d7;border-color:#cbc1a1;box-shadow:0 -5px 20px #344a2010}
.hb-footer>span{font-size:.72rem;color:#53624a;line-height:1.45}
.hb-footer .hb-primary{padding-inline:23px;min-width:130px;background:#244c37!important;box-shadow:0 3px 0 #163a29}
.hb-footer .hb-primary:hover:not(:disabled){background:#356044!important}
.hb-footer .hb-primary:disabled{box-shadow:none;opacity:.55}
.hb-status,.hb-decision{font-size:.8rem;padding:11px 22px;max-height:34dvh;overflow-y:auto;flex-shrink:0}
.ph-decoration-art{background:radial-gradient(ellipse at 48% 64%,#d1c99d,#7d936e 60%,#355c47);box-shadow:inset 0 0 35px #294d3426}
@media(max-width:920px){
 .hb-columns{grid-template-columns:minmax(0,1fr)}
 .hb-collection{padding:20px 0 0;margin-top:1px;border-left:0;border-top:1px solid #d0c6aa}
 .hb-collection-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
 .hb-collection-heading p{max-width:none}
 .hb-shop-button{margin:0;flex:none}
 .hb-inventory{grid-template-columns:repeat(6,minmax(0,1fr))}
 .hb-item-copy strong{font-size:.77rem}
 .hb-market-tag{font-size:.62rem}
}
@media(max-width:520px){
 .hb-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:13px}
 .hb-header{padding:14px 14px 14px 16px}
 .hb-header>div{padding-left:44px}
 .hb-header>div::before{width:31px;height:39px;font-size:22px}
 .hb-header h2{font-size:1.44rem}
 .hb-header .hb-eyebrow{font-size:.54rem;letter-spacing:.12em}
 .hb-scroll{padding:12px 12px 18px}
 .hb-intro{font-size:.82rem;margin-bottom:12px}
 .hb-columns{gap:17px}
 .hb-garden-wrap{border-radius:9px;box-shadow:0 5px 15px #16392b17,0 0 0 3px #ddd8bd44}
 .hb-garden-caption{padding:9px 10px;font-size:.62rem}
 .hb-plot-label{font-size:.57rem;bottom:-13px}
 .hb-plot-tools{padding:11px 10px;min-height:88px;font-size:.77rem;gap:9px}
 .hb-plot-tools>span{flex-basis:140px}
 .hb-plot-tools small{font-size:.66rem}
 .hb-plot-tools .hb-button{font-size:.68rem;padding:8px;gap:4px}
 .hb-action-icon{width:14px;height:14px}
 .hb-collection{padding-top:16px}
 .hb-collection-heading{gap:10px;flex-wrap:wrap;align-items:center}
 .hb-collection-heading>div{flex:1 1 170px}
 .hb-collection h3{font-size:1.2rem}
 .hb-collection-heading p{font-size:.7rem}
 .hb-collection-heading .hb-button{font-size:.68rem;padding-inline:9px;max-width:none}
 .hb-inventory{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 7px}
 .hb-inventory-item .hb-item-art{height:95px}
 .hb-item-copy strong{font-size:.73rem}
 .hb-item-copy small{font-size:.64rem}
 .hb-market-tag{font-size:.58rem}
 .hb-footer{padding:11px 12px max(11px,env(safe-area-inset-bottom));gap:10px}
 .hb-footer>span{font-size:.66rem}
 .hb-footer .hb-button{font-size:.73rem;padding:9px 12px}
 .hb-footer .hb-primary{min-width:110px}
 .hb-status,.hb-decision{padding:10px 13px;font-size:.73rem}
}
html[data-text-size="large"] .hb-dialog :is(.hb-collection-heading p,.hb-item-copy strong,.hb-item-copy small,.hb-market-tag,.hb-fair-play,.hb-footer>span,.hb-garden-caption){font-size:.875rem!important}
html[data-text-size="large"] .hb-dialog .hb-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-text-size="large"] .hb-dialog .hb-garden-caption{flex-wrap:wrap}
html[data-contrast="high"] .hb-dialog{--hb-ink:#10291c;--hb-soft:#243b23;--hb-edge:#69714e}
html[data-contrast="high"] .hb-dialog :is(.hb-item-copy small,.hb-market-tag,.hb-fair-play,.hb-collection-heading p,.hb-footer>span,.hb-intro){color:#263d27}
html[data-contrast="high"] .hb-dialog .hb-inventory-item{border-color:#75815a;background:#f9f5e5}
html[data-contrast="high"] .hb-dialog .hb-plot-ring{opacity:1;border-color:#fff6cf;border-width:2px}
@media(prefers-reduced-motion:reduce){.hb-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){
 .hb-dialog,.hb-header,.hb-footer,.hb-plot-tools,.hb-inventory-item{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}
 .hb-header h2,.hb-header .hb-eyebrow,.hb-close,.hb-plot-tools small,.hb-market-tag,.hb-item-copy small,.hb-intro{color:CanvasText}
 .hb-plot .hb-plot-ring{opacity:1;background:Canvas;border:2px solid ButtonText}
 .hb-plot.is-selected .hb-plot-ring,.hb-plot.is-target .hb-plot-ring{outline:2px solid Highlight;outline-offset:2px}
 .hb-plot-label{background:Canvas;color:CanvasText;border-color:CanvasText}
 .hb-empty-mark{color:ButtonText;text-shadow:none}
 .hb-action-icon{stroke:ButtonText}
 .hb-button,.hb-plot-tools .hb-button{color:ButtonText!important;background:ButtonFace!important;border-color:ButtonText!important}
 .hb-button:focus-visible{outline-color:Highlight}
}

/* Preview the actual owned object; the overlay never intercepts a plot tap. */
.hb-ghost{position:absolute;z-index:4;width:12%;height:14%;min-width:44px;min-height:44px;transform:translate(-50%,-50%);pointer-events:none}
.hb-ghost>.hb-item-art{position:absolute;left:50%;bottom:50%;width:133.333333%;height:auto;transform:translate(-50%,16.129032%);overflow:visible;opacity:.66;filter:drop-shadow(0 0 4px #ffecb8)}
.hb-ghost::before{content:'';position:absolute;inset:25% 0;border:2px solid #fff0ba;border-radius:50%;box-shadow:0 0 0 4px #f7e7ac22;background:#ffeec530}
.hb-ghost-caption{position:absolute;top:80%;left:50%;transform:translateX(-50%);padding:3px 7px;border:1px solid #d7c78e;border-radius:5px;background:#193c31;color:#fff4cf;font-size:11px;line-height:1.4;white-space:nowrap}
.hb-picking .hb-plot.is-source>.hb-item-art{opacity:.55}
.hb-picking .hb-plot.is-target .hb-plot-label{opacity:0}
.hb-plot-label{max-width:150px;white-space:normal;text-align:center;line-height:1.25;width:max-content}
.hb-plot-tools>.hb-dock-art{display:grid;place-items:center;flex:0 0 48px;width:48px;height:56px;background:radial-gradient(ellipse,#c1ce9633,transparent 75%);align-self:center}
.hb-dock-art>.hb-item-art{display:block;width:48px;height:56px}
.hb-plot-tools>span:not(.hb-dock-art){font-size:14px;line-height:1.5}
.hb-plot-tools small{font-size:12px}
.hb-plot-tools .hb-button{font-size:13px}
.hb-action-icon{width:17px;height:17px}
.hb-item-copy strong{font-size:13px;font-weight:600;line-height:1.4;min-height:2.8em}
.hb-item-copy small{font-size:11px;line-height:1.5}
.hb-market-tag{font-size:10px;letter-spacing:0;color:#655835;background:#e9dfbf;padding:2px 5px;border-radius:4px;margin:0 0 4px}
.hb-collection-heading p{font-size:13px}
.hb-shelf-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 0}
.hb-shelf-navigation>.hb-button{width:44px;min-width:44px;padding:0;font-size:21px;background:#f3eedc;color:#284a36}
#hb-shelf-hint{font-size:12px;line-height:1.4;text-align:center;color:#55634b}
.hb-shelf-navigation>.hb-button:disabled{opacity:.35}
.hb-footer>span{font-size:12px}
@media(min-width:921px){.hb-shelf-navigation{display:none}}
@media(max-width:920px){
 .hb-inventory{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(124px,27%);gap:12px;overflow-x:auto;padding:5px 4px 10px;scroll-padding-inline:4px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#98a17b #e7e3ce;align-items:stretch}
 .hb-inventory-item{scroll-snap-align:start;scroll-margin-inline:4px;min-height:164px;padding:8px 7px 12px;background:radial-gradient(ellipse at 50% 36%,#fff9e6,transparent 70%);border-bottom:2px solid #c7bd9e}
 .hb-inventory-item.is-selected{padding:8px 7px 12px}
 .hb-inventory-item .hb-item-art{height:96px}
 .hb-collection-heading .hb-button{font-size:13px}
 .hb-collection-heading p{font-size:13px}
 .hb-collection{padding-top:16px}
 .hb-fair-play{margin-top:10px;font-size:12px!important}
 html[data-text-size="large"] .hb-dialog .hb-inventory{grid-template-columns:none;grid-auto-columns:minmax(175px,48%)}
}
@media(max-width:520px){
 .hb-header .hb-eyebrow{font-size:10px;letter-spacing:.09em}
 .hb-intro{font-size:14px}
 .hb-garden-caption{font-size:11px;flex-wrap:wrap}
 .hb-plot-tools{gap:8px;padding:11px 12px}
 .hb-plot-tools>.hb-dock-art{flex-basis:42px;width:42px}
 .hb-plot-tools>span:not(.hb-dock-art){flex:1 1 160px;font-size:14px}
 .hb-plot-tools>div{flex:1 0 100%;margin:0;justify-content:flex-end}
 .hb-plot-tools .hb-button{flex:1;min-width:0;font-size:13px;padding:9px 7px}
 .hb-placement-summary strong{font-size:14px}
 .hb-plot-tools small{font-size:12px}
 .hb-collection-heading>div{flex:1 1 150px}
 .hb-collection-heading p{font-size:12px}
 .hb-collection-heading .hb-button{font-size:12px;padding-inline:10px}
 .hb-inventory{grid-auto-columns:minmax(124px,36%)}
 .hb-item-copy strong{font-size:13px}
 .hb-item-copy small{font-size:12px}
 .hb-market-tag{font-size:10px}
 .hb-footer .hb-button{font-size:13px}
 .hb-footer>span{font-size:12px}
 .hb-plot-label{font-size:10px;max-width:100px}
}
@media(forced-colors:active){
 .hb-ghost::before{border-color:Highlight;outline:2px dashed Highlight;background:transparent;box-shadow:none}
 .hb-ghost-caption,.hb-market-tag{background:Canvas;color:CanvasText;border:1px solid CanvasText}
 .hb-ghost>.hb-item-art{filter:none;opacity:.8}
 #hb-shelf-hint{color:CanvasText}
 .hb-shelf-navigation>.hb-button:disabled{opacity:1;color:GrayText!important}
}

.hb-plot.is-selected:not(:hover):not(:focus-visible) .hb-plot-label{opacity:0}
.hb-picking .hb-plot.is-source .hb-plot-label{opacity:0}
@media(max-width:520px){
 .hb-intro{display:none}
 .hb-collection-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center}
 .hb-collection-heading>div{display:contents}
 .hb-collection-heading h3{grid-column:1;grid-row:1;margin:0}
 .hb-collection-heading p{grid-column:1/-1;grid-row:2;max-width:none}
 .hb-collection-heading .hb-shop-button{grid-column:2;grid-row:1}
}

/* A single departure choice, not a second modal or an implicit save. */
.hb-leave{background:#eee9d5;border-top:1px solid #b9b895;max-height:48dvh;padding:17px 22px;color:#284532}
.hb-leave-summary{display:flex;gap:15px;align-items:center;max-width:760px;margin:0 auto 12px}
.hb-leave-art{display:block;flex:0 0 48px;width:48px;height:62px}
.hb-leave-art>.hb-item-art{width:100%;height:100%}
.hb-leave-summary>div{min-width:0;flex:1}
.hb-leave strong{font-family:Georgia,'Noto Serif TC',serif;font-size:19px;font-weight:600;line-height:1.35}
.hb-leave p{margin:5px 0 0;font-size:13px;line-height:1.55}
.hb-leave-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:760px;margin:auto}
.hb-leave-actions .hb-button{margin:0;min-height:44px;font-size:13px;flex:1 1 155px}
.hb-leave [data-hb-action="save-leave"]{background:#244c37;color:#fff9e8;border-color:#1d4133;font-weight:650}
.hb-leave [data-hb-action="save-leave"]:hover:not(:disabled){background:#356044}
.hb-leave :is([data-hb-action="discard"],[data-hb-action="leave-pending"]){background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:3px;font-weight:400}
.hb-leave :is([data-hb-action="discard"],[data-hb-action="leave-pending"]):hover{background:#e3dfc7;border-color:#b4ac88}
@media(max-width:520px){
 .hb-leave{padding:14px 13px max(14px,env(safe-area-inset-bottom));max-height:55dvh}
 .hb-leave-summary{gap:10px;margin-bottom:12px;align-items:flex-start}
 .hb-leave-art{flex-basis:34px;width:34px;height:48px}
 .hb-leave strong{font-size:18px}
 .hb-leave-actions .hb-button{flex:1 1 110px}
 .hb-leave-actions [data-hb-action="save-leave"]{flex-basis:100%}
}
html[data-text-size="large"] .hb-leave :is(p,.hb-button){font-size:1rem}
html[data-contrast="high"] .hb-leave{background:#f9f5e5;color:#10291c;border-color:#69714e}
@media(forced-colors:active){
 .hb-leave{background:Canvas;color:CanvasText;border-color:CanvasText}
 .hb-leave .hb-button{background:ButtonFace!important;color:ButtonText!important;border:1px solid ButtonText}
 .hb-leave .hb-button:disabled{color:GrayText!important;opacity:1}
}

/* The facing dial remains readable without changing painted prop bodies. */
@media(forced-colors:active){
 .hb-facing-dial ellipse{fill:Canvas;stroke:CanvasText}
 .hb-facing-dial .hb-facing-arrow{fill:Highlight;stroke:Highlight}
 .hb-facing-dial circle,.hb-facing-dial>path:not(.hb-facing-arrow){fill:CanvasText;stroke:CanvasText}
}

/* Touch already shows the object name in the contextual dock. A sticky tap
   tooltip must not cover the hand-painted clearing or neighbouring plots. */
@media(hover:none) and (pointer:coarse){
 .hb-dialog .hb-plot .hb-plot-label,
 .hb-dialog .hb-plot:hover .hb-plot-label,
 .hb-dialog .hb-plot.is-selected .hb-plot-label{opacity:0}
 .hb-dialog .hb-plot:focus-visible .hb-plot-label{opacity:1}
}


/* A clean, deliberately selected showcase of the player's actual layout.
   The canonical plot buttons remain mounted; nothing is saved automatically. */
.hb-garden-caption{flex-wrap:wrap;column-gap:10px;row-gap:6px}
#hb-count{margin-left:auto}
.hb-view-toggle{flex:0 0 auto;min-height:44px;padding:8px 13px;border:1px solid #c5b9887d;border-radius:7px;background:#34594a;color:#fff7dd;font-size:12px;line-height:1.35;font-weight:650;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff18}
.hb-view-toggle:hover:not(:disabled){background:#49745c;border-color:#ded3a0}
.hb-view-toggle[aria-pressed="true"]{background:#f2e1b2;color:#1c4934;border-color:#f5d98f}
.hb-viewing .hb-columns{grid-template-columns:minmax(0,1fr)}
.hb-viewing .hb-main{max-width:900px;width:100%;margin-inline:auto}
.hb-viewing .hb-collection,.hb-viewing .hb-plot-tools{display:none!important}
.hb-viewing .hb-garden-wrap{box-shadow:0 15px 40px #152f292e,0 0 0 4px #ddd8bd55}
.hb-viewing .hb-plots{pointer-events:none}
.hb-viewing .hb-plot{pointer-events:none}
.hb-viewing :is(.hb-plot-ring,.hb-empty-mark,.hb-plot-label,.hb-facing-dial){display:none!important}
.hb-viewing #hb-ghost{display:none!important}
@media(max-width:520px){.hb-view-toggle{font-size:12px;padding-inline:10px}}
@media(forced-colors:active){
 .hb-view-toggle{background:ButtonFace;color:ButtonText;border:1px solid ButtonText;box-shadow:none}
 .hb-view-toggle[aria-pressed="true"]{outline:2px solid Highlight;outline-offset:1px;background:ButtonFace;color:ButtonText}
}

/* A living clearing first, an editor only when a decoration is in hand.
   Keep real native plot buttons in place for touch/keyboard access. */
.hb-dialog:not(.hb-picking):not(.hb-viewing) .hb-plot:not(.is-occupied) :is(.hb-empty-mark,.hb-plot-ring){opacity:0}
.hb-dialog:not(.hb-picking):not(.hb-viewing) .hb-plot:not(.is-occupied):is(:hover,:focus,:focus-visible) :is(.hb-empty-mark,.hb-plot-ring){opacity:1}
.hb-picking .hb-plot.is-target .hb-plot-ring{opacity:1}
.hb-picking .hb-plot.is-target .hb-empty-mark{opacity:1}
@media(forced-colors:active){
 .hb-dialog:not(.hb-picking):not(.hb-viewing) .hb-plot:not(.is-occupied) :is(.hb-empty-mark,.hb-plot-ring){opacity:1}
}
html[data-contrast="high"] .hb-dialog:not(.hb-picking):not(.hb-viewing) .hb-plot:not(.is-occupied) :is(.hb-empty-mark,.hb-plot-ring){opacity:1}

/* A single gentle arrival. Only actual changed placements get this class.
   Static art, intentional 2D and the saved 3D geometry remain untouched. */
@keyframes hb-settle-object{
  0%{opacity:.65;transform:translate(-50%,19%) scale(.92)}
  58%{opacity:1;transform:translate(-50%,15%) scale(1.025)}
  100%{opacity:1;transform:translate(-50%,16.129032%) scale(1)}
}
@keyframes hb-settle-ring{
  0%{opacity:.85;box-shadow:0 0 0 0 #f7d99085}
  100%{opacity:0;box-shadow:0 0 0 15px #f7d99000}
}
.hb-plot.is-settling>.hb-item-art{animation:hb-settle-object 320ms cubic-bezier(.22,.73,.35,1) 1 both}
.hb-plot.is-settling>.hb-plot-ring{animation:hb-settle-ring 480ms ease-out 1 both}
@media(prefers-reduced-motion:reduce){
  .hb-plot.is-settling>.hb-item-art,.hb-plot.is-settling>.hb-plot-ring{animation:none!important}
}
@media(forced-colors:active){
  .hb-plot.is-settling>.hb-plot-ring{animation:none!important}
}

/* Collection cards for decorations already placed act as an object locator. */
.hb-inventory-item.is-inspected{border-color:#86986b;background:radial-gradient(ellipse at 50% 34%,#f6f9e9,#e2eacf 88%);box-shadow:0 3px 0 #8da276}
.hb-inventory-item.is-inspected .hb-item-copy small{color:#365b37;font-weight:650}
@media(forced-colors:active){.hb-inventory-item.is-inspected{outline:2px solid Highlight;outline-offset:-2px}}

/* A full clearing: confirm the exact two objects before changing the local draft.
   It is a decision within the existing illustrated editor, not a second dialog. */
.hb-exchange{display:grid;grid-template-columns:minmax(100px,160px) minmax(0,1fr);align-items:center;gap:10px 18px;max-height:48dvh;overflow-y:auto;padding:15px 22px;border-top:1px solid #bca977;background:linear-gradient(100deg,#ece8d4,#f6eed8);color:#213d2e}
.hb-exchange-illustration{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
.hb-exchange-illustration>span:not(.hb-exchange-arrow){display:block;width:58px;height:68px;flex:0 1 58px;min-width:0}
.hb-exchange-illustration .hb-item-art{width:100%;height:100%}
.hb-exchange-arrow{color:#8f783d;font:23px Georgia,serif;flex:none}
.hb-exchange-message{min-width:0}
.hb-exchange-message strong{font-family:Georgia,'Noto Serif TC',serif;font-size:18px;line-height:1.45;font-weight:600;color:#254334}
.hb-exchange-message p{font-size:13px;line-height:1.6;margin:5px 0 0;color:#4d5a44}
.hb-exchange-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;grid-column:1/-1}
.hb-exchange-actions .hb-button{margin:0;min-width:140px;min-height:44px;font-size:13px}
.hb-exchange-actions [data-hb-action="exchange-confirm"]{background:#244c37;color:#fff9e8;border-color:#1d4133}
.hb-exchange-actions [data-hb-action="exchange-confirm"]:hover:not(:disabled){background:#356044;color:#fff}
@media(max-width:520px){.hb-exchange{padding:11px 12px;gap:7px 11px;grid-template-columns:94px minmax(0,1fr);max-height:53dvh}.hb-exchange-illustration>span:not(.hb-exchange-arrow){width:40px;height:55px}.hb-exchange-arrow{font-size:17px}.hb-exchange-message strong{font-size:16px}.hb-exchange-message p{font-size:12px}.hb-exchange-actions .hb-button{min-width:0;flex:1 1 110px}}
html[data-text-size="large"] .hb-exchange :is(strong,p,.hb-button){font-size:1rem}
@media(forced-colors:active){.hb-exchange{background:Canvas;color:CanvasText;border-color:CanvasText}.hb-exchange-message :is(strong,p),.hb-exchange-arrow{color:CanvasText}.hb-exchange-actions .hb-button{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important}}

/* Preview the real decorations and facing before confirming an exchange. */
.hb-exchange{grid-template-columns:minmax(0,1fr);gap:11px}
.hb-exchange-comparison{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:9px;align-items:center;min-width:0}
.hb-exchange-time{min-width:0;padding:9px;background:#fff9ea;border:1px solid #c7b58e;border-radius:12px}
.hb-exchange-time>b{display:block;text-align:center;color:#456249;font-size:12px;margin-bottom:6px}
.hb-exchange-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.hb-exchange-tile{min-width:0;display:flex;align-items:center;flex-direction:column;text-align:center;padding:4px 2px;border-radius:8px;background:#e4e9d5}
.hb-exchange-tile small{font-size:10px;line-height:1.3;font-weight:700;color:#395344;overflow-wrap:anywhere}
.hb-exchange-tile .hb-item-art{display:block;width:100%;height:61px;max-width:83px;flex:none}
.hb-exchange-tile span{font-size:10px;line-height:1.3;color:#344a3a;overflow-wrap:anywhere}
.hb-exchange-next{color:#82713d;font:26px Georgia,serif}
.hb-exchange-message{grid-column:1/-1}
@media(max-width:520px){.hb-exchange-comparison{gap:4px}.hb-exchange-time{padding:5px 3px;border-radius:8px}.hb-exchange-time>b{font-size:10px}.hb-exchange-pair{gap:2px}.hb-exchange-tile .hb-item-art{height:49px}.hb-exchange-tile :is(small,span){font-size:9px;line-height:1.25}.hb-exchange-next{font-size:18px}}
html[data-text-size="large"] .hb-exchange-time>b,html[data-text-size="large"] .hb-exchange-tile :is(small,span){font-size:12px}
@media(forced-colors:active){.hb-exchange-time,.hb-exchange-tile{background:Canvas;color:CanvasText;border:1px solid CanvasText}.hb-exchange-time>b,.hb-exchange-tile :is(small,span),.hb-exchange-next{color:CanvasText}}

/* An exchange should read like a before/after story on narrow phones, not
   four tiny illustrations squeezed across the width. The existing decision,
   art, owned items and explicit confirmation are unchanged. */
@media (max-width:520px){
 .hb-dialog .hb-exchange{overscroll-behavior-y:contain;scroll-padding-bottom:12px}
 .hb-dialog .hb-exchange-comparison{grid-template-columns:minmax(0,1fr);gap:7px}
 .hb-dialog .hb-exchange-time{padding:8px 10px;border-radius:10px}
 .hb-dialog .hb-exchange-time>b{font-size:13px;line-height:1.4;margin-bottom:5px}
 .hb-dialog .hb-exchange-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .hb-dialog .hb-exchange-tile{padding:5px 7px;border-radius:8px}
 .hb-dialog .hb-exchange-tile .hb-item-art{height:66px;max-width:94px}
 .hb-dialog .hb-exchange-tile :is(small,span){font-size:13px;line-height:1.35;overflow-wrap:anywhere}
 .hb-dialog .hb-exchange-next{justify-self:center;transform:rotate(90deg);font-size:19px;line-height:1}
 .hb-dialog .hb-exchange-actions{position:sticky;bottom:-11px;z-index:1;padding:10px 0 1px;background:#f6eed8;box-shadow:0 -7px 12px #263c2910}
 .hb-dialog .hb-exchange-actions .hb-button{min-height:44px;flex:1 1 118px;white-space:normal}
}
/* Large text must not fall back to the earlier 9–12px comparison captions.
   Let the decision scroll vertically rather than shrinking the words. */
@media (max-width:520px){
 html[data-text-size="large"] .hb-dialog .hb-exchange-time>b,
 html[data-text-size="large"] .hb-dialog .hb-exchange-tile :is(small,span){font-size:1rem;line-height:1.45}
}
@media (forced-colors:active){
 .hb-dialog .hb-exchange-actions{background:Canvas;box-shadow:none;border-top:1px solid CanvasText}
}

/* In Decorate mode, show a quiet direction dial for turned pieces even if
   another plot is selected. Admire mode and all twelve painted bodies stay intact. */
.hb-dialog .hb-plot:not(.is-selected) .hb-facing-dial{opacity:.8}
.hb-dialog .hb-plot:not(.is-selected):is(:hover,:focus-visible) .hb-facing-dial{opacity:1}
html[data-contrast="high"] .hb-dialog .hb-plot .hb-facing-dial{opacity:1}
@media(forced-colors:active){.hb-dialog .hb-plot .hb-facing-dial{opacity:1}}

/* A small lived-in scene: bounded static light, one companion, no gameplay state. */
.hb-living-light{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.hb-light-pool{position:absolute;width:36%;height:29%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#ffdda35c,#e2bd7330 38%,transparent 72%);mix-blend-mode:screen}
.hb-dialog .hb-plot.is-lantern-lit .hb-item-art{filter:drop-shadow(0 0 8px #f5d38a66) brightness(1.09)}
.hb-companion-place{position:absolute;width:8%;min-width:29px;max-width:76px;transform:translate(-37%,-89%);z-index:4;pointer-events:none}
.hb-home-companion{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(1px 3px 2px #102b2766)}
.hb-companion-breath{transform-origin:30px 69px;animation:hb-home-breathe 5s ease-in-out infinite}
@keyframes hb-home-breathe{0%,100%{translate:0 0}50%{translate:0 -1px}}
.hb-activity-caption{margin:0;padding:8px 14px;background:#203e32;color:#f2e5c0;font-size:13px;line-height:1.5}
.hb-memory{background:#203e32;color:#f2e5c0;border-top:1px solid #b2bd8455;padding:0 14px}
.hb-memory summary{min-height:48px;display:flex;align-items:center;cursor:pointer;gap:8px;font:600 14px Georgia,'Noto Serif TC',serif}
.hb-memory summary::before{content:'✦';color:#e8c377}.hb-memory summary::after{content:'+';margin-left:auto}.hb-memory[open] summary::after{content:'−'}
.hb-memory p{margin:0;padding:0 0 12px;font-size:14px;line-height:1.6}
/* Primary controls clear the 48 CSS px target even when older compact rules apply. */
.hb-dialog .hb-button,.hb-dialog .hb-view-toggle,.hb-dialog .hb-close,.hb-dialog .hb-plot,.hb-dialog .hb-inventory-item{min-width:48px;min-height:48px}
.hb-dialog .hb-close{width:48px;height:48px}.hb-dialog .hb-plot-tools>div{gap:8px}
.hb-dialog .hb-plot-tools .hb-button,.hb-dialog .hb-exchange-actions .hb-button{min-height:48px}
.hb-dialog .hb-header{padding-top:max(12px,env(safe-area-inset-top))}.hb-dialog .hb-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
@media(max-width:520px){.hb-dialog .hb-plot-tools>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.hb-dialog .hb-plot-tools .hb-button{font-size:13px;white-space:normal}.hb-dialog .hb-plot-label{bottom:100%;top:auto;max-width:120px;white-space:normal;text-align:center;line-height:1.3}}
html[data-text-size="large"] .hb-activity-caption,html[data-text-size="large"] .hb-memory :is(summary,p){font-size:1rem}
@media(prefers-reduced-motion:reduce){.hb-companion-breath{animation:none!important}}
html[data-motion="reduced"] .hb-companion-breath{animation:none!important}
@media(forced-colors:active){.hb-living-light{display:none}.hb-activity-caption,.hb-memory{background:Canvas;color:CanvasText}.hb-memory summary{color:CanvasText}.hb-dialog .hb-plot.is-lantern-lit .hb-item-art{filter:none}}
