/* Slime Pets — sticker cartoon style: dark outline, flat fills, chunky pressable buttons. */
/* Nunito (SIL Open Font License 1.1, see fonts/OFL-Nunito.txt), variable weight, split by script: browsers
   only download the files the text on screen needs. CJK text falls back to system fonts per language below. */
@font-face{font-family:"Nunito Game";font-style:normal;font-weight:200 1000;font-display:swap;
  src:url(fonts/nunito-latin.woff2) format("woff2-variations"),url(fonts/nunito-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito Game";font-style:normal;font-weight:200 1000;font-display:swap;
  src:url(fonts/nunito-latin-ext.woff2) format("woff2-variations"),url(fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito Game";font-style:normal;font-weight:200 1000;font-display:swap;
  src:url(fonts/nunito-cyrillic.woff2) format("woff2-variations"),url(fonts/nunito-cyrillic.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito Game";font-style:normal;font-weight:200 1000;font-display:swap;
  src:url(fonts/nunito-vietnamese.woff2) format("woff2-variations"),url(fonts/nunito-vietnamese.woff2) format("woff2");
  unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
:root{
  --ink:#2a1838; --sky1:#8fd3ff; --sky2:#d9f3ff; --grass:#8ad65c; --grass2:#79c84e;
  --wood:#c98a4b; --wood2:#a86b33; --gold:#ffcf33; --green:#7bdc4f; --paper:#fffaf0;
  --font:"Nunito Game","Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;
  --tile:80px; --mother:160px;
}
/* Han characters look different per language: give each CJK language its own system fonts (ones with a real bold;
   Hiragino Maru Gothic only has one weight and looked thin next to the 900-weight Latin text) */
html:lang(zh){--font:"Nunito Game","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif}
html:lang(ja){--font:"Nunito Game","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Meiryo","Noto Sans JP",system-ui,sans-serif}
html:lang(ko){--font:"Nunito Game","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:var(--font);color:var(--ink);overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:manipulation;
  background:linear-gradient(180deg,var(--sky1) 0%,var(--sky2) 44%,#bfe9a6 44%,#a3db80 100%)}
button,select{font-family:inherit;color:inherit;background:none;border:none;cursor:pointer}
body.booting #app{visibility:hidden}
h2{text-wrap:balance}
.ico{display:inline-flex;width:28px;height:28px}
.ico svg{width:100%;height:100%}
.stroke{color:#fff;-webkit-text-stroke:6px var(--ink);paint-order:stroke fill}
.hidden{display:none!important}

/* decorative sky */
.sky{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.cloud{position:absolute;height:34px;background:#fff;border:4px solid var(--ink);border-radius:40px;opacity:.95}
.cloud::before{content:"";position:absolute;width:44%;height:120%;left:18%;top:-48%;background:#fff;border:4px solid var(--ink);
  border-bottom:none;border-radius:50px 50px 0 0}
.c1{width:110px;top:15%;animation:drift 60s linear infinite}
.c2{width:130px;top:21%;animation:drift 85s linear infinite -30s}
.c3{width:90px;top:12%;animation:drift 70s linear infinite -55s}
@keyframes drift{from{transform:translateX(-180px)}to{transform:translateX(110vw)}}

#app{position:relative;max-width:460px;height:100%;margin:0 auto;display:flex;flex-direction:column;
  padding:max(10px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}

/* HUD */
.hud{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.pill{display:flex;align-items:center;gap:6px;background:#fff;border:4px solid var(--ink);border-radius:999px;
  padding:3px 14px 3px 5px;box-shadow:0 4px 0 var(--ink);min-width:0;flex:1}
.pill .ico{width:32px;height:32px;flex:0 0 auto}
.num{font-size:26px;font-weight:900;letter-spacing:.5px;white-space:nowrap}
.rate{font-size:13px;font-weight:900;color:#2f8a2a;white-space:nowrap;margin-left:auto}
.rate.hot{color:#e8590c}
.round{position:relative;width:48px;height:48px;border-radius:50%;background:#fff;border:4px solid var(--ink);
  box-shadow:0 4px 0 var(--ink);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.round:active,.btn:active,.buy:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.badge{position:absolute;top:-8px;right:-10px;background:var(--gold);border:3px solid var(--ink);border-radius:10px;
  font-size:11px;font-weight:900;padding:0 5px;line-height:16px}

/* mother slime */
.mother-wrap{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;margin-top:6px;position:relative}
.mother{width:var(--mother);height:var(--mother);transition:transform .08s ease;touch-action:manipulation}
.mother svg{width:100%;height:100%;overflow:visible}
.mother.squish{transform:scale(1.08,.9) translateY(4px)}
.mother.idle svg{animation:breathe 2.4s ease-in-out infinite;transform-origin:50% 90%}
.meter{width:min(150px,60%);height:16px;background:#fff;border:4px solid var(--ink);border-radius:10px;margin-top:-4px;overflow:hidden}
.meter-fill{height:100%;width:0;background:var(--green);border-right:3px solid var(--ink)}
.meter.full .meter-fill{background:var(--gold)}
.mother-tip{margin-top:6px;font-size:13px;font-weight:900;text-align:center;background:#fff;border:3px solid var(--ink);
  border-radius:999px;padding:1px 12px;position:relative;z-index:1}
.mother-tip:empty{visibility:hidden}
.mother-tip.warn{color:#c2410c}
.pulse{animation:pulse 1s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.06)}}
@keyframes breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.03,.97)}}

/* quest pill: one short goal at a time; fills with progress, turns gold and pulses when it can be claimed */
.quest{flex:0 0 auto;align-self:center;display:flex;align-items:center;gap:6px;max-width:100%;min-width:0;
  background:linear-gradient(90deg,#d4f3bd var(--p,0%),#fff var(--p,0%));border:4px solid var(--ink);border-radius:999px;
  padding:3px 4px 3px 6px;box-shadow:0 3px 0 var(--ink);font-size:13px;font-weight:900;margin:6px 0 8px;white-space:nowrap;cursor:default}
.quest.tut{padding:5px 14px;background:#fff}
.quest .mini{width:30px;height:30px;flex:0 0 auto}
.quest .mini svg{width:100%;height:100%;overflow:visible}
.quest .qt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.quest .qp{font-size:12px;color:#6b5a7a}
.quest .qr{display:flex;align-items:center;gap:2px;flex:0 0 auto;background:#fff6d6;border:3px solid var(--ink);border-radius:999px;
  padding:0 8px 0 2px;font-size:12px;line-height:20px}
.quest .qr .ico{width:18px;height:18px}
.quest .qr b{margin:0 3px 0 6px}
.quest.done{background:var(--gold);cursor:pointer;animation:pulse 1s ease-in-out infinite;padding-left:12px}
.quest.done .qr{background:#fff}

/* pen */
.pen{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:flex-start;justify-content:center;padding-top:24px}
.field{display:grid;grid-template-columns:repeat(var(--cols),var(--tile));grid-auto-rows:var(--tile);
  background:var(--grass);border:4px solid var(--ink);border-radius:18px;overflow:hidden;
  outline:12px solid var(--wood);box-shadow:0 0 0 16px var(--ink),0 22px 0 4px var(--ink)}
/* combo badge sits on the top fence while merges keep chaining */
.field-wrap{position:relative}
.combo{position:absolute;left:50%;top:-27px;z-index:6;display:flex;align-items:center;gap:5px;transform:translateX(-50%);
  background:#fff;border:4px solid var(--ink);border-radius:999px;padding:0 11px 3px;box-shadow:0 3px 0 var(--ink);
  font-weight:900;white-space:nowrap;pointer-events:none;overflow:hidden;line-height:20px}
.combo b{font-size:18px;color:#ff5f6d}
.combo span{font-size:12px;letter-spacing:1px}
.combo em{font-style:normal;font-size:13px;color:#2f8a2a}
.combo i{position:absolute;left:0;right:0;bottom:0;height:4px;background:#ff5f6d;transform-origin:left center}
.combo.bump{animation:combobump .25s ease-out}
@keyframes combobump{from{transform:translateX(-50%) scale(1.3)}to{transform:translateX(-50%) scale(1)}}
.tile{position:relative;display:flex;align-items:flex-end;justify-content:center}
/* aura: green arrow on boosted slimes; glow preview while an aura slime is selected or dragged */
.tile.boost::before{content:"";position:absolute;left:4px;top:4px;z-index:2;pointer-events:none;
  width:clamp(14px,calc(var(--tile) * .22),22px);height:clamp(14px,calc(var(--tile) * .22),22px);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%237bdc4f' stroke='%232a1838' stroke-width='3'/%3E%3Cpath d='M12 5.5 L17.5 12 L14.2 12 L14.2 17.5 L9.8 17.5 L9.8 12 L6.5 12 Z' fill='%23fff' stroke='%232a1838' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.tile.aura{background-image:radial-gradient(circle at 50% 55%,rgba(255,246,176,.95) 0,rgba(255,246,176,.35) 55%,rgba(255,246,176,0) 72%)}
.tile.aura::after{content:"";position:absolute;inset:4px;border:4px dashed #fff6b0;border-radius:14px}
.tile.alt{background:var(--grass2)}
.tile.sel::after{content:"";position:absolute;inset:4px;border:4px dashed #fff;border-radius:14px}
.tile.target::after{content:"";position:absolute;inset:4px;border:4px solid #fff;border-radius:14px;background:rgba(255,255,255,.2)}
.slime{position:relative;width:88%;height:88%;margin-bottom:4%;touch-action:none;cursor:grab}
.slime svg{width:100%;height:100%;overflow:visible}
.slime::before{content:"";position:absolute;left:18%;right:18%;bottom:2%;height:9%;background:rgba(0,0,0,.18);border-radius:50%}
.slime.idle svg{animation:breathe 2.6s ease-in-out infinite;transform-origin:50% 90%}
.slime.ghost{opacity:.35}
.slime.born svg{animation:born .35s cubic-bezier(.2,1.6,.4,1)}
.slime.merged svg{animation:merged .45s cubic-bezier(.2,1.8,.4,1)}
@keyframes born{from{transform:scale(.2)}to{transform:scale(1)}}
@keyframes merged{0%{transform:scale(1.35,.7)}40%{transform:scale(.85,1.2)}100%{transform:scale(1)}}
.lvl{position:absolute;bottom:3px;right:3px;z-index:2;font-size:clamp(9px,calc(var(--tile) * .14),12px);font-weight:900;color:#fff;
  background:var(--ink);border-radius:8px;padding:0 4px;line-height:1.45;pointer-events:none}
.lvl.sh{background:var(--gold);color:var(--ink)}
.drag{position:fixed;z-index:60;pointer-events:none;width:var(--tile);height:var(--tile);transform:translate(-50%,-55%) scale(1.15)}
.drag svg{width:100%;height:100%;overflow:visible}

/* tutorial hand */
.hand{position:absolute;width:44px;height:44px;pointer-events:none;z-index:5;display:none}
.hand.on{display:block;animation:handmove 1.8s ease-in-out infinite}
.hand svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 0 rgba(42,24,56,.35))}
@keyframes handmove{0%,15%{transform:translate(var(--hx0),var(--hy0))}70%,100%{transform:translate(var(--hx1),var(--hy1))}}

/* bottom bar */
.bar{flex:0 0 auto;display:flex;gap:10px;align-items:flex-end;margin-top:28px}
.btn{position:relative;flex:1;height:64px;border:4px solid var(--ink);border-radius:20px;background:#fff;box-shadow:0 6px 0 var(--ink);
  display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;gap:2px;padding:0 4px}
.btn .lbl{font-size:13px;white-space:nowrap;max-width:100%}
.btn.hatch{flex:1.4;height:80px;background:var(--green)}
.btn.hatch .big{font-size:24px;letter-spacing:1px;white-space:nowrap;max-width:100%;padding:0 3px}
.btn.hatch small{font-size:11px;font-weight:900;line-height:1.1;text-align:center;max-width:100%}
.btn.wide{width:100%;flex:none;height:64px;margin-top:14px}
.dot{position:absolute;top:-7px;right:-7px;width:18px;height:18px;border-radius:50%;background:#ff5f6d;border:3px solid var(--ink);display:none}
.dot.on{display:block}

/* sheets */
.sheet{position:fixed;inset:0;z-index:40;background:rgba(42,24,56,.55);display:flex;align-items:flex-end;justify-content:center}
.sheet-box{width:100%;max-width:460px;max-height:86%;overflow:auto;background:var(--paper);border:4px solid var(--ink);border-bottom:none;
  border-radius:24px 24px 0 0;padding:16px 16px max(20px,env(safe-area-inset-bottom))}
.sheet-box.center{text-align:center;border-radius:24px;border-bottom:4px solid var(--ink);margin:auto 16px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sheet-head h2,.sheet-box h2{font-size:26px}
.x{width:40px;height:40px;border-radius:50%;background:#fff;border:4px solid var(--ink)}
.x svg{width:100%;height:100%}
.upg{display:flex;align-items:center;gap:10px;background:#fff;border:4px solid var(--ink);border-radius:18px;padding:8px 10px;margin-bottom:10px}
.upg .ico{width:40px;height:40px;flex:0 0 auto}
.upg .txt{flex:1;min-width:0}
.upg b{display:block;font-size:15px}
.upg small{display:block;font-size:12px;color:#6b5a7a;font-weight:700}
.buy{min-width:96px;height:46px;border:4px solid var(--ink);border-radius:14px;background:var(--gold);box-shadow:0 4px 0 var(--ink);
  font-weight:900;font-size:15px;display:flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto}
.buy .ico{width:20px;height:20px}
.buy:disabled{background:#e4dce8;color:#8d7d9a;box-shadow:0 4px 0 #8d7d9a;border-color:#8d7d9a;cursor:default}
.buy:disabled:active{transform:none}
.dex{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.dex-cell{background:#fff;border:4px solid var(--ink);border-radius:16px;padding:6px 4px;text-align:center}
.dex-cell .art{width:100%;aspect-ratio:1}
.dex-cell .art svg{width:100%;height:100%;overflow:visible}
.dex-cell b{display:block;font-size:12px;line-height:1.2;word-break:keep-all}  /* never split ゴールデン mid-word; fitText shrinks it */
.dex-cell small{display:block;font-size:11px;color:#2f8a2a;font-weight:900}
.dex-cell.locked{background:#efe9f2}
.stats{margin-top:12px;text-align:center;font-size:13px;font-weight:700;color:#6b5a7a}
.set-row{display:flex;align-items:center;justify-content:space-between;padding:12px 2px;border-bottom:3px dashed #e2d6ea;font-size:17px;font-weight:900}
.set-row:last-child{border-bottom:none}
.toggle{width:64px;height:36px;border-radius:999px;border:4px solid var(--ink);background:#e4dce8;position:relative}
.toggle::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid var(--ink);transition:left .15s}
.toggle.on{background:var(--green)}
.toggle.on::after{left:29px}
.lang-lbl{display:flex;align-items:center;gap:8px;min-width:0}
.lang-lbl .ico{width:26px;height:26px;flex:0 0 auto}
.set-row.lang-row{flex-direction:column;align-items:stretch;gap:8px}
.lang-sel{appearance:none;-webkit-appearance:none;font-size:15px;font-weight:900;width:100%;min-width:0;height:42px;
  padding:0 34px 0 12px;border:4px solid var(--ink);border-radius:12px;box-shadow:0 3px 0 var(--ink);text-overflow:ellipsis;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M3 6 L8 11 L13 6%27 fill=%27none%27 stroke=%27%232a1838%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") no-repeat right 10px center/14px}
.lang-sel:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.danger{width:100%;height:46px;border:4px solid var(--ink);border-radius:14px;background:#ffd4d8;font-weight:900;font-size:15px}
.danger.armed{background:#ff5f6d;color:#fff}
.away-ico{width:120px;height:120px;margin:8px auto}
.away-ico svg{width:100%;height:100%}
#awayText{font-size:17px;font-weight:900;line-height:1.4}

.btn:disabled{opacity:.5}
.btn.ghost{background:#fff;height:52px;margin-top:10px}
.btn.ghost .lbl{font-size:15px}
.star-line{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:900;background:#fff6d6;
  border:3px solid var(--ink);border-radius:999px;padding:3px 12px;margin:-2px 0 12px}
.star-line:empty{display:none}
.star-line .ico{width:20px;height:20px}
.upg.wild{background:#eaf8df;border-style:dashed;margin-top:6px}
.upg.wild .buy:not(:disabled){background:var(--green)}
.tabs{display:flex;gap:8px;margin-bottom:10px}
.tab{flex:1;min-width:0;white-space:nowrap;overflow:hidden;height:42px;border:4px solid var(--ink);border-radius:14px;background:#fff;box-shadow:0 3px 0 var(--ink);
  font-weight:900;font-size:15px;display:flex;align-items:center;justify-content:center;gap:5px}
.tab small{font-size:12px;color:#6b5a7a}
.tab.on{background:var(--gold)}
.tab.on small{color:var(--ink)}
.tab .ico{width:18px;height:18px}
.dex-note{font-size:13px;font-weight:700;color:#6b5a7a;text-align:center;margin:0 4px 10px;line-height:1.35}
.dex-note:empty{display:none}
.dex-cell.shiny{background:linear-gradient(160deg,#fff 55%,#fff1b8)}
.legend{margin-top:12px;background:#fff;border:4px solid var(--ink);border-radius:16px;padding:8px 10px}
.legend:empty{display:none}
.legend h3{font-size:14px;margin-bottom:4px}
.legend p{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;padding:3px 0;line-height:1.3}
.legend p.unknown{color:#8d7d9a}
.legend .mini{width:34px;height:34px;flex:0 0 auto}
.legend .mini svg{width:100%;height:100%;overflow:visible}
.rel-art{width:110px;height:110px;margin:4px auto}
.rel-art svg{width:100%;height:100%;overflow:visible}
.rel-gain{display:inline-flex;align-items:center;gap:8px;background:#fff6d6;border:3px solid var(--ink);border-radius:18px;padding:5px 16px 5px 10px;margin:4px 0 8px;text-align:left}
.rel-gain .ico{width:30px;height:30px;flex:0 0 auto}
.rel-gain b{display:block;font-size:20px;line-height:1.1}
.rel-gain small{display:block;font-size:12.5px;font-weight:900;color:#2f8a2a}
#relText{font-size:14px;font-weight:700;line-height:1.45;color:#4a3a5a}

/* effects */
#fx{position:fixed;inset:0;pointer-events:none;z-index:30;overflow:hidden}
.pop{position:absolute;font-size:18px;font-weight:900;color:#fff;-webkit-text-stroke:5px var(--ink);paint-order:stroke fill;
  white-space:nowrap;transform:translate(-50%,-50%);animation:rise .9s ease-out forwards}
.pop.big{font-size:26px}
.pop.gold{color:var(--gold)}
@keyframes rise{from{opacity:1;transform:translate(-50%,-50%) scale(.8)}20%{transform:translate(-50%,-80%) scale(1.1)}
  to{opacity:0;transform:translate(-50%,-190%) scale(1)}}
.bit{position:absolute;width:12px;height:12px;border-radius:50%;border:3px solid var(--ink);animation:burst .6s ease-out forwards}
@keyframes burst{to{transform:translate(var(--dx),var(--dy)) scale(.4);opacity:0}}
#toasts{position:fixed;left:0;right:0;top:24%;z-index:55;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}
.toast{background:#fff;border:4px solid var(--ink);border-radius:999px;padding:6px 16px;font-size:15px;font-weight:900;
  box-shadow:0 4px 0 var(--ink);max-width:90vw;text-align:center;animation:toast 1.8s ease forwards}
@keyframes toast{0%{opacity:0;transform:translateY(10px) scale(.9)}12%{opacity:1;transform:none}80%{opacity:1}100%{opacity:0;transform:translateY(-14px)}}
.golden{position:fixed;z-index:35;width:64px;height:64px;top:20%;left:-80px;animation:fly 9s linear forwards}
.golden svg{width:100%;height:100%;overflow:visible;animation:bob .6s ease-in-out infinite alternate}
@keyframes fly{to{left:calc(100vw + 80px)}}
@keyframes bob{to{transform:translateY(-14px) rotate(8deg)}}
@media (prefers-reduced-motion:reduce){.cloud,.slime.idle svg,.mother.idle svg{animation:none}}

/* short phones: give the pen the space */
@media (max-height:700px) and (max-aspect-ratio:11/10){
  .btn{height:56px}
  .btn.hatch{height:68px}
  .btn.hatch .big{font-size:20px}
  .quest{margin:4px 0 6px}
  .mother-tip{margin-top:4px}
}
/* landscape (desktop / CrazyGames iframe): two columns, pen on the right */
@media (min-width:720px) and (min-aspect-ratio:11/10){
  #app{max-width:1060px;display:grid;grid-template-columns:minmax(300px,1fr) 1.3fr;grid-template-rows:auto 1fr auto auto;
    grid-template-areas:"hud hud" "mother pen" "next pen" "bar pen";column-gap:28px}
  .hud{grid-area:hud;width:100%;max-width:560px;justify-self:start}
  .mother-wrap{grid-area:mother;align-self:center}
  .quest{grid-area:next;justify-self:center}
  .pen{grid-area:pen;align-items:center;padding:18px 0 30px}
  .bar{grid-area:bar;margin-top:16px}
  .sky{right:auto;width:44%;-webkit-mask-image:linear-gradient(90deg,#000 72%,transparent);mask-image:linear-gradient(90deg,#000 72%,transparent)}
  .c1{top:20%}
  .c2{top:29%}
  .c3{top:14%}
}

/* sharing and website links (only on the website copy of the game; see share.js) */
.share-btn{background:var(--gold)}
.share-btn.share-in{animation:sharepop .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes sharepop{from{transform:scale(.3)}to{transform:scale(1)}}
.hud.sharing .rate{display:none}
.dex-share{width:40px;height:40px;margin-left:auto;margin-right:8px;background:var(--gold);border-width:4px}
.dex-share .ico{width:24px;height:24px}
.links-row{flex-wrap:wrap;justify-content:center;gap:6px 20px;font-size:15px;text-align:center}
.links-row a{color:var(--ink);font-weight:900;text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:3px;text-underline-offset:3px}
.share-box{max-width:420px}
.share-img{display:block;width:100%;height:auto;aspect-ratio:1;margin:0 auto 4px;border:4px solid var(--ink);border-radius:18px;background:#cdeeff}
.share-row{display:flex;gap:10px}
.share-row .btn{flex:1;height:52px;margin-top:10px}
body:has(#sheetShare:not(.hidden)) #toasts{top:auto;bottom:12px}
