@font-face{font-family:Lilita;src:url('art/fonts/lilita-one.woff2') format('woff2');font-display:swap}
:root{--bg:#171329;--panel:#302844;--ink:#fff9ed;--mut:#c9bfdc;--gold:#ffcf62;--line:#574569;--display:Lilita,system-ui,sans-serif;color-scheme:dark}
html,body{background:radial-gradient(ellipse at 50% 0,#4b3369 0,#241d39 48%,#171329 100%) fixed;color:var(--ink)}
body{font-size:14px}
button,.tab,.cell,.egg{touch-action:manipulation}
button:focus-visible,.tab:focus-visible,.egg:focus-visible,.cell:focus-visible,summary:focus-visible{outline:3px solid #fff0ad;outline-offset:4px}
::selection{background:#ffcf62;color:#24172d}
*{scrollbar-width:thin;scrollbar-color:#766089 #211a30}
#app{max-width:1000px;padding:22px 24px 32px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr);gap:14px 22px;align-items:start}
.gamehead{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:space-between;min-height:60px}
h1,h2{font-family:var(--display);font-weight:400}
h1{font-size:42px;line-height:1;margin:0;color:#fff2cc;text-shadow:0 3px 4px #140e24}
h1 span{color:var(--gold)}
.help-button{width:38px;height:38px;font-family:var(--display);font-size:23px;background:#483857;border:2px solid #8c709e;border-radius:12px;color:#fbe6b4}
.help-button:hover{background:#635071}
.panel{background:linear-gradient(145deg,#392e4c,#2d253f);border:1px solid var(--line);border-radius:16px;padding:14px}
.top{grid-column:2;grid-row:1;min-height:60px;padding:8px 14px;border-color:#80613e;background:linear-gradient(120deg,#493743,#30263c);gap:12px}
.top>div:first-child{display:grid;grid-template-columns:30px auto;column-gap:10px;align-items:center}
.top>div:first-child::before{content:'';grid-row:1/3;width:25px;height:25px;border-radius:50%;background:linear-gradient(135deg,#ffeb9a,#e6a62f);border:3px solid #bc7f24;box-shadow:inset 0 0 0 2px #ffe397,0 3px 5px #1b122c}
.top .title{font-size:10px;color:#ecd4ab;margin:0;letter-spacing:.09em}
.coins{font-family:var(--display);font-size:30px;font-weight:400;line-height:1.05;font-variant-numeric:tabular-nums}
.rate{font-size:12px;color:#f0dfb9;font-variant-numeric:tabular-nums;line-height:1.5}
.tabs{grid-column:1/-1;gap:7px;padding:3px 1px 8px;scrollbar-width:thin}
.tab{min-width:86px;min-height:51px;border-radius:12px;padding:6px 8px;background:#292239;border-color:#493955;color:#c4b7d0;font-size:11px;cursor:pointer;transition:background .15s,border-color .15s}
.tab b{font-family:var(--display);font-size:17px;font-weight:400;margin-bottom:2px}
.tab.on{background:linear-gradient(#77512e,#5d3925);border-color:#f3be54;color:#fff3cf;box-shadow:0 3px 6px #140c24}
.tab.lock{opacity:.7}
.tab:hover{border-color:#b695ce}
.playfield{grid-column:1;grid-row:3/8;min-width:0;background:#211b32;border-radius:18px;border:2px solid #6c547d;padding:12px;box-shadow:0 12px 24px #0f0a234d}
.board-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 11px}
.board-heading h2{font-size:23px;margin:0;color:#ffe5ac;white-space:nowrap}
.board-heading span{font-size:11px;color:#c9bfdc;max-width:130px;text-align:right;line-height:1.4}
#board{padding:0;gap:7px;background:transparent;border-radius:0}
.cell{aspect-ratio:1.14;border-radius:11px;border:1px solid #665078;background:linear-gradient(150deg,#4c3c60,#382c4c);box-shadow:inset 0 3px 5px #160f292e;transition:background .12s,transform .12s}
.cell:not(.locked):not(.has)::after{content:'';position:absolute;left:36%;right:36%;bottom:13%;height:3px;border-radius:50%;background:#8b73a13b;pointer-events:none}
.cell.has{background:radial-gradient(ellipse at 50% 80%,#79604d,#433347 68%);border-width:2px}
.cell img{max-width:95%;max-height:108%;margin-bottom:4px;position:relative;z-index:1}
.cell.locked{background:#272038;border:1px solid #44364f;color:#9f91b4;font-size:12px;gap:4px}
.cell.locked svg{width:18px;height:18px;opacity:.65}
.cell.locked.nextlock{background:linear-gradient(145deg,#554036,#3c2d31);border:1px solid #ba8b47;color:#ffe4a3;font-weight:800}
.cell.locked.nextlock svg{opacity:1;color:#ffcf62}
.badge{z-index:2;background:#241a32;border:1px solid #ae87c5;color:#fff1cc;font-size:10px;bottom:2px;right:2px}
.evolution{grid-column:2;grid-row:3;padding:14px 12px}
.evolution>.title{font-family:var(--display);font-size:17px;line-height:1.3;letter-spacing:0;text-transform:none;color:#ffe7b4;margin:0 0 13px}
.guide{gap:2px}
.guide+.guide{margin-top:13px;padding-top:13px;border-color:#554264}
.g{width:48px;flex:1;min-width:0;font-size:10px;line-height:1.45;color:#d7cce1}
.g .pic{height:58px;align-items:center;justify-content:center;width:100%;margin-bottom:5px}
.g img{max-height:58px;max-width:100%;object-fit:contain}
.g img.unk{filter:brightness(.25) saturate(.25);opacity:.85}
.g b{font-size:11px;color:#f8edff}
.arrow{font-size:12px;color:#ffcf62;flex:0 0 20px}
.arrow small{color:#c5b6d4;font-size:8px}
.guide.off{opacity:.65}
.lockmsg{font-size:11px;line-height:1.5;margin:9px 0 0;padding:9px 5px 0;border-top:1px solid #554264;color:#d4c8df}
.lockmsg svg{width:13px;height:13px;vertical-align:-2px;margin-right:4px;color:#ffcf62}
.hatchery{grid-column:2;grid-row:4;background:linear-gradient(145deg,#534035,#392e3d);border-color:#8a6743;padding:14px 12px}
.hatchery h2{margin:0 0 12px;font-size:21px;color:#ffdfa5}
.tray{gap:10px;min-height:64px}
.eggs{gap:5px;justify-content:space-between}
.egg{width:34px;height:45px;flex:0 1 34px;border-color:#503623;box-shadow:inset -3px -4px 5px #9b622f4d,0 5px 5px #1c112842}
.egg::after{left:7px;top:12px;box-shadow:12px 8px 0 -1px #c79a52,3px 17px 0 -2px #c79a52}
.egg.empty{opacity:.3;box-shadow:none;border:1px dashed #c19d6d;background:transparent}
.egg.empty::after{display:none}
.nextegg{width:63px;flex:0 0 63px;color:#ecdbbd;font-size:10px;font-variant-numeric:tabular-nums}
.nextegg span{display:block;margin-top:5px;font-weight:800;font-size:12px;color:#ffe1a4}
.bar{height:7px;background:#2a2030;margin-top:5px}
.bar i{background:linear-gradient(90deg,#e8a83e,#ffe68c);border-radius:4px}
.shoprow{grid-column:2;grid-row:5;gap:9px}
.upgraderow{grid-column:2;grid-row:6}
.btn{border-radius:13px;padding:13px 10px;font-family:var(--display);font-weight:400;font-size:18px;line-height:1.2;border:1px solid #8c6ca6;background:linear-gradient(#69517d,#4b385e);box-shadow:0 4px 8px #140d243d;transition:filter .15s,transform .15s}
.btn small{font-family:system-ui,sans-serif;font-size:11px;font-weight:700;margin-top:5px;color:#ffe3a7}
.btn:not(:disabled):hover{filter:brightness(1.12);transform:translateY(-1px)}
.btn:not(:disabled):active{transform:translateY(1px)}
.btn.main{background:linear-gradient(#ffe391,#edaf42);border-color:#ffdc88;color:#402715}
.btn.main small{color:#62401d}
.btn:disabled{opacity:.66;filter:saturate(.5);box-shadow:none}
.btn.sharkbtn{border-color:#8acfff;background:linear-gradient(#5eaeec,#356db7)}
#trash{flex:0 0 72px;border-radius:13px;background:#442e42;border:1px dashed #bb7b96;color:#eac3d1;padding:8px 3px;font-size:10px;line-height:1.35;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
#trash svg{width:21px;height:21px;color:#e8b4c8}
.dev{grid-column:2;grid-row:7;font-size:11px;padding:11px 12px;background:transparent;border-color:#483854;box-shadow:none}
.dev .btn{font-family:system-ui,sans-serif;font-size:11px}
.dev summary{min-height:22px;line-height:22px}
.card{border:2px solid #b98a4e;background:linear-gradient(145deg,#433153,#2a223c);box-shadow:0 18px 60px #10091d99;padding:22px;border-radius:16px;max-width:420px}
.card h2{font-size:31px;color:#ffe5ad;margin:0 0 12px}
.card p,.card ol{color:#e0d4e9;line-height:1.65;font-size:13px}
.card li+li{margin-top:7px}
.card .btn{min-height:47px}
.card .tag{font-size:11px;padding:4px 12px}
.new{color:#ffcf62;font-size:12px}
#toast{background:#fff0cf;color:#39243f;box-shadow:0 6px 24px #130a284d;font-size:13px;font-weight:650;border-radius:12px}
@media(max-width:720px){
 #app{max-width:480px;padding:12px 12px 24px;display:flex;align-items:stretch;gap:12px}
 .gamehead{min-height:45px}h1{font-size:34px}.help-button{width:34px;height:34px}
 .top{min-height:58px}.coins{font-size:29px}
 .tabs{width:100%;flex-shrink:0;padding-bottom:5px}.tab{min-width:78px;min-height:46px}
 .evolution{padding:12px}.evolution>.title{font-size:17px;margin-bottom:8px}
 .g .pic{height:46px;margin-bottom:2px}.g img{max-height:46px}
 .guide+.guide{margin-top:8px;padding-top:8px}.lockmsg{font-size:10px;margin-top:7px;padding-top:7px}
 .playfield{padding:9px}.board-heading{margin-bottom:9px}.board-heading h2{font-size:22px}
 #board{gap:5px}.cell{aspect-ratio:1.12;border-radius:9px}
 .hatchery h2{font-size:20px;margin-bottom:10px}.hatchery{padding:12px}
 .eggs{justify-content:flex-start;gap:9px}.egg{flex-basis:38px;width:38px;height:48px}
 .btn{min-height:56px;font-size:18px}.row{width:100%}.dev .btn{min-height:38px}
}
@media(max-width:360px){#app{padding-inline:9px}.egg{width:32px;flex-basis:32px}.eggs{gap:5px}.g{font-size:9px}.arrow{flex-basis:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Street set: shared illustrated buildings, paving and warm evening sky. */
.street .road{height:154px;background:radial-gradient(circle at 82% 18%,#ffe7ac 0 7px,transparent 8px),linear-gradient(#344563 0%,#8e7582 60%,#a68b72 60%,#796351 100%);border:2px solid #ad8b68;box-shadow:inset 0 -16px 24px #33263844}
.street .road::before{content:"";position:absolute;inset:64% 0 0;background:repeating-linear-gradient(0deg,transparent 0 15px,#3b2d352e 16px 18px),repeating-linear-gradient(90deg,transparent 0 36px,#3b2d352e 37px 39px);transform:skewX(-12deg);pointer-events:none}
.street .bld{bottom:34%;width:18%;font-size:30px}
.street .bld img{width:100%;max-width:92px;height:82px;object-fit:contain;filter:drop-shadow(0 3px 1px #33263855)}
.street .bld.off{opacity:.55;filter:grayscale(.8)}
.street .bld small{font-size:10px;padding:3px 5px;background:#292039;border:1px solid #ad8b68}
.hatchery .tray{padding:8px;border-radius:14px;border-bottom:5px solid #a87c48;background:repeating-linear-gradient(8deg,#765036 0 3px,#66442f 4px 8px);box-shadow:inset 0 3px 6px #291b31aa}
.egg.log{background:repeating-linear-gradient(100deg,#c28c4a 0 4px,#ecc58a 5px 10px,#b78042 11px 12px);border:2px solid #53351e}
.egg.shark{background:linear-gradient(115deg,#9de8ff,#3a96d3 65%,#e8f6ef 66%);border:2px solid #274869}
.egg.gold{border:2px solid #9b6825;box-shadow:inset -4px -5px 6px #a1672a66,0 0 9px #ffd66b66}
.egg:focus-visible{outline:3px solid #fff0b3;outline-offset:3px}

/* Orders: missing characters lead, customer names and rewards support them. */
#orderStrip .otitle{font-size:19px;margin:0 2px 8px}
#orderStrip .otitle small{font-size:11px}
#orderStrip .orow{gap:8px}
#orderStrip .ocard{min-width:0;gap:8px;padding:9px;background:#382b49;border:1px solid #7b628d;border-radius:13px}
#orderStrip .ohead{min-height:28px;font-size:11px;color:#ede0f6;gap:5px}
#orderStrip .ohead>span{font-size:19px}
#orderStrip .oskip{width:28px;height:28px;flex:0 0 28px;font-size:18px;line-height:1;background:transparent;color:#c8b8d6;opacity:.75}
#orderStrip .oskip:hover{background:#534064;opacity:1}
#orderStrip .oslots{flex-wrap:nowrap;gap:6px;flex:1}
#orderStrip .oslot{min-width:0;flex:1;height:auto;min-height:104px;padding:5px 2px 6px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;border:1px dashed #b79acb;background:#251d33;position:relative}
#orderStrip .oportrait{position:relative;height:60px;width:100%;display:flex;align-items:flex-end;justify-content:center}
#orderStrip .oportrait img{max-width:100%;object-fit:contain;opacity:.85;filter:saturate(.8);height:58px}
#orderStrip .ostage{font-size:11px;color:#fff1d3;line-height:1.2}
#orderStrip .oquantity{font-size:10px;color:#eddbf5;line-height:1.3}
#orderStrip .ocheck{position:absolute;top:0;right:1px;background:#b9f0a3;color:#1b3e21;border-radius:50%;width:18px;height:18px;text-align:center;font-size:13px;line-height:18px;font-weight:900}
#orderStrip .oslot.full{border-style:solid;border-color:#80bd77;background:#273e30}
#orderStrip .oslot.full img{opacity:1;filter:none}
#orderStrip .oslot.full .oquantity{color:#c0efaf}
#orderStrip .odrop{display:none}
#orderStrip .oslot.hint{border:2px solid #ffd36c;background:#4a3b29;box-shadow:none}
#orderStrip .oslot.hint .odrop{display:block;position:absolute;inset:auto 0 0;background:#ffd36c;color:#382915;text-align:center;font-size:10px;font-weight:800;padding:3px}
#orderStrip .oslot.over{transform:scale(1.04);outline:2px solid #fff2c8;outline-offset:1px}
#orderStrip .oreward{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px;color:#ffe0a0;font-size:14px;padding-top:7px;border-top:1px solid #6a527d}
#orderStrip .ocoin-reward,#orderStrip .oegg-reward{display:inline-flex;align-items:center;gap:4px}
#orderStrip .ocoin-reward small{font-size:9px;font-weight:500;color:#e2cda9}
#orderStrip .ocoin-icon{width:13px;height:13px;border-radius:50%;background:#ffd66c;border:2px solid #bc802b;box-shadow:inset 0 0 0 1px #ffe9ac}
#orderStrip .oegg-reward{font-size:10px;color:#ecdbf5}
#orderStrip .oegg-icon{display:inline-block;flex:0 0 12px;width:12px;height:16px;border-radius:50% 50% 44% 44% / 60% 60% 40% 40%;background:#e5bc7b;border:1px solid #9e7441}
#orderStrip .oegg-icon.shark{background:#83d6ed;border-color:#3987ac}
#orderStrip .oegg-icon.gold{background:#ffcd50;border-color:#ba841e}
#orderStrip .oegg-icon.mystery{background:#ba8ae7;border-color:#8254b1}
#orderStrip .owait{font-size:10px;line-height:1.4;color:#d9c8e4;min-height:32px;display:flex;align-items:center;justify-content:center;text-align:center}
#orderStrip .ocard.ready{border:2px solid #ffd36c;padding:8px;background:#453545}
#orderStrip .odeliver{width:100%;min-height:34px;border-radius:8px;background:#ffda7b;color:#412a1b;font-weight:900;font-size:12px;border:1px solid #e5af46;cursor:pointer}
#orderStrip button:focus-visible{outline:3px solid #fff1be;outline-offset:2px}
#orderStrip .ocard.empty{min-height:210px;color:#ddcbe8;font-size:13px;gap:8px}
@media(max-width:400px){#orderStrip .orow{gap:5px}#orderStrip .ocard{padding:6px;gap:6px}#orderStrip .ocard.ready{padding:5px}#orderStrip .ohead{font-size:10px;gap:2px}#orderStrip .ohead>span{font-size:16px}#orderStrip .oslots{gap:3px}#orderStrip .oportrait{height:51px}#orderStrip .oportrait img{height:49px}#orderStrip .ostage,#orderStrip .oquantity{font-size:9px}#orderStrip .oreward{font-size:12px}#orderStrip .ocoin-reward small{display:none}#orderStrip .otitle small{display:block;margin:3px 0 0}}

/* Landscape layout: a seven-column board with a compact activity rail. */
@media(min-width:721px){
 #app{max-width:1200px;grid-template-columns:minmax(0,1fr) 300px;gap:10px 18px;padding-top:18px}
 #app>.gamehead{grid-column:1;grid-row:1}
 #app>.panel.top{grid-column:1;grid-row:2}
 #app>.playfield{grid-column:1/-1!important;grid-row:3!important;display:grid;grid-template-columns:minmax(0,1fr) 280px;column-gap:20px;row-gap:10px;padding:14px}
 #board{grid-template-columns:repeat(7,minmax(0,1fr));grid-column:1;grid-row:1/8;align-self:start}
 #board .cell{aspect-ratio:1.15}
 .playfield>.hatchery{grid-column:2;grid-row:1;margin:0!important}
 .playfield>.shoprow{grid-column:2;grid-row:2;margin:0!important}
 .playfield>.evolution{grid-column:2;grid-row:3;margin:0!important}
 .playfield>#orderStrip{grid-column:2;grid-row:4;margin:0!important}
 .playfield>#zoneGoal{grid-column:2;grid-row:5;margin:0!important}
 .playfield>#threat{grid-column:1;grid-row:8}
 #app>.upgraderow{grid-column:2;grid-row:4}
 #app>.dev{grid-column:1;grid-row:4}
 #orderStrip .otitle{font-size:16px}
 #orderStrip .otitle small{display:none}
 #orderStrip .ohead{font-size:10px}
 .playfield .evolution .gtoggle small{display:block;margin-top:4px;line-height:1.4}
}

/* Gameplay: activity and collection navigation belongs between rounds. */
.xbar-panel{display:none!important}
@media(min-width:721px){
 #app>.gamehead{grid-column:1/-1}
 #app>.panel.top{grid-column:1/-1}
}

@media(min-width:721px){
 #app>.panel.top{grid-column:1/-1!important}
}

/* Preserve a contiguous open area with locked expansion at the right and bottom. */
@media(min-width:721px){
#board>.cell:nth-child(1){grid-column:1;grid-row:1}
#board>.cell:nth-child(2){grid-column:2;grid-row:1}
#board>.cell:nth-child(3){grid-column:3;grid-row:1}
#board>.cell:nth-child(4){grid-column:4;grid-row:1}
#board>.cell:nth-child(5){grid-column:6;grid-row:1}
#board>.cell:nth-child(6){grid-column:5;grid-row:1}
#board>.cell:nth-child(7){grid-column:1;grid-row:2}
#board>.cell:nth-child(8){grid-column:2;grid-row:2}
#board>.cell:nth-child(9){grid-column:3;grid-row:2}
#board>.cell:nth-child(10){grid-column:7;grid-row:1}
#board>.cell:nth-child(11){grid-column:4;grid-row:2}
#board>.cell:nth-child(12){grid-column:5;grid-row:2}
#board>.cell:nth-child(13){grid-column:1;grid-row:3}
#board>.cell:nth-child(14){grid-column:2;grid-row:3}
#board>.cell:nth-child(15){grid-column:6;grid-row:2}
#board>.cell:nth-child(16){grid-column:3;grid-row:3}
#board>.cell:nth-child(17){grid-column:4;grid-row:3}
#board>.cell:nth-child(18){grid-column:5;grid-row:3}
#board>.cell:nth-child(19){grid-column:1;grid-row:4}
#board>.cell:nth-child(20){grid-column:7;grid-row:2}
#board>.cell:nth-child(21){grid-column:2;grid-row:4}
#board>.cell:nth-child(22){grid-column:3;grid-row:4}
#board>.cell:nth-child(23){grid-column:4;grid-row:4}
#board>.cell:nth-child(24){grid-column:5;grid-row:4}
#board>.cell:nth-child(25){grid-column:6;grid-row:3}
#board>.cell:nth-child(26){grid-column:7;grid-row:3}
#board>.cell:nth-child(27){grid-column:6;grid-row:4}
#board>.cell:nth-child(28){grid-column:7;grid-row:4}
#board>.cell:nth-child(29){grid-column:1;grid-row:5}
#board>.cell:nth-child(30){grid-column:2;grid-row:5}
#board>.cell:nth-child(31){grid-column:3;grid-row:5}
#board>.cell:nth-child(32){grid-column:4;grid-row:5}
#board>.cell:nth-child(33){grid-column:5;grid-row:5}
#board>.cell:nth-child(34){grid-column:6;grid-row:5}
#board>.cell:nth-child(35){grid-column:7;grid-row:5}
}


/* Header controls: one gold icon family and consistent touch targets. */
.gamehead #soundBtn,.gamehead #homeTop,.gamehead #helpTop{
 display:inline-flex;align-items:center;justify-content:center;
 width:44px!important;height:44px!important;min-width:44px;min-height:44px;
 padding:10px;border:1px solid #b392bb;border-radius:13px;
 background:linear-gradient(155deg,#645071,#3a2b4a);color:#ffe3a0;
 box-shadow:inset 0 1px 0 #ffffff25,0 3px 0 #21162e,0 5px 10px #120c2433;
 transition:background .15s,transform .15s,border-color .15s;
}
.gamehead #soundBtn svg,.gamehead #homeTop svg,.gamehead #helpTop svg{width:23px;height:23px;flex:none;stroke-linecap:round;stroke-linejoin:round}
.gamehead #soundBtn:hover,.gamehead #homeTop:hover,.gamehead #helpTop:hover{background:linear-gradient(155deg,#80618a,#4a355b);border-color:#ffdc92;transform:translateY(-1px)}
.gamehead #soundBtn:active,.gamehead #homeTop:active,.gamehead #helpTop:active{transform:translateY(2px);box-shadow:inset 0 1px 3px #140c2444}
.gamehead #soundBtn:focus-visible,.gamehead #homeTop:focus-visible,.gamehead #helpTop:focus-visible{outline:3px solid #fff1ba;outline-offset:4px}
.gamehead #soundBtn.muted{color:#c7b9d2;background:#33263f}
@media(prefers-reduced-motion:reduce){.gamehead #soundBtn,.gamehead #homeTop,.gamehead #helpTop{transition:none}}

