/* Warm paper furnishing cards beside the little underground room. */
#burrow-area {
  color: var(--village-frost);
  min-height: 100%;
  background: radial-gradient(ellipse at 60% 0, var(--village-twilight), transparent 70%), var(--village-midnight);
}
.burrow-inner {max-width: 1330px; margin: auto; padding: 28px clamp(16px, 3.2vw, 48px) 25px}
.burrow-heading {display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px}
.burrow-heading h1 {margin:0; color:var(--village-frost); font:400 clamp(36px,4.2vw,57px)/1.08 Georgia,serif; letter-spacing:-1.6px; overflow-wrap:anywhere}
.burrow-heading h1:focus {outline:none}
.burrow-heading p {margin:8px 0 0; color:var(--village-ice); font-size:16px; line-height:1.55}
.burrow-purse {flex:none; display:flex; align-items:center; gap:10px; min-height:58px; padding:7px 17px 7px 9px; border:1px solid #9fa47d7a; border-radius:15px; background:var(--village-midnight); color:#fff0c7}
.burrow-purse > .burrow-coin {width:43px; height:43px; filter: drop-shadow(0 2px 3px #0e241b9c)}
.burrow-purse > span {display:grid; gap:1px}
.burrow-purse small {font-size:13px; color:var(--village-ice)}
.burrow-purse span span {font-weight:600; font-size:15px}
.burrow-purse b {font-weight:800; font-variant-numeric:tabular-nums}
.burrow-layout {display:grid; grid-template-columns:minmax(0,1.9fr) minmax(290px,1fr); align-items:start; gap:clamp(16px,2.1vw,30px)}
.burrow-studio {min-width:0}
.burrow-pantry {display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:10px 12px;border:1px solid #aeb68766;border-radius:13px;background:var(--village-twilight);color:#fff2ce}
.burrow-pantry > img {width:38px;height:38px;object-fit:contain}
.burrow-appetite {flex:1;min-width:0}
.burrow-appetite label {font-weight:700;margin-right:5px}
#burrow-mood {color:var(--village-ice);font-size:14px}
#burrow-fullness {appearance:none;display:block;width:min(100%,240px);height:7px;margin:6px 0 2px;background:#3e5548;border:0;border-radius:8px;overflow:hidden;--fill:#b5d89c}
#burrow-fullness.is-hungry {--fill:var(--village-gold)}
#burrow-fullness::-webkit-meter-bar {background:#3e5548;border:0;height:7px}
#burrow-fullness::-webkit-meter-optimum-value {background:var(--fill);border-radius:8px}
#burrow-fullness::-moz-meter-bar {background:var(--fill);border-radius:8px}
.burrow-fridge {display:flex;align-items:center;gap:6px;min-height:42px;padding:8px 12px;border:1px solid #a4b191;border-radius:9px;color:#fff2d6;background:#2c503b;font-weight:700}
.burrow-fridge span {font-size:12px;color:#d9e7cb;font-variant-numeric:tabular-nums}
.burrow-fridge:enabled:hover {background:#3b6047}
@media(max-width:480px) {.burrow-pantry {gap:8px;padding:8px}.burrow-pantry > img {width:28px;height:28px}.burrow-appetite label {display:block}.burrow-fridge {padding-inline:8px}}
.burrow-frame {overflow:hidden; border-radius:17px; border:2px solid #84623c; box-shadow:0 10px 24px #0a241d55}
.burrow-stage {
  position:relative; isolation:isolate; overflow:hidden; width:100%; aspect-ratio:3/2;
  background: url('art/burrow/room.webp') center / 100% 100% no-repeat,
    radial-gradient(ellipse at 40% 40%,#eda959,transparent 58%),
    linear-gradient(#6c3921 0%,#a55f2e 15%,#bd7f46 62%,#8c5328 63%,#ae6530 100%);
}
.burrow-piece, .burrow-resident {
  position:absolute; display:block; transform:translate(-50%, -100%); background:none; padding:0; border:0;
  -webkit-user-select:none; user-select:none;
}
.burrow-piece {border-radius:8px; line-height:0; touch-action:none; -webkit-tap-highlight-color:transparent}
button.burrow-piece {cursor:grab}
button.burrow-piece:active {cursor:grabbing}
.burrow-piece img {width:100%; height:auto; display:block; position:relative; z-index:1; pointer-events:none; filter:drop-shadow(1px 3px 1.8px #50271170)}
.burrow-piece.is-flipped img {transform:scaleX(-1)}
#burrow-flip[aria-pressed="true"] {background:#e5d7a5; color:#2f4633}
.burrow-piece::before, .burrow-resident::before {
  content:''; position:absolute; left:8%; right:8%; bottom:-3%; height:12%; border-radius:50%;
  background:#4d2d1f6b; filter:blur(3px); pointer-events:none; transform:skewX(-10deg);
}
.burrow-piece.is-selected::after, .burrow-piece:focus-visible::after {
  content:''; position:absolute; left:-5%; right:-5%; bottom:-4%; height:16%; border-radius:50%;
  border:2px dashed #fff2ca; background:#ffdf911f; box-shadow:0 1px 3px #4d341e99; z-index:0;
}
.burrow-piece:focus-visible {outline:2px solid #ffefb9; outline-offset:3px}
.burrow-piece.is-preview {opacity:.94; pointer-events:none}
.burrow-carpet[data-family="rug"] img {aspect-ratio:3.2; object-fit:fill}
.burrow-carpet[data-family="runner"] img {aspect-ratio:4; object-fit:fill}
.burrow-carpet::before {height:28%; inset-inline:3%; bottom:0; opacity:.5}
.burrow-carpet.is-selected::after, .burrow-carpet:focus-visible::after {height:100%; bottom:-2%}
.burrow-carpet[data-family="runner"]::after {border-radius:10%}
.burrow-wall-piece::before {display:none}
.burrow-wall-piece.is-selected::after, .burrow-wall-piece:focus-visible::after {inset:-3px; height:auto; border-radius:8px; background:transparent}
.burrow-resident {z-index:841; left:47%; top:83%; width:14%; pointer-events:none}
.burrow-resident svg {position:relative; display:block; width:100%; height:auto; filter:drop-shadow(1px 2px 1px #4923165c); transform-origin:50% 94%; animation:burrow-breathe 4.8s ease-in-out infinite}
.burrow-resident::before {left:16%; right:12%; bottom:2%; height:9%}
@keyframes burrow-breathe {50%{transform:scale(.991,1.015) rotate(.65deg)}}
.burrow-preview {display:block; position:relative; width:100%; aspect-ratio:3/2; overflow:hidden}
.burrow-preview > .burrow-stage {position:absolute; inset:0; width:100%; height:100%}
.burrow-preview-label {position:absolute; z-index:1100; inset:12px auto auto 12px; min-height:34px; padding:5px 12px; background:#193f31ee; border:1px solid #efdfb480; border-radius:20px; font-size:13px; font-weight:700; color:#fff1d3; cursor:pointer}
.burrow-tools {display:flex; align-items:center; gap:13px; padding:17px 1px 13px; border-bottom:1px solid #c9c79842}
.burrow-move-icon {display:grid; place-items:center; flex:none; width:37px; height:37px; border:1px solid #c6c39780; border-radius:50%; color:#f1dd9f}
.burrow-move-icon svg {display:block; width:18px; height:18px}
.burrow-tool-copy {flex:1; min-width:0}
.burrow-tool-copy h2 {margin:0; color:var(--village-frost); font:400 23px/1.1 Georgia,serif; letter-spacing:-.3px}
#burrow-instruction {margin:4px 0 0; color:#d7e1cf; font-size:14px; line-height:1.45}
.burrow-buttons {display:flex; flex-wrap:wrap; align-items:center; gap:6px}
.burrow-buttons button {min-height:40px; padding:8px 13px; border-radius:9px; line-height:1.1; font-size:14px; font-weight:700; white-space:nowrap}
.burrow-primary {display:inline-flex; align-items:center; justify-content:center; gap:5px; background:var(--village-gold); border:1px solid var(--village-gold); color:var(--village-ink)}
.burrow-primary:hover:enabled {background:#ffe5ac}
.burrow-primary:disabled {background:#354a36; border-color:#819076; color:#cbd2b9}
.burrow-secondary {color:#f7ecd0; border:1px solid #899e80; background:transparent}
.burrow-secondary:hover {background:#ffffff19}
.burrow-coin {display:inline-block; width:19px; height:19px; vertical-align:middle}
#burrow-status {min-height:1.4em; margin:8px 1px 0; color:#f4d899; font-size:14px; line-height:1.4}
.burrow-shop {overflow:hidden; padding:18px; border:1px solid #e8d8ae; border-radius:17px; background:var(--village-mist); color:var(--village-ink); box-shadow:0 7px 22px #0a241d38}
.burrow-shop-top {display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px}
.burrow-shop h2 {font:400 clamp(23px,2.05vw,30px)/1.1 Georgia,serif; margin:0; letter-spacing:-.7px}
.burrow-filters {display:inline-flex; padding:2px; border:1px solid #c2bea4; border-radius:9px; background:var(--village-mist)}
.burrow-filters button {min-height:33px; border:0; padding:5px 9px; background:transparent; color:#52634a; border-radius:6px; font-size:14px; font-weight:700; line-height:1.2}
.burrow-filters [aria-pressed="true"] {background:#295039; color:#fff4d8}
.burrow-filters span {margin-left:2px; font-variant-numeric:tabular-nums}
#burrow-catalog {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px}
.burrow-card {position:relative; overflow:hidden; padding:0 0 7px; color:var(--village-ink); display:flex; align-items:stretch; flex-direction:column; background:var(--village-snow); text-align:left; border:1px solid var(--village-edge); border-radius:9px; box-shadow:0 1px 1px #775e3520}
.burrow-card:hover {border-color:#799274; box-shadow:0 2px 4px #775e3530}
.burrow-card[aria-pressed="true"] {border-color:#336746; box-shadow:0 0 0 2px #336746}
.burrow-shop button:focus-visible {outline:3px solid #b66a24; outline-offset:2px}
.burrow-sample {position:relative; display:grid; place-items:center; width:100%; height:clamp(64px,6.1vw,86px); padding:6px 12px 3px; background:radial-gradient(ellipse at 50% 53%,#fff8e9,#efe5cb)}
.burrow-sample::before {content:''; position:absolute; bottom:6px; left:28%; width:44%; height:10%; border-radius:50%; background:#77582d21; filter:blur(3px)}
.burrow-sample img {position:relative; display:block; width:100%; height:100%; min-height:0; object-fit:contain; filter:drop-shadow(1px 2px 1px #5c452120); pointer-events:none}
.burrow-card-copy {display:flex; align-items:flex-start; flex-wrap:wrap; justify-content:space-between; gap:2px 6px; margin:7px 8px 0; line-height:1.25}
.burrow-card-copy strong {font-weight:700; font-size:14px}
.burrow-price {display:inline-flex; align-items:center; gap:3px; font-size:13px; font-weight:650; color:#625737; white-space:nowrap}
.burrow-price .burrow-coin {width:16px; height:16px}
@media (min-width:1480px) {.burrow-inner{padding-top:38px}}
@media (min-width:761px) and (max-width:1000px) {
  .burrow-inner{padding-inline:19px}
  .burrow-layout{grid-template-columns:minmax(0,1.75fr) minmax(258px,1fr); gap:15px}
  .burrow-shop{padding:13px}
  .burrow-shop-top{gap:8px}
  .burrow-tools{flex-wrap:wrap}
  .burrow-buttons:not(:empty){margin-left:auto}
}
@media (max-width:760px) {
  .burrow-inner{padding:20px 14px}
  .burrow-heading{align-items:flex-start; gap:9px; margin-bottom:14px}
  .burrow-heading h1{font-size:clamp(32px,8.5vw,45px); letter-spacing:-1px}
  .burrow-heading p{font-size:14px; line-height:1.4; margin-top:5px}
  .burrow-purse{padding:6px 9px 6px 6px; gap:5px; min-height:43px; border-radius:10px}
  .burrow-purse > .burrow-coin{width:29px;height:29px}
  .burrow-purse small{font-size:12px}
  .burrow-purse span span{font-size:13px}
  .burrow-layout{grid-template-columns:minmax(0,1fr);gap:10px}
  .burrow-frame,.burrow-shop{border-radius:12px}
  .burrow-tools{gap:9px; flex-wrap:wrap; padding:12px 0}
  .burrow-tool-copy{flex:1 1 159px}
  .burrow-tool-copy h2{font-size:21px}
  .burrow-move-icon{width:32px;height:32px}
  .burrow-buttons{margin-left:auto}
  .burrow-buttons button{min-height:42px}
  #burrow-status:empty{display:none}
  .burrow-shop{padding:15px}
  .burrow-sample{height:74px;padding:8px}
}
@media (max-width:480px) {
  .burrow-card-copy{flex-direction:column;margin:6px 6px 0;gap:3px}
  .burrow-sample{height:61px}
  .burrow-heading p{max-width:34ch}
}
@media (max-width:350px) {
  .burrow-inner{padding-inline:10px}
}
@media (prefers-reduced-motion:reduce) {.burrow-resident svg{animation:none}}
.burrow-earn{margin:15px 0 0;border-top:1px solid var(--village-edge);color:#344b35}
.burrow-earn summary{cursor:pointer;padding:13px 2px 2px;font-size:15px;font-weight:650}
.burrow-earn summary:focus-visible,.burrow-earn a:focus-visible{outline:2px solid #a3652e;outline-offset:3px}
.burrow-earn dl{margin:12px 0 0;padding:0 2px;font-size:14px;line-height:1.45}
.burrow-earn dt{font-weight:700}.burrow-earn a{color:#295039;text-underline-offset:3px}
.burrow-earn dd{margin:2px 0 10px;color:#5a5945}

/* The shop shows one family at a time; each swatch belongs to its pictured model. */
#burrow-families {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-bottom:18px}
.burrow-family {display:grid; justify-items:center; align-content:center; gap:4px; min-width:0; min-height:62px;
  padding:5px 2px; border:1px solid #d5c9ab; border-radius:9px; color:#4d583f; background:#efe8d4; font-weight:650; font-size:13px}
.burrow-family img {display:block; width:45px; height:32px; object-fit:contain; filter:drop-shadow(0 1px 1px #684a2438)}
.burrow-family[data-family-choice="festive"] {grid-column:1 / -1; display:flex; align-items:center; justify-content:center; gap:9px; min-height:44px}
.burrow-family[aria-pressed="true"] {background:var(--village-mint); border-color:#6b8766; color:#264e3b; box-shadow:inset 0 0 0 1px #6b8766}
.burrow-family:hover {border-color:#688067}
.burrow-shop h3 {margin:0 0 9px; font:400 22px/1.12 Georgia,serif; color:#344e38}
.burrow-model .burrow-card-copy {flex:1; margin:7px 7px 0; align-items:flex-start; flex-wrap:nowrap; flex-direction:column; gap:4px}
.burrow-model .burrow-sample {height:clamp(66px,6.6vw,90px); padding:7px}
.burrow-model .burrow-price {margin-top:auto}
.burrow-model .burrow-card-copy strong {line-height:1.15; overflow-wrap:break-word}
.burrow-finish {display:block; color:#64624e; font-size:12px; line-height:1.3}
.burrow-finish i {display:inline-block; width:10px; height:10px; margin:0 4px 0 0; border-radius:50%; border:1px solid #433e3e55; vertical-align:baseline}
.burrow-checkout {display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:12px}
.burrow-checkout button,.burrow-sale button {min-height:40px; border-radius:9px; padding:7px 13px; font-size:14px; font-weight:700}
.burrow-shop-buy {display:inline-flex; align-items:center; justify-content:center; gap:5px; background:#2b513c; border:1px solid #2b513c; color:#fff3d4}
.burrow-shop-buy:enabled:hover {background:#1b422e}
.burrow-shop-buy:disabled {background:#d8dac7; color:#49583f; border-color:#b9c1a8}
.burrow-shop-quiet {color:#31523b; background:transparent; border:1px solid #b2b89e}
.burrow-shop-quiet:hover {background:#e5e8d6}
#burrow-price-note,#burrow-shop-status,#burrow-pack-empty {margin:8px 0 0; color:#5f5e4d; font-size:14px; line-height:1.45}
#burrow-shop-status {color:#26563b; font-weight:650}
#burrow-shop-status:empty {display:none}
.burrow-pack-list {display:grid; gap:6px; max-height:330px; overflow-y:auto; overscroll-behavior:contain}
.burrow-pack-piece {display:flex; text-align:left; align-items:center; gap:12px; min-width:0; padding:6px 9px; width:100%;
  border:1px solid #d4c7a9; border-radius:9px; background:var(--village-snow); color:#2c4e38}
.burrow-pack-piece:hover,.burrow-pack-piece[aria-pressed="true"] {border-color:#6d8563; background:#e9eddb}
.burrow-pack-piece img {width:52px; height:45px; object-fit:contain}
.burrow-pack-piece strong,.burrow-pack-piece small {display:block}
.burrow-pack-piece strong {font-size:15px}
.burrow-pack-piece small {font-size:13px; color:#625e4f; margin-top:2px}
#burrow-pack-panel h3 span,#burrow-placed-count {font-family:inherit; font-size:13px; line-height:1.4; font-weight:600; color:#63725a; margin-left:3px}
#burrow-room-pieces {margin-top:13px; border-top:1px solid var(--village-edge)}
#burrow-room-pieces summary {cursor:pointer; padding:12px 0 3px; font-size:15px; font-weight:700}
#burrow-room-pieces[open] summary {margin-bottom:5px}
.burrow-sale {display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:9px 16px; padding:12px 14px; margin-top:8px;
  color:#fff1cf; border:1px solid #ad9161; border-radius:12px; background:#244331}
.burrow-sale strong {font-size:15px}
.burrow-sale p {margin:3px 0 0; font-size:14px; color:#e4dec6}
.burrow-sale > div:last-child {display:flex; gap:6px}
@media (min-width:761px) and (max-width:1000px) {
  .burrow-layout{grid-template-columns:minmax(0,1.55fr) minmax(295px,1fr)}
  .burrow-family{font-size:12px}
  .burrow-tools{flex-wrap:wrap}
}
@media (max-width:480px) {
  .burrow-family{min-height:56px}
  .burrow-model .burrow-sample{height:65px}
  .burrow-checkout button,.burrow-sale button{min-height:44px}
  .burrow-sale{padding:10px}
}

.burrow-care-actions {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.burrow-care-actions button[hidden] {display:none}
#daily-wheel{margin:auto;width:min(380px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:2px solid #c1a577;border-radius:20px;padding:20px;text-align:center;background:var(--village-snow);color:#234635}
#daily-wheel::backdrop{background:var(--village-veil)}
#daily-wheel h2{margin:0 20px 14px;font:30px Georgia,serif}
.wheel-close{position:absolute;top:8px;right:8px;width:32px;height:32px;border:0;background:transparent;color:inherit;font-size:23px}
.wheel-frame{position:relative;width:min(240px,65vw,42svh);margin:auto}
.wheel-frame:before{content:'';position:absolute;z-index:1;top:-4px;left:calc(50% - 9px);border-left:9px solid transparent;border-right:9px solid transparent;border-top:17px solid #ffe39a;filter:drop-shadow(0 1px 2px #332715)}
.wheel-disc{position:relative;aspect-ratio:1;border:5px solid #a48a56;border-radius:50%;transition:transform 1.4s cubic-bezier(.15,.7,.2,1)}
.wheel-disc span{position:absolute;left:50%;top:6%;width:30%;height:44%;margin-left:-15%;transform:rotate(var(--angle));transform-origin:50% 100%;color:#fff8df;font-size:clamp(10px,3vw,13px);line-height:1.15;font-weight:bold}
.wheel-disc .wheel-coins {color:var(--village-umber);text-shadow:none}
#daily-wheel p{margin:10px 0;font-size:15px}.wheel-result{min-height:1.3em;font-weight:700}
@media(prefers-reduced-motion:reduce){.wheel-disc{transition:none}}
