/* V53: responsive and interaction polish; no structural changes. */
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--m-accent,#efc3d7);outline-offset:3px}
:where(button,select,input,textarea){max-width:100%}
:where(.room-scene,.panel,.post,.book-top,.book-tabs,.glitter-art,.designer-edit,.mood-current){min-width:0}
:where(.track-name,.track-title,.mood-current,.glitter-title,.designer-reward strong){overflow-wrap:anywhere}
@media(hover:none){.room-scene:hover img,.foyer-scene:hover img,.room-door:hover img{transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* V56: fine-tooth polish pass for desktop and mobile. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-gutter:stable both-edges}
body{text-rendering:optimizeLegibility}
:where(img,svg,canvas,iframe){max-width:100%}
:where(.now,.now>div,.player-actions,.controls,.section-title,.panel-head,.card-meta,.feat-copy,.dialog-inner,.book-page,.track,.track-info,.retro-profile-head,.retro-room-stage,.retro-objects,.designer-stage,.designer-catalogue,.mood-current,.glitter-card,.glitter-controls,.glitter-grid){min-width:0}
:where(.track-info strong,.track-info small,.player-status,.now strong,.now small,.card-meta h3,.post p,.scene-caption p,.tiny){overflow-wrap:anywhere}
:where(.btn,.chip,.collectible,.era,.room-door,.control,.designer-choice,.designer-slot,.designer-swatch,.retro-favorite,.furniture-tile){transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease,filter .18s ease}
:where(.panel,.nostalgia-panel,.designer,.room-scene,.room-door,.player,.dialog,.collectible,.era){-webkit-font-smoothing:antialiased;backface-visibility:hidden}
.dialog,.deluxe-dialog{overscroll-behavior:contain}
#player .player-inner{min-height:76px}
#player .now strong{display:block}
#player .player-status{max-width:100%}
@media(min-width:961px){.player .wrap{width:min(1320px,calc(100% - 48px))}}
@media(max-width:960px){.section-title{gap:8px}.dialog,.deluxe-dialog{width:min(94vw,560px)}#player .player-inner{min-height:70px}.hero-copy,.feat-copy,.pad,.post{min-width:0}}
@media(max-width:560px){#player .now strong,#player .player-status{text-wrap:nowrap;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}
@media(prefers-reduced-motion:reduce){:where(.btn,.chip,.collectible,.era,.room-door,.control,.designer-choice,.designer-slot,.designer-swatch,.retro-favorite,.furniture-tile){transition:none!important}}

/* V70 — one house, consistent names and interaction language. */
body.house-route .navlinks{gap:clamp(2px,.5vw,8px);min-width:0;flex-wrap:wrap}
body.house-route .navlinks a{font-size:clamp(.72rem,.94vw,.88rem);padding:5px clamp(4px,.5vw,8px);min-height:36px;line-height:1.25}
body.house-route .mobile-rooms a small,body.house-route .mobile-rooms .mobile-more small{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:clamp(.60rem,2.45vw,.75rem)!important;letter-spacing:0!important;line-height:1.2!important}
body.house-route .mobile-rooms a,body.house-route .mobile-rooms .mobile-more{min-width:0}
.directory-link[aria-current=page]{border-color:var(--m-accent,#e7a9c1)!important;background:var(--m-raised,#4f3348)!important;box-shadow:inset 0 0 0 1px var(--m-accent,#e7a9c1)}
/* A working, weighted wheel dressed like a little enamel-and-satin jewellery box. The casing and pointer never rotate. */
body #draw .draw-panel{gap:clamp(20px,4vw,46px);padding:clamp(15px,3.5vw,36px);align-items:center}
body #draw .wheel-side{--wheel-rim:#e8c6b5;--wheel-edge:#725065;--wheel-deep:#321e36;--wheel-metal:#bd8b9b;--wheel-light:#fff2d8;position:relative;padding:18px 10px 14px;min-width:0;isolation:isolate;border:1px solid color-mix(in srgb,var(--m-accent,#d49bb8) 48%,transparent);border-radius:15px;background:radial-gradient(ellipse at 50% 42%,#d5a7bc1a,transparent 65%),linear-gradient(145deg,#ffffff06,#00000026);box-shadow:inset 0 0 0 3px #0002}
body #draw .wheel-plaque{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--m-pale,#f9dce6);font:italic 500 clamp(.88rem,2vw,1.1rem)/1.3 var(--serif);letter-spacing:.03em;text-align:center;margin:0 0 25px;text-wrap:balance}
body #draw .wheel-plaque span{color:var(--m-accent,#edacc9);font:normal 12px system-ui}
body #draw .wheel-frame{width:min(100%,310px);margin:0 auto 21px;aspect-ratio:1;position:relative;isolation:isolate;border:0!important;border-radius:50%!important;background:radial-gradient(circle,#211526 0 65%,#b07892 65.5%,#f0c7ce 67%,#37202f 68%,#c58eaa 69%,#4f2a43 70%,#231620 72%)!important;box-shadow:0 10px 22px #10081080,0 0 0 1px #dcb2c8!important}
body #draw .wheel-frame::before{content:'';position:absolute;inset:1.5%;border-radius:50%;background:conic-gradient(from -25deg,#fff1d4,#876078 15%,#f5d1ca 28%,#583c52 46%,#fff1d4 58%,#a47787 76%,#f5d7d5 90%,#fff1d4);box-shadow:inset 0 0 0 1px #fff4,0 1px 3px #0009;z-index:-1}
body #draw .wheel-frame::after{content:'';position:absolute;inset:3.4%;border-radius:50%;border:1px dashed #fff1d5c4;box-shadow:inset 0 0 0 2px #4c324e90;pointer-events:none;z-index:1}
body #draw .ribbon-wheel{position:absolute;inset:6%;border:1px solid #7b526a;border-radius:50%;background:radial-gradient(circle,#26152e35 0%,transparent 43%,#ffffff38 62%,#1e10222a 71%),conic-gradient(from 36deg,#fff5,transparent 15%,#fff1 42%,#0001 52%,#fff4 74%,transparent 90%,#fff5),var(--wheel-slices,conic-gradient(#f4b6cc,#cba4ea,#a1d5e9,#f1ce85,#f4b6cc))!important;box-shadow:inset 0 0 0 1px #fff8,inset 0 0 14px #351d3c70,0 0 0 2px #3d273d!important;transition:transform 3.2s cubic-bezier(.12,.65,.12,1);transform-origin:50% 50%;overflow:hidden}
body #draw .ribbon-wheel::before{content:'';position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,#fff9 0deg .35deg,transparent .35deg 12deg);mask:radial-gradient(transparent 0 82%,#000 83% 94%,transparent 95%);opacity:.8;pointer-events:none}
body #draw .ribbon-wheel::after{content:'';position:absolute;inset:10%;border-radius:50%;border:1px solid #ffefd49c;box-shadow:0 0 0 1px #34213d40,inset 0 0 0 1px #34213d30;pointer-events:none}
body #draw .wheel-center{position:absolute;inset:32%;z-index:2;border:2px solid #e8c5b7;border-radius:50%;background:radial-gradient(ellipse at 35% 20%,#754968,#251526 75%);box-shadow:0 0 0 2px #42283d,0 0 0 4px #b68b9d,0 4px 12px #2c182e90,inset 0 0 0 2px #f2c8d01a;pointer-events:none}
body #draw .wheel-center img{width:91%;height:91%;object-fit:contain;filter:drop-shadow(0 2px 2px #0007)}
body #draw .wheel-pointer{position:absolute;top:-12px;left:50%;width:34px;height:42px;z-index:4;display:grid;place-items:start center;padding-top:2px;background:linear-gradient(145deg,#fff4dd,#dcafbd 40%,#976781 64%,#ffe0d8);clip-path:polygon(12% 0,88% 0,100% 33%,50% 100%,0 33%);color:#4a293f;font:700 21px/1.1 Georgia,serif;transform:translateX(-50%);transform-origin:50% 10%;filter:drop-shadow(0 3px 2px #120817aa);text-shadow:none;pointer-events:none}
body #draw .wheel-spinning .wheel-pointer{animation:v70-wheel-tick .16s steps(2,end) infinite}
body #draw .wheel-landed .wheel-center{animation:v70-wheel-settle .45s ease-out both}
@keyframes v70-wheel-tick{0%,100%{transform:translateX(-50%) rotate(-4deg)}50%{transform:translateX(-50%) rotate(6deg)}}
@keyframes v70-wheel-settle{0%,100%{transform:scale(1)}45%{transform:scale(1.075)}}
body #draw .rarity-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-width:290px;margin:auto;text-align:left;color:var(--m-pale,#f7e4ed)}
body #draw .rarity-legend span{min-width:0;display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid #ffffff14;border-radius:6px;background:#0002;font-size:.75rem;line-height:1.3}
body #draw .rarity-legend i{width:11px;height:11px;flex:0 0 11px;margin:0;box-shadow:inset 0 0 0 1px #fff8,0 0 0 1px #0004}
body #draw .draw-copy{min-width:0;gap:11px;align-content:center}
body #draw #spin-gift{min-height:48px;min-width:min(100%,220px);padding-inline:14px;font-weight:700}
body #draw #draw-status{min-height:2.7em;color:var(--m-pale,#f1d7e5);line-height:1.45}
body #draw .gift-result{flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
body #draw .gift-result[hidden]{display:none!important}
body #draw .gift-result>div{flex:1 1 115px;min-width:0}
body #draw .draw-rules{width:100%;padding-top:10px;border-top:1px solid var(--m-line,#634456);line-height:1.5}
/* Material accents are era-specific; the actual rarity colors and probability angles remain consistent. */
body[data-site-mood=poppet] #draw .wheel-frame{background:var(--pw-wood)!important;box-shadow:inset 0 0 0 3px #b99164,0 6px 14px #100704a0!important}
body[data-site-mood=poppet] #draw .wheel-center{background:var(--pw-dark)!important;border-color:#d9ad7f}
body[data-site-mood=sanguine] #draw .wheel-frame::before{background:conic-gradient(#d5beca,#534350,#c8b1c0,#2c1b2c,#dfc7d1,#534350,#d5beca)}
body[data-site-mood=sanguine] #draw .wheel-center{background:radial-gradient(ellipse at top,#681a3a,#190b1b 75%);border-color:#cbb7c5}
body[data-site-mood=plastic] #draw .wheel-side{border-radius:2px;background:linear-gradient(130deg,#44542c,#172311);box-shadow:inset 0 0 0 1px #c1d7a155}
body[data-site-mood=plastic] #draw .wheel-frame::before{background:conic-gradient(#d9f4b4,#4f7338,#b6e46c,#253b1a,#dcff9c,#719d42,#d9f4b4)}
body[data-site-mood=plastic] #draw .wheel-center{background:radial-gradient(ellipse at top,#455c2b,#14200c);border-color:#d6f797;box-shadow:0 0 0 2px #49632e,0 0 0 4px #a0c66b,0 3px 10px #0009}
body[data-site-mood=plastic] #draw .wheel-pointer{background:linear-gradient(#e3ffb6,#9aca59 48%,#527c2e);color:#14240d}
/* Clues are optional, saved discoveries remain the source of truth. */
body .v70-cluebook{padding:clamp(13px,2.5vw,22px);margin:16px 0;min-width:0;display:grid;gap:9px}
body .v70-cluebook h3{font-family:var(--serif);font-size:clamp(1.15rem,2.8vw,1.6rem);font-weight:500;line-height:1.2}
body .v70-cluebook .v70-clue-count{font-size:.82rem;color:var(--m-pale,#ead2e1);font-weight:600}
body .v70-cluebook progress{width:100%;height:8px;accent-color:var(--m-accent,#e7a9c1)}
body .v70-clue-list{display:grid;gap:6px}
body .v70-clue{border:1px solid var(--m-line,#9d7291);border-radius:7px;padding:8px 10px;background:#0002;min-width:0}
body .v70-clue summary{cursor:pointer;min-height:30px;line-height:1.4;overflow-wrap:anywhere;font-size:.88rem}
body .v70-clue summary:focus-visible{outline-offset:2px}
body .v70-clue-state{float:right;color:var(--m-pale,#e9c5d8);font-size:.73rem;padding-left:4px}
body .v70-clue p{margin:6px 0 9px;line-height:1.5}
body .v70-clue a{font-size:.8rem;min-height:40px;padding:6px 11px}
body .v70-clue.found{border-color:var(--m-accent,#e7a9c1)}
body .crest-clue{display:block;text-align:center;color:var(--m-pale,#f1d7e5);font-size:.8rem;min-height:0}
body .crest-clue:empty{display:none}
body .retro-drawer .retro-charm{width:auto;min-height:44px;max-width:100%;padding:7px 12px;border-radius:7px;font-size:.82rem;white-space:normal}
body .v70-found:not(.crest-tap){border-color:var(--m-accent,#e7a9c1)!important}
body .secret-reveal{max-width:100%;min-width:0;overflow-wrap:anywhere}
body .secret-reveal p{line-height:1.55}
body[data-motion=off] #draw .ribbon-wheel{transition:none!important}
body[data-motion=off] #draw :is(.wheel-pointer,.wheel-center){animation:none!important}
body[data-motion=off] :is(.retro-pop,.retro-wiggle){animation:none!important}
@media(max-width:620px){body #draw .draw-panel{grid-template-columns:minmax(0,1fr);gap:18px}body #draw .wheel-frame{width:min(100%,255px)}body #draw .wheel-side{padding:15px 9px 12px}body #draw .wheel-plaque{margin-bottom:22px}body #draw #spin-gift{width:100%}}
@media(prefers-reduced-motion:reduce){body #draw .ribbon-wheel{transition:none!important}body #draw :is(.wheel-pointer,.wheel-center){animation:none!important}}

/* V85 — quiet, tactile interaction. No perpetual extra loops or layout-moving panel hover. */
body :is(.post,.panel):hover{transform:none}
body :is(.room-menu a,.mobile-rooms a,.navlinks a){position:relative}
body :is(.room-menu a,.mobile-rooms a,.navlinks a)[aria-current=page]{text-decoration-color:var(--m-accent,#edb5ce);text-underline-offset:4px}
body :is(.btn,.chip,.control,.designer-choice,.designer-slot,.designer-swatch,.mood-choice,.glitter-tab,.crooked-page-button,.sg-file,.signature-play){touch-action:manipulation}
body :is(.btn,.chip,.control,.designer-choice,.designer-slot,.designer-swatch,.mood-choice,.glitter-tab,.crooked-page-button,.sg-file):focus-visible{outline:2px solid var(--m-accent,#efc3d7);outline-offset:3px}
body :is(.card-meta,.signature-controls,.signature-preview,.companion-card,.book-tabs,.designer-edit,.whisper-form,.room-menu){min-width:0;overflow-wrap:anywhere}
body :is(.btn,.chip,.control,.designer-slot,.designer-choice,.designer-swatch,.mood-choice,.glitter-tab,.crooked-page-button,.sg-file):disabled{cursor:not-allowed}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 body:not([data-motion=off]) :is(.room-door,.collectible,.era){transition:transform .26s cubic-bezier(.2,.8,.25,1),border-color .2s,box-shadow .25s}
 body:not([data-motion=off]) :is(.room-door,.collectible,.era):hover{transform:translateY(-3px);border-color:var(--m-accent,#e6b3cc)}
 body:not([data-motion=off]) :is(.room-door,.card-image) img{transition:transform .45s cubic-bezier(.2,.75,.3,1)}
 body:not([data-motion=off]) .card-image:hover img{transform:scale(1.035)}
}
@media(prefers-reduced-motion:no-preference){
 body:not([data-motion=off]) :is(.btn,.chip,.designer-slot,.designer-choice,.designer-swatch,.mood-choice,.glitter-tab,.crooked-page-button):not(:disabled):active{transform:scale(.965);transition:transform .09s ease}
 body:not([data-motion=off]) :is(.room-menu a,.mobile-rooms a)[aria-current=page] span{animation:v85-little-bow .38s cubic-bezier(.2,.8,.35,1) both}
 body:not([data-motion=off]) .card-image:focus-visible img{transform:scale(1.02)}
}
@keyframes v85-little-bow{0%{transform:rotate(-7deg) scale(.9)}55%{transform:rotate(6deg) scale(1.12)}100%{transform:rotate(0) scale(1)}}
@media(hover:none){body :is(.panel,.post,.collectible,.era,.room-door):hover{transform:none}body .card-image:hover img{transform:none}}
body[data-motion=off] :is(.room-door,.card-image,.collectible,.era,.panel,.post,.room-menu a,.mobile-rooms a,.btn,.chip,.designer-slot,.designer-choice,.designer-swatch,.mood-choice,.glitter-tab,.crooked-page-button){transition:none!important}
body[data-motion=off] :is(.room-door,.collectible,.era,.panel,.post):hover,body[data-motion=off] .card-image:hover img{transform:none!important}
body[data-motion=off] :is(.room-menu a,.mobile-rooms a) span{animation:none!important}
@media(prefers-reduced-motion:reduce){body :is(.room-door,.collectible,.era,.panel,.post):hover,body .card-image:hover img{transform:none!important}body :is(.room-menu a,.mobile-rooms a) span{animation:none!important}}
