#aquarium-resident-search{font:inherit;font-size:14px;min-height:42px;border:1px solid #87b9be;border-radius:10px;padding:9px 14px;background:#eff9f5;color:#16545c;cursor:pointer}
#aquarium-resident-search:hover{background:#d9eee6}
#aquarium-resident-search.resident-card-floating{position:absolute;right:14px;top:58px;z-index:45;box-shadow:0 3px 14px #003c4620}
#aquarium-resident-search.resident-card-tv-trigger{position:fixed;top:auto;bottom:80px;right:18px;z-index:85;font:16px Arial,sans-serif;max-width:calc(100vw - 36px)}
#aquarium-resident-dialog[hidden],#aquarium-resident-dialog [hidden],#aquarium-resident-highlight[hidden],#aquarium-resident-search[hidden]{display:none!important}
#aquarium-resident-dialog{position:fixed;inset:0;z-index:2147483646;display:flex;align-items:center;justify-content:center;padding:18px;color:#173e46;font:16px/1.45 system-ui,Arial,sans-serif;isolation:isolate}
.resident-card-shade{position:absolute;inset:0;background:#092f3ecc}
.resident-card-box{position:relative;box-sizing:border-box;width:460px;max-width:100%;max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;background:#fcfdf8;border:1px solid #b6d1cc;border-radius:18px;padding:22px;box-shadow:0 20px 70px #00192360}
.resident-card-top{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}
.resident-card-top h2{margin:0;font-size:23px;line-height:1.3;overflow-wrap:anywhere}
.resident-card-close{flex-shrink:0;background:#e9f1eb;color:#1f5355;border:0;border-radius:50%;font:26px/1 Arial,sans-serif;width:40px;height:40px;cursor:pointer}
.resident-card-search-label{display:block;font-size:13px;font-weight:600;margin:10px 0 14px}
.resident-card-search-label input{box-sizing:border-box;display:block;width:100%;min-height:46px;font:16px system-ui,sans-serif;color:#163f46;background:#fff;border:1px solid #9bbfbb;border-radius:9px;padding:10px 12px;margin-top:7px}
.resident-card-list{max-height:55vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.resident-card-row{box-sizing:border-box;display:flex;width:100%;align-items:center;gap:12px;text-align:left;color:#173e46;background:transparent;border:0;border-bottom:1px solid #e2e9de;border-radius:8px;padding:10px 8px;min-height:72px;font:inherit;cursor:pointer}
.resident-card-row:hover,.resident-card-row:focus{background:#e7f1e9}
.resident-card-row img{width:70px;height:46px;object-fit:contain;border-radius:6px;background:#eaf2e6;flex-shrink:0}
.resident-card-row>span:not(.resident-card-arrow){min-width:0}
.resident-card-row strong{display:block;font-size:16px;overflow-wrap:anywhere}
.resident-card-row small{display:block;font-size:12px;color:#758d7e;margin-top:4px}
.resident-card-arrow{margin-left:auto;font-size:24px;color:#7a9c8c}
.resident-card-placeholder{font-size:30px;width:70px;text-align:center;color:#84a6a1;flex-shrink:0}
.resident-card-status,.resident-card-hint{font-size:12px!important;line-height:1.55!important;color:#738b7d;margin:14px 0 0!important}
.resident-card-empty{padding:20px 0;color:#647f72;font-size:14px}
.resident-card-art{display:flex;align-items:center;justify-content:center;width:100%;height:155px;border-radius:12px;background:linear-gradient(135deg,#e0eee2,#d8edf0);overflow:hidden}
.resident-card-art img{display:block;max-width:90%;max-height:145px;object-fit:contain}
.resident-card-species{font-size:14px!important;color:#50776e;margin:10px 0 20px!important}
.resident-card-stats{display:flex;gap:25px;margin:16px 0 20px}
.resident-card-stats>div{flex:1}
.resident-card-stats small{display:block;font-size:12px;color:#799382;margin-bottom:5px}
.resident-card-stats strong{display:block;font-size:15px;font-weight:600}
.resident-card-growth-label{display:flex;justify-content:space-between;font-size:13px;margin:10px 0 7px;gap:10px}
.resident-card-growth{height:9px;background:#e0eadd;border-radius:20px;overflow:hidden}
.resident-card-growth i{display:block;height:100%;background:#6fae97;border-radius:20px}
.resident-card-fact{background:#f0f0de;border-radius:11px;padding:15px;margin:18px 0}
.resident-card-fact strong{font-size:14px;color:#5e6d3f}
.resident-card-fact p{font-size:15px!important;line-height:1.6!important;color:#526d5f;margin:7px 0 0!important}
.resident-card-find{width:100%;min-height:46px;background:#08677a;border:1px solid #08677a;color:#fff;border-radius:10px;padding:10px 14px;font:600 15px system-ui,sans-serif;cursor:pointer}
.resident-card-back{margin-top:12px;min-height:40px;background:transparent;color:#406b64;border:1px solid #bed1bf;border-radius:9px;padding:8px 12px;font:14px system-ui,sans-serif;cursor:pointer}
#aquarium-resident-dialog :focus-visible,#aquarium-resident-search:focus-visible{outline:3px solid #f1ba49;outline-offset:2px}
#aquarium-resident-highlight{box-sizing:border-box;position:absolute;z-index:42;border:3px solid #fff6a1;border-radius:50%;box-shadow:0 0 20px #fff6a1c0,inset 0 0 10px #fff6a140;transform:translate(-50%,-50%);pointer-events:none;background:transparent}
@media(max-width:600px){.resident-card-box{padding:17px;border-radius:14px}.resident-card-top h2{font-size:21px}.resident-card-row img{width:58px;height:43px}.resident-card-art{height:135px}.resident-card-art img{max-height:125px}#aquarium-resident-search.resident-card-floating{font-size:12px;right:10px;top:48px;padding:7px 10px}}
@media(max-height:520px){.resident-card-art{height:90px}.resident-card-art img{max-height:85px}.resident-card-box{padding:15px}.resident-card-stats{margin:10px 0}.resident-card-fact{margin:10px 0;padding:10px}}

/* Read-only five-round discovery game. */
#aquarium-find-game{font:inherit;font-size:14px;min-height:42px;border:1px solid #d5af46;border-radius:10px;padding:9px 14px;background:#fff2bc;color:#574219;cursor:pointer}
#aquarium-find-game.resident-game-floating{position:absolute;right:14px;top:106px;z-index:45}
#aquarium-find-game.resident-game-tv{position:fixed;top:auto;bottom:130px;right:18px;z-index:85}
#aquarium-find-hud{box-sizing:border-box;position:absolute;left:14px;top:14px;z-index:90;width:360px;max-width:calc(100% - 28px);max-height:calc(100% - 28px);overflow:auto;padding:15px;border:1px solid #b6ded8;border-radius:16px;background:rgba(246,255,249,.96);color:#174b52;font:15px/1.4 system-ui,Arial,sans-serif;box-shadow:0 8px 30px #00384433}
#aquarium-find-hud[hidden],#aquarium-find-game[hidden],#aquarium-find-hud [hidden]{display:none!important}
.resident-game-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.resident-game-top button{background:transparent!important;color:#174b52!important;font-size:24px!important;min-width:36px}
#aquarium-find-hud h3{font-size:20px;line-height:1.25;margin:10px 0;overflow-wrap:anywhere}#aquarium-find-hud p{font-size:14px;margin:8px 0;color:#416e6c}
.resident-game-actions{display:flex;gap:8px;flex-wrap:wrap}#aquarium-find-hud button{cursor:pointer;border:1px solid #a8c7bc;border-radius:8px;background:#e3f1e4;color:#225b57;padding:8px;font:inherit;min-height:38px}
.resident-game-choices{max-height:180px;overflow:auto;margin-top:10px}.resident-game-choice{display:block;width:100%;text-align:left;margin:5px 0}#aquarium-find-hud :focus-visible,#aquarium-find-game:focus-visible{outline:3px solid #eaa72d;outline-offset:2px}
.resident-game-stars{position:absolute;inset:0;pointer-events:none;overflow:hidden}.resident-game-stars span{position:absolute;top:70%;color:#d79310;font-size:25px;animation:resident-stars 1.4s ease-out forwards}
@keyframes resident-stars{0%{opacity:0;transform:translateY(0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translateY(-140px) rotate(100deg) scale(1.1)}}
@media(max-width:600px){#aquarium-find-hud{width:285px;padding:11px;left:8px;top:8px;max-height:calc(100% - 16px)}#aquarium-find-hud h3{font-size:17px}#aquarium-find-hud p{font-size:12px}.resident-game-actions button{font-size:12px!important}#aquarium-find-game.resident-game-floating{right:10px;top:92px;font-size:12px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.resident-game-stars span{animation:none;opacity:.8;top:20%}}
