:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#254954;background:#125661;--paper:#eff9ef;--wood:#3d737a;--green:#277f79;--line:#81aeb0;--farm:url('assets/farm.webp')}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at top,#79c9c9,#164d61 75%)}button,input,select{font:inherit}button{cursor:pointer;color:inherit;font-weight:700;border:1.5px solid #7ba5a5;border-radius:13px;background:#e7f3ec;padding:9px 12px;box-shadow:0 2px 0 #5c9596;touch-action:manipulation}button:active{transform:translateY(2px);box-shadow:none}button:disabled{opacity:.5;cursor:default;transform:none}button:focus-visible,a:focus-visible{outline:3px solid #377d94;outline-offset:2px}#game{max-width:510px;margin:0 auto;min-height:100dvh;background:#d2eae5;position:relative;box-shadow:0 0 45px #29332180;display:flex;flex-direction:column}header{position:sticky;top:0;z-index:5;padding:9px 10px;background:#c1e5df;border-bottom:2px solid #609fa5;box-shadow:0 3px 9px #3a36202c}.brand{display:flex;align-items:center;gap:8px}.brand>span{font-size:25px}.brand #name{flex:1;font-size:18px;background:#f1f9ee;padding:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon{padding:5px 10px;font-size:20px}.wallet{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:8px}.wallet div{min-width:0;border:1px solid #87b8b8;background:#ecf8f4;border-radius:9px;padding:3px 1px;text-align:center;font-size:12px;white-space:nowrap;font-weight:700}.wallet small{display:block;font-size:9px;color:#756044}#screen{flex:1;min-height:65vh}.farm{position:relative;aspect-ratio:941/1215;background-image:var(--farm);background-size:100% 100%;overflow:hidden}.farm .hint{position:absolute;left:40%;top:23%;width:32%;height:14%;padding:5px;background:#f8e8c3;border:1.5px solid #9a794d;border-radius:13px;display:flex;justify-content:center;align-items:center;text-align:center;font-size:clamp(11px,3vw,15px);font-weight:700;box-shadow:0 2px 4px #30250f33}.plot{position:absolute;display:flex;align-items:center;gap:4px;padding:6px 8px;background:#f9e9c8ed;border:1.5px solid #866941;box-shadow:0 2px 4px #352c1b66;font-size:13px;min-height:36px;max-width:47%;animation:appear .25s ease}.plot.ready{background:#e3edaa;border-color:#738344}.plot .dot{display:inline-block;width:7px;height:7px;border-radius:100%;background:#77983b;animation:pulse 2s infinite}.plot[data-key=dew]{left:6%;top:46%}.plot[data-key=spores]{left:6%;top:59%}.plot[data-key=food]{left:6%;top:72%}.plot[data-key=crystal]{left:30%;top:88%}.farm .home{left:11%;top:12%}.farm .nest{right:3%;top:39%}.floatfx{position:absolute;color:white;text-shadow:0 2px 3px #364522;font-weight:900;font-size:20px;pointer-events:none;animation:floatup .9s forwards;z-index:3}@keyframes floatup{to{transform:translateY(-45px);opacity:0}}@keyframes pulse{50%{opacity:.45;transform:scale(.8)}}@keyframes appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.farmbottom{display:flex;padding:8px 10px;gap:8px;align-items:center;background:#d3d6a0}.farmbottom button{flex:1}.primary{background:#bfd073;border-color:#718344}.secondary{background:#f3e5c5}.section{padding:12px;animation:appear .2s ease}.heading{margin:0 0 12px;font-size:23px;text-align:center;background:#e8c78f;border:1.5px solid #a18153;border-radius:12px;padding:8px;box-shadow:0 2px 0 #9d7948}.muted{color:#766447;font-size:13px}.panel{background:#edf8f3;border:1.5px solid #b7a071;border-radius:14px;padding:12px;margin-bottom:10px;box-shadow:0 2px 0 #bca57455}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.petcard{display:flex;flex-direction:column;gap:5px;min-width:0;background:#eff8f2;border:1.5px solid #8cb8b7;border-radius:13px;padding:6px;box-shadow:0 2px 0 #8cb8b755}.petcard img{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:8px}.petcard strong{font-size:14px;overflow-wrap:anywhere}.petcard small{font-size:11px;color:#766447}.rarity{font-size:10px;padding:3px 6px;border-radius:7px;align-self:flex-start;background:#c8e6d7}.rarity.rare{background:#c9e3e5}.rarity.epic{background:#dec9e7}.rarity.legendary{background:#f5d38b}.petcard button{font-size:12px;padding:7px 3px;margin-top:auto}.tabs{display:flex;gap:6px;margin-bottom:12px}.tabs button{flex:1;font-size:13px}.active{background:#a7ddd0;border-color:#5a9c96}.resource,.quest{display:flex;align-items:center;gap:10px}.resource .symbol,.quest .symbol{font-size:29px}.resource .info,.quest .info{flex:1;min-width:0}.resource b,.quest b{display:block}.resource button,.quest button{font-size:12px}.bar{height:8px;border-radius:7px;background:#c2dedb;overflow:hidden;margin-top:5px}.bar i{display:block;height:100%;background:#459e91}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row button{flex:1}.statgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.statgrid div{background:#dceee7;border-radius:8px;padding:8px}.statgrid b{display:block}nav{position:sticky;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:8px;background:linear-gradient(#8fc9cf,#6eb4bd);padding:10px 10px calc(10px + env(safe-area-inset-bottom));border-top:2px solid #5f9da6;overflow:visible}nav button{font-size:12px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;display:flex;align-items:flex-end;justify-content:center;min-height:54px;position:relative}nav button:active{transform:none}nav span{display:block;font-size:42px;line-height:1;filter:drop-shadow(0 2px 1px #41565a55)}nav button.active span{transform:translateY(-2px) scale(1.05)}nav button.nav-home{margin-top:-42px;min-height:96px;z-index:2}nav button.nav-home span{font-size:82px;filter:drop-shadow(0 6px 4px #35505655)}nav button.nav-home.active span{transform:translateY(-2px) scale(1.04)}nav button::after{content:'';position:absolute;left:20%;right:20%;bottom:-4px;height:4px;border-radius:999px;background:transparent}nav button.active::after{background:#2d6f79}footer{display:flex;justify-content:space-between;padding:5px 12px;font-size:10px;color:#796c50}footer a{color:inherit}dialog{width:min(94vw,440px);max-height:85dvh;overflow:auto;border:2px solid #75a4aa;border-radius:18px;background:#edf8f3;color:#254954;padding:15px;box-shadow:0 10px 50px #0006}dialog::backdrop{background:#123e5299}dialog h2{margin:0 0 10px}dialog select,dialog input{width:100%;padding:9px;border:1px solid #81aeb0;border-radius:8px;background:#f3fbf7;color:#254954;margin:7px 0}dialog .close{width:100%;margin-top:10px}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:20;background:#246e77;color:white;border-radius:13px;padding:10px 15px;opacity:0;pointer-events:none;transition:opacity .15s;text-align:center;font-size:14px}#toast.show{opacity:1}#toast.error{background:#9c5042} @media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:355px){.wallet div{font-size:10px}.plot{font-size:11px}.heading{font-size:20px}nav span{font-size:34px}nav button.nav-home span{font-size:68px}}
.farm .resident{position:absolute;left:51%;top:69%;width:13%;min-width:42px;aspect-ratio:120/95;padding:0;border:0;background:transparent;box-shadow:none;animation:stroll 5s ease-in-out infinite;z-index:2}.resident img{width:100%;display:block;filter:drop-shadow(0 2px 1px #53442944)}@keyframes stroll{0%,100%{transform:translate(0,0) rotate(-3deg)}50%{transform:translate(15%, -10%) rotate(3deg)}}
/* v0.2.0 — modular illustrated farm */
.map-shell{background:#abd5d1;padding:10px 0 0}.map-title{display:flex;justify-content:space-between;align-items:center;padding:6px 12px 10px}.map-title small,.map-title b{display:block}.map-title small{font-size:10px;letter-spacing:1.5px;color:#697246}.map-title b{font-size:23px}.map-note{font-size:12px;text-align:center;color:#58633e;padding:8px 8px}.world{position:relative;overflow:hidden;border:0;border-radius:0;padding:12px 10px 18px;background:#7ab9bc url('assets/meadow.svg') center/100% 100%;min-height:360px;box-shadow:inset 0 0 30px #5e774133}.world-grid{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:minmax(34px,1fr);gap:4px;z-index:1}.tile{position:relative;padding:0;min-width:0;display:flex;justify-content:center;align-items:center;border:1px solid rgba(98,140,128,.28);background:rgba(255,255,255,.08);box-shadow:none;border-radius:10px;flex-direction:column;min-height:34px}.tile:active{transform:none}.tile.empty{cursor:default}.tile.building-tile{grid-column:var(--gc)/span 2;grid-row:var(--gr)/span 2;min-height:72px;background:rgba(240,249,231,.18);border-color:rgba(88,157,165,.35)}.tile .building{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 2px #3b442c36)}.tile-label{position:absolute;bottom:2px;left:2px;right:2px;font-size:10px;line-height:1.2;text-align:center;border:1px solid #85abad;background:#f1faefe8;border-radius:7px;padding:3px 2px;white-space:normal}.tile-label small{display:block;font-size:10px}.tile.ready .tile-label{background:#b4e2c7}.hide-names067 .tile-name067{display:none}.hide-names067 .tile-label.has-stock067{padding-top:4px}.hide-names067 .tile-label:not(.has-stock067){display:none}.editing .tile{border:1px dashed #536a42;background:#f3e6b840;cursor:pointer}.editing .tile.selected,.editing .tile.building-tile.selected{border:2px solid #936033;background:#f6d28b9c}.plus{font-size:18px;color:#657b46}.walker{position:absolute;left:var(--x);top:var(--y);z-index:3;width:15%;border:0;background:transparent;padding:0;box-shadow:none;animation:walk 7s ease-in-out infinite;animation-delay:var(--delay);filter:drop-shadow(0 2px 1px #52603c55)}.walker img{width:100%;display:block}.map-build52{position:absolute;right:12px;top:10px;z-index:4;width:44px;height:44px;border-radius:999px;border:1.5px solid #7ba5a5;background:#eff8f3d9;box-shadow:0 2px 0 #5c9596}.map-build52 svg,.map-build52 img,.map-build52 span{width:22px;height:22px}.map-footnote0611{padding:8px 12px 0} .build-list{padding:0 12px 12px} @media(max-width:355px){nav button{min-height:48px}nav button.nav-home{margin-top:-32px;min-height:84px}nav span{font-size:31px}nav button.nav-home span{font-size:62px}.world-grid{gap:3px}.tile{min-height:30px}.tile.building-tile{min-height:64px}.tile-label{font-size:9px}}@keyframes walk{0%,100%{transform:translate(-10%,-5%) rotate(-2deg)}50%{transform:translate(35%,18%) rotate(3deg)}}.build-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0}.build-list button{font-size:12px;padding:3px;display:flex;flex-direction:column;align-items:center}.build-list img{width:72px;max-width:100%}.build-list small{font-size:11px}.lab .parents{display:grid;grid-template-columns:1fr 1fr;gap:8px}.parent{text-align:center;min-width:0;display:flex;flex-direction:column;gap:7px}.parent img{width:100%;aspect-ratio:1.4;object-fit:contain;background:#c6e5e4;border-radius:8px}.parent select{font-size:12px;width:100%;background:#f3fbf7;border:1px solid #ad9367;border-radius:8px;padding:8px 3px;color:inherit}.parent small{font-size:11px;color:#736141}.labintro{background:#d6eee5}.labintro p{margin-bottom:0}.heartlink{text-align:center;font-size:30px;color:#ba7264;line-height:1;margin:-5px auto 8px}.incubate{text-align:center}.incubate p{margin:4px 0}.incubate button{display:block;width:100%;margin-top:10px}.egg-placeholder{font-size:46px;display:block;text-align:center}.eggrow{display:flex;gap:10px;align-items:center}.eggrow .info{flex:1}.eggrow .info>*{display:block}.eggrow small{font-size:11px;color:#766447}.eggrow [data-timer]{font-weight:700;color:#637d40}.portrait{width:100%;max-height:250px;object-fit:contain;border-radius:12px;background:#c4e5e2}.line-node{display:flex;align-items:center;gap:6px;border:1px solid #b7a071;border-radius:9px;background:#f6e4bd;padding:4px;margin:4px 0;min-width:0}.line-node img{width:40px;height:40px;object-fit:contain;border-radius:6px}.line-node div{min-width:0}.line-node b,.line-node small{display:block;overflow-wrap:anywhere;font-size:11px}.ancestors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-left:6px;padding-left:5px;border-left:1px solid #9b885b}.ancestors .ancestors{display:block}.ancestors button{font-size:11px;padding:4px}.lab h2{font-size:18px}.map-shell .farmbottom{background:transparent;padding:8px 0 0}@media(max-width:370px){.tile-label,.tile-label small{font-size:9px}.map-title b{font-size:19px}.world{padding:7px 3px}.map-shell{padding:6px}}
.lab .panel{padding:10px;margin-bottom:8px}.labintro p{margin:5px 0 0;font-size:12px}.parent img{aspect-ratio:1.65}.parent{gap:5px}.lab .egg-placeholder{font-size:37px}.lab .incubate p{font-size:13px}.lab .incubate button{margin-top:7px}.lab .parent small{min-height:27px}.lab .heading{margin-bottom:8px}nav button{white-space:nowrap;overflow-wrap:normal}nav button span{line-height:1.4}
/* Network screens */
.lot,.neighbor{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lot-art{width:76px;height:76px;display:grid;place-items:center;flex:none;background:#e9dbac;border-radius:12px}.lot-art img{width:100%;height:100%;object-fit:cover;border-radius:12px}.lot-art span{font-size:37px}.lot .info,.neighbor .info{flex:1;min-width:120px}.neighbor-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.neighbor-actions button,.lot button{padding:7px 10px;font-size:12px}.trade{display:grid;gap:4px}.trade small,.neighbor small,.lot small{display:block;color:#766244}.price-chart{width:100%;height:auto;background:#f7e9c7;border-radius:10px}.visit-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#a9bc79;gap:3px;padding:5px;border:2px solid #788d4f;border-radius:12px}.visit-grid>div{aspect-ratio:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#c6cf91;border:1px solid #a1ac70;border-radius:5px}.visit-grid img{width:82%;height:70%;object-fit:contain}.visit-grid small{font-size:9px;text-align:center}.visit-pets{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.visit-pets img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:10px}.visit-pets small{display:block;font-size:11px;text-align:center}.family-tree{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:5px;margin:5px 0}.family-node{border:1px solid #b6a377;border-radius:7px;padding:5px;min-width:0;overflow-wrap:anywhere;font-size:12px}.family-node small{display:block;font-size:10px}.family-node .family-tree{display:block}.family-node .family-node{margin:3px 0}.brand .icon{flex:none}.brand #name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* v0.4.0 adventure */
#nav{grid-template-columns:repeat(6,minmax(0,1fr))}#nav button{font-size:10px;min-width:0}#nav span{font-size:21px}.weather-strip{border:1px solid #b5a16c;background:#e2e9b9;border-radius:12px;padding:9px;font-size:12px;text-align:center;margin-bottom:12px}.rpg-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.trail-map{position:relative;background:linear-gradient(#b9cc90d9,#d7c69ad9),url('assets/meadow.svg') center/cover;border:2px solid #8f9463;border-radius:18px;padding:16px 12px;display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:12px 0}.trail-node{min-height:102px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#f7e8c5;position:relative}.trail-node small{font-size:10px}.zone-symbol{font-size:30px;line-height:1.1}.chosen{outline:3px solid #819c4c;outline-offset:1px;background:#e4ebba!important}.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.team-pet{display:flex;flex-direction:column;align-items:center;padding:6px;gap:4px;min-width:0;overflow-wrap:anywhere;font-size:12px}.team-pet img{width:100%;aspect-ratio:1.5;object-fit:contain;border-radius:8px}.team-pet small{font-size:11px}.trip-active{text-align:center}.trail-walk{display:flex;justify-content:center;background:#dae5ba;border-radius:12px;padding:12px;overflow:hidden}.trail-walk img{width:24%;animation:trail-step 1.2s ease-in-out infinite alternate}.trail-walk img:nth-child(even){animation-delay:-.6s}@keyframes trail-step{to{transform:translateY(-5px) rotate(3deg)}}.trip-clock{display:block;font-size:30px;margin:8px}.rpg-person{display:flex;align-items:center;gap:12px}.rpg-person img{width:88px;border-radius:9px;object-fit:contain}.rpg-person>div{flex:1;min-width:0}.rpg-person p{font-size:12px;margin:5px 0}.rpg-task{border-top:1px dashed #bdac7e;padding:9px 0;display:grid;grid-template-columns:1fr auto;gap:5px;align-items:center}.rpg-task span{font-size:12px;grid-column:1}.rpg-task button{grid-column:2;grid-row:1/3}progress{width:100%;accent-color:#80964f}details summary{cursor:pointer} @media(prefers-reduced-motion:reduce){.trail-walk img,.walker{animation:none!important}}
/* v0.5 visual components: replaceable art, responsive map, accessible controls */
:root{--th-paper:#edf8f3;--th-ink:#4e402c;--th-accent:#889e59}.building-icon{font-size:32px;line-height:1.1;filter:drop-shadow(0 3px 1px #69563155)}.world-grid{grid-auto-rows:minmax(78px,1fr)}.build-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:360px;overflow:auto}.build-list button small{white-space:normal;line-height:1.25}.map-title small{display:block}.resource button{min-width:0}.petcard img{object-fit:contain}.panel details{overflow-wrap:anywhere}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #487443;outline-offset:2px}@media(max-width:380px){.resource{flex-wrap:wrap}.tile-label{font-size:10px}.building-icon{font-size:25px}}
/* v0.5.1 — compact responsive layout and locally drawn UI symbols */
.ui-icon{display:inline-block;width:1.18em;height:1.18em;vertical-align:-.23em;flex:none;color:#6c5239;overflow:visible}nav .ui-icon{display:block;width:23px;height:23px;margin:0 auto 3px}.brand .icon .ui-icon{width:22px;height:22px}.brand>span .ui-icon{width:26px;height:26px}.building-icon .ui-icon,.symbol .ui-icon{width:1.1em;height:1.1em}.wallet .ui-icon{width:14px;height:14px}.egg-placeholder .ui-icon{width:34px;height:34px}.brand{gap:6px}.brand #name{min-width:0;font-size:16px}.brand .icon{display:grid;place-items:center;padding:6px;min-width:36px;min-height:36px}.wallet div{white-space:normal;overflow-wrap:anywhere;line-height:1.15}.wallet small{margin-top:3px}.wallet{gap:4px}header{padding:7px 8px}#screen{min-height:0;flex:1}.section{padding:10px}.heading{font-size:20px;padding:7px;margin:0 0 10px}.panel{padding:10px;margin-bottom:8px;min-width:0;overflow-wrap:anywhere}.tabs{gap:5px;margin-bottom:9px}.tabs button{min-width:0;padding:8px 4px;font-size:12px;overflow-wrap:anywhere}.row>*{min-width:0}.row button{min-width:0}.resource{gap:7px}.resource .symbol{font-size:22px}.resource button,.quest button{padding:8px 7px;min-height:36px}nav{gap:4px;padding:5px 5px max(6px,env(safe-area-inset-bottom));grid-template-columns:repeat(6,minmax(0,1fr))}nav button{min-height:46px;border-radius:11px;font-size:10px;padding:4px 1px;line-height:1.1}footer{font-size:9px;padding:3px 8px}dialog{width:min(calc(100% - 20px),430px);max-height:calc(100dvh - 24px);padding:12px;margin:auto;overscroll-behavior:contain}dialog h2{font-size:19px;line-height:1.2;overflow-wrap:anywhere}dialog p{margin:6px 0 10px}dialog .close{margin-top:8px;padding:8px}dialog input,dialog select{min-width:0;max-width:100%;margin:5px 0 8px}button{max-width:100%;overflow-wrap:anywhere}.mini{display:inline-grid;place-items:center;min-width:40px;min-height:40px;padding:7px;border-radius:10px;flex:none}.mini .ui-icon{width:20px;height:20px}.full{width:100%;margin-top:5px}.pet-title{display:flex;gap:8px;align-items:center;margin-bottom:8px}.pet-title h2{margin:0;flex:1;min-width:0}.pet-summary{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);gap:10px;align-items:center;padding:8px;background:#d8eeeb;border-radius:12px}.pet-portrait{width:100%;aspect-ratio:1.35;object-fit:contain;border-radius:10px}.pet-meta{min-width:0;display:flex;flex-direction:column;gap:4px;font-size:13px}.pet-meta small{font-size:11px;overflow-wrap:anywhere}.pet-meta .bar{margin:0}.pet-group{margin-top:10px}.pet-group h3{margin:0 0 5px;font-size:12px;color:#756443;font-weight:700}.pet-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.pet-actions button{text-align:left;font-size:13px;padding:7px 8px;min-height:45px;border-radius:10px;box-shadow:0 1px 0 #5c9596}.pet-actions small{display:block;font-weight:400;font-size:10px;color:#67573a;margin:3px 0 0}.pet-passport{padding:9px 2px 0;margin-top:9px;border-top:1px solid #c5ac7e;font-size:12px;overflow-wrap:anywhere}.birth-head{text-align:center;display:grid;justify-items:center;gap:5px}.birth-head h2,.birth-head p{margin:0}.birth-portrait{width:min(100%,180px);aspect-ratio:1.35;object-fit:contain;border-radius:14px}.name-tools{margin:10px 0 0}.name-tools label,label[for=petname]{font-size:12px;color:#67573a}.name-line{display:flex;align-items:center;gap:6px}.name-line input{flex:1;min-width:0;margin:5px 0}.achievement-summary{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px}.achievement-summary>.ui-icon{width:32px;height:32px}.achievement-summary small,.achievement-summary p{grid-column:1/-1;margin:0}.achievement{display:flex;align-items:center;gap:10px}.achievement .info{min-width:0;flex:1}.achievement b,.achievement small{display:block}.achievement small{font-size:11px;color:#6d5d42}.achievement.earned{border-color:#839451;background:#e7edc4}.medal{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ead7ac;flex:none}.medal .ui-icon{width:24px;height:24px}.page-nav{justify-content:center}.page-nav button{flex:0 0 44px}.forest-bonus{position:absolute;z-index:3;top:8px;left:8px;right:8px;display:flex;justify-content:space-between;align-items:center;gap:8px;background:#edf8f3;border:1.5px solid #9e8858;border-radius:12px;padding:8px;box-shadow:0 4px 12px #4d4a334d;animation:appear .2s ease}.forest-bonus small{display:block;font-size:10px}.forest-bonus button{flex:none;padding:8px;background:#c5d48b}.map-shell{padding:8px}.map-title{padding:2px 1px 6px}.map-title b{font-size:19px}.map-title button{padding:7px 10px}.weather-strip{font-size:11px;padding:5px 7px;margin-bottom:6px}.world .walker{max-width:14%;transform:translateX(-25%)}.farmbottom{padding:7px 0;gap:5px}.farmbottom button{padding:8px 4px;font-size:12px}.map-note{padding:3px;font-size:10px}.cards{gap:7px}.petcard{padding:6px;gap:4px}.petcard img{aspect-ratio:1.55}.petcard button{min-height:35px}.statgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.statgrid div{min-width:0;overflow-wrap:anywhere}.rpg-task{grid-template-columns:minmax(0,1fr) auto}.rpg-task button{min-width:0}.build-list{max-height:min(360px,48dvh)}
@media(max-width:360px){.brand{gap:4px}.brand #name{font-size:14px}.brand .icon{min-width:33px;padding:5px}.brand>span{display:none}.wallet div{font-size:10px}.wallet small{font-size:8px}.section{padding:8px}.resource{flex-wrap:wrap}.resource .info{flex-basis:50%}.pet-summary{grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:8px}.pet-actions button{font-size:12px;padding:6px}.map-title b{font-size:17px}nav button{font-size:9px}nav .ui-icon{width:20px;height:20px}}
@media(max-height:640px){header{position:relative}.birth-portrait{width:120px}.pet-portrait{max-height:100px}.pet-group{margin-top:6px}.pet-actions button{min-height:40px}.pet-passport{margin-top:6px}}
/* 0.5.2 compact dashboard */
.brand .level-chip{display:grid;place-items:center;flex:none;min-width:36px;height:36px;padding:0 5px;border:1px solid #a38851;border-radius:10px;background:#b3e2da;color:#45572b;font-size:14px;font-weight:800;white-space:nowrap}.brand #name{text-align:left;padding:6px 8px}.wallet{grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,1.25fr);gap:3px;margin-top:5px;align-items:stretch}.wallet .wallet-counter,.wallet .weather52{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0;white-space:nowrap;padding:4px 2px;font-size:11px;line-height:1.1;min-height:34px;overflow:hidden}.wallet .wallet-counter span{overflow:hidden;text-overflow:ellipsis}.wallet .weather52{flex-direction:column;font-size:9px;background:#d6f0e7;border:1px solid #87b7b5;border-radius:9px;box-shadow:none}.weather52 span{display:flex;align-items:center;gap:1px;white-space:nowrap}.weather52 span .ui-icon{width:10px;height:10px}.wallet .weather52>.ui-icon{width:17px;height:17px}.map-shell{padding:6px}.world{padding-top:43px;position:relative}.map-build52{position:absolute;right:5px;top:5px;z-index:9;width:36px;height:36px;min-height:0;display:grid;place-items:center;padding:4px;background:#edf9f2;border:1px solid #94794b;border-radius:10px;box-shadow:0 2px 2px #4c402740}.map-build52 .ui-icon{width:22px;height:22px}.world.editing .map-build52{background:#b3e1d3}.map-build52:focus-visible{outline:2px solid #526933}.tile .building{object-fit:contain}.guide52 .guide-topic52{padding:10px 12px}.guide-topic52 summary{cursor:pointer;line-height:1.6}.guide-topic52 p{margin:9px 0;line-height:1.5;font-size:13px}.guide-topic52 p:last-child{margin-bottom:0}.guide-intro52{display:flex;align-items:center;gap:12px}.guide-intro52 img{width:78px;height:78px;flex:none}.guide-intro52 p{margin:5px 0}.telegram-link52{display:inline-flex;align-items:center;gap:5px;color:#365f68;font-weight:700}.guide52 .panel small{display:block;margin-top:6px}.guide52 .panel{margin-bottom:8px}#nav{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}#nav button{font-size:10px;padding-inline:1px}#nav .ui-icon{width:21px;height:21px}#nav [data-view=guide]{white-space:nowrap}@media(max-width:360px){.brand .level-chip{display:grid;font-size:12px;min-width:28px}.wallet .wallet-counter,.wallet .weather52{font-size:9px;gap:1px}.wallet .ui-icon{width:12px;height:12px}.wallet .weather52 span{font-size:8px}#nav button{font-size:9px}#nav .ui-icon{width:19px;height:19px}.map-shell{padding:4px}}
/* Directional farm residents, visual-only. */
.world .walker{left:0;top:0;width:clamp(33px,13%,64px);max-width:none;min-height:0;aspect-ratio:156/116;transform:translate3d(calc(var(--walk-x,0px) - 50%),calc(var(--walk-y,0px) - 80%),0);animation:none!important;filter:none;touch-action:manipulation;will-change:transform;isolation:isolate}
.world .walker img{height:100%;object-fit:contain;transform-origin:50% 82%;pointer-events:none;filter:drop-shadow(0 1px 1px #52603c33)}
.world .walker.face-left52 img{transform:scaleX(-1)}
.world .walker.walking52 img{animation:step52 .42s ease-in-out infinite alternate!important}
.world .walker.walking52.face-left52 img{animation:stepLeft52 .42s ease-in-out infinite alternate!important}
.world .walker.bumped52 img{animation:bump52 .25s ease-out 2 alternate!important}
.world .walker.bumped52.face-left52 img{animation:bumpLeft52 .25s ease-out 2 alternate!important}
.walk-reaction{position:absolute;left:56%;top:-13%;font:700 14px/1 var(--game-font09914);color:#80583c;text-shadow:0 1px #eff9ef;background:#eff9ef;border:1px solid #a38a60;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;pointer-events:none}
.walk-reaction:empty{display:none}.walker[data-emotion="happy"] .walk-reaction{color:#b65d59}
@keyframes step52{from{transform:translateY(0) scale(1.01,.99)}to{transform:translateY(-1.8px) scale(.985,1.015)}}
@keyframes stepLeft52{from{transform:translateY(0) scale(-1.01,.99)}to{transform:translateY(-1.8px) scale(-.985,1.015)}}
@keyframes bump52{to{transform:translateY(-4px) rotate(6deg)}}@keyframes bumpLeft52{to{transform:translateY(-4px) scaleX(-1) rotate(6deg)}}
@media(prefers-reduced-motion:reduce){.world .walker img,.world .walker.walking52 img,.world .walker.bumped52 img,.world .walker.walking52.face-left52 img,.world .walker.bumped52.face-left52 img{animation:none!important}}
/* First-run story: compact, readable on narrow screens. */
.welcome52{width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 28px);padding:18px;overflow:auto;overscroll-behavior:contain;text-align:left}.welcome52 h2{font-size:clamp(18px,5vw,24px);line-height:1.2;text-align:center;margin:6px 0 12px}.welcome52 p{font-size:14px;line-height:1.43;margin:0 0 10px}.welcome52 .welcome-art52{position:relative;width:102px;height:82px;margin:0 auto 3px}.welcome-art52 img{width:100%;height:100%;object-fit:contain}.welcome-art52 span{position:absolute;bottom:2px;right:0;background:#eff9ef;border:1px solid #ad9669;border-radius:50%;padding:5px}.welcome-art52 .ui-icon{width:23px;height:23px}.welcome52 .welcome-note52{background:#d2eee3;border-radius:9px;padding:9px 11px;color:#276c70;font-weight:650}.welcome52 .primary{min-height:44px;margin:0}.welcome52 .welcome-error52{color:#a23730;margin:8px 0 0}.welcome52::backdrop{background:#263725b8;backdrop-filter:blur(3px)}@media(max-height:600px){.welcome52{padding:12px}.welcome52 .welcome-art52{height:55px;width:75px}.welcome52 p{font-size:13px;line-height:1.35;margin-bottom:7px}.welcome52 h2{margin:4px 0 8px}}

/* 0.5.3 reef theme: compact icon-first HUD, no clipping of short values. */
:root{color:#254954;--paper:#eff9f5;--line:#82b3b5;--green:#2c8b85;background:#145b68}body{background:radial-gradient(ellipse at top,#7ed3d0,#164b61 75%)}#game{background:linear-gradient(#d6efea,#c0e1df)}header{background:linear-gradient(#d5f2ed,#bce2df);padding:7px 7px 8px}.brand #name{background:#effaf3;border-color:#79b4b3;min-width:0}.brand .level-chip{background:#f6d9cb;color:#795367;border-color:#c38fa2}.wallet{grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,1.2fr);gap:4px;align-items:stretch}.wallet .wallet-counter,.wallet .weather52{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:57px;padding:3px 1px;background:#effaf6;border:1px solid #8cbebb;border-radius:10px;color:#244f59;overflow:visible;box-shadow:none}.wallet .wallet-counter>.ui-icon{width:29px;height:29px;flex:none}.wallet .wallet-counter span{font-size:clamp(10px,3.2vw,13px);font-weight:750;line-height:1.15;letter-spacing:-.35px;max-width:100%;white-space:nowrap;overflow:visible;text-overflow:clip;font-variant-numeric:tabular-nums}.wallet .weather52>.ui-icon{width:25px;height:25px;color:#318b9a}.wallet .weather52 span{font-size:9px;display:flex;flex-wrap:wrap;justify-content:center;white-space:normal;line-height:1.05;gap:1px}.wallet .weather52 span .ui-icon{width:10px;height:10px}.wallet .weather52{background:#d7f1ea}.map-shell{background:#b7dedb}.world{background:#9bd0c9 url('assets/meadow.svg') center/100% 100%;border-color:#4d9ca5;box-shadow:inset 0 0 35px #1e82933b;isolation:isolate}.tile.occupied{background:#e7f5e832}.tile-label{background:#eef9e9ed;border:1px solid #8caaa6;color:#31515a;overflow-wrap:anywhere}.tile.ready .tile-label{background:#c1ebd5}.map-build52{background:#e6f6ed;color:#246b76;border-color:#7bacae}.tile .building{filter:drop-shadow(0 2px 2px #246f7955)}.world:after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(118deg,transparent 11%,#eaffff16 12%,transparent 32%,transparent 65%,#eaffff16 66%,transparent 83%);animation:seaLight 12s ease-in-out infinite alternate}@keyframes seaLight{from{opacity:.25}to{opacity:.9}}.world-grid,.world .walker{z-index:2}.world .walker{z-index:3}.map-build52{z-index:9}.forest-bonus{z-index:10;background:#e5faf5;border-color:#77aab1}.forest-bonus button{background:#b5e4d6}.panel,.petcard,dialog{background:#eff9f3;border-color:#88b2b1;color:#254954}.muted,small,.pet-meta small,.pet-actions small,.achievement small,.guide-topic52 p{color:#52757a}.primary,button.active,.active,nav button.active{background:#a9ddd1;border-color:#5fa29e;color:#205e61}.bar{background:#c7e1dd}.bar i{background:#459f97}.trail-map{background:radial-gradient(ellipse at 30% 20%,#a4e0dc,#438b9d)!important;border-color:#579aa1!important}.trail-node{background:#eaf6eb!important;border-color:#81afb1!important;color:#28515c!important}.trail-node.chosen{outline:2px solid #edb9a6}.welcome52::backdrop,dialog::backdrop{background:#163d54aa;backdrop-filter:blur(3px)}.welcome-note52{background:#d2eee4!important;color:#2d7176!important}.guide-intro52{background:#d7f0e8}.pet-summary{background:#d7eeea}.birth-portrait,.portrait,.parent img{background:#bce4e2}.pet-group h3{color:#407078}.pet-passport{border-color:#9bbfc0}nav{background:linear-gradient(#93c8c6,#6ba8b0);border-color:#5a9ca4}nav button{background:#e3f4ef;border-color:#87b4b6;color:#2a5863}nav button.active{background:#b5e1cd}footer{color:#457680}.brand .icon{background:#e5f5ee;border-color:#89b6b6}.brand .level-chip{max-width:72px}.walk-reaction{background:#e9fcf4;color:#347885;border-color:#7eaeb1} @media(max-width:360px){.wallet{gap:3px}.wallet .wallet-counter>.ui-icon{width:26px;height:26px}.wallet .wallet-counter span{font-size:10px}.wallet .weather52>.ui-icon{width:23px;height:23px}.wallet .weather52 span{font-size:8px}.wallet .wallet-counter,.wallet .weather52{min-height:52px}}
.world:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background-image:radial-gradient(circle at 12% 88%,#edffffaa 0 2px,transparent 3px),radial-gradient(circle at 88% 64%,#ecffffa0 0 4px,transparent 5px),radial-gradient(circle at 48% 78%,#eaffff70 0 3px,transparent 4px),radial-gradient(circle at 72% 33%,#eaffff90 0 2px,transparent 3px);background-repeat:repeat-y;background-size:100% 180px;animation:reefBubbles 24s linear infinite;opacity:.55}@keyframes reefBubbles{to{background-position:0 -180px}}.trail-walk,.weather-strip,.labintro{background:#d8eeea;border-color:#83b7b8}.petcard .rarity{color:#28545b}.map-shell .farmbottom{background:transparent}.world .tile-label{max-width:100%;hyphens:auto}.world .tile-label small{font-size:10px}.map-shell{padding-bottom:6px}.world .tile .building{max-height:100%;object-fit:contain}.guide-topic52 summary{color:#285d65}.welcome52 .welcome-art52 span{background:#f5ece9;border-color:#bca6b3}@media(prefers-reduced-motion:reduce){.world:before,.world:after{animation:none!important}}
.wallet button.wallet-counter{border:1px solid #8cbebb;box-shadow:none;touch-action:manipulation}.wallet button.wallet-counter:active{transform:none;background:#d4eee7}.wallet button.wallet-counter:focus-visible{outline:2px solid #367e8c;outline-offset:1px}

#clock-indicator:not([hidden]){display:inline-block;padding:2px 6px;border:1px solid #438b94;border-radius:8px;color:#174e59;background:#d5eee8;font-weight:600}
/* v0.5.4: optional name and short, non-interactive underwater expressions */
.farm-name-edit54{display:flex;align-items:center;gap:7px;min-width:0;margin:5px 0 10px}.farm-name-edit54 input{flex:1;min-width:0;width:0;margin:0;padding:9px;font-size:14px}.farm-name-edit54 button{flex:none;width:42px;min-height:42px;display:grid;place-items:center;padding:5px}.farm-name-edit54 .ui-icon{width:23px;height:23px}.welcome-name54{padding:8px 10px;border:1px solid #9bc7c4;background:#e1f4ec;border-radius:10px;margin:0 0 10px}.welcome-name54 label{font-size:13px;font-weight:700;margin:0}.welcome-name54 small{display:block;margin:0;font-size:11px}.welcome-name54 .farm-name-edit54{margin:4px 0}.brand #name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world .walker.peeking54 img,.world .walker.peeking54 .walk-reaction{visibility:hidden}.peek54{position:absolute;z-index:8;pointer-events:none;width:clamp(108px,39%,172px);transform:translate(-50%,-50%);animation:peek-in54 3.1s ease-in-out both;filter:drop-shadow(0 4px 6px #24596355);text-align:center;isolation:isolate}.peek54 img{display:block;width:100%;height:auto;aspect-ratio:116/108;object-fit:contain;filter:drop-shadow(0 1px 2px #164b6166);animation:peek-breathe54 .72s ease-in-out infinite alternate}.peek-caption54{display:inline-block;max-width:100%;margin-top:-9px;position:relative;padding:4px 7px;background:#edfaf2;border:1px solid #70a6aa;border-radius:11px;font-weight:750;font-size:clamp(10px,3vw,13px);line-height:1.2;overflow-wrap:anywhere;color:#28545b}.peek-mark54{position:absolute;top:8%;right:5%;font-size:25px;color:#9b5973;text-shadow:0 1px 1px #fff;line-height:1}.peek54[data-mood="dizzy"] img{animation:peek-dizzy54 .45s ease-in-out infinite alternate}.peek54[data-mood="giggle"] img{animation:peek-breathe54 .27s ease-in-out infinite alternate}.peek54[data-mood="proud"] img{animation:peek-dizzy54 1.1s ease-in-out infinite alternate}@keyframes peek-in54{0%{opacity:0;transform:translate(calc(-50% + var(--peek-dx)),calc(-50% + var(--peek-dy))) scale(.28)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}24%,76%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(calc(-50% + var(--peek-dx)),calc(-50% + var(--peek-dy))) scale(.28)}}@keyframes peek-breathe54{to{transform:scale(1.04,.98)}}@keyframes peek-dizzy54{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}@media(prefers-reduced-motion:reduce){.peek54{display:none!important}.world .walker.peeking54 img{visibility:visible}}
/* Tiny interactive visual gag, with an independent animation and touch target. */
.fart54{position:absolute;z-index:15;width:44px;height:44px;min-width:44px;min-height:44px;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;transform:translate(-50%,-50%);animation:fartFloat54 4.8s linear forwards;cursor:pointer;touch-action:manipulation}.fart54 svg{width:100%;height:100%;filter:drop-shadow(0 2px 3px #275f7830)}@keyframes fartFloat54{0%{transform:translate(-50%,-25%) scale(.45);opacity:0}12%{opacity:1}25%{transform:translate(-40%,-80%) scale(1)}75%{opacity:1}100%{transform:translate(-60%,-220%) scale(1.1);opacity:0}}.walker.shy54 .walk-reaction{color:#9b365a;background:#ffe4e7;box-shadow:0 0 0 2px #f2adbd}.walker.shy54 img{filter:drop-shadow(0 0 4px #ec9baf)}
/* Aquatic passport, compact enough for a small phone; details scroll inside the dialog. */
.passport54{position:relative;background:linear-gradient(145deg,#f8faec,#d6ebe5);border:1px solid #7da8ac;border-radius:14px;padding:10px;color:#284f59;box-shadow:inset 0 0 0 3px #eef6ee;margin:0 0 8px;min-width:0}.passport-banner54{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;background:#2b727e;color:#f7fcf8;border-radius:8px;padding:8px 4px;margin-bottom:8px;text-align:center;font-size:11px;letter-spacing:.3px}.passport-banner54 small{flex-basis:100%;opacity:.85;font-size:10px}.passport54 .pet-title{gap:5px;margin:0 0 6px}.passport54 .pet-title h2{overflow-wrap:anywhere;min-width:0;font-size:18px;margin:0}.passport54 .pet-summary{margin:0 0 8px}.passport-facts54{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;font-size:12px}.passport-facts54>div{min-width:0;border-bottom:1px solid #b2cdca;padding:4px 0}.passport-facts54 small,.passport-facts54 b{display:block;overflow-wrap:anywhere}.passport-facts54 small{color:#52777d;font-size:10px}.passport-stamp54{font-size:10px;letter-spacing:.6px;color:#367985;text-align:right;margin-top:7px;font-weight:bold}.passport-share54{min-height:42px;display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:6px}.passport-status54{font-size:11px;margin:4px 0}.passport54 .pet-portrait{max-width:100%;object-fit:contain}.passport54 .pet-meta{min-width:0;overflow-wrap:anywhere}
.passport-banner54 small{color:#e4f3ef;opacity:1}.passport54 .pet-summary{gap:7px}.passport54 .pet-title .mini{flex:0 0 auto}.passport54 .pet-meta small{line-height:1.25}.passport54 .pet-portrait{max-height:105px}.passport-facts54>div:first-child{grid-column:1/-1}.passport-facts54>div:first-child b{font-size:11px;letter-spacing:.1px}

.startup55{padding:20px;text-align:center;min-height:110px;margin:12px 0}.startup55 p{margin:10px 0;overflow-wrap:anywhere}

/* v0.5.6.a — responsive breeding selector and passport typography */
.breed-panel56,.partheno-card56{padding:13px;border:1.5px solid #85b8b5;border-radius:16px;background:linear-gradient(155deg,#f3fbf5,#dff2ec);box-shadow:0 3px 0 #a7c9c2;min-width:0;overflow:hidden}
.breed-heading56{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:10px}
.breed-heading56>span{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:13px;background:#c8e9df;font-size:24px}
.breed-heading56 h2{margin:0 0 3px;font-size:19px;line-height:1.15;color:#28545e}
.breed-heading56 p{margin:0;font-size:12px;line-height:1.35;color:#55777b}
.breed-rules56{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 12px}
.breed-rules56 span{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #b5d3cc;border-radius:999px;background:#eff9f3;color:#466e72;font-size:10px;font-weight:700;line-height:1.2}
.breed-parent-grid56{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
.breed-parent56{display:flex;flex-direction:column;gap:6px;min-width:0;padding:9px;border:1px solid #b4d0cb;border-radius:13px;background:#f6fbf6}
.breed-parent56>label{display:block!important;width:100%;margin:0!important;color:#345e65;font-size:12px;font-weight:800;line-height:1.2}
.breed-select56{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:43px;box-sizing:border-box;margin:0!important;padding:8px 30px 8px 9px;border:1.5px solid #8db6b4;border-radius:9px;background:#fffefa;color:#254d58;font-size:13px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.breed-picked56{display:flex;align-items:center;gap:8px;min-width:0;min-height:58px;padding:5px;border-radius:10px;background:#e6f3ed}
.breed-picked56 img{width:66px;height:54px;flex:none;object-fit:contain;border-radius:8px;background:#cce8e3}
.breed-picked56>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.breed-picked56 b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#28515b}
.breed-picked56 small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.2;color:#628084}
.breed-empty56{border:1px dashed #a9c8c1;background:#eef7f2}
.breed-empty56>span{width:45px;height:45px;display:grid;place-items:center;flex:none;border-radius:9px;background:#d9eee7;font-size:24px}
.breed-cost-wrap56{margin-top:12px;padding:9px;border-radius:12px;background:#e7f4ee;border:1px solid #c1dcd3}
.breed-cost-title56{margin-bottom:7px;color:#52767a;font-size:11px;font-weight:800}
.breed-costs56{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;min-width:0}
.breed-cost56{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;padding:7px 3px;border-radius:9px;background:#f8fcf6;border:1px solid #d0e3da;color:#345e65}
.breed-cost56>span{display:inline-flex;align-items:center;justify-content:center;font-size:18px;min-width:19px}
.breed-cost56 .ui-icon{width:19px;height:19px}
.breed-cost56 b{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.breed-status56{margin:9px 1px 7px;color:#91634f;font-size:11px;line-height:1.35;min-height:15px}
.breed-status56.is-ready56{color:#327c68;font-weight:800}
.breed-start56{min-height:47px;margin-top:2px;font-size:15px;font-weight:800;letter-spacing:.1px}
.breed-start56:disabled{opacity:.52;filter:saturate(.6)}
.breed-odds56{margin:8px 1px 0!important;color:#698286!important;font-size:10px;line-height:1.4}
.incubator-list56{margin-top:14px}
.incubator-list-head56{display:flex;align-items:center;justify-content:space-between;margin:0 1px 7px;color:#315d65}
.incubator-list-head56 h2{margin:0;font-size:16px}
.incubator-list-head56>span{padding:3px 8px;border-radius:999px;background:#d6eee5;color:#477b79;font-size:11px;font-weight:800}
.incubator-note56{display:flex;align-items:center;gap:12px;background:#e8f5ee;border:1px solid #a9cec2}
.incubator-note56>span{font-size:34px;flex:none}
.incubator-note56 p{margin:3px 0 0;color:#648084;font-size:12px}
.partheno-card56 .breed-costs56{grid-template-columns:repeat(4,minmax(0,1fr));margin:10px 0}
.pet-title{min-width:0}
.pet-title h2,.passport54 .pet-title h2,.pet-name56{min-width:0;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important;font-size:var(--pet-name-size,18px)!important;line-height:1.15}
.passport54 .pet-title{display:flex;align-items:center;min-width:0}
.passport54 .pet-title h2{flex:1}
.passport54 .pet-title .mini{flex:none}
@media(max-width:520px){.breed-parent-grid56{grid-template-columns:minmax(0,1fr)}.breed-parent56{padding:9px}.breed-picked56 img{width:72px;height:56px}.breed-rules56{gap:4px}.breed-rules56 span{font-size:9px;padding:5px 7px}.breed-cost56{gap:2px;padding:6px 1px}.breed-cost56>span{font-size:16px;min-width:17px}.breed-cost56 b{font-size:12px}}
@media(max-width:360px){.breed-panel56,.partheno-card56{padding:10px}.breed-costs56{gap:3px}.breed-cost56{flex-direction:column;gap:1px;padding:5px 1px}.breed-cost56>span{height:18px}.breed-cost56 b{font-size:11px}}
/* Keep the navigation in its own row; long game screens scroll above it. */
#screen{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
#screen::-webkit-scrollbar{display:none}
/* Compact rule strip and parent preview so the primary action stays near the fold. */
#game{height:100dvh;min-height:100dvh;overflow:hidden}
.breed-rules56{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;gap:4px;margin:7px 0 8px}
.breed-rules56::-webkit-scrollbar{display:none}
.breed-rules56 span{flex:0 0 auto;padding:4px 6px;font-size:9px}
.breed-parent56{padding:7px;gap:5px}
.breed-select56{min-height:39px;padding-top:6px;padding-bottom:6px}
.breed-picked56{min-height:48px;padding:4px;gap:6px}
.breed-picked56 img{width:57px;height:46px}
.breed-cost-wrap56{margin-top:9px;padding:7px}
.breed-cost-title56{margin-bottom:5px}
.breed-cost56{padding:5px 2px}
.breed-status56{margin:7px 1px 5px}
/* v0.5.6.b — compact lifecycle and memorial controls */
.life-panel56b{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;padding:10px;background:#e3f2ec;border:1px solid #9bc3bd;border-radius:12px;color:#244c56}.life-panel56b>div{display:flex;flex-direction:column;min-width:0;gap:3px}.life-panel56b>small{grid-column:1/-1;color:#59767a;font-size:11px;overflow-wrap:anywhere}.life-panel56b b{font-size:13px;overflow-wrap:anywhere}.life-panel56b small{font-size:11px}.life-tabs56b{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.life-tabs56b button{flex:1;min-width:0}.life-notices56b{margin:8px 10px;padding:10px;overflow-wrap:anywhere}.life-notice56b{display:grid;gap:3px;padding:7px 0;border-bottom:1px solid #a8c8c4}.life-notice56b small{font-size:12px}.life-notices56b button{margin-top:8px}.life-memory56b .petcard strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}.life-state56b.dormant{color:#695b8b}.life-guide56b summary{cursor:pointer}
.life-glow56b{position:relative;overflow:hidden}.life-glow56b::after{content:'✧';position:absolute;right:10px;top:4px;font-size:30px;color:#74b9b4;pointer-events:none;animation:lifeDissolve56b 2.6s ease-out forwards}@keyframes lifeDissolve56b{0%{opacity:.9;transform:translateY(10px) scale(.7)}100%{opacity:0;transform:translateY(-24px) scale(1.4)}}@media(prefers-reduced-motion:reduce){.life-glow56b::after{animation:none;opacity:0}}
.life-echo56b{position:absolute;z-index:15;left:45%;top:40%;width:76px;pointer-events:none;animation:lifeEcho56b 2.8s ease-in forwards}.life-echo56b img{width:100%;filter:drop-shadow(0 0 8px #f2ffff)}.life-echo56b::after{content:'✧ · ✦';position:absolute;inset:-12px 0 auto;text-align:center;color:#eaffff;font-weight:bold}@keyframes lifeEcho56b{0%{opacity:.95;transform:scale(1)}45%{opacity:.7;transform:translateY(-12px) scale(.98);filter:blur(.7px)}100%{opacity:0;transform:translateY(-48px) scale(.6);filter:blur(5px)}}
/* v0.5.6.c: social cards, accessible narrow-screen layouts */
.social-tabs56c{display:flex;flex-wrap:wrap;gap:6px}.social-tabs56c button{flex:1 0 auto;padding:8px 10px;min-width:0;font-size:.84rem}.cross-profile56c{display:flex;align-items:center;justify-content:space-between;gap:8px}.cross-profile56c>div{min-width:0}.cross-profile56c b,.cross-title56c b{overflow-wrap:anywhere}.cross-profile56c small,.cross-title56c small,.cross-chosen56c small{display:block;color:#52777b}.cross-offer56c{display:grid;gap:9px}.cross-title56c{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.cross-pair56c{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:center;gap:6px}.cross-pair56c>div,.cross-visit56c>article{min-width:0;display:grid;gap:4px;text-align:center;align-content:start}.cross-pair56c img,.cross-visit56c img{width:100%;aspect-ratio:1.25;object-fit:contain;max-height:92px;border-radius:10px;background:#d1ede7}.cross-pair56c b,.cross-visit56c b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.85rem}.cross-egg56c{display:grid;place-items:center;align-self:center}.cross-egg56c .egg0750{width:34px;height:40px;margin:0;animation:eggBob0750 1.5s ease-in-out infinite;filter:drop-shadow(0 2px 5px #183e4760)}.cross-egg56c .egg0750 img,.cross-egg56c .egg0750 .ui-icon{width:100%;height:100%;object-fit:contain}.cross-cost56c{display:flex;flex-wrap:wrap;gap:6px;padding:6px 0}.cross-cost56c span{display:inline-flex;align-items:center;gap:3px;background:#d8eeea;border-radius:8px;padding:5px 7px}.cross-cost56c svg{width:19px;height:19px}.cross-visit56c{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cross-visit56c>article{border:1px solid #8ab9b6;border-radius:12px;padding:7px;background:#e2f3ee}.cross-visit56c button{font-size:.8rem;padding:8px 4px;white-space:normal}.cross-chosen56c{display:flex;align-items:center;gap:12px;margin:10px 0}.cross-chosen56c img{width:86px;border-radius:10px}.cross-chosen56c>div{min-width:0;overflow-wrap:anywhere}.cross-select56c{display:grid;gap:5px;min-width:0;margin:12px 0}.cross-select56c select{display:block;width:100%;min-width:0;max-width:100%;font:inherit;color:inherit;border:1px solid #8ab9b6;background:#f1faf6;border-radius:10px;padding:10px;box-sizing:border-box}.cross-pet-status56c{font-size:.83rem;background:#d8eeea;padding:8px;border-radius:8px}.brand [data-view=people]{position:relative}.brand [data-view=people][data-incoming]:not([data-incoming=""])::after{content:attr(data-incoming);position:absolute;right:-3px;top:-4px;font-size:10px;color:white;background:#a74d54;border-radius:12px;min-width:15px;height:15px;line-height:15px;text-align:center}.visit-map56c summary{cursor:pointer}.visit-map56c .visit-grid{margin-top:8px}.social56c .row{flex-wrap:wrap}.social56c details{margin-top:10px}.social56c details small{display:block;margin-top:6px}
/* v0.6.0 */
.portrait-level060{position:relative;display:block;min-width:0;flex:none}.portrait-level060 img{display:block;width:100%;max-width:100%;height:auto}.pet-summary .portrait-level060{width:100%;max-width:none;justify-self:stretch}.pet-level060{position:absolute;top:4px;right:4px;min-width:23px;padding:3px 6px;border:1px solid #6d9d9a;border-radius:8px;background:#eff8e8;color:#25555a;line-height:1;font-size:12px;font-weight:800;z-index:2;box-shadow:0 1px 3px #17475544}.map-eggs060{position:absolute;z-index:5;left:9px;top:7px;border-radius:50%;width:41px;height:41px;padding:4px;background:#f0f9d9;display:grid;place-items:center;animation:egg060 2s ease-in-out infinite}.map-eggs060 svg{width:30px;height:30px}.map-eggs060 small{position:absolute;bottom:0;right:0;background:#366e76;color:white;border-radius:8px;padding:1px 4px}@keyframes egg060{50%{box-shadow:0 0 0 5px #f6f6c766;transform:scale(1.08)}}.trade-buttons060{display:flex;flex:none;flex-wrap:nowrap;gap:4px;align-items:center}.trade-buttons060 button{font-size:12px;padding:7px 7px;white-space:nowrap;min-width:0;min-height:36px}.resource:has(.trade-buttons060){display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center}.resource:has(.trade-buttons060) .info{min-width:0;overflow-wrap:anywhere}.resource:has(.trade-buttons060) .symbol{font-size:24px}.thought060{position:absolute;left:50%;bottom:95%;transform:translateX(-50%);font-size:11px;line-height:1.2;font-weight:600;color:#244e57;background:#f2fbf1;border:1px solid #7ca7a8;border-radius:10px;padding:6px;min-width:90px;max-width:126px;width:max-content;white-space:normal;overflow-wrap:anywhere;z-index:10;pointer-events:none;box-shadow:0 2px 4px #164e5a33;text-align:center}.walker:has(.thought060){z-index:8}.thought060:after{content:'';position:absolute;bottom:-4px;left:50%;width:7px;height:7px;transform:rotate(45deg);background:#f2fbf1;border-right:1px solid #7ca7a8;border-bottom:1px solid #7ca7a8}.rank060{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px}.music060[hidden]{display:none!important}.music060{font-size:20px}.passport54 .pet-summary .pet-portrait{max-width:100%;width:100%}@media(prefers-reduced-motion:reduce){.map-eggs060{animation:none}}

.build-thumb060{width:48px;height:48px;object-fit:contain;align-self:center}.thought060{z-index:15}.walker{overflow:visible}.music060{font-weight:700}

.world>.thought060{transform:none;bottom:auto;max-width:142px;z-index:18;pointer-events:none}.world>.thought060:after{display:none}
/* Optional administrator-provided icons stay in the existing compact layout. */
.trade-buttons060 button[data-extra-icon061]{white-space:nowrap;min-width:0;font-size:clamp(10px,2.8vw,13px)}
.trade-buttons060 button[data-extra-icon061] > .extra-icon0614{width:.95em;height:.95em;margin-inline-end:.18em}

/* v0.6.2 — passport portrait fills its grid column, not a fraction of it. */
.passport54 .pet-summary{grid-template-columns:minmax(0,40%) minmax(0,1fr);align-items:center}
.passport54 .pet-summary .portrait-level060{width:100%;max-width:none;min-width:0;align-self:center}
.passport54 .pet-summary .pet-portrait{display:block;width:100%;height:auto;max-height:none;max-width:100%;aspect-ratio:auto;object-fit:contain}
.passport54 .pet-summary .pet-level060{top:3px;right:3px;min-width:18px;padding:2px 4px;font-size:10px;line-height:1.15;pointer-events:none}

/* v0.6.3 — edge-to-edge reef; construction controls keep their own spacing. */
.map-shell{padding:0;width:100%;min-width:0;background:transparent}
.map-shell>.world{width:100%;margin:0;border:0;border-radius:0;box-shadow:none}
.map-shell>.map-note,.map-shell>.build-list,.map-shell>.panel{margin:8px 10px}


/* v0.6.4 — larger artwork, compact inner spacing, stable touch targets. */
.wallet{gap:3px}
.wallet .wallet-counter,.wallet .weather52{padding:1px 0 2px;gap:1px;min-height:57px}
.wallet .wallet-counter>.ui-icon{width:clamp(35px,9.5vw,43px);height:clamp(35px,9.5vw,43px);max-width:100%}
.wallet .weather52>.ui-icon{width:clamp(30px,8.5vw,38px);height:clamp(30px,8.5vw,38px);max-width:100%}
.wallet .wallet-counter span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.brand .icon{width:38px;min-width:38px;height:38px;min-height:38px;padding:1px}
.brand .icon .ui-icon{width:32px;height:32px;max-width:100%}
.map-build52{width:40px;height:40px;padding:1px}
.map-build52 .ui-icon{width:35px;height:35px}
.map-eggs060{padding:1px}
.map-eggs060 .ui-icon{width:36px;height:36px}
#nav button{padding:2px 1px;min-height:48px}
#nav .ui-icon{width:30px;height:30px;margin:0 auto 1px;max-width:100%}
#nav button span{line-height:1}
.farm-name-edit54 button{padding:1px}
.farm-name-edit54 button .ui-icon{width:34px;height:34px}
.pet-title button.mini{padding:2px;min-width:36px;min-height:36px}
.pet-title button.mini .ui-icon{width:29px;height:29px}
/* Defensive fallback for an old cached movement module; portraits retain their badges. */
.world .walker .pet-level060{display:none}
@media(max-width:360px){
 .brand .icon{width:34px;min-width:34px;height:36px;min-height:36px}
 .brand .icon .ui-icon{width:29px;height:29px}
 #nav .ui-icon{width:27px;height:27px}
}

/* v0.6.5 — flat resource and navigation icons on their shared bars. */
.wallet .wallet-counter,
.wallet button.wallet-counter,
.wallet .weather52,
.wallet button.wallet-counter:active,
.wallet .weather52:active,
#nav button,
#nav button.active,
#nav button:active,
#nav button.active:active {
 background:transparent;
 border:0;
 border-radius:0;
 box-shadow:none;
}
#nav button{color:#244f59}
#nav button.active{color:#123f48;font-weight:800;text-decoration:underline;text-underline-offset:3px}
#nav button:focus-visible,.wallet button:focus-visible{outline:2px solid #285d67;outline-offset:-2px;border-radius:5px}

/* v0.6.7 — optional building names and compact construction overlay. */
.map-shell .world{padding-top:8px}
.map-shell{--map-tool-size:34px;--map-tool-icon-size:28px}
.map-shell .map-build52{top:5px;right:5px;width:var(--map-tool-size);height:var(--map-tool-size);padding:1px;z-index:20;min-height:0;border-radius:9px}
.map-shell .map-build52 .ui-icon{width:var(--map-tool-icon-size);height:var(--map-tool-icon-size);max-width:100%}
.map-shell .world.hide-names067 .tile-name067{display:none}
.map-shell .world.hide-names067 .tile-label:not(.has-stock067){display:none}
.map-shell .world.hide-names067 .tile-label.has-stock067{left:50%;right:auto;width:max-content;max-width:100%;transform:translateX(-50%);padding:2px 5px;white-space:nowrap}
.map-label-setting067{display:flex;align-items:center;gap:9px;margin:8px 0 0;min-height:36px;cursor:pointer;font-size:13px}
.map-label-setting067 input{width:18px;height:18px;margin:0;flex:none;accent-color:#277f79}
.map-display067{padding:0 10px}

/* v0.6.8 — regular expedition grid, equal cards and consistent icon sizing. */
.trail-map{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px;padding:10px;align-items:stretch}
.trail-map .trail-node{width:100%;min-width:0;min-height:108px;height:100%;margin:0;padding:9px 5px;box-sizing:border-box;transform:none;display:grid;grid-template-rows:30px 1fr auto;justify-items:center;align-items:center;gap:5px;text-align:center;white-space:normal}
.trail-map .trail-node b{min-width:0;max-width:100%;font-size:clamp(12px,3.3vw,15px);line-height:1.25;overflow-wrap:anywhere;align-self:center}
.trail-map .trail-node small{font-size:11px;line-height:1.2;margin:0;white-space:normal}
.trail-map .zone-symbol{width:30px;height:30px;display:flex;align-items:center;justify-content:center;line-height:1}
.trail-map .zone-symbol .ui-icon{width:30px;height:30px;flex:none}
/* A button-specific image is represented inside the existing zone symbol, never a second icon. */
.trail-map .trail-node::before{display:none!important}

/* v0.6.10 — seven icon-only destinations, with a larger central home. */
#nav{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.36fr) repeat(3,minmax(0,1fr));gap:1px;padding:3px 2px max(4px,env(safe-area-inset-bottom));align-items:center;flex:none}
#nav button{display:grid;place-items:center;position:relative;min-width:0;width:100%;height:54px;min-height:54px;padding:2px 0 6px;text-decoration:none;line-height:1}
#nav button span{display:grid;place-items:center;width:100%;line-height:1}
#nav .ui-icon{width:clamp(27px,8.2vw,35px);height:clamp(27px,8.2vw,35px);max-width:100%;margin:0;display:block}
#nav [data-view=farm] .ui-icon{width:clamp(40px,12vw,50px);height:clamp(40px,12vw,50px)}
#nav button.active{ text-decoration:none }
#nav button.active::after{content:"";position:absolute;bottom:2px;left:50%;transform:translateX(-50%);width:14px;height:3px;border-radius:3px;background:#215b64;pointer-events:none}
#nav button[data-view=farm].active::after{width:20px}
#nav button:active{transform:none}

/* v0.6.12 — Adventure hub, arcade boards and larger action pictograms. */
[hidden]{display:none!important}
.rpg-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.rpg-tabs button{grid-column:span 2;min-width:0;padding:8px 3px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;font-size:12px}
.rpg-tabs button:nth-child(-n+2){grid-column:span 3;min-height:43px;font-size:14px}
.arcade0612{min-width:0;padding:12px;display:grid;gap:10px}
.arcade0612 h2,.arcade0612 p{margin:0}
.arcade-budget0612{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;padding:8px;background:#d2ebe4;border-radius:10px;font-size:12px}
.arcade-budget0612 .ui-icon{width:22px;height:22px;vertical-align:middle}
.arcade-games0612,.arcade-diffs0612{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.arcade-games0612 button,.arcade-diffs0612 button{display:grid;place-items:center;gap:4px;padding:8px 2px;min-width:0;font-size:12px;line-height:1.2}
.arcade-game-icon0612{font-size:34px;color:#246c75;line-height:1.1}
.arcade-diffs0612 small{display:flex;align-items:center;gap:3px;font-weight:600;color:#526b60}
.arcade-diffs0612 small .ui-icon{width:18px;height:18px}
.arcade0612 select{min-width:0;max-width:100%;width:100%;padding:10px 8px;border-radius:10px;border:1px solid #83b4af;background:#f6fbf5;color:inherit}
.arcade-player0612{display:flex;align-items:center;gap:8px;min-width:0}.arcade-player0612 img{width:56px;height:46px;object-fit:contain;border-radius:8px}.arcade-player0612 span{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}.arcade-player0612 small{color:#53787c}
.arcade-result0612{display:grid;gap:5px;padding:10px;border-radius:10px;background:#d7ebe0}
.arcade-check0612,.arcade-puzzle0612{display:grid;width:100%;aspect-ratio:1;border:3px solid #487b7d;border-radius:10px;overflow:hidden;background:#487b7d}
.arcade-check0612{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}
.arcade-check0612 button,.arcade-puzzle0612 button,.bg-point0612{display:grid;place-items:center;min-width:0;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none;opacity:1;transform:none;position:relative}
.arcade-check0612 .light{background:#f0e7c8}.arcade-check0612 .dark{background:#6caaa8}.arcade-check0612 .can-move{box-shadow:inset 0 0 0 2px #ebd99b}.arcade-check0612 .picked,.bg-point0612.picked{box-shadow:inset 0 0 0 3px #f4bb55!important}.arcade-check0612 .target,.bg-point0612.target{box-shadow:inset 0 0 0 3px #e8eebb!important}
.arcade-piece0612{width:76%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-size:clamp(13px,4vw,23px);font-weight:800;border:2px solid #4a6968;box-shadow:inset 0 0 0 2px #ffffff35,0 2px 2px #163e5055}
.arcade-piece0612.white,.bg-stack0612 .white{background:#fcf0cc;color:#715a3e}.arcade-piece0612.black,.bg-stack0612 .black{background:#285763;color:#fff4cf;border-color:#193f4e}.arcade-piece0612.taken{opacity:.38}.arcade-dot0612{width:29%;aspect-ratio:1;border-radius:50%;background:#f4e9ac}
.arcade-puzzle0612{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:4px;padding:4px}.arcade-puzzle0612 button{background:#ddede1;border-radius:7px;color:#28525b;font-size:clamp(18px,6vw,32px);font-weight:800}.arcade-puzzle0612 button:not(:disabled){background:#f1dfae;box-shadow:inset 0 0 0 2px #d3b86e}.arcade-puzzle0612 button.blank{background:#426f76}
.arcade-dice0612{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:13px}.arcade-dice0612 span{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;border:1px solid #759a9b;background:#fff5d8;font-weight:800}.arcade-dice0612 small{width:100%;color:#52787d}
.bg-board0612{background:#a4cbc1;border:3px solid #47797c;border-radius:10px;overflow:hidden}.bg-row0612{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));min-height:126px}.bg-point0612{background:linear-gradient(90deg,#d2e0c1,#ede5c3);grid-template-rows:15px 1fr;align-items:start;padding:2px 0}.bg-point0612.odd{background:linear-gradient(90deg,#80ada8,#afd0be)}.bg-point0612 small{font-size:10px;line-height:1}.bg-stack0612{display:flex;flex-direction:column;align-items:center;gap:1px;width:100%}.bg-stack0612 i{display:grid;place-items:center;width:86%;aspect-ratio:1;border-radius:50%;border:1px solid #4a6968;font-size:9px;font-style:normal;font-weight:800}.bg-point0612.can-move{outline:2px solid #e2b454;outline-offset:-2px}.bg-row0612.bottom .bg-point0612{grid-template-rows:1fr 15px;align-items:end}.bg-row0612.bottom small{grid-row:2}.bg-row0612.bottom .bg-stack0612{grid-row:1;grid-column:1;flex-direction:column-reverse;justify-content:flex-end}.bg-middle0612{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:4px;padding:6px 3px;background:#49868b;color:#fff;text-align:center}.bg-middle0612 button{font-size:11px;padding:7px 3px;min-width:0;white-space:normal}.bg-middle0612 small{font-size:10px}.arcade-moves0612{display:flex;flex-wrap:wrap;gap:5px}.arcade-moves0612 button{font-size:12px;flex:1 1 auto;padding:8px 5px}.arcade-quit0612{margin-top:5px}
/* Larger action icons, including uploaded bitmap replacements; leave board cells and nav untouched. */
#screen button[data-action]:not(.tile):not(.walker):not(.trail-node):not(.team-pet):not(.map-build52) > .ui-icon:first-child,#modal button[data-action]:not(.mini) > .ui-icon:first-child{width:28px;height:28px;vertical-align:middle;margin-inline-end:3px;max-width:100%}
#screen button[data-extra-icon061]:not(.tile):not(.walker):not(.trail-node):not(.team-pet) > .extra-icon0614,#modal button[data-extra-icon061]:not(.mini) > .extra-icon0614{width:28px;height:28px;margin-inline-end:4px;vertical-align:middle}
#modal button[data-action=collect],#modal button[data-action=upgrade]{min-height:44px;padding:6px 4px;min-width:0;line-height:1.2;overflow-wrap:anywhere}
#modal button[data-action=collect]>.ui-icon:first-child,#modal button[data-action=upgrade]>.ui-icon:first-child{width:32px;height:32px}
@media(max-width:360px){.arcade0612{padding:8px}.bg-row0612{min-height:106px}.bg-point0612 small{font-size:9px}.arcade-diffs0612 button{font-size:11px}#screen button[data-action]:not(.tile):not(.walker):not(.trail-node):not(.team-pet):not(.map-build52)>.ui-icon:first-child,#modal button[data-action]:not(.mini)>.ui-icon:first-child{width:24px;height:24px}#screen button[data-extra-icon061]:not(.tile):not(.walker):not(.trail-node):not(.team-pet) > .extra-icon0614,#modal button[data-extra-icon061]:not(.mini) > .extra-icon0614{width:24px;height:24px}}

/* v0.6.12 — full-size navigation art, proportionally fitted to narrow screens. */
#game{container-type:inline-size}
#nav{--side0612:min(60px,calc((100cqw - 12px)*60/445));--home0612:min(85px,calc((100cqw - 12px)*85/445));grid-template-columns:repeat(3,minmax(0,60fr)) minmax(0,85fr) repeat(3,minmax(0,60fr));gap:1px;padding:3px 3px max(5px,env(safe-area-inset-bottom));align-items:end;overflow:visible;background:#8fc9cf}
#nav button{height:calc(var(--side0612) + 8px);min-height:0;padding:0 0 6px;margin:0;align-items:end;justify-items:center;overflow:visible}
#nav button.nav-home{height:calc(var(--home0612) + 8px);margin-top:calc(var(--side0612) - var(--home0612));min-height:0;z-index:2}
#nav button span{width:100%;display:grid;place-items:center;filter:none;transform:none}
#nav .ui-icon{width:var(--side0612);height:var(--side0612);max-width:100%;margin:0;flex:none;filter:drop-shadow(0 1px 1px #34545b40)}
#nav [data-view=farm] .ui-icon{width:var(--home0612);height:var(--home0612);filter:drop-shadow(0 3px 2px #34545b55)}
#nav button.active span,#nav button.nav-home.active span{transform:none}
#nav button.active::after{bottom:1px}

/* Grid exists in both modes for placement geometry, but is drawn only while editing. */
.map-shell .world:not(.editing) .tile{border-color:transparent;background:transparent;box-shadow:none}
.map-shell .world:not(.editing) .tile.empty{visibility:hidden;pointer-events:none}
.map-shell .world.editing .world-grid{gap:2px;background-image:linear-gradient(to right,#406a6b45 1px,transparent 1px),linear-gradient(to bottom,#406a6b45 1px,transparent 1px);background-size:calc(100% / 8) calc(100% / var(--map-rows0612,8))}
.map-shell .world.editing .tile.place-ok0612,.map-own-cell0612.place-ok0612{background:#bdedbd55;border-color:#5b976b}
.map-shell .world.editing .tile.place-no0612,.map-own-cell0612.place-no0612{background:#d88f8340;border-color:#ad766d}
.map-own-cell0612{position:relative;z-index:3;background:transparent;border:1px dashed #587e70;border-radius:3px;box-shadow:none;padding:0;min-width:0;min-height:0}
.map-shell .world-grid{grid-auto-rows:34px}
#screen:has(>.map-shell){display:flex;flex-direction:column}
#screen>.map-shell{display:flex;flex-direction:column;flex:1}
#screen>.map-shell>.world{flex:1;padding-bottom:32px}
#screen>.map-shell>.world:not(.editing) .world-grid{min-height:0}
.visit-grid.visit-fine0612{grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:minmax(18px,1fr);gap:2px;background:#9bd0c9;border:0}
.visit-grid.visit-fine0612>div{background:transparent;border:0;min-width:0;aspect-ratio:auto;min-height:42px}

/* v0.6.13 — full-height, single-screen play mode, without duplicate global chrome. */
#game:has(.arcade-play0613)>header,#game:has(.arcade-play0613)>#nav,#game:has(.arcade-play0613)>footer{display:none}
#screen:has(>.arcade-play0613){display:flex;flex-direction:column;overflow:hidden;min-height:0}
.arcade-play0613{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;width:100%;padding:max(7px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));gap:6px;background:linear-gradient(#d6efea,#bbddda)}
.arcade-top0613{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px;align-items:center;flex:none}
.arcade-top0613 h1{font-size:clamp(17px,4.6vw,23px);text-align:center;margin:0;line-height:1.12;min-width:0}
.arcade-top0613 button{font-size:12px;padding:7px 9px;min-height:36px;white-space:nowrap}
.arcade-info0613{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;line-height:1.2;flex:none;min-width:0}
.arcade-info0613 b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.arcade-info0613 span{white-space:nowrap}.arcade-turn0613{color:#276a6b;font-weight:700}
.arcade-body0613{display:flex;flex-direction:column;flex:1;gap:5px;min-height:0;min-width:0}
.arcade-body0613>p{margin:0;font-size:12px;line-height:1.2;flex:none}
.arcade-boardwrap0613{display:grid;place-items:center;min-width:0;min-height:0;flex:1;container-type:size}
.arcade-body0613 .arcade-check0612,.arcade-body0613 .arcade-puzzle0612{width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:100%;max-height:100%;aspect-ratio:1;flex:none}
.arcade-body0613 .bg-board0612{width:min(100cqw,calc(100cqh * 1.35));height:min(100cqh,calc(100cqw / 1.35));display:flex;flex-direction:column;min-height:0;max-width:100%;max-height:100%}
.arcade-body0613 .bg-row0612{flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}
.arcade-body0613 .bg-middle0612{flex:none;padding:3px 2px;gap:2px}.arcade-body0613 .bg-middle0612 button{padding:5px 2px;font-size:10px}.arcade-body0613 .bg-middle0612 small{font-size:9px}
.arcade-body0613 .bg-point0612{grid-template-rows:12px minmax(0,1fr);min-height:0;overflow:hidden;padding:1px 0}
.arcade-body0613 .bg-row0612.bottom .bg-point0612{grid-template-rows:minmax(0,1fr) 12px}
.arcade-body0613 .bg-stack0612{height:100%;min-height:0;gap:1px}.arcade-body0613 .bg-stack0612 i{flex:none;width:min(86%,calc(100cqh / 13));aspect-ratio:1}
.arcade-body0613 .arcade-dice0612{flex:none;gap:4px;font-size:12px;min-height:24px}.arcade-body0613 .arcade-dice0612 span{width:24px;height:24px}.arcade-body0613 .arcade-dice0612 small{width:auto;font-size:11px;margin-left:auto}
.arcade-body0613 .arcade-moves0612{flex:none;gap:4px}.arcade-body0613 .arcade-moves0612 button,.arcade-body0613>button{padding:6px 4px;min-height:33px;font-size:12px}
.arcade-body0613[aria-busy=true]{pointer-events:none}.arcade-ghost0613{position:fixed;z-index:35;pointer-events:none;display:grid;place-items:center;line-height:1;box-shadow:0 3px 6px #183d4c66;will-change:transform}
.arcade-boardwrap0613:has(.arcade-check0612) .arcade-piece0612{font-size:clamp(10px,4cqw,22px)}
@media(max-height:430px){.arcade-play0613{gap:3px;padding-top:3px;padding-bottom:3px}.arcade-top0613 button{min-height:29px;padding:4px 7px}.arcade-body0613{gap:3px}.arcade-body0613>p{font-size:10px}.arcade-body0613 .arcade-dice0612{font-size:10px;min-height:20px}.arcade-body0613 .arcade-dice0612 span{width:20px;height:20px}.arcade-body0613 .bg-middle0612 button{padding:2px}.arcade-body0613 .arcade-moves0612 button,.arcade-body0613>button{min-height:27px;padding:4px}}
/* Keep the backgammon board stable while selecting/replaying moves; all five visible chips fit each point. */
.arcade-body0613 .bg-board0612{width:min(100cqw,calc(100cqh * 1.15));height:min(100cqh,calc(100cqw / 1.15))}
.arcade-body0613 .bg-row0612{container-type:size}
.arcade-body0613 .bg-stack0612 i{width:min(86%,max(3px,calc((100cqh - 16px) / 5 - 1px)))}
.arcade-body0613 .bg-point0612:disabled,.arcade-body0613 .arcade-check0612 button:disabled,.arcade-body0613 .arcade-puzzle0612 button:disabled{opacity:1}
.arcade-body0613 .bg-point0612 small{color:#31535a}.arcade-body0613 .bg-middle0612 small{color:#eff9f5}
.arcade-body0613 .arcade-controls0613{min-height:36px;flex:none;display:flex;align-items:center;justify-content:center;gap:4px}.arcade-controls0613>.arcade-moves0612{width:100%}.arcade-controls0613>button{width:100%;min-height:33px;padding:5px;font-size:12px}
@media(max-height:430px){.arcade-body0613 .arcade-controls0613{min-height:28px}.arcade-controls0613>button{min-height:27px;padding:3px}}

/* v0.6.14 — one selected image, no hidden vector geometry or duplicate preload. */
.ui-icon{background-position:center;background-repeat:no-repeat;background-size:contain}
.extra-icon0614{width:1.15em;height:1.15em;margin-inline-end:.28em;vertical-align:-.2em;flex:none}
/* v0.6.20 — distinct reef crests and adaptable section titles. */
.brand #farm-level{position:relative;isolation:isolate;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0 4px;border:2px solid #d6b45d;border-radius:50% 50% 43% 43%;background:radial-gradient(circle at 36% 25%,#b3f3e1,#2b9298 55%,#174f68);box-shadow:inset 0 0 0 2px #28767c,0 2px 4px #174f6855;color:#fff9d9;text-shadow:0 1px 2px #173e50;font-size:15px;font-weight:900;line-height:1;}
.brand #farm-level.custom-level0620{background-color:transparent;background-size:contain;background-position:center;background-repeat:no-repeat;border:0;box-shadow:none;text-shadow:0 1px 3px #123,0 0 3px #123;}
.tester-tag0620{font-size:10px;background:#ffe5a2;color:#654415;padding:4px 6px;border-radius:8px;flex:none}
#screen h1.section-heading0620{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:9px;min-height:58px;margin:0 0 12px;padding:10px 12px;border:1px solid #6ca5a6;border-radius:16px;background:linear-gradient(120deg,#327e88,#69b4ac 55%,#357d8c);box-shadow:inset 0 1px 0 #b6e8db,0 3px 8px #32646a20;color:#fff9e6;text-shadow:0 1px 2px #245861;font-size:clamp(19px,5vw,26px);font-weight:800;text-align:center;line-height:1.15;overflow:hidden}
#screen h1.section-heading0620::before{content:attr(data-symbol);font-size:25px;line-height:1;flex:none;filter:drop-shadow(0 1px 1px #173f50)}
#screen h1.section-heading0620.custom-heading0620{min-height:76px;background-size:cover;background-position:center;border:0;text-shadow:0 1px 3px #123,0 0 5px #123}
#screen h1.section-heading0620.custom-heading0620::before{content:none}
#screen h1.section-heading0620.custom-heading0620::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent,#1235)}

/* v0.6.22: progressive cosmetic growth, independent of movement transforms. */
.world .walker{width:min(80%,calc(clamp(var(--pet-min0976,33px),13%,var(--pet-max0976,64px)) * var(--pet-growth0622,1)));transition:width .24s ease-out}
@media(prefers-reduced-motion:reduce){.world .walker{transition:none}}

.passport-footer0623{margin-top:7px;padding-top:6px;border-top:1px solid #b2cdca;color:#28545b;font-size:12px;line-height:1.35;text-align:center;overflow-wrap:anywhere;white-space:normal}
/* Surface ship silhouette, then a persistent dropped crate. */
.world>.ship-shadow0624,.world>.ship-gift0624{position:absolute;margin:0;padding:0;border:0;box-shadow:none;background:transparent;min-height:0;max-width:none;touch-action:manipulation;cursor:pointer;display:grid;place-items:center;transform:translate(-50%,-50%);}
.world>.ship-shadow0624{top:48%;width:clamp(130px,46%,230px);height:auto;aspect-ratio:240/94;color:#082b3d;opacity:.42;filter:blur(1.5px);z-index:19;transition:none;}
.world>.ship-shadow0624 svg,.world>.ship-gift0624 svg{display:block;width:100%;height:100%;pointer-events:none;}
.world>.ship-shadow0624:active{opacity:.6;transform:translate(-50%,-50%)}
.world>.ship-gift0624{top:54%;left:50%;width:clamp(48px,15%,68px);aspect-ratio:1;z-index:21;filter:drop-shadow(0 5px 5px #0f394977);}
.world>.ship-gift0624:active{transform:translate(-50%,-50%) scale(.94)}
.ship-drop0624{animation:ship-drop0624 .65s cubic-bezier(.2,.7,.4,1) both;}
@keyframes ship-drop0624{0%{transform:translate(-50%,-155%) scale(.45);opacity:.15}70%{transform:translate(-50%,-44%) scale(1.08);opacity:1}100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.ship-drop0624{animation:none}.world>.ship-shadow0624{filter:none;}}
.world>.ship-discard0624{position:absolute;top:54%;left:calc(50% + clamp(24px,7.5%,34px));transform:translate(-40%,-145%);z-index:22;width:24px;height:24px;min-height:24px;padding:0;display:grid;place-items:center;border:1px solid #876d53;border-radius:50%;background:#ffeed4;color:#73523e;font-size:18px;line-height:1;box-shadow:none;}


.pet-activity060{position:absolute;left:4px;top:4px;display:flex;gap:4px;z-index:3}
.pet-activity060 span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:rgba(239,249,232,.95);border:1px solid #6d9d9a;box-shadow:0 1px 3px #17475544;font-size:13px;line-height:1}
.passport54 .pet-title h2{white-space:normal!important;overflow:visible;text-overflow:clip;font-size:var(--pet-name-size,18px)!important;line-height:1.15}
.passport54 .pet-title{display:block}
.passport54 .pet-summary{grid-template-columns:minmax(0,48%) minmax(0,1fr);align-items:center;gap:10px}
.passport54 .pet-summary .portrait-level060{width:100%;max-width:none;min-width:0;align-self:center;overflow:hidden}
.passport54 .pet-summary .pet-portrait{display:block;width:100%;height:auto;max-height:180px;max-width:100%;aspect-ratio:auto;object-fit:contain}
.passport54 .pet-group-care56{margin:0 0 8px}
.passport54 .pet-group-care56 h3{margin-top:0}
.passport-facts54{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;font-size:12px}
.passport-facts54>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;border-bottom:1px solid #b2cdca;padding:5px 0}
.passport-facts54 small,.passport-facts54 b{display:block;min-width:0;overflow-wrap:anywhere}
.passport-facts54 small{color:#52777d;font-size:11px;flex:0 0 auto}
.passport-facts54 b{text-align:right;font-size:12px}
.passport-facts54>div:first-child{grid-column:auto}
.life-panel56b{margin-top:8px}

/* v0.6.30: transparent portrait, rich resident selection and login rewards */
.pet-portrait,.passport54 .pet-portrait{background:none!important}
.passport54 .pet-summary .portrait-level060{background-color:transparent}
.passport-facts54{grid-template-columns:minmax(0,1fr)}
.passport-facts54>div:first-child{grid-column:1/-1}
.passport-facts54 small{flex:0 1 45%;white-space:normal}
.pet-picker0630{width:100%;min-width:0;position:relative;margin:5px 0}
.pet-picker0630 summary{list-style:none;display:flex;align-items:center;gap:5px;cursor:pointer;border:1px solid #83b6b5;border-radius:10px;background:#f1faf5;padding:6px;min-height:44px}
.pet-picker0630 summary::-webkit-details-marker{display:none}.pet-picker0630 summary:after{content:'▾';flex:none;margin-left:auto}.pet-picker0630[open] summary:after{content:'▴'}
.pick-selected0630,.pick-list0630 button{display:flex;align-items:center;text-align:left;gap:6px;min-width:0;flex:1;font-size:12px}
.pet-picker0630 img{width:48px;height:44px;object-fit:contain;flex:none;background:none}
.pick-info0630{display:flex;flex-direction:column;min-width:0;flex:1}.pick-info0630 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pick-info0630 small{font-size:10px;line-height:1.2}.pick-work0630{display:grid;place-items:center;flex:none}.pick-work0630 .ui-icon{width:22px;height:22px}
.pick-list0630{display:grid;gap:4px;max-height:270px;overflow:auto;overscroll-behavior:contain;padding:5px 0}.pick-list0630 button{width:100%;padding:5px;min-height:36px;box-shadow:none}.pick-list0630 button[aria-pressed=true]{background:#b6e6d8}
.breed-parent-grid56:has(.pet-picker0630[open]){grid-template-columns:minmax(0,1fr)}
.breed-parent56{min-width:0}.breed-parent56 select[hidden],#worker[hidden]{display:none!important}
.daily0630{padding:8px 10px;background:#eff9e7;border:1px solid #8ab4a4;border-radius:12px;margin:8px;color:#28565e}.daily0630 b{display:block}.daily0630 p{font-size:12px;margin:4px 0}.daily-days0630{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:8px 0}.daily-days0630 div{min-width:0;text-align:center;border-radius:8px;background:#d9eae2;padding:6px 2px;font-size:10px}.daily-days0630 div.current{background:#f3dc8e;border:1px solid #b8a25e}.daily-days0630 div.done{background:#bce4d2}.daily-days0630 .ui-icon{display:block;margin:3px auto;width:20px;height:20px}.daily0630 button{font-size:11px;padding:4px 7px;float:right}

.resident-reef0630{background-size:cover;background-position:center;border-radius:8px;overflow:hidden}.resident-reef0630 img{background:none!important}

/* v0.6.37: live, replaceable marine artwork for the three server-authoritative games. */
.arcade-sea0637{background:linear-gradient(180deg,#0c66782b,#07556e40),var(--arcade-background) center/cover no-repeat,#1e9caa;color:#124f5d;gap:6px}
.arcade-sea0637 .arcade-top0613 h1{display:flex;align-items:center;justify-content:center;gap:3px;padding:6px 2px;border:1px solid #cda477;border-radius:16px;background:var(--arcade-header,linear-gradient(#fff8df,#ecd5aa)) center/100% 100% no-repeat;box-shadow:inset 0 1px 2px #fff,0 2px 3px #08475565;color:#0b5260;text-shadow:0 1px #fff6;min-height:32px;overflow:hidden}
.arcade-sea0637 .arcade-top0613 h1:before{content:'';width:22px;height:22px;flex:none;background:var(--arcade-crest) center/contain no-repeat;border-radius:50%}
.arcade-sea0637 .arcade-top0613 button,.arcade-sea0637 .arcade-moves0612 button,.arcade-sea0637 .bg-middle0612 button,.arcade-sea0637 .arcade-controls0613>button{background:var(--arcade-button,linear-gradient(#fff8df,#ecd6ad)) center/100% 100% no-repeat;color:#145260;border:1px solid #d9b882;border-radius:13px;box-shadow:inset 0 1px 1px #fff,0 2px 3px #03455350}
.arcade-sea0637 .arcade-info0613{padding:5px 7px;background:linear-gradient(#f0fffaef,#c6ece7e8);border:1px solid #d6fff2;border-radius:14px;box-shadow:0 2px 5px #0d63765c}
.arcade-avatar0637{width:32px;height:32px;object-fit:contain;flex:none;border-radius:50%;background:radial-gradient(#f7ffeb,#86d8dc);border:1px solid #fff9}
.arcade-sea0637 .arcade-turn0613{background:#147c83;color:#fff;border-radius:20px;padding:3px 5px;white-space:nowrap}
.arcade-reward0637{align-self:center;background:linear-gradient(#fff8dc,#f2d59b);border:1px solid #edbc69;border-radius:16px;padding:3px 12px;font-size:11px;line-height:1.2;box-shadow:0 2px 5px #074f6766;flex:none;text-align:center}
.arcade-sea0637 .arcade-body0613>p{background:#e9fff4e8;color:#174f5b;border-radius:9px;padding:4px 6px;text-align:center;font-size:11px}
.arcade-sea0637 .arcade-check0612,.arcade-sea0637 .arcade-puzzle0612,.arcade-sea0637 .bg-board0612{border:2px solid #d8bc83;border-radius:13px;padding:5px;background:var(--arcade-frame,linear-gradient(135deg,#a8f0df,#176b79 40%,#f8d6a0 75%,#28838d)) center/100% 100% no-repeat;box-shadow:0 3px 7px #073f5077,inset 0 0 0 1px #ffffdbb0;box-sizing:border-box}
.arcade-sea0637 .arcade-check0612{gap:1px}.arcade-sea0637 .arcade-check0612 .light{background:#f7e6c5 var(--arcade-check-light,none) center/cover}.arcade-sea0637 .arcade-check0612 .dark{background:#308f91 var(--arcade-check-dark,none) center/cover}
.arcade-sea0637 .arcade-piece0612{width:88%;border:0;box-shadow:0 2px 2px #03415055;background-size:contain;background-position:center;background-repeat:no-repeat;overflow:visible}
.arcade-sea0637 .arcade-piece0612.white{background:#f6dfb4 var(--arcade-check-white,none) center/contain no-repeat}.arcade-sea0637 .arcade-piece0612.black{background:#084f67 var(--arcade-check-black,none) center/contain no-repeat}
.arcade-sea0637 .arcade-piece0612.white.king0637{background-image:var(--arcade-check-king-white,var(--arcade-check-white))}.arcade-sea0637 .arcade-piece0612.black.king0637{background-image:var(--arcade-check-king-black,var(--arcade-check-black))}
.arcade-king0637{position:absolute;right:0;top:0;display:grid;place-items:center;min-width:42%;height:45%;line-height:1;font-size:clamp(10px,3vw,18px);border-radius:50%;background:#ffdf84;color:#493a20;border:1px solid #856633;box-shadow:0 1px 2px #18283070}
.arcade-sea0637 .arcade-check0612 .picked,.arcade-sea0637 .bg-point0612.picked{box-shadow:inset 0 0 0 3px #ffe07a,inset 0 0 9px #ffe07a!important;z-index:1}.arcade-sea0637 .arcade-check0612 .target,.arcade-sea0637 .bg-point0612.target{box-shadow:inset 0 0 0 3px #dbffae!important}.arcade-sea0637 .arcade-dot0612{background:#ffe69b;box-shadow:0 0 4px #ffdf73}
.arcade-sea0637 .arcade-puzzle0612{gap:4px;padding:5px}.arcade-sea0637 .arcade-puzzle0612 button:not(.blank){display:grid;place-items:start center;padding-top:3%;background-color:#d9f6ed;background-image:var(--tile-art,none),linear-gradient(#e7fff5,#83d4d3);background-repeat:no-repeat;background-position:center bottom,center;background-size:100% 56%,cover;border:1px solid #b3e9e0;border-radius:11px;box-shadow:inset 0 2px 2px #fff,0 2px 3px #034a5e55;overflow:hidden;color:#0d5160;line-height:1.05;font-size:clamp(16px,7cqw,32px)}
.arcade-sea0637 .arcade-puzzle0612 button:not(:disabled):not(.blank){border-color:#ffe3a0;box-shadow:inset 0 0 0 2px #ffdc83,0 0 5px #ffe6a3;background-color:#fbe9bb}
.arcade-number0637{display:block;line-height:1.1;text-shadow:0 1px 2px #faffef;font-weight:900;z-index:1}
.arcade-sea0637 .arcade-puzzle0612 .blank{border-radius:10px;background:#0e6274 var(--arcade-puzzle-empty,none) center/cover no-repeat;box-shadow:inset 0 2px 6px #07394d88}
.arcade-ghost-puzzle0637{display:grid;place-items:start center;padding-top:2px;overflow:hidden}.arcade-ghost0613 .arcade-king0637{position:absolute}
.arcade-sea0637 .arcade-dice0612{background:#e5fbf3e8;border-radius:12px;padding:3px 5px;color:#145660}.arcade-sea0637 .arcade-dice0612 small{color:#164f60}.arcade-sea0637 .arcade-dice0612 span{background:var(--arcade-dice,linear-gradient(#fff8df,#ebd29c)) center/cover;border:1px solid #d4b87c;box-shadow:inset 0 1px #fff,0 1px 2px #14546444;color:#114c5d}
.arcade-sea0637 .bg-board0612{gap:1px}.arcade-sea0637 .bg-row0612{background:radial-gradient(ellipse at 45% 70%,#8fe2d7,#278d97);min-height:0}.arcade-sea0637 .bg-point0612,.arcade-sea0637 .bg-point0612.odd{background:transparent;isolation:isolate;border-radius:0}.arcade-sea0637 .bg-point0612:before{content:'';position:absolute;inset:0;background:var(--arcade-bg-point-light,linear-gradient(90deg,#f2d6a3,#fff1cc,#e0bd86)) center/100% 100% no-repeat;clip-path:polygon(0 0,100% 0,50% 98%);z-index:-1}.arcade-sea0637 .bg-point0612.odd:before{background:var(--arcade-bg-point-dark,linear-gradient(90deg,#166c78,#2d9eaa,#1a6d7c)) center/100% 100% no-repeat}.arcade-sea0637 .bg-row0612.bottom .bg-point0612:before{clip-path:polygon(50% 2%,0 100%,100% 100%)}
.arcade-sea0637 .bg-point0612 small{background:#f8e7bf;border-radius:5px;padding:1px 2px;color:#104c5a;z-index:1;font-weight:800}.arcade-sea0637 .bg-stack0612 i{border:0;box-shadow:0 1px 2px #083f5160;line-height:1;text-shadow:0 1px 2px #073a4c;color:white}.arcade-sea0637 .bg-stack0612 .white{background:#ead5ad var(--arcade-bg-white,none) center/contain no-repeat;color:#184953;text-shadow:0 0 2px white}.arcade-sea0637 .bg-stack0612 .black{background:#19586c var(--arcade-bg-black,none) center/contain no-repeat}.arcade-sea0637 .bg-middle0612{background:linear-gradient(#4db7ba,#176c7c);border-block:1px solid #d5c898}.arcade-sea0637 .bg-middle0612 small{color:#fff}
.arcade0612 .arcade-games0612 .arcade-game-icon0612{height:50px;width:58px;object-fit:contain;display:block;border-radius:8px}.arcade0612 .arcade-games0612 button{background:linear-gradient(#f3ffed,#c7e8dd);border-color:#76a8a3}.arcade0612 .arcade-games0612 button.active{background:linear-gradient(#fff0c3,#f1d38a);border-color:#c19b55}
@media(max-width:360px){.arcade-sea0637 .arcade-top0613 h1:before{display:none}.arcade-avatar0637{width:25px;height:25px}.arcade-sea0637 .arcade-info0613{font-size:10px}.arcade-sea0637 .arcade-turn0613{padding:2px 4px}}
@media(max-height:430px){.arcade-sea0637{gap:3px}.arcade-sea0637 .arcade-top0613 h1{padding:3px;min-height:25px}.arcade-sea0637 .arcade-top0613 h1:before{width:17px;height:17px}.arcade-sea0637 .arcade-info0613{padding:2px 5px}.arcade-avatar0637{width:22px;height:22px}.arcade-reward0637{padding:2px 8px;font-size:10px}.arcade-sea0637 .arcade-body0613>p{padding:2px 4px;font-size:10px}.arcade-sea0637 .arcade-puzzle0612 button:not(.blank){font-size:clamp(14px,5cqh,25px)}}

.arcade-sea0637 .arcade-puzzle0612 button[data-number="1"]{--tile-art:var(--arcade-puzzle-1,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="2"]{--tile-art:var(--arcade-puzzle-2,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="3"]{--tile-art:var(--arcade-puzzle-3,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="4"]{--tile-art:var(--arcade-puzzle-4,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="5"]{--tile-art:var(--arcade-puzzle-5,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="6"]{--tile-art:var(--arcade-puzzle-6,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="7"]{--tile-art:var(--arcade-puzzle-7,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="8"]{--tile-art:var(--arcade-puzzle-8,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="9"]{--tile-art:var(--arcade-puzzle-9,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="10"]{--tile-art:var(--arcade-puzzle-10,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="11"]{--tile-art:var(--arcade-puzzle-11,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="12"]{--tile-art:var(--arcade-puzzle-12,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="13"]{--tile-art:var(--arcade-puzzle-13,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="14"]{--tile-art:var(--arcade-puzzle-14,none)}
.arcade-sea0637 .arcade-puzzle0612 button[data-number="15"]{--tile-art:var(--arcade-puzzle-15,none)}

/* v0.6.38 — interactive reef adventures, using the shared underwater artwork. */
.arcade0612 .arcade-games0612 button{min-height:85px;justify-content:start;align-content:start}.arcade0612 .arcade-games0612 .arcade-game-icon0612{width:64px;height:58px}.arcade0612 .arcade-games0612 b{font-size:12px;line-height:1.15;overflow-wrap:normal}.arcade0612 .arcade-games0612 button[data-key=maze] b{font-size:11px}
.arcade-sea0637:is([data-game0637=snake],[data-game0637=maze],[data-game0637=bubbles]) .arcade-top0613 h1{font-size:clamp(12px,3.8vw,21px);line-height:1.08;min-height:36px}.arcade-sea0637:is([data-game0637=snake],[data-game0637=bubbles]) .arcade-top0613 h1:before{display:none}
.reef-hud0638{display:flex;justify-content:center;gap:6px;flex:none}.reef-hud0638>span{display:grid;justify-items:center;flex:1;padding:4px 8px;border:1px solid #d1f9e8;border-radius:13px;background:linear-gradient(#f6fce9ed,#b6e5dce8);box-shadow:0 2px 4px #0a556655;min-width:0}.reef-hud0638 small{font-size:10px;color:#306470}.reef-hud0638 b{font-size:17px;color:#0c5664;font-variant-numeric:tabular-nums}.reef-hud0638 .reef-lives0638{color:#bc4e66;letter-spacing:1px}
.reef-board0638{position:relative;width:min(100cqw,calc(100cqh * var(--reef-w) / var(--reef-h)));height:min(100cqh,calc(100cqw * var(--reef-h) / var(--reef-w)));border:2px solid #e9ce93;border-radius:16px;background:var(--arcade-frame,linear-gradient(125deg,#a1e6dc,#23737e 46%,#e7c48c 74%,#438e92)) center/100% 100%;box-shadow:0 4px 15px #03445396,inset 0 0 0 2px #f6f0ce;overflow:hidden;touch-action:none;isolation:isolate;min-width:0;min-height:0}
.reef-grid0638{position:absolute;inset:6px;display:grid;grid-template-columns:repeat(var(--reef-w),minmax(0,1fr));grid-template-rows:repeat(var(--reef-h),minmax(0,1fr));gap:0;border-radius:9px;overflow:hidden;background:radial-gradient(ellipse at 32% 16%,#7ccfca,#267d8e 80%);box-shadow:inset 0 2px 10px #053e5e6b;touch-action:none}.reef-cell0638{position:relative;min-width:0;min-height:0;background:transparent;box-shadow:inset 0 0 0 .5px #d6f5df28;border:0;border-radius:0;padding:0}.reef-snake0638 .reef-cell0638:nth-child(odd){background-color:#d4fff30b}.reef-maze0638 .reef-cell0638{background-color:#7ab7b4;box-shadow:inset 0 0 0 .5px #295b6444}.reef-cell0638:is(.reef-wall0638,.reef-tail0638,.reef-food0638,.reef-key0638,.reef-exit0638,.reef-good0638,.reef-bad0638){background-image:var(--reef-art);background-size:contain;background-repeat:no-repeat;background-position:center}.reef-maze0638 .reef-wall0638{background-size:cover;background-color:#3d6970}.reef-maze0638 .reef-exit0638{filter:brightness(.75)}.reef-maze0638 .reef-exit0638.open0638{filter:drop-shadow(0 0 5px #f2ffbf);background-color:#a4d5ab}.reef-bubbles0638 .reef-cell0638{box-shadow:none}.reef-bubbles0638 .reef-grid0638{background:radial-gradient(ellipse at 50% 5%,#a3e6dc88,transparent 50%),linear-gradient(#398e9a90,#06576fce),var(--arcade-background) center/cover}.reef-bubbles0638 button.reef-cell0638{cursor:pointer;border:0;box-shadow:none;transition:filter .08s;touch-action:none}.reef-bubbles0638 button.reef-cell0638:active{filter:brightness(1.4);transform:scale(.9)}.reef-bubbles0638 button.reef-cell0638:focus-visible{outline:2px solid #fff6ae;outline-offset:-2px}
.reef-pet0638{position:absolute;z-index:2;pointer-events:none;object-fit:contain;left:calc(6px + (100% - 12px) / var(--reef-w) * var(--rx));top:calc(6px + (100% - 12px) / var(--reef-h) * var(--ry));width:calc((100% - 12px) / var(--reef-w));height:calc((100% - 12px) / var(--reef-h));filter:drop-shadow(0 1px 2px #193d3e);transition:left .1s linear,top .1s linear}.reef-maze0638 .reef-pet0638{background:#f6e4a343;border-radius:50%;filter:drop-shadow(0 0 2px #ffeac2)}
.reef-overlay0638{position:absolute;z-index:4;inset:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;border-radius:9px;background:linear-gradient(#0c5368d9,#0c4259e8);color:#fff7dc;text-align:center;backdrop-filter:blur(2px)}.reef-overlay0638[hidden]{display:none}.reef-overlay0638 b{font-size:clamp(15px,4.5vw,24px)}.reef-overlay0638 small{color:#e2fff5;font-size:12px}.reef-overlay0638 button,.reef-controls0638 button{background:var(--arcade-button,linear-gradient(#fff6d7,#eacb91)) center/100% 100%;border:1px solid #d6b37c;color:#145260;box-shadow:0 2px 3px #174d5960,inset 0 1px #fff8;min-height:38px}.reef-controls0638{display:flex;justify-content:center;align-items:center;gap:8px;flex:none;color:#fff9e2}.reef-controls0638 small{background:#0b596dcc;border-radius:9px;padding:4px 6px;color:#edfff3;text-align:center}.reef-arrows0638{display:flex;gap:5px}.reef-arrows0638 button{min-width:43px;padding:3px 9px;font-size:22px;line-height:1}.reef-controls0638 button[data-reef-pause]{font-size:12px}.reef-rule0638{line-height:1.25!important}
@media(max-width:360px){.reef-arrows0638 button{min-width:36px;padding:3px 7px}.reef-hud0638 b{font-size:15px}}@media(max-height:430px){.reef-hud0638>span{padding:1px 5px;display:flex;gap:5px;align-items:center;justify-content:center}.reef-hud0638 b{font-size:12px}.reef-controls0638 button{min-height:28px}.reef-arrows0638 button{font-size:17px;min-width:36px}.reef-overlay0638{padding:4px;gap:3px}.reef-overlay0638 b{font-size:14px}.reef-overlay0638 button{min-height:28px;padding:3px 8px}.arcade-sea0637:is([data-game0637=snake],[data-game0637=maze],[data-game0637=bubbles]) .arcade-top0613 h1{min-height:25px}}
.reef-tail0638{--reef-art:var(--arcade-snake-tail)}.reef-food0638{--reef-art:var(--arcade-snake-food)}.reef-wall0638{--reef-art:var(--arcade-maze-wall)}.reef-key0638{--reef-art:var(--arcade-maze-key)}.reef-exit0638{--reef-art:var(--arcade-maze-exit)}.reef-good0638{--reef-art:var(--arcade-bubbles-good)}.reef-bad0638{--reef-art:var(--arcade-bubbles-bad)}

/* v0.6.39: consistent transparent game menu icons, centered cards. */
.arcade0612 .arcade-games0612 button{display:grid;grid-template-rows:auto 1fr;justify-items:center;justify-content:stretch;align-content:stretch;min-height:108px;padding:7px 4px;text-align:center;gap:4px}.arcade0612 .arcade-games0612 .arcade-game-icon0612{width:min(100%,76px);height:76px;object-fit:contain;border-radius:0;background:transparent}.arcade0612 .arcade-games0612 b{align-self:center;overflow-wrap:anywhere}.arcade-hint0639{font-size:12px;margin:0 0 8px}#arcade-setup0639{margin-top:12px;padding-top:8px;border-top:1px solid #8ab9b2;scroll-margin:8px}#arcade-setup0639 h3{margin:0 0 8px;color:#255967}.arcade-start-status0639{font-size:12px;color:#9b4a38;overflow-wrap:anywhere}.arcade-start-status0639:empty{display:none}
/* v0.6.40: moving pieces are separate from the static collision grid. */
.reef-sprites0640{position:absolute;inset:6px;overflow:hidden;border-radius:9px;pointer-events:none;z-index:2;touch-action:none}
.reef-sprites0640 .reef-sprite0640{position:absolute;left:0;top:0;width:calc(100% / var(--reef-w));height:calc(100% / var(--reef-h));margin:0;padding:0;min-width:0;min-height:0;box-sizing:border-box;transition:transform var(--reef-ms0640,120ms) linear;will-change:transform;background-color:transparent;background-image:var(--reef-art);background-size:contain;background-position:center;background-repeat:no-repeat;border:0;border-radius:0;box-shadow:none;pointer-events:none}
.reef-sprites0640 .reef-pet0638{z-index:2;object-fit:contain;filter:drop-shadow(0 1px 2px #193d3e);background-image:none}
.reef-sprites0640 button.reef-sprite0640{pointer-events:auto;cursor:pointer;touch-action:none}
.reef-sprites0640 button.reef-sprite0640:active{filter:brightness(1.25)}
.reef-sprites0640 button.reef-sprite0640:focus-visible{outline:2px solid #fff6ae;outline-offset:-2px}
.reef-maze0638 .reef-sprites0640 .reef-pet0638{background-color:#f6e4a343;border-radius:50%}
@media(prefers-reduced-motion:reduce){.reef-sprites0640 .reef-sprite0640{transition:transform var(--reef-ms0640,120ms) linear!important}}
/* v0.6.41: new portrait composition, expedition reports and inline commerce */
.exp-story0641{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:10px 0}.exp-story0641 img{width:100%;max-height:260px;object-fit:cover;object-position:center 50%;border:2px solid #8dc5c0;border-radius:14px}.exp-story0641 p{font-size:13px;line-height:1.5;margin:5px 0}.trail-node .zone-symbol img{width:44px;height:44px;border-radius:10px;object-fit:cover;display:block;margin:auto}.found-eggs0641{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.found-eggs0641 button{flex:0 0 auto}.exp-report0641 summary{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}.exp-report0641 summary small{margin-left:auto}.exp-report-top0641{display:flex;align-items:center;gap:9px;margin-top:8px}.exp-report-top0641 img{width:64px;height:64px;border-radius:10px;object-fit:cover}.exp-report-top0641 p{flex:1;font-size:13px}.trade-line0641{display:grid;grid-template-columns:minmax(0,.65fr) repeat(2,minmax(0,1.2fr));gap:5px;align-items:center;margin-top:8px}.trade-line0641 input{min-width:0;width:100%;padding:8px 3px;text-align:center;border:1px solid #8ebbb8;border-radius:9px;background:#f8fffb;color:#254954;font:inherit}.trade-line0641 button{font-size:12px;padding:8px 3px;min-height:40px;line-height:1.2}.trade-name0641{display:flex;align-items:center;gap:6px}.trade-name0641 .ui-icon{width:26px;height:26px}.sell-line0641{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}.trade-story0641{display:grid;gap:10px;padding:11px 12px;border:1px solid #8dbfc0;background:linear-gradient(180deg,#f7fffdde,#eff9f7e9);box-shadow:inset 0 1px 0 #ffffffbb}.trade-story-head0641{display:flex;align-items:flex-start;gap:10px}.trade-story-emblem0641{flex:0 0 42px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(180deg,#2f9eb0,#1c7482);box-shadow:inset 0 1px 0 #bff7ff99,0 1px 2px #28515d22;color:#fff;font-size:23px}.trade-story-title0641{min-width:0}.trade-story-title0641 b{display:block;font-size:16px;line-height:1.1;color:#214c57}.trade-story-title0641 small{display:block;margin-top:2px;font-size:11px;line-height:1.35;color:#52757c}.trade-story-stats0641{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.trade-story-stat0641{padding:8px 9px;border-radius:12px;border:1px solid #91c6c2;background:linear-gradient(180deg,#ffffffd8,#ecf8f4d6)}.trade-story-stat0641 span{display:block;font-size:11px;line-height:1.2;color:#53747a}.trade-story-stat0641 strong{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:17px;line-height:1.1;color:#184955}.trade-story-copy0641{font-size:12px;line-height:1.45;color:#29505a}.trade-story-notes0641{display:grid;gap:5px;margin:0;padding:0;list-style:none}.trade-story-notes0641 li{display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.35;color:#4d7178}.trade-story-notes0641 li::before{content:'•';flex:0 0 auto;color:#2d8d95;font-weight:800;font-size:14px;line-height:1}@media (max-width:380px){.trade-story-stats0641{grid-template-columns:minmax(0,1fr)}.trade-story-stat0641 strong{font-size:16px}}.passport54 .pet-summary{display:block;padding:0;background:transparent}.portrait0641{position:relative;isolation:isolate;display:block;width:100%;aspect-ratio:1.12;overflow:hidden;min-width:0;background-size:cover;background-position:center;border:1px solid #79aaa8;border-radius:13px!important;padding:0!important}.portrait0641:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#eafaf0d9,transparent 29%,transparent 70%,#17485455);z-index:1}.portrait0641 img.pet-portrait,.passport54 .pet-summary .portrait0641 img.pet-portrait{position:absolute;inset:24% 12% 14%;width:76%;height:62%;max-height:none;max-width:none;aspect-ratio:auto;object-fit:contain;background:none!important;border:0;z-index:0;filter:drop-shadow(0 2px 3px #123e4540)}.pet-rarity0641{position:absolute;left:50%;top:3%;transform:translateX(-50%);font-size:clamp(9px,2.5vw,12px);z-index:3;white-space:nowrap}.pet-name0641{position:absolute;top:14%;left:4%;right:4%;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--name0641);font-weight:800;line-height:1.2;color:#16444f;text-shadow:0 1px 2px #fff;z-index:3}.pet-profile0641{position:absolute;right:4%;top:29%;display:flex;gap:2px;align-items:center;font-size:10px;background:#f4f9e8de;padding:3px 4px;border-radius:7px;color:#244d54;z-index:3}.pet-profile0641 .ui-icon{width:17px;height:17px}.pet-breeds0641{position:absolute;bottom:12%;right:4%;background:#f5f9e8dd;border-radius:7px;padding:2px 5px;font-size:11px;font-weight:800;z-index:3}.pet-xp0641{position:absolute;left:4%;right:4%;bottom:3%;height:8%;min-height:16px;border-radius:12px;border:1px solid #e9f4e6;background:#234d58b8;overflow:hidden;z-index:3}.pet-xp0641 i{display:block;height:100%;background:linear-gradient(90deg,#85c8a4,#e8d78c);border-radius:10px}.portrait0641 .pet-xp0641 .pet-level060,.passport54 .portrait0641 .pet-xp0641 .pet-level060{position:absolute;inset:0;display:grid;place-items:center;padding:0;background:none;box-shadow:none;border:0;color:#fff;text-shadow:0 1px 3px #183f43,0 0 3px #163d46;font-size:clamp(12px,4vw,18px);line-height:1}.portrait0641 .pet-activity060{top:29%;left:4%}.satiety0641{position:absolute;right:4%;top:45%;display:grid;gap:2px;z-index:3}.satiety0641 span{display:grid;place-items:center;background:#f7fff2c9;border-radius:5px;width:17px;height:17px}.satiety0641 .ui-icon{width:15px;height:15px}.satiety0641 .empty0641{filter:grayscale(1);opacity:.65}.petcard0641{gap:6px;padding:5px}.resident0641{aspect-ratio:1/1.12}.resident0641 img.pet-portrait{inset:26% 13% 15%;width:74%;height:59%}.resident-actions0641{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:5px}.resident-actions0641 button{margin:0;min-width:0;padding:6px 3px}.resident-actions0641 [data-action=feed] .ui-icon{width:25px;height:25px}.pet-close0641{position:sticky;top:0;float:right;z-index:10;width:28px;height:28px;min-height:0;padding:0;border:1px solid #6698a1;border-radius:50%;font-size:22px;line-height:22px;background:#f5fcf6;box-shadow:0 1px 3px #25495444;margin:-5px -5px -23px 0}.passport54 .passport-banner54{padding-right:25px}.passport54 .passport-share54{margin:6px 0 10px}.ice0641{position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at center,transparent 36%,#b9f4ff65 75%,#dcf8ffe0),repeating-conic-gradient(from 12deg at 5% 7%,transparent 0deg 24deg,#defaffaa 24deg 24.5deg,transparent 24.5deg 53deg),repeating-conic-gradient(from 5deg at 98% 93%,transparent 0deg 35deg,#c7f5ffb0 35deg 36deg,transparent 36deg 70deg);box-shadow:inset 0 0 18px #e2fbff;}.petcard0641 .pet-portrait{background:none!important}.passport54 .pet-group-care56 .pet-actions button{font-size:12px}.passport54 .pet-group-care56 .pet-actions{gap:5px}.petcard0641 .pet-activity060 span{min-width:20px;height:20px;padding:0 3px}
@media(max-width:360px){.resident0641 .pet-name0641{font-size:clamp(10px,3.5vw,13px)}.trade-line0641 button{font-size:11px}.pet-profile0641{font-size:9px}.satiety0641 span{width:15px;height:15px}.satiety0641 .ui-icon{width:13px;height:13px}.petcard0641 .pet-profile0641 .ui-icon{width:14px;height:14px}}
/* Four hunger marks stay entirely above the breeding counter, including 320px phones. */
.satiety0641{top:41%;bottom:24%;grid-template-rows:repeat(4,minmax(0,1fr));gap:1px}.satiety0641 span{height:100%;max-height:17px;min-height:0;align-self:center}.satiety0641 .ui-icon{height:100%;max-height:15px}.passport54 .pet-group-care56 .pet-actions{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}.passport54 .pet-group-care56 [data-action=feed]{white-space:nowrap;font-size:11px;padding:6px 3px}.passport54 .pet-group-care56 [data-action=feed] .ui-icon{width:15px;height:15px}.passport54 .pet-group-care56 [data-action=uiWork]{text-align:center}
@media(max-width:360px){.passport54 .pet-group-care56 [data-action=feed]{font-size:10px}.passport54 .pet-group-care56 [data-action=feed] .ui-icon{width:13px;height:13px}}

/* v0.6.42: resident overlays, readable family tree, real-time incubation clock. */
.resident0641 .pet-rarity0641{top:0;left:0;transform:none;max-width:68%;padding:3px 9px 3px 5px;border-radius:0 0 9px 0;border:0;box-shadow:0 2px 5px #123e4544;line-height:1.2;font-size:clamp(9px,2.35vw,12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.resident0641 .pet-name0641{top:16%;left:4%;right:4%;font-size:var(--name0641);line-height:1.2}
.resident0641 img.pet-portrait{inset:28% 15% 15% 5%;width:80%;height:57%}
.resident0641 .satiety0641{top:50%;bottom:auto;right:3%;transform:translateY(-50%);display:grid;grid-template-rows:repeat(4,1fr);gap:2px}
.resident0641 .satiety0641 span{width:clamp(13px,4vw,20px);height:clamp(13px,4vw,20px);max-height:none}.resident0641 .satiety0641 .ui-icon{width:85%;height:85%;max-height:none}
.resident0641 .pet-activity060{top:31%;left:3%}
.resident-bottom0642{position:absolute;z-index:4;left:3%;right:3%;bottom:3%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.42fr) minmax(0,.65fr) minmax(0,.93fr);gap:2px;align-items:center;padding:3px 3px;background:#f3f9e9e8;border:1px solid #d0e5d9;border-radius:8px;color:#244d54;font-size:clamp(9px,2.7vw,13px);line-height:1.2;white-space:nowrap}
.resident0641 .resident-bottom0642 .pet-xp0641{position:static;min-height:0;height:6px;border-radius:8px;background:#4a7079;border:0;width:100%}
.resident-bottom0642 .resident-level0642{text-align:center;font-variant-numeric:tabular-nums;min-width:0}
.resident0641 .resident-bottom0642 .pet-breeds0641,.resident0641 .resident-bottom0642 .pet-profile0641{position:static;display:flex;align-items:center;justify-content:center;gap:1px;min-width:0;padding:0;background:none;border-radius:0;font-size:inherit;font-weight:800;line-height:1.2}
.resident-bottom0642 .ui-icon,.petcard0641 .resident-bottom0642 .pet-profile0641 .ui-icon{width:clamp(11px,3.5vw,17px);height:clamp(11px,3.5vw,17px);flex:none}
.lineage0642{font-size:13px}.lineage-root0642{background:linear-gradient(160deg,#e8f6e8,#d1ece9);border:1px solid #9bc5bf;border-radius:15px;padding:10px;margin:10px 0}.lineage-root0642>span{display:block;text-align:center;color:#397074;font-weight:700;margin-bottom:6px}.lineage-branch0642{min-width:0}.lineage-person0642{display:flex;flex-direction:column;gap:3px;padding:8px 9px;border:1px solid #9dbfb6;background:#fbfff3;border-radius:10px;color:#214b55;overflow-wrap:anywhere}.lineage-root0642>.lineage-branch0642>.lineage-person0642{background:#fff6d8;border-color:#d3b879;text-align:center}.lineage-person0642 small,.lineage-end0642{font-size:11px;color:#50767a}.lineage-parent-label0642{margin:3px 0 3px 10px;font-size:11px;font-weight:700;color:#397074}.lineage-children0642{display:grid;gap:6px;border-left:2px solid #8bbdb5;margin-left:9px;padding-left:12px}.lineage-children0642>.lineage-branch0642,.lineage-children0642>.lineage-unknown0642{position:relative}.lineage-children0642>.lineage-branch0642:before,.lineage-children0642>.lineage-unknown0642:before{content:'';position:absolute;width:12px;height:2px;background:#8bbdb5;left:-12px;top:17px}.lineage-unknown0642{color:#50767a;border:1px dashed #a0c4bb;padding:7px;border-radius:8px}.lineage-end0642{display:block;margin:4px 0 0 7px}
.breed-clock0642{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;margin:10px 0 16px;padding:13px 10px;background:radial-gradient(ellipse at 50% 0%,#effbf0,#cce9e8 80%);border:1px solid #83b6b3;border-radius:17px;box-shadow:inset 0 0 0 3px #ffffff55,0 3px 9px #24565e18;color:#24545b}.breed-clock0642 time{font-size:clamp(25px,8vw,38px);font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:2px;color:#f4f8df;background:#28636c;padding:8px 15px;border-radius:12px;box-shadow:inset 0 2px 5px #163f4c77}.breed-clock0642 small{font-size:11px;color:#466b70}


/* v0.6.43 residents/passport portrait hotfix */
.portrait0641{aspect-ratio:1/1.12}
.portrait0641:before{background:linear-gradient(#eefbf2f0,transparent 24%,transparent 68%,#17485455)}
.portrait0641 img.pet-portrait,.passport54 .pet-summary .portrait0641 img.pet-portrait{position:absolute;inset:23% 12% 15%;width:76%;height:62%}
.portrait0641 .pet-name0641{top:2.5%;left:18%;right:6%;text-align:center;line-height:1.15;z-index:5}
.portrait0641 .pet-rarity0641{left:-33px;top:10px;transform:rotate(-45deg);transform-origin:center;min-width:112px;max-width:132px;padding:3px 24px 4px;font-size:clamp(8px,2.1vw,11px);text-align:center;border-radius:0;box-shadow:0 2px 6px #123e4548;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:4}
.portrait0641 .satiety0641{top:50%;bottom:auto;right:3%;transform:translateY(-50%);display:grid;grid-template-rows:repeat(4,1fr);gap:2px}
.portrait0641 .satiety0641 span{width:clamp(13px,4vw,20px);height:clamp(13px,4vw,20px);max-height:none}
.portrait0641 .satiety0641 .ui-icon{width:85%;height:85%;max-height:none}
.portrait0641 .portrait-food-off0643{filter:grayscale(1);opacity:.65}
.portrait0641 .resident-bottom0642{position:absolute;z-index:4;left:3%;right:3%;bottom:3%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.42fr) minmax(0,.65fr) minmax(0,.93fr);gap:2px;align-items:center;padding:3px 3px;background:#f3f9e9e8;border:1px solid #d0e5d9;border-radius:8px;color:#244d54;font-size:clamp(9px,2.7vw,13px);line-height:1.2;white-space:nowrap}
.portrait0641 .resident-bottom0642 .pet-xp0641{position:static;min-height:0;height:6px;border-radius:8px;background:#4a7079;border:0;width:100%}
.portrait0641 .resident-bottom0642 .resident-level0642{text-align:center;font-variant-numeric:tabular-nums;min-width:0}
.portrait0641 .resident-bottom0642 .pet-breeds0641,.portrait0641 .resident-bottom0642 .pet-profile0641{position:static;display:flex;align-items:center;justify-content:center;gap:1px;min-width:0;padding:0;background:none;border-radius:0;font-size:inherit;font-weight:800;line-height:1.2}
.portrait0641 .resident-bottom0642 .ui-icon,.portrait0641 .resident-bottom0642 .pet-profile0641 .ui-icon{width:clamp(11px,3.5vw,17px);height:clamp(11px,3.5vw,17px);flex:none}
@media(max-width:360px){.portrait0641 .pet-name0641{left:20%;right:5%;font-size:clamp(10px,3.5vw,13px)}.portrait0641 .pet-rarity0641{left:-38px;top:8px;min-width:110px;max-width:124px;font-size:clamp(7px,2vw,10px)}}

/* Telegram safe insets, with native CSS fallback. */
html.telegram0740 body{padding-top:max(env(safe-area-inset-top),var(--tg-top,0px));padding-left:max(env(safe-area-inset-left),var(--tg-left,0px));padding-right:max(env(safe-area-inset-right),var(--tg-right,0px));}html.telegram0740 #nav{padding-bottom:max(5px,env(safe-area-inset-bottom),var(--tg-bottom,0px));}.tg-pref0740{display:block;margin:8px 0}#login-block55 input[readonly]{width:100%;min-width:0}
html.telegram0740 #game{height:calc(100dvh - max(env(safe-area-inset-top),var(--tg-top,0px)));min-height:0}html.telegram0740 dialog{max-height:calc(100dvh - max(env(safe-area-inset-top),var(--tg-top,0px)) - max(env(safe-area-inset-bottom),var(--tg-bottom,0px)) - 16px);}

/* 0750: overlay bonuses do not participate in the map layout. */
.map-shell{position:relative}.map-shell>.daily0630{position:absolute;z-index:25;top:8px;left:8px;right:50px;margin:0;max-width:340px;box-shadow:0 3px 12px #174d5430;background:#eff9e7f5}.map-shell>.daily0630 p{padding-right:20px}
.starter0750{position:absolute;z-index:19;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}.starter0750 .egg0750{position:relative;display:grid;place-items:center;width:clamp(105px,29vw,156px);height:clamp(125px,34vw,185px);margin:auto;filter:drop-shadow(0 6px 12px #183e4770);animation:eggBob0750 1.5s ease-in-out infinite}.egg0750 .ui-icon,.egg0750 img{width:100%;height:100%;object-fit:contain}.starter0750 b{color:#194c57;background:#e9fbefdb;border-radius:12px;padding:6px 10px;font-size:13px;box-shadow:0 2px 8px #24586030}.starter0750 .egg0750:has(svg):before{content:'';position:absolute;inset:8% 14%;border-radius:50%;background:radial-gradient(ellipse,#f9f5b8a0,transparent 70%);z-index:-1}.lab-locked0750{display:block;width:120px;margin:auto}.sea0750{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1;border-radius:inherit}.sea0750 i{position:absolute;bottom:-16px;left:var(--x);width:var(--b);height:var(--b);border:1px solid #e8ffffa0;border-radius:50%;background:radial-gradient(circle at 30% 25%,#f2ffff9c,transparent 55%);opacity:0;animation:seaRise0750 var(--t) linear infinite;animation-delay:var(--d)}
@keyframes seaRise0750{0%{transform:translate(0,0);opacity:0}15%{opacity:.34}75%{opacity:.23}100%{transform:translate(14px,-420px);opacity:0}}@keyframes eggBob0750{50%{transform:translateY(-5px) rotate(2deg)}}@media(prefers-reduced-motion:reduce){.sea0750{display:none}.egg0750{animation:none!important}}

.birth-stage0750{width:clamp(120px,32vw,174px);height:clamp(140px,37vw,200px);position:relative;margin:auto}.birth-shell0750,.newborn0750{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.birth-shell0750 img,.birth-shell0750 svg{width:100%;height:100%;object-fit:contain}.birth-shell0750.left0750{clip-path:polygon(0 0,54% 0,48% 28%,55% 46%,45% 65%,51% 100%,0 100%);animation:shellLeft0750 1s ease-out forwards}.birth-shell0750.right0750{clip-path:polygon(54% 0,100% 0,100% 100%,51% 100%,45% 65%,55% 46%,48% 28%);animation:shellRight0750 1s ease-out forwards}.newborn0750{animation:newborn0750 1s ease-out forwards}.birth-active0750 .walker{visibility:hidden}@keyframes shellLeft0750{to{transform:translate(-45%,25%) rotate(-35deg);opacity:0}}@keyframes shellRight0750{to{transform:translate(45%,25%) rotate(35deg);opacity:0}}@keyframes newborn0750{0%{transform:scale(.45);opacity:0}30%{opacity:1}65%{transform:scale(1.08)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.birth-shell0750{display:none}.newborn0750{animation:none}}

/* v0.7.6 */
.tile.building-tile.decor0760{grid-column:var(--gc)/span 1;grid-row:var(--gr)/span 1;min-height:34px}.decor0760 .tile-label{font-size:8px;padding:1px;bottom:0;max-height:24px;overflow:hidden}.build-tabs0760{padding:8px 12px;display:flex;flex-wrap:wrap;gap:5px}.build-tabs0760 button{flex:1;min-width:75px}.visit-grid.visit-fine0612{background-size:100% 100%;background-position:center;min-height:190px;overflow:hidden;border-radius:10px}.visit-grid.visit-fine0612>div{background:rgba(232,249,247,.28);min-height:0}.visit-grid.visit-fine0612 img{max-height:100%;object-fit:contain}.admin-groups0760{display:block;position:static;background:none;padding:0;margin:12px 0}.admin-groups0760>details{margin:6px 0;border:1px solid #a9ceca;border-radius:10px;background:#e4f2ef;padding:7px}.admin-groups0760 summary{cursor:pointer;font-weight:700;padding:6px}.reef-board0638{touch-action:none}

.arcade-play0613[data-game0637="snake"],.arcade-play0613[data-game0637="maze"]{touch-action:none}.reef-board0638 .reef-overlay0638[hidden]{display:none}

.world>.ship-gift0624 img{width:100%;height:100%;object-fit:contain;pointer-events:none}.ship-emoji0800{font-size:clamp(28px,9vw,48px);line-height:1;pointer-events:none}
/* 0.8.2: decorative fish and persistent inbox */
.world .reef-fish0820{position:absolute;left:0;z-index:5;width:clamp(74px,29.25%,144px);height:auto;aspect-ratio:156/116;padding:0!important;margin:0;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;touch-action:manipulation;opacity:.88;will-change:transform}.reef-fish0820 img,.reef-fish0820 span{display:block;width:100%;height:100%;object-fit:contain;transform:scaleX(var(--fish-face,1));pointer-events:none}.reef-fish0820 span{font-size:clamp(42px,12vw,86px);line-height:1.2}.inbox0820 h2{font-size:1.1rem;margin:0 0 8px}.inbox0820 article{padding:8px 0;border-top:1px solid var(--line)}.inbox0820 article p{margin:6px 0}.inbox0820 .muted{margin:0}.inbox-badge0820{position:absolute;right:4px;top:2px;background:#b5524a;color:white;border-radius:20px;min-width:16px;height:16px;font-size:11px!important;line-height:16px;font-style:normal;padding:0 3px}#nav [data-view="guide"]{position:relative}@media(prefers-reduced-motion:reduce){.reef-fish0820{display:none!important}}

.reef-fish0820 span svg{display:block;width:100%;height:100%;pointer-events:none}
.world>.micro0830{position:absolute;display:block;transform:translate(-50%,-50%);pointer-events:none;z-index:9;filter:drop-shadow(0 1px 1px #163c4b66)}.micro0830 img,.micro0830 svg{display:block;width:100%;height:100%;object-fit:contain}.walker .walk-reaction{white-space:nowrap}

/* 0.8.4 — plain heart, preserve speech and other reaction styles */
.world .walker .walk-reaction.heart0840{background:transparent;border:0;box-shadow:none;text-shadow:none;color:#c44866;font-size:17px}.peek54[data-mood="love"] .peek-mark54{text-shadow:none}

/* 0850: motion on the inner artwork, not on the position/interaction layer. */
@keyframes fishSwim0850{0%,100%{transform:scaleX(var(--fish-face,1)) rotate(-2deg) scale(1,.98)}50%{transform:scaleX(var(--fish-face,1)) rotate(2deg) scale(.96,1.025)}}
.reef-fish0820>img,.reef-fish0820>span{animation:fishSwim0850 1.05s ease-in-out infinite;transform-origin:45% 50%}.reef-fish0820.flee0850>img,.reef-fish0820.flee0850>span{animation-duration:.23s}
@keyframes microPulse0850{0%,100%{transform:scale(1,.9) rotate(-5deg)}50%{transform:scale(.87,1.14) rotate(5deg)}}
@keyframes microFlutter0850{0%,100%{transform:scale(1,.98) rotate(-9deg)}50%{transform:scale(.95,1.04) rotate(9deg)}}
.micro0830>img,.micro0830>svg{animation:microPulse0850 .95s ease-in-out infinite;animation-delay:var(--micro-phase,0s);transform-origin:center}.micro0830:is([data-kind="2"],[data-kind="3"],[data-kind="6"],[data-kind="7"],[data-kind="11"])>img,.micro0830:is([data-kind="2"],[data-kind="3"],[data-kind="6"],[data-kind="7"],[data-kind="11"])>svg{animation-name:microFlutter0850;animation-duration:.42s}
@media(prefers-reduced-motion:reduce){.reef-fish0820>img,.reef-fish0820>span,.micro0830>img,.micro0830>svg{animation:none!important}}

/* 0.8.6: readable speech, spacing of action groups, cosmetic speed. */
.world .walker .walk-reaction.micro-speech0860{width:max-content;height:auto;max-width:128px;min-width:0;padding:4px 7px;left:50%;top:0;transform:translate(-50%,-100%);display:block;white-space:normal;overflow-wrap:normal;border-radius:11px;font:750 clamp(10px,3vw,13px)/1.2 var(--game-font09914);color:#28545b;background:#edfaf2;border:1px solid #70a6aa;text-shadow:none;box-shadow:none;text-align:center;z-index:2}
.tg-actions0860{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.tg-actions0860>button{flex:1 1 130px;min-width:0;max-width:100%;margin:0;white-space:normal}.profile0780 #login-block55>button,.profile0780 #login-block55>a{margin:6px 0}.profile0780 #login-block55>input{margin-bottom:8px}
.section .panel>button+button,#modalbody>button+button,.section .panel>details>button+button,#modalbody .panel>button+button{margin-top:8px}.section .panel>button:not(.full)+button:not(.full),#modalbody>button:not(.full)+button:not(.full),.section .panel>details>button:not(.full)+button:not(.full){margin-inline-start:5px}.section .row,#modalbody .row{gap:8px;flex-wrap:wrap}.passport-status54:not([hidden]){margin:8px 0}.passport-share54~button.full{margin-top:8px}
.reef-fish0820.flee0850>img,.reef-fish0820.flee0850>span{animation-duration:var(--fish-flee-duration,.23s)}

#modalbody button[hidden]{display:none!important}

/* v0.8.7 */
.panel{border:1.5px solid #2ab6b080!important}.world>.micro0830[hidden]{display:none!important}.world>.micro0830{width:10px;height:10px;left:-20px;top:50%;max-width:48px;max-height:48px}.world .walker .walk-reaction.heart0840{font-size:10px;width:12px;height:12px}.peek54[data-mood="love"] .peek-mark54{font-size:13px}.litter0870{position:absolute;transform:translate(-50%,-50%);width:clamp(25px,8%,42px);height:clamp(25px,8%,42px);min-height:0;min-width:0;padding:0;border:0!important;box-shadow:none!important;background:transparent!important;z-index:11;display:grid;place-items:center}.litter0870 img,.litter0870 svg{width:100%;height:100%;object-fit:contain}.litter0870 .ship-emoji0800{font-size:clamp(18px,6vw,30px)}.visit-grid.visit-fine0612{min-height:0;background-size:cover;background-position:center top;grid-auto-rows:minmax(0,1fr);gap:0}.visit-grid.visit-fine0612>div{min-height:0;overflow:hidden}.neighbor-cards0870{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.neighbor-card0870 .resident-actions0641{display:block}.neighbor-card0870 .resident-actions0641 button{width:100%}.profile-stats0870{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.profile-stats0870>div{display:grid;grid-template-columns:32px 1fr;align-items:center;gap:2px 6px;padding:8px;background:#dcefea;border-radius:10px}.profile-stats0870 .ui-icon{grid-row:span 2;width:30px;height:30px}.profile-stats0870 b{font-size:16px}.profile-stats0870 small{font-size:11px}.pick-work0630 .work-icon0870{width:25px;height:25px;object-fit:contain}.close-art0870,#modal button[data-action="close"],#modal .modal-close{background-color:#d9eeea;background-image:var(--close-art0870,none),linear-gradient(180deg,#f3fff6,#9fceca);background-size:100% 100%,100% 100%;background-repeat:no-repeat;border:1px solid #6baaa5;border-radius:12px;color:#254954;font-weight:750;padding:8px 14px;text-shadow:0 1px #effff9}.wallet .wallet-counter,.wallet .weather52{cursor:default;display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative}.rate0870{position:absolute;top:1px;right:1px;font-size:10px;background:#d4eee6;border-radius:5px;padding:1px 2px}.rate0870:empty{display:none}

#modal button[data-action="close"],.close-art0870{background-image:linear-gradient(180deg,#f3fff6,#9fceca);border:10px solid transparent;border-image:var(--close-art0870,none) 30% fill stretch;border-radius:12px;padding:4px 12px;min-height:42px}.visit-grid.visit-fine0612{grid-template-rows:repeat(var(--visit-rows0870,8),minmax(0,1fr));background-size:cover}.wallet .weather52 .rate0870{font-weight:800}/* Fast depth-drop at the authoritative landing coordinates. */
.world>.ship-drop0910{animation:shipSplash0910 .28s cubic-bezier(.3,.04,.75,1) both!important;}
@keyframes shipSplash0910{0%{transform:translate(-50%,-135%) scale(1.65);opacity:.2;filter:blur(2px)}75%{transform:translate(-50%,-47%) scale(.94);opacity:1;filter:none}100%{transform:translate(-50%,-50%) scale(1);opacity:1;filter:none}}
.world>.hauling-item0910{pointer-events:none!important;opacity:1!important;transition:none!important;z-index:9!important;}
.wallet .reward-flash0910,#nav .reward-flash0910{animation:rewardFlash0910 .5s ease-in-out 2;}
@keyframes rewardFlash0910{50%{filter:brightness(1.5);transform:scale(1.06)}}
@media(prefers-reduced-motion:reduce){.world>.ship-drop0910,.wallet .reward-flash0910,#nav .reward-flash0910{animation:none!important}.wallet .reward-flash0910{outline:2px solid #48ac91;border-radius:6px}}

/* v0.9.1.2: preserve the item centre during all button states, including touch. */
.world>.litter0870,.world>.litter0870:active,.world>.litter0870:disabled,.world>.ship-gift0624,.world>.ship-gift0624:active,.world>.ship-gift0624:disabled{transform:translate(-50%,-50%);opacity:1;transition:none;}
.world>.litter0870 img,.world>.litter0870 svg,.world>.litter0870 .ship-emoji0800{pointer-events:none;}
.world>.hauling-item0910{pointer-events:auto!important;}
.world .walker .walk-reaction.micro-speech0860,.thought060,.peek-caption54{font-size:11px;font-weight:400;line-height:1.2;}

/* v0.9.1.3: fixed stacking order, stationary dialogue and no mobile image selection. */
.world>.litter0870,.world>.ship-gift0624,.world>.hauling-item0910{z-index:21!important;}
.world>.reef-fish0820{z-index:23!important;}
.world>.ship-shadow0624{z-index:24!important;}
.map-shell .world>.map-build52{z-index:26;}
.world .walker.speaking0913{z-index:18!important;}
.world .walker.walking52 .micro-speech0860{display:none!important;}
.map-shell .world,.map-shell .world *{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;}
.map-shell .world img{-webkit-user-drag:none;}
.map-shell .world.pointer0913 button:focus,.map-shell .world button:focus:not(:focus-visible){outline:none!important;outline-offset:0;}
.map-shell .world :is(.walker,.litter0870,.ship-gift0624,.reef-fish0820,.ship-shadow0624):active{outline:none!important;box-shadow:none!important;border-color:transparent!important;}

/* v0.9.1.3: one native scroll surface in construction; keep the tool above the field. */
.map-shell>.map-tools0913{position:sticky;top:0;height:0;flex:0 0 0;z-index:27;pointer-events:none;overflow:visible}
.map-shell>.map-tools0913>.map-build52{pointer-events:auto;z-index:1;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:manipulation;user-select:none}
.build-scroll0913>.map-tools0913>.map-build52{background:#b3e1d3}
#screen:has(>.build-scroll0913){overflow-anchor:none;touch-action:pan-y;-webkit-overflow-scrolling:touch}
#screen>.build-scroll0913>.world{flex-shrink:0}
.build-scroll0913>.build-list{max-height:none;overflow:visible;flex-shrink:0}
.build-scroll0913>.build-tabs0760,.build-scroll0913>.map-footnote0611{flex-shrink:0}
.build-scroll0913>.world:before{animation:none}
.build-scroll0913 .tile,.build-scroll0913 .map-own-cell0612{touch-action:pan-y;transition:none}
.build-scroll0913 .tile .building{filter:none}

/* v0.9.1.4 */
.work-stations0914{display:grid;gap:8px;margin:12px 0}.work-stations0914 button{display:flex;align-items:center;gap:10px;text-align:left;min-height:52px}.work-stations0914 button span{display:grid;gap:3px}.work-stations0914 button small{font-size:11px;font-weight:400}.work-stations0914 .work-icon0870,.pick-work0630 .work-icon0870{width:32px;height:32px;object-fit:contain;flex:none}.work-stations0914 button:disabled{opacity:.8}
#screen>.map-shell>.world:not(.editing){padding-bottom:calc(32px + var(--litter-extra0914,0px))}
.world>.ship-shadow0624.caught0914{pointer-events:none;opacity:.42}

/* v0.9.1.5: small plain hearts; no enlarged emotion overlays. */
.world .walker .walk-reaction.heart0840{font-size:8px;width:10px;height:10px;line-height:1;padding:0;background:transparent;border:0;box-shadow:none;text-shadow:none}
.world .peek54{display:none!important}

/* v0.9.1.9: the whole resident portrait is a native accessible button. */
.resident-card0919{position:relative;gap:0;padding:0;overflow:hidden}
.resident-card0919 .portrait0641{margin:0;width:100%;border:0;border-radius:11px}
.resident-card0919 .resident-open0919{position:absolute;inset:0;z-index:8;display:block;width:100%;height:100%;max-width:none;min-height:0;margin:0;padding:0;border:0;border-radius:11px;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation}
.resident-card0919 .resident-open0919:focus-visible{outline:3px solid #fff;outline-offset:-5px;box-shadow:inset 0 0 0 6px #217c85}
.resident-card0919 .resident-open0919:active{background:#123e4314;transform:none}
/* v0.9.2.0: isolated passport close controls; no decorative border image. */
#modal .passport54 button.pet-close0641[data-action="close"]{position:absolute;top:6px;right:6px;z-index:20;float:none;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1.5px solid #7ba5a5;border-image:none;background:#e7f3ec;border-radius:13px;color:#254954;box-shadow:0 2px 0 #5c9596;text-shadow:none;pointer-events:auto;touch-action:manipulation}
#modal .passport54 button.pet-close0641::before,#modal .passport54 button.pet-close0641::after{content:"";position:absolute;top:50%;left:50%;width:20px;height:2.5px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}
#modal .passport54 button.pet-close0641::after{transform:translate(-50%,-50%) rotate(-45deg)}
#modal:has(.passport54)>button.secondary.close[data-action="close"]{display:block;box-sizing:border-box;width:100%;min-height:44px;margin:10px 0 0;padding:9px 12px;border:1.5px solid #7ba5a5;border-image:none;border-radius:13px;background:#f3e5c5;color:inherit;font-size:14px;font-weight:700;line-height:1.2;box-shadow:0 2px 0 #5c9596;text-shadow:none}
#modal .passport54 button.pet-close0641:active,#modal:has(.passport54)>button.secondary.close:active{transform:translateY(2px);box-shadow:none}

/* v0.9.2.1: close icon overlays portrait, no extra row. */
#modal .passport54 .portrait0641 .pet-name0641{right:56px;overflow-wrap:anywhere}

/* v0.9.2.2: visible breeding restrictions and light, noninteractive litter markers. */
.neighbor-card0870 .resident-actions0641 button{white-space:normal;overflow-wrap:anywhere;line-height:1.2;min-height:38px;height:auto;padding:7px 5px;}
.neighbor-card0870 .resident-actions0641 button:disabled{opacity:1;color:#315762;background:#e2ece9;text-shadow:none;font-size:11px;}
.cross-blocked0922{display:grid;gap:5px;margin:8px 0 12px;padding:9px;border-radius:10px;background:#e2eeeb;color:#315762;font-size:12px;}
.cross-blocked0922>div{display:flex;flex-direction:column;gap:2px;padding-top:5px;border-top:1px solid #abc9c4;overflow-wrap:anywhere;}.cross-blocked0922 small{font-size:11px;}
.world>.litter0870,.world>.ship-gift0624{overflow:visible;}
.litter-bubbles0922{position:absolute;left:50%;top:20%;width:0;height:0;pointer-events:none!important;z-index:2;overflow:visible;}
.litter-bubbles0922>i{position:absolute;left:var(--bubble-x0922);top:0;width:var(--bubble-size0922);height:var(--bubble-size0922);box-sizing:border-box;border-radius:50%;border:1px solid #d6ffff;background:#aef3ff42;box-shadow:0 0 2px #e9ffff;pointer-events:none!important;opacity:0;animation:trashBubble0922 linear infinite;}
@keyframes trashBubble0922{0%{opacity:0;transform:translate(0,0) scale(.65)}15%{opacity:.9}75%{opacity:.75}100%{opacity:0;transform:translate(var(--bubble-drift0922),-48px) scale(1.18)}}
@media(prefers-reduced-motion:reduce){.litter-bubbles0922>i{animation-name:trashBubbleStill0922!important;animation-duration:1ms!important;animation-iteration-count:1!important;animation-fill-mode:forwards!important;}}

@keyframes trashBubbleStill0922{to{opacity:.8;transform:translate(0,-9px)}}

/* v0.9.2.5 — one visual parent picker, native value kept only for form logic. */
#cross-own56c[hidden]{display:none!important}
.cross-picker0925:not([open])>.pick-list0630{display:none!important}
.cross-picker0925{border:1px solid #83b6b5;border-radius:10px;background:#f1faf5;overflow:hidden;margin:0}
.cross-picker0925 summary{border:0;border-radius:0;padding:7px 9px}
.cross-picker0925>.pick-list0630{border-top:1px solid #a1c8c1;padding:5px;max-height:260px}
.cross-picker0925 .pick-list0630 button{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:3px 7px;text-align:left;padding:5px 7px}
.cross-picker0925 .pick-list0630 button:disabled{opacity:.75;background:#e2ece9;color:#315762}
.cross-picker0925 .cross-pick-reason0925{grid-column:2/-1;font-size:11px;white-space:normal;line-height:1.25;color:#315762}
.cross-egg56c .egg0750 img{background:none;border-radius:0;aspect-ratio:auto}

/* v0.9.2.6: fine grid */
.map-shell .world-grid{grid-template-columns:repeat(16,minmax(0,1fr));grid-auto-rows:minmax(15px,1fr);gap:1px}.map-shell .world-grid .tile{min-height:15px;border-radius:4px}.map-shell .world-grid .tile.building-tile:not(.decor0760){grid-column:var(--gc)/span 3;grid-row:var(--gr)/span 3;min-height:45px}.map-shell .world-grid .tile.decor0760{min-height:15px}.map-shell .world.editing .world-grid{background-size:calc(100% / 16) calc(100% / var(--map-rows0612,16));gap:1px}.map-shell .world .plus{font-size:9px}.neighbor-reason0926{display:block;font-size:10px;white-space:normal}.neighbor-cross-log0926 summary{cursor:pointer}.neighbor-cross-log0926 article{padding:6px 0;border-top:1px solid #98c2bc}.crab0926{position:absolute;z-index:12;width:42px;height:34px;min-width:0;min-height:0;padding:0;background:none!important;border:0!important;box-shadow:none!important;transform:translate(-50%,-50%);cursor:pointer}.crab0926 img{width:100%;height:100%;object-fit:contain;pointer-events:none}.crab0926.flee0926{transition:left .45s linear,top .45s linear}

/* v0.9.2.8 */
.map-shell .world-grid .tile.building-tile.decor0760{grid-column:var(--gc)/span 2;grid-row:var(--gr)/span 2;min-height:30px}.world>.ship-shadow0624,.world>.ship-shadow0624:active,.world>.ship-shadow0624.caught0914{color:#686868;opacity:var(--ship-opacity0928,.42)}

/* v0.9.2.9 — short moving speech instead of repeated crab alarm. */
.world .walker.walking52 .walk-reaction.crab-shout0929{display:block!important;animation:none!important}
/* A stable field height in both modes, including room for overflow litter. */
#screen>.map-shell>.world.farm-stable0929{flex:0 0 auto;height:calc(var(--farm-base0929,360px) + var(--litter-extra0914,0px));padding-bottom:calc(32px + var(--litter-extra0914,0px));box-sizing:border-box}
#game.farm-glass0929{isolation:isolate;background:#85babb}
.farm-backdrop0929{display:none;position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
#game.farm-glass0929>.farm-backdrop0929{display:block}
.farm-backdrop0929>i{position:absolute;left:0;right:0;background-repeat:no-repeat;pointer-events:none}
#game.farm-glass0929>#screen{position:relative;z-index:1;background:transparent}
#game.farm-glass0929>header,#game.farm-glass0929>#nav{background:transparent;border-color:transparent;box-shadow:none}
#game.farm-glass0929 .map-shell>.world.farm-stable0929{background:transparent!important;padding-top:0;padding-inline:0;box-shadow:none}
#game.farm-glass0929 .map-shell>.world>.world-grid{width:100%}
#game.farm-glass0929 .wallet{filter:drop-shadow(0 1px 2px #e4faf4)}

/* v0.9.3.0: three independent translucent backgrounds, full-opacity contents. */
#game.farm-glass0929>.farm-upper0930{position:absolute;left:0;right:0;z-index:0;pointer-events:none;background-repeat:no-repeat}
#game.farm-glass0929>.farm-upper0930[hidden]{display:none!important}
#game.farm-glass0929>header{background:transparent!important}
#game.farm-glass0929>header>.brand{position:relative;background:var(--bar-header0930,rgba(213,242,237,.45));border-radius:10px}
#game.farm-glass0929>header>.wallet{background:var(--bar-resources0930,rgba(239,250,246,.55));border-radius:10px;filter:none}
#game.farm-glass0929>header>.wallet .wallet-counter,#game.farm-glass0929>header>.wallet .weather52{background:transparent!important}
#game.farm-glass0929>#nav{background:var(--bar-nav0930,rgba(147,200,198,.45))!important}
.world .walker .walk-reaction.micro-speech0860{box-sizing:border-box;left:var(--speech-x0930,0px);top:var(--speech-y0930,-100%);transform:none;overflow-wrap:anywhere;}

/* v0.9.3.1: one static decorative layer, never intercepts taps. */
.map-shell .world-grid>.farm-paths0931{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;pointer-events:none;z-index:0}

/* Tester-only toolbar, independent from the field's geometry. */
.tester-tools0932{position:absolute;right:5px;top:47px;display:flex;flex-direction:column;gap:5px;align-items:center;pointer-events:none;z-index:2}
.tester-tools0932 button{width:36px;height:36px;min-height:0;padding:6px;display:grid;place-items:center;pointer-events:auto;background:#e8f4e5;border:1px solid #7b9b90;border-radius:10px;box-shadow:0 2px 2px #25495440;color:#285b60;touch-action:manipulation}
.tester-tools0932 button[aria-expanded=true]{background:#b3e1d3}.tester-tools0932 svg{display:block;width:22px;height:22px}.tester-actions0932{display:flex;flex-direction:column;gap:5px}.tester-actions0932[hidden]{display:none!important}.tester-rarities0932{display:grid;gap:8px}.tester-rarities0932 button{font-size:15px;min-height:42px;width:100%;position:static;transform:none}

/* v0.9.3.3: independent, noninteractive speech layer inside the visible farm. */
.world>.field-speech0933{position:absolute;display:block;width:max-content;height:auto;max-width:128px;min-width:0;padding:4px 7px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;border-radius:11px;font:400 11px/1.2 var(--game-font09914);color:#28545b;background:#edfaf2;border:1px solid #70a6aa;text-shadow:none;box-shadow:none;text-align:center;z-index:19;transform:none;pointer-events:none;animation:none;transition:none;margin:0;}

/* v0.9.3.4: shared reef backdrop and independent surface alpha, never fade text or art. */
#game.backdrop-active0934{isolation:isolate;background:#85babb}
#game.backdrop-active0934>.farm-backdrop0929{display:block}
#game.backdrop-active0934>.farm-upper0930{position:absolute;inset-inline:0;z-index:0;overflow:hidden;pointer-events:none}
#game.backdrop-active0934>.farm-upper0930[hidden]{display:none!important}
.farm-upper0930>i{position:absolute;left:0;right:0;background-repeat:no-repeat;pointer-events:none}
#game.backdrop-active0934>#screen{position:relative;z-index:1;background:#d6efea}
#game.backdrop-active0934.on-farm0934>#screen{background:transparent}
#game.backdrop-active0934.on-farm0934 .map-shell>.world.farm-stable0929{background:transparent!important;padding-top:0;padding-inline:0;box-shadow:none}
#game.backdrop-active0934.on-farm0934 .map-shell>.world>.world-grid{width:100%}
#game.backdrop-active0934.surface-screen0934:not(.on-farm0934)>#screen{background:color-mix(in srgb,#d6efea var(--surface-screen0934),transparent)!important}
#game.backdrop-active0934>footer{position:relative;z-index:1}
#game.surface-panel0934 :is(.panel,.petcard,.statgrid>div,.forest-bonus,.daily0630,.breed-clock0642),#modal.surface-panel0934 :is(.panel,.petcard,.statgrid>div){background-color:color-mix(in srgb,#edf8f3 var(--surface-panel0934),transparent)!important;background-image:none!important}
/* Apply the button surface only to interface controls; gameplay objects keep their own art and opacity. */
#game.surface-button0934 :is(header button,#screen button:not(.world button),#screen .world .reward-stack0934 button,#build-dock0934 button):not(.info-tabs0952 button,.resident-open0919,.custom-level0620,.wallet-counter,.weather52,[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],.reef-cell0638,.reef-sprite0640),#modal.surface-button0934 button:not(.pet-portrait){background-color:color-mix(in srgb,#e7f3ec var(--surface-button0934),transparent)!important}
#game.surface-button0934 :is(header button,#screen button:not(.world button),#screen .world .reward-stack0934 button,#build-dock0934 button):not(.info-tabs0952 button,.resident-open0919,.custom-level0620,.wallet-counter,.weather52,[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],.reef-cell0638,.reef-sprite0640):not(.close-art0870),#modal.surface-button0934 button:not(.close-art0870,[data-action=close],.modal-close,.pet-portrait){background-image:none!important}
#game.surface-button0934 :is(header button,#screen button:not(.world button),#screen .world .reward-stack0934 button,#build-dock0934 button):not(.info-tabs0952 button,.resident-open0919,.custom-level0620,.wallet-counter,.weather52,[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],.reef-cell0638,.reef-sprite0640):is(.primary,.active),#modal.surface-button0934 :is(button.primary,button.active){background-color:color-mix(in srgb,#a7ddd0 var(--surface-button0934),transparent)!important}
#game.surface-button0934 :is(header button,#screen button:not(.world button),#screen .world .reward-stack0934 button,#build-dock0934 button):not(.info-tabs0952 button,.resident-open0919,.custom-level0620,.wallet-counter,.weather52,[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],.reef-cell0638,.reef-sprite0640):disabled,#modal.surface-button0934 button:disabled{opacity:.65}
/* Reward cards use a single, non-layout-changing stack; right-hand tools remain tappable. */
.world>.reward-stack0934{position:absolute;top:8px;left:8px;right:49px;z-index:22;display:grid;gap:5px;pointer-events:none}
.reward-stack0934>.forest-bonus{position:relative;inset:auto;width:100%;margin:0;pointer-events:auto;animation:none;min-width:0}
.reward-stack0934>.forest-bonus>div{min-width:0;overflow-wrap:anywhere}.reward-stack0934>.forest-bonus button{flex:none}
/* Floating construction dock: no change to viewport height or map origin. */
#game>#build-dock0934{position:absolute;left:0;right:0;z-index:4;display:flex;flex-direction:column;background:#d3ece6f5;border-top:1px solid #8db8b2;box-shadow:0 -3px 12px #24586024;max-height:45%;overflow:hidden}
#build-dock0934>.build-list{max-height:min(25dvh,230px);overflow:auto;overscroll-behavior:contain;margin:0;padding:5px 8px;min-height:0;flex:1}
#build-dock0934>.build-list[hidden]{display:none!important}
#build-dock0934>.build-tabs0760{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:5px;flex:none}
#build-dock0934>.build-tabs0760 button{min-width:0;font-size:11px;padding:8px 2px;overflow-wrap:anywhere}
#game.build-docked0934>#screen{padding-bottom:var(--dock-reserve0934,0px);scroll-padding-bottom:var(--dock-reserve0934,0px)}

/* v0.9.3.5 — stable crab press, bounded field reactions, compact neighbor identity. */
.world>.crab0926,.world>.crab0926:active,.world>.crab0926.flee0926{transform:translate(-50%,-50%)!important;transition:none!important;animation:none!important;outline:none;touch-action:manipulation;}
.world>.crab0926.flee0926{pointer-events:none;}
.world>.field-reaction0935{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:18px;height:18px;padding:0;border:1px solid #70a6aa;border-radius:50%;background:#edfaf2;color:#28545b;font:700 12px/1 var(--game-font09914);pointer-events:none;z-index:19;transform:none;animation:none;transition:none;}
.world>.field-reaction0935.heart0840{width:12px;height:12px;background:none!important;border:0!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;border-radius:0;}
.field-reaction0935.heart0840 svg{display:block;width:100%;height:100%;}
.world>.fart54,.world>.fart54:active{transform:translate(-50%,-50%)!important;animation:fartFade0935 4.8s linear forwards;transition:none!important;}
@keyframes fartFade0935{0%{opacity:0}12%,80%{opacity:1}100%{opacity:0}}
.neighbor .neighbor-info0935{min-width:0;flex:1 1 140px;}
.neighbor-identity0935{display:flex;align-items:center;gap:6px;min-width:0;}
.neighbor-level0935{display:grid;place-items:center;flex:none;min-width:27px;height:27px;padding:0 3px;border-radius:8px;border:1px solid #78a9a6;background:#d5eee4;color:#25525b;font-size:12px;font-weight:800;box-sizing:border-box;}
.neighbor-level0935.custom-level0935{background-color:transparent;background-size:contain;background-position:center;background-repeat:no-repeat;border:0;color:#fff;text-shadow:0 1px 3px #123,0 0 3px #123;}
.neighbor-pets0935{display:flex;align-items:center;gap:2px;flex:none;font-size:12px;color:#254954;}
.neighbor-pets0935 svg{width:27px;height:20px;flex:none;}
.neighbor-name0935{min-width:0;overflow-wrap:anywhere;line-height:1.2;}

/* v0.9.3.6 — readable, compact neighbor breeding journal. */
.neighbor-cross-log0926>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;padding:2px 0;min-height:28px;line-height:1.3;}
.neighbor-cross-log0926>summary::-webkit-details-marker{display:none}
.cross-log-title0936{display:flex;align-items:center;gap:6px;min-width:0;font-size:14px;}
.cross-log-title0936>b{min-width:0;overflow-wrap:anywhere;}
.cross-log-title0936>.ui-icon{width:20px;height:20px;flex:none;}
.cross-log-count0936{flex:none;font-size:11px;font-weight:750;color:#326b70;border:1px solid #82b4b0;border-radius:20px;padding:1px 6px;line-height:1.4;}
.cross-log-chevron0936{flex:none;width:17px;height:17px;transition:transform .15s;}
.neighbor-cross-log0926[open]>summary .cross-log-chevron0936{transform:rotate(180deg)}
.cross-log-list0936{display:grid;gap:8px;margin-top:9px;}
.neighbor-cross-log0926 .cross-log-card0936{min-width:0;display:grid;gap:8px;padding:10px;border:1px solid #8abbb5;border-radius:12px;background:transparent;color:#254954;}
.cross-log-meta0936,.cross-log-footer0936{display:flex;align-items:center;justify-content:space-between;gap:5px 9px;flex-wrap:wrap;font-size:11px;line-height:1.35;}
.cross-log-meta0936 time{font-variant-numeric:tabular-nums;color:#48676a;white-space:nowrap;}
.cross-log-direction0936{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:7px;font-weight:750;line-height:1.25;background:#d5eae0;color:#35665e;}
.cross-log-direction0936.outgoing{background:#e1ebf1;color:#356379;}
.cross-log-direction0936 svg,.cross-log-status0936 svg{width:13px;height:13px;flex:none;}
.cross-log-farm0936{display:grid;gap:1px;min-width:0;}
.cross-log-farm0936>span,.cross-log-parents0936>div>span{font-size:11px;font-weight:500;line-height:1.3;color:#4a696d;}
.cross-log-farm0936>b{font-size:16px;line-height:1.22;overflow-wrap:anywhere;}
.cross-log-parents0936{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:5px;align-items:center;padding:8px 0;border-block:1px solid #8abbb577;}
.cross-log-parents0936>div{display:grid;gap:4px;min-width:0;align-self:start;}
.cross-log-parents0936>div>b{font-size:13px;line-height:1.3;overflow-wrap:anywhere;white-space:normal;}
.cross-log-parents0936>div:last-child{text-align:right;}
.cross-log-egg0936{display:grid;place-items:center;}
.cross-log-egg0936 .ui-icon{width:22px;height:22px;}
.cross-log-status0936{display:inline-flex;align-items:center;gap:4px;font-weight:700;}
.cross-log-status0936.accepted{color:#306c52;}
.cross-log-footer0936>span:last-child{color:#48676a;}
@media(max-width:360px){.neighbor-cross-log0926 .cross-log-card0936{padding:8px;}.cross-log-title0936{font-size:13px;}.cross-log-parents0936>div>b{font-size:12px;}}

/* Artwork-only controls must not inherit the configurable button surfaces. */
#game #nav button.nav-home,#game #nav button.nav-home.active,#game #nav button.nav-home:active,#game #screen .world button.reef-fish0820,#game #screen .world button.reef-fish0820:active{background:transparent!important;border:0!important;box-shadow:none!important;}

/* v0.9.3.7: horizontally scrolling building cards in the fixed construction dock. */
#game>#build-dock0934{max-height:65%;}
#build-dock0934>.build-carousel0937{--build-gap0937:7px;display:flex;flex-flow:row nowrap;align-items:stretch;gap:var(--build-gap0937);width:100%;max-height:none;min-height:0;flex:0 1 auto;padding:5px 8px 7px;overflow-x:auto;overflow-y:auto;overscroll-behavior-x:contain;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#80aaa5 transparent;touch-action:pan-x pan-y;}
#build-dock0934>.build-carousel0937>.build-card0937{flex:0 0 calc((100% - 2 * var(--build-gap0937))/2.5);min-width:0;max-width:none;display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px 4px 7px;box-sizing:border-box;white-space:normal;line-height:1.2;text-align:center;overflow-wrap:anywhere;}
#build-dock0934 .build-card0937>.build-thumb060{width:100%;height:clamp(76px,23vw,116px);max-width:100%;object-fit:contain;flex:none;pointer-events:none;}
#build-dock0934 .build-card0937>b{font-size:12px;line-height:1.2;}
#build-dock0934 .build-desc0937{display:block;font-weight:500;font-size:11px;line-height:1.25;color:#41646a;}
#build-dock0934 .build-cost0937{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px 5px;width:100%;padding-top:5px;border-top:1px solid #7ba5a566;font-size:10px;line-height:1.2;}
.build-level0937,.build-price0937,.build-built0937{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;flex:none;}
#build-dock0934 .build-price0937>.ui-icon{width:15px;height:15px;flex:none;vertical-align:middle;}
#build-dock0934 .build-price0937.missing0937{opacity:.48;}
#build-dock0934 .build-carousel0937.dragging0937,#build-dock0934 .build-carousel0937.dragging0937 button{cursor:grabbing;user-select:none;}
@media(max-height:600px){#build-dock0934 .build-card0937>.build-thumb060{height:clamp(60px,18vw,88px);}#build-dock0934 .build-card0937{gap:3px;padding-top:3px;padding-bottom:5px;}}

/* 0938: each part of a two-word resident name gets its own line. */
.portrait0641{container-type:inline-size}
.portrait0641 .pet-name0641.name-lines0938{display:flex;flex-direction:column;align-items:center;gap:0;white-space:normal;overflow:visible;line-height:1.12;font-size:var(--name0641);font-size:min(var(--name0641),var(--name-fit0938));}
.portrait0641 .name-lines0938 span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* 0939: artwork-only field controls, including pending ship trash and caught silhouettes.
   Keep their original opacity, animation, placement and keyboard focus styling. */
#game #screen .world button:is(.ship-gift0624,.ship-shadow0624,.litter0870,.reef-fish0820,.crab0926,.fart54,.walker){background:transparent!important;border:0!important;box-shadow:none!important;}

/* v0.9.4.0 — do not expose unthemed bootstrap markup. */
#boot0940{display:none}body.boot0940 #game,body.boot0940 #toast{visibility:hidden}body.boot0940 #boot0940{display:flex;position:fixed;inset:0;z-index:1000;flex-direction:column;gap:8px;justify-content:center;align-items:center;padding:24px;text-align:center;background:linear-gradient(160deg,#227b88,#164b61);color:#effaf6;font-size:14px}#boot0940 strong{font-size:20px}body.boot0940 dialog{visibility:hidden}

#boot0940 a{color:#effaf6;font-size:12px;text-decoration:underline;margin-top:12px}

/* 0941: rotation countdown stays independent of the game clock speed. */
.neighbor-countdown0941{text-align:center;font-variant-numeric:tabular-nums;margin:8px 0 10px}

.relic-art0941{width:42px;height:42px;object-fit:contain;vertical-align:middle;display:inline-block;margin-right:5px}.relic-art0941+ b{overflow-wrap:anywhere}

button .relic-art0941{width:26px;height:26px;margin-right:3px}
/* Account premium and reward flight: separate from game objects. */
.map-tools0913>.premium-button0943{position:absolute;right:5px;top:47px;width:var(--map-tool-size);height:var(--map-tool-size);min-height:0;display:grid;place-items:center;padding:1px;pointer-events:auto;border:1px solid #a58c51;border-radius:9px;background:#f7ebc8;color:#7d5b2e;z-index:3}
.map-shell .premium-button0943 .ui-icon{width:var(--map-tool-icon-size);height:var(--map-tool-icon-size);max-width:100%}.map-tools0913>.premium-button0943+.tester-tools0932{top:88px}.premium-list0943{display:grid;gap:9px;margin:12px 0}.premium-list0943>div{border-bottom:1px solid #8ea9a65c;padding:7px 0}.premium-list0943 small{display:block;margin-left:26px;opacity:.8}.premium-list0943 svg{width:20px;height:20px;vertical-align:middle}.music060{position:relative}.music-level0943{position:absolute;right:1px;bottom:1px;font-size:9px;font-weight:bold}.reward-flight0943{position:fixed;z-index:9999;width:32px;height:32px;pointer-events:none;transform:translate(-50%,-50%);display:grid;place-items:center;font-size:24px;background:none!important;border:0!important;box-shadow:none!important}.reward-flight0943 img,.reward-flight0943 svg,.reward-flight0943 .ui-icon{width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%}

/* v0.9.4.6: compact breeding statuses and grouped premium notifications. */
.breed-picker0946 .pick-list0630 button:disabled{opacity:.85}.breed-picker0946 .breed-reason0946{margin:0;line-height:1.25;overflow-wrap:anywhere}.breed-reason0946 span{display:inline-block;margin-right:2px}.neighbor-card0870 .breed-reason0946{display:block;font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}.premium-notices0946 ul{padding-left:42px;margin:6px 0;font-size:13px;line-height:1.45}.premium-notices0946 li{margin:3px 0}

.breed-reason0946 .ui-icon{width:14px;height:14px;vertical-align:middle}

/* 0947: expose every station upgrade requirement; shrink only during transport. */
.upgrade-cost0947{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}.upgrade-cost0947 .ui-icon{width:18px;height:18px}.upgrade-cost0947.missing0947{opacity:.48}.upgrade-reason0947{font-size:12px;line-height:1.4;color:#41666b;margin:6px 0 0;overflow-wrap:anywhere}.upgrade-reason0947 b{color:#805240}
.world>.hauling-item0910{transform:translate(-50%,-50%) scale(.5)!important;animation:none!important;}

/* 0948: server-configured resident grid; other card grids stay unchanged. */
#screen .residents-grid0948{grid-template-columns:repeat(var(--residents-columns0948,2),minmax(0,1fr));}
.residents-pages0948{margin-top:10px;justify-content:center;align-items:center;gap:10px;font-variant-numeric:tabular-nums}
/* Keep portrait overlays inside the card, even at four columns on a phone. */
@container (max-width:135px){
 .residents-grid0948 .portrait0641 .pet-rarity0641{left:-31cqw;top:7cqw;min-width:90cqw;max-width:90cqw;padding:2px 4px;font-size:clamp(6px,6.5cqw,10px)}
 .residents-grid0948 .portrait0641 .satiety0641{gap:1px;right:2%}
 .residents-grid0948 .portrait0641 .satiety0641 span{width:clamp(7px,11cqw,14px);height:clamp(7px,11cqw,14px)}
 .residents-grid0948 .portrait0641 .pet-activity060{gap:1px}
 .residents-grid0948 .portrait0641 .pet-activity060 span{min-width:0;width:clamp(10px,14cqw,18px);height:clamp(10px,14cqw,18px);font-size:clamp(7px,10cqw,12px);padding:0}
 .residents-grid0948 .portrait0641 .resident-bottom0642{font-size:clamp(7px,8cqw,11px);padding:2px;gap:1px}
 .residents-grid0948 .portrait0641 .resident-bottom0642 .ui-icon{width:clamp(7px,10cqw,13px);height:clamp(7px,10cqw,13px)}
}
@container (max-width:100px){
 .residents-grid0948 .portrait0641 .resident-bottom0642{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:clamp(7px,10cqw,9px);border-radius:4px;line-height:1.1}
 .residents-grid0948 .portrait0641 .satiety0641{top:45%}
 .residents-grid0948 .portrait0641 img.pet-portrait{inset:20% 12% 24%;height:56%;width:76%}
}
.residents-grid0948 .portrait0641 .resident-bottom0642{grid-template-columns:minmax(0,1fr) auto auto auto;font-size:clamp(7px,7.1cqw,13px)}
.residents-grid0948 .portrait0641 .resident-bottom0642 .ui-icon{width:clamp(7px,9cqw,17px);height:clamp(7px,9cqw,17px)}
@container (max-width:100px){.residents-grid0948 .portrait0641 .resident-bottom0642{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:clamp(7px,10cqw,9px)}}

/* 0949: fit actual glyphs inside the resident card, independently of viewport width. */
.residents-grid0948 .portrait0641 .pet-name0641.name-lines0938{font-size:min(14px,12cqw,var(--name-fit0938));line-height:1.12;left:20%;right:5%;top:3%;}
.residents-grid0948 .portrait0641 .name-lines0938 span{max-width:100%;}
.residents-grid0948 .portrait0641 .pet-activity060{left:2%;top:30%;flex-direction:column;gap:2px;}
.residents-grid0948 .portrait0641 .pet-activity060 span{width:clamp(12px,14cqw,20px);height:clamp(12px,14cqw,20px);min-width:0;padding:1px;}
.residents-grid0948 .portrait0641 .pet-activity060 .ui-icon{width:100%;height:100%;max-width:100%;max-height:100%;}
/* Redundant defensive rule; the icon resolver also excludes the empty hit target. */
.resident-open0919>.extra-icon0614,.pet-close0641>.extra-icon0614{display:none!important;}

/* One restrained style for ordinary horizontal controls, without changing game sprites,
   board cells, illustrated choices, navigation, or construction cards. */
:root{--line-button0949:#8ab5af;--fill-button0949:#e6f3eb;--active-button0949:#c5e5d9;--radius-button0949:10px;}
#game #screen .section button:not(.info-tabs0952 button,.world button,.resident-open0919,.team-pet,.trail-node,.pet-portrait,.custom-level0620,.arcade-game-icon0612,[data-pick0630],[data-arcade=game],[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],[data-reef-dir],.reef-cell0638,.reef-sprite0640),
#modal #modalbody button:not(.pet-close0641,.pet-portrait,.team-pet,.trail-node,[data-pick0630],[data-arcade=game],[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],[data-reef-dir],.reef-cell0638,.reef-sprite0640),
#game .reward-stack0934 .reward-claim0949{
 border:1px solid var(--line-button0949);border-radius:var(--radius-button0949);box-shadow:none;text-shadow:none;font-weight:650;
}
#game #screen .section :is(.row,.tabs) > button:not(.world button,.team-pet,.trail-node,[data-pick0630],[data-arcade=game]),#modal #modalbody :is(.row,.tabs) > button:not(.team-pet,[data-pick0630]),#modal #modalbody button.full:not(.pet-close0641){min-height:36px;padding:7px 10px;line-height:1.25;}
/* Close/cancel/back controls share a slim outline; keep optional custom close skin for text controls. */
#modal button:is([data-action="close"],.modal-close,.close-art0870):not(.pet-close0641),#game button.close-art0870{
 box-sizing:border-box;min-height:40px;border:1px solid var(--line-button0949);border-image:none;border-radius:var(--radius-button0949);padding:8px 12px;background-color:var(--fill-button0949);background-image:var(--close-art0870,none);background-repeat:no-repeat;background-size:100% 100%;box-shadow:none;text-shadow:none;color:#254954;font-size:14px;font-weight:650;line-height:1.2;
}
#modal .passport54 button.pet-close0641[data-action="close"]{width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid var(--line-button0949);border-radius:var(--radius-button0949);border-image:none;background-color:var(--fill-button0949);background-image:none!important;box-shadow:none;color:#254954;}
#modal .passport54 button.pet-close0641::before,#modal .passport54 button.pet-close0641::after{width:17px;height:1.8px;}
#modal:has(.passport54)>button.secondary.close[data-action="close"]{display:none!important;}
/* Identical claim controls for current and daily bonus, including the full daily panel. */
#game #screen button.reward-claim0949{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-width:82px;min-height:36px;box-sizing:border-box;padding:6px 10px;line-height:1.2;font-size:13px;font-weight:650;white-space:nowrap;border:1px solid var(--line-button0949);border-radius:var(--radius-button0949);background:var(--active-button0949);box-shadow:none;}
#game #screen button.reward-claim0949 .ui-icon{width:18px;height:18px;flex:none;}
#game #screen button.reward-claim0949:active,#modal button:is([data-action="close"],.modal-close,.close-art0870):active{transform:translateY(1px);box-shadow:none;}
#game #screen button.reward-claim0949{width:92px;min-width:92px;max-width:92px;}

.ranking0950 table{width:100%;border-collapse:collapse;table-layout:fixed;margin-top:8px;font-size:clamp(10px,3vw,14px)}.ranking0950 th,.ranking0950 td{padding:7px 3px;border-bottom:1px solid #8ab5af55;text-align:center;overflow-wrap:anywhere}.ranking0950 th:nth-child(2),.ranking0950 td:nth-child(2){text-align:left;width:45%}.ranking0950 th:first-child{width:14%}.ranking0950 th:nth-child(3){width:20%}.ranking0950 td:nth-child(2){font-weight:650}
/* 0953: a compact section heading with text tabs, not independent buttons. */
#screen h1.section-heading0620.info-heading0952{min-height:48px;padding:0 5px;align-items:center;gap:0}
#screen h1.section-heading0620.info-heading0952.custom-heading0620{min-height:52px;background-size:100% 100%;background-repeat:no-repeat}
#screen h1.info-heading0952::before{content:none}
.info-tabs0952{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr);width:100%;align-items:stretch;gap:0;}
#game #screen .info-tabs0952 button{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:6px 3px;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;text-shadow:inherit;font:inherit;font-size:clamp(13px,4.1vw,19px);font-weight:inherit;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:normal;transform:none;opacity:.83;}
#game #screen .info-tabs0952 button+button::before{content:'';position:absolute;left:0;top:25%;bottom:25%;width:1px;background:#fff9e699;box-shadow:1px 0 1px #24586155;pointer-events:none;}
#game #screen .info-tabs0952 button[aria-selected=true]{opacity:1;color:inherit;}
#game #screen .info-tabs0952 button[aria-selected=true]::after{content:'';position:absolute;bottom:3px;left:17%;right:17%;height:2px;border-radius:2px;background:currentColor;box-shadow:0 1px 2px #24586188;pointer-events:none;}
#game #screen .info-tabs0952 button:focus-visible{outline:2px solid currentColor;outline-offset:-3px;border-radius:4px;opacity:1;}
.news0952 p{white-space:pre-wrap;overflow-wrap:anywhere}.news0952 h2{font-size:1rem;overflow-wrap:anywhere}

.cross-highlight0952{outline:2px solid #70b9a3;outline-offset:-2px}

/* 0954: calm, compact closing controls, independent of stretched legacy artwork. */
#modal button:is([data-action="close"],.modal-close,.close-art0870):not(.pet-close0641),#game button.close-art0870{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:40px;padding:8px 22px;border:1px solid #76aaa4;border-image:none;border-radius:12px;background:#e4f3ed!important;background-image:none!important;color:#28545b;box-shadow:0 1px 3px #315f5615;text-shadow:none;font-size:14px;font-weight:650;line-height:1.25;touch-action:manipulation;
}
#modal>button.secondary.close[data-action="close"]{display:flex;width:100%;margin:12px 0 0;}
#modal .passport54 button.pet-close0641[data-action="close"]{background:#e4f3ed!important;border:1px solid #76aaa4;border-radius:50%;box-shadow:0 1px 4px #315f5626;}
#modal button:is([data-action="close"],.modal-close,.close-art0870):focus-visible,#game button.close-art0870:focus-visible{outline:2px solid #377f78;outline-offset:2px;}
#modal button:is([data-action="close"],.modal-close,.close-art0870):active,#game button.close-art0870:active{background:#c9e4d9!important;box-shadow:none;}
@media(hover:hover){#modal button:is([data-action="close"],.modal-close,.close-art0870):hover,#game button.close-art0870:hover{background:#d2eae0!important;}}

/* v0.9.5.6 maintenance + startup refresh */
.maintenance-card0956{max-width:640px;margin:14px auto;padding:22px 18px 18px;border-radius:24px;background:linear-gradient(180deg,rgba(234,250,248,.96),rgba(215,241,236,.98));box-shadow:0 10px 30px rgba(20,73,87,.12),inset 0 1px 0 rgba(255,255,255,.7)}
.maintenance-hero0956{width:74px;height:74px;margin:0 auto 10px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(180deg,#dff4ef,#bce3db);color:#1f6d73;box-shadow:inset 0 2px 0 rgba(255,255,255,.7),0 8px 18px rgba(24,88,97,.12)}
.maintenance-hero0956 .ui-icon{width:34px;height:34px}
.startup55.maintenance-card0956 h2{margin:8px 0 10px;font-size:clamp(26px,5vw,34px);line-height:1.08;color:#1d5563}
.startup55.maintenance-card0956 p{max-width:34rem;margin:10px auto;color:#2f5e67}
.startup-actions0956{margin-top:14px}
/* Service screens are independent of game state and user graphics. */
body.service-mode0957 #game{background:radial-gradient(ellipse at 50% 12%,#d9f3e9 0%,#acd5d4 50%,#5b9ca8 100%);min-height:100dvh;height:auto;overflow:visible;max-width:510px}body.service-mode0957 #game>header,body.service-mode0957 #game>nav,body.service-mode0957 #game>footer,body.service-mode0957 #toast{display:none!important}body.service-mode0957 #screen{height:auto;min-height:100dvh;overflow:visible;display:flex;flex:1;align-items:center;justify-content:center;padding:20px 14px;box-sizing:border-box}.service-stage0957{width:100%;max-width:430px;display:block}.service-card0957{background:rgba(244,252,247,.96);border:1px solid #9bc6bf;border-radius:22px;padding:clamp(18px,5vw,30px);box-shadow:0 12px 32px #174c6129;text-align:center;color:#254954;overflow-wrap:anywhere}.service-art0957{margin:0 auto 16px;max-width:100%}.service-art0957 img{display:block;width:100%;max-height: min(34dvh,280px);object-fit:contain;border-radius:12px}.service-fallback0957{width:76px;height:76px;margin:auto;display:grid;place-items:center;background:#d5ece5;border-radius:22px;color:#277f79}.service-fallback0957[hidden]{display:none!important}.service-fallback0957 .ui-icon{width:38px;height:38px}.service-card0957 h1{font-size:clamp(22px,5vw,29px);line-height:1.2;margin:0 0 12px}.service-card0957 p{white-space:pre-wrap;line-height:1.5;font-size:15px;margin:0 0 16px}.service-card0957 #retry55{display:block;width:100%;min-height:44px;background:#b7ded3!important;background-image:none!important;color:#254954!important;border:1px solid #80b5ae!important;border-radius:12px!important;box-shadow:none!important;padding:10px 12px;font-weight:700;white-space:normal}.service-detail0957{font-size:12px;color:#52736e;margin:0 0 16px;text-align:left}.service-detail0957 p{font-size:12px;margin:6px 0}.service-code0957{display:block;font-size:22px;letter-spacing:2px;margin:12px 0 18px}.service-card0957 .extra-icon0614{display:none!important}

/* 0958 — shared pearl/glass controls; artwork-only controls retain their original layout. */
:root{--pearl-line0958:#6caeaa;--pearl-top0958:#f9fffa;--pearl-bottom0958:#c6e8e0;--pearl-glow0958:#ffffffb0;--pearl-shadow0958:#387a7c36;}
/* Select actual interface controls, not sprites, board squares, graphic cards or text tabs. */
#game :is(header button:not(#farm-level),#screen button:not(.world button),#screen .world .reward-stack0934 button,#build-dock0934 button,.map-tools0913 button):not(.info-tabs0952 button,.resident-open0919,.team-pet,.trail-node,.pet-portrait,.custom-level0620,.wallet-counter,.weather52,.arcade-game-icon0612,[data-pick0630],[data-arcade=game],[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],[data-reef-dir],.reef-cell0638,.reef-sprite0640,.build-card0937,.building-tile,.tile,.walker),
#modal #modalbody button:not(.pet-close0641,.pet-portrait,.team-pet,.trail-node,[data-pick0630],[data-arcade=game],[data-arcade=puzzle],[data-arcade=checker],[data-arcade=bgPoint],[data-reef-cell],[data-reef-dir],.reef-cell0638,.reef-sprite0640,.resident-open0919),#intro52 button{
 border:1px solid var(--pearl-line0958);border-radius:14px;border-image:none;
 background-color:color-mix(in srgb,var(--pearl-bottom0958) var(--surface-button0934,100%),transparent);
 background-image:linear-gradient(180deg,color-mix(in srgb,var(--pearl-top0958) var(--surface-button0934,100%),transparent),color-mix(in srgb,var(--pearl-bottom0958) var(--surface-button0934,100%),transparent));
 box-shadow:inset 0 1px 1px var(--pearl-glow0958),inset 0 -2px 2px #448d8019,0 2px 3px var(--pearl-shadow0958);text-shadow:0 1px 0 #fff7;color:#254954;
}
#game :is(button.primary,button.active,button.reward-claim0949),#modal #modalbody :is(button.primary,button.active),#intro52 button.primary{--pearl-top0958:#e9fff7;--pearl-bottom0958:#92d2c8;--pearl-line0958:#5caaa3;}
/* The previous opacity rules remain in force; don't add solid backgrounds to transparent controls. */
#game.surface-button0934 button,#modal.surface-button0934 button{--pearl-glow0958:color-mix(in srgb,#fff var(--surface-button0934),transparent);--pearl-shadow0958:color-mix(in srgb,#387a7c36 var(--surface-button0934),transparent)}
#game button:focus-visible,#modal button:focus-visible,#intro52 button:focus-visible{outline:2px solid #246f78;outline-offset:2px}
/* Keep artwork navigation and transparent field sprites unframed. */
#game #screen .info-tabs0952 button{border-radius:0;box-shadow:none;background:none}
#game #screen button.reward-claim0949{border-radius:14px;background-color:var(--pearl-bottom0958);background-image:linear-gradient(180deg,var(--pearl-top0958),var(--pearl-bottom0958));box-shadow:inset 0 1px 1px #fff9,0 2px 3px #387a7c36;}
#game.surface-button0934 #screen button.reward-claim0949{background-image:none!important;}
/* Single circular top close control for all ordinary modals; passports keep their own mark. */
#modal{border-color:#7abbb6;border-radius:21px;box-shadow:inset 0 0 0 2px #ffffff65,0 10px 40px #15475266;}
#modal:not(:has(.passport54,.farm-card0958)) #modalbody{padding-top:35px;}
#modal>button.dialog-close0958[data-action=close],#modal .passport54 button.pet-close0641[data-action=close]{position:absolute;right:8px;top:8px;z-index:25;display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;min-width:40px;min-height:40px;max-width:40px;margin:0;padding:0;border:1px solid #72aaa5;border-image:none;border-radius:50%;background:radial-gradient(circle at 35% 22%,#f5fffa,#bce5dc 65%,#92c7c0)!important;box-shadow:inset 0 1px 2px #fff,0 2px 4px #356e6d40;text-shadow:none;color:#275d65;touch-action:manipulation;}
#modal .passport54 button.pet-close0641[data-action=close]{width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;top:6px;right:6px;}
#modal>button.dialog-close0958::before,#modal>button.dialog-close0958::after{content:"";position:absolute;width:17px;height:2px;border-radius:2px;background:currentColor;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none;}
#modal>button.dialog-close0958::after{transform:translate(-50%,-50%) rotate(-45deg)}
#modal:has(.passport54)>button.dialog-close0958{display:none!important;}
/* Farm card — title, stock, real speed, worker and single-line costs. */
.farm-card0958{display:grid;gap:12px;min-width:0;}
.farm-title0958{display:flex;align-items:center;gap:8px;min-height:44px;padding-right:43px;}
.farm-title0958 h2{margin:0;min-width:0;font-size:clamp(16px,4.7vw,22px);line-height:1.15;overflow-wrap:anywhere;font-weight:800;}
.farm-level0958{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;border:2px solid #d6b45d;border-radius:50%;background:radial-gradient(circle at 36% 25%,#b3f3e1,#2b9298 55%,#174f68);box-shadow:inset 0 0 0 2px #28767c,0 2px 4px #174f6855;color:#fff9d9;text-shadow:0 1px 2px #173e50;font-size:17px;line-height:1;font-weight:900;}
.farm-level0958.farm-level-custom0958{border:0;box-shadow:none;background-color:transparent;background-size:contain;background-position:center;background-repeat:no-repeat;text-shadow:0 1px 3px #123;}
.farm-level-small0958{width:22px;height:22px;font-size:10px;border-width:1px;box-shadow:inset 0 0 0 1px #28767c;}
.farm-meter0958{min-width:0;padding:8px 9px;border:1px solid #a2cfc9;border-radius:15px;background:linear-gradient(145deg,#eafbf6b8,#d7f1edb8);box-shadow:inset 0 1px 2px #fff9;}
.farm-meter-label0958{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:13px;font-weight:650;margin-bottom:5px;color:#35646b;}
.farm-meter-label0958 b{font-variant-numeric:tabular-nums;font-weight:800;color:#254954;}
.farm-meter-row0958{display:flex;align-items:center;gap:8px;min-width:0;}.farm-meter-row0958>.ui-icon{width:29px;height:29px;flex:none;}
.farm-stock0958{position:relative;isolation:isolate;flex:1;min-width:0;height:26px;display:grid;place-items:center;overflow:hidden;border:1px solid #83b6b5;border-radius:999px;background:linear-gradient(#b5d9d9,#d7ede9);box-shadow:inset 0 2px 4px #396d7b25;}
.farm-stock0958 i,.farm-speed0958 i{position:absolute;left:0;top:0;bottom:0;width:var(--fill0958);max-width:100%;background:linear-gradient(#b1f6e7,#47bab5 60%,#73d4c8);border-radius:999px;box-shadow:inset 0 1px 2px #fff9;pointer-events:none;}
.farm-stock0958 b{position:relative;color:#173f4c;font-size:13px;font-weight:800;text-shadow:0 1px 1px #fff9;font-variant-numeric:tabular-nums;}
.farm-speed-box0958{flex:1;min-width:0;padding:5px 5px 0;}.farm-speed0958{height:12px;border-radius:999px;position:relative;background:#c6e2df;border:1px solid #82b4b0;box-shadow:inset 0 1px 3px #34646b25;}
.farm-speed0958::after{content:"";position:absolute;inset:0 0 -4px;background:repeating-linear-gradient(to right,transparent 0,transparent calc(12.5% - 1px),#386e7880 calc(12.5% - 1px),#386e7880 12.5%);pointer-events:none;}
.farm-needle0958{position:absolute;z-index:2;left:var(--fill0958);top:50%;transform:translate(-50%,-50%);width:17px;height:17px;border:1px solid #c3a060;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fffaf2,#d8d5eb 60%,#9fa6b7);box-shadow:0 1px 3px #416e6b66;}
.farm-scale0958{display:flex;justify-content:space-between;font-size:10px;margin-top:5px;color:#52767c;line-height:1;}
.farm-worker0958{min-width:0;}.farm-worker0958 label{display:block;font-weight:650;margin-bottom:5px;font-size:13px;}.farm-worker0958 .pet-picker0630{margin:0;}
.farm-actions0958{display:grid;grid-template-columns:minmax(0, .83fr) minmax(0,1.55fr);gap:6px;align-items:stretch;min-width:0;}
#modal #modalbody .farm-actions0958 button{min-width:0;margin:0;min-height:42px;display:flex;align-items:center;justify-content:center;gap:3px;padding:6px 4px;font-size:clamp(11px,3.4vw,14px);font-weight:800;white-space:nowrap;line-height:1.1;}
#modal #modalbody .farm-actions0958 button>.ui-icon{width:clamp(19px,5vw,26px);height:clamp(19px,5vw,26px);flex:none;}
#modal #modalbody .farm-upgrade0958{--pearl-top0958:#fffdf0;--pearl-bottom0958:#eddfb9;--pearl-line0958:#c1ab70;font-variant-numeric:tabular-nums;}
.farm-cost0958{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;flex:none;}
.farm-cost0958 .ui-icon{width:clamp(13px,4vw,19px);height:clamp(13px,4vw,19px);flex:none;}
#modal #modalbody .farm-upgrade0958:disabled{opacity:1;cursor:not-allowed;color:#52716c;filter:saturate(.72);}
.farm-cost0958.missing0958{color:#a14b37;text-decoration:underline dotted;text-underline-offset:2px;}.farm-cost0958.missing0958 .farm-level0958{outline:2px solid #a14b37;outline-offset:-1px;}
.farm-max0958{align-self:center;text-align:center;color:#52736e;font-size:12px;font-weight:650;}
@media(max-width:350px){.farm-actions0958{grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:4px}.farm-card0958{gap:9px}.farm-title0958{gap:6px}.farm-level0958:not(.farm-level-small0958){width:36px;height:36px}.farm-level-small0958{width:19px;height:19px}.farm-cost0958{gap:1px}#modal #modalbody .farm-actions0958 button{gap:2px;padding:5px 3px}.farm-meter0958{padding:7px}}
/* Closing/back actions and service retries use the same surface, never the old stretched image. */
#modal #modalbody button.close-art0870,#game button.close-art0870{border-color:var(--pearl-line0958);border-radius:14px;background-color:color-mix(in srgb,var(--pearl-bottom0958) var(--surface-button0934,100%),transparent)!important;background-image:linear-gradient(180deg,color-mix(in srgb,var(--pearl-top0958) var(--surface-button0934,100%),transparent),color-mix(in srgb,var(--pearl-bottom0958) var(--surface-button0934,100%),transparent))!important;box-shadow:inset 0 1px 1px var(--pearl-glow0958),0 2px 3px var(--pearl-shadow0958);}
body.service-mode0957 #screen .service-card0957 #retry55{border-radius:14px!important;background:linear-gradient(#e9fff7,#92d2c8)!important;border-color:#5caaa3!important;box-shadow:inset 0 1px 1px #fff9,0 2px 3px #387a7c36!important;}
#modal>button.dialog-close0958[data-action=close]{width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;}
#modal:not(:has(.passport54,.farm-card0958)) #modalbody{padding-top:40px;}
.farm-title0958{padding-right:46px;}

/* v0.9.6.2: completed actions on the bottom navigation, no extra API calls. */
#nav [data-view="rpg"],#nav [data-view="lab"]{position:relative;overflow:visible}
#nav .nav-ready0962{position:absolute;right:2px;top:2px;z-index:5;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#bd393b;color:#fff;font-size:12px!important;font-style:normal;font-weight:800;line-height:1;border:1.5px solid #fff;box-shadow:0 1px 3px #193d4e60;pointer-events:none}
.invite-qr0962{position:relative;max-width:320px;width:100%;margin:12px auto;background:#fff;border-radius:8px;overflow:hidden;aspect-ratio:1}
.invite-qr0962 svg{display:block;width:100%;height:100%}
.invite-qr0962 .invite-qr-logo0962{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:11%;height:11%;object-fit:contain;box-sizing:border-box;background:#fff;border:2px solid #fff;border-radius:4px;padding:0}

/* Onboarding: brighter pulse with a pair of short white flashes. */
.tutorial-pulse0963{outline:none!important;animation:tutorialGlow0963 1.7s ease-in-out infinite!important;z-index:12;}
@keyframes tutorialGlow0963{0%,22%,100%{filter:drop-shadow(0 0 5px #ffe398);box-shadow:0 0 8px 2px #ffd35d70}34%{filter:brightness(1.35) drop-shadow(0 0 16px #fff6cf);box-shadow:0 0 24px 10px #ffd35dcc,inset 0 0 15px #fff4bc90}42%,48%{filter:brightness(1.85) drop-shadow(0 0 9px #ffffff) drop-shadow(0 0 21px #ffffff);box-shadow:0 0 14px 4px #ffffffcc,0 0 28px 12px #fff3b7ee,inset 0 0 18px #ffffffb8}56%{filter:brightness(1.25) drop-shadow(0 0 13px #fff1ab);box-shadow:0 0 20px 8px #ffd35dbb,inset 0 0 11px #fff2a780}}
.tutorial-message0963{text-align:center;padding:10px 5px 6px;line-height:1.5}.tutorial-message0963 h2{margin:8px 0;color:inherit}.tutorial-message0963 small{display:block;letter-spacing:.12em;font-weight:800;opacity:.8}.tutorial-symbol0963{display:grid;place-items:center;margin:0 auto 12px;width:72px;height:72px;border-radius:50%;background:linear-gradient(140deg,#d4fff3,#8bcfc5);box-shadow:0 3px 14px #237c8540;font-size:36px}.tutorial-message0963 p{margin:10px 0 18px}.tutorial-message0963 .invite-qr0962{margin:12px auto;max-width:220px}@media(prefers-reduced-motion:reduce){.tutorial-pulse0963{animation:none!important}}

.tutorial-symbol0963 img{width:100%;height:100%;object-fit:contain;border-radius:inherit}.hauling-queued0964{filter:drop-shadow(0 0 4px #a2e9ff)}

/* Actual silhouette illumination, not a rectangular frame. */
#game #screen .world :is(.ship-shadow0624,.ship-gift0624,.litter0870).tutorial-pulse0963{animation:tutorialSilhouette0964 1.5s ease-in-out infinite!important;box-shadow:none!important}
@keyframes tutorialSilhouette0964{0%,100%{filter:drop-shadow(0 0 3px #ffde65);opacity:.75}50%{filter:brightness(1.3) drop-shadow(0 0 8px #fff7be) drop-shadow(0 0 15px #ffca3b);opacity:1}}
@media(prefers-reduced-motion:reduce){#game #screen .world :is(.ship-shadow0624,.ship-gift0624,.litter0870).tutorial-pulse0963,.tutorial-pulse0963{animation:none!important;filter:drop-shadow(0 0 7px #ffdb65)!important}}

.construction-preview0965{display:block;max-width:160px;width:100%;margin:0 auto 10px}.construction-half0965{object-fit:contain}

@keyframes tutorialGlow0963{0%,100%,70%{filter:drop-shadow(0 0 5px #ffe398);box-shadow:0 0 8px 2px #ffd35d70}15%,45%{filter:brightness(1.8) drop-shadow(0 0 12px white);box-shadow:0 0 22px 8px #fff,inset 0 0 14px #fff9}30%,58%{filter:brightness(1.1) drop-shadow(0 0 6px #ffe398);box-shadow:0 0 8px 2px #ffd35d70}}
@keyframes tutorialSilhouette0964{0%,100%,70%{filter:drop-shadow(0 0 4px #ffe398);opacity:.85}15%,45%{filter:brightness(1.8) drop-shadow(0 0 9px white) drop-shadow(0 0 15px white);opacity:1}30%,58%{filter:brightness(1.1) drop-shadow(0 0 4px #ffe398);opacity:.9}}
#game #screen .world :is(.ship-shadow0624,.ship-gift0624,.litter0870).tutorial-pulse0963{animation-duration:2s!important}.tutorial-pulse0963{animation-duration:2s!important}.construction-worker0965{z-index:5!important}
@media(prefers-reduced-motion:reduce){.tutorial-pulse0963,#game #screen .world :is(.ship-shadow0624,.ship-gift0624,.litter0870).tutorial-pulse0963{animation:none!important}}

/* v0.9.6.6 — construction artwork and progress only. */
#game #screen .world .tile.construction-tile0965{overflow:visible;background:transparent!important;border-color:transparent!important;box-shadow:none!important;outline:none!important}
.construction-tile0965 .building[hidden]{display:none!important}
.construction-progress0966{position:absolute;bottom:2px;left:10%;width:80%;height:5px;display:block;overflow:hidden;border-radius:999px;background:#244b60a8;pointer-events:none}
.construction-progress0966 i{display:block;height:100%;border-radius:inherit;background:#8ff4c5;transition:width .35s linear}
.construction-tile0965.paused0965 .construction-progress0966 i{background:#edca83}
.construction-tile0965:focus-visible .construction-progress0966{outline:2px solid white;outline-offset:2px}
#game #screen .world .construction-tile0965.tutorial-pulse0963{animation:none!important;filter:none!important;box-shadow:none!important}
.construction-tile0965.tutorial-pulse0963 .building:not([hidden]),.construction-tile0965.tutorial-pulse0963 .building[hidden]+.construction-progress0966{animation:tutorialSilhouette0964 2s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.construction-progress0966 i{transition:none}.construction-tile0965.tutorial-pulse0963 .building:not([hidden]),.construction-tile0965.tutorial-pulse0963 .building[hidden]+.construction-progress0966{animation:none;filter:drop-shadow(0 0 4px #ffe398)}}

/* v0.9.6.8: progress above the construction, over every resident, without blocking taps. */
.world>.construction-progress0966{bottom:auto;top:0;left:0;z-index:20;pointer-events:none;box-shadow:none;outline:none}
.world>.construction-progress0966.paused0965 i{background:#edca83}
.world>.construction-progress0966.tutorial-pulse0963{z-index:20;animation:tutorialSilhouette0964 2s ease-in-out infinite!important;box-shadow:none!important}
@media(prefers-reduced-motion:reduce){.world>.construction-progress0966.tutorial-pulse0963{animation:none!important;filter:drop-shadow(0 0 4px #ffe398)}}

/* Reserve space for a bar at the first grid row, including transparent farm mode. */
#game #screen>.map-shell>.world.construction-top0968{padding-top:8px!important}

/* 0969 — local graphics presets. Core controls, ships and construction remain visible. */
.graphics-options0969{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.graphics-options0969 button{min-width:0;padding:9px 3px;overflow-wrap:anywhere;font-size:12px}.graphics-options0969 button small{display:block;font-size:10px;margin-top:4px}.graphics-options0969 button[aria-pressed=true]{border-color:#2f9b95!important;background:#b5e1d5!important}
html[data-graphics0969=low] .world::before,html[data-graphics0969=low] .world::after{animation:none!important;display:none!important}
html[data-graphics0969=low] .world :is(.building,.walker,.micro0830,.litter0870):not(.tutorial-pulse0963):not(.tutorial-pulse0963 *){filter:none!important}
html[data-graphics0969=low] .world .walker img{animation:none!important}
html[data-graphics0969=low] .world .field-reaction0935{display:none!important}
html[data-graphics0969=normal] .world::after{animation-duration:24s}
.world.offscreen0969::before,.world.offscreen0969::after,.world.offscreen0969 :is(.walker img,.litter-bubbles0922>i,.micro0830 img,.micro0830 svg),.building-tile.offscreen0969>.building{animation-play-state:paused!important}

/* v0.9.7.1: keep lesson glow out of clipping containers. */
.tutorial-glow-portal0971{position:fixed;z-index:2147483000;pointer-events:none;border-radius:10px;animation:tutorialPortal0971 2s ease-in-out infinite;box-shadow:0 0 8px 2px #ffd35d70}
@keyframes tutorialPortal0971{0%,100%,70%{box-shadow:0 0 8px 2px #ffd35d70}15%,45%{box-shadow:0 0 20px 7px white,inset 0 0 10px #fff8}30%,58%{box-shadow:0 0 8px 2px #ffd35d70}}
@media(prefers-reduced-motion:reduce){.tutorial-glow-portal0971{animation:none}}
.world .tutorial-pulse0963,.world-grid:has(.tutorial-pulse0963),.world:has(.tutorial-pulse0963){overflow:visible!important}
html:has(dialog[open] .tutorial-message0963) #screen :not(.tutorial-pulse0963),html:has(dialog[open] .tutorial-message0963) .farm-upper0930{animation-play-state:paused!important}

/* Artifact inventory: stable disclosure key and one compact row per kind. */
.relic-bag0972>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}.relic-bag0972>summary::-webkit-details-marker{display:none}.relic-bag0972>summary:before{content:"▸";flex:none;opacity:.7}.relic-bag0972[open]>summary:before{content:"▾"}.relic-bag-count0972{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-variant-numeric:tabular-nums}.relic-new0972{display:inline-grid;place-items:center;min-width:17px;height:17px;border-radius:50%;background:#f5a438;color:#33230b;font-size:12px;font-style:normal;font-weight:800}.relic-bag-rows0972{margin-top:8px}.relic-bag-row0972{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;padding:5px 0;border-top:1px solid rgba(120,150,155,.24)}.relic-bag-row0972>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relic-bag-row0972>span:last-child{font-variant-numeric:tabular-nums;font-weight:700}.relic-bag-row0972 .relic-art0941{width:28px;height:28px;margin:0}.relic-bag-row0972>svg{width:24px;height:24px}
/* Fair: vector wheel and uploadable separate decorations. */
#game .wallet{grid-template-columns:repeat(6,minmax(0,1fr)) minmax(0,1.2fr)}
#game .wallet .wallet-counter>.ui-icon{width:clamp(26px,8vw,40px);height:clamp(26px,8vw,40px);max-width:100%}
#game .wallet .weather52>.ui-icon{width:clamp(24px,7vw,36px);height:clamp(24px,7vw,36px)}
.ship-gift0624 .fair-token0973{width:100%;height:100%}
.fair-tabs0973{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.fair-tabs0973 button{min-width:0;padding:8px 4px;white-space:nowrap}.fair-tab-dot0973{display:inline-block;background:#d84c49;border-radius:50%;width:7px;height:7px;margin-left:3px;vertical-align:top}
#nav [data-view=market]{position:relative}#nav .fair-bell0973{position:absolute;right:2px;top:1px;z-index:6;color:#e63d40;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#fff6e9;border:1px solid #ad2c35;pointer-events:none}#nav .fair-bell0973 svg{width:16px;height:16px}
.fair-head0973{color:#fff5d1;background:linear-gradient(135deg,#196a79,#244c68);background-position:center;background-size:cover;text-align:center}.fair-head0973 h2{color:inherit}.fair-head0973 p{margin:5px 0}
.fair-attraction0973 h2{text-align:center}.fair-wheel-wrap0973{max-width:360px;width:100%;margin:8px auto}.fair-wheel0973{display:block;width:100%;height:auto;overflow:visible}.fair-rotor0973{transform-origin:160px 160px;will-change:transform}.fair-result0973{min-height:2.5em;text-align:center;color:#225b58}.fair-odds0973{padding:8px 0}.fair-odds0973 summary{cursor:pointer;font-weight:700}.fair-odds-row0973{display:flex;justify-content:space-between;align-items:center;gap:6px;border-top:1px solid #8bb8b866;padding:7px 0;font-size:13px}.fair-odds-row0973 b{text-align:right}.fair-egg-rare{filter:drop-shadow(0 0 4px #49a3f5)}.fair-egg-epic{filter:drop-shadow(0 0 4px #b77bee)}.fair-egg-legendary{filter:drop-shadow(0 0 4px #eead39)}
@media(prefers-reduced-motion:reduce){.fair-rotor0973{transition:none!important}}

#game#game .panel.fair-head0973{background-color:#245b6b!important;background-image:var(--fair-head-art0974,linear-gradient(135deg,#196a79,#244c68))!important;color:#fff5d1!important}#game .fair-head0973 :is(h2,p,b){color:#fff5d1!important}

#wallet [data-wallet0910]{position:relative}.fair-gain0974{position:absolute;top:100%;left:50%;transform:translateX(-50%);font-size:12px;font-weight:800;color:#176c37;background:#efffe6;border-radius:5px;padding:2px 4px;z-index:10;pointer-events:none;white-space:nowrap}

/* v0.9.7.5: consistent field geometry, compact egg storage and radial wheel labels. */
#screen>.map-shell>.world>.world-grid{aspect-ratio:16 / var(--map-rows0612,16);min-height:calc(var(--map-rows0612,16)*16px - 1px)}
.lab .eggrow .egg-placeholder{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;font-size:32px;line-height:1;min-width:0}
.lab .eggrow .egg-placeholder img{display:block;width:100%;height:100%;max-width:42px;max-height:42px;object-fit:contain}
.lab .eggrow .info{min-width:0;overflow-wrap:anywhere}
.lab .eggrow button{flex:0 0 auto;max-width:43%;font-size:12px;line-height:1.2;white-space:normal;padding:7px 9px}
.lab .egg-storage0975{display:grid;gap:0;padding-block:2px}
.lab .egg-storage-row0975{padding:8px 0;gap:8px;min-width:0}
.lab .egg-storage-row0975+.egg-storage-row0975{border-top:1px solid #77a8a44d}
.fair-sector-value0975{font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;font-weight:600;letter-spacing:.12px}

/* Fair currency controls and optional spin button artwork. */
#game #screen .fair-mode-tabs0975>button{font-size:14px;line-height:1.25;min-height:40px;display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
#game#game #screen button.fair-spin-art0975{background-image:var(--fair-spin-art0975)!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;background-color:transparent!important;min-height:48px;box-shadow:none;color:#fff;text-shadow:0 1px 3px #153b45,0 0 3px #153b45}
#game#game #screen button.fair-spin-art0975:disabled{opacity:.55;cursor:default}

/* Loading art fills viewport; controls sit in bottom seventh, with readable tips. */
body.boot0940 #boot0940{padding:0;overflow:hidden;isolation:isolate}#boot-image0978{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}#boot-image0978[hidden]{display:none}#boot0940 .boot-bottom0978{position:absolute;bottom:0;left:0;right:0;min-height:calc(100% / 7);box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 16px max(8px,env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(10,40,53,.92) 30%);color:#fff}#boot0940 .boot-bottom0978 strong{font-size:14px}#boot-progress0978{width:min(90%,480px);height:9px;accent-color:#8ee5cf;display:block}#boot-tip0978{font-size:13px;line-height:1.3;margin:0;max-width:520px;min-height:2.6em}#boot0940 .boot-bottom0978 a{margin:0;font-size:11px}

/* 0978: service backgrounds cover the game viewport, with readable live text. */
body.service-mode0957 #screen{padding:0;align-items:stretch;justify-content:stretch;position:relative;}
.service-stage0957{position:relative;isolation:isolate;max-width:none;min-height:100dvh;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:max(20px,env(safe-area-inset-top)) 14px max(20px,env(safe-area-inset-bottom));overflow:hidden;}
.service-background0978{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none;}
.service-custom0978::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#102a3922,#102a3977);z-index:-1;pointer-events:none;}
.service-stage0957 .service-card0957{width:100%;max-width:430px;box-sizing:border-box;position:relative;}
.service-custom0978 .service-card0957{background:rgba(244,252,247,.88);}
.service-art0957[hidden]{display:none!important;}

/* Service dialogs rest at the bottom, with safe-area space and natural overflow. */
body.service-mode0957 #screen .service-stage0957{justify-content:flex-end;align-items:center;padding-bottom:max(20px,calc(env(safe-area-inset-bottom) + 12px));flex-direction:column;}

/* Keep launch and service artwork within the same centered game column on wide screens. */
body.boot0940 #boot0940{width:100%;max-width:510px;left:50%;right:auto;transform:translateX(-50%);box-shadow:0 0 45px #29332180;}
body.service-mode0957 #game{width:100%;max-width:510px;margin-inline:auto;}
body.service-mode0957 #screen .service-stage0957{width:100%;max-width:100%;padding-bottom:max(20px,calc(env(safe-area-inset-bottom) + 12px),calc(var(--tg-bottom,0px) + 12px));}
html.telegram0740 body.service-mode0957 #game,html.telegram0740 body.service-mode0957 #screen,html.telegram0740 body.service-mode0957 #screen .service-stage0957{min-height:calc(100dvh - max(env(safe-area-inset-top),var(--tg-top,0px)));}

/* 0981 — premium quick feed and chest tabs */
.map-tools0913>.premium-feed0981{position:absolute;right:5px;top:88px;width:var(--map-tool-size);height:var(--map-tool-size);min-height:0;display:grid;place-items:center;padding:1px;pointer-events:auto;border:1px solid #a58c51;border-radius:9px;background:#e3efd5;color:#3a744d;z-index:3}
.map-tools0913>.premium-feed0981>.ui-icon{width:75%;height:75%;transform:translate(-3px,-2px)}.map-tools0913>.premium-feed0981>.feed-utensils0981{position:absolute;width:49%;height:49%;right:1px;bottom:1px;filter:drop-shadow(0 0 1px white)}
.map-tools0913>.premium-feed0981~.tester-tools0932{top:129px}.bag-wallet0981{display:flex;align-items:center;gap:8px}.bag-wallet0981>img,.bag-wallet0981>svg,.bag-wallet0981>.ui-icon{width:30px;height:30px;object-fit:contain}.relic-summary0981{display:flex;align-items:center;justify-content:space-between}.bag-tabs0981 button{position:relative}.relic-nav0981{background:#b73737;color:#fff}.world>.construction-progress0966{bottom:auto;pointer-events:none}.world>.fart54.collectible0981{animation:none!important;opacity:1}.world>.fart54.collectible0981 svg{animation: bubblePulse0981 1.7s ease-in-out infinite}@keyframes bubblePulse0981{50%{transform:scale(.9)}}@media(prefers-reduced-motion:reduce){.world>.fart54.collectible0981 svg{animation:none}}

.map-tools0913>.premium-info0981{position:absolute;right:calc(9px + var(--map-tool-size));top:88px;width:var(--map-tool-size);height:var(--map-tool-size);min-height:0;padding:0;pointer-events:auto;z-index:3;border-radius:9px;font-size:20px;line-height:1;color:#4b6b70;background:#e7f2e8}.world>.fart54.collectible0981{touch-action:manipulation}

/* 0984: progress behind pets/cargo, retained read notifications. */
#game #screen .world>.construction-progress0966{z-index:2!important;pointer-events:none!important}
#game #screen .world>.construction-progress0966.tutorial-pulse0963{z-index:2!important}
#game #screen .news0952.notice-read0984{background:#e2e5e5!important;color:#677172!important;border-color:#a9b0b0!important}
#game #screen .news0952.notice-read0984 :is(h2,p,small){color:#677172!important}

.world>.ship-shadow0624 .ship-shadow-img0984{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
/* Passport v0.9.8.5: keep the playable care card intact, use the official print design in preview/export. */
#modal .passport54{border-color:#b99a5c;color:#173b58;box-shadow:inset 0 0 0 2px #e8d8b6;border-radius:10px}
#modal .passport-banner54{background:linear-gradient(135deg,#0f3d61,#124e76);color:#f8df9b;border:1px solid #c7a46a;border-radius:7px;padding:11px 6px}
#modal .passport-banner54 small{color:#f7edda}
#modal .passport-preview-box0985{margin:8px 0 12px;min-width:0}
#modal .passport-preview-box0985[hidden]{display:none}
#modal .passport-preview-box0985 img{display:block;width:100%;height:auto;max-width:100%;border-radius:7px;box-shadow:0 2px 8px #193b5440}

/* v0.9.9.0: live pet page; existing game chrome, no passport decoration. */
#modal[open]:has(.card0990){position:fixed;inset:auto;top:var(--card-top0990,0px);left:var(--card-left0990,0px);width:var(--card-width0990,100vw);height:var(--card-height0990,100dvh);max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;z-index:30;box-sizing:border-box;}
body:has(#modal[open] .card0990) #screen>*{visibility:hidden;}
/* Pet opened from the field uses the same page tint as Residents, without changing the field after closing. */
body:has(#modal[open] .card0990) #game.backdrop-active0934.on-farm0934>#screen{background:#d6efea;}
body:has(#modal[open] .card0990) #game.backdrop-active0934.on-farm0934.surface-screen0934>#screen{background:color-mix(in srgb,#d6efea var(--surface-screen0934),transparent)!important;}
#modal:has(.card0990) #modalbody{padding:0;min-width:0;}
#modal #modalbody .card0990{--card-line:#79b7b1;--card-ink:#254954;--card-panel:color-mix(in srgb,#edf3e5 var(--surface-panel0934,100%),transparent);--card-button:color-mix(in srgb,#e7f3ec var(--surface-button0934,100%),transparent);--card-active:color-mix(in srgb,#c5e5d9 var(--surface-button0934,100%),transparent);margin:0;padding:10px;display:flex;flex-direction:column;gap:7px;min-width:0;box-sizing:border-box;background:none!important;border:0;border-radius:0;box-shadow:none;color:var(--card-ink);font-family:inherit;container-type:inline-size;}
#modal #modalbody .card0990 .passport-banner54{position:relative;display:flex;align-items:center;justify-content:center;margin:0;min-height:48px;padding:7px 46px;box-sizing:border-box;background:#15596a;border:0;border-radius:12px;box-shadow:none;color:#fff8e5;text-align:center;}
#modal .card0990 .passport-banner54 h2{line-height:1.15;font-family:inherit;font-size:clamp(19px,5.5cqw,26px);font-weight:800;margin:0;text-shadow:none;}
#modal#modal #modalbody .card0990 .pet-close0641[data-action=close]{position:absolute;inset:50% 6px auto auto;transform:translateY(-50%);width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;padding:0;margin:0;border:1px solid #8ab5af;border-radius:10px;background:#e7f3ec!important;box-shadow:none;color:#254954;}
#modal #modalbody .card0990 .pet-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px;margin:0;padding:8px;background:var(--card-panel);border:1px solid var(--card-line);border-radius:12px;box-shadow:none;min-width:0;}
#modal #modalbody .card0990 .portrait0641{position:relative;display:block;width:100%;aspect-ratio:1.45;min-height:0;max-height:none;overflow:hidden;isolation:isolate;background-color:#b9e2d5;background-image:url('assets/card-reef0989.webp');background-position:center;background-size:cover;border:1px solid var(--card-line);border-radius:10px!important;box-shadow:none;}
#modal .card0990 .portrait0641:before{content:none;}
#modal #modalbody .card0990 .pet-summary .portrait0641 img.pet-portrait{position:absolute;inset:22% 4% 5%;width:92%;height:73%;max-width:none;max-height:none;object-fit:contain;filter:drop-shadow(0 2px 2px #24495430);z-index:2;}
#modal .card0990 .portrait0641 .resident-level0642{position:absolute;top:5px;left:5px;z-index:5;padding:3px 7px;border-radius:7px;background:#297e87;color:#fff;font-size:12px;line-height:1.2;white-space:nowrap;}
#modal .card0990 .resident-level0642:before{content:'Ур. ';}
#modal .card0990 .portrait0641 .pet-activity060{top:5px;right:5px;left:auto;z-index:6;flex-direction:column;}
#modal .card0990 .portrait0641 .ice0641{inset:16% 4% 4%;width:auto;height:auto;z-index:3;}
#modal .card0990 .card-info0990{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;}
#modal #modalbody .card0990 .card-info0990 .pet-name0641{position:static;display:block;width:100%;min-width:0;margin:0;color:var(--card-ink);font-family:inherit;font-size:clamp(13px,4.3cqw,22px)!important;font-weight:800;line-height:1.15;text-align:left;white-space:normal;text-shadow:none;overflow-wrap:anywhere;}
#modal .card0990 .card-info0990 .pet-name0641 span{display:block;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
#modal #modalbody .card0990 .card-info0990 .pet-rarity0641{position:static;display:inline-block;transform:none;min-width:0;max-width:100%;width:auto;height:auto;padding:3px 8px;border:1px solid #b8bda9;border-radius:8px;background:#e8e8d8;color:var(--card-ink);box-shadow:none;font-size:clamp(10px,3cqw,13px);font-weight:650;line-height:1.25;text-shadow:none;white-space:normal;overflow-wrap:anywhere;}
#modal .card0990[data-rarity=rare] .card-info0990 .pet-rarity0641{background:#cde7f3;border-color:#82adcc;}
#modal .card0990[data-rarity=epic] .card-info0990 .pet-rarity0641{background:#e8d6f3;border-color:#ae92c3;}
#modal .card0990[data-rarity=legendary] .card-info0990 .pet-rarity0641{background:#f7e6b2;border-color:#c9ac61;}
#modal #modalbody .card0990 .card-info0990 .pet-xp0641{position:static;display:block;width:100%;height:7px;min-height:0;margin:0;padding:0;background:#c6dbd8;border:0;border-radius:8px;overflow:hidden;box-shadow:none;}
#modal .card0990 .card-info0990 .pet-xp0641 i,#modal .card0990 .card-satiety0987 i{display:block;height:100%;background:#439f96;border:0;box-shadow:none;border-radius:0;}
#modal #modalbody .card0990 .card-info0990 .resident-bottom0642{position:static;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4px;width:100%;min-width:0;padding:0;margin:0;background:none;border:0;box-shadow:none;font-size:clamp(11px,3.6cqw,16px);color:var(--card-ink);}
#modal .card0990 .card-info0990 :is(.pet-breeds0641,.pet-profile0641){position:static;display:flex;align-items:center;justify-content:flex-start;gap:3px;min-width:0;padding:0;border:0;background:none;box-shadow:none;font-weight:750;white-space:nowrap;}
#modal .card0990 .card-info0990 .ui-icon{width:20px;height:20px;flex:none;}
#modal .card0990 .pet-group-care56{padding:0;margin:0;border:0;background:none;box-shadow:none;}
#modal .card0990 .pet-group-care56 .pet-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:6px;}
#modal#modal #modalbody .card0990 :is(.pet-group-care56 button,.card-extra0987,.card-bottom0987 .passport-share54,.card-passport-tools0987 button,.card-tabs0987 button){display:flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;min-width:0;min-height:38px;padding:6px 5px;margin:0;background:var(--card-button)!important;background-image:none!important;color:var(--card-ink);border:1px solid var(--card-line);border-image:none;border-radius:10px;box-shadow:none;text-shadow:none;font-family:inherit;font-size:clamp(11px,3.25cqw,15px);font-weight:700;line-height:1.2;white-space:normal;overflow-wrap:anywhere;}
#modal#modal #modalbody .card0990 :is(.pet-group-care56 button[data-action=feed],.card-tabs0987 button.active){background:var(--card-active)!important;border-color:#6eaaa3;}
#modal .card0990 .pet-group-care56 .ui-icon{width:21px;height:21px;flex:none;}
#modal .card0990 .pet-group-care56 button span .ui-icon{width:14px;height:14px;vertical-align:middle;}
#modal#modal #modalbody .card0990 button:disabled{opacity:.5;filter:saturate(.65);cursor:default;}
#modal .card0990 .card-life0987{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin:0;padding:0;background:none;border:0;box-shadow:none;}
#modal #modalbody .card0990 .card-life0987>div{position:relative;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:55px;padding:6px 5px 6px 32px;background:var(--card-panel);border:1px solid var(--card-line);border-radius:10px;box-shadow:none;}
#modal .card0990 .card-life0987>div small{font-size:clamp(10px,2.9cqw,13px);line-height:1.15;color:var(--card-ink);}
#modal .card0990 .card-life0987>div b{font-size:clamp(11px,3.5cqw,16px);line-height:1.2;color:var(--card-ink);overflow-wrap:anywhere;}
#modal .card0990 .card-life0987>small{grid-column:1/-1;text-align:center;font-size:10px;line-height:1.2;color:#4c6b6b;margin:-3px 0 0;}
#modal .card0990 .card-life-icon0987{position:absolute;left:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:22px;height:22px;font-size:16px;background:none;border:0;box-shadow:none;}
#modal .card0990 .card-life-icon0987 .ui-icon{width:20px;height:20px;}
#modal .card0990 .card-satiety0987{height:6px;background:#c6dbd8;border-radius:6px;overflow:hidden;}
#modal .card0990 .card-satiety0987[data-state=low] i{background:#d3a34c;}#modal .card0990 .card-satiety0987[data-state=hungry] i{background:#bc6960;}
#modal .card0990 .card-tabs0987{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;}
#modal .card0990 .card-tabs0987 .ui-icon{width:15px;height:15px;flex:none;}
#modal .card0990 .card-panels0987{min-width:0;padding:0;margin:0;border:0;background:none;box-shadow:none;}
#modal .card0990 [data-card-panel][hidden]{display:none!important;}
#modal .card0990 .card-facts0987{min-width:0;padding:3px 7px;border:1px solid var(--card-line);border-radius:10px;background:var(--card-panel);box-shadow:none;}
#modal .card0990 .card-facts0987>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:5px;padding:6px 2px;font-size:clamp(11px,3.2cqw,15px);line-height:1.25;overflow-wrap:anywhere;color:var(--card-ink);border-bottom:1px solid #83b6ac45;}
#modal .card0990 .card-facts0987>div:last-child{border:0;}
#modal .card0990 .card-facts0987 b{text-align:right;min-width:0;}
#modal#modal #modalbody .card0990 .card-extra0987{width:100%;margin-top:6px;}
#modal .card0990 .card-extra0987 .ui-icon{width:20px;height:20px;flex:none;}
#modal .card0990 .card-equipment0987{display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;padding:6px;background:var(--card-panel);border:1px solid var(--card-line);border-radius:10px;text-align:center;font-size:13px;}
#modal .card0990 .card-equipment0987 img{max-width:64px;max-height:64px;object-fit:contain;}
#modal .card0990 .card-bottom0987{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
#modal#modal #modalbody .card0990 .card-bottom0987 .passport-share54{width:100%;}
#modal .card0990 .card-bottom0987 .passport-stamp54{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;margin:0;padding:5px;border:1px solid var(--card-line);border-radius:10px;box-shadow:none;background:var(--card-panel);color:var(--card-ink);font-size:clamp(10px,2.8cqw,13px);letter-spacing:0;text-align:center;overflow-wrap:anywhere;}
#modal .card0990 .card-bottom0987 .ui-icon{width:16px;height:16px;flex:none;}
#modal .card0990 .card-passport-tools0987{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
#modal .card0990 .card-passport-tools0987 :is(.passport-preview-box0985,.passport-status54){grid-column:1/-1;min-width:0;}
#modal#modal #modalbody .card0990 button:focus-visible{outline:2px solid #377f78;outline-offset:2px;}
@media(max-width:350px){#modal #modalbody .card0990{padding:7px;gap:6px}#modal #modalbody .card0990 .pet-summary{gap:7px;padding:6px}#modal .card0990 .card-info0990{gap:6px}#modal .card0990 .card-tabs0987 .ui-icon{width:12px;height:12px}#modal #modalbody .card0990 .card-life0987>div{padding-left:27px}#modal .card0990 .card-life-icon0987{width:18px;height:18px;left:3px}}
/* Programmatically focused heading does not look like a selected button. */
#modal .card0990 .passport-banner54 h2:focus{outline:none;}
/* Unusually long generated names get the full width, without clipping the portrait or counters. */
#modal #modalbody .card0990 .card-summary-long0990 .card-info0990{display:contents;}
#modal #modalbody .card0990 .card-summary-long0990 .pet-name0641{grid-column:1/-1;grid-row:1;font-size:clamp(13px,3.7cqw,19px)!important;}
#modal #modalbody .card0990 .card-summary-long0990 .portrait0641{grid-column:1;grid-row:2/5;}
#modal #modalbody .card0990 .card-summary-long0990 .pet-rarity0641{grid-column:2;grid-row:2;justify-self:start;}
#modal #modalbody .card0990 .card-summary-long0990 .pet-xp0641{grid-column:2;grid-row:3;}
#modal #modalbody .card0990 .card-summary-long0990 .resident-bottom0642{grid-column:2;grid-row:4;}

/* 0.9.9.1: two equal tabs and a single full-width passport action. */
#modal .card0990 .card-tabs0987{grid-template-columns:repeat(2,minmax(0,1fr));}
#modal .card0990 .card-bottom0987,#modal .card0990 .card-passport-tools0987{grid-template-columns:minmax(0,1fr);}
#modal .card0990 .card-passport-tools0987:not(:has(> :not([hidden]))){display:none;}

/* v0.9.9.3 — horizontal resident list, in the existing matte surface style. */
#screen .residents-horizontal0993{grid-template-columns:minmax(0,1fr);gap:7px}
#screen .resident-horizontal0993{position:relative;display:grid;grid-template-columns:minmax(0,32%) minmax(0,1fr);align-items:center;gap:9px;padding:7px;min-width:0;border:1px solid #79b7b1;border-radius:12px;background:#edf3e5;box-shadow:none;color:#254954}
.resident-picture0993{position:relative;min-width:0;width:100%;aspect-ratio:1.12;background-color:#f4dba4;background-position:center;background-size:cover;overflow:hidden;border:1px solid #9bbcb0;border-radius:8px;display:grid;place-items:center}
#screen .resident-picture0993 .resident-image0993{display:block;width:94%;height:94%;aspect-ratio:auto;object-fit:contain;background:none;min-width:0;max-width:100%;border-radius:0}
.resident-picture0993 .pet-activity060{top:3px;left:3px;gap:2px;flex-wrap:wrap;max-width:95%}
.resident-picture0993 .pet-activity060 span{width:18px;height:18px;min-width:0;padding:1px;font-size:11px;box-shadow:none}
.resident-picture0993 .pet-activity060 .ui-icon{width:100%;height:100%}
.resident-info0993{display:flex;flex-direction:column;gap:6px;min-width:0;padding:1px 0}
.resident-head0993{display:flex;align-items:flex-start;justify-content:space-between;gap:5px;min-width:0}
#screen .resident-head0993 strong{font-size:clamp(13px,3.8vw,16px);font-weight:800;line-height:1.18;min-width:0;overflow-wrap:anywhere;word-break:normal}
.resident-level0993{flex:none;white-space:nowrap;font-size:11px;line-height:1.3;font-weight:700;color:#f3faf2;background:#267b83;border-radius:5px;padding:3px 6px}
.resident-rarity-line0993{display:flex;min-width:0}
.resident-rarity0993{max-width:100%;font-size:11px;line-height:1.2;padding:2px 6px;border:1px solid #9dbdb5;border-radius:5px;font-weight:650;overflow-wrap:anywhere;background:#e8eee0}
.resident-rarity0993.uncommon,.resident-rarity0993.rare{background:#c9e3e5}.resident-rarity0993.epic{background:#dec9e7}.resident-rarity0993.legendary{background:#f5d38b}
.resident-xp0993{height:6px;border-radius:5px;background:#c8ded9;overflow:hidden;min-width:0}.resident-xp0993 i{display:block;height:100%;background:#499f99;border-radius:5px}
.resident-status0993{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;font-size:11px;line-height:1.25;min-width:0;font-weight:650}
.resident-status0993>span{display:inline-flex;align-items:center;gap:3px;min-width:0;max-width:100%}.resident-status0993>span:first-child{flex:1 1 auto}.resident-life0993{overflow-wrap:anywhere;min-width:0}.resident-status0993 .ui-icon{width:15px;height:15px;flex:none}.resident-horizontal0993[data-hungry0993="true"] .resident-life0993{color:#9a512d}
#screen .resident-horizontal0993 .resident-open0919{background:transparent;min-height:0;border:0;box-shadow:none}
@media(max-width:360px){#screen .resident-horizontal0993{grid-template-columns:minmax(0,30%) minmax(0,1fr);gap:6px;padding:6px}.resident-info0993{gap:4px}.resident-level0993{padding:2px 4px;font-size:10px}.resident-status0993{gap:3px 6px}}

/* 0.9.9.5: compact fishing status in the old current slot. */
#game .wallet button.ship-status0995{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;width:100%;padding:1px 0 2px;border:0;box-shadow:none;background:transparent;font-size:clamp(9px,2.2vw,12px);font-weight:700;line-height:1.1;cursor:pointer;color:inherit}#game .wallet .ship-status-art0995{display:block;width:clamp(26px,7.5vw,38px);height:clamp(26px,7.5vw,38px);object-fit:contain}#game .wallet .ship-status0995 span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ship-budget0995{display:grid;gap:5px}.ship-budget-row0995{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid #9bc4be55}.ship-budget-row0995:last-child{border-bottom:0}.ship-budget-row0995 .ui-icon{width:24px;height:24px}

/* v0.9.9.9 — status labels and handbook */
#game .wallet .ship-status0995 span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;text-align:center;font-size:clamp(8px,2vw,12px);line-height:1.08}
.guide52 .guide-topic52{margin:7px 0;padding:10px 12px}.guide52 .guide-topic52 summary{display:flex;align-items:center;gap:8px;cursor:pointer;line-height:1.3}.guide52 .guide-topic52 summary .ui-icon{flex:0 0 23px;width:23px;height:23px}.guide52 .guide-topic52 p{margin:9px 0 0;font-size:13px;line-height:1.55}.guide52 .guide-topic52 summary::after{content:"+";margin-left:auto;font-weight:700}.guide52 .guide-topic52[open] summary::after{content:"−"}

/* Custom ship status names: bound header height, full label in tooltip and dialog. */
#game .wallet .ship-status0995 span{overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-width:100%}

/* v0.9.9.12 — expedition carousel and structured trip details. */
.exp-carousel09912{margin:9px 0 12px;min-width:0}.exp-carousel-head09912{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px}.exp-carousel-head09912 span,.exp-carousel-hint09912{font-size:11px}.exp-carousel-hint09912{text-align:center;opacity:.75;margin-top:3px}.trail-map.exp-track09912{display:flex;align-items:stretch;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8ab8b5 transparent;padding:7px 5px;margin:3px 0;background:none;border:0;border-radius:0;min-width:0;max-width:100%;touch-action:pan-x pan-y}.trail-map.exp-track09912 .trail-node{flex:0 0 43%;width:43%;height:auto;min-height:108px;scroll-snap-align:center;grid-template-rows:42px minmax(34px,1fr) auto;padding:6px 5px;border:1px solid #8eb8b6;border-radius:11px;background:var(--panel-bg,#eaf1decc);box-shadow:none}.trail-map.exp-track09912 .trail-node.chosen{outline:2px solid #429f99;outline-offset:-2px;background:#cfe6d9!important}.trail-map.exp-track09912 .trail-node:disabled{opacity:.55}.trail-map.exp-track09912 .zone-symbol{width:42px;height:42px}.trail-map.exp-track09912 .zone-symbol img{width:42px;height:42px}.exp-zone09912{min-width:0}.exp-details09912{display:grid;gap:9px;margin:10px 0 14px}.exp-facts09912{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.exp-facts09912>div{min-width:0;border:1px solid #9bbfba;border-radius:9px;padding:8px;background:#d7eae74d}.exp-facts09912 small{display:block;font-size:11px;line-height:1.25;margin-bottom:4px}.exp-facts09912 b{display:block;font-size:14px;overflow-wrap:anywhere}.exp-part09912{padding:8px;border:1px solid #9bbfba;border-radius:9px;background:#d7eae733;min-width:0}.exp-part09912>b{display:block;font-size:13px;margin:0 0 6px}.exp-values09912{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}.exp-value09912{display:flex;align-items:center;min-width:0;gap:4px;font-size:12px;line-height:1.25}.exp-value09912 span{min-width:0;overflow-wrap:anywhere}.exp-value09912 strong{margin-left:auto;font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.exp-value09912 .ui-icon,.exp-chances09912 .ui-icon{width:22px;height:22px;flex:0 0 22px}.exp-missing09912{color:#925b49}.exp-chances09912{display:grid;gap:4px;margin-top:7px}.exp-chances09912:empty{display:none}.exp-chances09912>span{display:flex;align-items:center;gap:4px;font-size:12px}.exp-chances09912 b{margin-left:auto}.exp-team-title09912{font-size:15px;margin:8px 0 0}.exp-team-power09912{font-size:13px;overflow-wrap:anywhere}.exp-zone09912 .team-grid{margin-top:6px}@media(min-width:620px){.trail-map.exp-track09912 .trail-node{flex-basis:28%;width:28%}}@media(max-width:355px){.exp-values09912{grid-template-columns:minmax(0,1fr)}}

/* 0.9.9.14 — readable system typography, no remote font request. */
:root{--game-font09914:"Segoe UI",Roboto,"Noto Sans",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-family:var(--game-font09914);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body,button,input,select,textarea{font-family:inherit}button,input,select,textarea{font-variant-numeric:tabular-nums}#wallet,.bar,.trip-clock{font-variant-numeric:tabular-nums}
.exp-track09912{cursor:grab;scroll-snap-type:none;user-select:none;-webkit-user-select:none}.exp-track09912.dragging09914,.exp-track09912.dragging09914 *{cursor:grabbing!important}.exp-track09912 img{-webkit-user-drag:none}.build-carousel0937 img{-webkit-user-drag:none}

#game .fair-sector-value0975{font-family:inherit}
/* Tactical expedition: touch-friendly, same game panels. */
.exp-tactic-picker09915{margin:12px 0;padding:10px;border:1px solid #83b9b655;border-radius:12px;background:#ffffff16}.exp-tactic-picker09915 h3{margin:0 0 6px}.exp-tactic-picker09915 p{font-size:.86rem;margin:7px 0}.exp-tactics09915{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.exp-tactics09915 button{min-width:0;display:flex;align-items:center;flex-direction:column;gap:4px;padding:9px 2px;font-size:.82rem;border:1px solid #83b9b6;border-radius:10px}.exp-tactics09915 button.chosen{background:#c7e7d8;color:#23494d;border:2px solid #448e83;padding:8px 1px}.exp-tactics09915 small{font-size:.7rem}.exp-tactic-icon09915{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;font-size:27px;object-fit:contain}.exp-order09915{font-weight:600;overflow-wrap:anywhere}.exp-result09915 h2{text-align:center}.exp-round09915{border:1px solid #83b9b680;border-radius:10px;padding:8px;margin:8px 0;text-align:center}.exp-versus09915{display:grid;grid-template-columns:1fr 20px 1fr;gap:5px;align-items:center;margin:5px 0}.exp-versus09915 span{display:flex;flex-direction:column;align-items:center;min-width:0;font-size:.84rem}.exp-versus09915 span.exp-tactic-icon09915{display:inline-flex;font-size:27px}.exp-versus09915 strong{opacity:.6}.exp-result09915 p:empty{display:none}
/* Five elders: a small, viewport-contained birth ritual, independent of map scrolling. */
.elder-ceremony09916{width:min(450px,calc(100vw - 22px));max-height:calc(100dvh - 20px);padding:12px;overflow:auto;text-align:center;background:linear-gradient(155deg,#ebf7ec,#d3edea);border-color:#74a9a5}.elder-ceremony09916 h2{font-size:clamp(18px,5vw,23px);margin:2px 0 4px}.elder-ceremony09916 p{font-size:13px;margin:5px 0 9px;min-height:2.5em}.elder-ring09916{position:relative;isolation:isolate;width:100%;max-width:min(400px,calc(100dvh - 170px));aspect-ratio:1;margin:auto;border-radius:50%;background:radial-gradient(circle,#f9efca90 0%,#bde2d780 34%,#80b8b51a 65%,transparent 72%)}.elder-ring09916:before{content:'';position:absolute;inset:18%;border:1px solid #b59b5690;border-radius:50%;box-shadow:0 0 18px #c3b26b44,inset 0 0 14px #c3b26b33;z-index:-1}.elder-actor09916{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:29%;display:flex;align-items:center;flex-direction:column;gap:0;z-index:2;opacity:0}.elder-ceremony09916.play09916 .elder-actor09916{animation:elderArrival09916 .55s ease-out both;animation-delay:var(--delay)}.elder-actor09916 img{width:100%;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 3px 6px #204b5350)}.elder-actor09916 small{max-width:100%;font-size:clamp(9px,2.6vw,11px);line-height:1.1;font-weight:650;overflow-wrap:anywhere;color:#28545b;background:#f6fbedd9;border-radius:7px;padding:2px 4px}.elder-egg09916{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:27%;height:32%;display:grid;place-items:center;z-index:3;opacity:0}.elder-egg09916 img,.elder-egg09916 .ui-icon,.elder-egg09916 svg{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 10px #e1bb5e90)}.elder-flash09916{position:absolute;inset:22%;border-radius:50%;pointer-events:none;background:radial-gradient(circle,#fffbe0 0%,#fff5b9b0 30%,transparent 73%);opacity:0;z-index:4}.elder-ceremony09916.reveal09916 .elder-flash09916{animation:elderFlash09916 .8s ease-out both}.elder-ceremony09916.reveal09916 .elder-egg09916{animation:elderEggReveal09916 .65s .18s ease-out both}.elder-ceremony09916 button{width:100%;margin:3px 0 0}.elder-ceremony09916::backdrop{background:#174953aa}@keyframes elderArrival09916{from{opacity:0;transform:translate(-50%,-50%) scale(.83)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes elderFlash09916{0%{opacity:0;transform:scale(.45)}28%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(1.65)}}@keyframes elderEggReveal09916{from{opacity:0;transform:translate(-50%,-50%) scale(.7)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(prefers-reduced-motion:reduce){.elder-ceremony09916.play09916 .elder-actor09916{animation:none;opacity:1}.elder-ceremony09916.reveal09916 .elder-flash09916{animation:none}.elder-ceremony09916.reveal09916 .elder-egg09916{animation:none;opacity:1}}

/* 0.9.9.17 — short birth ceremony, inline speaking guide and compact pet card. */
.elder-ceremony09916.play09916.dissolve09917 .elder-actor09916{animation:elderDissolve09917 .6s ease-in both;animation-delay:0ms}@keyframes elderDissolve09917{from{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(.92)}}
@media(prefers-reduced-motion:reduce){.elder-ceremony09916.play09916.dissolve09917 .elder-actor09916{animation:none;opacity:0}}
.tutorial-guide09917{position:sticky;top:0;z-index:30;padding:5px 7px;box-sizing:border-box;flex-shrink:0;max-width:100%;background:#d6efeaed;border-radius:0 0 12px 12px}.tutorial-voice09917{display:flex;align-items:center;gap:7px;min-width:0}.tutorial-voice09917>img{width:clamp(42px,14vw,64px);height:64px;object-fit:contain;flex:none}.tutorial-bubble09917{min-width:0;flex:1;position:relative;background:#edfaf2;color:#28545b;border:1px solid #70a6aa;border-radius:13px;padding:7px 9px}.tutorial-bubble09917:before{content:'';position:absolute;left:-7px;top:18px;width:10px;height:10px;background:#edfaf2;border-left:1px solid #70a6aa;border-bottom:1px solid #70a6aa;transform:rotate(45deg)}.tutorial-bubble09917 p{font:400 22px/1.2 var(--game-font09914);margin:0;overflow-wrap:anywhere}.tutorial-bubble09917 button{margin:5px 0 0;min-height:32px;width:100%;font-size:14px}.tutorial-bubble09917 input{box-sizing:border-box;width:100%;margin-top:5px;font-size:16px}.tutorial-guide09917~.map-shell .field-speech0933,.tutorial-guide09917~.map-shell .thought060,.tutorial-guide09917~.map-shell .micro-speech0860{display:none!important}
#game .tutorial-pulse0963,#game #screen .world :is(.ship-shadow0624,.ship-gift0624,.litter0870).tutorial-pulse0963,#game #screen .world>.construction-progress0966.tutorial-pulse0963,.construction-tile0965.tutorial-pulse0963 .building:not([hidden]),.construction-tile0965.tutorial-pulse0963 .building[hidden]+.construction-progress0966,.tutorial-glow-portal0971{animation-iteration-count:2!important;animation-fill-mode:none!important}.tutorial-still09917,.construction-tile0965.tutorial-still09917 .building,.construction-tile0965.tutorial-still09917 .construction-progress0966,.tutorial-glow-portal0971.tutorial-still09917{animation:none!important}.tutorial-place09917{outline:1px solid #e6c56366!important}.tutorial-glow-portal0971{box-shadow:none;animation-iteration-count:2!important}.tutorial-glow-portal0971.tutorial-still09917{box-shadow:none}
@media(prefers-reduced-motion:reduce){.tutorial-pulse0963,.tutorial-glow-portal0971,.tutorial-pulse0963 *{animation:none!important}}
#modal:has(.tutorial-final09917)>.dialog-close0958{display:none!important}
#modal #modalbody .card0990 .pet-summary{position:relative;padding-right:44px;min-height:44px}#modal#modal #modalbody .card0990 .pet-close0641[data-action=close]{position:absolute;inset:5px 5px auto auto;transform:none;width:34px;height:34px;min-width:34px;min-height:34px;max-width:34px;z-index:8}#modal #modalbody .card0990 .passport-banner54{display:none!important}

/* One visible pulse in each of the two cycles, including portal highlights. */
@keyframes tutorialPortal0971{0%,100%{box-shadow:0 0 0 0 #ffd35d00}50%{box-shadow:0 0 18px 6px #fff8cce0,inset 0 0 9px #fff8}}
#game .tutorial-pulse0963.tutorial-still09917,#game #screen .world :is(.ship-shadow0624,.ship-gift0624,.litter0870).tutorial-pulse0963.tutorial-still09917,#game #screen .world>.construction-progress0966.tutorial-pulse0963.tutorial-still09917,.construction-tile0965.tutorial-still09917 .building:not([hidden]),.construction-tile0965.tutorial-still09917 .building[hidden]+.construction-progress0966{animation:none!important}

#game .tutorial-place09917.tutorial-pulse0963{animation:tutorialPlace09917 1.2s ease-in-out 2!important;box-shadow:none!important}@keyframes tutorialPlace09917{0%,100%{background:transparent}50%{background:#ffe9a766}}#game .tutorial-place09917.tutorial-still09917{animation:none!important}
@media(prefers-reduced-motion:reduce){#game .tutorial-place09917.tutorial-pulse0963{animation:none!important}}

/* 0.9.9.18 — zero-flow tutorial speech; no hit area over ships, cargo or map cells. */
#screen>.tutorial-guide09917{position:fixed;inset:0;z-index:70;display:block;max-width:none;width:auto;height:auto;margin:0;padding:0;background:none;border:0;border-radius:0;pointer-events:none;overflow:visible;contain:layout style}#screen>.tutorial-guide09917[hidden]{display:none!important}
.tutorial-guide09917 .tutorial-bubble09917{position:fixed;box-sizing:border-box;max-width:calc(100vw - 24px);padding:7px 9px;pointer-events:none;box-shadow:0 2px 7px #234f5940;background:#effaf3ed;transform:none}.tutorial-guide09917 .tutorial-bubble09917 p{font-size:22px;line-height:1.14;margin:0}.tutorial-guide09917 .tutorial-bubble09917:before{left:var(--tail-x09918,50%);top:auto;bottom:-6px;transform:translateX(-50%) rotate(-45deg);background:#effaf3;border-color:#70a6aa}.tutorial-guide09917 .tutorial-bubble09917.tail-up09918:before{top:-6px;bottom:auto;transform:translateX(-50%) rotate(135deg)}
.tutorial-guide09917 .tutorial-bubble09917 button{pointer-events:auto;width:auto;max-width:100%;min-height:29px;font-size:13px;padding:4px 11px;display:block;margin:5px 0 0 auto;touch-action:manipulation}.tutorial-guide09917 .tutorial-bubble09917 input{pointer-events:auto;font-size:16px;min-height:30px;touch-action:manipulation}.tutorial-speaker09918{position:fixed;width:48px;height:48px;object-fit:contain;pointer-events:none}.tutorial-speaker09918[hidden]{display:none}
#screen:has(>.tutorial-guide09917:not([hidden])) .world :is(.field-speech0933,.thought060,.micro-speech0860){display:none!important}
#game .world-grid .tutorial-place09917{outline:none!important;background:#fff6c033;box-shadow:none!important;animation:none!important}#game .world-grid.tutorial-placement-pulse09918 .tutorial-place09917{animation:tutorialPlace09918 .8s ease-in-out 2!important}@keyframes tutorialPlace09918{0%,100%{background:#fff6c033}50%{background:#ffe9a780}}
/* Keep the field clipped and scrollable: the glow no longer opens every grid cell. */
#game #screen .build-scroll0913 .world,#game #screen .build-scroll0913 .world-grid{overflow:hidden!important}#game #screen .world>.ship-shadow0624:disabled{pointer-events:none}
.elder-ceremony09916.play09916 .elder-actor09916{animation-delay:0ms}.elder-ceremony09916.play09916.dissolve09917 .elder-actor09916{animation-duration:.8s}
@media(prefers-reduced-motion:reduce){#game .world-grid.tutorial-placement-pulse09918 .tutorial-place09917{animation:none!important}}

/* v0.9.9.19 compact tutorial controls and dome */
.tutorial-guide09917 .tutorial-bubble09917{padding:10px 12px;border-radius:14px;background:#effaf5f5;box-shadow:0 2px 8px #234f5938}.tutorial-guide09917 .tutorial-bubble09917 p{font-size:18px;line-height:1.3;margin:0;color:#244d54;overflow-wrap:anywhere}.tutorial-guide09917 .tutorial-bubble09917 input{box-sizing:border-box;width:100%;min-width:0;margin:8px 0 3px;padding:7px 9px;border:1px solid #82b6ae;border-radius:8px;background:#fff;color:#244d54}.tutorial-guide09917 .tutorial-bubble09917 button{font-size:13px;line-height:1.2;min-height:30px;padding:6px 12px;border-radius:9px;margin:7px 0 0 auto}.tutorial-guide09917 .tutorial-bubble09917 button:disabled{opacity:.45}.dome-card09919{text-align:center}.dome-art09919{width:145px;height:145px;object-fit:contain}.dome-costs09919{margin:10px 0;padding:8px 12px;border-radius:12px;background:#ffffff65}.dome-cost09919{display:flex;align-items:center;justify-content:space-between;padding:5px 0}.dome-cost09919 span{display:flex;align-items:center;gap:5px}.dome-cost09919.missing{opacity:.65;color:#b03c35}.dome-card09919 button+button{margin-top:8px}


/* v0.9.9.20 — optional local font stacks, no external requests. */
:root[data-game-font09920="soft"]{--game-font09914:Lato,Calibri,Carlito,"Noto Sans",Arial,sans-serif}
:root[data-game-font09920="rounded"]{--game-font09914:Comfortaa,ui-rounded,"Trebuchet MS","DejaVu Sans",system-ui,sans-serif}

/* v0.9.9.25: stable tutorial speech, no layout space or pointer interception. */
.tutorial-bubble09917.tutorial-no-tail09925:before{display:none}.tutorial-controls09925:empty{display:none}.tutorial-guide09917 .tutorial-bubble09917{transition:none}.tutorial-speaker09918{transition:none}
