/* Habitat v3: keep the tank and its care controls together. */
.aquarium-game .aqua-care-banner{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:22px;background:linear-gradient(115deg,#fff9e9,#edf4e8);border:1px solid #dfdfc6;border-radius:24px;padding:19px 22px}
.aqua-round{justify-self:end}.aqua-round small{display:block;margin-top:7px}
.aqua-health{flex-direction:column;align-items:flex-start;gap:6px}.aqua-health meter{width:136px}
.aqua-tool-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:18px 0 8px;gap:8px}
.aqua-tool-row button{min-width:0!important;display:flex;align-items:center;justify-content:center;gap:10px;min-height:65px;padding:12px 10px;font-size:16px}
.aqua-tool-row svg{width:27px;height:27px;flex-shrink:0}.aqua-tool-row button[aria-pressed=true]{background:#cde7e1;border:2px solid #438782;box-shadow:0 3px 0 #285e5826}
.aqua-tool-hint{margin:0 0 20px;min-height:44px;display:flex;align-items:center;background:transparent;padding:2px 6px;color:#507974;line-height:1.6}
.aqua-habitat-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:26px;align-items:start}
.aqua-main-habitat{min-width:0}.aquarium-game .aqua-stage#livingTank{aspect-ratio:3/2;box-shadow:0 0 0 5px #fff7dd,0 12px 30px #285e5525}
.aquarium-game .aqua-stage#livingTank .aqua-backdrop{object-fit:cover}
.aqua-local-notice{min-height:48px;margin:14px 0 8px;padding:10px 15px;border-radius:15px;background:#e7f0e5;color:#2e625d;font-size:14px;line-height:1.6}
.aqua-local-notice:empty{background:none}
.aqua-reward-notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(110deg,#fae9bc,#fff5d9);border:2px solid #dbc586;border-radius:18px;padding:14px;margin:10px 0 15px;box-shadow:0 3px 10px #806a3e16}.aqua-reward-notice strong{color:#8c6d2d;font-size:17px}.aqua-reward-notice span{font-size:13px;color:#746643}.aqua-reward-notice button{font-size:13px;padding:10px 14px;margin-left:auto}
.aqua-companion{padding:20px;border:1px solid #e2d9bb;border-radius:26px;background:linear-gradient(#fffdf4,#f7f0de);box-shadow:0 6px 20px #475c4010;text-align:center;min-width:0}
.aqua-companion-kicker{letter-spacing:.12em;font-size:10px;color:#7c8c72;display:block}
.aqua-companion .aqua-portrait{margin:12px auto 4px;background:radial-gradient(ellipse,#dceedd,#f5f6e9 65%,transparent 70%);border-radius:50%;width:165px;max-width:100%;height:120px;display:grid;place-items:center}
.aqua-companion .aqua-portrait img{width:100%;height:auto;filter:drop-shadow(0 7px 5px #3c696f1c)}
.aqua-companion h2{font-size:19px;margin:10px 0}.aqua-friend-description{font-size:13px;line-height:1.6;margin:0 0 15px;color:#668278}
.aqua-growth-block{text-align:left;padding:12px 14px;background:#fffbef;border:1px solid #e5dfc8;border-radius:15px;margin-top:10px}
.aqua-growth-block>span{display:flex;justify-content:space-between;font-size:12px}.aqua-growth-block .aqua-growth{gap:5px;margin-top:9px}.aqua-growth-block .aqua-growth i{flex:1;height:10px;box-shadow:inset 0 1px 2px #54736410}
.aqua-growth-block .aqua-growth .filled{background:linear-gradient(#d8bf78,#ba9650)}
.aqua-bond{display:flex;align-items:center;gap:12px;text-align:left;margin:16px 0 10px}
.aqua-bond strong{font-size:14px}.aqua-bond small{display:block;font-size:12px;color:#7b8980;margin-top:5px}
.aqua-friend-ribbon{position:relative;display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;color:#fff4da;font-size:26px;border-radius:50%;background:radial-gradient(circle at 40% 30%,#dfa98e,#bc7c65);border:3px solid #ead7b6;box-shadow:0 2px 4px #93755230;z-index:0}
.aqua-friend-ribbon:before,.aqua-friend-ribbon:after{content:'';position:absolute;top:29px;width:12px;height:20px;background:#bf8268;z-index:-1;clip-path:polygon(0 0,100% 0,100% 100%,50% 70%,0 100%)}
.aqua-friend-ribbon:before{left:4px;transform:rotate(18deg)}.aqua-friend-ribbon:after{right:4px;transform:rotate(-18deg)}
.aqua-friend-need{font-size:12px;line-height:1.6;margin:14px 0;color:#628474}
.aqua-companion>button{display:flex;align-items:center;justify-content:center;width:100%;margin-top:9px;min-width:0!important;min-height:48px;font-size:14px!important;padding:12px 10px!important;border-radius:15px}
.aqua-companion #takeAquaPhoto{background:#f7ebcb;border-color:#d7c797;color:#6b6242;gap:9px;margin-top:16px}.aqua-companion #takeAquaPhoto svg{width:22px;height:22px}
.aqua-friend-picker{justify-content:flex-start;gap:7px}.aqua-friend-picker button{width:calc(25% - 6px);min-width:78px;padding:8px;background:#f7f7eb}.aqua-friend-picker img{width:65px;height:44px;max-width:100%}.aqua-friend-picker span{font-size:11px;display:block}
.aqua-call-ripple{position:absolute;z-index:4;width:70px;height:70px;transform:translate(-50%,-50%);border:2px solid #fffbd7;border-radius:50%;box-shadow:0 0 0 10px #e0fff321;pointer-events:none;animation:aqua-greeting 1.4s ease-out infinite}
@keyframes aqua-greeting{from{opacity:.9;scale:.7}to{opacity:.1;scale:1.4}}
.aqua-tank-aim{position:absolute;z-index:4;transform:translate(-50%,-50%);display:grid;place-items:center;width:33px;height:33px;border:2px dashed #fff9cc;color:#fff9cc;border-radius:50%;font-size:22px;pointer-events:none}
.aqua-stage:focus-visible{outline:4px solid #d99b48;outline-offset:6px}
.aqua-selected-decoration{outline:3px solid #f3c365!important;filter:drop-shadow(0 0 5px #fff6ce)}
.aqua-theme-panel,.aqua-photo-album{padding:25px;border:1px solid #dbddc5;border-radius:27px;background:#fffcf2;margin-top:28px}
.aqua-section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.aqua-section-heading h2{font-size:22px;margin:5px 0 0}.aqua-section-heading small{font-size:10px;letter-spacing:.12em;color:#738a77}.aqua-section-heading>strong{white-space:nowrap;font-size:14px;padding:10px 15px;border-radius:14px;background:#f5edce;color:#74653d}
.aqua-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.aqua-theme-grid button{padding:7px;overflow:hidden;text-align:left;min-width:0;background:#f7f8ed}
.aqua-theme-grid button[aria-pressed=true]{border:2px solid #509589;background:#e8f2e6}.aquarium-game .aqua-theme-grid button:disabled{opacity:.75}
.aqua-theme-grid img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}.aqua-theme-grid span{display:block;margin:10px 7px 5px;font-size:15px}.aqua-theme-grid small{display:block;margin:0 7px;font-size:12px;font-weight:400}
.aqua-unlock-meter{height:7px;display:block;margin:12px 7px 7px;background:#dfe6d6;border-radius:9px;overflow:hidden}.aqua-unlock-meter b{display:block;height:100%;background:linear-gradient(90deg,#9abe9e,#5a9385)}
.aqua-light-choices button[aria-pressed=true]{border-color:#498b80;background:#e3eee0}
.aqua-shop{border-color:#ddd6b9;background:linear-gradient(130deg,#fdf7e4,#fcfcf1);margin-top:28px}.aqua-shop-card{background:#fcf9eb;border-color:#e2ddc5}.aqua-shop-card img{height:155px}.aqua-shop-card button{min-height:48px}.aqua-decor-footer{margin-top:18px;display:flex;justify-content:flex-end}
.aqua-photo-album{background:repeating-linear-gradient(0deg,#fefbf0 0px,#fefbf0 22px,#f8f4e7 23px,#fefbf0 24px)}.aqua-photo-album>p{font-size:13px;color:#748679}
.aqua-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.aqua-photo-grid button{padding:9px 9px 14px;background:#fffdf6;border-radius:7px;box-shadow:0 4px 10px #5b72591c;min-width:0}.aqua-photo-grid button:nth-child(3n+1){rotate:-1deg}.aqua-photo-grid button:nth-child(3n){rotate:1deg}.aqua-photo-grid span{display:block;font-size:12px;margin-top:12px}
.aqua-photo-scene{position:relative;aspect-ratio:3/2;overflow:hidden;isolation:isolate;border-radius:6px;background:#79c3c6}.aqua-photo-scene .aqua-backdrop{border-radius:0;object-fit:cover}.aqua-photo-fish,.aqua-photo-decoration{position:absolute;transform:translate(-50%,-50%);z-index:2;pointer-events:none}.aqua-photo-fish img{display:block;width:100%;height:auto;transform:scaleX(var(--facing,1))}.aqua-photo-decoration{width:21%;height:27%;z-index:3}.aqua-photo-decoration img{width:100%;height:100%;object-fit:contain}
.aqua-photo-open{background:#fffdf7;border:1px solid #ddd9bf;padding:14px;border-radius:14px;max-width:780px;margin:auto}.aqua-photo-open>p{font-size:13px;text-align:center}.aqua-photo-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.aqua-photo-actions button{font-size:14px}
.aqua-album-empty{display:flex;align-items:center;justify-content:center;gap:18px;padding:35px 20px;border:2px dashed #d7ddc3;border-radius:15px;color:#77927e}.aqua-album-empty svg{width:40px;height:40px;flex-shrink:0}.aqua-album-empty p{font-size:14px;line-height:1.8}
@media(max-width:900px){.aqua-habitat-grid{grid-template-columns:minmax(0,1fr) 210px;gap:18px}.aqua-companion{padding:16px}.aqua-care-banner{gap:14px!important;padding:16px!important}.aqua-wallet small{max-width:150px}.aqua-tool-row button{font-size:14px;gap:6px}}
@media(max-width:700px){
 .aquarium-game .aqua-care-banner{grid-template-columns:1fr 1fr;gap:14px}.aqua-round{grid-column:1/-1;justify-self:stretch}.aqua-checklist{justify-content:space-between}.aqua-checklist span{flex:1;text-align:center;padding:8px 5px;font-size:13px}
 .aqua-health{align-items:flex-end}.aqua-health span{font-size:12px}.aqua-health meter{width:100px}.aqua-wallet{font-size:17px}.aqua-wallet small{font-size:10px}
 .aqua-tool-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.aqua-tool-row button{flex-direction:column;gap:5px;padding:10px 2px!important;font-size:10px!important;min-height:67px;border-radius:13px}.aqua-tool-row svg{width:25px;height:25px}.aqua-tool-hint{font-size:12px;line-height:1.6;padding:0 4px;margin-bottom:14px}
 .aqua-habitat-grid{grid-template-columns:1fr;gap:17px}.aqua-companion{display:grid;grid-template-columns:86px minmax(0,1fr);text-align:left;gap:5px 14px;padding:17px;border-radius:22px}.aqua-companion-kicker{grid-column:1/-1}.aqua-companion .aqua-portrait{grid-column:1;grid-row:2/5;width:86px;height:86px;margin:5px 0}.aqua-companion h2{grid-column:2;margin:9px 0 0;font-size:17px}.aqua-friend-description{grid-column:2;font-size:12px;margin:0}.aqua-growth-block{grid-column:2;margin:0;padding:8px 10px}.aqua-bond{grid-column:1/-1;margin:10px 0 5px}.aqua-friend-need{grid-column:1/-1;margin:6px 0}.aqua-companion>button{grid-column:1/-1;max-width:100%;font-size:15px!important;margin:6px 0 0}.aqua-companion #takeAquaPhoto{margin-top:6px}.aqua-first-companion{display:block;text-align:center}.aqua-first-companion p{font-size:13px}
 .aquarium-game .aqua-stage#livingTank{aspect-ratio:3/2}.aqua-local-notice{font-size:12px;padding:10px 12px;margin-top:12px}.aqua-friend-picker button{min-width:0;width:calc(25% - 6px);padding:5px}.aqua-friend-picker span{font-size:9px}.aqua-friend-picker img{height:38px}.aqua-play-bubble{width:48px!important;height:48px!important}
 .aqua-theme-panel,.aqua-photo-album,.aqua-shop{padding:17px;margin-top:20px;border-radius:22px}.aqua-section-heading{gap:10px}.aqua-section-heading h2{font-size:18px;line-height:1.5}.aqua-section-heading>strong{font-size:11px;padding:9px 10px}.aqua-theme-grid{gap:8px}.aqua-theme-grid button{padding:4px;border-radius:13px}.aqua-theme-grid span{font-size:10px;line-height:1.5;margin:7px 3px 5px}.aqua-theme-grid small{font-size:9px;line-height:1.5;margin:0 3px}.aqua-unlock-meter{margin:8px 3px 4px;height:6px}.aqua-light-choices{gap:6px}.aqua-light-choices button{font-size:11px;padding:10px}
 .aqua-shop-card img{height:115px}.aqua-decor-footer button{width:100%;font-size:13px}.aqua-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aqua-photo-grid button{padding:6px 6px 10px}.aqua-album-empty{gap:12px;padding:18px 14px}.aqua-album-empty p{font-size:12px}.aqua-photo-actions button{width:100%}
}
@media(prefers-reduced-motion:reduce){.aqua-call-ripple{animation:none;opacity:.65}.aqua-photo-grid button{rotate:0deg}}
