/* M5 PETS 1.0.0 — fully scoped responsive game interface */
.m5p{--navy:#123d72;--blue:#1680ed;--line:#d5e6f8;--pale:#f3f9ff;--shadow:0 14px 35px rgba(23,74,132,.12);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#18385e;max-width:1220px;margin:20px auto 60px;padding:0 14px;box-sizing:border-box;font-size:15px}.m5p *{box-sizing:border-box}.m5p button,.m5p input{font:inherit}.m5p button{cursor:pointer}.m5p button:disabled{cursor:not-allowed;opacity:.55}.m5p [hidden]{display:none!important}.m5p .m5p-banner{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 25px;background:linear-gradient(125deg,#135fb8 0%,#168cf6 55%,#82d6ff 100%);color:#fff;border-radius:23px;box-shadow:0 15px 30px rgba(30,101,170,.24);border:1px solid rgba(255,255,255,.45);overflow:hidden;position:relative}.m5p-banner:after{content:"🐾";position:absolute;right:31%;top:-50px;color:rgba(255,255,255,.1);font-size:160px;transform:rotate(-22deg);pointer-events:none}.m5p-brand{font-size:clamp(28px,3.8vw,47px);font-weight:1000;letter-spacing:-1.8px;line-height:1;text-shadow:0 3px 0 #114679;white-space:nowrap}.m5p-brand>span:not(.m5p-brand-icon){color:#dcf5ff}.m5p-brand-icon{font-size:38px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}.m5p-brand small{display:block;font-size:12px;letter-spacing:.3px;font-weight:750;text-shadow:none;margin:10px 0 0 5px}.m5p-banner-side{position:relative;z-index:1;display:flex;align-items:flex-end;flex-direction:column;gap:9px}.m5p-coin{display:inline-flex;align-items:center;gap:8px;background:#082e58e8;border:1px solid #b1d8ff;padding:9px 18px;border-radius:25px;font-size:21px;box-shadow:0 4px 9px #0d447a33}.m5p-coin strong{color:#fff}.m5p-badge{font-size:11px;font-weight:800;color:#e8faff;letter-spacing:.1px}.m5p-loading,.m5p-required{margin:20px 0;background:#edf7ff;border:1px solid var(--line);padding:35px;text-align:center;border-radius:18px}.m5p-section-title{display:flex;align-items:center;gap:13px;padding:2px 0 16px}.m5p-section-title>span{font-size:32px}.m5p-section-title h2{font-size:25px;color:#0a4784;margin:0}.m5p-section-title p{font-size:14px;color:#66819c;margin:3px 0 0}.m5p-adopt{padding:25px 0}.m5p-adopt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.m5p-pet-choice{width:100%;padding:12px;border:2px solid #d9eafa;background:#fff;border-radius:22px;box-shadow:var(--shadow);text-align:center;transition:.15s transform,.15s border-color;display:flex;flex-direction:column;align-items:center;gap:7px}.m5p-pet-choice:hover,.m5p-pet-choice:focus-visible{transform:translateY(-4px);border-color:#4c9cf5}.m5p-pet-choice img{width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center 30%;border-radius:17px}.m5p-pet-choice b{font-size:23px;color:#114e89}.m5p-pet-choice span{font-size:13px;color:#617c96}.m5p-pet-choice strong{display:block;width:94%;margin-top:auto;padding:12px;color:#fff;border-radius:12px;background:linear-gradient(#22adff,#136dd4);font-size:15px}.m5p-pet-choice:nth-child(2) strong{background:linear-gradient(#fc83ae,#ee4e83)}.m5p-pet-choice:nth-child(3) strong{background:linear-gradient(#7add7b,#239953)}.m5p-tabs{margin:15px 0;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;background:#eaf5ff;padding:9px;border:1px solid #d6e9f7;border-radius:17px}.m5p-tabs button{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:12px;min-height:62px;padding:8px 3px;background:#fff;color:#226294;font-size:23px;box-shadow:0 2px 7px #2970b21c}.m5p-tabs button span{font-size:11px;font-weight:850;line-height:1.18}.m5p-tabs button.active{background:linear-gradient(#39b0fa,#0968c9);color:#fff;border-color:#0066c7;box-shadow:0 5px 10px #0968c93b}.m5p-warning{padding:15px 19px;border-radius:15px;margin:0 0 13px;background:#fff1f1;color:#943044;border:1px solid #ffc4d2;font-weight:750;line-height:1.5}.m5p-warning.hospital{background:#fff2dc;border-color:#ffe0a1;color:#a26311}.m5p-warning.dead{background:#eceef2;color:#626877;border-color:#cad0d9}.m5p-dashboard{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.95fr);gap:16px;align-items:stretch}.m5p-scene{border-radius:22px;padding:9px;background:linear-gradient(155deg,#e5f6ff,#e8f2fc);border:1px solid var(--line);box-shadow:var(--shadow);min-height:410px}.m5p-scene-inner{position:relative;border-radius:17px;overflow:hidden;min-height:100%;height:100%;background:linear-gradient(145deg,#ffecb1,#b8e6ff)}.m5p-scene img{display:block;width:100%;height:400px;object-fit:cover;object-position:center;transition:filter .4s}.m5p-scene.is-sleep img{filter:brightness(.55) saturate(.8)}.m5p-scene.is-hospital img{filter:saturate(.5)}.m5p-scene-top{position:absolute;left:13px;right:13px;top:13px;display:flex;justify-content:space-between;align-items:start;gap:8px;z-index:1}.m5p-scene-top span{background:#ffffffef;padding:8px 12px;border-radius:13px;color:#0d5592;font-size:13px;font-weight:850;box-shadow:0 3px 12px #253c4b24}.m5p-speech{position:absolute;left:13px;bottom:14px;max-width:86%;background:#fffefaed;box-shadow:0 7px 22px #13385b30;padding:11px 16px;border:2px solid white;border-radius:18px;font-weight:850;color:#0e5183;font-size:14px}.m5p-stats{background:#fff;border:1px solid var(--line);border-radius:21px;box-shadow:var(--shadow);padding:21px;display:flex;flex-direction:column;gap:13px}.m5p-pet-name-line{display:flex;justify-content:space-between;align-items:center}.m5p-pet-name-line h2{font-size:29px;line-height:1.15;margin:5px 0 0;color:#0c4a86}.m5p-pet-name-line small{font-weight:800;color:#6f91b1;font-size:10px;letter-spacing:1px}.m5p-icon-button{border:1px solid #cee1f3;border-radius:10px;background:#ecf7ff;padding:10px;font-size:16px}.m5p-facts{display:flex;flex-wrap:wrap;gap:7px}.m5p-facts span{font-size:11px;font-weight:650;background:#eef7ff;padding:8px 10px;border-radius:9px;color:#36638a}.m5p-meter{margin:8px 0}.m5p-meter-label{display:flex;justify-content:space-between;font-weight:800;font-size:12px;margin-bottom:5px;color:#346186}.m5p-meter-rail{height:13px;border-radius:20px;background:#e7eef9;box-shadow:inset 0 2px 4px #00000012;overflow:hidden}.m5p-meter-fill{height:100%;border-radius:20px;transition:width .4s;background:linear-gradient(#6bd9ff,#278af2)}.m5p-meter[data-key=hunger] .m5p-meter-fill{background:linear-gradient(#ffe66a,#ff9935)}.m5p-meter[data-key=health] .m5p-meter-fill{background:linear-gradient(#ffa0ad,#f94d80)}.m5p-meter[data-key=energy] .m5p-meter-fill{background:linear-gradient(#99f87c,#3bba56)}.m5p-meter[data-key=happiness] .m5p-meter-fill{background:linear-gradient(#ffbef5,#eb63d8)}.m5p-level{background:linear-gradient(120deg,#fff9df,#ffefb9);padding:14px;border:1px solid #ffe5aa;border-radius:15px;margin-top:auto}.m5p-level>div:first-child{display:flex;justify-content:space-between;gap:6px;font-size:12px;margin-bottom:8px}.m5p-level strong{color:#946019}.m5p-level small{display:block;font-size:11px;color:#a67827;margin-top:7px;line-height:1.4}.m5p-track{height:12px;background:white;border-radius:9px;overflow:hidden}.m5p-track span{display:block;height:100%;background:linear-gradient(90deg,#ffd43e,#fa9430)}.m5p-panel{margin-top:16px;background:#fff;border:1px solid #d0e5f8;border-radius:22px;box-shadow:var(--shadow);padding:23px;min-height:220px}.m5p-titleline{display:flex;align-items:center;gap:10px;margin-bottom:14px}.m5p-titleline h2{margin:0;font-size:25px;color:#104f88}.m5p-titleline .m5p-leadicon{font-size:29px}.m5p-titleline small{font-size:13px;color:#708fa8}.m5p-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.m5p-hint{padding:17px 20px;border-radius:15px;background:linear-gradient(110deg,#e8f7ff,#f4fbff);border:1px solid #c9e7f7;color:#315e86;line-height:1.55;font-size:14px}.m5p-hint b{color:#125991}.m5p-warninglight{background:linear-gradient(110deg,#fff8e8,#fff1e3);border-color:#ffe2af;color:#946024}.m5p-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:7px;border:1px solid transparent;padding:12px 19px;min-height:43px;border-radius:12px;font-weight:850;text-decoration:none;line-height:1.1;font-size:14px;transition:transform .13s,box-shadow .13s}.m5p-button:active{transform:scale(.98)}.m5p-primary{background:linear-gradient(#28a9fb,#0868ca);color:#fff!important;box-shadow:0 3px 0 #0b569d}.m5p-green{background:linear-gradient(#7ae45b,#1baa44);color:#fff!important;box-shadow:0 3px 0 #158a35}.m5p-pink{background:linear-gradient(#ff80ab,#ee357c);color:#fff!important;box-shadow:0 3px 0 #bf265b}.m5p-violet{background:linear-gradient(#b975ff,#7134d2);color:#fff!important;box-shadow:0 3px 0 #5630a5}.m5p-outline{background:#edf7ff;color:#1769a9!important;border-color:#badcf6}.m5p-amber{background:linear-gradient(#ffd86c,#ffa82d);color:#7a4810!important;box-shadow:0 3px 0 #d78318}.m5p-button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.m5p-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:17px}.m5p-tile{border:1px solid #d8e9f8;background:#f8fcff;border-radius:16px;padding:17px;display:flex;align-items:start;gap:12px}.m5p-tile>span{font-size:30px}.m5p-tile b{display:block;color:#135388}.m5p-tile small{font-size:12px;line-height:1.5;color:#708ba3;display:block;margin-top:3px}.m5p-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:14px}.m5p-product{text-align:center;background:#f7fbff;border:1px solid #d5e7fa;border-radius:16px;padding:15px 9px;display:flex;flex-direction:column;align-items:center;gap:8px}.m5p-product .m5p-emoji{font-size:48px;line-height:1.2;filter:drop-shadow(0 3px 2px #0000001a)}.m5p-product strong{font-size:13px;color:#174e85}.m5p-product small{display:block;color:#71899c;font-size:12px}.m5p-product .m5p-button{width:100%;margin-top:auto;padding:10px 6px;min-height:39px}.m5p-price{font-weight:850;color:#a97818}.m5p-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;margin:12px 4px;color:#7893ac}.m5p-minimal{color:#236fae;background:none;border:0;font-size:12px;font-weight:750}.m5p-progress-box{display:flex;align-items:center;gap:17px;background:#f0f8ff;border-radius:16px;border:1px solid #d0e6f8;padding:18px}.m5p-progress-box>span{font-size:42px}.m5p-progress-box strong{color:#114e85}.m5p-progress-box p{margin:5px 0 0;font-size:13px;line-height:1.45}.m5p-clock{font-size:29px;color:#1760a7;font-weight:900;line-height:1.2;margin:10px 0}.m5p-game-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.m5p-game-card{border:2px solid #cfe5fa;border-radius:16px;overflow:hidden;background:linear-gradient(#fbfdff,#f0f8ff);padding:18px 12px;text-align:center}.m5p-game-card>span{font-size:50px;display:block}.m5p-game-card h3{font-size:18px;color:#12558a;margin:4px 0}.m5p-game-card p{color:#6884a0;font-size:12px;min-height:44px}.m5p-game-card .m5p-button{width:100%}.m5p-arcade-top{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:15px}.m5p-arcade-hud{display:flex;gap:8px;flex-wrap:wrap}.m5p-arcade-hud b{background:#eaf7ff;color:#175993;border:1px solid #cae4f6;border-radius:10px;padding:9px 12px;font-size:13px}.m5p-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,96px));gap:9px;justify-content:center;max-width:500px;margin:15px auto}.m5p-memory-card{aspect-ratio:1;border:2px solid #aedaff;border-radius:15px;background:linear-gradient(155deg,#a1c9ff,#477ee2);color:#fff;font-size:34px;display:grid;place-items:center;box-shadow:0 4px 0 #3e75c4;user-select:none}.m5p-memory-card.open,.m5p-memory-card.done{background:#fff7e2;border-color:#ffcf7a;box-shadow:0 3px 0 #f7c86d}.m5p-memory-card.done{background:#e5ffe8;border-color:#78cf98}.m5p-catch-stage{height:380px;overflow:hidden;position:relative;background:linear-gradient(180deg,#8edbff,#d9f9ff 60%,#b1df83 61%,#67b766 100%);border-radius:18px;border:4px solid #c8e6fb;touch-action:manipulation}.m5p-falling{position:absolute;top:-55px;width:54px;height:54px;display:grid;place-items:center;font-size:42px;background:#ffffffaa;border-radius:50%;border:2px solid #fff;animation:m5pfalldown 3.2s linear forwards;cursor:pointer;user-select:none}.m5p-catch-dog{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);font-size:55px;pointer-events:none}.m5p-arcade-message{text-align:center;color:#165b92;font-weight:850;min-height:30px;padding:8px 0}.m5p-run-stage{height:350px;position:relative;overflow:hidden;background:linear-gradient(#a9e5ff,#dcf8ff 63%,#70bf6b 64%,#4a9b42);border-radius:18px;border:3px solid #d2ecff}.m5p-run-pet{position:absolute;bottom:40px;left:12%;font-size:100px;filter:drop-shadow(0 8px 4px #0002);transition:transform .2s}.m5p-run-item{position:absolute;bottom:56px;right:12%;font-size:66px;animation:m5ppulse .7s alternate infinite}.m5p-run-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:15px}.m5p-modal-backdrop{position:fixed;inset:0;z-index:999990;background:rgba(6,29,56,.72);display:grid;place-items:center;padding:15px}.m5p-modal{width:min(410px,100%);background:#fff;border-radius:19px;padding:24px;box-shadow:0 18px 50px #0005}.m5p-modal h3{font-size:22px;color:#125488;margin:0 0 9px}.m5p-modal p{font-size:14px;color:#607e97;line-height:1.5}.m5p-modal input{width:100%;border:2px solid #bfdaed;border-radius:10px;padding:12px;margin:7px 0 15px}.m5p-modal-actions{display:flex;justify-content:flex-end;gap:9px}.m5p-toast{position:fixed;bottom:20px;right:20px;z-index:999999;padding:14px 19px;background:#0a4f86;color:white;border-radius:14px;font-weight:750;box-shadow:0 12px 35px #082f5b50;max-width:min(420px,90vw);opacity:0;pointer-events:none;transform:translateY(14px);transition:opacity .2s,transform .2s}.m5p-toast.show{opacity:1;transform:translateY(0)}.m5p-toast.error{background:#b43149}.m5p-info{border:1px solid #ffe1a4;background:#fff7e5;color:#946318;padding:13px;border-radius:12px;margin-bottom:14px}.m5p-steps{margin:0;padding-left:19px;color:#476a8a;line-height:1.9;font-size:14px}.m5p-steps b{color:#154e7f}.m5p-ribbon{font-size:12px;color:#718ba1;margin-bottom:8px}.m5p-arcade-shell{max-width:900px;margin:auto}.m5p-preview-photo{height:160px;background-size:cover;background-position:center;border-radius:13px;margin-bottom:10px}.m5p-hero-text{font-size:17px;font-weight:850;color:#164b84}.m5p-tiny{color:#6887a2;font-size:12px;line-height:1.6}.m5p-sky-sleep{background:linear-gradient(#1b2b7f,#6075be)!important}.m5p-sky-hospital{background:linear-gradient(#ffdae1,#f4faff)!important}
@keyframes m5pfalldown{to{transform:translateY(440px) rotate(20deg)}}@keyframes m5ppulse{to{transform:translateY(-8px) scale(1.05)}}
@media(max-width:1000px){.m5p-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.m5p-dashboard{grid-template-columns:1fr}.m5p-scene{min-height:360px}.m5p-scene img{height:400px}.m5p-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:630px){.m5p{padding:0 8px;margin-top:10px}.m5p-banner{padding:14px!important;border-radius:17px!important}.m5p-brand{font-size:31px}.m5p-brand-icon{font-size:24px}.m5p-brand small{font-size:9px;margin-top:8px;letter-spacing:0}.m5p-badge{display:none}.m5p-coin{padding:8px 10px;font-size:15px}.m5p-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px}.m5p-tabs button{min-height:57px;font-size:21px}.m5p-tabs button span{font-size:10px}.m5p-scene{min-height:270px;padding:6px}.m5p-scene img{height:300px}.m5p-speech{font-size:11px}.m5p-stats,.m5p-panel{padding:15px;border-radius:16px}.m5p-two{grid-template-columns:1fr}.m5p-tiles{grid-template-columns:1fr 1fr}.m5p-products{grid-template-columns:repeat(2,minmax(0,1fr))}.m5p-adopt-grid{grid-template-columns:1fr}.m5p-pet-choice{display:grid;grid-template-columns:120px 1fr;text-align:left;align-items:center}.m5p-pet-choice img{grid-row:span 3;height:126px;aspect-ratio:auto}.m5p-pet-choice strong{width:100%;text-align:center}.m5p-game-cards{grid-template-columns:1fr}.m5p-game-card p{min-height:0}.m5p-titleline h2{font-size:22px}.m5p-catch-stage{height:320px}}
@media(max-width:360px){.m5p-brand{font-size:25px}.m5p-brand-icon{font-size:22px}.m5p-coin{padding:6px 8px;font-size:13px}.m5p-tiles{grid-template-columns:1fr}.m5p-pet-choice{grid-template-columns:102px 1fr}.m5p-pet-choice img{height:114px}}
@media(prefers-reduced-motion:reduce){.m5p *{transition:none!important}.m5p-falling{animation-duration:3.2s}}

/* M5 PETS 1.1 — opis korzyści przedmiotów, spacer i płynne mini-gry */
.m5p-walking-banner {background:linear-gradient(100deg,#ecfff4,#dbf7e4);border-color:#91d9ac;color:#1c7444;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.m5p-walking-banner strong {font-variant-numeric:tabular-nums;background:#fff;border:1px solid #a5dfb9;border-radius:9px;padding:5px 10px;color:#126a42;font-size:18px}
.m5p-product-detailed {align-items:stretch;padding:16px 13px;background:linear-gradient(150deg,#fff,#eef8ff);border-radius:19px;box-shadow:0 7px 20px #19548f0d;min-height:287px}
.m5p-product-detailed .m5p-emoji {height:58px;font-size:47px}
.m5p-product-detailed strong {font-size:15px;color:#0c4d83}
.m5p-product-description {color:#476e91;font-size:12px;line-height:1.45;margin:2px 0 0;min-height:52px}
.m5p-product-effects {padding:8px 10px;margin:3px 0 4px;text-align:left;list-style:none;width:100%;background:#e8f6ed;border:1px solid #d3ebd9;border-radius:10px;color:#167143;font-size:11px;font-weight:740;line-height:1.52}
.m5p-product-effects li {overflow-wrap:anywhere}
.m5p-product-detailed small {font-size:12px;color:#3e6d97;min-height:21px}
.m5p-product-detailed .m5p-button {width:100%;margin-top:auto}
.m5p-walk-layout {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:15px;align-items:stretch}
.m5p-walk-art {min-height:330px;overflow:hidden;position:relative;display:flex;justify-content:center;align-items:center;border:2px solid #c7e4fa;border-radius:18px;background-color:#d1f8eb;background-size:cover;background-position:center}
.m5p-walk-art img {max-width:64%;max-height:300px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 14px 12px #153e4255);animation:m5p-walk-bob 1.35s ease-in-out infinite alternate}
.m5p-walk-art span {position:absolute;bottom:12px;left:12px;color:#064776;background:#f9ffffed;border:1px solid white;border-radius:16px;padding:9px 14px;font-weight:900}
.m5p-walk-info {border:1px solid #cce4f4;background:linear-gradient(140deg,#f4fcff,#eaf7ff);border-radius:18px;padding:25px;display:flex;flex-direction:column;justify-content:center;color:#2a648c;line-height:1.6}
.m5p-walk-info h3 {font-size:21px;margin:0 0 10px;color:#145a88}
.m5p-walk-info p{margin:7px 0 13px;font-size:13px}
.m5p-walk-info .m5p-button {width:100%;margin-top:10px}
.m5p-walk-time {font-weight:950;letter-spacing:.04em;font-size:clamp(36px,5vw,62px);color:#097a54;font-variant-numeric:tabular-nums;text-align:center}
.m5p-walk-track{height:18px;border-radius:15px;background:#fff;border:1px solid #bbdbec;overflow:hidden;box-shadow:inset 0 2px 6px #3271a329}
.m5p-walk-track span {height:100%;display:block;border-radius:15px;background:linear-gradient(90deg,#30b9ed,#5ce66c);transition:width .5s}
@keyframes m5p-walk-bob{from{transform:translateY(4px)}to{transform:translateY(-8px)}}
.m5p-canvas-shell {max-width:100%;overflow:hidden;border:5px solid #e4f5ff;border-radius:24px;box-shadow:0 9px 25px #245b8a25;background:#cceeff;touch-action:none}
#m5p-arcade-canvas {width:100%;height:auto;aspect-ratio:2/1;display:block;touch-action:none;user-select:none;outline:none}
#m5p-arcade-canvas:focus-visible{outline:3px solid #3eacfc;outline-offset:-6px}
.m5p-game-controls {display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:12px}
.m5p-game-controls span{color:#1c6698;font-size:13px;font-weight:760;text-align:center}
.m5p-control-btn {border:2px solid #c7edff;background:linear-gradient(#44c3ff,#1484d8);color:#fff;border-radius:16px;min-height:58px;min-width:116px;padding:12px 19px;font-size:17px;font-weight:900;touch-action:none;box-shadow:0 4px 0 #0d63a2}
.m5p-control-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #0d63a2}
.m5p-jump-control {min-width:240px;min-height:56px;font-size:17px}
@media(max-width:780px){.m5p-walk-layout{grid-template-columns:1fr}.m5p-walk-art{min-height:260px}.m5p-walk-art img{max-height:220px}.m5p-product-detailed{min-height:275px}.m5p-product-description{min-height:0}.m5p-game-controls{gap:8px}.m5p-game-controls span{order:3;flex-basis:100%}}
@media(max-width:430px){.m5p-product-detailed{padding:12px 8px;min-height:300px}.m5p-product-effects{font-size:10px;padding:8px 5px}.m5p-product-description{font-size:11px}.m5p-product-detailed strong{font-size:13px}.m5p-control-btn{min-width:100px}.m5p-game-controls{margin-top:8px}.m5p-arcade-hud b{padding:5px 7px;font-size:11px}.m5p-arcade-top{gap:4px}}

/* =====================================================================
   M5 PETS 2.0 — animated scene system (no static full-scene photo)
   Decorative visuals use local assets; no third-party requests.
   ===================================================================== */
.m5p-scene{background:linear-gradient(135deg,#e5f5ff,#f4f9ff);min-height:485px}
.m5p-scene-inner{min-height:470px!important;isolation:isolate;position:relative;background:#c9e9ff;}
.m5p-scene-world{height:470px;position:relative;width:100%;overflow:hidden;isolation:isolate;transition:background .45s ease}
.m5p-scene-world:before,.m5p-scene-world:after{content:"";position:absolute;pointer-events:none}
.m5p-scene-ground{position:absolute;bottom:0;left:0;right:0;height:25%;border-top:7px solid #ffffff66;background:linear-gradient(140deg,#d1a274,#efc99a,#c98f63)}
.m5p-scene-light{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 60% 24%,#fff9 0%,transparent 47%);animation:m5p-light 7s ease-in-out infinite alternate}
.m5p-scene-props{position:absolute;bottom:32px;left:4%;right:4%;text-align:right;font-size:clamp(34px,6vw,65px);filter:drop-shadow(0 6px 5px #14375a40);z-index:2;word-spacing:25px;user-select:none;pointer-events:none;animation:m5p-props 4s ease-in-out infinite alternate}
.m5p-scene .m5p-animated-pet{position:absolute!important;z-index:3;bottom:12%!important;left:45%!important;max-width:unset!important;width:min(60%,325px)!important;height:72%!important;object-fit:contain!important;object-position:center bottom!important;pointer-events:none;user-select:none;filter:drop-shadow(0 18px 12px #142d4166);animation:m5p-idle 3.4s ease-in-out infinite;}
.m5p-scene-fx{position:absolute;top:24%;left:15%;right:9%;font-size:clamp(24px,4vw,50px);z-index:5;text-align:center;opacity:0;pointer-events:none;text-shadow:0 4px 10px #07335852}
.m5p-scene-fx.go{animation:m5p-celebrate 1.8s both}
.m5p-scene-top{z-index:7!important}.m5p-speech{z-index:8!important;font-size:13px}
.m5p-scene-home .m5p-scene-world,.m5p-scene-feed .m5p-scene-world,.m5p-scene-play .m5p-scene-world{background:radial-gradient(ellipse at 69% 20%,#fff3b9bb,transparent 50%),linear-gradient(165deg,#fff3d9,#fbd2af 60%,#ffc08e)}
.m5p-scene-home .m5p-scene-world:before,.m5p-scene-feed .m5p-scene-world:before,.m5p-scene-play .m5p-scene-world:before{left:7%;top:14%;width:39%;height:48%;border:13px solid #f6ffff;box-shadow:0 8px 0 #b9866999,0 0 0 6px #dbbfa0;border-radius:34px;background:radial-gradient(circle at 75% 19%,#ffe46f,transparent 26%),linear-gradient(#7bc8f9,#cfedfc 62%,#70b87a 63%,#4b9f6c)}
.m5p-scene-feed .m5p-scene-ground{background:linear-gradient(145deg,#dfaa78,#edc295)}
.m5p-scene-bath .m5p-scene-world{background:radial-gradient(circle at 50% 5%,#fff,#ffffff00 45%),repeating-linear-gradient(0deg,transparent 0 70px,#fff9 71px 74px),repeating-linear-gradient(90deg,#c2edfa 0 80px,#e3faff 81px 84px)}
.m5p-scene-bath .m5p-scene-ground{height:28%;background:linear-gradient(135deg,#c3e8f7,#b5dded);border-color:#e1faff}
.m5p-scene-bath .m5p-scene-world:before{bottom:12%;left:25%;right:17%;height:21%;background:linear-gradient(#fff,#9bdfff);border:8px solid #fff;border-radius:20px 20px 65px 65px;box-shadow:0 10px 25px #2a6f9e55;z-index:4;pointer-events:none}
.m5p-scene-bath .m5p-animated-pet{bottom:14%!important;animation:m5p-bath 2.6s ease-in-out infinite}
.m5p-scene-walk .m5p-scene-world,.m5p-scene-arcade .m5p-scene-world{background-image:linear-gradient(#6febff12,#95deaa33),url('img/forest-bg.webp');background-position:center;background-size:cover}
.m5p-scene-walk .m5p-scene-world{animation:m5p-forest-pan 14s ease-in-out infinite alternate}
.m5p-scene-walk .m5p-scene-ground,.m5p-scene-arcade .m5p-scene-ground{background:linear-gradient(#b8e277,#7ec667);border-color:#eaffce}
.m5p-scene-walk .m5p-animated-pet{animation:m5p-walking 1.05s ease-in-out infinite}
.m5p-scene-sleep .m5p-scene-world{background:radial-gradient(circle at 77% 25%,#fff4bf 0 7%,transparent 8%),radial-gradient(circle at 78% 24%,#f4e6a960,transparent 18%),linear-gradient(155deg,#191d5e,#45458a 55%,#7e66a8)}
.m5p-scene-sleep .m5p-scene-ground{height:29%;background:linear-gradient(150deg,#795eab,#a398d7);border-color:#c9c4ff}
.m5p-scene-sleep .m5p-scene-world:before{left:15%;bottom:8%;width:68%;height:28%;background:linear-gradient(125deg,#a6dafa,#4e80d1);border:13px solid #fff9;border-radius:55px 55px 26px 26px;box-shadow:0 15px 25px #0006;z-index:2}
.m5p-scene-sleep .m5p-animated-pet{bottom:19%!important;animation:m5p-sleep 4.5s ease-in-out infinite}
.m5p-scene-sleep .m5p-scene-props{bottom:62%;text-shadow:0 0 17px #fff5}
.m5p-scene-hospital .m5p-scene-world{background:linear-gradient(#eaf9ff,#d4ecf5),repeating-linear-gradient(90deg,#b2dce7 0 4px,transparent 4px 90px)}
.m5p-scene-hospital .m5p-scene-ground{background:linear-gradient(130deg,#eff8ff,#c8dfed)}
.m5p-scene-hospital .m5p-scene-world:before{content:'✚';display:grid;place-items:center;left:8%;top:15%;width:85px;height:85px;color:#e94e66;font-size:70px;background:#fffffff2;border-radius:22px;box-shadow:0 9px 22px #0d4a6a30}
.m5p-scene-hospital .m5p-animated-pet,.m5p-scene-sick .m5p-animated-pet{animation:m5p-sick 3s ease-in-out infinite;filter:saturate(.62) drop-shadow(0 10px 10px #3459)}
.m5p-scene-shop .m5p-scene-world{background:radial-gradient(circle at 80% 6%,#fff5be,transparent 40%),linear-gradient(170deg,#fff1dc,#fee7c3 67%,#fcbda1)}
.m5p-scene-shop .m5p-scene-world:before{content:'★ ★ ★';display:grid;place-items:center;position:absolute;top:19%;left:10%;right:10%;height:85px;border:8px solid #fff;color:#ffcf4c;background:linear-gradient(#ee5b8b,#ba357a);border-radius:20px;box-shadow:0 13px 20px #411e4050;font-size:40px;letter-spacing:12px}
.m5p-scene-shop .m5p-animated-pet{animation:m5p-play 2s ease-in-out infinite}
.m5p-scene-play .m5p-animated-pet,.m5p-scene-arcade .m5p-animated-pet{animation:m5p-play 2s ease-in-out infinite}
.m5p-wallets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}
.m5p-wallet{background:linear-gradient(135deg,#eaf7ff,#ffffff);border:2px solid #c8e6ff;border-radius:16px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:800;color:#155c94}
.m5p-wallet strong{font-size:23px;color:#0b4779}
.m5p-packages-section{margin-top:24px;border:2px solid #ffe5aa;background:linear-gradient(140deg,#fff9e8,#fff3d6);padding:20px;border-radius:21px}
.m5p-packages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.m5p-package{border:2px solid #f5dca4;background:#fff;border-radius:18px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:10px;padding:16px 10px;box-shadow:0 6px 0 #ffe6b9}
.m5p-package h3{margin:0;color:#174d7a;font-size:18px}.m5p-package strong{font-size:16px;color:#a67a12}.m5p-package small{background:#eff7ff;padding:7px;border-radius:9px;color:#174e7b;font-weight:800}.m5p-pack-sparkle{font-size:46px;filter:drop-shadow(0 3px 2px #db9c35a3);animation:m5p-pack-bob 2s ease-in-out infinite alternate}.m5p-package .m5p-button{margin-top:auto;width:100%}
@keyframes m5p-idle{0%,100%{transform:translateY(3px) scale(var(--pet-size)) rotate(-1deg)}45%{transform:translateY(-9px) scale(calc(var(--pet-size)*1.025)) rotate(1deg)}}
@keyframes m5p-walking{0%,100%{transform:translate(-9px,1px) scale(var(--pet-size)) rotate(-3deg)}50%{transform:translate(18px,-7px) scale(var(--pet-size)) rotate(3deg)}}
@keyframes m5p-bath{0%,100%{transform:translateY(0) scale(var(--pet-size)) rotate(-2deg)}50%{transform:translateY(-8px) scale(var(--pet-size)) rotate(3deg)}}
@keyframes m5p-sleep{0%,100%{transform:translateY(9px) scale(var(--pet-size)) rotate(-7deg)}50%{transform:translateY(14px) scale(calc(var(--pet-size)*.985)) rotate(-7deg)}}
@keyframes m5p-sick{0%,100%{transform:translateY(4px) scale(var(--pet-size)) rotate(-2deg)}50%{transform:translateY(0) scale(var(--pet-size)) rotate(-2deg)}}
@keyframes m5p-play{0%,100%{transform:translateY(0) scale(var(--pet-size)) rotate(-6deg)}50%{transform:translateY(-23px) scale(calc(var(--pet-size)*1.02)) rotate(6deg)}}
@keyframes m5p-light{to{opacity:.45;transform:translateX(-4%)}}@keyframes m5p-props{to{transform:translateY(-7px) rotate(2deg)}}@keyframes m5p-celebrate{0%{opacity:0;transform:translateY(40px) scale(.7)}32%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(-100px) scale(1.4)}}
@keyframes m5p-forest-pan{from{background-position:40% center}to{background-position:60% center}}@keyframes m5p-pack-bob{to{transform:translateY(-4px) rotate(7deg)}}
@media(max-width:760px){.m5p-scene{min-height:360px}.m5p-scene-inner{min-height:355px!important}.m5p-scene-world{height:355px}.m5p-scene .m5p-animated-pet{height:70%!important;max-width:70%!important}.m5p-packages{grid-template-columns:repeat(2,minmax(0,1fr))}.m5p-wallets{grid-template-columns:1fr}.m5p-scene-world .m5p-scene-props{font-size:35px;word-spacing:8px}}
@media(max-width:380px){.m5p-packages{gap:7px}.m5p-package{padding:12px 7px}.m5p-scene-world{height:315px}.m5p-scene-inner{min-height:315px!important}}
@media(prefers-reduced-motion:reduce){.m5p-scene-world,.m5p-scene-props,.m5p-scene-light,.m5p-scene .m5p-animated-pet,.m5p-pack-sparkle{animation:none!important}.m5p-scene .m5p-animated-pet{transform:scale(var(--pet-size))}}

/* M5 PETS 2.1: responsywne osiągnięcia, seria nagród, czwarta mini-gra */
.m5p-tabs{grid-template-columns:repeat(10,minmax(0,1fr))}
.m5p-pet-pat{position:absolute;z-index:10;right:3%;bottom:13px;border:1px solid rgba(255,255,255,.78);background:linear-gradient(135deg,#fff,#ffe4f0);color:#b52d69;min-width:43px;min-height:43px;border-radius:16px;box-shadow:0 4px 14px #63243e42;font-size:24px;display:grid;place-items:center;transition:transform .18s ease}
.m5p-pet-pat:hover,.m5p-pet-pat:focus-visible{transform:scale(1.09)}
.m5p-scene-fx.go{pointer-events:none}
.m5p-walk-last{margin-top:13px;background:linear-gradient(110deg,#fff8da,#eff9ff);border:1px solid #f1dfaa;border-radius:15px;padding:15px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#795d19}
.m5p-walk-last b{font-size:14px}.m5p-walk-last span{font-size:13px}
.m5p-daily-streak{margin-top:18px;padding:17px;border:1px solid #f5dea9;border-radius:19px;background:linear-gradient(155deg,#fff8e9,#fffdf2 72%,#f5faff)}
.m5p-streak-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px;margin-bottom:12px;color:#815618;font-weight:850}
.m5p-streak-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-bottom:10px}
.m5p-streak-day{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:85px;border:1px solid #f0dfb9;border-radius:13px;background:#fff;padding:8px 4px;color:#956e31}
.m5p-streak-day small{font-size:10px;font-weight:750}.m5p-streak-day b{font-size:25px;line-height:1.3}.m5p-streak-day span{font-size:11px;font-weight:850}
.m5p-streak-day.collected{background:#ecfff3;border-color:#8cddab;color:#178044}
.m5p-streak-day.next{box-shadow:0 0 0 2px #ffa929 inset}
.m5p-daily-streak>small{font-size:11px;color:#916d3e}
.m5p-ach-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:8px 0 20px}
.m5p-ach-summary>div{background:linear-gradient(135deg,#edf7ff,#fff);border:1px solid #d0e5f9;border-radius:15px;padding:17px 8px;text-align:center;display:flex;flex-direction:column;gap:5px}
.m5p-ach-summary strong{color:#11538b;font-size:24px}.m5p-ach-summary span{color:#6185a0;font-size:12px}
.m5p-ach-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:12px 0 16px}
.m5p-ach-card{min-width:0;display:grid;grid-template-columns:65px 1fr;column-gap:13px;row-gap:7px;padding:16px;border:2px solid #d2e5f7;background:linear-gradient(160deg,#fbfdff,#ecf6ff);border-radius:17px;min-height:156px}
.m5p-ach-card.unlocked{background:linear-gradient(135deg,#fff9e5,#fffefa);border-color:#ffd88c;box-shadow:0 6px 19px #f7b65225}
.m5p-ach-icon{grid-row:span 2;font-size:39px;display:grid;place-items:center;background:#ffffffbb;border-radius:14px;align-self:start;min-height:65px}
.m5p-ach-card.locked .m5p-ach-icon{filter:grayscale(.6);opacity:.75}
.m5p-ach-card h3{font-size:15px;margin:0 0 4px;color:#0c4e85}.m5p-ach-card p{margin:0;color:#63849b;font-size:12px;line-height:1.4}
.m5p-ach-card div>span{display:block;margin-top:9px;font-size:11px;font-weight:800;color:#547ea1}
.m5p-ach-card.unlocked div>span{color:#198152}
.m5p-ach-card>strong{grid-column:2;color:#a4791d;font-size:14px}
.m5p-colors-game{max-width:620px;margin:14px auto;padding:16px;border:3px solid #bdddf8;border-radius:22px;background:linear-gradient(150deg,#dff3ff,#ffeffe 65%,#fdf6d0)}
.m5p-colors-target{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border-radius:17px;padding:10px 20px;margin-bottom:15px;box-shadow:0 5px 15px #184b8840}
.m5p-colors-target>div{display:flex;align-items:center;gap:14px}.m5p-colors-target small{font-size:13px;color:#326d9c;font-weight:750}
.m5p-colors-target strong{font-size:44px}.m5p-colors-target span{font-weight:900;color:#235f9a}
.m5p-colors-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.m5p-colors-grid button{aspect-ratio:1;display:grid;place-items:center;border:2px solid #bbdffa;border-radius:17px;background:linear-gradient(#fff,#effbff);font-size:clamp(28px,5vw,54px);box-shadow:0 4px 0 #91c6e9;touch-action:manipulation;transition:transform .1s ease}
.m5p-colors-grid button:active{transform:scale(.94)}.m5p-colors-grid button.wrong{background:#ffe8ed;border-color:#ffa9c1}
.m5p-color-game-card{background:linear-gradient(145deg,#e7f6ff,#f8edff)}
@media(max-width:1000px){.m5p-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.m5p-ach-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:630px){.m5p-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.m5p-streak-days{grid-template-columns:repeat(4,minmax(0,1fr))}.m5p-ach-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.m5p-ach-grid{grid-template-columns:1fr}.m5p-ach-card{min-height:130px}.m5p-colors-target{padding:10px}.m5p-colors-target small{font-size:11px}.m5p-colors-target strong{font-size:37px}.m5p-colors-grid{gap:6px}.m5p-colors-grid button{border-radius:12px}}
@media(prefers-reduced-motion:reduce){.m5p-pet-pat,.m5p-colors-grid button{transition:none}}


/* ================================================================
   M5 PETS 2.2 — polished illustrated scenes, inventory and ranking
   Deliberately CSS/illustrated 3D look, not WebGL model animation.
   ================================================================ */
.m5p-tabs{grid-template-columns:repeat(12,minmax(0,1fr))}
.m5p-scene,.m5p-stats,.m5p-panel{border-color:#c6dded;box-shadow:0 15px 35px rgba(25,66,119,.12),0 1px 4px rgba(20,67,107,.05)}
.m5p-scene{padding:8px;background:linear-gradient(160deg,#ebf8ff,#dbeffa);min-height:505px}
.m5p-scene-inner{min-height:485px!important;border:1px solid #ffffffc4;box-shadow:inset 0 3px 13px #ffffff50}
.m5p-scene-world{height:485px;box-shadow:inset 0 9px 29px #ffffff88,inset 0 -15px 36px #0a395a40}
/* Restore a fully illustrated landscape instead of the featureless gradient/window. */
.m5p-scene-home .m5p-scene-world,
.m5p-scene-walk .m5p-scene-world,
.m5p-scene-play .m5p-scene-world,
.m5p-scene-arcade .m5p-scene-world,
.m5p-scene-ranking .m5p-scene-world,
.m5p-scene-achievements .m5p-scene-world,
.m5p-scene-backpack .m5p-scene-world{
 background-image:linear-gradient(180deg,#e5f8ff12 4%,#a1edfa00 50%,#193b1762 100%),url('img/forest-bg.webp')!important;
 background-size:cover;background-position:center center;
}
.m5p-scene-home .m5p-scene-world:before,
.m5p-scene-play .m5p-scene-world:before,
.m5p-scene-arcade .m5p-scene-world:before,
.m5p-scene-ranking .m5p-scene-world:before,
.m5p-scene-achievements .m5p-scene-world:before,
.m5p-scene-backpack .m5p-scene-world:before {content:none!important}
.m5p-scene-home .m5p-scene-ground,.m5p-scene-play .m5p-scene-ground,.m5p-scene-arcade .m5p-scene-ground,
.m5p-scene-ranking .m5p-scene-ground,.m5p-scene-achievements .m5p-scene-ground,.m5p-scene-backpack .m5p-scene-ground{
 background:linear-gradient(180deg,#97d35c99,#377b4e88)!important;height:15%;border-top:4px solid #dbffcf5c!important;
}
.m5p-scene-world:after{content:'';z-index:1;position:absolute;inset:0;background:radial-gradient(ellipse at 56% 48%,#fff7d429,transparent 53%);pointer-events:none}
.m5p-scene .m5p-animated-pet{left:49%!important;bottom:11%!important;width:min(60%,310px)!important;max-height:85%;height:85%!important;filter:drop-shadow(0 18px 13px #062a2d67) drop-shadow(0 4px 2px #fff6)}
.m5p-scene-world .m5p-scene-props{opacity:.82;right:2%;font-size:clamp(25px,4vw,48px);bottom:8%;text-shadow:0 6px 12px #121b2255}
.m5p-scene-sleep .m5p-scene-world{
 background:radial-gradient(ellipse at 85% 10%,#f6edc645,transparent 36%),linear-gradient(145deg,#272b74 2%,#6556a0 45%,#271b55)!important;
}
.m5p-scene-sleep .m5p-scene-world:before{content:'☾ ✦ ✧';position:absolute;left:9%;top:13%;width:auto;height:auto;border:0;background:none!important;box-shadow:none!important;color:#ffe89c;font-size:clamp(45px,9vw,90px);letter-spacing:25px}
.m5p-scene-sleep .m5p-scene-ground{height:22%;border-top:11px solid #f5e9ff!important;background:linear-gradient(165deg,#8f6ab4,#514b94)!important;box-shadow:inset 0 17px 29px #322f7b33}
.m5p-scene-sleep .m5p-animated-pet{transform-origin:50% 87%!important;max-height:65%!important;bottom:17%!important}
.m5p-scene-bath .m5p-scene-world{background:radial-gradient(ellipse at 75% 20%,#ffffffa5,transparent 55%),linear-gradient(150deg,#80d1f5,#b6efff 64%,#66bfe5)!important}
.m5p-scene-bath .m5p-scene-ground{height:22%;background:repeating-linear-gradient(90deg,#ddf7ff 0 60px,#a4e2f1 60px 62px)!important;border-top:12px solid #fff!important}
.m5p-scene-bath .m5p-scene-world:before{content:'🫧 🫧 🛁';position:absolute;top:33%;left:6%;width:auto;height:auto;box-shadow:none!important;background:none!important;border:0!important;color:#fff;font-size:clamp(50px,8vw,100px)}
.m5p-scene-feed .m5p-scene-world{background:radial-gradient(circle at 83% 17%,#fff6c6,transparent 31%),linear-gradient(160deg,#fae8be,#ffcca3)!important}
.m5p-scene-feed .m5p-scene-world:before{content:'🍲';position:absolute;top:14%;left:8%;width:auto;height:auto;box-shadow:none!important;background:none!important;border:0!important;font-size:80px}
.m5p-scene-feed .m5p-scene-ground{background:linear-gradient(135deg,#dfae7c,#ffd8a9)!important;height:21%;border-top:6px solid #fff3c2!important}
.m5p-scene-hospital .m5p-scene-world{background:linear-gradient(160deg,#d8eff9,#f1f9fe)!important}
.m5p-scene-hospital .m5p-scene-ground{height:26%;border-top:8px solid #e7f6ff!important;background:linear-gradient(140deg,#d1e8ef,#b1d4e3)!important}
.m5p-scene-hospital .m5p-scene-world:before{content:'✚';position:absolute;top:15%;left:9%;display:grid;place-items:center;width:110px;height:110px;background:white!important;border:0!important;border-radius:24px;color:#ed536c;font-size:78px;box-shadow:0 10px 20px #1d5b7937}
.m5p-scene-hospital .m5p-animated-pet{filter:saturate(.6) drop-shadow(0 12px 13px #244e5c61)!important}
.m5p-scene-top span,.m5p-speech{backdrop-filter:blur(7px);background:#fffc!important;color:#153e72!important;box-shadow:0 6px 21px #10295028!important}
.m5p-pet-pat{bottom:18px}
.m5p-ranking-wrap{margin-top:13px;border:1px solid #d4e6f5;background:#f6fbff;border-radius:18px;padding:14px;min-height:110px}
.m5p-ranking-count{font-size:13px;color:#507797;margin-bottom:12px}
.m5p-ranking-scroll{width:100%;overflow-x:auto;border:1px solid #cee0ee;border-radius:12px;background:#fff}
.m5p-ranking-table{width:100%;border-collapse:collapse;white-space:normal;min-width:590px;font-size:13px}
.m5p-ranking-table th{background:linear-gradient(#eaf6ff,#d9ecfa);text-align:left;padding:14px 13px;color:#104b7e;font-weight:900}
.m5p-ranking-table td{padding:13px;border-top:1px solid #e8f0f7;color:#25547c;line-height:1.35}
.m5p-ranking-table tr.mine{background:#fff8db}
.m5p-ranking-table td a{font-weight:850;text-decoration:none;color:#0c6fc9}
.m5p-ranking-table td a:hover{text-decoration:underline}
.m5p-ranking-table td small{display:block;font-size:10px;color:#8192a5;margin-top:3px}
.m5p-ranking-pages{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:17px 0 4px;color:#346a98}
.m5p-revival-hero{display:grid;grid-template-columns:130px 1fr;gap:19px;align-items:start;padding:25px;background:linear-gradient(145deg,#fff1f7,#fffaf2);border:2px solid #ffcddd;border-radius:22px;box-shadow:0 7px 18px #a8326d19}
.m5p-revival-hero h3{margin:2px 0 10px;font-size:23px;color:#a8265e}
.m5p-revival-hero p{font-size:14px;color:#83445c;line-height:1.5}
.m5p-revival-mark{font-size:80px;text-align:center;filter:drop-shadow(0 8px 5px #c9347033);animation:m5p-pack-bob 2s alternate infinite}
.m5p-product[data-revival]{background:linear-gradient(#fff4fa,#fff7e8);border-color:#ffcfe3}
@media(max-width:1100px){.m5p-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:720px){.m5p-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.m5p-scene-inner{min-height:390px!important}.m5p-scene-world{height:390px}.m5p-scene{min-height:405px}.m5p-scene .m5p-animated-pet{height:75%!important}.m5p-revival-hero{grid-template-columns:1fr;text-align:center}.m5p-revival-mark{font-size:70px}}
@media(max-width:460px){.m5p-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.m5p-scene-inner{min-height:340px!important}.m5p-scene-world{height:340px}.m5p-scene{min-height:355px}.m5p-scene .m5p-animated-pet{left:50%!important;max-width:77%!important;width:77%!important;height:73%!important}.m5p-ranking-wrap{padding:7px}.m5p-ranking-pages .m5p-button{padding:9px 11px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.m5p-revival-mark{animation:none!important}}

/* Enhanced cinematic 3D-styled illustrations for the main dashboard. */
.m5p-scene-home .m5p-scene-world,.m5p-scene-backpack .m5p-scene-world,.m5p-scene-ranking .m5p-scene-world{
 background-image:linear-gradient(180deg,#fff7e113,#ffefd613 66%,#663e1444),url('img/room-3d.webp')!important;
 background-position:center center;background-size:cover;
}
.m5p-scene-walk .m5p-scene-world,.m5p-scene-arcade .m5p-scene-world,.m5p-scene-achievements .m5p-scene-world{
 background-image:linear-gradient(180deg,#dbffff11 0%,#214d0955 95%),url('img/meadow-3d.webp')!important;
 background-position:center center;background-size:cover;
}
.m5p-scene-home .m5p-scene-ground,.m5p-scene-backpack .m5p-scene-ground,.m5p-scene-ranking .m5p-scene-ground{
 background:linear-gradient(#ddc49b00,#96633f66)!important;height:18%;border:0!important
}

/* Final positioning: the entire mascot remains visible on narrow displays. */
.m5p-scene .m5p-animated-pet{left:36%!important;width:min(72%,390px)!important;height:89%!important}
@media(max-width:720px){.m5p-scene .m5p-animated-pet{left:15%!important;max-width:82%!important;width:82%!important;height:80%!important}}
@media(max-width:460px){.m5p-scene .m5p-animated-pet{left:13%!important;width:78%!important;height:80%!important}}
/* M5 PETS 2.3.0 — cinematic illustrated 2.5D skin.
   Extends the tested v2.2 mechanics; no changes to server-side wallet or pet data. */
.m5p{max-width:1440px!important;--navy:#083770;--blue:#1683ed;--line:#cde6fc;--shadow:0 16px 35px rgba(18,70,117,.14);background:transparent}
.m5p .m5p-banner{min-height:122px;background:linear-gradient(107deg,#0569b3 0%,#218bea 42%,#83d9ff 78%,#67bdee 100%);border:3px solid #f4fbff;border-radius:27px;box-shadow:0 10px 0 #b6dcf1,0 23px 35px #16487d36;padding:22px 28px;isolation:isolate}
.m5p-banner:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 54% 13%,#fff7,transparent 27%),radial-gradient(circle at 94% 60%,#e3ffbe75,transparent 31%);pointer-events:none}
.m5p-banner:after{display:none}
.m5p .m5p-brand{position:relative;z-index:2;line-height:.94;color:#fff;text-shadow:0 3px #0752a4,0 5px 10px #003963;letter-spacing:-.05em;font-size:clamp(28px,4.7vw,53px)}
.m5p .m5p-brand span:not(.m5p-brand-icon){color:#b8f2ff}.m5p .m5p-brand small{font-size:12px;letter-spacing:0;margin-top:12px;color:#fff}
.m5p-friend-trio{position:absolute;z-index:1;right:17%;bottom:-10px;max-width:38%;height:auto;object-fit:contain;filter:drop-shadow(0 9px 8px #07426f44);pointer-events:none}
.m5p-banner-side{z-index:3!important}.m5p .m5p-coin{background:linear-gradient(#15466c,#06294f);border:2px solid #c1eaff;box-shadow:inset 0 2px 3px #ffffff28,0 6px 12px #001b4780;min-width:105px;justify-content:center;letter-spacing:.01em}
.m5p .m5p-badge{background:#00436b83;padding:6px 10px;border-radius:10px}
.m5p .m5p-tabs{padding:8px;gap:7px;background:#dff1ff;border:1px solid #b2d9f7;box-shadow:inset 0 2px #fff8,0 6px 16px #305e8b22;border-radius:19px}
.m5p .m5p-tabs button{border:1px solid #cce7fa;min-height:68px;border-bottom:3px solid #b9d3ec;border-radius:12px;font-size:22px;box-shadow:0 2px 7px #0f58a215;transition:transform .15s ease,background .15s ease}
.m5p .m5p-tabs button:not([disabled]):hover{transform:translateY(-2px);background:#f0faff}
.m5p .m5p-tabs button.active{background:linear-gradient(#42baff,#0874e9);border:2px solid #056bc1;border-bottom:4px solid #034c94;box-shadow:0 4px 15px #0c69b555;color:#fff}
.m5p .m5p-tabs button span{font-size:11px;color:inherit}
.m5p .m5p-dashboard{grid-template-columns:minmax(0,1.58fr) minmax(310px,.92fr);gap:16px}
.m5p .m5p-scene{padding:8px;min-height:500px;border:2px solid #c5e6ff;background:linear-gradient(#dcf3ff,#f5f9ff);border-radius:23px;box-shadow:0 12px 30px #206ba234}
.m5p .m5p-scene-inner{min-height:480px!important;border:1px solid #fff;box-shadow:0 4px 13px #0a488d24;position:relative}
.m5p .m5p-scene-world{height:480px!important;overflow:hidden;isolation:isolate;transform:translateZ(0);background-color:#dcf1ff}
.m5p .m5p-scene-world:before{content:none!important;display:none!important}
.m5p .m5p-scene-world:after{background:linear-gradient(180deg,#fff9 0%,transparent 23%,transparent 60%,#071d3325 100%)!important;z-index:3}
/* Static high-quality image plates, one per activity. A separate moving pet layer is rendered above them. */
.m5p .m5p-scene-inner.m5p-scene-home .m5p-scene-world,
.m5p .m5p-scene-inner.m5p-scene-backpack .m5p-scene-world,
.m5p .m5p-scene-inner.m5p-scene-ranking .m5p-scene-world,
.m5p .m5p-scene-inner.m5p-scene-achievements .m5p-scene-world,
.m5p .m5p-scene-inner.m5p-scene-shop .m5p-scene-world{background:linear-gradient(180deg,#fff4ce38 0%,#fff0bd0c 65%,#42200a3b 100%),url('img/v23-home-backdrop.webp') center/cover no-repeat!important}
.m5p .m5p-scene-inner.m5p-scene-feed .m5p-scene-world{background:linear-gradient(180deg,#fff5d532,transparent 58%,#65361129),url('img/v23-feed-backdrop.webp') center/cover no-repeat!important}
.m5p .m5p-scene-inner.m5p-scene-bath .m5p-scene-world{background:linear-gradient(180deg,#e0faff26,#1686bd25),url('img/v23-bath-backdrop.webp') center/cover no-repeat!important}
.m5p .m5p-scene-inner.m5p-scene-walk .m5p-scene-world{background:linear-gradient(180deg,#ecffdd2b,#063a2a30),url('img/v23-walk-backdrop.webp') center/cover no-repeat!important;animation:m5p-v23-scenepan 15s ease-in-out infinite alternate}
.m5p .m5p-scene-inner.m5p-scene-play .m5p-scene-world{background:linear-gradient(180deg,#f6eafc22,#5c247b27),url('img/v23-play-backdrop.webp') center/cover no-repeat!important}
.m5p .m5p-scene-inner.m5p-scene-sleep .m5p-scene-world{background:linear-gradient(180deg,#18144e33,#25114647),url('img/v23-sleep-backdrop.webp') center/cover no-repeat!important}
.m5p .m5p-scene-inner.m5p-scene-hospital .m5p-scene-world{background:linear-gradient(180deg,#fff7,#e1eeff26),url('img/v23-hospital-backdrop.webp') center/cover no-repeat!important}
.m5p .m5p-scene-inner.m5p-scene-arcade .m5p-scene-world{background:linear-gradient(180deg,#edfff622,#10451640),url('img/v23-arcade-backdrop.webp') center/cover no-repeat!important}
.m5p .m5p-scene-ground{background:linear-gradient(180deg,transparent 0%,#47351c0a 42%,#50301b2d 100%)!important;border:none!important;height:34%!important;z-index:1;box-shadow:none}
.m5p .m5p-scene-world .m5p-scene-light{z-index:2;opacity:.37;background:radial-gradient(ellipse at 42% 11%,#ffffdb80,transparent 70%);animation:m5p-v23-light 9s ease-in-out infinite alternate}
.m5p-v23-parallax{position:absolute;inset:-6%;background:radial-gradient(ellipse at 12% 65%,#76ebaa42,transparent 25%),radial-gradient(ellipse at 92% 11%,#fff4a861,transparent 30%);pointer-events:none;animation:m5p-v23-depth 12s ease-in-out infinite alternate;z-index:1}
.m5p .m5p-scene-world .m5p-scene-props{opacity:.9;font-size:38px;right:9%;left:auto;bottom:6%;letter-spacing:.4em;word-spacing:7px;z-index:5;filter:drop-shadow(0 4px 4px #2226);animation:m5p-v23-prop 4s ease-in-out infinite alternate}
.m5p .m5p-scene-inner .m5p-animated-pet{z-index:4!important;width:min(66%,430px)!important;max-width:unset!important;height:85%!important;bottom:4%!important;left:25%!important;object-fit:contain!important;filter:drop-shadow(0 23px 13px #14294058)!important;animation:m5p-v23-breathe 3.2s ease-in-out infinite!important;transform-origin:50% 87%;will-change:transform}
.m5p .m5p-scene-inner.m5p-stage-baby .m5p-animated-pet{--stage-emphasis:.83}
.m5p .m5p-scene-inner.m5p-stage-junior .m5p-animated-pet{--stage-emphasis:.96}
.m5p .m5p-scene-inner.m5p-stage-young .m5p-animated-pet{--stage-emphasis:1.06}
.m5p .m5p-scene-inner.m5p-stage-adult .m5p-animated-pet{--stage-emphasis:1.16}
.m5p .m5p-scene-inner.m5p-scene-walk .m5p-animated-pet{animation:m5p-v23-walk 1.45s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-scene-feed .m5p-animated-pet{animation:m5p-v23-eat 1.7s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-scene-bath .m5p-animated-pet{bottom:13%!important;animation:m5p-v23-bathe 2.5s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-scene-play .m5p-animated-pet,.m5p .m5p-scene-inner.m5p-scene-arcade .m5p-animated-pet{animation:m5p-v23-play 1.9s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-scene-hospital .m5p-animated-pet{animation:m5p-v23-sick 4s ease-in-out infinite!important;filter:saturate(.62) drop-shadow(0 14px 8px #1116)!important}
.m5p .m5p-scene-inner.m5p-scene-sleep .m5p-animated-pet{left:33%!important;bottom:18%!important;height:58%!important;animation:m5p-v23-rest 4.5s ease-in-out infinite!important}
/* Panda has an illustrated real sleeping pose instead of an upright sticker. */
.m5p-v23-sleep-panda{display:none!important;position:absolute;z-index:6!important;left:12%;bottom:7%;width:82%!important;height:76%!important;object-fit:contain!important;pointer-events:none;filter:drop-shadow(0 12px 12px #1d255d3e);animation:m5p-v23-nap 5s ease-in-out infinite}
.m5p .m5p-scene-sleep.m5p-kind-panda .m5p-v23-sleep-panda{display:block!important}
.m5p .m5p-scene-sleep.m5p-kind-panda .m5p-animated-pet{display:none!important}
.m5p-v23-bed{display:none;position:absolute;left:14%;right:12%;bottom:8%;height:25%;border-radius:58% 58% 30% 30%;background:linear-gradient(180deg,#c5defbcc,#648dd6bb);border:8px solid #ffffff99;box-shadow:0 12px 19px #14113d6e;z-index:5;pointer-events:none}
.m5p .m5p-scene-sleep:not(.m5p-kind-panda) .m5p-v23-bed{display:block}
.m5p .m5p-scene-sleep:not(.m5p-kind-panda) .m5p-animated-pet{z-index:4!important}
.m5p-v23-decor{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:.84}
.m5p-v23-decor span{position:absolute;color:#fff9bf;text-shadow:0 0 9px #fff,0 0 15px #d5f3ff;animation:m5p-v23-spark 4s ease-in-out infinite}
.m5p-v23-decor span:nth-child(1){top:12%;left:22%}.m5p-v23-decor span:nth-child(2){top:32%;right:16%;animation-delay:1s}.m5p-v23-decor span:nth-child(3){top:61%;left:12%;animation-delay:2s}.m5p-v23-decor span:nth-child(4){top:19%;left:57%;animation-delay:3s}.m5p-v23-decor span:nth-child(5){top:75%;right:18%;animation-delay:2.8s}
.m5p .m5p-scene-top{z-index:9!important}.m5p .m5p-scene-top span{background:#fffffff2!important;border:1px solid #fff;color:#0a4778!important;border-radius:20px!important;font-size:12px!important;padding:9px 13px!important;box-shadow:0 5px 13px #07326330!important;backdrop-filter:blur(9px)}
.m5p .m5p-speech{font-size:14px!important;z-index:9!important;bottom:14px;left:14px;max-width:75%;box-shadow:0 6px 18px #1134593a;border-radius:18px;padding:10px 17px}
.m5p .m5p-pet-pat{z-index:12;right:15px;bottom:14px;box-shadow:0 5px 0 #af4c7899,0 11px 20px #5d3c6c4a}
.m5p .m5p-stats{border:2px solid #cfe9fe;box-shadow:0 14px 31px #164b7b21;padding:20px}
.m5p .m5p-pet-name-line h2{font-size:clamp(26px,3vw,38px);font-weight:900}.m5p .m5p-facts span{font-size:12px;border:1px solid #d8e9f7}
.m5p .m5p-meter-rail{height:15px;background:#dfe9f5}.m5p .m5p-meter{margin:11px 0}.m5p .m5p-meter-label{font-size:13px}.m5p .m5p-level{border-radius:16px}
.m5p-v23-scenes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:13px;padding:8px;border-radius:20px;background:linear-gradient(#eaf6ff,#dceeff);border:1px solid #b7d9f1}
.m5p-v23-scenes button{padding:5px 5px 8px;display:flex;align-items:center;flex-direction:column;gap:5px;min-width:0;border-radius:12px;background:white;border:1px solid #d0e7f8;color:#1b4d80;box-shadow:0 2px 7px #1761a119;transition:transform .2s ease;overflow:hidden;cursor:pointer}
.m5p-v23-scenes button:hover{transform:translateY(-2px)}.m5p-v23-scenes button.active{outline:2px solid #258cec;background:#e9f6ff}
.m5p-v23-scenes b{font-size:12px;line-height:1.25;white-space:normal;text-align:center}
.m5p-v23-thumb{width:100%;height:73px;border-radius:9px;background:#d4eaf9 center/cover no-repeat;display:grid;place-items:center;font-size:26px;text-shadow:0 2px 5px #0008;box-shadow:inset 0 -15px 18px #04182730}
.m5p-v23-thumb.scene-home{background-image:url('img/v23-home-backdrop.webp')}.m5p-v23-thumb.scene-feed{background-image:url('img/v23-feed-backdrop.webp')}.m5p-v23-thumb.scene-bath{background-image:url('img/v23-bath-backdrop.webp')}.m5p-v23-thumb.scene-walk{background-image:url('img/v23-walk-backdrop.webp')}.m5p-v23-thumb.scene-play{background-image:url('img/v23-play-backdrop.webp')}.m5p-v23-thumb.scene-sleep{background-image:url('img/v23-sleep-backdrop.webp')}.m5p-v23-thumb.scene-hospital{background-image:url('img/v23-hospital-backdrop.webp')}
.m5p-v23-growth{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(0,1.6fr);gap:13px;align-items:center;margin-top:12px;border:1px solid #cfe8f8;border-radius:19px;padding:13px 18px;background:linear-gradient(100deg,#fdfefe,#eef9ff);box-shadow:0 6px 18px #1d588218}
.m5p-v23-growth-caption strong{font-size:16px;color:#0d518c}.m5p-v23-growth-caption small{display:block;font-size:11px;margin-top:5px;color:#6186a7}
.m5p-v23-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.m5p-v23-stages>div{border:1px solid #d2e5f4;padding:9px 3px;border-radius:13px;background:#f8fcff;display:flex;gap:3px;align-items:center;flex-direction:column;text-align:center}
.m5p-v23-stages>div.current{background:linear-gradient(#def2ff,#c5e7ff);border:2px solid #168bf0;box-shadow:0 3px 8px #0966b326}
.m5p-v23-stages span{font-size:21px}.m5p-v23-stages strong{font-size:12px;color:#175b95}.m5p-v23-stages small{font-size:10px;color:#6b92b0}
.m5p .m5p-panel{border:2px solid #d1e9f8;border-radius:21px;background:linear-gradient(160deg,#fff,#f9fcff);box-shadow:0 12px 27px #0d47821b}
.m5p .m5p-product{background:linear-gradient(#fff,#edf7ff);border:2px solid #d7e9f6;box-shadow:0 4px 12px #1d4f7b12}
.m5p .m5p-product .m5p-button{font-size:13px}.m5p .m5p-button:not(:disabled):hover{filter:brightness(1.05);transform:translateY(-1px)}
@keyframes m5p-v23-depth{to{transform:translate(2%,1%) scale(1.04)}}
@keyframes m5p-v23-light{to{opacity:.14;transform:translateX(-5%)}}
@keyframes m5p-v23-prop{to{transform:translateY(-9px) rotate(4deg)}}
@keyframes m5p-v23-spark{0%,100%{transform:translateY(0) scale(.75);opacity:.2}40%{opacity:1;transform:translateY(-11px) scale(1.25)}}
@keyframes m5p-v23-scenepan{from{background-position:47% center}to{background-position:53% center}}
@keyframes m5p-v23-breathe{0%,100%{transform:translateY(1px) scale(calc(var(--pet-size) * var(--stage-emphasis,1))) rotate(-1.5deg)}50%{transform:translateY(-9px) scale(calc(var(--pet-size) * var(--stage-emphasis,1) * 1.02)) rotate(1.5deg)}}
@keyframes m5p-v23-walk{0%,100%{transform:translate(-10px,0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-4deg)}50%{transform:translate(17px,-12px) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(4deg)}}
@keyframes m5p-v23-eat{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1)))}50%{transform:translateY(10px) scale(calc(var(--pet-size)*var(--stage-emphasis,1)*.97))}}
@keyframes m5p-v23-bathe{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-2deg)}50%{transform:translateY(-9px) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(2deg)}}
@keyframes m5p-v23-play{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-4deg)}50%{transform:translateY(-26px) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(7deg)}}
@keyframes m5p-v23-rest{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-8deg)}50%{transform:translateY(5px) scale(calc(var(--pet-size)*var(--stage-emphasis,1)*.98)) rotate(-8deg)}}
@keyframes m5p-v23-nap{0%,100%{transform:scale(1) translateY(0)}50%{transform:scale(1.015) translateY(-3px)}}
@keyframes m5p-v23-sick{0%,100%{transform:scale(calc(var(--pet-size)*var(--stage-emphasis,1))) translateY(0)}50%{transform:scale(calc(var(--pet-size)*var(--stage-emphasis,1))) translateY(5px)}}
@media(max-width:1080px){.m5p-friend-trio{max-width:33%;right:17%}.m5p .m5p-dashboard{grid-template-columns:minmax(0,1.3fr) minmax(295px,1fr)}}
@media(max-width:820px){.m5p .m5p-dashboard{grid-template-columns:minmax(0,1fr)}.m5p .m5p-scene{min-height:400px}.m5p .m5p-scene-inner{min-height:390px!important}.m5p .m5p-scene-world{height:390px!important}.m5p .m5p-scene-inner .m5p-animated-pet{height:86%!important;width:min(68%,405px)!important}.m5p-v23-thumb{height:62px}.m5p-v23-growth{grid-template-columns:minmax(0,1fr)}.m5p .m5p-brand{font-size:33px}}
@media(max-width:590px){.m5p .m5p-banner{padding:18px 13px;min-height:104px}.m5p .m5p-brand{font-size:30px}.m5p .m5p-brand small{font-size:10px}.m5p .m5p-brand-icon{font-size:22px}.m5p-friend-trio{max-width:35%;right:21%;bottom:-5px;opacity:.85}.m5p .m5p-badge{display:none}.m5p .m5p-coin{min-width:74px;font-size:16px;padding:7px 9px}.m5p-v23-scenes{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.m5p-v23-scenes b{font-size:11px}.m5p-v23-thumb{height:57px;font-size:21px}.m5p .m5p-scene-inner{min-height:340px!important}.m5p .m5p-scene-world{height:340px!important}.m5p .m5p-scene{min-height:353px}.m5p .m5p-scene-inner .m5p-animated-pet{width:82%!important;height:83%!important;left:11%!important;bottom:5%!important}.m5p .m5p-scene-sleep.m5p-kind-panda .m5p-v23-sleep-panda{width:95%!important;left:2.5%;bottom:10%}.m5p-v23-stages{gap:4px}.m5p-v23-stages>div{padding:7px 2px}.m5p-v23-growth{padding:12px}.m5p .m5p-speech{font-size:12px!important;max-width:67%}.m5p .m5p-tabs button{font-size:20px;min-height:59px}}
@media(prefers-reduced-motion:reduce){.m5p .m5p-scene-world,.m5p .m5p-scene-inner .m5p-animated-pet,.m5p-v23-parallax,.m5p-v23-decor span,.m5p-v23-sleep-panda{animation:none!important;transition:none!important}}


/* --------------------------------------------------------------
 * M5 PETS 2.4.0: SPECIES-SAFE CINEMATIC PET SCENE (2.5D)
 * Every plate below is pet-free. Character and props are separate.
 * No animation frame includes a permanently drawn wrong species.
 * -------------------------------------------------------------- */
.m5p .m5p-scene-inner.m5p-v24 .m5p-scene-world{
  background-color:#a5dff8!important;
  background-image:linear-gradient(180deg,#faffff05 0%,transparent 72%,#06182f16 100%),var(--m5p-v24-bg)!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  animation:none!important;
}
.m5p .m5p-scene-inner.m5p-v24 .m5p-scene-world:before{content:none!important}
.m5p .m5p-scene-inner.m5p-v24 .m5p-scene-world:after{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:2;
  background:radial-gradient(ellipse at 54% 34%,#fff8 0%,transparent 57%),linear-gradient(180deg,transparent 73%,#29391524)!important;
}
.m5p .m5p-scene-inner.m5p-v24 .m5p-scene-ground{display:none!important}
.m5p .m5p-scene-inner.m5p-v24 .m5p-v23-parallax{z-index:1;opacity:.3;mix-blend-mode:screen}
.m5p .m5p-scene-inner.m5p-v24 .m5p-animated-pet{
  display:block!important;position:absolute!important;left:19%!important;bottom:9%!important;
  width:min(70%,490px)!important;height:76%!important;max-width:unset!important;
  object-fit:contain!important;object-position:center bottom!important;z-index:5!important;
  filter:drop-shadow(0 17px 12px #10233855) drop-shadow(0 1px 1px #fff6)!important;
  transform-origin:50% 88%;will-change:transform;
  animation:m5p24-idle 3.1s ease-in-out infinite!important;
}
.m5p .m5p-scene-inner.m5p-v24.m5p-stage-baby .m5p-animated-pet{--stage-emphasis:.80}
.m5p .m5p-scene-inner.m5p-v24.m5p-stage-junior .m5p-animated-pet{--stage-emphasis:.94}
.m5p .m5p-scene-inner.m5p-v24.m5p-stage-young .m5p-animated-pet{--stage-emphasis:1.04}
.m5p .m5p-scene-inner.m5p-v24.m5p-stage-adult .m5p-animated-pet{--stage-emphasis:1.14}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-feed .m5p-animated-pet{bottom:15%!important;animation:m5p24-feed 1.7s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-animated-pet{bottom:22%!important;height:67%!important;animation:m5p24-bath 2.25s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-walk .m5p-animated-pet{bottom:7%!important;animation:m5p24-walk 1.4s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-play .m5p-animated-pet,
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-arcade .m5p-animated-pet{animation:m5p24-play 1.95s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-sleep .m5p-animated-pet{bottom:17%!important;left:23%!important;height:57%!important;animation:m5p24-sleep 4s ease-in-out infinite!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-hospital .m5p-animated-pet{bottom:19%!important;height:55%!important;animation:m5p24-sleep 4s ease-in-out infinite!important;filter:grayscale(.15) drop-shadow(0 11px 9px #4b548988)!important}
.m5p .m5p-scene-inner.m5p-v24 .m5p-scene-props{z-index:4!important;right:8%!important;bottom:16%!important;font-size:clamp(24px,3vw,36px)!important}
.m5p .m5p-scene-inner.m5p-v24 .m5p-v23-sleep-panda,
.m5p .m5p-scene-inner.m5p-v24 .m5p-v23-bed{display:none!important}
.m5p .m5p-scene-inner.m5p-v24 .m5p-v24-shadow{position:absolute;left:28%;bottom:7%;width:49%;height:8%;background:#042d505b;border-radius:50%;filter:blur(12px);z-index:3}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-shadow{display:none}
.m5p-v24-foreground{position:absolute;inset:0;pointer-events:none;z-index:7}
.m5p-v24-foreground>div{display:none}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-feed .m5p-v24-feed-bowl{
  display:flex;position:absolute;left:34%;bottom:2%;width:37%;height:19%;align-items:center;justify-content:center;
  border-radius:50% 50% 35% 35%;background:linear-gradient(180deg,#eefeff,#3dbeff 65%,#0967bc);border:5px solid #e4faff;
  box-shadow:0 12px 12px #143f6345,inset 0 4px 14px #fff;transform:perspective(150px) rotateX(15deg)
}
.m5p-v24-feed-bowl span{font-size:clamp(32px,6vw,70px);filter:drop-shadow(0 5px 3px #07518c66)}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bathtub{display:block;position:absolute;left:16%;right:16%;bottom:-7%;height:34%;border-radius:24% 24% 35% 35%;background:linear-gradient(170deg,#b9f6ff,#4dbce9 40%,#1590d0 75%,#09639e);border:7px solid #e6ffff;box-shadow:inset 0 12px 15px #fff9,0 15px 14px #075b8f55}
.m5p-v24-bathtub:before{content:'';position:absolute;top:-18%;left:3%;right:3%;height:39%;border-radius:50%;border:8px solid #d3faff;background:linear-gradient(100deg,#baf9fcdd,#f7ffff)}
.m5p-v24-bathtub span{position:absolute;left:5%;top:6%;font-size:clamp(31px,5vw,60px)}
.m5p-v24-bath-foam{position:absolute;z-index:3;left:11%;right:11%;top:-21%;font-size:clamp(16px,4vw,45px);color:white;text-shadow:0 0 7px #fff;animation:m5p24-bubble 3s ease-in-out infinite}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bubbles{display:block;position:absolute;inset:0}
.m5p-v24-bubbles i{position:absolute;border:2px solid #fff9;border-radius:50%;background:radial-gradient(circle at 27% 28%,#fff7,#7ceaff10 65%,#81dcff38);width:30px;height:30px;bottom:12%;animation:m5p24-float 5s ease-in infinite}
.m5p-v24-bubbles i:nth-child(1){left:20%;animation-delay:0s}.m5p-v24-bubbles i:nth-child(2){left:75%;animation-delay:1.2s;width:19px;height:19px}.m5p-v24-bubbles i:nth-child(3){left:45%;animation-delay:2.5s;width:41px;height:41px}.m5p-v24-bubbles i:nth-child(4){left:55%;animation-delay:3.4s}.m5p-v24-bubbles i:nth-child(5){left:9%;animation-delay:1.7s;width:17px;height:17px}.m5p-v24-bubbles i:nth-child(6){left:82%;animation-delay:4s;width:26px;height:26px}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-play .m5p-v24-play-ball{display:block;position:absolute;right:12%;bottom:10%;font-size:clamp(45px,6vw,75px);animation:m5p24-ball 2.2s ease-in-out infinite}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-sleep .m5p-v24-sleep-bed,
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-hospital .m5p-v24-hospital-bed{display:block;position:absolute;left:13%;right:11%;bottom:1%;height:39%;background:linear-gradient(180deg,#b5d2ff,#486bc0 70%,#264c94);border:9px solid #eaf4ff;border-radius:40% 40% 28% 28%;box-shadow:0 10px 20px #111a4066,inset 0 9px 12px #fff5}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-hospital .m5p-v24-hospital-bed{background:linear-gradient(160deg,#ffffff,#a2c8df);border-color:#f3ffff}
.m5p-v24-blanket{position:absolute;inset:19% 5% 0;text-align:center;padding-top:6%;font-size:clamp(22px,4vw,38px);color:#f8e8ff;letter-spacing:1em;opacity:.88}
.m5p-v24-zzz{position:absolute;left:53%;bottom:108%;font-size:clamp(28px,4.5vw,55px);font-weight:900;color:#eef2ff;filter:drop-shadow(0 3px 3px #2d448b);animation:m5p24-zzz 3s ease-in-out infinite}
.m5p-v24-hospital-bed>span{position:absolute;left:10%;top:7%;font-size:32px}
.m5p .m5p-scene-inner.m5p-v24 .m5p-v23-decor{z-index:8;opacity:.66}
.m5p .m5p-scene-inner.m5p-v24 .m5p-speech{z-index:9}
.m5p .m5p-scene-inner.m5p-v24 .m5p-pet-pat{z-index:10}
@keyframes m5p24-idle{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-1.3deg)}50%{transform:translateY(-11px) scale(calc(var(--pet-size)*var(--stage-emphasis,1)*1.025)) rotate(1.3deg)}}
@keyframes m5p24-feed{0%,100%{transform:translateY(-2px) scale(calc(var(--pet-size)*var(--stage-emphasis,1)))}50%{transform:translateY(16px) scale(calc(var(--pet-size)*var(--stage-emphasis,1)*.96))}}
@keyframes m5p24-bath{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-2deg)}50%{transform:translateY(-12px) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(2deg)}}
@keyframes m5p24-walk{0%,100%{transform:translate(-29px,1px) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-2.5deg)}50%{transform:translate(33px,-13px) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(2.5deg)}}
@keyframes m5p24-play{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-4deg)}45%{transform:translateY(-27px) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(5deg)}}
@keyframes m5p24-sleep{0%,100%{transform:translateY(0) scale(calc(var(--pet-size)*var(--stage-emphasis,1))) rotate(-17deg)}50%{transform:translateY(4px) scale(calc(var(--pet-size)*var(--stage-emphasis,1)*1.01)) rotate(-17deg)}}
@keyframes m5p24-bubble{50%{transform:translateY(-7px)}}
@keyframes m5p24-float{0%{transform:translateY(0) scale(.6);opacity:0}20%{opacity:.8}100%{transform:translateY(-260px) scale(1.1);opacity:0}}
@keyframes m5p24-ball{50%{transform:translate(-40px,-34px) rotate(20deg)}}
@keyframes m5p24-zzz{50%{transform:translate(8px,-10px);opacity:.5}}
@media(max-width:820px){.m5p .m5p-scene-inner.m5p-v24 .m5p-animated-pet{left:17%!important;width:72%!important;height:77%!important}}
@media(max-width:590px){.m5p .m5p-scene-inner.m5p-v24 .m5p-animated-pet{left:9%!important;width:84%!important;height:73%!important;bottom:12%!important}.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-animated-pet{bottom:25%!important;height:64%!important}.m5p .m5p-scene-inner.m5p-v24.m5p-scene-sleep .m5p-animated-pet{bottom:18%!important;height:52%!important}.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bathtub{left:4%;right:4%}.m5p-v24-blanket{letter-spacing:.45em}}
@media(prefers-reduced-motion:reduce){.m5p .m5p-scene-inner.m5p-v24 .m5p-animated-pet,.m5p .m5p-scene-inner.m5p-v24 .m5p-v24-foreground *{animation:none!important}}

/* M5 PETS 2.5.5 — bath occlusion, clinic scene, interactive XP guide */
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-animated-pet {
  bottom: 5%!important;
  left: 18%!important;
  width: 64%!important;
  height: 86%!important;
  z-index: 5!important;
}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bathtub {
  display:block!important;
  position:absolute;
  left:15%!important;
  right:15%!important;
  bottom:-3%!important;
  height:48%!important;
  z-index:8!important;
  border-radius:27% 27% 34% 34%!important;
  background:linear-gradient(160deg,#c8f6ff 0%,#6ed4f6 18%,#229ed6 62%,#126fab 100%)!important;
  border:8px solid #edffff!important;
  box-shadow:0 22px 32px #0c597c4a,inset 0 9px 14px #ffffff91!important;
}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bathtub:before {
  top:-9%;left:0;right:0;height:30%;border:9px solid #e9ffff;
  background:linear-gradient(180deg,#f2ffff,#b5eefc)!important;
  border-radius:50%;
}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bath-foam {
  position:absolute!important;
  top:-29%!important;
  left:0!important;
  right:0!important;
  height:53%!important;
  background:radial-gradient(ellipse at 9% 82%,#fff 0 14%,transparent 15%),
             radial-gradient(ellipse at 27% 57%,#fff 0 19%,transparent 20%),
             radial-gradient(ellipse at 45% 73%,#fff 0 16%,transparent 17%),
             radial-gradient(ellipse at 61% 51%,#fff 0 18%,transparent 19%),
             radial-gradient(ellipse at 77% 81%,#fff 0 19%,transparent 20%),
             radial-gradient(ellipse at 95% 59%,#fff 0 18%,transparent 19%),
             linear-gradient(0deg,#ebffff 1%,#ffffff00 70%);
  filter:drop-shadow(0 -5px 6px #cbf5ff88);
  font-size:clamp(22px,3vw,38px)!important;
  z-index:9!important;
  display:flex;align-items:center;justify-content:center;
}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bathtub span {top:18%!important;left:5%!important;font-size:32px!important;opacity:.85}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bubbles {z-index:10!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-health .m5p-animated-pet {bottom:9%!important;left:21%!important;height:74%!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-health .m5p-v24-hospital-bed {display:none!important}
.m5p-health-overview{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(225px,.85fr);gap:15px;margin:15px 0}
.m5p-health-primary,.m5p-health-kpis,.m5p-health-box{background:#f6fbff;border:1px solid #d8e8f5;border-radius:18px;padding:20px}
.m5p-health-primary{display:flex;gap:17px;align-items:center;box-shadow:0 10px 26px #1d5e9310}
.m5p-health-status-icon{font-size:44px}
.m5p-health-primary small{font-size:11px;letter-spacing:.13em;color:#6482a1;font-weight:800}
.m5p-health-primary h3{font-size:21px;margin:6px 0}
.m5p-health-primary p,.m5p-health-box p{line-height:1.65;color:#57728f;margin:5px 0}
.m5p-health-kpis{display:grid;gap:10px}.m5p-health-kpis>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #dcebf4;padding:5px 0}.m5p-health-kpis>div:last-child{border:0}.m5p-health-kpis b{color:#0b517d}
.m5p-health-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.m5p-health-box h3{font-size:17px;color:#103d68;margin:0 0 12px}.m5p-health-box ul{line-height:1.8;color:#375b78;padding-left:20px}
.m5p-health-box .m5p-button{margin-top:9px}
.m5p-xp-backdrop[hidden]{display:none!important}
.m5p-xp-backdrop{position:fixed;inset:0;background:#092441b5;z-index:20000;display:grid;place-items:center;padding:16px;backdrop-filter:blur(5px)}
.m5p-xp-window{width:min(600px,100%);max-height:min(740px,92vh);overflow-y:auto;background:#fff;border:1px solid #d7e8fa;border-radius:24px;box-shadow:0 24px 80px #09254470;padding:24px}
.m5p-xp-window header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e3edf7;padding-bottom:14px;margin-bottom:12px}
.m5p-xp-window h2{font-size:24px;color:#123f6a;margin:0}.m5p-xp-window p{color:#637e9c;line-height:1.5}
.m5p-xp-close{border:1px solid #ccdff2;border-radius:12px;padding:8px 13px;color:#104c7c;background:#f2f8ff;cursor:pointer;font-weight:800;font-size:21px}
.m5p-xp-guide-row{display:flex;justify-content:space-between;gap:16px;padding:12px 13px;border:1px solid #e6eff7;border-radius:12px;margin:7px 0;background:#f8fbff}
.m5p-xp-guide-row b{white-space:nowrap;color:#0868b6}
.m5p .m5p-level .m5p-xp-help{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #abcffe;border-radius:9px;background:#f4faff;padding:9px 11px;font-size:12px;font-weight:800;color:#12599d;margin-top:11px}
@media(max-width:590px){.m5p-health-overview,.m5p-health-panels{grid-template-columns:1fr}.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-animated-pet{left:7%!important;width:86%!important;height:79%!important;bottom:9%!important}.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-v24-bathtub{left:5%!important;right:5%!important;height:49%!important}}
@media(prefers-reduced-motion:reduce){.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-animated-pet{animation:none!important}}

/* M5 PETS 2.6.0: concealed symbol tiles, hydration reminder */
.m5p-colors-info{min-height:25px;text-align:center;color:#225d8d;font-weight:800;font-size:14px;margin:4px 0 12px}
.m5p-colors-grid button.covered{background:linear-gradient(150deg,#5b91d8,#3157a7);border-color:#8fb8ed;color:#fff;box-shadow:0 4px 0 #244881;text-shadow:0 2px 3px #15315d;font-size:clamp(26px,4.5vw,42px)}
.m5p-colors-grid button.preview{background:linear-gradient(#fff,#effbff)}
.m5p-colors-grid button.found{background:linear-gradient(#e7fff1,#b9edc8);border-color:#6dc69b;box-shadow:0 4px 0 #56af83}
.m5p-colors-grid button.wrong{background:#ffedf0;border-color:#ff9db3;box-shadow:0 4px 0 #ea92a7}
.m5p-colors-grid button:disabled{opacity:1;cursor:default}
.m5p-water-alert,.m5p-walk-warning{color:#7c4c12;background:#fff3d9;border:1px solid #f2cc7d;border-radius:12px;padding:12px 14px;line-height:1.5}
.m5p-water-alert{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 15px;font-weight:750}
.m5p-water-alert .m5p-button{white-space:normal}


/* M5 PETS 2.6.1: responsive sleep status and bonus details */
.m5p .m5p-sleep-summary{min-width:0;color:#fff;display:flex;flex-direction:column;justify-content:center;min-height:188px}
.m5p .m5p-sleep-summary b{color:#fff}
.m5p .m5p-sleep-summary .m5p-clock{color:#fff;font-variant-numeric:tabular-nums;letter-spacing:.02em;word-break:normal}
.m5p .m5p-sleep-summary p{margin:2px 0 0;line-height:1.65}
.m5p .m5p-sleep-track{height:10px;background:#ffffff48;border:1px solid #ffffff42;border-radius:30px;overflow:hidden;margin:2px 0 12px}
.m5p .m5p-sleep-track>span{display:block;height:100%;background:linear-gradient(90deg,#ffe1a3,#b4f7f1);border-radius:30px;transition:width 1s linear}
.m5p .m5p-sleep-controls{min-width:0}
.m5p .m5p-sleep-controls> b{display:block;margin-bottom:10px}
.m5p .m5p-sleep-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.m5p .m5p-sleep-option{min-width:0;display:flex;flex-direction:column;gap:7px}
.m5p .m5p-sleep-option .m5p-button{width:100%;padding:12px 8px;min-width:0}
.m5p .m5p-sleep-option span{font-size:12px;line-height:1.45;color:#225b80}
.m5p .m5p-sleep-option strong{color:#0d568c}
.m5p .m5p-sleep-wake{margin-top:14px;display:flex;align-items:center;flex-wrap:wrap;gap:11px}
.m5p .m5p-sleep-wake p{flex:1;min-width:150px;margin:0;font-size:12px;line-height:1.5}
.m5p .m5p-sleep-plush{margin-top:14px;align-items:flex-start;gap:13px}
.m5p .m5p-sleep-plush>div{min-width:0}
.m5p .m5p-sleep-plush ul{list-style:none;margin:9px 0;padding:0;display:flex;flex-wrap:wrap;gap:7px}
.m5p .m5p-sleep-plush li{background:#e8f8ee;color:#187147;border:1px solid #c2e8ce;border-radius:10px;padding:7px 11px;font-size:13px;line-height:1.4}
.m5p .m5p-sleep-plush small{display:block;color:#4b7393;margin-top:6px}
@media(max-width:630px){.m5p .m5p-sleep-summary{min-height:155px}.m5p .m5p-sleep-options{gap:7px}.m5p .m5p-sleep-option .m5p-button{font-size:12px;padding:10px 5px}.m5p .m5p-sleep-plush{padding:14px}.m5p .m5p-sleep-plush>span{font-size:33px}.m5p .m5p-sleep-plush ul{flex-direction:column;align-items:flex-start;gap:6px}}
@media(max-width:340px){.m5p .m5p-sleep-options{grid-template-columns:1fr}}


/* M5 PETS 2.6.3 */
.m5p-mini-link{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:10px;background:#eef7ff;border:1px solid #b9d8ff;color:#14508e;text-decoration:none;font-weight:700;}
.m5p-mini-link:hover{text-decoration:none;filter:brightness(.98);}
.m5p-share-visit{margin-top:12px;padding-top:12px;border-top:1px dashed #c8d8ea;}
.m5p-visit-page .m5p-banner-side{display:flex;align-items:center;justify-content:flex-end;}
.m5p-visit-topbar{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0;padding:14px 18px;border:1px solid #d7e7f6;border-radius:16px;background:#f9fcff;}

/* M5 PETS 2.6.4 — backpack capacity */
.m5p-bag-overview .m5p-bag-counters{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0;font-size:clamp(.8rem,1vw,.95rem)}
.m5p-bag-overview .m5p-bag-counters strong{display:inline-block;border-radius:10px;border:1px solid #bddbef;background:#fff;padding:9px 13px}
.m5p-bag-track{height:13px;border-radius:12px;background:#dfeaf3;overflow:hidden}
.m5p-bag-track span{display:block;height:100%;background:linear-gradient(90deg,#4cbfea,#2581d7);border-radius:12px;transition:width .3s ease}
.m5p-bag-shop{margin:12px 0}


/* M5 PETS 2.6.5 — bath eye line above the foam; sleep visuals only while resting. */
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-animated-pet {
  bottom:19%!important;
  height:86%!important;
}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-sleep:not(.m5p-sleep-active) .m5p-v24-zzz {display:none!important}
.m5p .m5p-scene-inner.m5p-v24.m5p-scene-sleep.m5p-sleep-active .m5p-v24-zzz {display:block!important;left:68%;bottom:126%;}
@media(max-width:590px){
 .m5p .m5p-scene-inner.m5p-v24.m5p-scene-bath .m5p-animated-pet{bottom:18%!important;height:74%!important}
}

/* M5 PETS 2.7.0 — wspólna opieka i dziennik (bez ingerowania w dotychczasowe sceny). */
.m5p-care-invitations {display:grid;gap:12px;margin:14px 0;}
.m5p-care-invitation,.m5p-care-notice {padding:16px 18px;border-radius:16px;border:1px solid #b4d9f6;background:#f1f9ff;color:#175080;}
.m5p-care-invitation {display:flex;align-items:flex-start;gap:15px;box-shadow:0 3px 12px #17395a08;}
.m5p-care-invitation>span {font-size:30px;line-height:1.5;}
.m5p-care-invitation p,.m5p-care-notice p {margin:7px 0 11px;line-height:1.55;}
.m5p-care-notice {margin:0 0 15px;}
.m5p-care-invitation .m5p-button-row {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.m5p-pet-chooser {margin:20px 0 35px;background:#fff;border-radius:20px;border:1px solid #d4e5f5;padding:clamp(15px,3vw,30px);}
.m5p-care-chooser-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px;}
.m5p-care-chooser-card {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px 14px;border:2px solid #c9e0fa;border-radius:18px;background:linear-gradient(#fff,#eff9ff);font:inherit;color:#074b83;cursor:pointer;min-width:0;transition:transform .15s ease,border-color .15s ease;}
.m5p-care-chooser-card:hover {border-color:#2b97e9;transform:translateY(-2px);}
.m5p-care-chooser-card:focus-visible {outline:3px solid #3b97df;outline-offset:2px;}
.m5p-care-chooser-card img {width:clamp(100px,19vw,180px);height:clamp(100px,19vw,180px);object-fit:contain;max-width:100%;}
.m5p-care-chooser-card strong {font-size:20px;}
.m5p-care-chooser-card span {font-size:14px;overflow-wrap:anywhere;}
.m5p-care-switch {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;margin:0 0 12px;border:1px solid #b8d7f9;border-radius:14px;background:#f3faff;}
.m5p-care-journal-entries {display:grid;gap:8px;padding:4px 0;}
.m5p-care-entry {display:flex;align-items:start;gap:12px;padding:13px 16px;border:1px solid #dae9f7;border-radius:13px;background:#fbfdff;}
.m5p-care-entry>span {font-size:21px;}
.m5p-care-entry>div {line-height:1.55;min-width:0;}
.m5p-care-entry small {display:block;font-size:12px;color:#718bab;margin-top:4px;}
@media(max-width:550px){.m5p-care-chooser-cards{gap:9px;}.m5p-care-chooser-card{padding:12px 7px;}.m5p-care-chooser-card img{width:110px;height:110px;}.m5p-care-chooser-card strong{font-size:15px;}.m5p-care-invitation{padding:12px;}}

.m5p .m5p-tabs{grid-template-columns:repeat(auto-fit,minmax(85px,1fr));}
@media(max-width:530px){.m5p .m5p-tabs{grid-template-columns:repeat(auto-fit,minmax(75px,1fr));}}

/* M5 PETS 2.7.1 — guest login modal; no style changes to existing game. */
.m5p .m5p-login-overlay[hidden],.m5p .m5p-login-error[hidden]{display:none!important}
.m5p .m5p-login-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(10,26,49,.65);backdrop-filter:blur(5px);overflow-y:auto}
.m5p .m5p-login-dialog{position:relative;width:min(100%,440px);max-height:calc(100vh - 36px);overflow:auto;border:1px solid #badaf4;border-radius:22px;background:linear-gradient(180deg,#fff,#f1f9ff);box-shadow:0 25px 70px #122a4d66;padding:clamp(20px,4vw,32px);color:#164a75}
.m5p .m5p-login-icon{text-align:center;font-size:36px;margin-bottom:8px}
.m5p .m5p-login-dialog h2{font-size:clamp(20px,3vw,25px);text-align:center;margin:4px 0 8px;color:#0c4c88}
.m5p .m5p-login-dialog p{margin:0 0 20px;text-align:center;font-size:13px;line-height:1.55;color:#4a7195}
.m5p .m5p-login-dialog form{display:flex;flex-direction:column;gap:9px;min-width:0}
.m5p .m5p-login-dialog form>label:not(.m5p-login-remember){font-weight:700;font-size:13px;color:#205886;margin-top:7px}
.m5p .m5p-login-dialog input[type=text],.m5p .m5p-login-dialog input[type=password]{min-width:0;width:100%;padding:12px 13px;border:1px solid #b2cfe7;border-radius:11px;background:white;color:#17385a;font:inherit;box-sizing:border-box;outline-offset:3px}
.m5p .m5p-login-dialog input:focus-visible{outline:2px solid #318fe9;border-color:#318fe9}
.m5p .m5p-login-remember{display:flex;gap:9px;align-items:center;font-size:13px;margin:7px 0 8px;cursor:pointer}
.m5p .m5p-login-remember input{width:17px;height:17px}
.m5p .m5p-login-submit{width:100%;margin-top:4px}
.m5p .m5p-login-dialog .m5p-login-error{border:1px solid #efc0c0;color:#a11b24;background:#fff3f3;text-align:left;padding:10px 12px;border-radius:9px;margin:0;font-size:13px}
.m5p .m5p-login-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:19px;font-size:12px}
.m5p .m5p-login-links a{color:#116db2;text-decoration:underline;text-underline-offset:2px}
.m5p .m5p-login-close{position:absolute;right:12px;top:10px;font-size:26px;background:#eff7ff;border:1px solid #c8e0f5;border-radius:10px;cursor:pointer;color:#31638d;width:38px;height:38px}
@media(max-width:420px){.m5p .m5p-login-dialog{padding:20px 17px}.m5p .m5p-login-links{flex-direction:column}}

/* M5 PETS 2.8.0 – missions and journal filtering */
.m5p-missions-list{display:grid;gap:12px;margin:14px 0;}
.m5p-mission{display:flex;align-items:center;gap:14px;padding:15px 18px;border:1px solid #c9dff1;background:#f8fcff;border-radius:16px;flex-wrap:wrap;}
.m5p-mission.done{background:#f3fbf3;border-color:#b8e3bb;}
.m5p-mission.claimed{background:#f4f7fa;}
.m5p-mission-icon{font-size:30px;line-height:1.2;}
.m5p-mission-body{flex:1 1 170px;min-width:0;display:flex;flex-direction:column;gap:4px;}
.m5p-mission-body small{color:#5d7894;}
.m5p-mission-bonus{background:#fff9df;border:1px solid #f0d584;border-radius:16px;padding:17px;margin-top:18px;}
.m5p-journal-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;}
.m5p-journal-filter select{padding:11px 14px;border:1px solid #c7def2;border-radius:11px;background:white;max-width:100%;}
.m5p-journal-pagination{justify-content:center;margin-top:14px;align-items:center;}
@media(max-width:480px){.m5p-mission{padding:12px;gap:9px}.m5p-mission .m5p-button{width:100%;}.m5p-journal-filter select{width:100%;}}

/* M5 PETS 2.8.1: milestones — compact cards, responsive without overflow. */
.m5p-level-reward-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin:16px 0 26px;}
.m5p-level-reward{border:1px solid #b9d8f5;border-radius:15px;padding:15px;background:#f6fbff;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;}
.m5p-level-reward>div{flex:1 1 100%;display:flex;flex-direction:column;gap:4px;}
.m5p-level-reward>div small{font-size:12px;color:#54749b;}
.m5p-level-reward>b{font-size:15px;color:#a16b00;}
.m5p-level-reward .m5p-button{margin-left:auto;}
.m5p-level-reward.locked{opacity:.72;background:#f6f8fb;}
.m5p-level-reward.claimed{background:#f0fbf3;border-color:#a7d8b0;}

/* ===== M5 PETS 2.9.3 | Dom pupila ===== */
.m5p-house-room{--house-wall:linear-gradient(165deg,#fff6e9,#ecd9c7);--house-floor:repeating-linear-gradient(96deg,#b9845e 0 60px,#a87452 61px 64px,#c3916b 65px 123px);--house-bed:#e3b991;position:relative;width:100%;height:100%;min-height:255px;isolation:isolate;overflow:hidden;border-radius:inherit;background:var(--house-wall)}
.m5p-house-room[data-wall="wall_lavender"]{--house-wall:linear-gradient(155deg,#f2e8ff,#c5b8ef)}
.m5p-house-room[data-wall="wall_sky"]{--house-wall:linear-gradient(155deg,#effbff,#a2d9f8)}
.m5p-house-room[data-wall="wall_forest"]{--house-wall:linear-gradient(155deg,#ecf8d8,#9cca9f)}
.m5p-house-room[data-wall="wall_sunset"]{--house-wall:linear-gradient(155deg,#fff1d1,#f3a59e)}
.m5p-house-room[data-floor="floor_white"]{--house-floor:repeating-linear-gradient(97deg,#f4eada 0 64px,#d7c9b5 65px 68px,#fff9eb 69px 125px)}
.m5p-house-room[data-floor="floor_mint"]{--house-floor:repeating-linear-gradient(97deg,#b7dcd3 0 64px,#83b7aa 65px 68px,#c6e7dd 69px 125px)}
.m5p-house-room[data-floor="floor_marble"]{--house-floor:repeating-linear-gradient(95deg,#f8fafb 0 62px,#b6cbd1 63px 65px,#e6edf0 66px 125px)}
.m5p-house-room[data-bed="bed_pink"]{--house-bed:#ed94bc}
.m5p-house-room[data-bed="bed_blue"]{--house-bed:#8bbaed}
.m5p-house-room[data-bed="bed_royal"]{--house-bed:#b89ae5}
.m5p-house-room[data-light="light_moon"]{filter:saturate(.96)}
.m5p-house-wall-decoration{position:absolute;inset:0 0 32%;background:repeating-linear-gradient(0deg,transparent 0 57px,#ffffff15 58px 59px),radial-gradient(circle at 78% 18%,#fff9 0%,transparent 42%);pointer-events:none}
.m5p-house-window{position:absolute;left:8%;top:13%;width:27%;height:36%;border:clamp(5px,1vw,10px) solid #fffffff0;border-radius:16px;background:linear-gradient(#7fc9ff,#d0edff 60%,#9aca9f 61%,#5db47b);box-shadow:0 8px 0 #956d6355,0 15px 26px #5f56703b;overflow:hidden}
.m5p-house-window:before,.m5p-house-window:after{content:"";position:absolute;background:#f9fcffb5}
.m5p-house-window:before{width:7px;height:100%;left:48%}.m5p-house-window:after{height:7px;width:100%;top:48%}
.m5p-house-window span{position:absolute;left:19%;top:7%;font-size:clamp(20px,4vw,44px);color:#ffe178}
.m5p-house-window i{position:absolute;bottom:-12%;left:0;right:0;height:38%;border-radius:50% 50% 0 0;background:#7cc28f}
.m5p-house-picture{position:absolute;top:13%;right:12%;width:17%;height:25%;min-width:70px;display:grid;place-items:center;background:#fcfcff;border:clamp(6px,.9vw,10px) solid #b98968;border-radius:8px;box-shadow:0 6px 12px #5c3f3f40;transform:rotate(3deg)}
.m5p-house-picture span{font-size:clamp(32px,5vw,54px)}
.m5p-house-floor{position:absolute;inset:65% 0 0;background:var(--house-floor);border-top:clamp(6px,1vw,12px) solid #fff9ed;box-shadow:inset 0 12px 20px #34231d29;transform:perspective(350px) rotateX(2deg)}
.m5p-house-rug{position:absolute;bottom:8%;left:33%;width:39%;height:18%;border-radius:50%;box-shadow:0 9px 8px #46342928;transform:rotate(-2deg);z-index:2}
.m5p-house-room[data-rug="rug_none"] .m5p-house-rug{display:none}
.m5p-house-room[data-rug="rug_cloud"] .m5p-house-rug{background:radial-gradient(ellipse,#fff,#e1efff);border:8px solid #fff}
.m5p-house-room[data-rug="rug_rainbow"] .m5p-house-rug{background:repeating-radial-gradient(ellipse,#ef7b9d 0 10%,#f7d478 11% 22%,#9fe6b2 23% 33%,#acd4fa 34% 43%);border:7px solid #faf1ff}
.m5p-house-room[data-rug="rug_leaf"] .m5p-house-rug{background:linear-gradient(130deg,#a8df85,#4a9e79);border:7px solid #d1edc9}
.m5p-house-bed{position:absolute;z-index:2;bottom:11%;left:7%;width:34%;height:28%;filter:drop-shadow(0 13px 10px #412b2732)}
.m5p-house-bed i{position:absolute;display:block}
.m5p-house-bed-back{inset:6% 0 18%;border:8px solid #f7ebdf;border-bottom-width:10px;border-radius:44px 44px 28px 28px;background:linear-gradient(180deg,color-mix(in srgb,var(--house-bed) 85%,#fff 15%),color-mix(in srgb,var(--house-bed) 92%,#ad7651 8%));box-shadow:inset 0 10px 16px #ffffffa6, inset 0 -10px 16px #8a593720,0 2px 0 #ffffffe0}
.m5p-house-bed-back:before{content:"";position:absolute;inset:10% 8% 22%;border-radius:38px;background:linear-gradient(180deg,#fff8,transparent 55%);opacity:.9}
.m5p-house-bed-cushion{inset:33% 10% 7%;border:4px solid #fffaf2;border-radius:40px;background:linear-gradient(180deg,#fffefb 0%,color-mix(in srgb,var(--house-bed) 72%,#fff 28%) 100%);box-shadow:inset 0 -8px 18px #7a5f3c1e, inset 0 8px 8px #ffffffbf}
.m5p-house-bed-cushion:before,.m5p-house-bed-cushion:after{content:"";position:absolute;top:14%;bottom:14%;width:2px;background:#ffffff88}
.m5p-house-bed-cushion:before{left:33%}.m5p-house-bed-cushion:after{right:33%}
.m5p-house-bed-front{bottom:0;left:2%;right:2%;height:24%;background:linear-gradient(180deg,color-mix(in srgb,var(--house-bed) 90%,#fff 10%),color-mix(in srgb,var(--house-bed) 82%,#855733 18%));border:5px solid #f8ecdf;border-radius:0 0 34px 34px;box-shadow:inset 0 7px 9px #ffffff6f}
.m5p-house-room[data-bed="bed_blue"] .m5p-house-bed-back{background:linear-gradient(180deg,#9ecbf6,#6ca7e5)}
.m5p-house-room[data-bed="bed_blue"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#fafdff,#cfe4fb)}
.m5p-house-room[data-bed="bed_blue"] .m5p-house-bed-front{background:linear-gradient(180deg,#92c2f1,#6ca8e0)}
.m5p-house-room[data-bed="bed_pink"] .m5p-house-bed-back{background:linear-gradient(180deg,#f4b3cf,#e483b0)}
.m5p-house-room[data-bed="bed_pink"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#fffafd,#f8d9e7)}
.m5p-house-room[data-bed="bed_pink"] .m5p-house-bed-front{background:linear-gradient(180deg,#eaa1c5,#dd7cad)}
.m5p-house-room[data-bed="bed_royal"] .m5p-house-bed-back{border-color:#f9e7af;background:linear-gradient(180deg,#cab2f4,#a98bdf);box-shadow:inset 0 10px 16px #ffffff9c, inset 0 -10px 16px #6a479414,0 0 0 3px #8f71c4}
.m5p-house-room[data-bed="bed_royal"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#ffffff,#e9dbfb)}
.m5p-house-room[data-bed="bed_royal"] .m5p-house-bed-front{border-color:#f9e7af;background:linear-gradient(180deg,#c4a8ef,#a183db)}
.m5p-house-plant{position:absolute;right:7%;bottom:20%;z-index:3;font-size:clamp(44px,8vw,90px);filter:drop-shadow(0 7px 7px #27402555)}
.m5p-house-lamp{position:absolute;right:6%;top:23%;width:12%;min-width:56px;max-width:92px;height:19%;min-height:64px;z-index:3;pointer-events:none}
.m5p-house-lamp-base,.m5p-house-lamp-shade,.m5p-house-lamp-glow{position:absolute;display:block}
.m5p-house-lamp-base{left:50%;top:10%;width:9%;height:56%;transform:translateX(-50%);background:linear-gradient(180deg,#ece6dd,#b8a999);border-radius:12px;box-shadow:0 0 0 1px #ffffff76}
.m5p-house-lamp-base:before{content:"";position:absolute;left:50%;bottom:-4%;width:64%;height:16%;transform:translateX(-50%);background:linear-gradient(180deg,#ded4ca,#ab9b8c);border-radius:0 0 10px 10px}
.m5p-house-lamp-base:after{content:"";position:absolute;left:50%;top:-8%;width:54%;height:14%;transform:translateX(-50%);background:#d9d1c8;border-radius:10px 10px 0 0}
.m5p-house-lamp-shade{left:50%;top:26%;width:72%;height:34%;transform:translateX(-50%);background:linear-gradient(180deg,#fff8ea,#f0d0a7);clip-path:polygon(14% 0,86% 0,100% 100%,0 100%);box-shadow:0 3px 10px #6a534424,inset 0 8px 8px #fffaf0a0}
.m5p-house-lamp-glow{left:50%;top:38%;width:130%;height:88%;transform:translateX(-50%);background:radial-gradient(circle at 50% 0,#fff7c9cc 0%,#ffe79d88 28%,transparent 68%)}
.m5p-house-lamp--moon .m5p-house-lamp-shade{top:18%;width:56%;height:40%;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff9ef 0 37%,#f0dc9d 38% 58%,transparent 59%), linear-gradient(180deg,#fff7da,#e4c86e);clip-path:none;box-shadow:0 0 18px #ffe9a0aa}
.m5p-house-lamp--moon .m5p-house-lamp-base{height:48%;top:18%}
.m5p-house-lamp--moon .m5p-house-lamp-glow{top:28%;width:150%;height:95%;background:radial-gradient(circle at 50% 15%,#fff8d2cf 0%,#ffe89b7d 30%,transparent 72%)}
.m5p-house-pet{position:absolute;z-index:4;left:45%;bottom:11%;width:37%;height:67%;filter:drop-shadow(0 14px 11px #3b342f46);animation:m5p-house-idle 3.2s ease-in-out infinite;pointer-events:none}
.m5p-house-pet img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;user-select:none}
.m5p-house-wear{position:absolute;inset:0;pointer-events:none}
.m5p-house-wear i{position:absolute;display:none;box-sizing:border-box}
.m5p-house-room[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(1),.m5p-house-room[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(2){display:block;top:32%;width:10%;height:9%;background:linear-gradient(180deg,#ff9cd5,#e558a7);border-radius:14px 14px 5px 14px;border:2px solid #fff2fb;box-shadow:0 3px 5px #7d43653b}
.m5p-house-room[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(1){left:53%;transform:rotate(28deg)}
.m5p-house-room[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(2){left:61%;transform:scaleX(-1) rotate(28deg)}
.m5p-house-room[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(3){display:block;left:58%;top:35%;width:4%;height:5%;background:#ffd8ef;border:2px solid #fff6fd;border-radius:50%}
.m5p-house-room[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(1){display:block;left:43%;top:51%;width:26%;height:10%;transform:translateX(-50%) rotate(-2deg);border-radius:999px;background:linear-gradient(180deg,#86d8ff,#3499da);border:2px solid #f1fbff;box-shadow:0 3px 6px #11496d35}
.m5p-house-room[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2),.m5p-house-room[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){display:block;top:56%;width:5%;height:13%;background:linear-gradient(180deg,#73cfff,#2487d2);border:2px solid #eefaff;border-top:none;border-radius:0 0 9px 9px}
.m5p-house-room[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2){left:47%;transform:rotate(8deg)}
.m5p-house-room[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){left:53%;transform:rotate(-9deg)}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){display:block;left:55%;top:9%;width:16%;height:10%;transform:translateX(-50%);background:linear-gradient(180deg,#ffe88b,#d89d1f);clip-path:polygon(0 100%,8% 36%,23% 64%,37% 18%,50% 62%,63% 18%,77% 64%,92% 36%,100% 100%);border-radius:0 0 18px 18px;box-shadow:0 4px 7px #6e4c1238}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){display:block;top:13%;width:4%;height:4%;border-radius:50%;background:#4bb8ff;border:1px solid #fff}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2){left:51%}.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){left:58%;background:#ff7ab8}
.m5p-house-room[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:7%;left:54%}
.m5p-house-room[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:8%;left:53%}
.m5p-house-room[data-kind="cat"][data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(1),.m5p-house-room[data-kind="cat"][data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2),.m5p-house-room[data-kind="cat"][data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){left:46%}
.m5p-house-room[data-kind="panda"][data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(1),.m5p-house-room[data-kind="panda"][data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2),.m5p-house-room[data-kind="panda"][data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){left:45%}
.m5p-house-sunbeam{position:absolute;inset:0;z-index:5;pointer-events:none;background:radial-gradient(ellipse at 35% 13%,#fff8,transparent 55%);mix-blend-mode:screen}
@keyframes m5p-house-idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.m5p-scene-inner.m5p-house-active .m5p-scene-world{background:#f5e4d4!important}
.m5p-scene-inner.m5p-house-active .m5p-scene-world:before,.m5p-scene-inner.m5p-house-active .m5p-scene-world:after,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-v23-parallax,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-scene-light,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-scene-ground,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-v23-decor,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-scene-props,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-v24-shadow,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-animated-pet,.m5p-scene-inner.m5p-house-active .m5p-scene-world>.m5p-v24-foreground{display:none!important}
.m5p-scene-inner.m5p-house-active .m5p-scene-world>[data-m5p-house-scene]{position:absolute;inset:0;z-index:2;border-radius:inherit}
.m5p-scene-inner.m5p-house-active .m5p-pet-pat{z-index:7}
.m5p-house-editor{display:grid;grid-template-columns:minmax(250px,1.13fr) minmax(240px,1fr);gap:18px;align-items:start}
.m5p-house-preview-wrap{position:sticky;top:16px;border:1px solid #c3dff3;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 15px 26px #123d6020}
.m5p-house-preview-wrap .m5p-house-room{height:325px}
.m5p-house-preview-caption{padding:14px 17px;font-weight:800;color:#124772;font-size:14px}
.m5p-house-shoplist{min-width:0}
.m5p-house-category-bar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}
.m5p-house-category-bar button{border:1px solid #cfe4fa;background:#f3f9ff;color:#21537b;border-radius:12px;padding:9px 13px;cursor:pointer;font-size:13px;font-weight:750}
.m5p-house-category-bar button.active{background:linear-gradient(#238feb,#0963be);color:#fff;border-color:#086abf}
.m5p-house-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.m5p-house-product{border:1px solid #cde4fa;background:#f9fcff;border-radius:17px;padding:15px 12px;text-align:center;display:flex;flex-direction:column;gap:7px;min-width:0}
.m5p-house-product.is-equipped{border-color:#75c7a0;background:#f0fff6}
.m5p-house-product-icon{font-size:35px;line-height:1.3}
.m5p-house-product strong{font-size:14px;color:#113d6c}
.m5p-house-product p{margin:0!important;font-size:12px;color:#52708b;flex:1}
.m5p-house-product small{font-weight:750;color:#785800}
.m5p-house-product .m5p-button{font-size:12px;padding:9px 6px;min-height:36px;width:100%;box-sizing:border-box}
.m5p-house-notice{padding:13px 16px;background:#fff6d9;border:1px solid #ecd28d;border-radius:12px;margin-bottom:14px;color:#77572e}
.m5p-house-room[data-bed="bed_royal"]{box-shadow:inset 0 0 40px #ffe9af}
@media(max-width:850px){.m5p-house-editor{grid-template-columns:1fr}.m5p-house-preview-wrap{position:static}.m5p-house-preview-wrap .m5p-house-room{height:310px}}
@media(max-width:460px){.m5p-house-products{grid-template-columns:repeat(2,minmax(0,1fr))}.m5p-house-product{padding:11px 8px}.m5p-house-preview-wrap .m5p-house-room{height:260px}.m5p-house-room .m5p-house-pet{left:43%;width:43%}.m5p-house-bed{left:4%;width:40%;height:30%}.m5p-house-category-bar button{font-size:12px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.m5p-house-pet{animation:none!important}}

.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2){top:13%;}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){top:13%;}
.m5p-house-room[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),.m5p-house-room[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){top:11%;}
.m5p-house-room[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),.m5p-house-room[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){top:12%;}

/* --- M5 PETS 2.9.3 | Premium crown hotfix --- */
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){
  display:block;
  left:55%;
  top:5.5%;
  width:20%;
  height:13%;
  transform:translateX(-50%);
  background:linear-gradient(180deg,#fff0a8 0%,#efc74e 36%,#d89917 100%);
  clip-path:polygon(0 100%,7% 48%,20% 62%,33% 14%,50% 58%,67% 14%,80% 62%,93% 48%,100% 100%);
  border-radius:0 0 18px 18px;
  box-shadow:0 6px 10px #6e4c1240, inset 0 1px 0 #fff9d2;
  z-index:2;
}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1)::before{
  content:"";
  position:absolute;
  left:8%; right:8%; bottom:-10%;
  height:27%;
  border-radius:999px;
  background:linear-gradient(180deg,#f5d468,#ca8a13);
  box-shadow:inset 0 1px 0 #fff8c3;
}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1)::after{
  content:"";
  position:absolute;
  left:16%; right:16%; top:18%;
  height:34%;
  background:linear-gradient(180deg,#fff9d8aa,#ffffff00);
  clip-path:polygon(0 100%,10% 42%,24% 58%,37% 0,50% 52%,63% 0,76% 58%,90% 42%,100% 100%);
}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){display:none !important;}
.m5p-house-room[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:4.7%;left:54.2%;width:18.5%;height:12%;}
.m5p-house-room[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:5.0%;left:53.2%;width:18.5%;height:12%;}
@media(max-width:460px){
  .m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:6%;width:21%;height:13.5%;}
}

/* ===== M5 PETS 2.9.5 | Salon premium refined layout ===== */
.m5p-house-room{
 --house-wall:linear-gradient(148deg,#fffaf2 0%,#f4e9dc 62%,#e8d9c6 100%);
 --house-floor:repeating-linear-gradient(96deg,#c59c78 0 72px,#aa8162 73px 75px,#c7a382 77px 146px);
 background:var(--house-wall);
 box-shadow:inset 0 0 70px #744c2e12;
}
.m5p-house-room[data-wall="wall_lavender"]{--house-wall:linear-gradient(150deg,#faf6ff,#e0d8ed 72%,#cbbfda)}
.m5p-house-room[data-wall="wall_sky"]{--house-wall:linear-gradient(150deg,#f4fcff,#dcebf4 72%,#c5dbe9)}
.m5p-house-room[data-wall="wall_forest"]{--house-wall:linear-gradient(150deg,#f6faef,#dce7d2 72%,#b9d2b9)}
.m5p-house-room[data-wall="wall_sunset"]{--house-wall:linear-gradient(150deg,#fff9ed,#f0ddcf 72%,#e3b6a7)}
.m5p-house-wall-decoration{
 inset:0 0 34%;
 background:linear-gradient(90deg,transparent 0 1%,#ffffff44 1.2%,transparent 1.6% 98%,#75563e0e 100%),
 repeating-linear-gradient(90deg,transparent 0 24%,#866d4d0a 24.1% 24.3%,transparent 24.4% 48%),
 radial-gradient(ellipse at 31% 1%,#ffffffb5,transparent 55%);
 z-index:0;
}
.m5p-house-room:before{
 content:"";position:absolute;z-index:1;left:0;right:0;top:64%;height:2.4%;
 background:linear-gradient(#fffbf3,#d7c2ad 48%,#fff8eb 60%,#a8886d38);
 box-shadow:0 7px 10px #624a3220;
 pointer-events:none;
}
.m5p-house-floor{
 inset:66% 0 0;
 border-top:0;
 background:var(--house-floor);
 box-shadow:inset 0 16px 24px #49352728,inset 0 -13px 24px #fff3e31a;
 transform:none;
}
.m5p-house-floor:after{
 content:"";position:absolute;inset:0;
 background:repeating-linear-gradient(178deg,#ffffff09 0 40px,#58371c12 41px 42px,transparent 44px 82px);
}
.m5p-house-window{
 left:7%;top:10%;width:30%;height:39%;
 overflow:visible;
 border:clamp(7px,1vw,12px) solid #fffcf7;
 background:#c6e7ed;
 border-radius:22px;
 box-shadow:0 8px 0 #b8a296,0 13px 17px #59493820,inset 0 0 0 2px #9bc6ce;
 z-index:2;
}
.m5p-house-window:before,.m5p-house-window:after{display:none!important}
.m5p-house-window-view{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px;overflow:hidden;}
.m5p-house-window-glass{
 position:absolute;inset:0;border-radius:12px;pointer-events:none;
 background:linear-gradient(110deg,#fff8 1%,transparent 35%,#ffffff22 61%,transparent 71%),
 linear-gradient(90deg,transparent 49%,#fffefa 49.1% 52%,transparent 52.1%),
 linear-gradient(180deg,transparent 55%,#fffefa 55.2% 59%,transparent 59.2%);
 box-shadow:inset 0 0 0 2px #e6f1ed;
}
.m5p-house-window-rail{position:absolute;bottom:16%;left:0;right:0;height:5%;background:#fffefa90}
.m5p-house-window-curtain{position:absolute;top:-4%;bottom:1%;width:21%;pointer-events:none;
 background:repeating-linear-gradient(90deg,#fff9e9e8 0 17%,#eee1d3c9 24% 37%,#ffffffc7 45% 65%);
 box-shadow:inset 0 0 9px #d2b9a152,1px 1px 9px #7f62532c;
}
.m5p-house-window-curtain.left{left:-2%;border-radius:9px 4px 24px 14px;clip-path:polygon(0 0,100% 0,63% 47%,80% 100%,0 100%)}
.m5p-house-window-curtain.right{right:-2%;border-radius:4px 9px 14px 24px;clip-path:polygon(0 0,100% 0,100% 100%,20% 100%,37% 47%)}
.m5p-house-window-curtain:before{content:"";position:absolute;top:46%;left:0;right:0;height:5px;background:#c9a46e;box-shadow:0 1px 1px #845e32a6}
.m5p-house-window-sill{position:absolute;bottom:-14%;left:-7%;right:-7%;height:10%;background:linear-gradient(#fffdfa,#d5c7b6);border-radius:0 0 10px 10px;box-shadow:0 8px 12px #5d493629}
.m5p-house-picture{
 z-index:2;top:15%;left:41%;right:auto;width:15%;min-width:0;height:25%;
 padding:4px;box-sizing:border-box;display:flex;
 border:clamp(5px,.8vw,10px) ridge #c59b61;border-radius:9px;
 background:#f8f0e7;
 transform:rotate(-1deg);
 box-shadow:0 7px 12px #60472d33,inset 0 0 0 2px #f6e2b9;
}
.m5p-house-picture:before{content:"";position:absolute;inset:-3px;border:1px solid #fff7dd90;border-radius:10px;pointer-events:none}
.m5p-house-picture-art{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px;box-shadow:inset 0 0 3px #674}
.m5p-house-furniture-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 6px 6px #3f33272e)}
.m5p-house-shelf{position:absolute;z-index:3;top:9%;right:3.5%;width:27%;height:28%;pointer-events:none}
.m5p-house-dresser{position:absolute;z-index:2;bottom:11%;right:1%;width:25%;height:30%;pointer-events:none}
.m5p-house-plant{
 position:absolute;z-index:3;bottom:18%;right:3.5%;width:14%;height:35%;
 font-size:initial;filter:none;pointer-events:none;
}
.m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{
 right:6%;bottom:32%;width:13%;height:28%;
}
.m5p-house-lamp{right:29%;top:37%;width:9%;height:16%;min-width:34px;min-height:38px;max-width:68px;z-index:2}
.m5p-house-toy{position:absolute;z-index:5;left:37%;bottom:8.5%;width:12%;height:19%;pointer-events:none}
.m5p-house-rug{bottom:7%;left:34%;width:40%;height:16%;z-index:2;opacity:.9}
.m5p-house-bed{bottom:10%;left:6%;z-index:3;width:33%}
.m5p-house-pet{z-index:4}
.m5p-house-sunbeam{opacity:.52;}
@media(max-width:600px){
 .m5p-house-window{top:12%;width:32%;height:33%;left:5%;border-width:6px;border-radius:13px}
 .m5p-house-window-glass{border-radius:7px}
 .m5p-house-window-sill{bottom:-16%}
 .m5p-house-picture{top:16%;left:40%;width:15%;height:21%;border-width:5px}
 .m5p-house-shelf{top:13%;right:2%;width:27%;height:24%}
 .m5p-house-dresser{width:27%;height:31%;right:-1%;bottom:9%}
 .m5p-house-plant{right:2%;bottom:19%;width:17%;height:33%}
 .m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:4%;bottom:31%;width:15%;height:27%}
 .m5p-house-lamp{right:26%;top:38%}
 .m5p-house-toy{left:36%;width:15%;height:18%;bottom:7%}
 .m5p-house-bed{left:3%;width:38%;height:29%;bottom:10%}
}
/* Keep accessories anchored to the actual square sprite, not to transparent
   vertical space introduced by a narrow/portrait room. */
.m5p-house-room .m5p-house-pet{height:auto;aspect-ratio:1/1;width:37%;max-width:300px;bottom:11%;}
@media(max-width:460px){.m5p-house-room .m5p-house-pet{left:43%;width:43%;}}

/* ===== M5 PETS 2.9.5 | Final premium room refinement ===== */
.m5p-house-room{
 --house-wall:linear-gradient(180deg,#fbf6ef 0%,#f4ebe2 56%,#efdfcf 100%);
 --house-floor:repeating-linear-gradient(90deg,#edf1f2 0 68px,#bfcdd2 69px 72px,#f7fafb 73px 138px);
 box-shadow:inset 0 0 90px #8c6f4a12;
}
.m5p-house-room[data-floor="floor_oak"]{--house-floor:repeating-linear-gradient(90deg,#d4b18d 0 68px,#b88e6e 69px 72px,#ddb996 73px 138px)}
.m5p-house-wall-decoration{
 inset:0 0 35%;
 background:
   linear-gradient(90deg,transparent 0 1%,#ffffff40 1.2%,transparent 1.6% 98%,#6e51390c 100%),
   repeating-linear-gradient(90deg,transparent 0 31%,#98785a10 31.2% 31.5%,transparent 31.7% 62%),
   radial-gradient(ellipse at 28% 0,#ffffffc5 0,transparent 52%);
}
.m5p-house-room:before{top:63.5%;height:2.8%;background:linear-gradient(#fffdf8,#ddccba 40%,#fffaf1 72%,#9e82652e)}
.m5p-house-floor{inset:66% 0 0;box-shadow:inset 0 14px 20px #49352717,inset 0 -8px 15px #fff8f14d}
.m5p-house-floor:after{background:repeating-linear-gradient(90deg,#ffffff08 0 67px,#9faeb414 68px 72px,transparent 73px 138px)}

/* Better structured window */
.m5p-house-window{
 left:6.7%;top:10.8%;width:29%;height:32%;overflow:hidden;
 border:clamp(8px,1vw,12px) solid #fffdf9;border-radius:22px;
 background:linear-gradient(180deg,#d6ecf3,#bedfe8);
 box-shadow:0 7px 0 #c9b5a3,0 16px 25px #5c4c391f,inset 0 0 0 2px #a6ccd6;
}
.m5p-house-window-view{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;border-radius:12px;z-index:0}
.m5p-house-window-glass{inset:0;z-index:2;border-radius:12px;background:
 linear-gradient(105deg,#ffffff9f 0 4%,transparent 14% 49%,#ffffff20 58%,transparent 68%),
 linear-gradient(90deg,transparent 48.7%,#fffefb 49% 51.3%,transparent 51.6%),
 linear-gradient(180deg,transparent 50.8%,#fffefb 51.1% 53.7%,transparent 54%);box-shadow:inset 0 0 0 2px #edf6f8}
.m5p-house-window-rail{display:none}
.m5p-house-window-curtain{top:-5%;bottom:0;width:18%;background:repeating-linear-gradient(90deg,#fef8ee 0 20%,#ecddd0 22% 40%,#fffaf3 42% 65%);box-shadow:inset 0 0 9px #d7bfaa58,0 2px 8px #664e3920;z-index:3}
.m5p-house-window-curtain.left{left:1%;clip-path:polygon(0 0,100% 0,70% 45%,85% 100%,0 100%);border-radius:9px 7px 16px 13px}
.m5p-house-window-curtain.right{right:1%;clip-path:polygon(0 0,100% 0,100% 100%,15% 100%,30% 45%);border-radius:7px 9px 13px 16px}
.m5p-house-window-curtain:before{top:21%;left:-4%;right:-4%;height:4px;background:linear-gradient(90deg,#b99155,#dbc293,#b99155);box-shadow:none}
.m5p-house-window-sill{bottom:0;left:0;right:0;height:7%;background:linear-gradient(180deg,#fffdfb,#d2c1af);border-radius:0;box-shadow:0 -1px 0 #f6efe7,inset 0 1px 0 #fff}

/* Nicer picture and furniture */
.m5p-house-picture{top:13%;left:39%;width:17%;height:21%;border-width:7px;border-radius:10px;transform:rotate(-1.5deg);background:#fbf4ec;box-shadow:0 8px 15px #5d473229,inset 0 0 0 2px #f6e6cc}
.m5p-house-shelf{top:12%;right:5%;width:24%;height:19%;z-index:3}
.m5p-house-dresser{bottom:10.8%;right:3.5%;width:19%;height:24%;z-index:3}
.m5p-house-plant{right:4.2%;bottom:18.2%;width:13%;height:28%;z-index:4}
.m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:5.5%;bottom:36.2%;width:11%;height:22%;z-index:5}
.m5p-house-toy{left:31%;bottom:11%;width:10.5%;height:14%;z-index:4}
.m5p-house-rug{bottom:7.3%;left:30.5%;width:44%;height:17%;opacity:.96;filter:drop-shadow(0 5px 5px #7d726b22)}
.m5p-house-bed{left:6%;bottom:10.1%;width:31%;height:26%;z-index:3}
.m5p-house-bed-back{border-width:7px;border-radius:42px 42px 26px 26px}
.m5p-house-bed-front{border-width:5px}

/* Actual visible wall lamps */
.m5p-house-lamp{right:18.5%;top:18.8%;width:11%;height:20%;min-width:56px;min-height:72px;max-width:100px;z-index:3}
.m5p-house-lamp-base{left:50%;top:4%;width:11%;height:67%;transform:translateX(-50%);background:linear-gradient(180deg,#f5ede5,#baa692);border-radius:999px;box-shadow:0 0 0 1px #fff9}
.m5p-house-lamp-base:before{left:50%;bottom:-5%;width:78%;height:12%;border-radius:999px;background:linear-gradient(180deg,#e3d7cb,#bda792)}
.m5p-house-lamp-base:after{left:50%;top:-1%;width:56%;height:8%;border-radius:999px;background:#e1d5c8}
.m5p-house-lamp-shade{left:50%;top:16%;width:84%;height:38%;transform:translateX(-50%);background:linear-gradient(180deg,#fffdf7,#efd3ae 85%);clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);border-radius:14px 14px 22px 22px;box-shadow:0 4px 12px #70584026,inset 0 5px 6px #fffdf8}
.m5p-house-lamp-glow{left:50%;top:20%;width:170%;height:110%;transform:translateX(-50%);background:radial-gradient(circle at 50% 0,#fffce8db 0%,#ffe7ae92 30%,transparent 72%)}
.m5p-house-lamp--moon .m5p-house-lamp-base{top:14%;height:56%}
.m5p-house-lamp--moon .m5p-house-lamp-shade{top:4%;width:72%;height:48%;clip-path:none;border-radius:50%;background:radial-gradient(circle at 38% 34%,#fffefa 0 38%,#efdb9a 39% 56%,transparent 57%), linear-gradient(180deg,#fff7d1,#e7c96f);box-shadow:0 0 20px #ffe7a0aa, 0 2px 9px #79614124}
.m5p-house-lamp--moon .m5p-house-lamp-glow{top:7%;width:190%;height:125%;background:radial-gradient(circle at 50% 15%,#fffcecd9 0%,#ffe8ab8f 32%,transparent 73%)}

/* premium accessory placement */
.m5p-house-room .m5p-house-pet{left:44%;bottom:10.8%;width:35.5%;max-width:295px}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:7.2%;width:18.5%;height:11.8%;left:55.3%}
.m5p-house-room[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:6.3%;left:54.6%;width:17.2%;height:11%}
.m5p-house-room[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:6.6%;left:53.5%;width:17.4%;height:11.2%}

@media(max-width:600px){
 .m5p-house-window{left:5%;top:12%;width:31%;height:28%}
 .m5p-house-picture{top:13%;left:39%;width:17%;height:18%}
 .m5p-house-shelf{top:12%;right:3.5%;width:24%;height:17%}
 .m5p-house-dresser{right:3%;width:21%;height:22%;bottom:10.5%}
 .m5p-house-plant{right:2%;bottom:18.3%;width:15%;height:27%}
 .m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:5%;bottom:37.3%;width:13%;height:21%}
 .m5p-house-lamp{right:18%;top:18%;width:10%;height:17%;min-width:36px;min-height:52px;max-width:62px}
 .m5p-house-toy{left:31%;width:12%;height:12%;bottom:10.4%}
 .m5p-house-bed{left:4%;width:35%;height:24%}
 .m5p-house-rug{left:29%;width:46%;height:16%}
 .m5p-house-room .m5p-house-pet{left:42.5%;width:40%}
}
@media(max-width:460px){
 .m5p-house-window{height:27%}
 .m5p-house-window-curtain{width:17%}
 .m5p-house-picture{width:18%;height:17%}
 .m5p-house-lamp{right:17%;top:18%;width:10%;height:16%;min-width:32px;min-height:46px}
 .m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:7.1%;width:19.5%;height:12.3%}
}


/* ===== M5 PETS 2.9.6 | Professional premium room redesign ===== */
.m5p-house-preview-wrap{border-color:#d6e6f3;box-shadow:0 18px 30px rgba(18,61,96,.14);border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbfe)}
.m5p-house-preview-wrap .m5p-house-room{height:340px}
.m5p-house-room{
 --house-wall:linear-gradient(180deg,#fcfaf6 0%,#f4ece2 58%,#eadccf 100%);
 --house-floor:repeating-linear-gradient(90deg,#f7fafc 0 72px,#d4dde2 73px 76px,#eef3f6 77px 146px);
 position:relative;overflow:hidden;background:var(--house-wall);border-radius:18px;
 box-shadow:inset 0 0 80px rgba(120,93,61,.10), inset 0 -24px 55px rgba(255,255,255,.35);
}
.m5p-house-room[data-wall="wall_lavender"]{--house-wall:linear-gradient(180deg,#fbf8ff 0%,#eee7f5 58%,#ddd1ea 100%)}
.m5p-house-room[data-wall="wall_sky"]{--house-wall:linear-gradient(180deg,#f8fcff 0%,#e8f2f8 58%,#d4e3ec 100%)}
.m5p-house-room[data-wall="wall_forest"]{--house-wall:linear-gradient(180deg,#f8fcf8 0%,#ebf2e9 58%,#d8e4d5 100%)}
.m5p-house-room[data-wall="wall_sunset"]{--house-wall:linear-gradient(180deg,#fffaf5 0%,#f7ece1 54%,#eed4c5 100%)}
.m5p-house-room[data-floor="floor_oak"]{--house-floor:repeating-linear-gradient(90deg,#d8b390 0 72px,#b48b68 73px 76px,#e0bc97 77px 146px)}
.m5p-house-room[data-floor="floor_white"]{--house-floor:repeating-linear-gradient(90deg,#fafcfd 0 72px,#d7e0e5 73px 76px,#edf3f6 77px 146px)}
.m5p-house-room[data-floor="floor_mint"]{--house-floor:repeating-linear-gradient(90deg,#eef7f3 0 72px,#c1d8d1 73px 76px,#ddece6 77px 146px)}
.m5p-house-room[data-floor="floor_marble"]{--house-floor:linear-gradient(180deg,#f7fafc 0%,#e9eef1 100%)}
.m5p-house-wall-decoration{
 inset:0 0 34%;
 background:
   linear-gradient(90deg,transparent 0 14%,rgba(255,255,255,.35) 14.2%,transparent 14.5% 50%,rgba(255,255,255,.32) 50.2%,transparent 50.5% 86%,rgba(130,97,65,.08) 86.2%,transparent 86.5%),
   linear-gradient(180deg,rgba(255,255,255,.22),transparent 28%),
   radial-gradient(ellipse at 18% 3%,rgba(255,255,255,.82) 0,rgba(255,255,255,.18) 28%,transparent 52%);
}
.m5p-house-room:before{content:"";position:absolute;left:0;right:0;top:64%;height:3.2%;background:linear-gradient(180deg,#fffdfa,#e8dacb 45%,#fff8f0 70%,rgba(153,123,96,.20));z-index:1}
.m5p-house-floor{position:absolute;inset:67% 0 0;background:var(--house-floor);box-shadow:inset 0 14px 18px rgba(82,63,45,.10), inset 0 -8px 12px rgba(255,255,255,.36);z-index:0}
.m5p-house-floor:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.28),transparent 26%),repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0 72px,rgba(149,168,176,.17) 73px 76px,transparent 77px 146px)}
.m5p-house-window{left:6%;top:11.2%;width:29%;height:28.6%;border:10px solid #fffdfa;border-radius:23px;background:linear-gradient(180deg,#dcecf2,#bfdde5);overflow:hidden;box-shadow:0 8px 0 #ccb9a8,0 17px 24px rgba(70,54,39,.16),inset 0 0 0 2px rgba(167,201,213,.95);z-index:2}
.m5p-house-window-view{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%;border-radius:12px;z-index:0}
.m5p-house-window-glass{position:absolute;inset:0;z-index:2;border-radius:12px;background:linear-gradient(107deg,rgba(255,255,255,.82) 0 4%,transparent 14% 46%,rgba(255,255,255,.18) 56%,transparent 66%),linear-gradient(90deg,transparent 48.9%,#fffefa 49.1% 51.1%,transparent 51.3%),linear-gradient(180deg,transparent 51%,#fffefa 51.3% 53.2%,transparent 53.5%);box-shadow:inset 0 0 0 2px rgba(241,247,248,.96)}
.m5p-house-window-curtain{top:-4%;bottom:0;width:17%;background:repeating-linear-gradient(90deg,#fff9f0 0 22%,#eadacc 24% 40%,#fffdf8 42% 66%);box-shadow:inset 0 0 9px rgba(213,191,170,.38),0 2px 8px rgba(77,59,43,.12);z-index:3}
.m5p-house-window-curtain.left{left:1.2%;clip-path:polygon(0 0,100% 0,68% 44%,84% 100%,0 100%);border-radius:10px 8px 17px 14px}
.m5p-house-window-curtain.right{right:1.2%;clip-path:polygon(0 0,100% 0,100% 100%,16% 100%,32% 44%);border-radius:8px 10px 14px 17px}
.m5p-house-window-curtain:before{content:"";position:absolute;top:20%;left:-3%;right:-3%;height:4px;background:linear-gradient(90deg,#ba9257,#dec49b,#ba9257)}
.m5p-house-window-sill{position:absolute;left:0;right:0;bottom:0;height:7%;background:linear-gradient(180deg,#fffefb,#d3c0ae);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.m5p-house-picture{top:13%;left:39.5%;width:15.6%;height:18.6%;padding:4px;border:7px solid #be9a69;border-radius:12px;background:#fbf5ee;box-shadow:0 10px 16px rgba(84,61,37,.17), inset 0 0 0 2px rgba(248,230,201,.95);transform:rotate(-1deg);z-index:3}
.m5p-house-picture:before{content:"";position:absolute;inset:-4px;border-radius:13px;border:1px solid rgba(255,247,223,.7)}
.m5p-house-picture-art{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.m5p-house-furniture-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 6px 8px rgba(55,43,31,.18))}
.m5p-house-shelf{position:absolute;top:13%;right:4.6%;width:23%;height:17.5%;z-index:3;pointer-events:none}
.m5p-house-dresser{position:absolute;bottom:10.8%;right:4.2%;width:18.5%;height:23.8%;z-index:3;pointer-events:none}
.m5p-house-plant{position:absolute;right:4.3%;bottom:19%;width:12.5%;height:27%;z-index:4;pointer-events:none}
.m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:5.6%;bottom:33.8%;width:10.6%;height:21%;z-index:5}
.m5p-house-rug{position:absolute;left:29.5%;bottom:8.2%;width:45%;height:17%;z-index:2;opacity:.98;filter:drop-shadow(0 7px 7px rgba(93,85,76,.15))}
.m5p-house-bed{position:absolute;left:6.2%;bottom:10.1%;width:30.2%;height:24.8%;z-index:3}
.m5p-house-bed-back{border-width:7px;border-radius:44px 44px 26px 26px;box-shadow:inset 0 10px 18px rgba(255,255,255,.28),0 6px 10px rgba(102,146,190,.15)}
.m5p-house-bed-cushion{box-shadow:inset 0 6px 14px rgba(255,255,255,.45)}
.m5p-house-bed-front{border-width:5px;box-shadow:0 8px 14px rgba(77,124,169,.16)}
.m5p-house-lamp{position:absolute;right:20.5%;top:15.8%;width:10.8%;height:18.7%;min-width:56px;min-height:72px;max-width:96px;z-index:4;pointer-events:none}
.m5p-house-lamp-base{position:absolute;left:50%;top:10%;width:12%;height:63%;transform:translateX(-50%);background:linear-gradient(180deg,#f5ede5,#bca48f);border-radius:999px;box-shadow:0 0 0 1px rgba(255,255,255,.72)}
.m5p-house-lamp-base:before{content:"";position:absolute;left:50%;bottom:-5%;width:82%;height:12%;transform:translateX(-50%);background:linear-gradient(180deg,#e4d9cf,#bfa891);border-radius:999px}
.m5p-house-lamp-base:after{content:"";position:absolute;left:50%;top:-1%;width:58%;height:9%;transform:translateX(-50%);background:#e7dbce;border-radius:999px}
.m5p-house-lamp-shade{position:absolute;left:50%;top:18%;width:84%;height:38%;transform:translateX(-50%);background:linear-gradient(180deg,#fffdf8 0%,#f6ead7 42%,#edd0a7 100%);clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);border-radius:14px 14px 22px 22px;box-shadow:0 5px 12px rgba(103,81,59,.18),inset 0 6px 7px rgba(255,255,255,.82)}
.m5p-house-lamp-glow{position:absolute;left:50%;top:14%;width:178%;height:118%;transform:translateX(-50%);background:radial-gradient(circle at 50% 8%,rgba(255,252,236,.96) 0%,rgba(255,235,180,.58) 28%,rgba(255,237,189,.22) 45%,transparent 74%)}
.m5p-house-lamp--moon .m5p-house-lamp-base{top:18%;height:52%}
.m5p-house-lamp--moon .m5p-house-lamp-shade{top:3%;width:72%;height:46%;clip-path:none;border-radius:50%;background:radial-gradient(circle at 36% 35%,#fffef9 0 36%,#f8e3a8 37% 54%,transparent 55%),linear-gradient(180deg,#fff6d4,#e7c96f);box-shadow:0 0 22px rgba(255,231,160,.72),0 3px 10px rgba(95,74,51,.16)}
.m5p-house-lamp--moon .m5p-house-lamp-glow{top:4%;width:192%;height:126%;background:radial-gradient(circle at 50% 18%,rgba(255,252,236,.95) 0%,rgba(255,231,171,.54) 30%,rgba(255,241,203,.18) 48%,transparent 74%)}
.m5p-house-toy{position:absolute;left:36.2%;bottom:10.6%;width:10.4%;height:13.2%;z-index:4;pointer-events:none}
.m5p-house-room .m5p-house-pet{left:43.7%;bottom:10%;width:35%;max-width:294px;z-index:4}
.m5p-house-sunbeam{position:absolute;left:48%;top:8%;width:30%;height:54%;background:radial-gradient(ellipse at 50% 0,rgba(255,255,255,.24),transparent 72%);z-index:1;pointer-events:none}
.m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:6.2%;left:55%;width:18.2%;height:11.4%;transform:translateX(-50%);z-index:2}
.m5p-house-room[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:5.4%;left:54.3%;width:17.1%;height:10.8%}
.m5p-house-room[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:5.6%;left:53.6%;width:17.2%;height:11%}
.m5p-house-room[data-floor="floor_marble"] .m5p-house-floor:after{background:linear-gradient(180deg,rgba(255,255,255,.3),transparent 24%),radial-gradient(circle at 15% 30%,rgba(188,201,207,.10) 0 18%,transparent 19%),radial-gradient(circle at 70% 46%,rgba(188,201,207,.12) 0 15%,transparent 16%),linear-gradient(120deg,transparent 0 23%,rgba(190,200,206,.15) 24%,transparent 26% 51%,rgba(184,196,204,.12) 52%,transparent 54% 76%,rgba(200,210,216,.12) 77%,transparent 79%)}
@media(max-width:850px){.m5p-house-preview-wrap .m5p-house-room{height:320px}}
@media(max-width:600px){
 .m5p-house-window{left:5.4%;top:12.2%;width:31%;height:26.5%}
 .m5p-house-picture{top:13.5%;left:39.2%;width:16.5%;height:17.4%}
 .m5p-house-shelf{top:13.3%;right:4%;width:23.5%;height:15.5%}
 .m5p-house-lamp{right:20.2%;top:15.4%;width:9.8%;height:16%;min-width:40px;min-height:52px;max-width:68px}
 .m5p-house-dresser{right:3.6%;bottom:10.8%;width:20.5%;height:22.2%}
 .m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:5.2%;bottom:33.7%;width:12.2%;height:19.4%}
 .m5p-house-plant{right:2.4%;bottom:18.4%;width:14.6%;height:25%}
 .m5p-house-bed{left:4.4%;width:34.5%;height:23.8%}
 .m5p-house-rug{left:29%;width:45%;height:15.8%}
 .m5p-house-toy{left:36%;width:11.6%;height:11.3%;bottom:10.1%}
 .m5p-house-room .m5p-house-pet{left:42.3%;width:39.3%}
}
@media(max-width:460px){
 .m5p-house-preview-wrap .m5p-house-room{height:270px}
 .m5p-house-window{height:25.4%}
 .m5p-house-window-curtain{width:16%}
 .m5p-house-picture{width:17.5%;height:16.6%}
 .m5p-house-lamp{right:19%;top:15%;width:9%;height:15%;min-width:34px;min-height:44px}
 .m5p-house-room .m5p-house-pet{left:41.5%;width:41.5%}
 .m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:6.1%;width:19.4%;height:12%}
}

/* ===== M5 PETS 2.9.7 | Premium royal room refresh ===== */
.m5p-house-category-bar{gap:10px;margin-bottom:18px}
.m5p-house-category-bar button{border-radius:16px;padding:10px 16px;font-size:14px;box-shadow:0 2px 0 rgba(255,255,255,.7) inset}
.m5p-house-category-bar button.active{box-shadow:0 8px 18px rgba(8,106,191,.22)}
.m5p-house-products{gap:12px}
.m5p-house-product{border-radius:20px;padding:16px 13px;box-shadow:0 7px 18px rgba(26,61,91,.06)}
.m5p-house-product.is-equipped{box-shadow:0 10px 20px rgba(35,158,98,.08)}

.m5p-house-preview-wrap{border:1px solid #cfe2f3;background:linear-gradient(180deg,#fbfdff,#f2f8fd);box-shadow:0 20px 34px rgba(20,65,104,.12)}
.m5p-house-preview-wrap .m5p-house-room{height:365px}
.m5p-house-room{
  --house-wall:linear-gradient(180deg,#f8f0e6 0%,#f4eadf 58%,#eddcc8 100%);
  --house-floor:linear-gradient(180deg,#f9f3e9 0%,#efdfca 100%);
  --house-bed:#7aa8dc;
  border-radius:22px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72), inset 0 -35px 70px rgba(255,255,255,.24), inset 0 0 80px rgba(149,111,71,.08);
}
.m5p-house-room[data-wall="wall_lavender"]{--house-wall:linear-gradient(180deg,#fbf8fe 0%,#f1ecf7 58%,#e0d6ee 100%)}
.m5p-house-room[data-wall="wall_sky"]{--house-wall:linear-gradient(180deg,#f8fcff 0%,#eff4f7 58%,#dae6ef 100%)}
.m5p-house-room[data-wall="wall_forest"]{--house-wall:linear-gradient(180deg,#f6fbf5 0%,#edf4ea 58%,#dce8d7 100%)}
.m5p-house-room[data-wall="wall_sunset"]{--house-wall:linear-gradient(180deg,#fffaf5 0%,#f7ede3 58%,#eed7c7 100%)}
.m5p-house-room[data-floor="floor_oak"]{--house-floor:linear-gradient(180deg,#e8c79f 0%,#d7ae81 100%)}
.m5p-house-room[data-floor="floor_white"]{--house-floor:linear-gradient(180deg,#fbfcfd 0%,#edf2f5 100%)}
.m5p-house-room[data-floor="floor_mint"]{--house-floor:linear-gradient(180deg,#edf7f3 0%,#d7e8df 100%)}
.m5p-house-room[data-floor="floor_marble"]{--house-floor:linear-gradient(180deg,#fbfcfd 0%,#edf1f3 100%)}
.m5p-house-wall-decoration{
  inset:0 0 34%;
  background:
    linear-gradient(90deg, transparent 0 17%, rgba(188,153,115,.14) 17.2%, transparent 17.5% 50%, rgba(188,153,115,.14) 50.2%, transparent 50.5% 83%, rgba(188,153,115,.14) 83.2%, transparent 83.5%),
    linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0) 22%),
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.65), rgba(255,255,255,0) 30%);
}
.m5p-house-room:before{content:"";position:absolute;left:0;right:0;top:64%;height:3.6%;background:linear-gradient(180deg,#fffdf8,#e7d7c4 48%,#fffaf3 76%,rgba(172,138,100,.18));z-index:1}
.m5p-house-floor{inset:67% 0 0;background:var(--house-floor);box-shadow:inset 0 14px 18px rgba(74,56,37,.10), inset 0 -10px 16px rgba(255,255,255,.35)}
.m5p-house-floor:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.20),transparent 22%),repeating-linear-gradient(90deg,rgba(255,255,255,.10) 0 77px,rgba(176,188,197,.16) 78px 82px,transparent 83px 154px)}
.m5p-house-room[data-floor="floor_marble"] .m5p-house-floor:after{background:linear-gradient(180deg,rgba(255,255,255,.28),transparent 24%),radial-gradient(circle at 20% 24%,rgba(183,195,203,.12) 0 16%,transparent 17%),radial-gradient(circle at 76% 47%,rgba(183,195,203,.11) 0 15%,transparent 16%),linear-gradient(115deg,transparent 0 22%,rgba(183,195,203,.15) 23%,transparent 25% 52%,rgba(183,195,203,.12) 53%,transparent 55% 78%,rgba(183,195,203,.10) 79%,transparent 81%)}

.m5p-house-window{
  left:4.8%;top:8.8%;width:33.8%;height:39%;
  border:12px solid #fffdfa;border-radius:28px;
  background:linear-gradient(180deg,#d8eaf3,#bddae4);
  box-shadow:0 9px 0 #ccb7a3,0 18px 28px rgba(80,60,41,.15), inset 0 0 0 2px rgba(167,201,213,.95);
  overflow:hidden;z-index:3;
}
.m5p-house-window-view{object-position:center 53%;border-radius:15px}
.m5p-house-window-glass{inset:0;border-radius:15px;z-index:2;background:
  linear-gradient(108deg,rgba(255,255,255,.84) 0 5%,transparent 15% 42%,rgba(255,255,255,.18) 52%,transparent 64%),
  linear-gradient(90deg,transparent 49%,#fffefb 49.4% 50.8%,transparent 51.2%),
  linear-gradient(180deg,transparent 49.2%,#fffefb 49.8% 51.4%,transparent 52%);
  box-shadow:inset 0 0 0 2px rgba(241,247,248,.96);
}
.m5p-house-window-curtain{top:-5%;bottom:0;width:20%;z-index:3;background:repeating-linear-gradient(90deg,#7ea9d7 0 22%,#709bcc 24% 40%,#85b2de 42% 66%);box-shadow:inset 0 0 18px rgba(255,255,255,.20), 0 2px 10px rgba(64,52,40,.16)}
.m5p-house-window-curtain.left{left:-1%;clip-path:polygon(0 0,100% 0,71% 44%,87% 100%,0 100%);border-radius:14px 8px 19px 16px}
.m5p-house-window-curtain.right{right:-1%;clip-path:polygon(0 0,100% 0,100% 100%,13% 100%,29% 44%);border-radius:8px 14px 16px 19px}
.m5p-house-window-curtain:before{content:"";position:absolute;top:55%;left:-3%;right:-3%;height:4px;background:linear-gradient(90deg,#c99a46,#f1d18a,#c99a46);box-shadow:0 0 0 1px rgba(128,85,24,.12)}
.m5p-house-window-curtain:after{content:"";position:absolute;top:50.5%;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3bf,#c89a43);box-shadow:0 6px 0 0 rgba(198,154,67,.18)}
.m5p-house-window-curtain.left:after{right:10px}.m5p-house-window-curtain.right:after{left:10px}
.m5p-house-window-sill{left:0;right:0;bottom:0;height:8%;background:linear-gradient(180deg,#fffefb,#d5c1ae);box-shadow:inset 0 1px 0 rgba(255,255,255,.95)}

.m5p-house-picture{top:16%;left:40.6%;width:15.4%;height:20.8%;padding:4px;border:8px solid #c59444;border-radius:10px;background:#fbf5ee;box-shadow:0 12px 18px rgba(84,61,37,.16), inset 0 0 0 2px rgba(253,242,220,.90);transform:none;z-index:3}
.m5p-house-picture:before{content:"";position:absolute;inset:-4px;border-radius:12px;border:1px solid rgba(255,247,223,.70)}
.m5p-house-picture-art{border-radius:4px}

.m5p-house-shelf{top:13%;right:5%;width:23.8%;height:17.8%;z-index:3}
.m5p-house-dresser{bottom:10.8%;right:5.4%;width:18.6%;height:24.2%;z-index:3}
.m5p-house-plant{right:1.8%;bottom:10.8%;width:16%;height:32%;z-index:4}
.m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:7.6%;bottom:33.5%;width:9.6%;height:18.5%;z-index:5}
.m5p-house-furniture-art{filter:drop-shadow(0 8px 8px rgba(58,43,31,.16))}

.m5p-house-rug{left:28.5%;bottom:7.2%;width:47%;height:18%;border-radius:50%;background:radial-gradient(ellipse at center,#fffef7 0 51%,#d7e5f8 52% 70%,#f2d788 71% 74%,#8eb3df 75% 79%,#fdfaf1 80% 100%)!important;border:8px solid rgba(255,255,255,.72);opacity:1;filter:drop-shadow(0 10px 10px rgba(115,103,91,.18))}
.m5p-house-room[data-rug="rug_none"] .m5p-house-rug{display:none}
.m5p-house-room[data-rug="rug_cloud"] .m5p-house-rug{background:radial-gradient(ellipse at center,#fffef7 0 56%,#dceafe 57% 78%,#f0d17c 79% 82%,#fcfbf4 83% 100%)!important}
.m5p-house-room[data-rug="rug_rainbow"] .m5p-house-rug{background:radial-gradient(ellipse at center,#fffef7 0 49%,#ffd1df 50% 57%,#ffe49c 58% 64%,#bfe5b7 65% 72%,#b7d3fb 73% 79%,#fcfbf4 80% 100%)!important}
.m5p-house-room[data-rug="rug_leaf"] .m5p-house-rug{background:radial-gradient(ellipse at center,#fbfff7 0 52%,#cfe9bb 53% 71%,#7bb18b 72% 79%,#f7faf0 80% 100%)!important}

.m5p-house-bed{left:4.8%;bottom:10%;width:33.5%;height:27.5%;z-index:3;filter:drop-shadow(0 18px 12px rgba(61,45,34,.18))}
.m5p-house-bed-back{inset:4% 0 19%;border:9px solid #f7eddc;border-radius:46px 46px 28px 28px;background:linear-gradient(180deg,#a8c8ee,#6f99ce);box-shadow:inset 0 12px 18px rgba(255,255,255,.30), inset 0 -10px 18px rgba(71,114,164,.20), 0 2px 0 rgba(255,255,255,.9)}
.m5p-house-bed-back:before{content:"";position:absolute;inset:12% 6% 34%;border-radius:40px;background:linear-gradient(180deg,rgba(255,255,255,.52),rgba(255,255,255,0));opacity:1}
.m5p-house-bed-cushion{inset:33% 9% 10%;border:4px solid #fffaf2;border-radius:40px;background:linear-gradient(180deg,#ffffff,#eaf1fb);box-shadow:inset 0 -10px 18px rgba(110,142,183,.18), inset 0 8px 10px rgba(255,255,255,.95)}
.m5p-house-bed-cushion:before,.m5p-house-bed-cushion:after{content:"";position:absolute;top:14%;bottom:14%;width:2px;background:rgba(206,219,234,.72)}
.m5p-house-bed-cushion:before{left:33%}.m5p-house-bed-cushion:after{right:33%}
.m5p-house-bed-front{bottom:0;left:2%;right:2%;height:24%;border:5px solid #f8ecdf;border-radius:0 0 34px 34px;background:linear-gradient(180deg,#92bdf0,#6ea2db);box-shadow:inset 0 7px 10px rgba(255,255,255,.58),0 8px 14px rgba(77,124,169,.15)}
.m5p-house-room[data-bed="bed_basic"] .m5p-house-bed-back{background:linear-gradient(180deg,#e9ddcf,#d0b69d)}
.m5p-house-room[data-bed="bed_basic"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#fffefb,#f4ecdf)}
.m5p-house-room[data-bed="bed_basic"] .m5p-house-bed-front{background:linear-gradient(180deg,#dcc2a7,#c4a383)}
.m5p-house-room[data-bed="bed_pink"] .m5p-house-bed-back{background:linear-gradient(180deg,#f4c2d7,#e29abb)}
.m5p-house-room[data-bed="bed_pink"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#fffafd,#f8dcea)}
.m5p-house-room[data-bed="bed_pink"] .m5p-house-bed-front{background:linear-gradient(180deg,#eaafd0,#de89b6)}
.m5p-house-room[data-bed="bed_blue"] .m5p-house-bed-back{background:linear-gradient(180deg,#9ac5f5,#6e99ce)}
.m5p-house-room[data-bed="bed_blue"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#ffffff,#e7effb)}
.m5p-house-room[data-bed="bed_blue"] .m5p-house-bed-front{background:linear-gradient(180deg,#91bef0,#6a9bd6)}
.m5p-house-room[data-bed="bed_royal"] .m5p-house-bed-back{border-color:#f7e19f;background:linear-gradient(180deg,#c7b6f0,#9f85d6);box-shadow:inset 0 12px 18px rgba(255,255,255,.25), inset 0 -10px 18px rgba(92,71,136,.18),0 0 0 3px #8b6cc2}
.m5p-house-room[data-bed="bed_royal"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#ffffff,#eee4fb)}
.m5p-house-room[data-bed="bed_royal"] .m5p-house-bed-front{border-color:#f7e19f;background:linear-gradient(180deg,#bea7eb,#9d7fd5)}

.m5p-house-lamp{position:absolute;right:19.2%;top:18.4%;width:9.8%;height:17.2%;min-width:54px;min-height:72px;max-width:94px;z-index:4;pointer-events:none}
.m5p-house-lamp-base{left:50%;top:14%;width:18%;height:56%;transform:translateX(-50%);background:linear-gradient(180deg,#f6d57a,#c89223);border-radius:999px;box-shadow:0 0 0 1px rgba(255,247,211,.8)}
.m5p-house-lamp-base:before{content:"";position:absolute;left:50%;bottom:62%;width:64%;height:64%;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle at 30% 30%,#fdf0bc,#d3a340)}
.m5p-house-lamp-base:after{content:"";position:absolute;left:50%;bottom:-7%;width:86%;height:12%;transform:translateX(-50%);border-radius:999px;background:linear-gradient(180deg,#ecd9b3,#c9a264)}
.m5p-house-lamp-shade{left:50%;top:0;width:92%;height:52%;transform:translateX(-50%);background:linear-gradient(180deg,#fffdfa 0%,#f2e7d5 56%,#e8ceb0 100%);clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);border-radius:16px 16px 24px 24px;box-shadow:0 6px 14px rgba(103,81,59,.18), inset 0 7px 8px rgba(255,255,255,.85)}
.m5p-house-lamp-glow{left:50%;top:8%;width:190%;height:125%;transform:translateX(-50%);background:radial-gradient(circle at 50% 12%,rgba(255,252,236,.96) 0%,rgba(255,235,180,.60) 26%,rgba(255,237,189,.24) 44%,transparent 74%)}
.m5p-house-lamp--moon{right:15.2%;top:12.2%;width:12%;height:24%;min-width:62px;max-width:102px}
.m5p-house-lamp--moon .m5p-house-lamp-base{top:18%;width:16%;height:50%;background:linear-gradient(180deg,#f6d57a,#c89223)}
.m5p-house-lamp--moon .m5p-house-lamp-base:before{width:74%;height:74%;bottom:74%}
.m5p-house-lamp--moon .m5p-house-lamp-shade{top:1%;width:70%;height:48%;clip-path:none;border-radius:50%;background:radial-gradient(circle at 44% 42%,#fffdf2 0 38%,#f0d993 39% 56%,transparent 57%),linear-gradient(180deg,#fff6d1,#e7c96f);box-shadow:0 0 24px rgba(255,231,160,.76),0 3px 10px rgba(95,74,51,.18)}
.m5p-house-lamp--moon .m5p-house-lamp-glow{top:0;width:210%;height:130%;background:radial-gradient(circle at 50% 16%,rgba(255,252,236,.96) 0%,rgba(255,231,171,.58) 31%,rgba(255,241,203,.2) 48%,transparent 74%)}
.m5p-house-lamp--moon:before{content:"";position:absolute;left:50%;top:44%;width:3px;height:25%;transform:translateX(-50%);background:linear-gradient(180deg,#e5c777,#c69023);z-index:2}
.m5p-house-lamp--moon:after{content:"★";position:absolute;left:50%;top:66%;transform:translateX(-50%);font-size:18px;line-height:1;color:#efc34f;text-shadow:0 0 10px rgba(255,233,159,.85);z-index:2}

.m5p-house-toy{left:9%;bottom:10.6%;width:9.8%;height:13%;z-index:4}
.m5p-house-room .m5p-house-pet{left:44%;bottom:10%;width:34.5%;max-width:300px}
.m5p-house-sunbeam{left:44%;top:6%;width:34%;height:56%;background:radial-gradient(ellipse at 50% 0,rgba(255,255,255,.28),transparent 72%)}

@media(max-width:850px){.m5p-house-preview-wrap .m5p-house-room{height:330px}}
@media(max-width:600px){
 .m5p-house-preview-wrap .m5p-house-room{height:290px}
 .m5p-house-window{left:4.6%;top:10%;width:33.5%;height:34%}
 .m5p-house-picture{top:15.8%;left:40.5%;width:15.8%;height:18.5%}
 .m5p-house-shelf{top:13.4%;right:4.3%;width:24%;height:15.8%}
 .m5p-house-lamp{right:19%;top:18%;width:10%;height:16%;min-width:38px;min-height:48px;max-width:64px}
 .m5p-house-lamp--moon{right:14%;top:12%;width:12%;height:20%;min-width:44px;max-width:72px}
 .m5p-house-dresser{right:5.5%;bottom:10.5%;width:18.7%;height:20.5%}
 .m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:7.2%;bottom:31.5%;width:10.8%;height:17.5%}
 .m5p-house-plant{right:1.2%;bottom:10.5%;width:17%;height:28%}
 .m5p-house-bed{left:4.2%;width:34%;height:25%}
 .m5p-house-rug{left:28%;width:47%;height:16%}
 .m5p-house-toy{left:9%;width:10%;height:10%;bottom:10.3%}
 .m5p-house-room .m5p-house-pet{left:43%;width:39.5%}
}
@media(max-width:460px){
 .m5p-house-preview-wrap .m5p-house-room{height:270px}
 .m5p-house-window{height:32%;border-width:8px;border-radius:22px}
 .m5p-house-window-view,.m5p-house-window-glass{border-radius:12px}
 .m5p-house-window-curtain{width:18%}
 .m5p-house-picture{width:17%;height:17%}
 .m5p-house-lamp{right:18.5%;top:18.5%;width:10%;height:14%;min-width:32px;min-height:40px}
 .m5p-house-lamp--moon{right:13.2%;top:12.8%;width:11.5%;height:18%;min-width:40px;max-width:62px}
 .m5p-house-room .m5p-house-pet{left:42.5%;width:41%}
 .m5p-house-room[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:6.2%;width:19%;height:12%}
}


/* ===== M5 PETS 2.9.9 | Premium Room Rebuild aligned closer to the premium visualization ===== */
.m5p-house-room.m5p-house-room--v299{
  --wall-cream:linear-gradient(180deg,#f8efe5 0%,#f4eadf 58%,#eedcc9 100%);
  --wall-lavender:linear-gradient(180deg,#fbf8fe 0%,#f1ecf7 58%,#e2d8f0 100%);
  --wall-sky:linear-gradient(180deg,#f7fbff 0%,#eef4f8 58%,#dae7ef 100%);
  --wall-forest:linear-gradient(180deg,#f7fbf5 0%,#eef4ea 58%,#d9e7d4 100%);
  --wall-sunset:linear-gradient(180deg,#fff8f0 0%,#f7ebdf 58%,#edd6c6 100%);
  --floor-oak:linear-gradient(180deg,#f1deca 0%,#e0c1a0 100%);
  --floor-white:linear-gradient(180deg,#fbfdfe 0%,#edf2f5 100%);
  --floor-mint:linear-gradient(180deg,#f0f7f4 0%,#dbe9e3 100%);
  --floor-marble:linear-gradient(180deg,#fdfefe 0%,#edf2f4 100%);
  --gold:#d39a2c;
  --gold-soft:#f2d58b;
  --blue:#2459b8;
  --blue-soft:#7aa9e8;
  --panel:#fffdfa;
  --line:#e4d2bc;
  background:var(--wall-cream);
  position:relative; width:100%; height:100%; min-height:255px; isolation:isolate; overflow:hidden; border-radius:22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), inset 0 0 80px rgba(115,82,44,.08);
}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_cream"]{background:var(--wall-cream)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_lavender"]{background:var(--wall-lavender)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_sky"]{background:var(--wall-sky)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_forest"]{background:var(--wall-forest)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_sunset"]{background:var(--wall-sunset)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-wall-decoration{
  inset:0 0 33%;
  background:
    linear-gradient(90deg,transparent 0 13%,rgba(196,160,118,.18) 13.2%,transparent 13.6% 51%,rgba(196,160,118,.18) 51.2%,transparent 51.6% 82%,rgba(196,160,118,.18) 82.2%,transparent 82.6%),
    linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0) 25%),
    radial-gradient(circle at 20% 18%,rgba(255,255,255,.72),transparent 30%);
  z-index:0;
}
.m5p-house-room.m5p-house-room--v299::before{
  content:"";position:absolute;left:0;right:0;top:64.5%;height:2.8%;z-index:1;
  background:linear-gradient(180deg,#fffdf8,#e5d0b8 43%,#fffaf3 78%,rgba(170,133,95,.18));
  box-shadow:0 8px 14px rgba(94,69,41,.12);
}
.m5p-house-room.m5p-house-room--v299 .m5p-house-floor{
  inset:67% 0 0; z-index:0; background:var(--floor-white); box-shadow:inset 0 14px 20px rgba(74,56,37,.10), inset 0 -10px 20px rgba(255,255,255,.32);
}
.m5p-house-room.m5p-house-room--v299[data-floor="floor_oak"] .m5p-house-floor{background:var(--floor-oak)}
.m5p-house-room.m5p-house-room--v299[data-floor="floor_white"] .m5p-house-floor{background:var(--floor-white)}
.m5p-house-room.m5p-house-room--v299[data-floor="floor_mint"] .m5p-house-floor{background:var(--floor-mint)}
.m5p-house-room.m5p-house-room--v299[data-floor="floor_marble"] .m5p-house-floor{background:var(--floor-marble)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-floor:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.28),transparent 22%),repeating-linear-gradient(90deg,rgba(255,255,255,.12) 0 82px,rgba(177,189,198,.18) 83px 87px,transparent 88px 170px);
}
.m5p-house-room.m5p-house-room--v299[data-floor="floor_marble"] .m5p-house-floor:after{
  background:linear-gradient(180deg,rgba(255,255,255,.32),transparent 24%),linear-gradient(115deg,transparent 0 22%,rgba(183,195,203,.18) 23%,transparent 25% 55%,rgba(183,195,203,.13) 56%,transparent 58% 78%,rgba(183,195,203,.11) 79%,transparent 81%),radial-gradient(circle at 20% 30%,rgba(183,195,203,.12) 0 12%,transparent 13%),radial-gradient(circle at 75% 42%,rgba(183,195,203,.10) 0 12%,transparent 13%);
}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window{
  left:7%; top:8%; width:31%; height:43%; z-index:3; overflow:hidden;
  border:11px solid rgba(255,252,247,.98); border-radius:28px;
  background:linear-gradient(180deg,#d6e9f2,#bedae4); box-shadow:0 10px 0 #ccb7a2,0 16px 26px rgba(79,58,38,.18), inset 0 0 0 2px rgba(168,202,214,.95);
}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-view{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;border-radius:16px;position:absolute;inset:0;z-index:0}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-glass{position:absolute;inset:0;border-radius:16px;z-index:1;background:linear-gradient(110deg,rgba(255,255,255,.84) 0 5%,transparent 16% 44%,rgba(255,255,255,.16) 54%,transparent 64%),linear-gradient(90deg,transparent 49%,#fffefb 49.4% 50.8%,transparent 51.2%),linear-gradient(180deg,transparent 49%,#fffefb 49.5% 51%,transparent 51.5%);box-shadow:inset 0 0 0 2px rgba(243,248,249,.95)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-rail{display:none}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain{position:absolute;top:-6%;bottom:0;width:19%;z-index:3;background:linear-gradient(180deg,#1446a0 0%,#2459b8 50%,#346dc9 100%);box-shadow:inset 0 0 14px rgba(255,255,255,.24),0 2px 10px rgba(59,44,30,.18)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain.left{left:0;border-radius:14px 8px 22px 18px;clip-path:polygon(0 0,100% 0,72% 44%,88% 100%,0 100%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain.right{right:0;border-radius:8px 14px 18px 22px;clip-path:polygon(0 0,100% 0,100% 100%,12% 100%,28% 44%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain:before{content:"";position:absolute;top:56%;left:-4%;right:-4%;height:4px;background:linear-gradient(90deg,#ca9a46,#f1d18a,#ca9a46)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain:after{content:"";position:absolute;top:52%;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3bf,#c89a43)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain.left:after{right:11px}.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain.right:after{left:11px}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-sill{position:absolute;left:0;right:0;bottom:0;height:8%;background:linear-gradient(180deg,#fffefb,#d7c2af);box-shadow:inset 0 1px 0 rgba(255,255,255,.95)}

.m5p-house-room.m5p-house-room--v299 .m5p-house-picture{top:13%;left:40%;width:16%;height:22%;padding:4px;box-sizing:border-box;z-index:3;background:#fbf4ec;border:8px solid #c89641;border-radius:11px;box-shadow:0 10px 18px rgba(84,61,37,.18), inset 0 0 0 2px rgba(253,242,220,.92)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-picture-art{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.m5p-house-room.m5p-house-room--v299 .m5p-house-shelf{top:11.6%;right:14.5%;width:24%;height:20%;z-index:3}
.m5p-house-room.m5p-house-room--v299 .m5p-house-dresser{bottom:10.4%;right:6%;width:19.5%;height:26%;z-index:4}
.m5p-house-room.m5p-house-room--v299 .m5p-house-furniture-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 9px rgba(60,42,29,.16))}
.m5p-house-room.m5p-house-room--v299 .m5p-house-plant{position:absolute;right:0.8%;bottom:9%;width:18%;height:34%;z-index:4}

.m5p-house-room.m5p-house-room--v299 .m5p-house-rug{left:29.5%;bottom:7.2%;width:46%;height:18%;z-index:2;border-radius:50%;opacity:1;background:radial-gradient(ellipse at center,#fffef8 0 53%,#dfe9fa 54% 72%,#f0cf77 73% 76%,#8baedb 77% 81%,#fcfaf4 82% 100%)!important;border:8px solid rgba(255,255,255,.72);filter:drop-shadow(0 10px 10px rgba(117,103,90,.18))}
.m5p-house-room.m5p-house-room--v299[data-rug="rug_none"] .m5p-house-rug{display:none}
.m5p-house-room.m5p-house-room--v299[data-rug="rug_cloud"] .m5p-house-rug{background:radial-gradient(ellipse at center,#fffef8 0 58%,#dbe8fa 59% 78%,#f1d07a 79% 82%,#fcfbf4 83% 100%)!important}
.m5p-house-room.m5p-house-room--v299[data-rug="rug_rainbow"] .m5p-house-rug{background:radial-gradient(ellipse at center,#fffef7 0 50%,#f9cbd7 51% 58%,#ffe39b 59% 65%,#c7e5bf 66% 72%,#b7d3fb 73% 79%,#fcfbf4 80% 100%)!important}
.m5p-house-room.m5p-house-room--v299[data-rug="rug_leaf"] .m5p-house-rug{background:radial-gradient(ellipse at center,#fbfff7 0 53%,#d1ebbe 54% 71%,#7ab18b 72% 79%,#f7faf0 80% 100%)!important}

.m5p-house-room.m5p-house-room--v299 .m5p-house-bed{left:4.8%;bottom:9.5%;width:34%;height:28.5%;z-index:3;filter:drop-shadow(0 18px 13px rgba(61,45,34,.18))}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed i{position:absolute;display:block}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-back{inset:4% 0 20%;border:10px solid #f9e2b2;border-radius:48px 48px 26px 26px;background:linear-gradient(180deg,#2458b6 0%,#0d3382 75%,#08285c 100%);box-shadow:inset 0 14px 22px rgba(255,255,255,.18),inset 0 -10px 18px rgba(8,30,75,.24),0 2px 0 rgba(255,255,255,.92)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-back:before{content:"";position:absolute;inset:10% 4% 20%;border-radius:42px;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,0))}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion{inset:34% 10% 12%;border:4px solid #fffaf2;border-radius:41px;background:linear-gradient(180deg,#ffffff,#eaf1fb);box-shadow:inset 0 -12px 20px rgba(110,142,183,.16), inset 0 8px 10px rgba(255,255,255,.95)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion:before,.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion:after{content:"";position:absolute;top:14%;bottom:14%;width:2px;background:rgba(206,219,234,.72)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion:before{left:33%}.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion:after{right:33%}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-front{bottom:0;left:2%;right:2%;height:24%;border:5px solid #f8ecdf;border-radius:0 0 34px 34px;background:linear-gradient(180deg,#2c66ca,#1349a4);box-shadow:inset 0 7px 10px rgba(255,255,255,.5)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_basic"] .m5p-house-bed-back{border-color:#f3dfbf;background:linear-gradient(180deg,#eadbca,#d1b89e)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_basic"] .m5p-house-bed-front{background:linear-gradient(180deg,#dbc3aa,#c2a07f)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_basic"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#fffefb,#f5edde)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_pink"] .m5p-house-bed-back{border-color:#f7d9e4;background:linear-gradient(180deg,#f4bfd8,#df8fb8)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_pink"] .m5p-house-bed-front{background:linear-gradient(180deg,#efafd1,#d87fac)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_pink"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#fffafd,#f8dcea)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_blue"] .m5p-house-bed-back{border-color:#f9e2b2;background:linear-gradient(180deg,#2458b6,#0d3382)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_blue"] .m5p-house-bed-front{background:linear-gradient(180deg,#2c66ca,#1349a4)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_blue"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#ffffff,#e7effb)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_royal"] .m5p-house-bed-back{border-color:#f7e19f;background:linear-gradient(180deg,#b8a2ea,#8a6bc9);box-shadow:inset 0 14px 22px rgba(255,255,255,.18),inset 0 -10px 18px rgba(57,38,100,.22),0 0 0 3px #8b6cc2}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_royal"] .m5p-house-bed-front{border-color:#f7e19f;background:linear-gradient(180deg,#bca4ec,#9778d1)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_royal"] .m5p-house-bed-cushion{background:linear-gradient(180deg,#ffffff,#eee4fb)}

.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp{position:absolute;right:6.5%;top:11.8%;width:11%;height:25%;min-width:56px;min-height:70px;max-width:98px;z-index:4;pointer-events:none}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp-base,.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp-shade,.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp-glow{position:absolute;display:block}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--lamp .m5p-house-lamp-base{left:50%;top:18%;width:18%;height:55%;transform:translateX(-50%);background:linear-gradient(180deg,#f6d57a,#c89223);border-radius:999px}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--lamp .m5p-house-lamp-base:before{content:"";position:absolute;left:50%;top:-9%;width:90%;height:22%;transform:translateX(-50%);border-radius:999px;background:radial-gradient(circle at 35% 30%,#fff2ba,#d7a33f)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--lamp .m5p-house-lamp-base:after{content:"";position:absolute;left:50%;bottom:-6%;width:100%;height:12%;transform:translateX(-50%);border-radius:999px;background:linear-gradient(180deg,#ead7b3,#c8a261)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--lamp .m5p-house-lamp-shade{left:50%;top:0;width:92%;height:48%;transform:translateX(-50%);background:linear-gradient(180deg,#fffdfa 0%,#f2e6d4 56%,#e7ccb0 100%);clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);border-radius:16px 16px 24px 24px;box-shadow:0 6px 14px rgba(103,81,59,.18), inset 0 7px 8px rgba(255,255,255,.85)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--lamp .m5p-house-lamp-glow{left:50%;top:5%;width:180%;height:120%;transform:translateX(-50%);background:radial-gradient(circle at 50% 12%,rgba(255,252,236,.96) 0%,rgba(255,235,180,.58) 28%,rgba(255,237,189,.22) 44%,transparent 74%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-base{left:50%;top:34%;width:14%;height:28%;transform:translateX(-50%);background:linear-gradient(180deg,#f6d57a,#c89223);border-radius:999px}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-base:before{content:"";position:absolute;left:50%;bottom:-72%;width:3px;height:58%;transform:translateX(-50%);background:linear-gradient(180deg,#f1d37a,#c89223)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-base:after{content:"★";position:absolute;left:50%;bottom:-98%;transform:translateX(-50%);font-size:18px;line-height:1;color:#efc34f;text-shadow:0 0 10px rgba(255,233,159,.85)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-shade{left:50%;top:0;width:70%;height:46%;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle at 42% 42%,#fffdf2 0 40%,#f0d993 41% 56%,transparent 57%),linear-gradient(180deg,#fff6d1,#e7c96f);box-shadow:0 0 24px rgba(255,231,160,.76),0 3px 10px rgba(95,74,51,.18)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-glow{left:50%;top:-2%;width:210%;height:128%;transform:translateX(-50%);background:radial-gradient(circle at 50% 16%,rgba(255,252,236,.96) 0%,rgba(255,231,171,.58) 31%,rgba(255,241,203,.2) 48%,transparent 74%)}

.m5p-house-room.m5p-house-room--v299 .m5p-house-toy{position:absolute;left:8.5%;bottom:9%;width:10%;height:13%;z-index:4}
.m5p-house-room.m5p-house-room--v299[data-toy="toy_teddy"] .m5p-house-toy,
.m5p-house-room.m5p-house-room--v299[data-toy="toy_blocks"] .m5p-house-toy{left:auto;right:5.2%;bottom:8.2%;width:14%;height:12%}

.m5p-house-room.m5p-house-room--v299 .m5p-house-pet{position:absolute;left:45%;bottom:8.5%;width:33.5%;height:auto;aspect-ratio:1/1;max-width:320px;z-index:5;filter:drop-shadow(0 14px 12px rgba(59,48,38,.38));animation:m5p-house-idle 3.2s ease-in-out infinite;pointer-events:none}
.m5p-house-room.m5p-house-room--v299 .m5p-house-pet img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.m5p-house-room.m5p-house-room--v299 .m5p-house-sunbeam{position:absolute;left:43%;top:8%;width:35%;height:54%;z-index:4;pointer-events:none;background:radial-gradient(ellipse at 50% 0,rgba(255,255,255,.28),transparent 72%);mix-blend-mode:screen}

.m5p-house-room.m5p-house-room--v299 .m5p-house-wear{position:absolute;inset:0;pointer-events:none}
.m5p-house-room.m5p-house-room--v299 .m5p-house-wear i{position:absolute;display:none;box-sizing:border-box}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(1),
.m5p-house-room.m5p-house-room--v299[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(2){display:block;top:26%;width:12%;height:9%;background:linear-gradient(180deg,#ffb3db,#e558a7);border-radius:14px 14px 5px 14px;border:2px solid #fff2fb;box-shadow:0 3px 5px rgba(125,67,101,.24)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(1){left:54%;transform:rotate(25deg)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(2){left:62%;transform:scaleX(-1) rotate(25deg)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(3){display:block;left:59%;top:29%;width:4%;height:5%;background:#ffd8ef;border:2px solid #fff6fd;border-radius:50%}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(1){display:block;left:46%;top:52%;width:24%;height:8%;transform:translateX(-50%) rotate(-2deg);border-radius:999px;background:linear-gradient(180deg,#86d8ff,#3499da);border:2px solid #f1fbff;box-shadow:0 3px 6px rgba(17,73,109,.22)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2),
.m5p-house-room.m5p-house-room--v299[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){display:block;top:56%;width:5%;height:13%;background:linear-gradient(180deg,#73cfff,#2487d2);border:2px solid #eefaff;border-top:none;border-radius:0 0 9px 9px}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2){left:49%;transform:rotate(8deg)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){left:55%;transform:rotate(-9deg)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){display:block;left:55.5%;top:6.2%;width:19%;height:12%;transform:translateX(-50%);background:linear-gradient(180deg,#fff0a8 0%,#efc74e 36%,#d89917 100%);clip-path:polygon(0 100%,7% 48%,20% 62%,33% 14%,50% 58%,67% 14%,80% 62%,93% 48%,100% 100%);border-radius:0 0 18px 18px;box-shadow:0 6px 10px rgba(110,76,18,.25), inset 0 1px 0 rgba(255,249,210,.95);z-index:2}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1)::before{content:"";position:absolute;left:8%;right:8%;bottom:-10%;height:27%;border-radius:999px;background:linear-gradient(180deg,#f5d468,#ca8a13);box-shadow:inset 0 1px 0 #fff8c3}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1)::after{content:"";position:absolute;inset:10% 14% auto;height:24%;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,0));clip-path:polygon(0 100%,10% 42%,24% 58%,37% 0,50% 52%,63% 0,76% 58%,90% 42%,100% 100%)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),
.m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){display:none!important}
.m5p-house-room.m5p-house-room--v299[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:5.2%;left:54.5%;width:18%}
.m5p-house-room.m5p-house-room--v299[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:5.5%;left:53.5%;width:18%}

.m5p-house-room.m5p-house-room--v299 .m5p-house-product-icon{font-size:38px}
@media(max-width:850px){
 .m5p-house-preview-wrap .m5p-house-room.m5p-house-room--v299{height:330px}
}
@media(max-width:600px){
 .m5p-house-preview-wrap .m5p-house-room.m5p-house-room--v299{height:300px}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-window{left:5.5%;width:33%;height:35%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-picture{left:40%;top:14.5%;width:15%;height:19%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-shelf{top:12.8%;right:13%;width:24%;height:16%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-lamp{right:5.2%;top:12.4%;width:11%;height:21%;min-width:44px;min-height:54px;max-width:70px}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-dresser{right:5.8%;bottom:10.2%;width:19%;height:21%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-plant{right:0.2%;bottom:9.4%;width:19%;height:29%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-bed{left:4.5%;width:34%;height:25.5%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-rug{left:28.5%;width:46%;height:16.5%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-toy{left:8%;width:10%;height:10%;bottom:9.4%}
 .m5p-house-room.m5p-house-room--v299[data-toy="toy_teddy"] .m5p-house-toy,.m5p-house-room.m5p-house-room--v299[data-toy="toy_blocks"] .m5p-house-toy{right:4.2%;width:14%;height:10%;bottom:8.2%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-pet{left:43%;width:39.5%}
}
@media(max-width:460px){
 .m5p-house-preview-wrap .m5p-house-room.m5p-house-room--v299{height:272px}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-window{border-width:8px;border-radius:22px;height:33%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-window-view,.m5p-house-room.m5p-house-room--v299 .m5p-house-window-glass{border-radius:12px}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain{width:18%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-picture{width:16%;height:17%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-room .m5p-house-pet{left:42.5%;width:41%}
 .m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:6.4%;width:19.2%;height:12%}
}


/* ===== M5 PETS 2.9.9 | Premium Room Rebuild polish ===== */
.m5p-house-room.m5p-house-room--v299{
  --premium-gold:#d7aa45;
  --premium-gold-soft:#f5e3aa;
  --premium-cream:#f7efe6;
  --premium-navy:#2458b6;
  --premium-shadow:0 16px 24px rgba(75,53,34,.18);
  background:linear-gradient(180deg,#fbf5ee 0%,#f3e6d9 100%);
}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_cream"]{background:linear-gradient(180deg,#fbf6ef 0%,#f0e1d1 100%)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_lavender"]{background:linear-gradient(180deg,#f8f4ff 0%,#eadff8 100%)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_sky"]{background:linear-gradient(180deg,#f4faff 0%,#dfedf8 100%)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_forest"]{background:linear-gradient(180deg,#eff8f1 0%,#d8eadc 100%)}
.m5p-house-room.m5p-house-room--v299[data-wall="wall_sunset"]{background:linear-gradient(180deg,#fff6ef 0%,#f7e1d0 100%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-wall-decoration{
  background:
    linear-gradient(90deg,transparent 8%,rgba(216,171,74,.28) 8.1% 8.45%,transparent 8.55% 24%,rgba(216,171,74,.24) 24.1% 24.4%,transparent 24.5% 53%,rgba(216,171,74,.24) 53.1% 53.4%,transparent 53.5% 78%,rgba(216,171,74,.24) 78.1% 78.4%,transparent 78.5% 92%,rgba(216,171,74,.26) 92.1% 92.45%,transparent 92.55%),
    linear-gradient(180deg,rgba(255,255,255,.35),transparent 20% 86%,rgba(255,255,255,.15));
  opacity:.92;
}
.m5p-house-room.m5p-house-room--v299::before{
  content:"";position:absolute;left:2.5%;right:2.5%;bottom:7.8%;height:2.2%;
  background:linear-gradient(180deg,#fefcfa,#ddc8b3 65%,#cba982);
  border-radius:999px;z-index:1;opacity:.92;
}
.m5p-house-room.m5p-house-room--v299 .m5p-house-floor{
  background:linear-gradient(180deg,#fff8ea 0%,#f0d798 55%,#ddb56a 100%);
  box-shadow:inset 0 14px 20px rgba(255,255,255,.35);
}
.m5p-house-room.m5p-house-room--v299[data-floor="floor_marble"] .m5p-house-floor{
  background:linear-gradient(180deg,#fff6e9 0%,#f6e6c1 45%,#e9c978 100%);
}
.m5p-house-room.m5p-house-room--v299 .m5p-house-floor:after{
  background:linear-gradient(90deg,rgba(255,255,255,.18) 0 3%,transparent 3% 12%,rgba(255,255,255,.14) 12% 15%,transparent 15% 24%,rgba(255,255,255,.16) 24% 27%,transparent 27% 36%,rgba(255,255,255,.12) 36% 39%,transparent 39% 48%,rgba(255,255,255,.16) 48% 51%,transparent 51% 60%,rgba(255,255,255,.12) 60% 63%,transparent 63% 72%,rgba(255,255,255,.16) 72% 75%,transparent 75% 84%,rgba(255,255,255,.12) 84% 87%,transparent 87% 100%);
  opacity:.65;
}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window{left:4.7%;top:6%;width:34%;height:43%;border:10px solid #e7d3bf;border-radius:46px 46px 28px 28px;box-shadow:0 12px 20px rgba(108,83,60,.22)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-view{border-radius:30px 30px 16px 16px}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-glass{border-radius:30px 30px 16px 16px;background:linear-gradient(110deg,rgba(255,255,255,.82) 0 4%,transparent 14% 42%,rgba(255,255,255,.12) 52%,transparent 62%),linear-gradient(90deg,transparent 49.2%,#fffef8 49.3% 50.7%,transparent 50.8%),linear-gradient(180deg,transparent 46.5%,#fffef8 46.8% 48.3%,transparent 48.6%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain{top:-4%;width:22%;background:linear-gradient(180deg,#1948a5 0%,#2357b8 42%,#2f6ccc 100%);box-shadow:inset 0 0 16px rgba(255,255,255,.26),0 6px 14px rgba(59,44,30,.18)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain.left{left:-1%;clip-path:polygon(0 0,100% 0,76% 34%,88% 100%,0 100%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain.right{right:-1%;clip-path:polygon(0 0,100% 0,100% 100%,12% 100%,24% 34%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain:before{top:52%;height:5px;background:linear-gradient(90deg,#c9922a,#ffd98d,#c9922a)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-curtain:after{top:49%;width:16px;height:16px}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-sill{height:9%;background:linear-gradient(180deg,#fffefc,#dfc8b0)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-sheer{position:absolute;top:2%;bottom:14%;width:14%;z-index:2;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.55));filter:drop-shadow(0 1px 3px rgba(102,84,64,.12))}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-sheer.left{left:12%;clip-path:polygon(0 0,100% 0,78% 100%,18% 100%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-sheer.right{right:12%;clip-path:polygon(0 0,100% 0,82% 100%,22% 100%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-pot{position:absolute;bottom:26.4%;width:7%;height:15%;z-index:3}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-pot:before{content:"";position:absolute;left:25%;right:25%;bottom:0;height:26%;background:linear-gradient(180deg,#f4b96a,#c77d32);clip-path:polygon(8% 0,92% 0,80% 100%,20% 100%);border-radius:3px}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-pot:after{content:"";position:absolute;left:0;right:0;top:0;height:76%;background:radial-gradient(circle at 22% 26%,#dff6a8 0 18%,transparent 19%),radial-gradient(circle at 46% 24%,#8fd24a 0 17%,transparent 18%),radial-gradient(circle at 68% 36%,#5fb13a 0 16%,transparent 17%),radial-gradient(circle at 40% 56%,#8bcf4a 0 17%,transparent 18%),radial-gradient(circle at 72% 58%,#4ea53a 0 16%,transparent 17%),radial-gradient(circle at 20% 68%,#75c04d 0 16%,transparent 17%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-pot--left{left:9.4%;transform:scale(1.18)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-window-pot--right{left:26.7%;transform:scale(.78)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-picture{top:14.3%;left:40.4%;width:15.2%;height:22.4%;padding:6px;border:8px solid var(--premium-gold);border-radius:12px;background:linear-gradient(180deg,#fff9f1,#f9ecde);box-shadow:0 14px 18px rgba(84,61,37,.18), inset 0 0 0 2px rgba(255,248,231,.92)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-shelf{top:12.4%;right:14.2%;width:22.5%;height:22%}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp{right:3.8%;top:12.2%;width:12%;height:27%}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-shade{width:76%;height:50%;background:radial-gradient(circle at 38% 38%,#fffceb 0 42%,#f2da8a 43% 57%,transparent 58%),linear-gradient(180deg,#fff7cf,#eac45d)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-base{top:40%;height:24%}
.m5p-house-room.m5p-house-room--v299 .m5p-house-lamp--moon .m5p-house-lamp-glow{width:235%;height:138%;background:radial-gradient(circle at 54% 18%,rgba(255,251,228,.98) 0%,rgba(255,229,148,.6) 28%,rgba(255,245,212,.18) 48%,transparent 74%)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-rug{left:24%;bottom:7%;width:58%;height:21%;background:radial-gradient(ellipse at center,#fffef8 0 55%,#f3ecd7 56% 69%,#86aad9 70% 74%,#eacb78 74.5% 76.5%,#fdfbf2 77% 100%)!important;border:8px solid rgba(255,255,255,.78);filter:drop-shadow(0 12px 10px rgba(117,103,90,.18))}
.m5p-house-room.m5p-house-room--v299[data-rug="rug_none"] .m5p-house-rug{display:block;opacity:.96}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed{left:2.5%;bottom:12%;width:38%;height:33%;filter:drop-shadow(0 18px 16px rgba(61,45,34,.18))}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-back{inset:6% 0 16%;border:10px solid #f2c661;border-radius:76px 76px 40px 40px;background:linear-gradient(180deg,#2964ca 0%,#0d3382 70%,#08285c 100%);box-shadow:inset 0 16px 30px rgba(255,255,255,.18),inset 0 -12px 20px rgba(8,30,75,.26),0 3px 0 rgba(255,255,255,.92)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-back:before{content:"";position:absolute;inset:10% 5% 18%;border-radius:70px;background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,0))}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion{inset:38% 8% 12%;border:4px solid #fffaf2;border-radius:46px;background:linear-gradient(180deg,#fffefc,#f0eef2);box-shadow:inset 0 -12px 20px rgba(110,142,183,.12), inset 0 8px 10px rgba(255,255,255,.95)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion:before{content:"";position:absolute;left:7%;top:-36%;width:25%;height:44%;border-radius:18px;background:linear-gradient(180deg,#fffefb,#f0eef1);box-shadow:0 6px 10px rgba(92,71,51,.18)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-cushion:after{content:"";position:absolute;right:16%;top:-34%;width:28%;height:28%;border-radius:999px;background:radial-gradient(circle at 50% 50%,#f6e8cb 0 23%,transparent 24%),radial-gradient(circle at 22% 28%,#fff,#fff 0 18%,transparent 19%),radial-gradient(circle at 78% 28%,#fff,#fff 0 18%,transparent 19%),linear-gradient(180deg,#fffef8,#ece8e7);box-shadow:0 6px 10px rgba(92,71,51,.18)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-bed-front{bottom:0;left:4%;right:4%;height:22%;border:5px solid #f8ecdf;border-radius:0 0 38px 38px;background:linear-gradient(180deg,#2f6bcf,#1349a4);box-shadow:inset 0 7px 10px rgba(255,255,255,.52)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_basic"] .m5p-house-bed-back{border-color:#e3c7a5;background:linear-gradient(180deg,#ece2d4,#d0b79f)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_basic"] .m5p-house-bed-front{background:linear-gradient(180deg,#dbc3aa,#c2a07f)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_pink"] .m5p-house-bed-back{border-color:#f2d0da;background:linear-gradient(180deg,#f6c2d8,#df8fb8)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_pink"] .m5p-house-bed-front{background:linear-gradient(180deg,#efafd1,#d87fac)}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_royal"] .m5p-house-bed-back{border-color:#f2d37a;background:linear-gradient(180deg,#b8a2ea,#8a6bc9);box-shadow:inset 0 16px 30px rgba(255,255,255,.18),inset 0 -12px 20px rgba(57,38,100,.22),0 0 0 3px #8b6cc2}
.m5p-house-room.m5p-house-room--v299[data-bed="bed_royal"] .m5p-house-bed-front{border-color:#f2d37a;background:linear-gradient(180deg,#bca4ec,#9778d1)}
.m5p-house-room.m5p-house-room--v299 .m5p-house-dresser{bottom:10%;right:8.4%;width:17%;height:24%;z-index:4}
.m5p-house-room.m5p-house-room--v299 .m5p-house-plant{right:1%;bottom:8.6%;width:16.5%;height:35%;z-index:5}
.m5p-house-room.m5p-house-room--v299 .m5p-house-toy{left:3.4%;bottom:7.8%;width:11%;height:15%;z-index:5}
.m5p-house-room.m5p-house-room--v299[data-toy="toy_teddy"] .m5p-house-toy{left:auto;right:2.8%;bottom:7%;width:15%;height:13%}
.m5p-house-room.m5p-house-room--v299[data-toy="toy_blocks"] .m5p-house-toy{left:auto;right:4%;bottom:7%;width:14%;height:11%}
.m5p-house-room.m5p-house-room--v299 .m5p-house-pet{left:42%;bottom:10%;width:35.5%;max-width:360px;filter:drop-shadow(0 16px 12px rgba(59,48,38,.36))}
.m5p-house-room.m5p-house-room--v299 .m5p-house-sunbeam{left:38%;top:8%;width:40%;height:58%;background:radial-gradient(ellipse at 50% 0,rgba(255,255,255,.28),transparent 72%)}
.m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){left:55%;top:4.4%;width:20%;height:12.8%;box-shadow:0 8px 12px rgba(110,76,18,.28), inset 0 1px 0 rgba(255,249,210,.95)}
@media (max-width: 980px){
 .m5p-house-room.m5p-house-room--v299 .m5p-house-window{width:35%;height:38%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-bed{width:37%;height:29%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-pet{left:41.5%;width:38%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-rug{left:24%;width:56%;height:18%}
}
@media (max-width: 700px){
 .m5p-house-preview-wrap .m5p-house-room.m5p-house-room--v299{height:292px}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-window{left:4%;width:36%;height:34%;border-width:8px;border-radius:28px 28px 18px 18px}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-window-view,.m5p-house-room.m5p-house-room--v299 .m5p-house-window-glass{border-radius:18px 18px 10px 10px}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-picture{left:41%;width:14%;height:17%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-shelf{right:14%;width:23%;height:15%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-lamp{right:3%;top:12%;width:12%;height:22%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-dresser{right:8%;width:18%;height:18%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-plant{right:1%;width:18%;height:28%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-bed{left:2%;width:38%;height:24%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-rug{left:24%;width:56%;height:15%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-toy{bottom:8%;width:10%;height:11%}
 .m5p-house-room.m5p-house-room--v299[data-toy="toy_teddy"] .m5p-house-toy,.m5p-house-room.m5p-house-room--v299[data-toy="toy_blocks"] .m5p-house-toy{right:3%;width:13%;height:10%}
 .m5p-house-room.m5p-house-room--v299 .m5p-house-pet{left:41%;width:39%}
 .m5p-house-room.m5p-house-room--v299[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){top:4.8%;width:20%}
}

/* ===== M5 PETS 2.9.10 — premium house rebuild II ===== */
.m5p-house-preview-wrap{background:linear-gradient(180deg,#f7fbff 0%,#edf5fd 100%);border:1px solid #d8e8f7;border-radius:24px;padding:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 10px 22px rgba(97,137,173,.08)}
.m5p-house-preview-caption{font-weight:700;color:#29608f}
.m5p-house-shoplist{background:#fff;border:1px solid #dfebf5;border-radius:24px;padding:16px;box-shadow:0 10px 20px rgba(49,90,128,.06)}
.m5p-house-category-bar{gap:10px;margin-bottom:18px}
.m5p-house-category-bar button{border:1px solid #cde1f4;background:linear-gradient(180deg,#fff 0%,#f1f7fd 100%);color:#215284;border-radius:16px;padding:10px 16px;font-size:14px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.95)}
.m5p-house-category-bar button.active{background:linear-gradient(180deg,#2892ee 0%,#0e6aca 100%);border-color:#0f70ca;color:#fff;box-shadow:0 8px 18px rgba(20,102,185,.22)}
.m5p-house-products{gap:12px}
.m5p-house-product{border:1px solid #dfebf5;border-radius:20px;background:linear-gradient(180deg,#fff 0%,#f7fbff 100%);padding:14px 14px 16px;box-shadow:0 6px 16px rgba(42,91,129,.05)}
.m5p-house-product-icon{width:56px;height:56px;border-radius:18px;background:linear-gradient(180deg,#f6fbff 0%,#e9f3fd 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 6px 12px rgba(107,157,201,.15)}
.m5p-house-product strong{color:#173f69}
.m5p-house-product small{display:block;margin:8px 0 12px;color:#577392;font-weight:700}
.m5p-house-product.is-equipped{border-color:#9fd0ff;box-shadow:0 0 0 2px rgba(84,173,255,.16),0 8px 18px rgba(69,137,198,.10)}
.m5p-house-room--v2910{position:relative;height:430px;border-radius:28px;overflow:hidden;background:linear-gradient(180deg,#f7efe4 0%,#f8f2ea 42%,#efd9aa 43%,#efd09a 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.68),0 22px 34px rgba(54,89,122,.10)}
.m5p-house-room--v2910:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.28),transparent 22%,transparent 100%)}
.m5p-house-room--v2910:after{content:"";position:absolute;left:0;right:0;bottom:0;height:42%;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,220,150,.24) 55%,rgba(219,164,65,.20) 100%);pointer-events:none}
.m5p-house-room--v2910 .m5p-house-base-shadow{position:absolute;left:2%;right:2%;bottom:3%;height:15%;background:radial-gradient(ellipse at center,rgba(144,96,26,.18) 0%,rgba(144,96,26,.08) 38%,transparent 72%);filter:blur(12px)}
.m5p-house-room--v2910 .m5p-house-arch{position:absolute;top:0;bottom:39%;width:1%;background:linear-gradient(180deg,#d7a645,#e9c372,#d09a36);opacity:.95;box-shadow:0 0 0 1px rgba(255,238,189,.28)}
.m5p-house-room--v2910 .m5p-house-arch--left{left:8%}.m5p-house-room--v2910 .m5p-house-arch--center{left:50%}.m5p-house-room--v2910 .m5p-house-arch--right{right:8%}
.m5p-house-room--v2910[data-wall="wall_cream"]{background:linear-gradient(180deg,#f8f1e7 0%,#f8f1e8 41%,#efd9aa 42%,#efd09a 100%)}
.m5p-house-room--v2910[data-wall="wall_lavender"]{background:linear-gradient(180deg,#f1ecfb 0%,#f2eefb 41%,#e7d7bb 42%,#e1c597 100%)}
.m5p-house-room--v2910[data-wall="wall_sky"]{background:linear-gradient(180deg,#eaf5ff 0%,#edf7ff 41%,#e6d4b0 42%,#deb881 100%)}
.m5p-house-room--v2910[data-wall="wall_forest"]{background:linear-gradient(180deg,#eef7ec 0%,#eff8ee 41%,#e4d3aa 42%,#d6bb81 100%)}
.m5p-house-room--v2910[data-wall="wall_sunset"]{background:linear-gradient(180deg,#fff2e7 0%,#fff1e4 41%,#f2d5a5 42%,#dea86a 100%)}
.m5p-house-room--v2910[data-wall="wall_blush"]{background:linear-gradient(180deg,#fbf0f3 0%,#fbf0f3 41%,#efd8b8 42%,#e5c18e 100%)}
.m5p-house-room--v2910[data-wall="wall_palace"]{background:linear-gradient(180deg,#f7efe4 0%,#f8f1ea 41%,#f0d8a7 42%,#ecc688 100%)}
.m5p-house-room--v2910 .m5p-house-window{position:absolute;left:4.2%;top:8%;width:39%;height:72%;max-height:300px;border-radius:84px 84px 24px 24px;background:linear-gradient(180deg,#fffefd 0%,#f6eee5 100%);padding:12px;box-shadow:0 12px 24px rgba(104,80,54,.18), inset 0 0 0 4px rgba(255,250,243,.82), 0 0 0 8px rgba(223,202,172,.68);overflow:hidden;z-index:2}
.m5p-house-room--v2910 .m5p-house-window:before{content:"";position:absolute;inset:14px;border-radius:70px 70px 18px 18px;border:6px solid #f6efe7;box-shadow:inset 0 0 0 4px rgba(220,196,162,.5);z-index:1}
.m5p-house-room--v2910 .m5p-house-window-view{position:absolute;inset:18px 18px 18px 18px;width:calc(100% - 36px);height:calc(100% - 36px);object-fit:cover;border-radius:64px 64px 14px 14px}
.m5p-house-room--v2910 .m5p-house-window-glass{position:absolute;inset:18px;background:linear-gradient(122deg,rgba(255,255,255,.45) 0 8%,transparent 8% 43%,rgba(255,255,255,.18) 43% 51%,transparent 51% 100%);border-radius:64px 64px 14px 14px;z-index:2}
.m5p-house-room--v2910 .m5p-house-window-rail{position:absolute;inset:18px;z-index:2;border-radius:64px 64px 14px 14px;background:linear-gradient(90deg,transparent 0 49.2%,#fffdf9 49.2% 50.8%,transparent 50.8% 100%),linear-gradient(180deg,transparent 0 53%,#fffdf9 53% 54.8%,transparent 54.8% 100%)}
.m5p-house-room--v2910 .m5p-house-window-sheer{position:absolute;top:8%;bottom:9%;width:17%;background:linear-gradient(90deg,rgba(255,255,255,.76) 0%,rgba(255,255,255,.48) 55%,rgba(255,255,255,.18) 100%);z-index:3}
.m5p-house-room--v2910 .m5p-house-window-sheer.left{left:13%;clip-path:polygon(0 0,100% 0,56% 100%,0 100%)}
.m5p-house-room--v2910 .m5p-house-window-sheer.right{right:13%;clip-path:polygon(44% 0,100% 0,100% 100%,0 100%)}
.m5p-house-room--v2910 .m5p-house-window-curtain{position:absolute;top:-1%;bottom:12%;width:23%;background:repeating-linear-gradient(90deg,#2754b0 0 17%,#164091 17% 32%,#3462c7 32% 48%);box-shadow:inset 0 0 20px rgba(255,255,255,.12),0 12px 18px rgba(43,61,105,.18);z-index:4}
.m5p-house-room--v2910 .m5p-house-window-curtain.left{left:-1%;clip-path:polygon(0 0,100% 0,68% 38%,84% 100%,0 100%)}
.m5p-house-room--v2910 .m5p-house-window-curtain.right{right:-1%;clip-path:polygon(0 0,100% 0,100% 100%,15% 100%,32% 38%)}
.m5p-house-room--v2910 .m5p-house-window-curtain:before{content:"";position:absolute;top:50%;width:100%;height:4px;background:linear-gradient(90deg,#c7901f,#f4d684,#c7901f)}
.m5p-house-room--v2910 .m5p-house-window-curtain:after{content:"";position:absolute;top:46%;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#fff1b4,#cb9124);box-shadow:0 4px 10px rgba(117,78,18,.22)}
.m5p-house-room--v2910 .m5p-house-window-curtain.left:after{right:12px}.m5p-house-room--v2910 .m5p-house-window-curtain.right:after{left:12px}
.m5p-house-room--v2910 .m5p-house-window-sill{position:absolute;left:18px;right:18px;bottom:18px;height:9%;border-radius:0 0 18px 18px;background:linear-gradient(180deg,#fffdfa,#dec6a5);z-index:5;box-shadow:inset 0 2px 0 rgba(255,255,255,.84)}
.m5p-house-room--v2910 .m5p-house-sill-plant{position:absolute;bottom:18.2%;width:7.6%;height:16%;z-index:6;background:radial-gradient(circle at 50% 72%,#dfb66a 0 28%,transparent 28%), radial-gradient(circle at 36% 40%,#87cd66 0 16%,transparent 17%), radial-gradient(circle at 68% 37%,#5eb04f 0 17%,transparent 18%), radial-gradient(circle at 50% 17%,#79c95d 0 18%,transparent 19%), radial-gradient(circle at 58% 58%,#6ac063 0 15%,transparent 16%), radial-gradient(circle at 40% 62%,#67b55c 0 13%,transparent 14%)}
.m5p-house-room--v2910 .m5p-house-sill-plant--left{left:10%}.m5p-house-room--v2910 .m5p-house-sill-plant--right{left:28%}
.m5p-house-room--v2910 .m5p-house-picture{position:absolute;left:49.2%;top:16%;width:12.5%;height:27%;padding:4px;border:8px solid #cc972f;border-radius:12px;background:#fbf6ef;box-shadow:0 12px 18px rgba(84,61,37,.16), inset 0 0 0 2px rgba(253,242,220,.90);z-index:3}
.m5p-house-room--v2910 .m5p-house-picture:before{content:"";position:absolute;inset:-3px;border-radius:14px;border:1px solid rgba(255,248,224,.76)}
.m5p-house-room--v2910 .m5p-house-picture-art{width:100%;height:100%;object-fit:contain;border-radius:4px}
.m5p-house-room--v2910 .m5p-house-shelf{position:absolute;top:13%;right:20%;width:23%;height:17.5%;z-index:3}
.m5p-house-room--v2910 .m5p-house-floor{position:absolute;left:0;right:0;bottom:0;height:40%;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,244,218,.16) 12%,rgba(228,191,118,.32) 100%), repeating-linear-gradient(120deg,rgba(198,145,71,.34) 0 3%,rgba(255,234,196,.06) 3% 6%,rgba(181,128,61,.28) 6% 9%,rgba(255,232,189,.05) 9% 12%);z-index:0}
.m5p-house-room--v2910[data-floor="floor_oak"] .m5p-house-floor{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,247,232,.08) 14%,rgba(212,170,104,.34) 100%),repeating-linear-gradient(120deg,rgba(168,114,58,.30) 0 4%,rgba(255,230,185,.06) 4% 8%,rgba(145,95,42,.28) 8% 12%)}
.m5p-house-room--v2910[data-floor="floor_white"] .m5p-house-floor{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,253,246,.16) 14%,rgba(227,212,187,.46) 100%),repeating-linear-gradient(120deg,rgba(225,214,194,.55) 0 4%,rgba(255,255,255,.14) 4% 8%,rgba(206,191,169,.45) 8% 12%)}
.m5p-house-room--v2910[data-floor="floor_mint"] .m5p-house-floor{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(240,255,249,.12) 14%,rgba(183,220,202,.50) 100%),repeating-linear-gradient(120deg,rgba(141,192,171,.44) 0 4%,rgba(255,255,255,.12) 4% 8%,rgba(104,164,146,.36) 8% 12%)}
.m5p-house-room--v2910[data-floor="floor_marble"] .m5p-house-floor{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(251,251,255,.20) 14%,rgba(231,231,239,.55) 100%),linear-gradient(135deg,rgba(199,200,207,.28) 0 13%,transparent 13% 21%,rgba(255,255,255,.18) 21% 31%,transparent 31% 41%,rgba(211,212,219,.25) 41% 55%,transparent 55% 65%,rgba(255,255,255,.12) 65% 100%)}
.m5p-house-room--v2910[data-floor="floor_parquet"] .m5p-house-floor{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,242,220,.10) 14%,rgba(216,167,86,.48) 100%),repeating-linear-gradient(135deg,#dfb168 0 6%,#c98d44 6% 12%,#e5c07d 12% 18%,#b87638 18% 24%)}
.m5p-house-room--v2910[data-floor="floor_gloss"] .m5p-house-floor{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,249,228,.18) 16%,rgba(231,189,105,.55) 100%),repeating-linear-gradient(125deg,#e8bf73 0 5%,#d49940 5% 10%,#f1d99f 10% 15%,#cf8d34 15% 20%)}
.m5p-house-room--v2910 .m5p-house-rug{position:absolute;left:12%;right:18%;bottom:5.5%;height:29%;border-radius:50%;background:radial-gradient(circle at center,#fbfaf3 0 55%,#f7f2e6 56% 70%,#dce8f6 71% 78%,#86a9d7 79% 84%,transparent 84.6%);filter:drop-shadow(0 12px 18px rgba(77,76,87,.18));z-index:1}
.m5p-house-room--v2910[data-rug="rug_none"] .m5p-house-rug{opacity:0}
.m5p-house-room--v2910[data-rug="rug_cloud"] .m5p-house-rug{background:radial-gradient(circle at center,#fffdf8 0 48%,#f5f0e8 49% 67%,#dce8f3 68% 74%,#a0b9d9 75% 80%,transparent 80.4%)}
.m5p-house-room--v2910[data-rug="rug_rainbow"] .m5p-house-rug{background:radial-gradient(circle at center,#fffef7 0 40%,#fff1c7 41% 53%,#ffcbc7 54% 61%,#afdaf6 62% 69%,#a6dba5 70% 77%,transparent 77.4%)}
.m5p-house-room--v2910[data-rug="rug_leaf"] .m5p-house-rug{background:radial-gradient(circle at center,#f7fbef 0 43%,#d8edc5 44% 59%,#99ca8b 60% 72%,transparent 72.3%)}
.m5p-house-room--v2910[data-rug="rug_royal"] .m5p-house-rug{background:radial-gradient(circle at center,#fffef7 0 49%,#f9f3ea 50% 66%,#dfe8f6 67% 73%,#2f67c4 74% 81%,transparent 81.3%)}
.m5p-house-room--v2910[data-rug="rug_roundblue"] .m5p-house-rug{background:radial-gradient(circle at center,#fffdf8 0 50%,#f8f1e7 51% 66%,#dfecfb 67% 73%,#83a9db 74% 79%,transparent 79.3%)}
.m5p-house-room--v2910 .m5p-house-bed{position:absolute;z-index:3;bottom:10%;left:2.2%;width:38%;height:33%;filter:drop-shadow(0 18px 12px rgba(61,45,34,.18))}
.m5p-house-room--v2910 .m5p-house-bed i{position:absolute;display:block}
.m5p-house-room--v2910 .m5p-house-bed-back{inset:2% 0 17%;border:9px solid #f6e0ae;border-radius:48% 48% 20% 22%/44% 44% 26% 26%;background:linear-gradient(180deg,#2557b8,#113a8a);box-shadow:inset 0 14px 22px rgba(255,255,255,.18), inset 0 -10px 18px rgba(14,44,115,.28), 0 0 0 4px rgba(250,228,166,.35)}
.m5p-house-room--v2910 .m5p-house-bed-cushion{inset:20% 8% 14%;border:4px solid rgba(255,248,233,.95);border-radius:30% 30% 16% 16%/36% 36% 18% 18%;background:linear-gradient(180deg,#fffefb,#f2ede2);box-shadow:inset 0 10px 14px rgba(255,255,255,.9), inset 0 -10px 18px rgba(124,105,73,.12)}
.m5p-house-room--v2910 .m5p-house-bed-front{bottom:0;left:6%;right:6%;height:20%;border:5px solid #f8e3b4;border-radius:0 0 34px 34px;background:linear-gradient(180deg,#3a71d2,#1a4a9d);box-shadow:inset 0 8px 10px rgba(255,255,255,.25),0 8px 14px rgba(77,124,169,.15)}
.m5p-house-room--v2910 .m5p-house-bed-pillow{top:29%;width:22%;height:18%;background:#fffdf6;border-radius:20px;box-shadow:0 8px 14px rgba(95,85,66,.12), inset 0 -5px 9px rgba(198,187,163,.18)}
.m5p-house-room--v2910 .m5p-house-bed-pillow.paw{left:12%}
.m5p-house-room--v2910 .m5p-house-bed-pillow.paw:before,.m5p-house-room--v2910 .m5p-house-bed-pillow.paw:after{content:"";position:absolute;background:#2e63c4;border-radius:50%}
.m5p-house-room--v2910 .m5p-house-bed-pillow.paw:before{left:32%;top:24%;width:36%;height:42%;box-shadow:-16px -12px 0 -5px #2e63c4,16px -12px 0 -5px #2e63c4,-28px 6px 0 -8px #2e63c4,28px 6px 0 -8px #2e63c4}
.m5p-house-room--v2910 .m5p-house-bed-pillow.bone{right:16%;top:30%;width:18%;height:16%;background:linear-gradient(180deg,#fffaf0,#efe6d7)}
.m5p-house-room--v2910 .m5p-house-bed-pillow.bone:before,.m5p-house-room--v2910 .m5p-house-bed-pillow.bone:after{content:"";position:absolute;top:50%;width:34%;height:76%;transform:translateY(-50%);background:inherit;border-radius:50%}
.m5p-house-room--v2910 .m5p-house-bed-pillow.bone:before{left:-12%}.m5p-house-room--v2910 .m5p-house-bed-pillow.bone:after{right:-12%}
.m5p-house-room--v2910[data-bed="bed_basic"] .m5p-house-bed-back{border-color:#ead9bb;background:linear-gradient(180deg,#d9c1a0,#bc9970)}
.m5p-house-room--v2910[data-bed="bed_basic"] .m5p-house-bed-front{border-color:#ead9bb;background:linear-gradient(180deg,#d8bc97,#c09b73)}
.m5p-house-room--v2910[data-bed="bed_pink"] .m5p-house-bed-back{border-color:#f3d2df;background:linear-gradient(180deg,#efbfd2,#e190b3)}
.m5p-house-room--v2910[data-bed="bed_pink"] .m5p-house-bed-front{border-color:#f3d2df;background:linear-gradient(180deg,#e9add0,#dc84b3)}
.m5p-house-room--v2910[data-bed="bed_blue"] .m5p-house-bed-back{border-color:#f6e0ae;background:linear-gradient(180deg,#2d61c0,#17469b)}
.m5p-house-room--v2910[data-bed="bed_blue"] .m5p-house-bed-front{border-color:#f6e0ae;background:linear-gradient(180deg,#3a71d2,#1a4a9d)}
.m5p-house-room--v2910[data-bed="bed_royal"] .m5p-house-bed-back{border-color:#f5dc99;background:linear-gradient(180deg,#5d4fca,#3d2da4)}
.m5p-house-room--v2910[data-bed="bed_royal"] .m5p-house-bed-front{border-color:#f5dc99;background:linear-gradient(180deg,#6a5bd8,#4533b4)}
.m5p-house-room--v2910[data-bed="bed_premium"] .m5p-house-bed-back{border-color:#f3cf73;background:linear-gradient(180deg,#1746a8,#0f316f)}
.m5p-house-room--v2910[data-bed="bed_premium"] .m5p-house-bed-front{border-color:#f3cf73;background:linear-gradient(180deg,#245bc0,#153f8d)}
.m5p-house-room--v2910[data-bed="bed_cloud"] .m5p-house-bed-back{border-color:#f2e8d8;background:linear-gradient(180deg,#fffef9,#f3ebdf)}
.m5p-house-room--v2910[data-bed="bed_cloud"] .m5p-house-bed-front{border-color:#f2e8d8;background:linear-gradient(180deg,#faf5ee,#efe6d8)}
.m5p-house-room--v2910 .m5p-house-dresser{position:absolute;right:4.2%;bottom:10.6%;width:19.4%;height:25%;z-index:3}
.m5p-house-room--v2910 .m5p-house-plant{position:absolute;right:0.8%;bottom:9.4%;width:16.8%;height:31%;z-index:4}
.m5p-house-room--v2910 .m5p-house-room:not([data-dresser="dresser_none"]) .m5p-house-plant{right:2%}
.m5p-house-room--v2910[data-dresser="dresser_none"] .m5p-house-plant{right:4.4%;bottom:11.2%;width:15.4%;height:30%}
.m5p-house-room--v2910 .m5p-house-furniture-art{width:100%;height:100%;object-fit:contain;display:block}
.m5p-house-room--v2910 .m5p-house-lamp{position:absolute;right:17%;top:10.5%;width:12%;height:25%;min-width:56px;min-height:88px;max-width:110px;z-index:4;pointer-events:none}
.m5p-house-room--v2910 .m5p-house-lamp-base,.m5p-house-room--v2910 .m5p-house-lamp-shade,.m5p-house-room--v2910 .m5p-house-lamp-glow{position:absolute;display:block}
.m5p-house-room--v2910 .m5p-house-lamp-base{left:50%;top:36%;width:18%;height:46%;transform:translateX(-50%);background:linear-gradient(180deg,#efc95f,#c68718);border-radius:999px;box-shadow:0 0 0 1px rgba(255,247,211,.84)}
.m5p-house-room--v2910 .m5p-house-lamp-base:after{content:"";position:absolute;left:50%;bottom:-8%;width:86%;height:12%;transform:translateX(-50%);border-radius:999px;background:linear-gradient(180deg,#ecd9b3,#c9a264)}
.m5p-house-room--v2910 .m5p-house-lamp-shade{left:50%;top:0;width:88%;height:52%;transform:translateX(-50%);background:linear-gradient(180deg,#fffdfa 0%,#f2e7d5 56%,#e8ceb0 100%);clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);border-radius:16px 16px 24px 24px;box-shadow:0 6px 14px rgba(103,81,59,.18), inset 0 7px 8px rgba(255,255,255,.85)}
.m5p-house-room--v2910 .m5p-house-lamp-glow{left:50%;top:8%;width:190%;height:125%;transform:translateX(-50%);background:radial-gradient(circle at 50% 12%,rgba(255,252,236,.96) 0%,rgba(255,235,180,.60) 26%,rgba(255,237,189,.24) 44%,transparent 74%)}
.m5p-house-room--v2910 .m5p-house-lamp--moon .m5p-house-lamp-shade,.m5p-house-room--v2910 .m5p-house-lamp--royal .m5p-house-lamp-shade{top:1%;width:72%;height:44%;clip-path:none;border-radius:50%;background:radial-gradient(circle at 44% 42%,#fffdf2 0 38%,#f0d993 39% 56%,transparent 57%),linear-gradient(180deg,#fff6d1,#e7c96f);box-shadow:0 0 24px rgba(255,231,160,.76),0 3px 10px rgba(95,74,51,.18)}
.m5p-house-room--v2910 .m5p-house-lamp--moon:before,.m5p-house-room--v2910 .m5p-house-lamp--royal:before{content:"";position:absolute;left:50%;top:41%;width:3px;height:24%;transform:translateX(-50%);background:linear-gradient(180deg,#e5c777,#c69023);z-index:2}
.m5p-house-room--v2910 .m5p-house-lamp--moon:after,.m5p-house-room--v2910 .m5p-house-lamp--royal:after{content:"★";position:absolute;left:50%;top:63%;transform:translateX(-50%);font-size:18px;line-height:1;color:#efc34f;text-shadow:0 0 10px rgba(255,233,159,.85);z-index:2}
.m5p-house-room--v2910 .m5p-house-lamp--moon .m5p-house-lamp-glow,.m5p-house-room--v2910 .m5p-house-lamp--royal .m5p-house-lamp-glow{top:0;width:210%;height:130%;background:radial-gradient(circle at 50% 16%,rgba(255,252,236,.96) 0%,rgba(255,231,171,.58) 31%,rgba(255,241,203,.2) 48%,transparent 74%)}
.m5p-house-room--v2910 .m5p-house-lamp--star .m5p-house-lamp-shade{width:54%;height:40%;top:10%;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 92%,50% 70%,21% 92%,32% 57%,2% 35%,39% 35%);background:linear-gradient(180deg,#fff6d1,#ebca68)}
.m5p-house-room--v2910 .m5p-house-lamp--star .m5p-house-lamp-glow{top:2%;width:170%;height:110%;background:radial-gradient(circle at 50% 22%,rgba(255,249,225,.95) 0%,rgba(255,230,144,.45) 30%,transparent 74%)}
.m5p-house-room--v2910 .m5p-house-lamp--royal .m5p-house-lamp-base{background:linear-gradient(180deg,#ffd978,#ce8a16)}
.m5p-house-room--v2910 .m5p-house-toy{position:absolute;right:2.1%;bottom:8.5%;width:11.2%;height:13.4%;z-index:4;pointer-events:none}
.m5p-house-room--v2910[data-toy="toy_ball"] .m5p-house-toy{left:1.8%;right:auto;bottom:8.4%;width:12%;height:15%}
.m5p-house-room--v2910[data-toy="toy_blocks"] .m5p-house-toy{left:36.8%;right:auto;bottom:8.8%;width:12%;height:12%}
.m5p-house-room--v2910[data-toy="toy_teddy"] .m5p-house-toy{right:4.8%;bottom:8%;width:10.4%;height:16%}
.m5p-house-room--v2910[data-toy="toy_bone"] .m5p-house-toy{left:21%;right:auto;bottom:10%;width:12%;height:10%}
.m5p-house-room--v2910[data-toy="toy_cushion"] .m5p-house-toy{left:34%;right:auto;bottom:8.8%;width:10%;height:12%}
.m5p-house-room--v2910 .m5p-house-pet{position:absolute;left:50%;bottom:10.2%;width:27%;z-index:5;transform:translateX(-50%);filter:drop-shadow(0 16px 18px rgba(91,75,55,.22))}
.m5p-house-room--v2910 .m5p-house-pet img{width:100%;height:auto;display:block}
.m5p-house-room--v2910 .m5p-house-sunbeam{position:absolute;left:6%;top:11%;width:42%;height:64%;background:linear-gradient(120deg,rgba(255,253,239,.08) 0%,rgba(255,246,218,.33) 25%,rgba(255,246,221,.08) 52%,transparent 65%);clip-path:polygon(8% 0,72% 0,94% 94%,0 94%);z-index:1}
.m5p-house-room--v2910 .m5p-house-wear{position:absolute;inset:0;pointer-events:none}
.m5p-house-room--v2910 .m5p-house-wear i{position:absolute;display:none;box-sizing:border-box}
.m5p-house-room--v2910[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(1),.m5p-house-room--v2910[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(2){display:block;top:31%;width:10%;height:9%;background:linear-gradient(180deg,#ff9cd5,#e558a7);border-radius:14px 14px 5px 14px;border:2px solid #fff2fb;box-shadow:0 3px 5px #7d43653b}
.m5p-house-room--v2910[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(1){left:55%;transform:rotate(24deg)}
.m5p-house-room--v2910[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(2){left:63%;transform:scaleX(-1) rotate(24deg)}
.m5p-house-room--v2910[data-wear="wear_bow"] .m5p-house-wear--bow i:nth-child(3){display:block;left:60%;top:34%;width:4%;height:5%;background:#ffd8ef;border:2px solid #fff6fd;border-radius:50%}
.m5p-house-room--v2910[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(1){display:block;left:43%;top:51%;width:28%;height:11%;transform:translateX(-50%) rotate(-2deg);border-radius:999px;background:linear-gradient(180deg,#1e70dc,#0d51af);border:2px solid #eaf6ff;box-shadow:0 3px 6px #11496d35}
.m5p-house-room--v2910[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2),.m5p-house-room--v2910[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){display:block;top:56%;width:5%;height:13%;background:linear-gradient(180deg,#3086ea,#0b54b4);border:2px solid #eefaff;border-top:none;border-radius:0 0 9px 9px}
.m5p-house-room--v2910[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(2){left:47%;transform:rotate(8deg)}
.m5p-house-room--v2910[data-wear="wear_scarf"] .m5p-house-wear--scarf i:nth-child(3){left:53%;transform:rotate(-9deg)}
.m5p-house-room--v2910[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1),.m5p-house-room--v2910[data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(1){display:block;left:55%;top:5.8%;width:18%;height:11%;transform:translateX(-50%);background:linear-gradient(180deg,#ffe88f,#d89d1f);clip-path:polygon(0 100%,8% 36%,23% 64%,37% 18%,50% 62%,63% 18%,77% 64%,92% 36%,100% 100%);border-radius:0 0 18px 18px;box-shadow:0 4px 7px #6e4c1238;z-index:2}
.m5p-house-room--v2910[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),.m5p-house-room--v2910[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3),.m5p-house-room--v2910[data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(2),.m5p-house-room--v2910[data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(3){display:block;top:10.3%;width:4%;height:4%;border-radius:50%;background:#4bb8ff;border:1px solid #fff}
.m5p-house-room--v2910[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),.m5p-house-room--v2910[data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(2){left:51%}
.m5p-house-room--v2910[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3),.m5p-house-room--v2910[data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(3){left:58%;background:#ff7ab8}
.m5p-house-room--v2910[data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(1){top:10.2%;width:16%;height:7%;clip-path:polygon(0 100%,12% 60%,25% 72%,38% 28%,50% 70%,62% 28%,75% 72%,88% 60%,100% 100%)}
.m5p-house-room--v2910[data-kind="cat"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1),.m5p-house-room--v2910[data-kind="cat"][data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(1){top:5%;left:54%}
.m5p-house-room--v2910[data-kind="panda"][data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1),.m5p-house-room--v2910[data-kind="panda"][data-wear="wear_tiara"] .m5p-house-wear--tiara i:nth-child(1){top:5.2%;left:53.6%}
@media(max-width:1000px){
 .m5p-house-room--v2910 .m5p-house-window{width:36%;height:62%}
 .m5p-house-room--v2910 .m5p-house-picture{left:47%;width:13%}
 .m5p-house-room--v2910 .m5p-house-shelf{right:19%;width:24%}
 .m5p-house-room--v2910 .m5p-house-plant{width:17%}
}
@media(max-width:640px){
 .m5p-house-preview-wrap .m5p-house-room--v2910{height:284px;border-radius:22px}
 .m5p-house-room--v2910 .m5p-house-window{left:3.6%;top:9%;width:35%;height:54%;max-height:none;border-radius:54px 54px 16px 16px;padding:8px}
 .m5p-house-room--v2910 .m5p-house-window-view,.m5p-house-room--v2910 .m5p-house-window-glass,.m5p-house-room--v2910 .m5p-house-window-rail{inset:12px;border-radius:44px 44px 11px 11px}
 .m5p-house-room--v2910 .m5p-house-window:before{inset:10px;border-radius:46px 46px 12px 12px}
 .m5p-house-room--v2910 .m5p-house-window-curtain{width:22%}
 .m5p-house-room--v2910 .m5p-house-sill-plant{bottom:22%;width:8%;height:12%}
 .m5p-house-room--v2910 .m5p-house-picture{left:47%;top:15%;width:12%;height:22%;border-width:6px}
 .m5p-house-room--v2910 .m5p-house-shelf{top:13%;right:18%;width:25%;height:16%}
 .m5p-house-room--v2910 .m5p-house-bed{left:1%;width:40%;height:31%}
 .m5p-house-room--v2910 .m5p-house-rug{left:11%;right:14%;height:28%}
 .m5p-house-room--v2910 .m5p-house-pet{width:29%;left:53%}
 .m5p-house-room--v2910 .m5p-house-dresser{right:2.5%;width:20%;height:23%}
 .m5p-house-room--v2910 .m5p-house-plant{right:.5%;width:18%;height:28%}
 .m5p-house-room--v2910 .m5p-house-lamp{right:14%;top:12%;width:12%;height:21%;min-width:38px;min-height:58px}
 .m5p-house-room--v2910 .m5p-house-toy{width:12%;height:12%}
 .m5p-house-category-bar button{padding:9px 12px;font-size:13px}
 .m5p-house-products{grid-template-columns:repeat(2,minmax(0,1fr))}
 .m5p-house-product{padding:12px 11px 14px}
}

/* M5 PETS 3.0.0 — premium interior. Scoped overrides; no changes to other scenes. */
.m5p-house-editor{gap:20px;align-items:start}
.m5p-house-preview-wrap{background:#fff;border:1px solid #e6d8c6;border-radius:24px;box-shadow:0 20px 38px rgba(51,67,93,.12);overflow:hidden}
.m5p-house-preview-wrap .m5p-house-room--v300{height:clamp(310px,35vw,440px)}
.m5p-house-room--v300{--curtain-primary:#164588;--curtain-second:#367bd3;position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(180deg,#fff8ef 0%,#f3e5d3 66%,#e6d0b5 67%);box-shadow:inset 0 0 80px rgba(106,74,41,.07)}
.m5p-house-room--v300[data-wall="wall_palace"]{background:linear-gradient(180deg,#fff7ed,#f5e8d8 67%,#e6d0b5)}
.m5p-house-room--v300[data-wall="wall_blush"]{background:linear-gradient(180deg,#fff6f4,#fae5e1 67%,#e6d0b5)}
.m5p-house-room--v300[data-curtain="curtain_none"] .m5p-house-window-curtain,.m5p-house-room--v300[data-curtain="curtain_none"] .m5p-house-window-sheer{display:none!important}
.m5p-house-room--v300[data-curtain="curtain_cream"]{--curtain-primary:#dfccad;--curtain-second:#fff8e9}
.m5p-house-room--v300[data-curtain="curtain_rose"]{--curtain-primary:#cd819e;--curtain-second:#f8bbd6}
.m5p-house-room--v300[data-curtain="curtain_royal"]{--curtain-primary:#102d72;--curtain-second:#2858b0}
.m5p-house-room--v300 .m5p-house-wall-decoration{background:linear-gradient(90deg,transparent 0 4%,rgba(219,168,63,.55) 4.1% 4.5%,transparent 4.6% 37%,rgba(219,168,63,.42) 37.1% 37.4%,transparent 37.5% 62%,rgba(219,168,63,.42) 62.1% 62.4%,transparent 62.5% 89%,rgba(219,168,63,.5) 89.1% 89.4%,transparent 89.5%),linear-gradient(180deg,rgba(255,255,255,.45),transparent 28%);z-index:0}
.m5p-house-room--v300 .m5p-house-arch{opacity:.7}
.m5p-house-room--v300 .m5p-house-window{top:4.6%;left:4.5%;width:36%;height:58%;border:10px solid #f6eadb;border-radius:60px 60px 20px 20px;padding:0;z-index:3;box-shadow:0 14px 0 #d7b899,0 20px 28px rgba(94,62,32,.23),inset 0 0 0 3px #fff9f1;overflow:hidden}
.m5p-house-room--v300 .m5p-house-window:before{display:none}
.m5p-house-room--v300 .m5p-house-window-view{position:absolute;inset:0!important;width:100%;height:100%;border-radius:42px 42px 9px 9px;object-fit:cover;object-position:center 48%;display:block;filter:saturate(1.08)}
.m5p-house-room--v300 .m5p-house-window-glass,.m5p-house-room--v300 .m5p-house-window-rail{display:none}
.m5p-house-room--v300 .m5p-house-window-curtain{z-index:4;top:-3%;bottom:0;width:22%;background:repeating-linear-gradient(90deg,var(--curtain-primary) 0 15%,var(--curtain-second) 20% 33%,var(--curtain-primary) 43% 58%);box-shadow:inset 0 0 9px rgba(255,255,255,.24),0 5px 10px rgba(58,40,23,.18)}
.m5p-house-room--v300 .m5p-house-window-curtain.left{left:-2%;clip-path:polygon(0 0,100% 0,77% 36%,90% 100%,0 100%)}
.m5p-house-room--v300 .m5p-house-window-curtain.right{right:-2%;clip-path:polygon(0 0,100% 0,100% 100%,10% 100%,23% 36%)}
.m5p-house-room--v300 .m5p-house-window-curtain:before{top:56%;height:4px;background:linear-gradient(90deg,#d39b39,#ffe5a3,#b98328)}
.m5p-house-room--v300 .m5p-house-window-sheer{opacity:.4;pointer-events:none;z-index:3}
.m5p-house-room--v300 .m5p-house-window-sill{z-index:5;height:6%;bottom:0;left:0;right:0;background:linear-gradient(180deg,#fffefb,#dcc6ac)}
.m5p-house-room--v300 .m5p-house-picture{left:43%;top:13%;width:14%;height:24%;border:9px solid #d6a444;box-shadow:0 9px 22px rgba(83,55,29,.24);z-index:3}
.m5p-house-room--v300 .m5p-house-shelf{top:11%;right:13.5%;width:26%;height:23%;z-index:3}
.m5p-house-room--v300 .m5p-house-dresser{right:8%;bottom:12%;width:18%;height:29%;z-index:4}
.m5p-house-room--v300 .m5p-house-plant{right:0.5%;bottom:10.3%;width:17%;height:36%;z-index:5}
.m5p-house-room--v300 .m5p-house-lamp{right:2.5%;top:13%;z-index:4}
.m5p-house-room--v300 .m5p-house-rug{bottom:8%;left:29%;width:50%;height:21%;z-index:2;border-radius:50%;border:7px solid rgba(255,255,255,.6);filter:drop-shadow(0 12px 9px rgba(95,76,51,.24))}
.m5p-house-room--v300 .m5p-house-bed{left:3.8%;bottom:12%;width:35.6%;height:31%;z-index:3;filter:drop-shadow(0 11px 13px rgba(49,40,23,.22))}
.m5p-house-room--v300 .m5p-house-bed-back{background:linear-gradient(160deg,#4387d9 0%,#12438e 55%,#072a61 100%);border:8px solid #e6ba57;box-shadow:inset 0 9px 19px rgba(255,255,255,.35),inset 0 -10px 24px rgba(13,31,75,.38)}
.m5p-house-room--v300 .m5p-house-bed-cushion{background:radial-gradient(ellipse at 38% 23%,#fffefb 0%,#e5e9f1 65%,#bdc9dd 100%);box-shadow:inset 0 6px 12px rgba(255,255,255,.8),0 4px 7px rgba(23,50,100,.2)}
.m5p-house-room--v300 .m5p-house-bed-front{background:linear-gradient(180deg,#438be0,#103d8c);border-color:#f5ce6d}
.m5p-house-room--v300[data-bed="bed_pink"] .m5p-house-bed-back{background:linear-gradient(160deg,#ffdef0,#dc78ac);border-color:#f6dcb0}
.m5p-house-room--v300[data-bed="bed_pink"] .m5p-house-bed-front{background:linear-gradient(#f4b7d2,#b86293)}
.m5p-house-room--v300[data-bed="bed_basic"] .m5p-house-bed-back{background:linear-gradient(160deg,#fef1db,#ceb38b);border-color:#e9c89d}
.m5p-house-room--v300[data-bed="bed_basic"] .m5p-house-bed-front{background:linear-gradient(#f5e6c8,#c5a178)}
.m5p-house-room--v300[data-bed="bed_cloud"] .m5p-house-bed-back{background:linear-gradient(160deg,#fffefa,#dce8f1);border-color:#e7d6ba}
.m5p-house-room--v300[data-bed="bed_cloud"] .m5p-house-bed-front{background:linear-gradient(#fff,#c6d9e9)}
.m5p-house-room--v300[data-bed="bed_royal"] .m5p-house-bed-back{background:linear-gradient(160deg,#d3b8ee,#8157b0);border-color:#e5bc64}
.m5p-house-room--v300[data-bed="bed_royal"] .m5p-house-bed-front{background:linear-gradient(#bd9be1,#7650a7)}
.m5p-house-room--v300 .m5p-house-pet{left:49.5%;bottom:10.3%;width:28.5%;z-index:7;filter:drop-shadow(0 15px 10px rgba(68,51,32,.32))}
.m5p-house-room--v300 .m5p-house-cushion{position:absolute;left:14%;bottom:19%;width:14%;height:15%;z-index:5;pointer-events:none}
.m5p-house-room--v300 .m5p-house-ornament{position:absolute;right:13.2%;bottom:33.6%;width:8.8%;height:12.5%;z-index:6;pointer-events:none}
.m5p-house-room--v300 .m5p-house-ornament img,.m5p-house-room--v300 .m5p-house-cushion img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 7px rgba(64,43,26,.2))}
.m5p-house-room--v300 .m5p-house-toy{bottom:8.5%;z-index:6}
.m5p-house-room--v300[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(2),.m5p-house-room--v300[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(3){display:none!important}
.m5p-house-room--v300 .m5p-house-floor{background:linear-gradient(180deg,#f8e6cc,#dcb583);box-shadow:inset 0 14px 17px rgba(123,89,45,.1)}
.m5p-house-room--v300[data-floor="floor_marble"] .m5p-house-floor{background:linear-gradient(180deg,#fffcf5,#e9dfcf)}
.m5p-house-room--v300[data-floor="floor_gloss"] .m5p-house-floor{background:linear-gradient(180deg,#fdf5e3,#d5b476)}
.m5p-house-product-icon{min-height:78px;display:flex;align-items:center;justify-content:center}
.m5p-house-product-icon img{display:block;max-width:100%;width:144px;height:99px;object-fit:cover;border-radius:12px;border:1px solid #d9e5ee;box-shadow:0 4px 10px rgba(22,49,82,.08)}
.m5p-house-product{background:linear-gradient(180deg,#fff,#f8fbfe);border-radius:17px;box-shadow:0 6px 14px rgba(37,71,104,.06)}
.m5p-house-preview-caption{color:#174b79}
@media(max-width:900px){.m5p-house-room--v300 .m5p-house-bed{width:37%}.m5p-house-room--v300 .m5p-house-pet{left:48%;width:32%}}
@media(max-width:640px){
 .m5p-house-preview-wrap .m5p-house-room--v300{height:300px}
 .m5p-house-room--v300 .m5p-house-window{left:2%;top:6%;width:40%;height:53%;border-width:7px;border-radius:36px 36px 16px 16px}
 .m5p-house-room--v300 .m5p-house-window-view{border-radius:30px 30px 10px 10px}
 .m5p-house-room--v300 .m5p-house-picture{left:43%;top:17%;width:14%;height:20%;border-width:5px}
 .m5p-house-room--v300 .m5p-house-shelf{top:13%;right:12%;height:16%}
 .m5p-house-room--v300 .m5p-house-bed{left:1%;bottom:12%;width:42%;height:27%}
 .m5p-house-room--v300 .m5p-house-pet{left:46%;bottom:10%;width:35%}
 .m5p-house-room--v300 .m5p-house-rug{left:26%;width:54%;height:17%}
 .m5p-house-room--v300 .m5p-house-dresser{right:5%;width:20%;height:22%}
 .m5p-house-room--v300 .m5p-house-plant{right:0%;width:19%;height:28%}
 .m5p-house-room--v300 .m5p-house-cushion{left:14%;bottom:17.5%;width:14%;height:12%}
 .m5p-house-room--v300 .m5p-house-ornament{right:10%;bottom:31%;width:10%;height:10%}
 .m5p-house-room--v300 .m5p-house-lamp{right:0%;min-width:32px;min-height:50px}
 .m5p-house-product-icon img{height:84px;width:120px}
}
/* 3.0.0 illustrated furniture, with transparent separately equipped 3D assets.
   Only exact catalogue variants activate these overrides: absent items remain absent. */
.m5p-house-room--v300[data-bed="bed_blue"] .m5p-house-bed,
.m5p-house-room--v300[data-bed="bed_premium"] .m5p-house-bed{
 left:3%;bottom:11%;width:39%;height:43%;background:url('img/house/premium-bed_blue.png') bottom center/contain no-repeat;filter:drop-shadow(0 13px 9px rgba(46,37,21,.23));
}
.m5p-house-room--v300[data-bed="bed_blue"] .m5p-house-bed i,
.m5p-house-room--v300[data-bed="bed_premium"] .m5p-house-bed i{display:none!important}
.m5p-house-room--v300[data-bed="bed_cloud"] .m5p-house-bed{
 left:5%;bottom:12%;width:37%;height:37%;background:url('img/house/premium-bed_cream.png') bottom center/contain no-repeat;filter:drop-shadow(0 13px 9px rgba(46,37,21,.20));
}
.m5p-house-room--v300[data-bed="bed_cloud"] .m5p-house-bed i{display:none!important}
.m5p-house-room--v300[data-dresser="dresser_cream"] .m5p-house-dresser,
.m5p-house-room--v300[data-dresser="dresser_royal"] .m5p-house-dresser{
 right:6.3%;bottom:11%;width:20%;height:33%;filter:drop-shadow(0 9px 6px rgba(63,50,34,.17))}
.m5p-house-room--v300[data-dresser="dresser_cream"] .m5p-house-dresser img,
.m5p-house-room--v300[data-dresser="dresser_royal"] .m5p-house-dresser img{content:url('img/house/premium-dresser_cream.png')}
.m5p-house-room--v300[data-plant="plant_monstera"] .m5p-house-plant img,
.m5p-house-room--v300[data-plant="plant_palm"] .m5p-house-plant img,
.m5p-house-room--v300[data-plant="plant_royal"] .m5p-house-plant img{content:url('img/house/premium-plant_green.png')}
.m5p-house-room--v300[data-plant="plant_monstera"] .m5p-house-plant,
.m5p-house-room--v300[data-plant="plant_palm"] .m5p-house-plant,
.m5p-house-room--v300[data-plant="plant_royal"] .m5p-house-plant{width:16%;height:38%;right:.2%;bottom:9%}
.m5p-house-room--v300[data-shelf="shelf_gold"] .m5p-house-shelf img,
.m5p-house-room--v300[data-shelf="shelf_royal"] .m5p-house-shelf img{content:url('img/house/premium-shelf_gold.png')}
.m5p-house-room--v300[data-shelf="shelf_gold"] .m5p-house-shelf,
.m5p-house-room--v300[data-shelf="shelf_royal"] .m5p-house-shelf{top:10%;right:13%;width:25%;height:25%}
.m5p-house-room--v300[data-picture="picture_heart"] .m5p-house-picture{padding:0;border:none;border-radius:5px;top:13%;height:26%;left:42.5%;width:14%;background:transparent;box-shadow:0 6px 10px rgba(52,40,29,.17)}
.m5p-house-room--v300[data-picture="picture_heart"] .m5p-house-picture img{content:url('img/house/premium-picture_heart.png')}
.m5p-house-room--v300[data-light="light_moon"] .m5p-house-lamp{right:1.1%;top:9.3%;height:30%;width:13%;background:url('img/house/premium-light_moon.png') center center/contain no-repeat;filter:drop-shadow(0 0 12px rgba(255,210,101,.45))}
.m5p-house-room--v300[data-light="light_moon"] .m5p-house-lamp i,
.m5p-house-room--v300[data-light="light_moon"] .m5p-house-lamp:before,
.m5p-house-room--v300[data-light="light_moon"] .m5p-house-lamp:after{display:none!important}
.m5p-house-room--v300[data-rug="rug_royal"] .m5p-house-rug,
.m5p-house-room--v300[data-rug="rug_roundblue"] .m5p-house-rug{
 left:30%;bottom:5%;width:51%;height:25%;border:0;background:transparent url('img/house/premium-rug_blue.png') center bottom/contain no-repeat!important;border-radius:0;filter:drop-shadow(0 7px 6px rgba(66,52,37,.18));
}
.m5p-house-room--v300[data-rug="rug_cloud"] .m5p-house-rug{
 left:30%;bottom:5%;width:51%;height:25%;border:0;background:transparent url('img/house/premium-rug_cream.png') center bottom/contain no-repeat!important;border-radius:0;
}
@media(max-width:640px){
 .m5p-house-room--v300[data-bed="bed_blue"] .m5p-house-bed,.m5p-house-room--v300[data-bed="bed_premium"] .m5p-house-bed{left:0%;bottom:10%;width:44%;height:36%}
 .m5p-house-room--v300[data-bed="bed_cloud"] .m5p-house-bed{left:0%;bottom:10%;width:44%;height:32%}
 .m5p-house-room--v300[data-dresser="dresser_cream"] .m5p-house-dresser,.m5p-house-room--v300[data-dresser="dresser_royal"] .m5p-house-dresser{right:4%;width:21%;height:25%}
 .m5p-house-room--v300[data-shelf="shelf_gold"] .m5p-house-shelf,.m5p-house-room--v300[data-shelf="shelf_royal"] .m5p-house-shelf{top:13%;right:12%;height:19%}
 .m5p-house-room--v300[data-light="light_moon"] .m5p-house-lamp{right:0%;top:11%;height:23%;width:14%}
}
/* Final 3.0.0 composition refinements: real floor footprint and clean window area. */
.m5p-house-room--v300 .m5p-house-sill-plant{display:none!important}
.m5p-house-room--v300[data-bed="bed_blue"] .m5p-house-bed,
.m5p-house-room--v300[data-bed="bed_premium"] .m5p-house-bed{left:2.5%;width:40%;height:40%;bottom:12%;background-size:100% 100%}
.m5p-house-room--v300[data-bed="bed_cloud"] .m5p-house-bed{width:39%;height:38%;background-size:100% 100%}
.m5p-house-room--v300[data-rug="rug_royal"] .m5p-house-rug,
.m5p-house-room--v300[data-rug="rug_roundblue"] .m5p-house-rug,
.m5p-house-room--v300[data-rug="rug_cloud"] .m5p-house-rug{left:29%;width:55%;height:24%;bottom:5%;background-size:100% 100%!important}
.m5p-house-room--v300[data-toy="toy_rope"] .m5p-house-toy{left:auto;right:1%;width:14%;height:10%;bottom:8%}
@media(max-width:640px){
 .m5p-house-room--v300[data-bed="bed_blue"] .m5p-house-bed,
 .m5p-house-room--v300[data-bed="bed_premium"] .m5p-house-bed{left:0%;width:44%;height:34%;bottom:11%}
 .m5p-house-room--v300[data-rug="rug_royal"] .m5p-house-rug,
 .m5p-house-room--v300[data-rug="rug_roundblue"] .m5p-house-rug,
 .m5p-house-room--v300[data-rug="rug_cloud"] .m5p-house-rug{width:56%;height:17%;left:29%;bottom:6%}
}
/* Mobile viewport regression fix: never crop a 430px desktop room inside a 284px panel. */
.m5p-house-room--v300{height:100%!important;min-height:0!important;aspect-ratio:auto!important}
.m5p-house-preview-wrap .m5p-house-room--v300{height:clamp(310px,35vw,440px)!important}
@media(max-width:640px){.m5p-house-preview-wrap .m5p-house-room--v300{height:300px!important}}

/* ===== M5 PETS 3.0.1: isolated room composition — no older v2910/v300 cascade ===== */
.m5p-house-room.m5p-house-room--v301{
  position:relative!important;display:block!important;width:100%!important;min-height:0!important;height:100%!important;
  isolation:isolate;overflow:hidden;border-radius:22px;
  background:linear-gradient(180deg,#faf6f0 0%,#f3e6d8 64%,#e2c49d 65%,#dbaf78 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),inset 0 0 70px rgba(139,96,45,.06);
  --m5floor:#e2b57a;
}
.m5p-house-preview-wrap .m5p-house-room--v301{height:clamp(310px,36vw,460px)!important;max-height:none!important}
.m5p-house-room--v301[data-wall="wall_lavender"]{background:linear-gradient(180deg,#f8f5ff 0%,#eae1f5 64%,#e2c49d 65%,#dbaf78 100%)!important}
.m5p-house-room--v301[data-wall="wall_sky"]{background:linear-gradient(180deg,#f6fbff 0%,#e5eef5 64%,#e2c49d 65%,#dbaf78 100%)!important}
.m5p-house-room--v301[data-wall="wall_forest"]{background:linear-gradient(180deg,#f4faf4 0%,#e6efe3 64%,#e2c49d 65%,#dbaf78 100%)!important}
.m5p-house-room--v301[data-wall="wall_sunset"]{background:linear-gradient(180deg,#fff8f1 0%,#f4e1d1 64%,#e2c49d 65%,#dbaf78 100%)!important}
.m5p-house-room--v301[data-wall="wall_blush"]{background:linear-gradient(180deg,#fff5f9 0%,#f4e2eb 64%,#e2c49d 65%,#dbaf78 100%)!important}
.m5p-house-room--v301[data-wall="wall_palace"]{background:linear-gradient(180deg,#fffaf2 0%,#f2e5d4 64%,#e2c49d 65%,#dbaf78 100%)!important}
.m5p-house-room--v301::before{
 content:"";position:absolute;z-index:2;left:0;right:0;top:63%;height:4%;background:linear-gradient(180deg,#fffef8 0%,#ead8be 40%,#fff5e7 70%,rgba(155,104,53,.16) 100%);box-shadow:0 7px 10px rgba(103,67,37,.12);
}
.m5p-house-room--v301::after{content:"";position:absolute;pointer-events:none;inset:0;z-index:11;background:linear-gradient(180deg,rgba(255,255,255,.22) 0%,transparent 20% 75%,rgba(255,255,255,.03));}
.m5p-house-room--v301 .m5p-house-arch{position:absolute;top:0;height:63%;bottom:auto;width:3px;z-index:0;background:linear-gradient(90deg,#d19d48,#f3d99a,#bd8734);box-shadow:0 0 0 1px rgba(250,231,179,.24);opacity:.55}
.m5p-house-room--v301 .m5p-house-arch--left{left:12%}.m5p-house-room--v301 .m5p-house-arch--center{left:54%}.m5p-house-room--v301 .m5p-house-arch--right{right:12%}
.m5p-house-room--v301 .m5p-house-base-shadow{display:none!important}
.m5p-house-room--v301 .m5p-house-floor{position:absolute;inset:66% 0 0;z-index:0;height:auto!important;background:linear-gradient(180deg,#edcc9d 0%,#dbac71 100%);box-shadow:inset 0 12px 18px rgba(124,80,42,.13)}
.m5p-house-room--v301 .m5p-house-floor::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(96deg,transparent 0 9%,rgba(120,84,45,.14) 9.15% 9.35%,transparent 9.5% 19%),linear-gradient(0deg,rgba(255,255,255,.1),transparent);opacity:.8}
.m5p-house-room--v301[data-floor="floor_white"] .m5p-house-floor,.m5p-house-room--v301[data-floor="floor_marble"] .m5p-house-floor{background:linear-gradient(180deg,#faf9f5,#e7dfd5)}
.m5p-house-room--v301[data-floor="floor_mint"] .m5p-house-floor{background:linear-gradient(180deg,#e8f4ed,#bedcc8)}
.m5p-house-room--v301[data-floor="floor_gloss"] .m5p-house-floor,.m5p-house-room--v301[data-floor="floor_parquet"] .m5p-house-floor{background:linear-gradient(180deg,#f4d7a6,#dca45c)}
/* Architectural feature: arched premium window, scene clipped INSIDE the frame. */
.m5p-house-room--v301 .m5p-house-window{
 position:absolute;left:5.8%;top:7.5%;width:33.4%;height:49%;box-sizing:border-box;z-index:2;overflow:hidden;
 border:10px solid #fffaf1;padding:0!important;border-radius:95px 95px 20px 20px;
 background:#bfe4fa;box-shadow:0 8px 0 #bba48c,0 15px 24px rgba(82,65,48,.19),inset 0 0 0 2px #e9d7c1;
}
.m5p-house-room--v301 .m5p-house-window::before{display:none!important}
.m5p-house-room--v301 .m5p-house-window-view{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none;object-fit:cover!important;object-position:center 45%;border-radius:80px 80px 12px 12px!important;z-index:0}
.m5p-house-room--v301 .m5p-house-window-glass,.m5p-house-room--v301 .m5p-house-window-rail{position:absolute;inset:0!important;border-radius:80px 80px 12px 12px;z-index:1}
.m5p-house-room--v301 .m5p-house-window-glass{background:linear-gradient(115deg,rgba(255,255,255,.28) 0 7%,transparent 13% 55%,rgba(255,255,255,.11) 58%,transparent 65%)}
.m5p-house-room--v301 .m5p-house-window-rail{background:linear-gradient(90deg,transparent 48.8%,#fffdf8 49% 51%,transparent 51.2%),linear-gradient(180deg,transparent 48.5%,#fffdf8 49% 51%,transparent 51.4%)}
.m5p-house-room--v301 .m5p-house-window-curtain{position:absolute!important;top:0!important;bottom:0!important;width:19%;z-index:4;background:linear-gradient(90deg,#173f8b,#2d65c1 48%,#123779);box-shadow:inset 2px 0 10px rgba(255,255,255,.16)}
.m5p-house-room--v301 .m5p-house-window-curtain.left{left:0!important;clip-path:polygon(0 0,100% 0,64% 55%,86% 100%,0 100%);border-radius:0}
.m5p-house-room--v301 .m5p-house-window-curtain.right{right:0!important;clip-path:polygon(0 0,100% 0,100% 100%,14% 100%,36% 55%);border-radius:0}
.m5p-house-room--v301 .m5p-house-window-curtain::before{position:absolute;content:"";top:58%;width:100%;height:5px;background:linear-gradient(90deg,#b67c27,#ffdf90,#bd8831)}
.m5p-house-room--v301 .m5p-house-window-curtain::after{position:absolute;content:"";top:55%;width:12px;height:12px;border-radius:50%;background:#f1c66c}
.m5p-house-room--v301[data-curtain="curtain_none"] .m5p-house-window-curtain{display:none!important}
.m5p-house-room--v301[data-curtain="curtain_cream"] .m5p-house-window-curtain{background:linear-gradient(90deg,#e0cbb2,#fff9ef,#c8af8d)}
.m5p-house-room--v301[data-curtain="curtain_rose"] .m5p-house-window-curtain{background:linear-gradient(90deg,#b96c93,#f4bbd3,#a74d7e)}
.m5p-house-room--v301[data-curtain="curtain_royal"] .m5p-house-window-curtain{background:linear-gradient(90deg,#082d77,#2363c7,#092963)}
.m5p-house-room--v301 .m5p-house-window-sheer{position:absolute;top:0;bottom:0;width:14%;z-index:3;background:linear-gradient(90deg,rgba(255,255,255,.57),rgba(255,255,255,.12))}
.m5p-house-room--v301 .m5p-house-window-sheer.left{left:17%;clip-path:polygon(0 0,100% 0,65% 100%,0 100%)}
.m5p-house-room--v301 .m5p-house-window-sheer.right{right:17%;clip-path:polygon(0 0,100% 0,100% 100%,35% 100%)}
.m5p-house-room--v301 .m5p-house-window-sill{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:8%;z-index:5;border-radius:0 0 12px 12px;background:linear-gradient(#fffefb,#d7bda2)}
.m5p-house-room--v301 .m5p-house-sill-plant{display:none!important}
/* Wall art, shelf and lighting behind pet */
.m5p-house-room--v301 .m5p-house-picture{position:absolute;top:15%;left:42.5%;width:13%;height:24%;z-index:3;overflow:hidden;padding:0;border:7px solid #d4a446;border-radius:10px;background:#f8f0df;box-shadow:0 8px 14px rgba(88,60,30,.19)}
.m5p-house-room--v301 .m5p-house-picture::before{display:none}
.m5p-house-room--v301 .m5p-house-picture img{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center;background:#fff9ed}
.m5p-house-room--v301 .m5p-house-shelf{position:absolute;top:14%;right:14.8%;width:25%;height:21%;z-index:3;filter:drop-shadow(0 4px 5px rgba(88,61,34,.15))}
.m5p-house-room--v301 .m5p-house-dresser{position:absolute;right:7.2%;bottom:10%;width:19%;height:30%;z-index:5}
.m5p-house-room--v301 .m5p-house-plant{position:absolute;right:.6%;bottom:8.5%;width:14%;height:34%;z-index:5}
.m5p-house-room--v301 .m5p-house-ornament{position:absolute;right:11.8%;bottom:37.5%;width:7%;height:10%;z-index:6}
.m5p-house-room--v301 .m5p-house-furniture-art{width:100%;height:100%;display:block;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 6px rgba(78,56,30,.19))}
/* Real image assets are ONLY used when the matching slot is equipped. */
.m5p-house-room--v301[data-picture="picture_heart"] .m5p-house-picture img{content:url('img/house/premium-picture_heart.png');object-fit:cover!important}
.m5p-house-room--v301[data-shelf="shelf_gold"] .m5p-house-shelf img,.m5p-house-room--v301[data-shelf="shelf_royal"] .m5p-house-shelf img,.m5p-house-room--v301[data-shelf="shelf_classic"] .m5p-house-shelf img{content:url('img/house/premium-shelf_gold.png')}
.m5p-house-room--v301[data-dresser="dresser_cream"] .m5p-house-dresser img,.m5p-house-room--v301[data-dresser="dresser_royal"] .m5p-house-dresser img{content:url('img/house/premium-dresser_cream.png')}
.m5p-house-room--v301[data-plant="plant_monstera"] .m5p-house-plant img,.m5p-house-room--v301[data-plant="plant_palm"] .m5p-house-plant img,.m5p-house-room--v301[data-plant="plant_royal"] .m5p-house-plant img{content:url('img/house/premium-plant_green.png')}
/* Optional lamp: cannot appear when no lamp equipped. */
.m5p-house-room--v301 .m5p-house-lamp{position:absolute;right:3.6%;top:12%;width:10%;height:28%;z-index:4;min-width:0!important;min-height:0!important}
.m5p-house-room--v301[data-light="light_moon"] .m5p-house-lamp{background:url('img/house/premium-light_moon.png') center center/contain no-repeat;filter:drop-shadow(0 0 12px rgba(255,215,132,.32))}
.m5p-house-room--v301[data-light="light_moon"] .m5p-house-lamp i{display:none!important}
.m5p-house-room--v301 .m5p-house-lamp:not(.m5p-house-lamp--moon) .m5p-house-lamp-base{position:absolute;left:47%;top:14%;width:9%;height:60%;border-radius:4px;background:linear-gradient(90deg,#c79539,#f5d182,#c18a30);display:block}
.m5p-house-room--v301 .m5p-house-lamp:not(.m5p-house-lamp--moon) .m5p-house-lamp-shade{position:absolute;left:15%;top:0;width:70%;height:43%;border-radius:12px 12px 22px 22px;background:linear-gradient(#fffdf6,#e7c99b);display:block}
.m5p-house-room--v301 .m5p-house-lamp:not(.m5p-house-lamp--moon) .m5p-house-lamp-glow{position:absolute;inset:-14%;border-radius:50%;background:radial-gradient(circle,rgba(255,231,168,.38),transparent 72%);display:block}
/* Floor rug and actual furniture silhouettes */
.m5p-house-room--v301 .m5p-house-rug{position:absolute;left:31%;bottom:7.3%;width:48%;height:22%;z-index:2;border:0!important;border-radius:50%;background:radial-gradient(ellipse,#fffef8 0 58%,#c6d9f1 59% 75%,#b68f51 76% 81%,transparent 82%)!important;filter:drop-shadow(0 8px 8px rgba(103,72,48,.18));opacity:1}
.m5p-house-room--v301[data-rug="rug_none"] .m5p-house-rug{display:none!important}
.m5p-house-room--v301[data-rug="rug_royal"] .m5p-house-rug,.m5p-house-room--v301[data-rug="rug_roundblue"] .m5p-house-rug{background:transparent url('img/house/premium-rug_blue.png') center center/100% 100% no-repeat!important;border-radius:0!important}
.m5p-house-room--v301[data-rug="rug_cloud"] .m5p-house-rug{background:transparent url('img/house/premium-rug_cream.png') center center/100% 100% no-repeat!important;border-radius:0!important}
.m5p-house-room--v301 .m5p-house-bed{position:absolute;left:4%;bottom:11.5%;width:39%;height:35%;z-index:4;background:none;filter:drop-shadow(0 13px 9px rgba(79,54,32,.25))}
.m5p-house-room--v301 .m5p-house-bed i{display:none!important}
.m5p-house-room--v301[data-bed="bed_basic"] .m5p-house-bed{background:url('img/house/premium-bed_cream.png') center bottom/100% 100% no-repeat}
.m5p-house-room--v301[data-bed="bed_blue"] .m5p-house-bed,.m5p-house-room--v301[data-bed="bed_premium"] .m5p-house-bed{background:url('img/house/premium-bed_blue.png') center bottom/100% 100% no-repeat}
.m5p-house-room--v301[data-bed="bed_pink"] .m5p-house-bed{background:url('img/house/premium-bed_pink.png') center bottom/100% 100% no-repeat}
.m5p-house-room--v301[data-bed="bed_royal"] .m5p-house-bed{background:url('img/house/premium-bed_royal.png') center bottom/100% 100% no-repeat}
.m5p-house-room--v301[data-bed="bed_cloud"] .m5p-house-bed{background:url('img/house/premium-bed_cream.png') center bottom/100% 100% no-repeat}
.m5p-house-room--v301 .m5p-house-cushion{position:absolute;left:15%;bottom:21%;width:10%;height:10%;z-index:5}
.m5p-house-room--v301 .m5p-house-toy{position:absolute;left:8%;bottom:8%;width:9%;height:12%;z-index:6}
.m5p-house-room--v301[data-toy="toy_rope"] .m5p-house-toy,.m5p-house-room--v301[data-toy="toy_blocks"] .m5p-house-toy{left:auto;right:1.5%;width:13%}
/* Pet sprite above rug, with wearable accessory positioned to its own bounds. */
.m5p-house-room--v301 .m5p-house-pet{position:absolute;left:43.8%;bottom:11%;width:34%;height:auto;max-width:365px;aspect-ratio:1/1;z-index:7;filter:drop-shadow(0 12px 9px rgba(79,48,26,.26));pointer-events:none}
.m5p-house-room--v301 .m5p-house-pet>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.m5p-house-room--v301 .m5p-house-wear{position:absolute;inset:0;pointer-events:none}
.m5p-house-room--v301[data-wear="wear_none"] .m5p-house-wear i{display:none!important}
.m5p-house-room--v301[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(1){display:block!important;position:absolute;left:55%;top:6%;width:19%;height:12%;transform:translateX(-50%);background:linear-gradient(#ffe89f,#d9a43b);clip-path:polygon(0 100%,8% 46%,23% 60%,35% 11%,50% 55%,65% 11%,78% 60%,92% 46%,100% 100%);border-radius:0 0 8px 8px;box-shadow:0 5px 5px rgba(88,54,11,.25)}
.m5p-house-room--v301[data-wear="wear_crown"] .m5p-house-wear--crown i:nth-child(n+2){display:none!important}
.m5p-house-room--v301 .m5p-house-sunbeam{display:none}
@media(max-width:650px){
 .m5p-house-preview-wrap .m5p-house-room--v301{height:clamp(258px,72vw,320px)!important}
 .m5p-house-room--v301 .m5p-house-window{left:4%;top:9%;width:36%;height:43%;border-width:7px;border-radius:48px 48px 16px 16px}
 .m5p-house-room--v301 .m5p-house-window-view,.m5p-house-room--v301 .m5p-house-window-glass,.m5p-house-room--v301 .m5p-house-window-rail{border-radius:40px 40px 10px 10px}
 .m5p-house-room--v301 .m5p-house-picture{left:42%;top:17%;width:15%;height:20%;border-width:4px}
 .m5p-house-room--v301 .m5p-house-shelf{top:14%;right:13%;width:23%;height:16%}
 .m5p-house-room--v301 .m5p-house-lamp{top:11%;right:2%;width:11%;height:23%}
 .m5p-house-room--v301 .m5p-house-bed{left:1%;bottom:10%;width:43%;height:33%}
 .m5p-house-room--v301 .m5p-house-rug{left:29%;width:53%;height:16%;bottom:7%}
 .m5p-house-room--v301 .m5p-house-pet{left:42%;bottom:10%;width:39%}
 .m5p-house-room--v301 .m5p-house-dresser{right:4%;width:22%;height:25%;bottom:9.5%}
 .m5p-house-room--v301 .m5p-house-plant{right:0;width:17%;height:28%;bottom:8.5%}
 .m5p-house-room--v301 .m5p-house-ornament{right:11%;bottom:31%;width:8%;height:9%}
 .m5p-house-room--v301 .m5p-house-cushion{left:15%;width:10%;height:8%;bottom:19%}
 .m5p-house-room--v301 .m5p-house-toy{left:6%;width:10%;height:9%;bottom:7%}
}

/* Fine-tuned proportions verified against the isolated browser renderer. */
.m5p-house-room--v301 .m5p-house-pet{left:48%;bottom:10%;width:28%;max-width:310px}
.m5p-house-room--v301 .m5p-house-bed{left:4%;bottom:10%;width:39%;height:50%}
.m5p-house-room--v301 .m5p-house-rug{left:32%;width:45%;height:20%;bottom:7%}
.m5p-house-room--v301 .m5p-house-window-curtain{width:15%}
.m5p-house-room--v301 .m5p-house-toy{left:7%;bottom:7.5%;width:9%;height:9%}
.m5p-house-room--v301[data-toy="toy_rope"] .m5p-house-toy{left:auto;right:3%;width:11%;height:10%;bottom:7%}
@media(max-width:650px){
 .m5p-house-room--v301 .m5p-house-pet{left:45%;width:35%;bottom:9%}
 .m5p-house-room--v301 .m5p-house-bed{left:1%;width:43%;height:44%;bottom:10%}
 .m5p-house-room--v301 .m5p-house-rug{left:29%;width:50%;height:17%}
}

/* ============================================================
   M5 PETS 3.1.0 — LEVELLED HOME. Isolated CSS namespace.
   Previous visual versions cannot override .m5lv-* elements.
   ============================================================ */
.m5lv-overview{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:18px 20px;margin:12px 0 18px;border:1px solid #d2dfed;border-radius:21px;background:linear-gradient(125deg,#f4f9ff,#fff8e9);box-shadow:0 9px 24px #183f6320}
.m5lv-overview h3{margin:6px 0;font-size:20px;color:#0d4b81}.m5lv-overview p{max-width:620px;margin:5px 0 11px;color:#526c84;font-size:13px}
.m5lv-overview>strong{white-space:nowrap;padding:10px 15px;border:1px solid #f1d58d;background:#fff;border-radius:15px;color:#865c13;font-size:15px}
.m5lv-eyebrow{font-size:11px;letter-spacing:.14em;color:#ac8749;font-weight:850}
.m5lv-totalbar,.m5lv-progress{height:9px;border-radius:100px;background:#e5ebf3;overflow:hidden}.m5lv-totalbar>span,.m5lv-progress>i{height:100%;display:block;background:linear-gradient(90deg,#1777dc,#4eaae9,#e8bf5c);border-radius:100px;transition:width .25s}
.m5lv-editor{align-items:start;gap:20px}.m5lv-preview{padding:8px!important;background:linear-gradient(180deg,#fff,#f5faff)!important}
.m5lv-preview .m5lv-room{height:clamp(315px,35vw,450px)}
.m5lv-shop{min-width:0}.m5lv-products{grid-template-columns:repeat(auto-fit,minmax(188px,1fr));gap:12px}
.m5lv-card{display:flex;flex-direction:column;text-align:left;padding:15px;min-height:235px;border-radius:20px!important;background:linear-gradient(165deg,#fff,#f5faff)!important;border:1px solid #d3e3f2!important}
.m5lv-card strong{font-size:15px;color:#12538d}.m5lv-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.m5lv-card-icon{font-size:28px;line-height:1.2}.m5lv-level{padding:5px 9px;border-radius:99px;background:#e7f3ff;color:#185c91;font-size:12px;white-space:nowrap}
.m5lv-stage{font-size:12px;color:#566e83;margin:6px 0 14px!important;min-height:32px}.m5lv-progress{height:9px;margin-bottom:12px}.m5lv-next{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;color:#486a84;margin-bottom:9px}
.m5lv-next span{font-weight:850;color:#976813}.m5lv-next s{font-weight:400;color:#8896a1;font-size:11px}.m5lv-credit{font-size:11px;color:#287d51;padding:4px 0 8px}
.m5lv-card .m5p-button{margin-top:auto!important;width:100%}.m5lv-complete{color:#347a4d;background:#e4f5e8;border-radius:10px;padding:9px;margin:6px 0 12px;font-weight:700;font-size:12px}
.m5lv-max{border-color:#e9ca77!important;background:linear-gradient(145deg,#fffcf1,#fff6d9)!important}

/* All room positions use one clipping and stacking context, preserving the same layout in both owner and visit scenes. */
.m5lv-room{position:relative!important;display:block;width:100%;height:100%;min-height:0;max-width:none;overflow:hidden;isolation:isolate;border-radius:18px;background:#f9f2e8;box-shadow:inset 0 0 0 1px #ffffffb0}
.m5lv-room *{box-sizing:border-box}
.m5lv-room>div{position:absolute}
.m5lv-walls{inset:0 0 35%;z-index:0;background:linear-gradient(180deg,#fcf8f2,#efe6db)}
.m5lv-walls:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 16% 10%,#fff9 0,transparent 52%),linear-gradient(90deg,transparent 14%,#9f744a12 14.2%,transparent 14.5% 55%,#9f744a13 55.2%,transparent 55.5% 85%,#9f744a13 85.2%,transparent 85.5%)}
.m5lv-trim{position:absolute;inset:0;border-bottom:4px solid #dbc8b4}
.m5lv-floor{inset:65% 0 0;z-index:1;background:repeating-linear-gradient(90deg,#cba47b 0 16%,#bd9069 16.2% 16.7%,#e3bd91 17% 33%);box-shadow:inset 0 12px 18px #684a291c}
.m5lv-floor:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#ffffff56,transparent 32%),repeating-linear-gradient(92deg,transparent 0 12%,#9e714d19 12.1% 12.3%,transparent 12.5% 24%)}
.m5lv-plinth{inset:63.3% 0 auto;height:3%;background:linear-gradient(#fffcf4,#e0cdb7 48%,#fff7eb 72%,#c0a58b);z-index:2;box-shadow:0 4px 7px #513a2e18}
/* Wall advancement: increasing richness, trim, and visual texture */
.m5lv-room[data-l-wall="1"] .m5lv-walls,.m5lv-room[data-l-wall="2"] .m5lv-walls{background:linear-gradient(#f9f7f3,#eee8df)}
.m5lv-room[data-l-wall="3"] .m5lv-walls,.m5lv-room[data-l-wall="4"] .m5lv-walls{background:linear-gradient(#f9f7f4,#f2e9de)}
.m5lv-room[data-l-wall="5"] .m5lv-walls,.m5lv-room[data-l-wall="6"] .m5lv-walls{background:linear-gradient(#fffaf3,#eee3d7)}
.m5lv-room[data-l-wall="7"] .m5lv-walls,.m5lv-room[data-l-wall="8"] .m5lv-walls{background:linear-gradient(#fffaf1,#efe1ce)}
.m5lv-room[data-l-wall="9"] .m5lv-walls,.m5lv-room[data-l-wall="10"] .m5lv-walls{background:linear-gradient(180deg,#fffaf0,#efdac2);box-shadow:inset 0 0 70px #e2bf7230}
.m5lv-room[data-l-wall="8"] .m5lv-walls:after,.m5lv-room[data-l-wall="9"] .m5lv-walls:after,.m5lv-room[data-l-wall="10"] .m5lv-walls:after{content:"";position:absolute;inset:2% 1% 6%;border:2px solid #d0a14b77;border-radius:15px;background:linear-gradient(90deg,transparent 17%,#e6c27666 17.2%,transparent 17.4% 66%,#e6c27666 66.2%,transparent 66.4%);pointer-events:none}
.m5lv-room[data-l-wall="10"] .m5lv-walls:after{border:3px solid #d7a64a99}
.m5lv-room[data-l-floor="3"] .m5lv-floor,.m5lv-room[data-l-floor="4"] .m5lv-floor{background:repeating-linear-gradient(90deg,#e0bc96 0 15%,#c89c71 15.2% 15.7%,#eacaa7 16% 31%)}
.m5lv-room[data-l-floor="5"] .m5lv-floor,.m5lv-room[data-l-floor="6"] .m5lv-floor{background:repeating-linear-gradient(90deg,#edd8b4 0 15%,#cbab81 15.2% 15.7%,#f2e3c9 16% 31%)}
.m5lv-room[data-l-floor="7"] .m5lv-floor,.m5lv-room[data-l-floor="8"] .m5lv-floor{background:repeating-linear-gradient(90deg,#f4dfb7 0 15%,#c89f70 15.2% 15.7%,#f5e9d1 16% 31%)}
.m5lv-room[data-l-floor="9"] .m5lv-floor,.m5lv-room[data-l-floor="10"] .m5lv-floor{background:repeating-linear-gradient(90deg,#f8e6c8 0 14%,#c99d5f 14.2% 14.7%,#fff4de 15% 29%);box-shadow:inset 0 5px 18px #fff8,0 0 80px #fff5}
.m5lv-room[data-l-floor="10"] .m5lv-floor:after{content:"";position:absolute;inset:0;background:linear-gradient(117deg,#ffffff08 0 27%,#ffffff66 28%,transparent 40% 70%,#ffffff35 72%,transparent 85%);pointer-events:none}

.m5lv-window{left:6%;top:7%;width:34%;height:47%;z-index:3;overflow:hidden;border:9px solid #fff9ee;border-radius:26px 26px 14px 14px;background:#baddf3;box-shadow:0 8px 0 #bca18d,0 13px 21px #57452f30}
.m5lv-window-art{width:100%;height:100%;display:block;object-fit:cover;object-position:center center}
.m5lv-window-reflection{position:absolute;inset:0;background:linear-gradient(115deg,#ffffff72,transparent 14% 58%,#ffffff2b 64%,transparent 74%);pointer-events:none}
.m5lv-room[data-l-window="1"] .m5lv-window,.m5lv-room[data-l-window="2"] .m5lv-window{left:11%;width:25%;height:33%;top:13%;border-width:6px;border-radius:13px}
.m5lv-room[data-l-window="3"] .m5lv-window,.m5lv-room[data-l-window="4"] .m5lv-window{left:8%;width:30%;height:39%;top:11%;border-width:7px;border-radius:20px}
.m5lv-room[data-l-window="7"] .m5lv-window,.m5lv-room[data-l-window="8"] .m5lv-window{top:5%;height:49%;border-width:10px;border-radius:38px 38px 17px 17px}
.m5lv-room[data-l-window="9"] .m5lv-window,.m5lv-room[data-l-window="10"] .m5lv-window{top:4%;height:51%;border:11px solid #fff5df;border-radius:54px 54px 18px 18px;box-shadow:0 8px 0 #d5b079,0 17px 24px #60452b38,0 0 0 2px #d9af5d}
.m5lv-curtains{position:absolute;top:0;bottom:0;width:19%;background:linear-gradient(90deg,#153e87,#356aba,#183c83);filter:drop-shadow(2px 0 3px #152b3b50);opacity:.9}
.m5lv-curtains-left{left:0;clip-path:polygon(0 0,100% 0,65% 57%,84% 100%,0 100%)}.m5lv-curtains-right{right:0;clip-path:polygon(0 0,100% 0,100% 100%,16% 100%,35% 57%)}
.m5lv-curtains:after{content:"";position:absolute;top:53%;height:5px;width:100%;background:linear-gradient(90deg,#b57f31,#fff0b7,#bd8330)}
.m5lv-room[data-l-curtain="1"] .m5lv-curtains,.m5lv-room[data-l-curtain="2"] .m5lv-curtains{width:9%;background:linear-gradient(90deg,#eee9df,#fff,#d4c9b9)}
.m5lv-room[data-l-curtain="3"] .m5lv-curtains,.m5lv-room[data-l-curtain="4"] .m5lv-curtains{background:linear-gradient(90deg,#7c9bbf,#bfd1e5,#7491b3)}
.m5lv-room[data-l-curtain="5"] .m5lv-curtains,.m5lv-room[data-l-curtain="6"] .m5lv-curtains{background:linear-gradient(90deg,#3968b0,#6094da,#2b5b9a)}
.m5lv-room[data-l-curtain="9"] .m5lv-curtains,.m5lv-room[data-l-curtain="10"] .m5lv-curtains{width:23%;background:linear-gradient(90deg,#0d327b,#225fc2,#0b2b6b);box-shadow:inset -5px 0 8px #ffebad47}
.m5lv-art{left:41%;top:15%;width:13.5%;height:22%;z-index:3;padding:5px;background:#fef9ef;border:5px solid #c99f59;border-radius:7px;box-shadow:0 8px 14px #523a2826}
.m5lv-artpic{width:100%;height:100%;object-fit:contain;display:block}
.m5lv-room[data-l-picture="2"] .m5lv-art,.m5lv-room[data-l-picture="3"] .m5lv-art{width:11%;height:17%;border-width:3px}
.m5lv-room[data-l-picture="7"] .m5lv-art,.m5lv-room[data-l-picture="8"] .m5lv-art{border:7px solid #d6ac59}
.m5lv-room[data-l-picture="10"] .m5lv-art{border:9px ridge #eac775;box-shadow:0 7px 20px #8a601740}
.m5lv-shelf{right:13.5%;top:11.5%;width:25%;height:23%;z-index:3;filter:drop-shadow(0 7px 5px #40302529)}
.m5lv-room[data-l-shelf="2"] .m5lv-shelf,.m5lv-room[data-l-shelf="3"] .m5lv-shelf{width:20%;height:16%;top:15%}
.m5lv-room[data-l-shelf="9"] .m5lv-shelf,.m5lv-room[data-l-shelf="10"] .m5lv-shelf{width:28%;height:25%;right:12%}
.m5lv-ground-shadow{left:20%;right:8%;bottom:7%;height:17%;z-index:3;border-radius:50%;background:radial-gradient(ellipse,#806b5036,transparent 70%);pointer-events:none}
.m5lv-rug{left:28%;bottom:4.5%;width:56%;height:25%;z-index:4;filter:drop-shadow(0 9px 6px #594a3530)}
.m5lv-room[data-l-rug="2"] .m5lv-rug,.m5lv-room[data-l-rug="3"] .m5lv-rug{left:34%;bottom:5%;width:43%;height:16%}
.m5lv-room[data-l-rug="4"] .m5lv-rug,.m5lv-room[data-l-rug="5"] .m5lv-rug{left:31%;width:48%;height:19%}
.m5lv-room[data-l-rug="8"] .m5lv-rug,.m5lv-room[data-l-rug="9"] .m5lv-rug,.m5lv-room[data-l-rug="10"] .m5lv-rug{left:23%;width:63%;height:28%}
.m5lv-bed{left:2.8%;bottom:9%;width:40%;height:41%;z-index:5;filter:drop-shadow(0 14px 9px #59473435)}
.m5lv-room[data-l-bed="1"] .m5lv-bed,.m5lv-room[data-l-bed="2"] .m5lv-bed{left:6%;width:32%;height:22%;bottom:12%}
.m5lv-basic-bed{position:absolute;left:0;right:0;bottom:0;height:70%;border-radius:38px;background:linear-gradient(#eddcc6,#ceb89b);border:7px solid #fff7e8;box-shadow:inset 0 8px 10px #fff8}
.m5lv-room[data-l-bed="3"] .m5lv-bed,.m5lv-room[data-l-bed="4"] .m5lv-bed{width:34%;height:31%;left:6%}
.m5lv-room[data-l-bed="8"] .m5lv-bed,.m5lv-room[data-l-bed="9"] .m5lv-bed,.m5lv-room[data-l-bed="10"] .m5lv-bed{width:42%;height:43%;left:2%}
.m5lv-furniture{width:100%;height:100%;display:block;object-fit:contain;object-position:center bottom}
.m5lv-cushion{left:14%;bottom:24%;width:13%;height:13%;z-index:6;transform:rotate(-8deg);filter:drop-shadow(0 4px 5px #58463228)}
.m5lv-dresser{right:6%;bottom:9%;width:20%;height:32%;z-index:5;filter:drop-shadow(0 7px 6px #59443120)}
.m5lv-room[data-l-dresser="2"] .m5lv-dresser,.m5lv-room[data-l-dresser="3"] .m5lv-dresser{width:15%;height:24%;right:8%}
.m5lv-room[data-l-dresser="8"] .m5lv-dresser,.m5lv-room[data-l-dresser="9"] .m5lv-dresser,.m5lv-room[data-l-dresser="10"] .m5lv-dresser{width:21%;height:33%}
.m5lv-ornament{right:11%;bottom:37%;width:8%;height:10%;z-index:6}
.m5lv-plant{right:0.4%;bottom:8%;width:17%;height:35%;z-index:6;filter:drop-shadow(0 6px 7px #39462d2f)}
.m5lv-room[data-l-plant="2"] .m5lv-plant,.m5lv-room[data-l-plant="3"] .m5lv-plant{width:11%;height:22%;right:2%}
.m5lv-room[data-l-plant="8"] .m5lv-plant,.m5lv-room[data-l-plant="9"] .m5lv-plant,.m5lv-room[data-l-plant="10"] .m5lv-plant{width:18%;height:38%}
.m5lv-light{right:3.8%;top:10%;width:12%;height:25%;z-index:4;filter:drop-shadow(0 0 8px #fff1a075)}
.m5lv-simple-light{display:block;font-size:45px;color:#ffd87d;text-align:center;text-shadow:0 0 14px #ffef95}
.m5lv-room[data-l-light="2"] .m5lv-light,.m5lv-room[data-l-light="3"] .m5lv-light{width:7%;height:15%;right:6%;top:16%}
.m5lv-room[data-l-light="9"] .m5lv-light,.m5lv-room[data-l-light="10"] .m5lv-light{width:14%;height:27%;top:9%;right:2.2%}
.m5lv-toy{left:6%;bottom:5%;width:10%;height:11%;z-index:7;filter:drop-shadow(0 4px 4px #53402d22)}
.m5lv-room[data-l-toy="8"] .m5lv-toy,.m5lv-room[data-l-toy="9"] .m5lv-toy,.m5lv-room[data-l-toy="10"] .m5lv-toy{left:auto;right:3%;width:12%;height:16%}
.m5lv-pet{left:43%;bottom:9%;width:34%;aspect-ratio:1/1;z-index:8;pointer-events:none;filter:drop-shadow(0 12px 10px #4b322540)}
.m5lv-pet>img{height:100%;width:100%;object-fit:contain;display:block}
.m5lv-crown{position:absolute;top:8%;left:50%;transform:translateX(-50%) rotate(-6deg);font-size:clamp(16px,2vw,28px);filter:drop-shadow(0 3px 1px #8d6d1c88)}
.m5lv-lightbeams{inset:0;z-index:10;pointer-events:none;background:radial-gradient(ellipse at 37% 6%,#fff7 0,transparent 47%);opacity:.38}
.m5lv-room[data-l-light="10"] .m5lv-lightbeams{opacity:.75}
.m5lv-room[data-l-wall="10"][data-l-floor="10"] .m5lv-walls{background:linear-gradient(180deg,#fff9ee,#f2e3d3)}
@media(max-width:700px){
 .m5lv-editor{grid-template-columns:1fr}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
}
@media(max-width:420px){.m5lv-products{grid-template-columns:1fr 1fr}.m5lv-card{padding:11px;min-height:235px}.m5lv-card strong{font-size:13px}.m5lv-card .m5p-button{font-size:12px}}

/* 3.1.0 visual checks: photo-real furniture must retain its intrinsic proportions,
   but floor rugs are deliberately oval in perspective rather than circular. */
.m5lv-rug>.m5lv-furniture{object-fit:fill!important}
.m5lv-cushion{left:13%;bottom:18%;width:11%;height:12%}
.m5lv-ornament{right:21%;bottom:36%;width:6%;height:9%}
.m5lv-room[data-l-rug="10"] .m5lv-rug{left:23%;bottom:4%;width:63%;height:19%}
.m5lv-room[data-l-bed="10"] .m5lv-bed{left:2%;bottom:9%;width:42%;height:39%}
.m5lv-pet{left:45%;bottom:9%;width:31%}
.m5lv-room[data-l-toy="10"] .m5lv-toy{right:5%;bottom:6%;width:8%;height:13%}
@media(max-width:700px){}


/* ===== M5 PETS 3.2.0 — premium room rebuild ===== */
.m5lv-preview .m5lv-room,[data-m5p-house-scene] .m5lv-room,.m5p-scene .m5lv-room{position:relative!important;display:block!important;width:100%!important;aspect-ratio:16/9!important;min-height:310px!important;overflow:hidden!important;border-radius:26px!important;background:linear-gradient(180deg,#fff9f0 0%,#f8efe1 52%,#f0e3d2 52.5%,#e5d0b9 100%)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 12px 28px rgba(39,35,31,.12)!important;isolation:isolate}
.m5lv-room *{box-sizing:border-box}.m5lv-room>div,.m5lv-room>span{position:absolute}.m5lv-walls{inset:0 auto 31% 0;width:100%;height:69%;background:linear-gradient(180deg,#fffaf3,#f5eadc)!important}.m5lv-walls:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 11.8%,rgba(217,190,145,.28) 12%,transparent 12.3%,transparent 49.7%,rgba(217,190,145,.28) 50%,transparent 50.3%,transparent 86.7%,rgba(217,190,145,.28) 87%,transparent 87.3%)}.m5lv-trim{position:absolute;inset:1.8% 1.7% 7% 1.7%;border:2px solid rgba(213,173,101,.52);border-bottom:none;border-radius:20px 20px 0 0}.m5lv-wall-glow{position:absolute;right:0;top:0;width:38%;height:100%;background:radial-gradient(circle at 70% 28%,rgba(255,241,205,.8),transparent 35%)}
.m5lv-floor{left:0;right:0;bottom:0;height:31%;background:linear-gradient(180deg,#f5e7d2 0%,#dfbf97 100%)}.m5lv-floor:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,#efdbbe 0 11%,#d6b38d 11.5% 12%,#f7e8d0 12.3% 24%)}.m5lv-floor:after{content:'';position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#e7d5c0,#fff6ec,#dcc6af)}
.m5lv-window{left:8%;top:7%;width:28%;height:43%;z-index:3;border-radius:70px 70px 16px 16px;background:linear-gradient(180deg,#fffefb,#efe2d2);box-shadow:0 10px 0 rgba(198,167,130,.75),0 16px 28px rgba(72,55,35,.16);overflow:hidden}.m5lv-window-art{position:absolute;inset:6% 5.5% 8.5% 5.5%;width:auto!important;height:auto!important;border-radius:54px 54px 10px 10px;object-fit:cover}.m5lv-window-arch{position:absolute;inset:6% 5.5% 8.5% 5.5%;border:3px solid rgba(255,255,255,.92);border-bottom-width:4px;border-radius:54px 54px 10px 10px;box-shadow:inset 0 0 0 1px rgba(213,233,243,.45)}.m5lv-window-arch:before,.m5lv-window-arch:after{content:'';position:absolute;background:rgba(255,255,255,.9)}.m5lv-window-arch:before{top:0;bottom:0;left:49.3%;width:4px}.m5lv-window-arch:after{left:0;right:0;top:46%;height:4px}.m5lv-window-reflection{inset:0;background:linear-gradient(114deg,rgba(255,255,255,.45) 0 8%,transparent 14% 60%,rgba(255,255,255,.12) 66%,transparent 76%)}.m5lv-window-sill{left:8%;right:8%;bottom:3%;height:7%;border-radius:0 0 12px 12px;background:linear-gradient(180deg,#fffaf4,#d9c0a9)}.m5lv-curtains{top:6%;bottom:8%;width:18%;background:linear-gradient(180deg,#1b4da9,#275fbe 55%,#164392);box-shadow:inset 0 0 14px rgba(255,255,255,.25),0 2px 8px rgba(53,42,31,.15);z-index:3}.m5lv-curtains-left{left:5.6%;border-radius:18px 10px 30px 24px;clip-path:polygon(0 0,100% 0,72% 40%,87% 100%,0 100%)}.m5lv-curtains-right{right:5.6%;border-radius:10px 18px 24px 30px;clip-path:polygon(0 0,100% 0,100% 100%,13% 100%,28% 40%)}.m5lv-curtains:before{content:'';position:absolute;top:53%;left:-5%;right:-5%;height:4px;background:linear-gradient(90deg,#d4a245,#f3d48f,#d4a245)}.m5lv-curtains:after{content:'';position:absolute;top:50%;width:15px;height:15px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff4bf,#c99542)}.m5lv-curtains-left:after{right:10px}.m5lv-curtains-right:after{left:10px}
.m5lv-art{left:41%;top:12%;width:14%;height:22%;z-index:4}.m5lv-art-frame{inset:0;border:7px solid #ca9a45;border-radius:12px;background:linear-gradient(180deg,#fbf6ee,#fffdf7);box-shadow:0 10px 18px rgba(84,61,37,.16),inset 0 0 0 2px rgba(253,242,220,.88)}.m5lv-art-canvas{position:absolute;inset:9%;border-radius:6px;background:linear-gradient(180deg,#fffdf8,#f8ecdf)}.m5lv-art-canvas.is-heart:before{content:'❤';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:50px;color:#d98086;text-shadow:0 3px 0 rgba(255,255,255,.55)}.m5lv-art-canvas.is-paw:before{content:'🐾';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:42px;color:#4d7dc5}
.m5lv-shelf{right:15%;top:11.5%;width:17%;height:15%;z-index:4}.m5lv-shelf-plank{position:absolute;left:8%;right:8%;height:10px;border-radius:10px;background:linear-gradient(180deg,#e7c77f,#b88532);box-shadow:0 2px 0 rgba(255,255,255,.45)}.m5lv-shelf-plank.top{top:13%}.m5lv-shelf-plank.bottom{top:52%;opacity:.9}.m5lv-book{position:absolute;top:0;width:12%;height:33%;border-radius:3px 3px 1px 1px;box-shadow:0 2px 5px rgba(44,30,15,.15)}.m5lv-book.b1{left:18%;background:linear-gradient(180deg,#547fc8,#34589a)}.m5lv-book.b2{left:32%;height:38%;background:linear-gradient(180deg,#d3b36e,#b38233)}.m5lv-book.b3{left:47%;height:31%;background:linear-gradient(180deg,#83a571,#5e8350)}.m5lv-shelf-accent{position:absolute;right:24%;top:17%;width:16%;height:26%}.m5lv-shelf-accent.is-plain{border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff2d4,#d4b27f 65%,#a8824d)}.m5lv-shelf-accent.is-gold{border-radius:30% 30% 40% 40%;background:linear-gradient(180deg,#f8d886,#cd983b);box-shadow:0 0 0 3px rgba(247,226,169,.5) inset}.m5lv-shelf-vine{position:absolute;right:6%;top:11%;width:26%;height:68%;background:radial-gradient(circle at 42% 16%,#8bc370 0 17%,transparent 18%),radial-gradient(circle at 70% 28%,#78b65d 0 15%,transparent 16%),radial-gradient(circle at 46% 43%,#8ac56e 0 16%,transparent 17%),radial-gradient(circle at 67% 55%,#7dbc63 0 14%,transparent 15%),radial-gradient(circle at 49% 72%,#8ecf71 0 14%,transparent 15%)}.m5lv-shelf-vine:before{content:'';position:absolute;left:50%;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#6ba05d,#7cb26a)}
.m5lv-light{right:4.5%;top:8%;width:10%;height:22%;z-index:4}.m5lv-light-disc{position:absolute;right:14%;top:5%;width:56%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(255,247,211,.95),#ffefbf 58%,#e7b55b 100%);box-shadow:0 0 22px rgba(255,230,157,.8),0 0 48px rgba(255,233,179,.45)}.m5lv-light-moon{position:absolute;right:28%;top:12%;width:34%;aspect-ratio:1;border-radius:50%;box-shadow:12px 0 0 0 #f7e4ab}.m5lv-light-stem{position:absolute;right:35%;top:48%;width:4px;height:35%;background:linear-gradient(180deg,#d9b25c,#b7852c);border-radius:10px}.m5lv-light-star{position:absolute;right:23%;bottom:7%;width:18px;height:18px;background:linear-gradient(180deg,#ffe59a,#efbf54);clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 71%,21% 91%,32% 57%,2% 35%,39% 35%);filter:drop-shadow(0 2px 5px rgba(209,158,69,.5))}
.m5lv-rug{left:34%;bottom:10%;width:32%;height:16%;z-index:1;border-radius:50%;background:radial-gradient(ellipse at center,#fffef7 0 53%,#f7f1e8 54% 70%,#dce8f6 71% 77%,#89abd7 78% 82%,transparent 82.5%);filter:drop-shadow(0 9px 11px rgba(84,82,90,.16))}
.m5lv-bed{left:5%;bottom:11%;width:30%;height:27%;z-index:3;filter:drop-shadow(0 16px 12px rgba(61,45,34,.18))}.m5lv-bed-back,.m5lv-bed-seat,.m5lv-bed-front,.m5lv-bed-pillow,.m5lv-bed-emblem{position:absolute;display:block}.m5lv-bed-back{inset:2% 0 21%;border:8px solid #f6dfae;border-radius:44px 44px 24px 24px;background:linear-gradient(180deg,#2557b8,#123d8e);box-shadow:inset 0 14px 22px rgba(255,255,255,.18),inset 0 -10px 18px rgba(14,44,115,.28),0 0 0 3px rgba(250,228,166,.28)}.m5lv-room[data-l-bed="1"] .m5lv-bed-back,.m5lv-room[data-l-bed="2"] .m5lv-bed-back{background:linear-gradient(180deg,#e6d1b8,#ccb090);border-color:#f0dfc4}.m5lv-bed-seat{inset:32% 8% 14%;border:4px solid rgba(255,248,233,.95);border-radius:36px;background:linear-gradient(180deg,#fffefb,#eef2fa);box-shadow:inset 0 10px 14px rgba(255,255,255,.9),inset 0 -10px 18px rgba(124,105,73,.12)}.m5lv-bed-front{bottom:0;left:5%;right:5%;height:22%;border:5px solid #f8e3b4;border-radius:0 0 30px 30px;background:linear-gradient(180deg,#3a71d2,#1a4a9d);box-shadow:inset 0 8px 10px rgba(255,255,255,.25),0 8px 14px rgba(77,124,169,.15)}.m5lv-room[data-l-bed="1"] .m5lv-bed-front,.m5lv-room[data-l-bed="2"] .m5lv-bed-front{background:linear-gradient(180deg,#dcc1a1,#be9970);border-color:#ead9bb}.m5lv-bed-pillow{top:27%;width:22%;height:17%;border-radius:20px;background:#fffdf6;box-shadow:0 8px 14px rgba(95,85,66,.12),inset 0 -5px 9px rgba(198,187,163,.18)}.m5lv-bed-pillow.left{left:14%}.m5lv-bed-pillow.right{right:15%;background:linear-gradient(180deg,#fffaf0,#efe6d7)}.m5lv-bed-pillow.right:before,.m5lv-bed-pillow.right:after{content:'';position:absolute;top:50%;width:34%;height:78%;transform:translateY(-50%);background:inherit;border-radius:50%}.m5lv-bed-pillow.right:before{left:-11%}.m5lv-bed-pillow.right:after{right:-11%}.m5lv-bed-pillow.left:before{content:'';position:absolute;left:31%;top:22%;width:38%;height:44%;border-radius:50%;background:#2e63c4;box-shadow:-16px -12px 0 -5px #2e63c4,16px -12px 0 -5px #2e63c4,-28px 6px 0 -8px #2e63c4,28px 6px 0 -8px #2e63c4}.m5lv-bed-emblem{left:40%;bottom:6%;width:17%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3b9,#d19b3a 65%,#9a6a20);box-shadow:0 0 0 4px #183870}.m5lv-bed-emblem:before{content:'🐾';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:#183870}
.m5lv-cushion{left:15%;bottom:25%;width:8%;height:8%;z-index:4}.m5lv-cushion-core{position:absolute;inset:0;border-radius:18px;background:linear-gradient(180deg,#fffefb,#edf4ff);box-shadow:0 4px 10px rgba(93,83,66,.14)}.m5lv-cushion-core.is-paw:before{content:'🐾';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:#2e63c4}.m5lv-cushion-core.is-royal:before{content:'★';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:#d3a33f}
.m5lv-dresser{right:7.5%;bottom:12%;width:16%;height:20%;z-index:3;border-radius:12px;background:linear-gradient(180deg,#fffdf9,#ece0cf);box-shadow:0 10px 16px rgba(79,61,41,.12)}.m5lv-dresser:before{content:'';position:absolute;inset:0;border-radius:12px;box-shadow:inset 0 0 0 2px rgba(223,207,186,.72)}.m5lv-drawer{position:absolute;left:10%;right:10%;height:20%;border-radius:5px;background:rgba(255,255,255,.45);box-shadow:inset 0 0 0 1px rgba(215,200,178,.4)}.m5lv-drawer.d1{top:18%}.m5lv-drawer.d2{top:42%}.m5lv-drawer.d3{top:66%}.m5lv-drawer:after{content:'';position:absolute;right:12%;top:50%;transform:translateY(-50%);width:18%;height:18%;border-radius:999px;background:linear-gradient(180deg,#d9b763,#b8862f)}
.m5lv-ornament{right:15.5%;bottom:28%;width:5.6%;height:8%;z-index:4}.m5lv-ornament-core{position:absolute;inset:0}.m5lv-ornament-core.is-vase{border-radius:50% 50% 32% 32%/38% 38% 62% 62%;background:linear-gradient(180deg,#fff8ea,#e1c79c);box-shadow:0 4px 8px rgba(87,68,49,.12)}.m5lv-ornament-core.is-vase:before{content:'';position:absolute;left:34%;right:34%;top:-18%;height:24%;border-radius:8px;background:inherit}.m5lv-ornament-core.is-statue{border-radius:10px 10px 18px 18px;background:linear-gradient(180deg,#f7d683,#ca9438)}.m5lv-ornament-core.is-statue:before{content:'';position:absolute;left:33%;top:-26%;width:34%;height:34%;border-radius:50%;background:inherit}
.m5lv-plant{right:1%;bottom:9%;width:11%;height:22%;z-index:4}.m5lv-pot{position:absolute;left:19%;right:19%;bottom:0;height:27%;border-radius:6px 6px 14px 14px;background:linear-gradient(180deg,#d99863,#bc6e3f);box-shadow:0 6px 8px rgba(99,73,46,.18)}.m5lv-leaf{position:absolute;border-radius:70% 30% 70% 30%/70% 30% 70% 30%;background:linear-gradient(180deg,#7fca61,#3c8e4d);transform-origin:bottom center}.m5lv-leaf.royal{background:linear-gradient(180deg,#9fdb78,#4ea45f)}.m5lv-leaf.l1{left:42%;bottom:24%;width:24%;height:42%;transform:rotate(-5deg)}.m5lv-leaf.l2{left:25%;bottom:31%;width:22%;height:32%;transform:rotate(-32deg)}.m5lv-leaf.l3{left:52%;bottom:31%;width:22%;height:32%;transform:scaleX(-1) rotate(-32deg)}.m5lv-leaf.l4{left:16%;bottom:16%;width:20%;height:26%;transform:rotate(-48deg)}.m5lv-leaf.l5{left:59%;bottom:17%;width:20%;height:26%;transform:scaleX(-1) rotate(-48deg)}
.m5lv-toy{right:4%;bottom:4.5%;width:7.5%;height:9%;z-index:4}.m5lv-toy-core{position:absolute;inset:0}.m5lv-toy-core.is-ball{border-radius:50%;background:radial-gradient(circle at 35% 30%,#f8d64d,#225fc2 70%);box-shadow:0 6px 8px rgba(72,63,54,.15)}.m5lv-toy-core.is-ball:before{content:'';position:absolute;inset:18%;border-radius:50%;border:2px solid rgba(255,235,175,.8)}.m5lv-toy-core.is-plush{border-radius:18px;background:linear-gradient(180deg,#e6c18d,#bb8d5a);box-shadow:0 6px 8px rgba(72,63,54,.15)}.m5lv-toy-core.is-plush:before,.m5lv-toy-core.is-plush:after{content:'';position:absolute;top:-8%;width:28%;height:28%;border-radius:50%;background:inherit}.m5lv-toy-core.is-plush:before{left:12%}.m5lv-toy-core.is-plush:after{right:12%}
.m5lv-pet{left:48%;bottom:12%;width:24%;height:48%;z-index:5;filter:drop-shadow(0 20px 15px rgba(20,41,64,.22))}.m5lv-pet>img{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block}.m5lv-crown{position:absolute;left:43%;top:1%;transform:translateX(-50%) rotate(-2deg);font-size:33px;filter:drop-shadow(0 2px 0 rgba(143,98,29,.25))}.m5lv-lightbeams{inset:0;z-index:2;pointer-events:none;background:radial-gradient(circle at 87% 20%,rgba(255,239,195,.55),transparent 26%),radial-gradient(circle at 29% 18%,rgba(255,255,255,.16),transparent 22%)}
.m5lv-badge{position:absolute;display:flex;align-items:center;justify-content:center;width:38px;height:38px;font-size:13px;font-weight:900;line-height:1;color:#8a5c00;text-shadow:0 1px 0 rgba(255,255,255,.6);background:linear-gradient(180deg,#fff4bf,#efc85d);clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 71%,21% 91%,32% 57%,2% 35%,39% 35%);box-shadow:0 3px 8px rgba(120,82,12,.30);z-index:15}.m5lv-badge-curtain{top:56%;left:50%;transform:translate(-50%,-50%);width:32px;height:32px;font-size:11px}.m5lv-badge-wear{left:50%;top:-4%;transform:translateX(-50%)}
.m5lv-walls>.m5lv-badge{left:16px;top:14px}.m5lv-floor>.m5lv-badge{left:16px;top:12px}.m5lv-window>.m5lv-badge{right:8px;top:8px}.m5lv-art>.m5lv-badge{right:-12px;top:-12px}.m5lv-shelf>.m5lv-badge{right:-10px;top:-10px}.m5lv-light>.m5lv-badge{right:0;top:-6px}.m5lv-rug>.m5lv-badge{left:50%;top:-12px;transform:translateX(-50%)}.m5lv-bed>.m5lv-badge{left:8px;top:8px}.m5lv-cushion>.m5lv-badge,.m5lv-ornament>.m5lv-badge,.m5lv-toy>.m5lv-badge{right:-10px;top:-10px;width:30px;height:30px;font-size:11px}.m5lv-dresser>.m5lv-badge{right:-10px;top:-10px}.m5lv-plant>.m5lv-badge{right:5px;top:-8px}
.m5lv-room[data-l-window="1"] .m5lv-window{width:22%;height:31%;top:12%;left:10%}.m5lv-room[data-l-window="2"] .m5lv-window,.m5lv-room[data-l-window="3"] .m5lv-window{width:24%;height:35%;top:10.5%;left:9%}.m5lv-room[data-l-window="9"] .m5lv-window,.m5lv-room[data-l-window="10"] .m5lv-window{width:29%;height:45%;top:6.5%;left:8%}
.m5lv-room[data-l-bed="1"] .m5lv-bed,.m5lv-room[data-l-bed="2"] .m5lv-bed{left:6%;width:26%;height:18%}.m5lv-room[data-l-bed="3"] .m5lv-bed,.m5lv-room[data-l-bed="4"] .m5lv-bed{height:22%;width:28%}.m5lv-room[data-l-bed="9"] .m5lv-bed,.m5lv-room[data-l-bed="10"] .m5lv-bed{width:31%;height:28%}
.m5lv-room[data-l-dresser="1"] .m5lv-dresser{width:13%;height:16%}.m5lv-room[data-l-dresser="2"] .m5lv-dresser,.m5lv-room[data-l-dresser="3"] .m5lv-dresser{width:14%;height:18%}
.m5lv-room[data-l-plant="1"] .m5lv-plant{width:0;height:0;opacity:0}.m5lv-room[data-l-light="1"] .m5lv-light{opacity:.35}.m5lv-room[data-l-toy="1"] .m5lv-toy{opacity:.15}.m5lv-room[data-l-picture="1"] .m5lv-art{opacity:.65}.m5lv-room[data-l-shelf="1"] .m5lv-shelf{opacity:.55}
.m5lv-room[data-l-wall="9"] .m5lv-walls,.m5lv-room[data-l-wall="10"] .m5lv-walls{background:linear-gradient(180deg,#fffaf3,#f5eadc 68%,#f2dfc3)}.m5lv-room[data-l-floor="9"] .m5lv-floor,.m5lv-room[data-l-floor="10"] .m5lv-floor{box-shadow:inset 0 12px 24px rgba(255,255,255,.28)}
@media(max-width:760px){}
@media(max-width:480px){}

/* ===== M5 PETS 3.2.1: Royal Premium, scoped to the new renderer =====
   Only levels 8–10 receive deluxe materials. Earlier progress is retained. */
.m5lv-room--royal321 {
  --m5lv-gilt: #d2a14a;
  --m5lv-gilt-light: #fff0bc;
  --m5lv-velvet: #143e94;
}
.m5lv-room--royal321 .m5lv-royal-furniture {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  opacity:1!important;
  filter:drop-shadow(0 9px 7px rgba(67,41,18,.18));
  z-index:2;
  pointer-events:none;
}
.m5lv-room--royal321 .m5lv-badge{
  background:linear-gradient(135deg,#fff8d5 5%,#ffe38a 32%,#dca83d 72%,#f6d16b 100%);
  filter:drop-shadow(0 2px 2px rgba(122,80,21,.26));
  color:#69420c;
  z-index:8;
  text-shadow:0 1px rgba(255,255,255,.74);
}
/* Architectural materials: the user upgrades wall and floor separately. */
.m5lv-room--royal321[data-l-wall="8"] .m5lv-walls,
.m5lv-room--royal321[data-l-wall="9"] .m5lv-walls,
.m5lv-room--royal321[data-l-wall="10"] .m5lv-walls {
  background:linear-gradient(180deg,#fffbf5 0%,#f9ebdb 68%,#f0d9c0 100%)!important;
  box-shadow:inset 0 20px 42px rgba(255,255,255,.55),inset 0 -9px 18px rgba(178,133,80,.09);
}
.m5lv-room--royal321[data-l-wall="8"] .m5lv-walls:before,
.m5lv-room--royal321[data-l-wall="9"] .m5lv-walls:before,
.m5lv-room--royal321[data-l-wall="10"] .m5lv-walls:before {
  content:"";
  position:absolute;
  inset:2.4% 1.7% 10%;
  background:
     linear-gradient(90deg,transparent 17.8%,rgba(180,118,46,.52) 17.95%,rgba(255,243,205,.65) 18.2%,transparent 18.4%,transparent 49.8%,rgba(180,118,46,.45) 50%,rgba(255,244,209,.7) 50.18%,transparent 50.45%,transparent 80.3%,rgba(180,118,46,.45) 80.5%,rgba(255,244,209,.7) 80.68%,transparent 81%),
     linear-gradient(180deg,transparent 11%,rgba(229,193,128,.35) 11.4%,transparent 12.1%,transparent 87%,rgba(198,148,76,.4) 87.4%,transparent 88%);
  pointer-events:none;
}
.m5lv-room--royal321[data-l-wall="9"] .m5lv-trim,
.m5lv-room--royal321[data-l-wall="10"] .m5lv-trim {
  border:3px solid rgba(204,147,57,.9);
  border-bottom:0;
  box-shadow:0 0 0 1px rgba(255,245,212,.9),inset 0 0 0 2px rgba(255,249,233,.88),inset 0 0 22px rgba(255,220,158,.10);
}
.m5lv-room--royal321[data-l-wall="10"] .m5lv-walls:after {
  content:"";
  position:absolute;
  inset:7% 2.6% auto;
  height:14px;
  opacity:.92;
  background:linear-gradient(180deg,transparent 0%,rgba(255,232,170,.45) 20%,rgba(204,148,56,.52) 30%,rgba(255,248,211,.9) 47%,rgba(185,126,50,.3) 60%,transparent 80%);
  pointer-events:none;
}
.m5lv-room--royal321[data-l-floor="8"] .m5lv-floor,
.m5lv-room--royal321[data-l-floor="9"] .m5lv-floor,
.m5lv-room--royal321[data-l-floor="10"] .m5lv-floor {
  background:linear-gradient(180deg,#f7e7c8,#ddae6a)!important;
  box-shadow:inset 0 11px 22px rgba(255,255,255,.52),inset 0 -15px 16px rgba(163,112,53,.08)!important;
}
.m5lv-room--royal321[data-l-floor="8"] .m5lv-floor:before,
.m5lv-room--royal321[data-l-floor="9"] .m5lv-floor:before,
.m5lv-room--royal321[data-l-floor="10"] .m5lv-floor:before {
  background:
    linear-gradient(115deg,rgba(255,255,255,.34) 0 12%,transparent 26% 80%,rgba(255,255,255,.24)),
    repeating-linear-gradient(125deg,rgba(169,110,37,.23) 0 1px,transparent 1px 50px),
    repeating-linear-gradient(55deg,rgba(185,123,51,.22) 0 1px,transparent 1px 50px),
    linear-gradient(180deg,#f2d9aa 0%,#d4a165 100%)!important;
  opacity:.86;
}
.m5lv-room--royal321[data-l-floor="10"] .m5lv-floor:after{
  background:linear-gradient(180deg,#fff9ea,#c18b4c 75%,#f6d99b)!important;
  box-shadow:0 1px 8px rgba(94,60,27,.14);
  height:9px;
}
/* The premium source image already includes its own mullions and curtains.
   Hide legacy overlaid shapes rather than duplicating them. */
.m5lv-room--royal321[data-l-window="8"] .m5lv-window,
.m5lv-room--royal321[data-l-window="9"] .m5lv-window,
.m5lv-room--royal321[data-l-window="10"] .m5lv-window {
  left:6.8%!important;
  top:4.9%!important;
  width:30.5%!important;
  height:46.5%!important;
  border-radius:52px 52px 17px 17px!important;
  border:4px solid #f6dfae!important;
  box-shadow:0 5px 0 rgba(205,155,78,.85),0 13px 20px rgba(72,55,35,.20),inset 0 0 0 2px #fff9ed!important;
}
.m5lv-room--royal321[data-l-window="8"] .m5lv-window-art,
.m5lv-room--royal321[data-l-window="9"] .m5lv-window-art,
.m5lv-room--royal321[data-l-window="10"] .m5lv-window-art {
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:fill!important;
  object-position:center center!important;
  border-radius:46px 46px 12px 12px!important;
}
.m5lv-room--royal321[data-l-window="8"] .m5lv-window-arch,
.m5lv-room--royal321[data-l-window="9"] .m5lv-window-arch,
.m5lv-room--royal321[data-l-window="10"] .m5lv-window-arch,
.m5lv-room--royal321[data-l-window="8"] .m5lv-curtains,
.m5lv-room--royal321[data-l-window="9"] .m5lv-curtains,
.m5lv-room--royal321[data-l-window="10"] .m5lv-curtains,
.m5lv-room--royal321[data-l-window="8"] .m5lv-window-sill,
.m5lv-room--royal321[data-l-window="9"] .m5lv-window-sill,
.m5lv-room--royal321[data-l-window="10"] .m5lv-window-sill {
  display:none!important;
}
.m5lv-room--royal321[data-l-window="10"] .m5lv-window {
  border-color:#e1ba65!important;
  box-shadow:0 6px 0 #c99642,0 15px 22px rgba(72,55,35,.22),0 0 0 2px rgba(255,248,224,.88)!important;
}
/* High level luxury furniture sprites replace flat silhouettes, leaving badges untouched. */
.m5lv-room--royal321[data-l-bed="8"] .m5lv-bed,
.m5lv-room--royal321[data-l-bed="9"] .m5lv-bed,
.m5lv-room--royal321[data-l-bed="10"] .m5lv-bed{
  left:3%!important;
  bottom:9%!important;
  width:35%!important;
  height:31%!important;
  filter:drop-shadow(0 11px 11px rgba(64,45,29,.16));
}
.m5lv-room--royal321[data-l-bed="8"] .m5lv-bed>span:not(.m5lv-badge),
.m5lv-room--royal321[data-l-bed="9"] .m5lv-bed>span:not(.m5lv-badge),
.m5lv-room--royal321[data-l-bed="10"] .m5lv-bed>span:not(.m5lv-badge){display:none!important}
.m5lv-room--royal321[data-l-dresser="8"] .m5lv-dresser,
.m5lv-room--royal321[data-l-dresser="9"] .m5lv-dresser,
.m5lv-room--royal321[data-l-dresser="10"] .m5lv-dresser {
  right:7.5%!important;
  bottom:12%!important;
  width:16.6%!important;
  height:22.5%!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.m5lv-room--royal321[data-l-dresser="8"] .m5lv-dresser:before,
.m5lv-room--royal321[data-l-dresser="9"] .m5lv-dresser:before,
.m5lv-room--royal321[data-l-dresser="10"] .m5lv-dresser:before,
.m5lv-room--royal321[data-l-dresser="8"] .m5lv-drawer,
.m5lv-room--royal321[data-l-dresser="9"] .m5lv-drawer,
.m5lv-room--royal321[data-l-dresser="10"] .m5lv-drawer{display:none!important}
.m5lv-room--royal321[data-l-shelf="8"] .m5lv-shelf,
.m5lv-room--royal321[data-l-shelf="9"] .m5lv-shelf,
.m5lv-room--royal321[data-l-shelf="10"] .m5lv-shelf{
  right:14.5%!important;
  top:11%!important;
  width:20%!important;
  height:18%!important;
}
.m5lv-room--royal321[data-l-shelf="8"] .m5lv-shelf>span:not(.m5lv-badge),
.m5lv-room--royal321[data-l-shelf="9"] .m5lv-shelf>span:not(.m5lv-badge),
.m5lv-room--royal321[data-l-shelf="10"] .m5lv-shelf>span:not(.m5lv-badge){display:none!important}
.m5lv-room--royal321[data-l-plant="8"] .m5lv-plant,
.m5lv-room--royal321[data-l-plant="9"] .m5lv-plant,
.m5lv-room--royal321[data-l-plant="10"] .m5lv-plant {
  right:.6%!important;
  bottom:9%!important;
  width:11%!important;
  height:25%!important;
}
.m5lv-room--royal321[data-l-plant="8"] .m5lv-plant>span:not(.m5lv-badge),
.m5lv-room--royal321[data-l-plant="9"] .m5lv-plant>span:not(.m5lv-badge),
.m5lv-room--royal321[data-l-plant="10"] .m5lv-plant>span:not(.m5lv-badge){display:none!important}
.m5lv-room--royal321[data-l-rug="8"] .m5lv-rug,
.m5lv-room--royal321[data-l-rug="9"] .m5lv-rug,
.m5lv-room--royal321[data-l-rug="10"] .m5lv-rug {
  left:29%!important;
  width:45%!important;
  height:17%!important;
  bottom:9%!important;
  background:
    radial-gradient(ellipse at center,#fffcf2 0 47%,#f3e7c9 48% 58%,#e6d2a0 59% 65%,#fdf9e7 66% 69%,#3565b3 70% 76%,#f9e9bb 77% 79%,transparent 81%)!important;
  filter:drop-shadow(0 8px 9px rgba(83,70,51,.18));
}
.m5lv-room--royal321[data-l-art="10"] .m5lv-art,
.m5lv-room--royal321[data-l-picture="10"] .m5lv-art {
  box-shadow:0 2px 0 2px rgba(236,195,109,.6),0 8px 15px rgba(99,64,25,.23);
}
.m5lv-room--royal321[data-l-picture="10"] .m5lv-art-frame{
  border:9px ridge #e5bb65;
  box-shadow:inset 0 0 0 2px rgba(255,251,225,.84),0 0 0 2px rgba(177,125,38,.25);
}
.m5lv-room--royal321[data-l-light="8"] .m5lv-light-disc,
.m5lv-room--royal321[data-l-light="9"] .m5lv-light-disc,
.m5lv-room--royal321[data-l-light="10"] .m5lv-light-disc{
  box-shadow:0 0 0 3px rgba(212,165,70,.35),0 0 28px rgba(255,219,123,.68),0 0 55px rgba(255,236,161,.38)!important;
}
.m5lv-room--royal321[data-l-light="10"] .m5lv-lightbeams{
  background:radial-gradient(ellipse at 87% 24%,rgba(255,226,150,.40) 0,rgba(255,245,207,.17) 24%,transparent 47%),radial-gradient(circle at 22% 8%,rgba(255,255,255,.39),transparent 30%);
  opacity:1;
}
/* Float clearances: furniture occupies separate horizontal zones. */
.m5lv-room--royal321 .m5lv-pet{left:44%!important;width:28%!important;bottom:10%!important;height:51%!important;z-index:6}
.m5lv-room--royal321 .m5lv-crown{left:53%;top:0}
.m5lv-room--royal321 .m5lv-ornament{right:16%!important;bottom:31%!important;width:4.6%!important;height:7%!important;z-index:5}
.m5lv-room--royal321 .m5lv-toy{right:2%!important;bottom:3%!important;width:7%!important;height:9%!important;z-index:7}
.m5lv-room--royal321 .m5lv-badge-wear{top:18%;left:82%;z-index:12;transform:none}
@media (max-width:760px){
 
 
 
 
 
}

/* Royal 3.2.1 finishing pass: remove duplicate legacy frames and align crowns. */
.m5lv-room--royal321 .m5lv-art {
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
}
.m5lv-room--royal321[data-l-picture="10"] .m5lv-art {
  box-shadow:none!important;
}
.m5lv-room--royal321 .m5lv-art-frame,
.m5lv-room--royal321 .m5lv-art-canvas{position:absolute!important}
.m5lv-room--royal321[data-kind="dog"] .m5lv-crown{top:15%!important;left:61%!important}
.m5lv-room--royal321[data-kind="cat"] .m5lv-crown{top:14%!important;left:59%!important}
.m5lv-room--royal321[data-kind="panda"] .m5lv-crown{top:5%!important;left:56%!important}
@media(max-width:630px){
  .m5p-scene:has(.m5lv-room--royal321){min-height:0!important}
  .m5p-scene-inner:has(.m5lv-room--royal321){min-height:0!important;height:auto!important}
  
  
  
  
  
}


/* ===== M5 PETS 3.2.2 — crown lift + richer royal premium pass ===== */
.m5lv-room--royal321{
  background:linear-gradient(180deg,#fffdf8 0%,#f9f0e4 46%,#eed8b7 46.5%,#d7b180 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.94),0 16px 34px rgba(61,46,26,.15)!important;
}
.m5lv-room--royal321::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,241,196,.28),transparent 22%),
    radial-gradient(circle at 18% 11%,rgba(255,255,255,.26),transparent 18%),
    linear-gradient(180deg,rgba(255,255,255,.10),transparent 38%,rgba(170,121,58,.05) 100%);
  z-index:0;
}
.m5lv-room--royal321 .m5lv-walls{
  background:linear-gradient(180deg,#fffdf9 0%,#f7ecdf 48%,#f2e4d3 100%)!important;
}
.m5lv-room--royal321 .m5lv-walls:before{
  background:
    linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0) 42%),
    repeating-linear-gradient(90deg,transparent 0 11.7%,rgba(214,183,137,.28) 11.7% 12.1%,transparent 12.1% 49.7%,rgba(214,183,137,.26) 49.7% 50.1%,transparent 50.1% 87.1%,rgba(214,183,137,.24) 87.1% 87.5%,transparent 87.5% 100%);
}
.m5lv-room--royal321 .m5lv-trim{
  border-width:3px!important;
  border-color:rgba(213,160,73,.92)!important;
  box-shadow:0 0 0 1px rgba(255,249,229,.95),inset 0 0 0 2px rgba(255,252,242,.82),inset 0 0 22px rgba(255,214,151,.14)!important;
}
.m5lv-room--royal321 .m5lv-floor{
  background:linear-gradient(180deg,#f7e6cb 0%,#dcb17e 100%)!important;
}
.m5lv-room--royal321 .m5lv-floor:before{
  background:
    linear-gradient(115deg,rgba(255,255,255,.34) 0 11%,transparent 20% 80%,rgba(255,255,255,.18)),
    repeating-linear-gradient(90deg,#edd7b4 0 11.6%,#c99656 11.6% 12%,#f8ebd3 12% 23.7%,#d7ac73 23.7% 24.1%)!important;
  opacity:.92!important;
}
.m5lv-room--royal321 .m5lv-floor:after{height:7px!important;background:linear-gradient(180deg,#fff9ec,#c59152 75%,#f0cb8e)!important;box-shadow:0 2px 8px rgba(125,82,35,.14)!important}
.m5lv-room--royal321 .m5lv-window{
  box-shadow:0 6px 0 rgba(205,155,78,.9),0 18px 28px rgba(72,55,35,.20),0 0 0 2px rgba(255,248,224,.88)!important;
}
.m5lv-room--royal321 .m5lv-art-frame{
  border-color:#d6a24f!important;
  box-shadow:0 10px 20px rgba(84,61,37,.18),inset 0 0 0 2px rgba(253,242,220,.88),0 0 0 1px rgba(196,145,63,.22)!important;
}
.m5lv-room--royal321 .m5lv-shelf,
.m5lv-room--royal321 .m5lv-dresser,
.m5lv-room--royal321 .m5lv-bed,
.m5lv-room--royal321 .m5lv-plant{
  filter:drop-shadow(0 10px 14px rgba(60,44,29,.14));
}
.m5lv-room--royal321 .m5lv-light-disc{box-shadow:0 0 0 4px rgba(214,171,78,.35),0 0 32px rgba(255,230,147,.72),0 0 64px rgba(255,238,178,.42)!important}
.m5lv-room--royal321 .m5lv-lightbeams{background:radial-gradient(ellipse at 87% 22%,rgba(255,227,146,.44) 0,rgba(255,245,209,.20) 26%,transparent 50%),radial-gradient(circle at 20% 8%,rgba(255,255,255,.32),transparent 27%)}
.m5lv-room--royal321 .m5lv-rug{filter:drop-shadow(0 10px 12px rgba(86,71,49,.19))!important}
.m5lv-room--royal321 .m5lv-pet{filter:drop-shadow(0 22px 18px rgba(25,34,49,.20))!important}
.m5lv-room--royal321 .m5lv-crown{
  top:-9%!important;
  left:56%!important;
  transform:translateX(-50%) rotate(-2deg)!important;
  font-size:34px!important;
  filter:drop-shadow(0 4px 0 rgba(162,111,30,.22)) drop-shadow(0 9px 10px rgba(255,215,120,.28));
}
.m5lv-room--royal321[data-kind="dog"] .m5lv-crown{top:-10%!important;left:56.5%!important}
.m5lv-room--royal321[data-kind="cat"] .m5lv-crown{top:-10.5%!important;left:54.5%!important}
.m5lv-room--royal321[data-kind="panda"] .m5lv-crown{top:-9.5%!important;left:53.8%!important}
.m5lv-room--royal321 .m5lv-badge-wear{top:13%!important;left:83%!important}
@media(max-width:760px){
  
  
  
  
}

/* ===== M5 PETS 3.2.3 — True Premium Crown & Royal Decor ===== */
.m5lv-room--royal323 .m5lv-crown--art {
 position:absolute!important; display:block!important; content:none!important;
 width:31%!important; height:17%!important; max-width:none!important;
 left:57%!important; top:8%!important;
 transform:translateX(-50%) rotate(-5deg)!important;
 background-image:url("img/house/crown-royal.svg")!important;
 background-repeat:no-repeat!important; background-size:100% 100%!important;
 background-position:center center!important;
 font-size:0!important; z-index:7!important;
 filter:drop-shadow(0 5px 4px rgba(83,55,15,.27))!important;
 pointer-events:none!important;
}
.m5lv-room--royal323[data-kind="dog"] .m5lv-crown--art{left:56.5%!important;top:8%!important;width:31%!important}
.m5lv-room--royal323[data-kind="cat"] .m5lv-crown--art{left:54%!important;top:3%!important;width:30%!important}
.m5lv-room--royal323[data-kind="panda"] .m5lv-crown--art{left:53.5%!important;top:6%!important;width:30%!important}
/* Wall relief is a decorative layer and never changes furniture positions. */
.m5lv-room--royal323[data-l-wall="8"] .m5lv-walls,
.m5lv-room--royal323[data-l-wall="9"] .m5lv-walls,
.m5lv-room--royal323[data-l-wall="10"] .m5lv-walls {
 background:linear-gradient(180deg,#fffdf7 0%,#f6ebdf 72%,#efe0d1 100%)!important;
}
.m5lv-room--royal323[data-l-wall="8"] .m5lv-walls::after,
.m5lv-room--royal323[data-l-wall="9"] .m5lv-walls::after,
.m5lv-room--royal323[data-l-wall="10"] .m5lv-walls::after {
 content:"";position:absolute;inset:0 0 2%;border:0;pointer-events:none;
 background:url("img/house/royal-wall-relief.svg") center/100% 100% no-repeat!important;
 opacity:.35;z-index:1;
}
.m5lv-room--royal323[data-l-wall="9"] .m5lv-walls::after {opacity:.55!important}
.m5lv-room--royal323[data-l-wall="10"] .m5lv-walls::after {opacity:.78!important}
/* Royal tier 8 = warm gilt, 9 = bright ivory and brass, 10 = full gilded finish. */
.m5lv-room--royal323[data-l-bed="8"] .m5lv-bed,
.m5lv-room--royal323[data-l-bed="9"] .m5lv-bed,
.m5lv-room--royal323[data-l-bed="10"] .m5lv-bed{
 filter:drop-shadow(0 13px 14px rgba(43,36,47,.22))!important;
}
.m5lv-room--royal323[data-l-bed="10"] .m5lv-bed{
 filter:drop-shadow(0 16px 17px rgba(59,40,25,.26))!important;
}
.m5lv-room--royal323[data-l-floor="8"] .m5lv-floor,
.m5lv-room--royal323[data-l-floor="9"] .m5lv-floor,
.m5lv-room--royal323[data-l-floor="10"] .m5lv-floor{
 background:linear-gradient(180deg,#faefd9 0%,#e8c893 42%,#d6ac72 100%)!important;
}
.m5lv-room--royal323[data-l-floor="10"] .m5lv-floor{
 background:linear-gradient(180deg,#fff0d6 0%,#e8c68d 38%,#cfa16b 100%)!important;
 box-shadow:inset 0 12px 24px rgba(255,255,255,.48),inset 0 -14px 25px rgba(124,88,53,.10)!important;
}
.m5lv-room--royal323[data-l-rug="9"] .m5lv-rug,
.m5lv-room--royal323[data-l-rug="10"] .m5lv-rug{
 background:radial-gradient(ellipse at center,#fffdf3 0 43%,#e8d2a0 44% 55%,#fff9e9 56% 64%,#d0a34f 65% 67%,#1d4d95 68% 74%,#f9e7b7 75% 78%,transparent 80%)!important;
}
.m5lv-room--royal323[data-l-rug="10"] .m5lv-rug{filter:drop-shadow(0 10px 10px rgba(95,68,37,.2))!important}
.m5lv-room--royal323[data-l-picture="10"] .m5lv-art-frame{
 border-color:#f3d590!important;
 outline:2px solid #b57c29!important;
 outline-offset:1px;
}
.m5lv-room--royal323[data-l-light="9"] .m5lv-light-disc,
.m5lv-room--royal323[data-l-light="10"] .m5lv-light-disc{
 box-shadow:0 0 0 3px rgba(210,165,75,.32),0 0 24px rgba(255,219,129,.66),0 0 56px rgba(255,237,188,.36)!important;
}
.m5lv-room--royal323[data-l-light="10"] .m5lv-light-disc{
 box-shadow:0 0 0 4px rgba(202,149,55,.40),0 0 32px rgba(255,215,107,.76),0 0 70px rgba(255,232,157,.4)!important;
}
.m5lv-room--royal323[data-l-dresser="10"] .m5lv-dresser,
.m5lv-room--royal323[data-l-plant="10"] .m5lv-plant,
.m5lv-room--royal323[data-l-shelf="10"] .m5lv-shelf{
 filter:drop-shadow(0 12px 14px rgba(72,49,25,.18))!important;
}
@media(max-width:760px){
 
 
 
 
}


/* ===== M5 PETS 3.2.4 | Premium finish & crown level anchor ===== */
.m5lv-room--royal323 .m5lv-badge-wear {
  position:absolute!important;
  top:0%!important;
  left:73%!important;
  right:auto!important;
  transform:none!important;
  z-index:12!important;
  filter:drop-shadow(0 2px 5px rgba(106,67,16,.22));
}
.m5lv-room--royal323 .m5lv-crown--art {
  filter:drop-shadow(0 2px 1px rgba(255,249,206,.95)) drop-shadow(0 5px 4px rgba(95,62,18,.23))!important;
}
.m5lv-room--royal323[data-l-wall="10"] .m5lv-trim {
  box-shadow:0 0 0 1px rgba(255,248,226,.97),inset 0 0 0 2px rgba(255,253,244,.94),0 2px 14px rgba(209,151,58,.25)!important;
}
.m5lv-room--royal323[data-l-floor="10"] .m5lv-floor:before {
  background:linear-gradient(135deg,rgba(255,255,255,.26),transparent 38%),
    repeating-linear-gradient(90deg,#f0dab4 0 11.5%,#cb9e65 11.5% 12%,#f8e8c8 12% 23.5%,#e0b47e 23.5% 24%)!important;
}
.m5lv-room--royal323[data-l-window="10"] .m5lv-window {filter:drop-shadow(0 7px 13px rgba(76,55,29,.18))}
.m5lv-room--royal323[data-l-light="10"] .m5lv-light-disc {box-shadow:0 0 0 3px rgba(255,211,109,.55),0 0 32px rgba(255,223,136,.75),0 0 70px rgba(255,239,196,.5)!important}
.m5p-transfer-invite,.m5p-transfer-panel {border:1px solid #e5c47c!important;background:linear-gradient(125deg,#fffdf5,#fff5dd)!important;box-shadow:0 6px 18px rgba(119,78,22,.06)}
.m5p-transfer-panel>b {color:#76501d}
@media(max-width:760px){}
/* Crown position measured against transparent margins of 3D pet sprites.
   The actual head begins below the top of the image's containing box. */
.m5lv-room--royal323 .m5lv-crown--art {
  width:26%!important;
  height:15%!important;
  left:63%!important;
  top:25%!important;
  transform:translateX(-50%) rotate(-5deg)!important;
}
.m5lv-room--royal323[data-kind="dog"] .m5lv-crown--art {top:25%!important;left:63%!important}
.m5lv-room--royal323[data-kind="cat"] .m5lv-crown--art {top:25%!important;left:56%!important}
.m5lv-room--royal323[data-kind="panda"] .m5lv-crown--art {top:24%!important;left:54%!important}
.m5lv-room--royal323 .m5lv-badge-wear{left:77%!important;top:23%!important}
@media(max-width:760px){
  
  
  
  
  
}

/* M5 PETS 3.2.5 — memorial archive, clear transfer consent, anchored crown */
.m5p-transfer-critical{border:2px solid #d65a4b;background:#fff0ee;padding:13px 15px;border-radius:12px;color:#8c3027;font-weight:600;line-height:1.5}
.m5p-rainbow-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:20px 0}
.m5p-rainbow-card{border:1px solid #dfd1f5;border-radius:20px;background:linear-gradient(145deg,#fffdf9 0%,#f4efff 100%);box-shadow:0 8px 24px rgba(96,70,129,.12);overflow:hidden;display:flex;flex-direction:column}
.m5p-rainbow-image{background:linear-gradient(140deg,#fdf4ff,#dfefff);padding:18px;display:flex;align-items:center;justify-content:center;height:170px}
.m5p-rainbow-image img{height:140px;max-width:100%;width:auto;object-fit:contain;border-radius:16px}
.m5p-rainbow-info{padding:18px 20px;color:#2e355a}
.m5p-rainbow-info small{color:#745b9d;font-weight:700}
.m5p-rainbow-info h3{font-size:24px;margin:6px 0 10px;color:#19446b}
.m5p-rainbow-info p{margin:5px 0;font-size:14px}
.m5p-rainbow-revive{margin-top:13px!important;color:#9b3f7f;font-weight:700}
.m5p-rainbow-empty{padding:32px 22px;text-align:center;border:1px dashed #c8a7ec;background:linear-gradient(120deg,#fff9f5,#f3edff);border-radius:18px;color:#66508a}
.m5p-rainbow-adopt{margin:14px 0}.m5p-rainbow-adopt [hidden]{display:none!important}
.m5lv-room--royal323 .m5lv-pet{overflow:visible!important}
.m5lv-room--royal323 .m5lv-pet .m5lv-crown--art{position:absolute!important;top:-9%!important;left:62%!important;width:26%!important;height:15%!important;transform:translateX(-50%) rotate(-5deg)!important;z-index:11!important;pointer-events:none!important}
.m5lv-room--royal323[data-kind="dog"] .m5lv-pet .m5lv-crown--art{top:-9%!important;left:62%!important}
.m5lv-room--royal323[data-kind="cat"] .m5lv-pet .m5lv-crown--art{top:-10%!important;left:56%!important}
.m5lv-room--royal323[data-kind="panda"] .m5lv-pet .m5lv-crown--art{top:-10%!important;left:55%!important}
.m5lv-room--royal323 .m5lv-pet .m5lv-badge-wear{top:-8%!important;left:87%!important;transform:none!important}
@media(max-width:760px){}

/* Final crown anchor: base rests above the visible ears, not on the muzzle. */
.m5lv-room--royal323[data-kind="dog"] .m5lv-pet .m5lv-crown--art{top:-19%!important;left:62%!important;width:27%!important;height:15%!important}
.m5lv-room--royal323[data-kind="cat"] .m5lv-pet .m5lv-crown--art{top:-19%!important;left:56%!important;width:27%!important;height:15%!important}
.m5lv-room--royal323[data-kind="panda"] .m5lv-pet .m5lv-crown--art{top:-18%!important;left:55%!important;width:27%!important;height:15%!important}
.m5lv-room--royal323 .m5lv-pet .m5lv-badge-wear{left:85%!important;top:-11%!important}
@media(max-width:760px){
 
 
 
 
}

/* Refined visual calibration against the visible head (not the transparent image bounds). */
.m5lv-room--royal323[data-kind="dog"] .m5lv-pet .m5lv-crown--art{top:-7%!important;left:62%!important}
.m5lv-room--royal323[data-kind="cat"] .m5lv-pet .m5lv-crown--art{top:-8%!important;left:56%!important}
.m5lv-room--royal323[data-kind="panda"] .m5lv-pet .m5lv-crown--art{top:-7%!important;left:55%!important}
@media(max-width:760px){
 
 
 
}


/* M5 PETS 3.2.6 — separated Rainbow Bridge scene and verified premium details. */
.m5p[data-current-tab="rainbow"] .m5p-dashboard{grid-template-columns:minmax(0,1fr)!important}
.m5p[data-current-tab="rainbow"] .m5p-dashboard .m5p-stats{display:none!important}
.m5p .m5p-scene-inner.m5p-scene-rainbow{background:#f3eafa!important;min-height:0!important;height:auto!important}
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-world{
 background:#e9e2ff url('img/rainbow-bridge.webp') center center/cover no-repeat!important;
 height:auto!important;aspect-ratio:16/9!important;min-height:320px!important;
 animation:none!important;box-shadow:none!important;
}
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-world:before,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-world:after,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-ground,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-light,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-v23-parallax,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-v23-decor,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-props,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-v24-shadow,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-animated-pet,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-v24-foreground,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-fx,
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-pet-pat,
.m5p .m5p-scene-inner.m5p-scene-rainbow #m5p-house-scene-layer,
.m5p .m5p-scene-inner.m5p-scene-rainbow #m5p-scene-speech,
.m5p .m5p-scene-inner.m5p-scene-rainbow #m5p-level-label{
 display:none!important;
}
.m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-top{z-index:10!important}
.m5p .m5p-scene-inner.m5p-scene-rainbow #m5p-scene-label{
 color:#754079!important;background:rgba(255,255,255,.94)!important;
 box-shadow:0 6px 20px rgba(68,45,109,.15)!important;
}
.m5p .m5p-rainbow-adopt-hero{max-width:100%;margin:14px 0 20px;overflow:hidden;border-radius:19px;border:3px solid #fff;box-shadow:0 9px 24px rgba(83,55,112,.16)}
.m5p .m5p-rainbow-adopt-hero img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover;}
@media(max-width:700px){
 .m5p .m5p-scene-inner.m5p-scene-rainbow .m5p-scene-world{min-height:220px!important;height:auto!important;aspect-ratio:16/9!important}
 .m5p .m5p-scene-inner.m5p-scene-rainbow{min-height:0!important}
 .m5p[data-current-tab="rainbow"] .m5p-scene{min-height:0!important}
}
/* Shared anchor for the premium crown and its level star: responsive and species-specific. */
.m5lv-room--royal323 .m5lv-pet{overflow:visible!important}
.m5lv-room--royal323 .m5lv-pet .m5lv-royal-headgear{
 position:absolute!important;top:-2%!important;left:53%!important;
 width:38%!important;height:20%!important;z-index:20!important;
 transform:translateX(-50%)!important;pointer-events:none!important;
}
.m5lv-room--royal323[data-kind="dog"] .m5lv-pet .m5lv-royal-headgear{left:59%!important;top:0%!important}
.m5lv-room--royal323[data-kind="cat"] .m5lv-pet .m5lv-royal-headgear{left:54%!important;top:-1%!important}
.m5lv-room--royal323[data-kind="panda"] .m5lv-pet .m5lv-royal-headgear{left:54%!important;top:0%!important}
.m5lv-room--royal323 .m5lv-pet .m5lv-royal-headgear .m5lv-crown--art{
 position:absolute!important;left:3%!important;top:0!important;
 display:block!important;width:75%!important;height:88%!important;
 transform:rotate(-5deg)!important;z-index:2!important;
 background-size:contain!important;background-position:center center!important;
}
.m5lv-room--royal323 .m5lv-pet .m5lv-royal-headgear .m5lv-badge-wear{
 position:absolute!important;top:0!important;left:67%!important;
 transform:none!important;width:31px!important;height:31px!important;
 line-height:1!important;font-size:12px!important;z-index:3!important;
}
/* Dresser: one visible layer per tier, no duplicate drawers or overlapping graphics. */
.m5lv-room--royal323 .m5lv-dresser{
 right:8.5%!important;bottom:12.5%!important;width:17.5%!important;height:24%!important;
 border-radius:10px!important;z-index:4!important;overflow:visible!important;
}
.m5lv-room--royal323 .m5lv-dresser .m5lv-royal-furniture{
 position:absolute!important;left:0!important;top:0!important;
 display:block!important;width:100%!important;height:100%!important;
 object-fit:contain!important;object-position:center bottom!important;
 max-width:none!important;max-height:none!important;
}
.m5lv-room--royal323[data-l-dresser="8"] .m5lv-dresser,
.m5lv-room--royal323[data-l-dresser="9"] .m5lv-dresser,
.m5lv-room--royal323[data-l-dresser="10"] .m5lv-dresser{
 background:transparent!important;box-shadow:none!important;border:0!important;
}
.m5lv-room--royal323[data-l-dresser="8"] .m5lv-dresser>span:not(.m5lv-badge),
.m5lv-room--royal323[data-l-dresser="9"] .m5lv-dresser>span:not(.m5lv-badge),
.m5lv-room--royal323[data-l-dresser="10"] .m5lv-dresser>span:not(.m5lv-badge){display:none!important}
.m5lv-room--royal323 .m5lv-ornament{right:15%!important;bottom:35%!important;z-index:5!important}
.m5lv-room--royal323 .m5lv-plant{right:1%!important;bottom:10%!important;z-index:5!important}
@media(max-width:760px){
 
 
 
}
/* Maintain the exact same house composition on desktop and mobile; prevent old scene showing below it. */
.m5p .m5p-scene:has(.m5p-scene-inner.m5p-house-active){min-height:0!important}
.m5p .m5p-scene-inner.m5p-house-active{height:auto!important;min-height:0!important}
.m5p .m5p-scene-inner.m5p-house-active .m5p-scene-world{height:auto!important;min-height:0!important;aspect-ratio:16/9!important;overflow:hidden!important}
.m5p .m5p-scene-inner.m5p-house-active [data-m5p-house-scene]{position:absolute!important;inset:0!important;overflow:hidden!important}
.m5p .m5p-scene-inner.m5p-house-active .m5lv-room{height:100%!important;min-height:0!important;width:100%!important;aspect-ratio:16/9!important}

/* M5 PETS 3.2.7 — misje dzienne w Mój pupil i uproszczona nawigacja */
.m5p .m5p-daily-missions--home{margin-top:20px;padding:18px;border:1px solid #c9def3;border-radius:19px;background:linear-gradient(145deg,#f7fbff,#ffffff 65%,#fffaf0);box-shadow:0 5px 16px rgba(31,87,148,.06)}
.m5p .m5p-daily-missions--home .m5p-titleline{margin:0 0 14px}
.m5p .m5p-daily-missions--home .m5p-titleline h2{font-size:21px}
.m5p .m5p-daily-missions--home .m5p-missions-list{margin:13px 0}
.m5p .m5p-daily-missions--home .m5p-mission-bonus{margin-top:12px}
.m5p .m5p-home-actions{margin-top:19px;gap:10px;align-items:center}
@media(max-width:630px){.m5p .m5p-daily-missions--home{padding:12px}.m5p .m5p-home-actions .m5p-button{flex:1 1 140px}}

/* M5 PETS 3.2.8 — publiczne informacje o grze */
.m5p .m5p-guest-about{margin:24px auto 4px;max-width:1180px;text-align:left;padding:20px;border:1px solid #c9def3;border-radius:17px;background:linear-gradient(135deg,#fff,#f0f7ff);box-shadow:0 8px 22px rgba(25,78,135,.07)}
.m5p .m5p-guest-about h3{color:#10538c;margin:0 0 9px;font-size:22px;font-weight:900;text-align:center}
.m5p .m5p-guest-about p{max-width:930px;margin:0 auto 16px;color:#315c7f;line-height:1.6;font-size:14px}
.m5p .m5p-guest-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.m5p .m5p-guest-gallery figure{margin:0;background:#fff;border:1px solid #d1e5f7;border-radius:13px;overflow:hidden;box-shadow:0 5px 12px rgba(30,71,110,.09)}
.m5p .m5p-guest-gallery img{width:100%;height:140px;display:block;object-fit:cover}
.m5p .m5p-guest-gallery figcaption{text-align:center;padding:9px;color:#145a99;font-weight:800;font-size:12px}
.m5p .m5p-guest-about .m5p-guest-about-foot{margin:12px auto 0;text-align:center;font-size:12px}
@media(max-width:700px){.m5p .m5p-guest-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.m5p .m5p-guest-gallery img{height:120px}}

/* M5 PETS 3.2.8 — distinct hydration meter and needs guidance. */
.m5p-meter[data-key="thirst"] .m5p-meter-fill{background:linear-gradient(90deg,#43dcf0,#1389d8)}
.m5p-water-alert{border:1px solid #9cd7fb;background:linear-gradient(125deg,#e9fbff,#edf5ff);color:#145c87;padding:14px 17px;border-radius:14px;margin:0 0 14px;line-height:1.55;font-weight:700}
.m5p-water-alert .m5p-button{margin:5px 3px 2px}


/* M5 PETS 3.2.11 — Amulety Doświadczenia (responsive, no conflicts with ordinary shop) */
#m5p .m5p-amulet-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 15px;padding:20px 22px;border-radius:20px;background:linear-gradient(120deg,#112646,#17335d 60%,#263b6c);border:1px solid rgba(234,190,94,.55);color:#fff;box-shadow:0 9px 28px #0e284522}
#m5p .m5p-amulet-header h3{font-size:1.35rem;letter-spacing:.01em;color:#fff;margin:3px 0 6px}
#m5p .m5p-amulet-header p{font-size:.92rem;line-height:1.6;color:#e3eaf5;margin:0;max-width:660px}
#m5p .m5p-amulet-eyebrow{font-size:.73rem;font-weight:800;letter-spacing:.12em;color:#ffd68a}
#m5p .m5p-amulet-current{flex-shrink:0;text-align:center;border:1px solid #dfb464a6;background:#ffffff12;border-radius:17px;padding:12px 18px;font-size:.73rem;font-weight:800;letter-spacing:.08em;color:#ffdb93}
#m5p .m5p-amulet-current strong{font-size:2.2rem;line-height:1.3;color:#fff;display:block}
#m5p .m5p-amulets-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 24px}
#m5p .m5p-product.m5p-amulet{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:272px;padding:17px 16px;border:1px solid #d6d8ed;border-radius:17px;background:linear-gradient(165deg,#fff 15%,#f4f4fc 90%);box-shadow:0 5px 17px #1d29500b;overflow:hidden;min-width:0}
#m5p .m5p-product.m5p-amulet:before{content:'';position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#886dbf,#e5b763,#819de3)}
#m5p .m5p-amulet-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:16px;font-size:31px;background:radial-gradient(circle at 30% 28%,#f8e6bd,#d0b9e9 57%,#859fdb);border:1px solid #fff8;box-shadow:0 4px 12px #3230541e;margin:2px 0}
#m5p .m5p-amulet-level{font-size:.69rem;letter-spacing:.06em;font-weight:800;color:#67588f;white-space:normal}
#m5p .m5p-amulet strong{font-size:.96rem;line-height:1.3;overflow-wrap:anywhere;color:#1e2e4e}
#m5p .m5p-amulet .m5p-amulet-bonus{font-size:1.65rem;font-weight:900;color:#7a53bd;letter-spacing:-.02em}
#m5p .m5p-amulet .m5p-product-description{margin:1px 0 4px;font-size:.82rem;line-height:1.5;color:#52607a;flex:1}
#m5p .m5p-amulet-price{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px;font-size:.79rem;font-weight:800;color:#6e5889;margin:4px 0 6px}
#m5p .m5p-amulet .m5p-button{width:100%;min-height:40px}
#m5p .m5p-amulet-locked{filter:saturate(.55);background:#f4f5f8!important}
#m5p .m5p-amulet-owned{border-color:#b6cdb5!important;background:linear-gradient(155deg,#fff,#f1faf3)!important}
#m5p .m5p-amulet-active{border-color:#d4af5f!important;box-shadow:0 0 0 2px #ffe6aa55,0 8px 25px #34223820!important}
#m5p .m5p-amulet-owned-note{font-size:.79rem;font-weight:700;color:#28734a;padding:8px 10px;border-radius:9px;background:#e8f8ec}
#m5p .m5p-amulet-ribbon{margin:20px 0 14px;color:#4f3887;font-weight:800;font-size:1.04rem}
#m5p .m5p-xp-guide-note{padding:12px 14px;border:1px solid #d1b6ef;background:#f8f3ff;border-radius:12px;margin-bottom:12px}
#m5p .m5p-xp-guide-note b{color:#5b3994}
#m5p .m5p-xp-guide-note p{font-size:.86rem;margin:5px 0 0;line-height:1.5;color:#4d4b62}
@media(max-width:880px){#m5p .m5p-amulets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){#m5p .m5p-amulets-grid{grid-template-columns:1fr}#m5p .m5p-amulet-header{align-items:stretch;flex-direction:column;padding:16px}#m5p .m5p-amulet-current{align-self:stretch}#m5p .m5p-product.m5p-amulet{min-height:0}}

/* M5 PETS 3.2.12 — one premium dresser per level, with no PNG cut-off. */
.m5lv-room--royal323[data-l-dresser="8"] .m5lv-dresser,
.m5lv-room--royal323[data-l-dresser="9"] .m5lv-dresser,
.m5lv-room--royal323[data-l-dresser="10"] .m5lv-dresser {
 right:7.1%!important; bottom:10.5%!important;
 width:21%!important;height:31%!important;
 background:none!important; border:0!important;
 border-radius:0!important; box-shadow:none!important;
 overflow:visible!important; z-index:5!important;
 filter:drop-shadow(0 7px 6px rgba(83,61,39,.16))!important;
}
.m5lv-room--royal323 .m5lv-dresser .m5lv-dresser-illustration {
 position:absolute!important;inset:0!important;display:block!important;
 width:100%!important;height:100%!important;min-height:0!important;
 object-fit:fill!important;object-position:center bottom!important;
 max-width:none!important;max-height:none!important;
 margin:0!important;padding:0!important;opacity:1!important;
 border:0!important;border-radius:0!important; box-shadow:none!important;
 z-index:1!important;pointer-events:none!important;
}
.m5lv-room--royal323[data-l-dresser="10"] .m5lv-dresser{
 filter:drop-shadow(0 9px 8px rgba(112,78,23,.24))!important;
}
.m5lv-room--royal323 .m5lv-dresser>.m5lv-badge{
 display:flex!important;position:absolute!important;right:0!important;top:-9%!important;
 z-index:15!important;transform:translate(25%,-10%)!important;
}
/* Polished details and stable furnishings on 16:9 mobile scenes. */
.m5lv-room--royal323 .m5lv-ornament{filter:drop-shadow(0 4px 3px rgba(80,59,31,.20))}
.m5lv-room--royal323 .m5lv-art-frame{filter:drop-shadow(0 4px 5px rgba(85,64,31,.16))}
.m5lv-room--royal323 .m5lv-shelf{filter:drop-shadow(0 6px 7px rgba(83,60,27,.17))}
@media(max-width:760px){
 
}
/* An immersive arcade layer works in iOS installed PWA (no Fullscreen API required). */
@media(pointer:coarse){
 html.m5p-arcade-playing,html.m5p-arcade-playing body{overflow:hidden!important;overscroll-behavior:none!important}
 .m5p.m5p-arcade-active #m5p-panel{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  width:100vw!important;width:100dvw!important;
  height:100vh!important;height:100dvh!important;
  margin:0!important;border:0!important;border-radius:0!important;
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right))
      max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  background:linear-gradient(140deg,#f0f8ff,#ffffff 55%,#e9f5ff)!important;
  -webkit-overflow-scrolling:touch!important;
 }
 .m5p.m5p-arcade-active .m5p-arcade-shell{max-width:none!important;width:100%!important;margin:0!important;min-height:100%;display:flex;flex-direction:column;gap:5px}
 .m5p.m5p-arcade-active .m5p-arcade-shell>.m5p-titleline{margin:0!important;padding:0 5px}
 .m5p.m5p-arcade-active .m5p-arcade-shell>.m5p-titleline h2{font-size:clamp(16px,3vw,23px)!important;margin:0!important}
 .m5p.m5p-arcade-active .m5p-arcade-shell>.m5p-titleline small{display:none!important}
 .m5p.m5p-arcade-active .m5p-arcade-top{margin:0!important;gap:5px!important;flex-wrap:nowrap!important}
 .m5p.m5p-arcade-active .m5p-arcade-hud{flex:1 1 auto;gap:4px!important;min-width:0}
 .m5p.m5p-arcade-active .m5p-arcade-hud b{padding:5px 7px!important;font-size:clamp(10px,2vw,13px)!important;white-space:nowrap}
 .m5p.m5p-arcade-active .m5p-arcade-top>.m5p-button{padding:6px 10px!important;min-height:39px!important;white-space:nowrap}
 .m5p.m5p-arcade-active #m5p-game-stage{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center}
 .m5p.m5p-arcade-active .m5p-canvas-shell{width:100%;margin:auto!important;border-width:2px!important;border-radius:13px!important}
 .m5p.m5p-arcade-active #m5p-arcade-canvas{width:100%!important;height:auto!important;display:block}
 .m5p.m5p-arcade-active .m5p-game-controls{flex:0 0 auto;margin:4px 0!important;gap:6px!important}
 .m5p.m5p-arcade-active .m5p-control-btn{min-width:75px;min-height:43px;font-size:14px;padding:6px 10px}
 .m5p.m5p-arcade-active .m5p-jump-control{min-width:150px;min-height:44px;font-size:15px}
 .m5p.m5p-arcade-active .m5p-game-controls span{font-size:11px;order:3;flex-basis:100%;line-height:1.1}
 .m5p.m5p-arcade-active .m5p-arcade-message{min-height:0!important;padding:2px 0!important;font-size:12px}
 .m5p.m5p-arcade-active .m5p-memory-grid{width:min(98%,480px);max-width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(4px,1vw,9px);margin:5px auto}
 .m5p.m5p-arcade-active .m5p-memory-card{font-size:clamp(24px,6vw,40px);min-height:0;box-shadow:none}
 .m5p.m5p-arcade-active .m5p-colors-game{width:min(100%,540px);margin:auto}
 .m5p.m5p-arcade-active .m5p-colors-grid{gap:4px;margin:4px auto}
 .m5p.m5p-arcade-active .m5p-colors-grid button{font-size:clamp(20px,5vw,40px);min-height:0;box-shadow:none}
}
@media(pointer:coarse) and (orientation:landscape){
 .m5p.m5p-arcade-active .m5p-arcade-shell>.m5p-titleline{display:none!important}
 .m5p.m5p-arcade-active .m5p-canvas-shell{width:min(100%,calc((100dvh - 142px)*2))!important;max-width:100%!important}
 .m5p.m5p-arcade-active .m5p-game-controls span{display:none!important}
 .m5p.m5p-arcade-active .m5p-memory-grid{width:min(80%,calc((100dvh - 95px)*1.1))!important;gap:4px!important}
 .m5p.m5p-arcade-active .m5p-colors-game{width:min(85%,calc((100dvh - 112px)*1.7))!important}
 .m5p.m5p-arcade-active .m5p-colors-target{padding:4px 8px!important}
 .m5p.m5p-arcade-active .m5p-colors-target strong{font-size:24px!important}
 .m5p.m5p-arcade-active .m5p-colors-info{margin:2px 0!important}
}
/* Leśny bieg: blocking orientation gate. This runs before game_start, never consuming a round. */
.m5p-run-landscape-gate{
 position:fixed;inset:0;z-index:2147483100;display:grid;place-items:center;
 padding:max(16px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right))
 max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
 background:rgba(11,25,56,.93);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.m5p-run-gate-card{box-sizing:border-box;max-width:min(95vw,540px);width:100%;max-height:95dvh;overflow-y:auto;text-align:center;padding:clamp(18px,4vh,32px);border:1px solid rgba(255,255,255,.5);border-radius:23px;background:linear-gradient(155deg,#f7fdff,#e7f4ff);box-shadow:0 18px 60px rgba(0,0,0,.32);color:#173d66}
.m5p-run-gate-icon{font-size:clamp(35px,8vh,70px);line-height:1.15}
.m5p-run-gate-card h2{margin:10px 0;font-size:clamp(21px,4vh,32px);color:#174a80}
.m5p-run-gate-card p{font-size:clamp(13px,2.5vh,17px);line-height:1.4}
.m5p-run-gate-status{color:#a06415;font-weight:800;min-height:22px}
.m5p-run-landscape-gate.is-ready .m5p-run-gate-status{color:#157245}
.m5p-run-gate-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:13px}
.m5p-run-gate-actions button{flex:1;max-width:220px;min-height:49px}
.m5p-run-gate-actions button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.7)}

/* Osobne zakładki wewnątrz sklepu: przedmioty / amulety XP. */
#m5p .m5p-shop-sections{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 14px;padding:7px;background:#eff5fc;border:1px solid #d2e3f6;border-radius:16px}
#m5p .m5p-shop-sections button{flex:1 1 195px;border:1px solid #aacbe9;color:#225581;background:white;border-radius:11px;min-height:45px;padding:10px 12px;font-weight:850}
#m5p .m5p-shop-sections button.active{background:linear-gradient(125deg,#176fbd,#174e92);color:white;border-color:#165f9d;box-shadow:0 3px 12px #215c9b40}
#m5p .m5p-shop-sections button:focus-visible{outline:3px solid #ffcb57;outline-offset:2px}


/* M5 PETS 4.1.3 — shared 960×540 scene. Scale the entire composition, not individual furniture. */
.m5p .m5lv-unified-host{position:relative;display:block;width:100%;height:auto;min-width:0;min-height:0;aspect-ratio:16/9;overflow:hidden;border-radius:20px;isolation:isolate;background:#f8ecdc}
.m5p .m5lv-unified-host[hidden]{display:none!important}
.m5p .m5lv-unified-host>.m5lv-room.m5lv-room--unified{
 position:absolute!important;inset:0 auto auto 0!important;box-sizing:border-box!important;
 width:960px!important;min-width:960px!important;max-width:960px!important;height:540px!important;min-height:540px!important;max-height:540px!important;
 aspect-ratio:16/9!important;transform:scale(var(--m5lv-scale,1))!important;transform-origin:top left!important;
 border-radius:0!important;margin:0!important;padding:0!important;overflow:hidden!important;isolation:isolate;
}
.m5p .m5lv-room--unified .m5lv-pet>img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;object-fit:contain!important;object-position:center bottom!important;margin:0!important;padding:0!important;display:block!important;transform:none!important}
.m5p .m5lv-room--unified .m5lv-window-art{width:89%!important;height:85.5%!important;max-width:none!important;max-height:none!important;min-height:0!important;object-fit:cover!important;transform:none!important}
.m5p .m5lv-room--unified:is([data-l-window="8"],[data-l-window="9"],[data-l-window="10"]) .m5lv-window-art{width:100%!important;height:100%!important;object-fit:fill!important}
.m5p .m5lv-room--unified .m5lv-royal-headgear{width:38%!important;height:20%!important}
.m5p .m5lv-room--unified[data-kind="dog"] .m5lv-pet .m5lv-royal-headgear{left:64%!important;top:-1%!important}
.m5p .m5lv-room--unified[data-kind="cat"] .m5lv-pet .m5lv-royal-headgear{left:56%!important;top:5%!important}
.m5p .m5lv-room--unified[data-kind="panda"] .m5lv-pet .m5lv-royal-headgear{left:54%!important;top:4%!important}
/* All 15 stars live outside furniture stacking contexts, including absent level-one objects. */
.m5p .m5lv-room--unified .m5lv-level-layer{position:absolute!important;inset:0!important;z-index:100!important;pointer-events:none;overflow:visible!important}
.m5p .m5lv-room--unified .m5lv-level-star{position:absolute!important;width:48px;height:48px;display:grid;place-items:center;transform:translate(-50%,-50%);color:#623600;font:900 22px/1 system-ui,sans-serif;pointer-events:auto;isolation:isolate;text-shadow:0 1px 0 #fff8}
.m5p .m5lv-room--unified .m5lv-level-star::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(145deg,#fff8c9 12%,#ffd268 54%,#b77b1c);clip-path:polygon(50% 0,64% 30%,100% 35%,75% 60%,81% 96%,50% 80%,19% 96%,25% 60%,0 35%,36% 30%);}
.m5p .m5lv-room--unified .m5lv-level-star b{color:#623600!important;font:inherit;position:relative;top:1px}
/* Keep game labels and petting controls outside the room so they cannot cover its stars. */
.m5p .m5p-scene:has(.m5p-scene-inner.m5p-house-active){align-self:start;min-width:0}
.m5p .m5p-scene-inner.m5p-house-active{background:#f4f9fe!important;overflow:hidden!important;display:block!important}
.m5p .m5p-scene-inner.m5p-house-active .m5p-scene-top{position:relative!important;inset:auto!important;display:flex!important;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 10px;margin:0!important;}
.m5p .m5p-scene-inner.m5p-house-active .m5p-scene-top span{padding:5px 9px!important;box-shadow:none!important;max-width:100%;overflow-wrap:anywhere;}
.m5p .m5p-scene-inner.m5p-house-active .m5p-scene-world{position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16/9!important;border:0!important;overflow:hidden!important;background:#f8ecdc!important;}
.m5p .m5p-scene-inner.m5p-house-active [data-m5p-house-scene].m5lv-unified-host{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;aspect-ratio:16/9!important;border-radius:0!important;}
.m5p .m5p-scene-inner.m5p-house-active .m5p-speech{position:relative!important;inset:auto!important;min-height:44px;max-width:none!important;margin:0!important;padding:10px 60px 10px 12px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;white-space:normal!important;overflow-wrap:anywhere;}
.m5p .m5p-scene-inner.m5p-house-active>.m5p-pet-pat{position:absolute!important;bottom:5px!important;right:8px!important;top:auto!important;left:auto!important;min-width:36px;min-height:36px;width:36px;height:36px;font-size:18px;box-shadow:0 2px 6px #af4c7844!important}
.m5p .m5lv-preview,.m5p .m5lv-shop,.m5p .m5lv-card{min-width:0}
.m5p .m5lv-preview .m5p-house-preview-caption{overflow-wrap:anywhere}
.m5p .m5lv-products{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
@media(max-width:850px){.m5p .m5lv-editor{grid-template-columns:minmax(0,1fr);gap:12px}.m5p .m5lv-preview{position:static}}
@media(max-width:420px){.m5p .m5lv-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.m5p .m5lv-card-head,.m5p .m5lv-next{flex-wrap:wrap}.m5p .m5lv-card{overflow-wrap:anywhere}.m5p .m5lv-overview>strong{white-space:normal}}
