/* Pets 5.9.2: a bright studio, clear controls and species-specific movement. */
.portal-pets{--pet-ink:#17324d;--pet-muted:#50657a;--pet-accent:#1d5c9e;--pet-panel:#ffffff;--pet-line:#ccd9e6;max-width:1000px;margin:auto;color:var(--pet-ink);color-scheme:light}
.portal-pets *{box-sizing:border-box}.portal-pets h3{margin:0 0 10px;font-size:1.3rem;color:var(--pet-ink)}.portal-pets p{line-height:1.6}.portal-pets .btn{min-height:44px;padding:10px 14px;border:1px solid #c3d4e4;border-radius:12px;background:#edf4fc;color:#174f88;white-space:normal;font:inherit;cursor:pointer}.portal-pets .btn.primary{background:#1d5c9e;border-color:#1d5c9e;color:#fff}.portal-pets .btn:disabled{opacity:.6;cursor:default}.portal-pets :is(button,input,select,summary):focus-visible{outline:3px solid #1d5c9e;outline-offset:3px}
.portal-pets :is(input,select){color:var(--pet-ink);width:100%;min-width:0;min-height:44px;padding:12px;border:1px solid #b8ccdf;border-radius:12px;background:#ffffff;font:inherit}.portal-pets input::placeholder{color:#596e83}.portal-pets small{color:var(--pet-muted)}
.pet-notice:empty,[data-pet-error]:empty{display:none}.pet-notice{padding:12px 16px;border-radius:14px;background:#e9f5f2;color:#285c50}.pet-art{display:block;width:100%;height:auto;max-width:300px;margin:auto;border-radius:30px;overflow:hidden}.pet-art-small{max-width:105px}.pet-page-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.pet-page-actions .btn{flex:1;min-width:0}
.pet-hero{display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,1fr);gap:28px;padding:26px;background:radial-gradient(ellipse at 10% 0,#e6f0fa,transparent 70%),var(--pet-panel);border:1px solid #c3d4e4;border-radius:24px;box-shadow:none;scroll-margin-top:24px;color:var(--pet-ink)}
.pet-summary{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-width:0}.pet-summary h3{font-size:2rem;margin:4px 0;overflow-wrap:anywhere}.pet-summary p{margin:0;color:var(--pet-muted)}.pet-summary .pill{background:#fff4db;color:#775413;border:1px solid #e8d6ae}.pet-summary progress{width:100%;height:12px;accent-color:#b7862c;margin:6px 0 0}.pet-summary small{color:var(--pet-muted)}.pet-wallet{display:flex;gap:8px;align-items:center;margin:10px 0;font-size:1rem}.pet-wallet>span{color:#805609}.pet-wallet strong{font-size:1.6rem}.pet-summary-actions{display:flex;gap:8px;flex-wrap:wrap;width:100%}
.pet-adoption,.pet-rules,.pet-inventory,.pet-shop,.pet-history,.pet-care{margin-top:22px;padding:22px;border:1px solid var(--pet-line);border-radius:20px;background:var(--pet-panel);color:var(--pet-ink);scroll-margin-top:24px}.pet-adoption>p,.pet-shop>p,.pet-rules p{color:var(--pet-muted)}
.pet-species{border:0;padding:0;margin:20px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pet-species legend{margin-bottom:12px;font-weight:700}.pet-species label{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 8px;border:2px solid #c3d4e4;border-radius:18px;cursor:pointer;min-width:0}.pet-species label:has(:checked){border-color:#1d5c9e;background:#e9f2fc}.pet-species input{width:18px;min-height:18px;height:18px;margin:0;accent-color:#805609}.pet-species small{text-align:center;font-size:.78rem;line-height:1.4}.pet-species label:focus-within{outline:3px solid #1d5c9e;outline-offset:3px}
.pet-name-label{display:block;max-width:400px;margin-bottom:16px;font-weight:600}.pet-name-label input{margin-top:8px}.pet-rename{display:flex;gap:12px;align-items:flex-end;max-width:580px;margin:20px 0}.pet-rename label{flex:1;min-width:0;font-weight:600}.pet-rename input{margin-top:8px}.pet-rename button{flex-shrink:0}
.pet-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pet-item{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;padding:16px;border:1px solid #ccd9e6;border-radius:16px;background:#f5f8fc;min-width:0}.pet-item>div{min-width:0}.pet-item strong,.pet-item small{display:block;overflow-wrap:anywhere}.pet-item small{margin-top:4px;color:var(--pet-muted)}.pet-item-preview{width:48px}.pet-item-art{display:block;width:100%;height:auto;border-radius:14px}.pet-item-actions{grid-column:1/-1;display:flex;gap:8px}.pet-item-actions .btn{flex:1;min-width:0;font-size:.9rem;scroll-margin-block:95px}.pet-item [aria-pressed=true]{background:#e8f5ef;border-color:#a6cabb;color:#25624b}
.pet-purchase-confirm{padding:18px;margin-top:16px;background:#f0f7ef;border:1px solid #afc8a7;border-radius:16px}.pet-purchase-confirm .btn{margin:4px 6px 0 0}.pet-rules summary,.pet-history summary,.pet-care summary{cursor:pointer;font-weight:700;min-height:44px;line-height:1.5;padding:8px 0}.pet-rules li{margin:12px 0;line-height:1.6}.pet-rules ul{padding-left:22px}.pet-rules p{font-size:.92rem}.pet-study-standalone{margin-top:16px}.pet-history ol{list-style:none;margin:15px 0 0;padding:0}.pet-history li{display:flex;gap:15px;justify-content:space-between;padding:13px 0;border-top:1px solid #d3dfe9}.pet-history strong,.pet-history small{display:block}.pet-history strong{overflow-wrap:anywhere}.pet-history small{margin-top:4px}.pet-history li>span{white-space:nowrap;font-weight:600;font-size:.9rem}
.pet-compact{display:flex;gap:16px;align-items:center;margin:20px 0;padding:18px 22px;background:#ffffff;border:1px solid #ccd9e6;border-radius:20px;color:#17324d}.pet-compact .pet-art{width:76px;flex-shrink:0;border-radius:18px}.pet-compact>div{flex:1;min-width:0}.pet-compact strong,.pet-compact small,.pet-compact span{display:block}.pet-compact strong{font-size:1.2rem;overflow-wrap:anywhere}.pet-compact small,.pet-compact span{color:#50657a;font-size:.85rem;line-height:1.5}.pet-compact .btn{flex-shrink:0;background:#1d5c9e;color:#fff;border:1px solid #1d5c9e;border-radius:12px;min-height:44px}.pet-earned{padding:14px;border:1px solid #afcbbb;border-radius:14px;background:#e8f5ec;color:#285a3a;line-height:1.5}
.pet-care .section-head p{margin:0;color:#365e80;font-weight:600}.pet-care>p{color:var(--pet-muted);font-size:.92rem}.pet-care-meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.pet-care-meters>div{padding:12px;border:1px solid #ccd9e6;border-radius:14px;background:#f5f8fc;min-width:0}.pet-care-meters label{display:flex;flex-direction:column;gap:5px;font-size:.9rem}.pet-care-meters [data-pet-stat]{font-weight:700;color:#17324d}.pet-care-meters meter{width:100%;height:18px;accent-color:#2c8263}
.pet-care-free{display:flex;align-items:center;gap:18px;background:#ecf7f3;border:1px solid #b6d3c7;border-radius:16px;padding:18px}.pet-care-free>div{flex:1;min-width:0}.pet-care-free p{font-size:.9rem;margin:8px 0}.pet-care-free small{display:block}.pet-care-free .btn{flex-shrink:0}.pet-care-pause{margin:20px 0;padding:14px 16px;border:1px solid #ccd9e6;border-radius:14px;background:#f5f8fc}.pet-care-pause p{font-size:.92rem}.pet-care-pause form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0 0}.pet-care-pause label{display:flex;flex-direction:column;gap:8px;flex:1;min-width:140px}.pet-care h4{font-size:1.05rem;margin:22px 0 12px;color:#17324d}.pet-care-history{margin-top:20px}.pet-care-history ol{list-style:none;padding:0;margin:12px 0}.pet-care-history li{border-top:1px solid #d3dfe9;padding:10px 0}.pet-care-history small{display:block;margin-top:5px}
.pet-stage{min-width:0;text-align:center;align-self:center}.pet-touch{display:block;width:100%;max-width:260px;padding:0;margin:auto;border:0;border-radius:30px;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}.pet-touch:focus-visible{outline:3px solid #1d5c9e;outline-offset:5px}.pet-touch:hover .pet-art{box-shadow:0 8px 24px #2545661a}.pet-stage>small{display:block;color:var(--pet-muted);font-size:.78rem;line-height:1.5}.pet-reaction-message{font-size:.9rem;font-weight:600;margin:12px 0 5px;min-height:1.6em;color:#174f88}.portal-pets .pet-motion{margin-top:10px;background:#f1f6fc;font-size:.8rem;color:#365e80}.pet-motion:disabled{opacity:1}.pet-mood{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:20px;background:#e5f4eb;color:#25624b;font-size:.8rem;font-weight:700}.pet-mood::before{content:"";width:7px;height:7px;flex-shrink:0;border-radius:50%;background:currentColor}.pet-mood-cuidado,.pet-mood-cansado,.pet-mood-companhia,.pet-mood-recuperando{background:#fff3dc;color:#795413}.pet-mood-pausa{background:#f0eafa;color:#614181}.pet-summary .pet-mood-hint{font-size:.88rem;line-height:1.5;max-width:32ch;color:var(--pet-muted)}
.pet-fitting{display:grid;grid-template-columns:minmax(150px,210px) 1fr;align-items:center;gap:22px;background:#fffaf0;border:1px dashed #d4b778;border-radius:18px;padding:18px;margin:16px 0;scroll-margin-top:24px}.pet-fitting h4{font-size:1.1rem;margin:8px 0;color:var(--pet-ink)}.pet-fitting p{font-size:.9rem;line-height:1.5;margin:8px 0 14px;color:#50657a}.pet-preview-label{display:inline-block;border-radius:20px;padding:5px 10px;background:#fff0d1;color:#795413;font-size:.8rem;font-weight:700}.pet-fitting .pet-art{max-width:210px}.pet-fitting .btn{scroll-margin-block:95px}
.pet-eyes-happy,.pet-affection,.pet-study-sparkles,.pet-care-glow{display:none}.pet-stage:is([data-pet-reaction=affection],[data-pet-reaction=care],[data-pet-reaction=study]) .pet-eyes-happy{display:block}.pet-stage:is([data-pet-reaction=affection],[data-pet-reaction=care],[data-pet-reaction=study]) .pet-eyes-open{display:none}.pet-stage[data-pet-reaction=affection] .pet-affection{display:block}.pet-stage[data-pet-reaction=study] .pet-study-sparkles{display:block}.pet-stage[data-pet-reaction=care] .pet-care-glow{display:block}
.pet-stage .pet-body{transform-origin:120px 211px;animation:pet-breathe 4.8s ease-in-out infinite}.pet-stage .pet-head{transform-origin:120px 150px;animation:pet-look 8s ease-in-out infinite}.pet-stage .pet-tail{transform-origin:159px 185px;animation:pet-tail 4s ease-in-out infinite}.pet-stage .pet-species-raposa .pet-tail{animation-duration:3.2s}.pet-stage .pet-blink{transform-origin:120px 110px;animation:pet-blink 6.2s ease-in-out infinite}.pet-stage .pet-ear-left{transform-origin:75px 80px;animation:pet-ear 9s ease-in-out infinite}.pet-stage .pet-ear-right{transform-origin:165px 80px;animation:pet-ear 9s 1.2s ease-in-out infinite}.pet-stage .pet-wing-left{transform-origin:87px 155px;animation:pet-wing 7s ease-in-out infinite}.pet-stage .pet-wing-right{transform-origin:153px 155px;animation:pet-wing 7s .2s ease-in-out infinite}.pet-stage .pet-art-pausa :is(.pet-head,.pet-tail,.pet-ear,.pet-wing-left,.pet-wing-right),.pet-stage .pet-art-cansado :is(.pet-tail,.pet-ear){animation:none}.pet-stage .pet-art-pausa .pet-body{animation-duration:7s}
.pet-stage[data-pet-reaction=affection] .pet-head{animation:pet-nuzzle 1s ease-in-out 2}.pet-stage[data-pet-reaction=study] .pet-body{animation:pet-celebrate .85s ease-out 2}.pet-stage .pet-heart-one,.pet-stage .pet-heart-two,.pet-stage .pet-heart-three{animation:pet-heart 4.8s ease-out both}.pet-stage .pet-heart-two{animation-delay:.15s}.pet-stage .pet-heart-three{animation-delay:.3s}.pet-stage .pet-study-sparkles{transform-origin:center;animation:pet-sparkle 1s ease-in-out 3}.pet-stage .pet-care-glow{transform-origin:120px 145px;animation:pet-care-pulse 1.3s ease-in-out 3}
@keyframes pet-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.014,1.02)}}@keyframes pet-look{0%,35%,100%{transform:rotate(0)}55%,68%{transform:rotate(-3deg)}}@keyframes pet-tail{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(5deg)}}@keyframes pet-blink{0%,42%,46%,100%{transform:scaleY(1)}44%{transform:scaleY(.08)}}@keyframes pet-ear{0%,70%,82%,100%{transform:rotate(0)}75%{transform:rotate(-7deg)}}@keyframes pet-wing{0%,68%,85%,100%{transform:rotate(0)}75%{transform:rotate(-5deg)}}@keyframes pet-nuzzle{0%,100%{transform:rotate(0)}35%{transform:rotate(-5deg)}65%{transform:rotate(4deg)}}@keyframes pet-celebrate{0%,100%{transform:translateY(0)}45%{transform:translateY(-6px)}}@keyframes pet-heart{0%{opacity:0;transform:translateY(7px)}18%,70%{opacity:1}100%{opacity:0;transform:translateY(-15px)}}@keyframes pet-sparkle{0%,100%{opacity:.3;transform:scale(.92)}50%{opacity:1;transform:scale(1.04)}}@keyframes pet-care-pulse{0%,100%{opacity:.3;transform:scale(.94)}50%{opacity:.9;transform:scale(1)}}
.portal-pets[data-pet-offscreen=true] .pet-art *,.portal-view[hidden] .pet-art *{animation-play-state:paused!important}.portal-pets[data-pet-motion-paused=true] .pet-art *{animation:none!important}
@media(max-width:600px){.pet-hero{grid-template-columns:minmax(0,140px) minmax(0,1fr);gap:14px;padding:16px;align-items:start}.pet-touch,.pet-stage .pet-art{max-width:160px}.pet-summary{gap:6px}.pet-summary h3{font-size:1.5rem}.pet-summary .pet-mood-hint{font-size:.8rem}.pet-summary p{font-size:.82rem}.pet-summary small{font-size:.75rem}.pet-wallet{gap:6px;flex-wrap:wrap;margin:5px 0;font-size:.82rem}.pet-wallet strong{font-size:1.35rem}.pet-summary-actions{flex-direction:column;gap:6px}.pet-summary-actions .btn{font-size:.84rem;padding:8px}.pet-stage>small{font-size:.72rem}.pet-reaction-message{font-size:.8rem}.portal-pets .pet-motion{font-size:.74rem;padding:8px}.pet-adoption,.pet-rules,.pet-inventory,.pet-shop,.pet-history,.pet-care{padding:16px}.pet-items{grid-template-columns:1fr}.pet-rename{flex-wrap:wrap}.pet-rename label{flex-basis:100%}.pet-rename button{width:100%}.pet-history li{flex-direction:column;gap:7px}.pet-care-free{flex-direction:column;align-items:stretch;padding:15px}.pet-care-pause form{flex-direction:column;align-items:stretch}.pet-care-pause label{min-width:0}.pet-care-meters{gap:6px}.pet-care-meters>div{padding:9px 6px}.pet-care-meters label{font-size:.78rem}.pet-species{gap:7px}.pet-species label{padding:10px 4px}.pet-species .pet-art{max-width:76px}.pet-species small{font-size:.7rem}.pet-compact{gap:12px;padding:14px;flex-wrap:wrap}.pet-compact .pet-art{width:62px}.pet-compact .btn{width:100%}.pet-fitting{grid-template-columns:1fr;gap:12px;padding:15px;text-align:center}.pet-fitting .pet-art{max-width:185px}.pet-page-actions .btn{padding:10px 7px;font-size:.86rem}}
@media(max-width:360px){.pet-hero{grid-template-columns:minmax(0,112px) minmax(0,1fr);gap:10px;padding:14px}.pet-summary h3{font-size:1.35rem}.pet-mood{font-size:.74rem;padding:6px 8px}.pet-art{border-radius:24px}.pet-summary .pet-mood-hint{font-size:.76rem}}
@media(prefers-reduced-motion:reduce){.pet-art *{animation:none!important}.portal-pets *{scroll-behavior:auto}.pet-touch:hover .pet-art{box-shadow:none}}
