/* All decorative UI is scoped; source content and commerce controls stay intact. */
.sf-room{--room-ink:#493b3a;--room-brass:#9b783c;--room-pink:#f0dfe1;box-sizing:border-box;width:100%;max-width:1120px;margin:30px auto 32px;padding:clamp(16px,3vw,36px);border:1px solid #d6c2ad;border-radius:28px;background:linear-gradient(140deg,#fffaf4,#f5ece7);color:var(--room-ink);box-shadow:0 16px 44px #654b3410;text-align:center;overflow-wrap:anywhere}
.sf-room *{box-sizing:border-box;min-width:0}
.sf-room .sf-room__title{margin:0 0 10px;font-family:Georgia,'Times New Roman',serif;font-size:clamp(25px,3.6vw,40px);font-weight:500;line-height:1.15;color:var(--room-ink)}
.sf-room .sf-room__intro{margin:0 auto 22px;max-width:620px;font-size:16px;line-height:1.6;color:#625250}
.sf-room__scene{position:relative;border-radius:120px 120px 18px 18px;border:1px solid #c8ad84;padding:12px;background:radial-gradient(ellipse at 50% 20%,#fffdf9 10%,#f3e7df 65%,#e2cfbd);box-shadow:inset 0 0 0 5px #fff9f0,inset 0 0 0 6px #d9c3a7}
.sf-room .sf-room__art{height:clamp(230px,48vw,500px);border-radius:100px 100px 0 0;background:radial-gradient(ellipse at center,#fff6dc99,transparent 65%),linear-gradient(100deg,#ddc4be66,#fffcf4,#ddc4be66);background-image:url('sanfaya-wardrobe.png'),radial-gradient(ellipse at center,#fff6dc99,transparent 65%),linear-gradient(100deg,#ddc4be66,#fffcf4,#ddc4be66);background-size:contain,auto,auto;background-position:center;background-repeat:no-repeat}
.sf-room--dresser .sf-room__art{background-image:url('sanfaya-dresser.png'),radial-gradient(ellipse at center,#fff6dc99,transparent 65%),linear-gradient(100deg,#ddc4be66,#fffcf4,#ddc4be66)}
.sf-room__controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 auto;padding:12px;max-width:780px;align-items:start}
.sf-room .sf-room__door{border:1px solid var(--room-brass);border-radius:72px 72px 12px 12px;background:linear-gradient(130deg,#fff9f5,#edd5d8);box-shadow:inset 0 0 0 5px #fff7ef,inset 0 0 0 6px #cfb293;text-align:center}
.sf-room .sf-room__door summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:145px;padding:24px 14px 20px;border-radius:72px 72px 12px 12px;font-size:16px;color:var(--room-ink)}
.sf-room .sf-room__door summary::-webkit-details-marker{display:none}
.sf-room .sf-room__door summary::after{content:'';height:12px;width:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f8e1ac,#8a622d);box-shadow:0 2px 3px #70512944}
.sf-room .sf-room__label{font-family:Georgia,'Times New Roman',serif;font-size:clamp(20px,2.5vw,28px);font-weight:600;line-height:1.2}
.sf-room .sf-room__open,.sf-room .sf-room__close{font-size:14px;line-height:1.4}
.sf-room .sf-room__close,.sf-room .sf-room__door[open] .sf-room__open{display:none}
.sf-room .sf-room__door[open] .sf-room__close{display:inline}
.sf-room .sf-room__inside{padding:0 18px 24px;font-size:16px;line-height:1.6}
.sf-room .sf-room__inside p{margin:0 0 16px}
.sf-room .sf-room__link,.sf-room .sf-room__drawer{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border:1px solid #9c7b55;border-radius:8px;background:#fffaf4;color:#493b3a;font-size:16px;font-weight:600;line-height:1.4;text-decoration:underline;text-underline-offset:3px}
.sf-room .sf-room__drawer{min-height:100px;padding:20px 14px 28px;border-radius:10px;background:linear-gradient(160deg,#fff8ee,#ead7d6);box-shadow:inset 0 0 0 4px #fff9ef,inset 0 0 0 5px #d1b18a;position:relative}
.sf-room .sf-room__drawer::after{content:'';position:absolute;width:32px;height:5px;border-radius:4px;background:#94703d;bottom:14px;left:calc(50% - 16px)}
.sf-room a:hover,.sf-room summary:hover{background-color:#f9eddf;box-shadow:inset 0 0 0 2px #9b783c}
.sf-room a:focus-visible,.sf-room summary:focus-visible{outline:3px solid #64482c;outline-offset:4px}
body .sf-clothing-choices.sf-room-direct-links{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 28px}
body .sf-clothing-choices.sf-room-direct-links .sf-clothing-choice{min-height:44px;flex:1 1 220px;padding:16px;border-radius:12px}
body .sf-clothing-choices.sf-room-direct-links .sf-clothing-choice h2{font-size:20px;margin:0 0 8px}
body .sf-clothing-choices.sf-room-direct-links .sf-clothing-choice p{font-size:14px;margin:0 0 10px}
body .sf-clothing-choices.sf-room-direct-links .sf-clothing-choice .sf-button{font-size:14px;min-height:44px;display:inline-flex;align-items:center}
@media(prefers-reduced-motion:reduce){.sf-room *,.sf-room-direct-links *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.sf-room .sf-room__note{max-width:720px;margin:16px auto 0;color:#625250;font-size:14px;line-height:1.6}

/* Image-registered controls: the artwork is the cabinet, never a second cabinet. */
.sf-room__scene{position:relative;display:flow-root;aspect-ratio:3/2;padding:0;border-radius:14px;border:1px solid #c8ad84;background:#f1d6ce;box-shadow:none}
.sf-room .sf-room__art{position:absolute;inset:0;height:auto;border-radius:13px;background-size:100% auto,auto,auto;background-position:center top}
.sf-room--wardrobe .sf-room__controls{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:64%;max-width:none;margin:16.666% 0 0 18%;padding:0 0 12%;gap:12.5%;align-items:start}
.sf-room .sf-room__door{border:1px solid #aa855d;border-radius:14px;background:linear-gradient(130deg,#fffaf0ed,#f9e5e1e6);box-shadow:0 5px 18px #653e3222}
.sf-room .sf-room__door summary{aspect-ratio:1.05;min-height:120px;padding:18px 10px;border-radius:14px;gap:10px;background:transparent}
.sf-room .sf-room__door summary::after{width:10px;height:10px}
.sf-room--wardrobe .sf-room__inside{position:static;padding:0 14px 20px;background:transparent}
.sf-room .sf-room__door[open]{background:#fff8f0}
.sf-room--dresser .sf-room__controls{position:absolute;display:grid;left:11%;top:32%;width:78%;height:52%;max-width:none;margin:0;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));column-gap:7.6923%;row-gap:7.6923%;align-items:stretch}
.sf-room .sf-room__drawer{min-height:44px;height:100%;align-items:flex-start;padding:10% 10px 0;border:1px solid #fff7ec55;border-radius:6px;background:linear-gradient(#fff5e530,#fff5e510);box-shadow:none;color:#48332d;text-shadow:0 1px 1px #fff9ed;font-size:clamp(16px,2vw,23px);transition:transform .18s ease,background-color .18s ease;position:relative}
.sf-room .sf-room__drawer::after{content:none}
.sf-room .sf-room__drawer:hover{transform:translateY(-2px);background-color:#fff6e64d;box-shadow:0 4px 12px #573a3522}
.sf-room .sf-room__drawer:focus-visible{background-color:#fff6e6d9;outline-offset:1px}

/* Glass doors share the artwork's fixed coordinates, not the expanding details height. */
.sf-room--wardrobe .sf-room__art{bottom:auto;aspect-ratio:3/2;isolation:isolate}
.sf-room--wardrobe .sf-room__controls{z-index:1}
.sf-room--wardrobe .sf-room__glass-leaf{position:absolute;top:4.5%;width:39%;height:88.5%;perspective:1100px;pointer-events:none}
.sf-room--wardrobe .sf-room__glass-leaf--left{left:8.5%}
.sf-room--wardrobe .sf-room__glass-leaf--right{right:8.5%}
.sf-room--wardrobe .sf-room__glass{position:absolute;inset:0;border:clamp(3px,.5vw,7px) double #b98642;border-radius:50% 50% 4px 4px / 33% 33% 4px 4px;background:linear-gradient(115deg,#ffede175,#fae2d333 35%,#fff4e888 40%,#edcbb433 80%);box-shadow:inset 0 0 0 2px #ffe9c5,0 4px 14px #58391f33;transform-origin:left center;transition:transform .7s cubic-bezier(.2,.7,.2,1),background .7s;pointer-events:none}
.sf-room--wardrobe .sf-room__glass-leaf--right .sf-room__glass{transform-origin:right center}
.sf-room--wardrobe .sf-room__glass-leaf.is-open .sf-room__glass{transform:rotateY(-82deg);background:#f9e4d055}
.sf-room--wardrobe .sf-room__glass-leaf--right.is-open .sf-room__glass{transform:rotateY(82deg)}
.sf-room--wardrobe .sf-room__glass-handle{position:absolute;right:8%;top:57%;height:12%;width:clamp(3px,.6vw,8px);border-radius:8px;background:linear-gradient(90deg,#785020,#ffdda0,#9e6b2c);box-shadow:2px 2px 4px #51341c66;pointer-events:none}
.sf-room--wardrobe .sf-room__glass-leaf--right .sf-room__glass-handle{right:auto;left:8%}

@media(max-width:600px){
 .sf-room{padding:16px 10px;border-radius:20px}
 .sf-room__scene{aspect-ratio:auto;padding:0 0 10px;background:#f2dfd6}
 .sf-room .sf-room__art{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:3/2;border-radius:13px 13px 0 0}
 .sf-room--wardrobe .sf-room__controls,.sf-room--dresser .sf-room__controls{position:relative;left:auto;top:auto;width:auto;height:auto;max-width:none;margin:8px 10px 0;padding:0;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;align-items:start}
 .sf-room .sf-room__door{border-radius:8px;box-shadow:none}
 .sf-room .sf-room__door summary{aspect-ratio:auto;min-height:88px;padding:12px 8px;border-radius:8px;gap:6px}
 .sf-room .sf-room__door summary::after{content:none}
 .sf-room .sf-room__label{font-size:18px}
 .sf-room .sf-room__inside{padding:0 8px 12px;font-size:14px}
 .sf-room .sf-room__link{min-height:44px;padding:10px 6px;font-size:16px}
 .sf-room .sf-room__drawer{min-height:52px;height:auto;align-items:center;padding:12px 8px;background:#fff7ef;border:1px solid #aa855d;font-size:16px;text-shadow:none}
}
@media(prefers-reduced-motion:reduce){.sf-room .sf-room__drawer:hover{transform:none}}

/* The existing clothing page has nested card padding; keep narrow doors readable. */
@media(max-width:480px){
 .sf-room--wardrobe .sf-room__controls{grid-template-columns:1fr}
}
