/* Z-PETS — casa: papel de parede, chão e tapete (gerado por dev/make_casa_css.py) */
.scene, .pz-sw, .r-wall, .r-floor, .r-rug { --wall: radial-gradient(circle, rgba(255,255,255,.9) 3px, transparent 3.5px) 0 0/34px 34px, radial-gradient(circle, rgba(255,180,215,.35) 3px, transparent 3.5px) 17px 17px/34px 34px, #FFEAF4; --floor: repeating-linear-gradient(90deg, #F7D3A6 0 46px, #F2C794 46px 50px); --ftop: #F0BE88; --rug: repeating-radial-gradient(ellipse at center, #C9B6FF 0 12px, #DCCFFF 12px 24px); }
.p_casa { --wall: radial-gradient(circle, rgba(255,255,255,.9) 3px, transparent 3.5px) 0 0/34px 34px, radial-gradient(circle, rgba(255,180,215,.35) 3px, transparent 3.5px) 17px 17px/34px 34px, #FFEAF4; }
.p_listras { --wall: repeating-linear-gradient(90deg, #FFDCEB 0 22px, #FFF7FB 22px 44px); }
.p_nuvens { --wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Ctext x='6' y='30' font-size='24' opacity='0.9'%3E%E2%98%81%EF%B8%8F%3C/text%3E%3Ctext x='38' y='62' font-size='24' opacity='0.9'%3E%E2%98%81%EF%B8%8F%3C/text%3E%3C/svg%3E") 0 0/72px 72px, linear-gradient(#A9DCFF, #E6F5FF); }
.p_coracoes { --wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='6' y='26' font-size='18' opacity='0.75'%3E%F0%9F%92%97%3C/text%3E%3Ctext x='34' y='56' font-size='18' opacity='0.75'%3E%F0%9F%92%9C%3C/text%3E%3C/svg%3E") 0 0/60px 60px, #FFF0F7; }
.p_floresta { --wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Ctext x='4' y='40' font-size='28' opacity='1'%3E%F0%9F%8C%B3%3C/text%3E%3Ctext x='44' y='78' font-size='28' opacity='1'%3E%F0%9F%8C%B2%3C/text%3E%3Ctext x='50' y='30' font-size='28' opacity='1'%3E%F0%9F%8D%84%3C/text%3E%3C/svg%3E") 0 0/84px 84px, linear-gradient(#DDF7CF, #B5E8A0); }
.p_dino { --wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Ctext x='4' y='34' font-size='28' opacity='1'%3E%F0%9F%A6%95%3C/text%3E%3Ctext x='44' y='76' font-size='28' opacity='1'%3E%F0%9F%A6%96%3C/text%3E%3Ctext x='52' y='30' font-size='28' opacity='1'%3E%F0%9F%8C%BF%3C/text%3E%3C/svg%3E") 0 0/88px 88px, linear-gradient(#FFF6D9, #E5F7CC); }
.p_mar { --wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92'%3E%3Ctext x='6' y='30' font-size='24' opacity='1'%3E%F0%9F%90%A0%3C/text%3E%3Ctext x='46' y='70' font-size='24' opacity='1'%3E%F0%9F%90%9F%3C/text%3E%3Ctext x='56' y='26' font-size='24' opacity='1'%3E%F0%9F%AB%A7%3C/text%3E%3Ctext x='12' y='82' font-size='24' opacity='1'%3E%F0%9F%90%99%3C/text%3E%3C/svg%3E") 0 0/92px 92px, linear-gradient(#8FDBFF, #3D9EE3); }
.p_galaxia { --wall: radial-gradient(circle, #fff 0 1.4px, transparent 2px) 0 0/38px 38px, radial-gradient(circle, #FFF3B0 0 1.8px, transparent 2.4px) 19px 23px/52px 52px, radial-gradient(circle, #C9E8FF 0 1.2px, transparent 1.8px) 9px 31px/29px 29px, radial-gradient(ellipse at 30% 20%, #6C4FD8 0, transparent 60%), radial-gradient(ellipse at 80% 70%, #C04FD8 0, transparent 55%), linear-gradient(#1E1650, #3A2A8C); }
.p_arcoiris { --wall: linear-gradient(120deg, #FF9DB8, #FFD27A, #A8EB8C, #8FD0FF, #C7A6FF, #FF9DB8) 0 0/300% 300%; }
.c_casa { --floor: repeating-linear-gradient(90deg, #F7D3A6 0 46px, #F2C794 46px 50px); --ftop: #F0BE88; }
.c_grama { --floor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Ctext x='6' y='24' font-size='16' opacity='1'%3E%F0%9F%8C%BC%3C/text%3E%3Ctext x='40' y='50' font-size='16' opacity='1'%3E%F0%9F%8C%B1%3C/text%3E%3C/svg%3E") 0 0/64px 64px, repeating-linear-gradient(90deg, #86DC64 0 12px, #74CF52 12px 24px); --ftop: #5DB83C; }
.c_azulejo { --floor: conic-gradient(#BFE2FF 25%, #fff 0 50%, #BFE2FF 0 75%, #fff 0) 0 0/40px 40px; --ftop: #8FC9F2; }
.c_areia { --floor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Ctext x='8' y='28' font-size='16' opacity='0.9'%3E%F0%9F%90%9A%3C/text%3E%3Ctext x='44' y='56' font-size='16' opacity='0.9'%3E%E2%AD%90%3C/text%3E%3C/svg%3E") 0 0/70px 70px, radial-gradient(circle, #E9CC8C 1px, transparent 1.6px) 0 0/9px 9px, #F7E2B0; --ftop: #E8C985; }
.c_nuvem { --floor: radial-gradient(circle at 25% 60%, #fff 0 18px, transparent 19px) 0 0/80px 60px, radial-gradient(circle at 70% 40%, #fff 0 22px, transparent 23px) 0 0/80px 60px, #DDEEFF; --ftop: #C3DEF7; }
.c_ouro { --floor: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) 0 0/250% 100%, repeating-linear-gradient(90deg, #FFD447 0 44px, #F2BC2E 44px 48px); --ftop: #E0A91C; }
.t_casa { --rug: repeating-radial-gradient(ellipse at center, #C9B6FF 0 12px, #DCCFFF 12px 24px); }
.t_flor { --rug: radial-gradient(ellipse, #FFE066 0 13%, #FFB938 14% 17%, transparent 18%), repeating-conic-gradient(from 0deg, #FF9CC9 0 20deg, #FFC4DF 20deg 40deg); }
.t_listras { --rug: repeating-linear-gradient(90deg, #FFD93D 0 18px, #FF9F43 18px 36px, #fff 36px 44px); }
.t_xadrez { --rug: conic-gradient(#5EB8FF 25%, #fff 0 50%, #5EB8FF 0 75%, #fff 0) 0 0/26px 26px; }
.t_nuvem { --rug: radial-gradient(ellipse, #fff 0 52%, #EAF6FF 53% 68%, #CFE9FF 69%); }
.t_arcoiris { --rug: repeating-radial-gradient(ellipse, #FF5A6E 0 8px, #FFB938 8px 16px, #FFE066 16px 24px, #4CD483 24px 32px, #4DA6FF 32px 40px, #9C6BFF 40px 48px); }
.t_magico { --rug: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.8) 45%, transparent 60%) 0 0/250% 100%, radial-gradient(ellipse, #FFE066 0 10%, transparent 11%), repeating-radial-gradient(ellipse, #8A5CF0 0 10px, #B48CFF 10px 20px); }

.scene:not(.bath) .wall { background: var(--wall); }
.scene:not(.bath) .floor { background: var(--floor); border-top-color: var(--ftop); }
.scene:not(.bath) .rug { background: var(--rug); }

/* brilhantes 💎: se mexem e brilham */
.scene.p_arcoiris:not(.bath) .wall, .p_arcoiris > i, .r-wall.p_arcoiris { animation: rainbowWall 9s ease-in-out infinite; }
@keyframes rainbowWall { 50% { background-position: 100% 100%; } }
.scene.p_galaxia:not(.bath) .wall::after, .p_galaxia > i::after, .r-wall.p_galaxia::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0 2px, transparent 2.6px) 7px 11px/61px 47px, radial-gradient(circle, #FFE36E 0 2.4px, transparent 3px) 31px 5px/83px 71px;
  animation: galaxyTw 1.8s ease-in-out infinite alternate; }
@keyframes galaxyTw { from { opacity: .15; } to { opacity: 1; } }
.scene.c_ouro:not(.bath) .floor, .c_ouro > i, .r-floor.c_ouro { animation: shine 3s linear infinite; }
.scene.t_magico:not(.bath) .rug, .t_magico > i, .r-rug.t_magico { animation: shine 2.6s linear infinite, rugGlow 2s ease-in-out infinite alternate; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes rugGlow { from { box-shadow: 0 0 6px 2px rgba(255, 224, 102, .5), 0 4px 0 rgba(120, 80, 160, .15); } to { box-shadow: 0 0 18px 6px rgba(200, 140, 255, .8), 0 4px 0 rgba(120, 80, 160, .15); } }
.wall { overflow: hidden; }

/* miniaturas na tela de prêmios */
.pz-sw { position: relative; display: block; width: 46px; height: 40px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.pz-sw > i { position: absolute; inset: 0; }
.pz-sw[data-k="parede"] > i { background: var(--wall); }
.pz-sw[data-k="chao"] > i { background: var(--floor); border-top: 4px solid var(--ftop); }
.pz-sw[data-k="tapete"] { background: #F7EDE0; }
.pz-sw[data-k="tapete"] > i { inset: 7px 2px; border-radius: 50%; background: var(--rug); }
.pz-item.lock .pz-sw { filter: grayscale(.85) brightness(.8); opacity: .55; }

/* prévia do quarto (aba parede/tapete/chão) e do prêmio novo */
.pz-room { position: relative; width: 210px; height: 150px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(255,255,255,.8), 0 4px 12px rgba(0,0,0,.12); }
.pz-room .r-wall { position: absolute; inset: 0; background: var(--wall); }
.pz-room .r-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: var(--floor); border-top: 5px solid var(--ftop); }
.pz-room .r-rug { position: absolute; left: 50%; bottom: 8%; width: 70%; height: 15%; transform: translateX(-50%); border-radius: 50%; background: var(--rug); }
.pz-room .pz-pet.sm { position: absolute; left: 50%; bottom: 6%; width: 96px; height: 96px; transform: translateX(-50%); animation: none; }
.pz-new .pz-room { width: 240px; height: 180px; animation: pzPop .6s both; }
.pz-new .pz-room > i { position: absolute; inset: 0; }
.pz-new .pz-room[data-k="parede"] > i { background: var(--wall); }
.pz-new .pz-room[data-k="chao"] > i { top: 55%; background: var(--floor); border-top: 5px solid var(--ftop); }
.pz-new .pz-room[data-k="chao"] { background: #FFEAF4; }
.pz-new .pz-room[data-k="tapete"] { background: #FFEAF4; }
.pz-new .pz-room[data-k="tapete"] > i { top: auto; height: 26%; left: 10%; right: 10%; bottom: 6%; border-radius: 50%; background: var(--rug); }
