/* Gooseborough 0.2 — chunky, glossy casual-game UI. Art: img/*.webp atlases (tools/slice_art.py). Font: Nunito (OFL). */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(../fonts/nunito-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(../fonts/nunito-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --ink: #4A2E1A; --ink2: #7A5a3f; --cream: #FFF7E6; --cream2: #FBE9C8; --wood: #B9773D; --wood2: #8E5427;
  --sun: #FFC93C; --sun2: #F29E1B; --berry: #FF5C8A; --berry2: #D63A68; --lake: #3EC1F0; --lake2: #1E8FC4; --leaf: #6CCB4A; --leaf2: #3F9A2B;
  --r: 22px; --shadow: 0 6px 0 rgba(74, 46, 26, .18), 0 12px 24px rgba(74, 46, 26, .16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #7CC8F0; color: var(--ink); font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.spr { display: inline-block; background-repeat: no-repeat; flex: none; vertical-align: middle; image-rendering: auto; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: linear-gradient(#8FD3F5, #CFEFFF 40%, #FFF3D9); box-shadow: 0 0 60px rgba(0, 0, 0, .25); }
body { background: radial-gradient(circle at 50% 0%, #A8E2FF, #4FA7D8 70%, #2E6E9E); }
body:not(.ready) #app { opacity: 0; } #app { transition: opacity .3s; }

/* ---------- top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; gap: 10px; padding: calc(var(--sat) + 10px) 12px 6px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.lvl .ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--leaf) calc(var(--p) * 1%), rgba(255, 255, 255, .55) 0); box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.lvl .ring b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFE79A, var(--sun) 55%, var(--sun2)); color: #fff; font-size: 20px; font-weight: 900; text-shadow: 0 2px 0 rgba(140, 70, 0, .55); border: 3px solid #fff; }
.wallet { display: flex; gap: 8px; margin-left: auto; }
.pill { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 4px; border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: 0 3px 0 rgba(74, 46, 26, .2), inset 0 -3px 0 rgba(74, 46, 26, .08); font-size: 18px; font-weight: 900; min-width: 92px; }
.pill b { flex: 1; text-align: right; font-variant-numeric: tabular-nums; }
.pill .spr { margin: -6px 0 -6px -6px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .2)); }
.pill.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.14); } }

/* ---------- screen + tabs ---------- */
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; -webkit-overflow-scrolling: touch; }
body:not([data-tab="yard"]) .screen { padding-top: calc(var(--sat) + 66px); }
.tabs { display: flex; justify-content: space-around; gap: 2px; padding: 6px 6px calc(var(--sab) + 6px); background: linear-gradient(#FFF8EA, #FBE6C0); border-top: 3px solid #fff; box-shadow: 0 -6px 18px rgba(74, 46, 26, .18); z-index: 200; position: relative; border-radius: 26px 26px 0 0; }
.tabs button { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 0 2px; font-size: 12px; font-weight: 800; color: var(--ink2); border-radius: 18px; transition: transform .15s; }
.tabs button .spr { transition: transform .2s; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .15)); }
.tabs button[aria-selected="true"] { background: linear-gradient(#FFE38A, #FFC93C); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(200, 120, 0, .35), 0 3px 0 rgba(74, 46, 26, .15); transform: translateY(-6px); }
.tabs button[aria-selected="true"] .spr { transform: scale(1.18) translateY(-2px); }
.dot { position: absolute; top: 2px; right: calc(50% - 22px); width: 14px; height: 14px; border-radius: 50%; background: var(--berry); border: 2px solid #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 16px; font-weight: 900; font-size: 16px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .22);
  background: linear-gradient(#6FD3FF, var(--lake)); box-shadow: inset 0 -4px 0 var(--lake2), inset 0 2px 0 rgba(255, 255, 255, .45), 0 4px 0 rgba(74, 46, 26, .18); transition: transform .08s, filter .15s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--lake2), 0 1px 0 rgba(74, 46, 26, .18); }
.btn.sun { background: linear-gradient(#FFE27A, var(--sun)); box-shadow: inset 0 -4px 0 var(--sun2), inset 0 2px 0 rgba(255, 255, 255, .6), 0 4px 0 rgba(74, 46, 26, .18); color: #6B3A00; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.btn.berry { background: linear-gradient(#FF8FB0, var(--berry)); box-shadow: inset 0 -4px 0 var(--berry2), inset 0 2px 0 rgba(255, 255, 255, .45), 0 4px 0 rgba(74, 46, 26, .18); }
.btn.ghost { background: linear-gradient(#fff, #F6EAD3); color: var(--ink); text-shadow: none; box-shadow: inset 0 -4px 0 #E2CBA4, 0 3px 0 rgba(74, 46, 26, .12); }
.btn:disabled { filter: grayscale(.75) brightness(1.05); opacity: .7; cursor: default; }
.btn.small { min-height: 38px; padding: 4px 12px; font-size: 15px; border-radius: 14px; }
.btn.small .spr { margin: -6px -2px; }
.btn.big { min-height: 58px; font-size: 20px; padding: 10px 24px; border-radius: 20px; }
.btn.wide, .wide { width: 100%; margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; } .row.gap { gap: 10px; margin-top: 12px; } .grow { flex: 1; min-width: 0; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; } .muted { color: var(--ink2); opacity: .85; font-weight: 700; } .small { font-size: 13px; }

/* ---------- yard ---------- */
.yard { position: relative; height: calc(100% - 92px); min-height: 460px; overflow: hidden; background: #8BD06A center bottom / cover no-repeat; }
.yard::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, .0) 60%, rgba(60, 120, 30, .18)); }
.yard.dusk::after { background: linear-gradient(rgba(60, 40, 140, .25), rgba(255, 140, 60, .12) 50%, rgba(30, 20, 70, .25)); }
.sun-rays { position: absolute; left: -30%; top: -40%; width: 160%; height: 90%; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .13) 0 6deg, transparent 6deg 18deg); animation: spin 60s linear infinite; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.coop { position: absolute; left: 50%; top: 29%; transform: translate(-50%, -50%); z-index: 20; filter: drop-shadow(0 10px 8px rgba(40, 60, 20, .35)); }
.coop-name { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 900; color: #fff; background: rgba(74, 46, 26, .55); padding: 2px 10px; border-radius: 10px; }
.decor { position: absolute; transform: translate(-50%, -88%); filter: drop-shadow(0 6px 4px rgba(30, 60, 10, .35)); pointer-events: none; }
.loc-tag { position: absolute; left: 50%; top: calc(var(--sat) + 62px); transform: translateX(-50%); z-index: 150; font-size: 13px; font-weight: 900; color: #fff; padding: 3px 14px; border-radius: 12px; background: rgba(74, 46, 26, .45); backdrop-filter: blur(4px); }
.side { position: absolute; top: calc(var(--sat) + 104px); display: flex; flex-direction: column; gap: 10px; z-index: 150; }
.side.left { left: 8px; } .side.right { right: 8px; }
.round { display: flex; flex-direction: column; align-items: center; width: 68px; padding: 4px 0 3px; border-radius: 20px; background: rgba(255, 250, 236, .93); box-shadow: 0 4px 0 rgba(74, 46, 26, .22), inset 0 -3px 0 rgba(74, 46, 26, .08); font-size: 10px; font-weight: 900; line-height: 1.05; transition: transform .1s; letter-spacing: -.2px; }
.round:active { transform: translateY(3px) scale(.96); }
.round .spr { filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .18)); margin-bottom: 1px; }
.garden { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 140; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 6px 4px rgba(30, 60, 10, .35)); }
.garden.ready > .spr { animation: wiggle 2.4s infinite; }
.garden.full > .spr { animation: wiggle 1s infinite; }
.garden .chip { margin-top: -10px; display: flex; align-items: center; gap: 2px; background: #fff; border-radius: 12px; padding: 1px 10px 1px 2px; font-weight: 900; font-size: 15px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.garden.full .chip { background: var(--sun); }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-8deg) scale(1.05); } 85% { transform: rotate(7deg) scale(1.05); } 95% { transform: rotate(-3deg); } }

.goose { position: absolute; transform: translate(-50%, -92%); transition: left 2.3s ease-in-out, top 2.3s ease-in-out; cursor: pointer; }
.goose .waddle { transform-origin: 50% 100%; }
.goose.flip .goose-art { transform: scaleX(-1); }
.goose.walking .waddle { animation: waddle .38s ease-in-out infinite; }
.goose .bob { transform-origin: 50% 100%; animation: bob 2.6s ease-in-out infinite; animation-delay: var(--d); }
.goose .bob.sleepy { animation: breathe 3.6s ease-in-out infinite; filter: saturate(.85); }
.goose.pop .bob { animation: squash .45s; }
.goose.honking .bob { animation: honkbob .5s; }
.goose .shadow { position: absolute; left: 50%; bottom: 2px; width: 60%; height: 14px; transform: translateX(-50%); border-radius: 50%; background: rgba(30, 60, 10, .3); filter: blur(2px); }
.goose-art { position: relative; display: block; }
.goose-art .body { position: absolute; left: 0; top: 0; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .0)); }
.goose-art .wear { position: absolute; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.goose .gbar { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 46px; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .75); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); overflow: hidden; }
.goose .gbar i { display: block; height: 100%; background: linear-gradient(var(--leaf), var(--leaf2)); border-radius: 6px; transition: width .3s; }
.zz { position: absolute; right: 12%; top: 6%; font-weight: 900; color: #fff; font-size: 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); animation: zz 2s infinite; } .zz b { font-size: 13px; margin-left: 2px; }
.honk { position: absolute; left: 60%; top: -6px; background: #fff; border-radius: 14px; padding: 2px 10px; font-size: 14px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); animation: honk 1s forwards; z-index: 5; }
.honk::after { content: ''; position: absolute; left: 10px; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3px) scale(.985, 1.02); } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .98); } }
@keyframes waddle { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-4px); } }
@keyframes squash { 0% { transform: scale(1, 1); } 30% { transform: scale(1.18, .82); } 60% { transform: scale(.92, 1.1) translateY(-10px); } 100% { transform: scale(1, 1); } }
@keyframes honkbob { 30% { transform: rotate(-6deg) scale(1.05); } 60% { transform: rotate(4deg); } }
@keyframes honk { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 20% { opacity: 1; transform: translateY(-4px) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -16px); } }
.yardbar { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(rgba(255, 247, 230, .0), #FFF3D9 30%); }
.yardbar .btn.big { flex: 1; min-width: 0; flex-direction: row; font-size: 18px; padding: 8px 12px; } .yardbar .btn.big span { overflow: hidden; text-overflow: ellipsis; } .yardbar .btn small { font-size: 12px; opacity: .8; font-weight: 800; }
.flockcount { flex: none; display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 -4px 0 #E2CBA4, 0 3px 0 rgba(74, 46, 26, .12); font-weight: 900; font-size: 18px; }

/* ---------- panels (nest / spin / quests / shop) ---------- */
.panel-bg { min-height: 100%; padding: 4px 14px 24px; }
.title-ribbon { position: relative; margin: 8px auto 12px; width: fit-content; min-width: 60%; text-align: center; padding: 8px 34px; border-radius: 14px; color: #fff; font-size: 21px; font-weight: 900; text-shadow: 0 2px 0 rgba(140, 50, 0, .5);
  background: linear-gradient(#FFB347, #F27B1F); box-shadow: inset 0 -4px 0 rgba(150, 60, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .4), 0 5px 0 rgba(74, 46, 26, .2); display: flex; gap: 10px; justify-content: center; align-items: center; }
.title-ribbon em { font-style: normal; font-size: 15px; background: rgba(255, 255, 255, .3); padding: 1px 10px; border-radius: 10px; }
.title-ribbon.blue { background: linear-gradient(#6FD3FF, #2A9FD8); text-shadow: 0 2px 0 rgba(0, 60, 120, .5); }
.title-ribbon.purple { background: linear-gradient(#C29BFF, #8B5BE0); text-shadow: 0 2px 0 rgba(60, 20, 120, .5); }
.hint { text-align: center; margin: 0 8px 12px; font-size: 14px; color: var(--ink2); }

/* nest */
.nest-bg { background: radial-gradient(circle at 50% 20%, #FFF7E3, #F5DDB0); }
.nestgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 12px; border-radius: 26px; background: linear-gradient(#C98A4B, #A8682F); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .25), inset 0 -6px 0 rgba(80, 40, 10, .35), 0 8px 0 rgba(74, 46, 26, .2); touch-action: none; }
.cell { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 58%, #8A5A2B 0 34%, #E7B66A 35% 48%, #C98A3E 52%, #B07432 70%); box-shadow: inset 0 -4px 0 rgba(80, 40, 10, .3), inset 0 3px 0 rgba(255, 230, 170, .55); transition: transform .15s; }
.cell::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 220, 140, .35) 0 8deg, transparent 8deg 20deg); mask: radial-gradient(circle, transparent 46%, #000 48%); -webkit-mask: radial-gradient(circle, transparent 46%, #000 48%); pointer-events: none; }
.cell.locked { filter: grayscale(.8) brightness(.8); opacity: .55; }
.cell .egg { position: relative; z-index: 1; animation: eggidle 3s ease-in-out infinite; filter: drop-shadow(0 4px 2px rgba(60, 30, 0, .35)); }
.cell:nth-child(3n) .egg { animation-delay: .7s; } .cell:nth-child(4n+1) .egg { animation-delay: 1.4s; }
.cell .lvl { position: absolute; z-index: 2; right: 2px; bottom: 2px; min-width: 24px; height: 24px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.cell.sel { transform: scale(1.06); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--sun), 0 0 22px var(--sun); }
.cell.hint .egg { animation: hintegg .6s ease-in-out infinite; } .cell.hint { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 0 18px #fff; }
.cell.drop { transform: scale(1.1); box-shadow: 0 0 0 4px var(--leaf), 0 0 22px var(--leaf); }
.cell.merged .egg { animation: mergepop .5s; }
@keyframes eggidle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-6deg); } 96% { transform: rotate(5deg); } }
@keyframes hintegg { 50% { transform: translateY(-5px) scale(1.06); } }
@keyframes mergepop { 0% { transform: scale(.3); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.dragghost { position: fixed; z-index: 200; pointer-events: none; transform: translate(-50%, -60%) scale(1.15); filter: drop-shadow(0 12px 8px rgba(0, 0, 0, .35)); }
.selbox { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); min-height: 64px; }
.eggstrip { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: 14px; } .eggstrip .unk { filter: brightness(0) opacity(.2); }

/* carousel */
.spin-bg { background: radial-gradient(circle at 50% 40%, #FFF3C4, #FFD27A 55%, #F9A84A); }
.wheel-wrap { position: relative; width: min(86vw, 380px); aspect-ratio: 1; margin: 6px auto 16px; filter: drop-shadow(0 12px 10px rgba(120, 60, 0, .35)); }
.wheel { width: 100%; height: 100%; } .wheel-svg { width: 100%; height: 100%; display: block; }
.wl { font: 900 15px Nunito, sans-serif; fill: #5B3412; paint-order: stroke; stroke: rgba(255, 255, 255, .8); stroke-width: 3px; }
.bulb { fill: #FFF8D0; animation: bulb 1s infinite; } .bulb.b2 { animation-delay: .5s; }
@keyframes bulb { 50% { fill: #FF8A3D; } }
.pointer { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); z-index: 2; width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 40px solid var(--berry); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.pointer::after { content: ''; position: absolute; left: -9px; top: -36px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.spinbtn { display: flex; margin: 0 auto 6px; min-width: 220px; }
.oddsbox { margin-top: 12px; padding: 10px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .85); box-shadow: var(--shadow); } .oddsbox summary { font-weight: 900; cursor: pointer; }
.odds { width: 100%; border-collapse: collapse; margin: 8px 0; } .odds td { padding: 5px 4px; border-bottom: 1px dashed #EAD3AC; } .odds td:last-child { text-align: right; font-weight: 900; } .odds .spr { margin: -4px 0; }
.prize { text-align: center; display: flex; flex-direction: column; align-items: center; } .prize h2 { margin: 6px 0; font-size: 26px; } .prize .spr { animation: mergepop .6s; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .2)); }

/* quests */
.quest-bg { background: linear-gradient(#FFF7E3, #FBE3BC); }
.qlist { display: flex; flex-direction: column; gap: 8px; }
.quest { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 rgba(74, 46, 26, .12); }
.quest.done { background: linear-gradient(#FFFBE6, #FFF0B8); box-shadow: 0 0 0 3px var(--sun), 0 4px 0 rgba(74, 46, 26, .12); }
.quest.claimed { opacity: .6; } .quest .qi { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #FFF3D9; }
.meter { position: relative; height: 16px; border-radius: 9px; background: #F0E1C6; overflow: hidden; margin-top: 4px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .08); }
.meter i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(#9BE36F, var(--leaf2)); }
.meter span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--ink); }
.meter.thin { height: 8px; }
.tick { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; font-weight: 900; font-size: 20px; }
.bonus { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; padding: 10px 12px; border-radius: 20px; background: linear-gradient(#FFE0EA, #FFC2D4); box-shadow: 0 4px 0 rgba(74, 46, 26, .12); }
.bonus.done { animation: glow 1.4s infinite; } @keyframes glow { 50% { box-shadow: 0 0 0 4px #fff, 0 0 24px var(--berry); } }
.achs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 rgba(74, 46, 26, .12); }
.ach b { font-size: 14px; line-height: 1.1; } .ach .meter { width: 100%; }
.medal { position: relative; display: flex; flex-direction: column; align-items: center; } .medal.t0 .spr { filter: grayscale(1) opacity(.5); } .medal.t1 .spr { filter: sepia(.6) hue-rotate(-20deg); } .medal.t2 .spr { filter: grayscale(1) brightness(1.25); }
.stars { color: var(--sun2); font-size: 13px; letter-spacing: 1px; }

/* shop */
.shop-bg { background: linear-gradient(#FFF7E3, #FFE6C4); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chipbtn { flex: none; display: flex; align-items: center; gap: 2px; padding: 3px 12px 3px 4px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 rgba(74, 46, 26, .14); font-weight: 900; font-size: 14px; }
.chipbtn.on { background: linear-gradient(#FFE27A, var(--sun)); box-shadow: inset 0 -3px 0 var(--sun2); }
.shopgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shopitem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 20px; background: linear-gradient(#fff, #FFF6E6); box-shadow: 0 5px 0 rgba(74, 46, 26, .14); text-align: center; }
.shopitem.prem { background: linear-gradient(#FBF4FF, #EFE3FF); }
.shopitem.own { opacity: .8; } .si-art { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 140, .6), transparent 70%); }
.si-art .spr { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .18)); }
.si-name { font-size: 13px; font-weight: 900; line-height: 1.1; min-height: 29px; display: flex; align-items: center; } .si-theme { font-size: 11px; color: var(--ink2); margin-top: -4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; background: #EAF7E2; color: var(--leaf2); font-weight: 900; font-size: 13px; white-space: nowrap; } .tag.lock { background: #F2E6D6; color: var(--ink2); }
.soon { text-align: center; padding: 26px 16px; border-radius: 24px; background: linear-gradient(#FBF4FF, #EADCFF); box-shadow: var(--shadow); } .soon h3 { margin: 6px 0; }

/* ---------- modal sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(40, 24, 10, .45); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.sheet { width: 100%; max-width: 540px; max-height: 86vh; display: flex; flex-direction: column; background: var(--cream); border-radius: 28px 28px 0 0; border-top: 4px solid #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); animation: sheetup .28s cubic-bezier(.2, 1.2, .4, 1); padding-bottom: var(--sab); }
.sheet.tall { height: 86vh; }
@keyframes sheetup { from { transform: translateY(40%); opacity: .4; } }
.sheet-head { display: flex; align-items: center; padding: 12px 14px 8px 18px; border-bottom: 2px dashed #EBD6B2; } .sheet-head h2 { flex: 1; margin: 0; font-size: 21px; font-weight: 900; }
.x { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(#FF8FB0, var(--berry)); color: #fff; font-weight: 900; font-size: 18px; box-shadow: inset 0 -3px 0 var(--berry2), 0 3px 0 rgba(0, 0, 0, .15); }
.sheet-body { overflow-y: auto; padding: 12px 16px 18px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 rgba(74, 46, 26, .1); margin-bottom: 8px; }
.list .list-row { margin: 0; } .chev { font-size: 26px; color: var(--ink2); }
.rar { display: inline-block; padding: 1px 8px; border-radius: 9px; background: var(--rc); color: #fff; font-size: 11px; font-weight: 900; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); vertical-align: 2px; }
.pips { display: flex; gap: 3px; margin-top: 4px; } .pips i { flex: 1; max-width: 22px; height: 7px; border-radius: 4px; background: #EEDFC4; } .pips i.on { background: linear-gradient(var(--sun), var(--sun2)); }
.goose-card { position: relative; display: grid; place-items: center; height: 210px; } .goose-card .halo { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 45%, #fff), transparent 68%); animation: spin 20s linear infinite; }
.goose-card .goose-art { animation: bob 2.6s ease-in-out infinite; }
.trait { text-align: center; margin: 6px 0 10px; padding: 6px 12px; border-radius: 14px; background: #EAF7E2; color: var(--leaf2); font-weight: 900; font-size: 14px; }
.slots { display: flex; flex-direction: column; gap: 8px; } .slot { background: #fff; border-radius: 18px; padding: 8px 10px; box-shadow: 0 3px 0 rgba(74, 46, 26, .1); }
.slot-h { font-weight: 900; font-size: 13px; color: var(--ink2); margin-bottom: 4px; } .slot-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #FFF4DE; box-shadow: inset 0 -3px 0 #EAD3AC; font-weight: 900; color: var(--ink2); }
.item.on { background: linear-gradient(#FFE27A, var(--sun)); box-shadow: inset 0 -3px 0 var(--sun2), 0 0 0 3px #fff, 0 0 0 5px var(--sun2); }
.locs { display: flex; flex-direction: column; gap: 10px; }
.loc { position: relative; height: 112px; border-radius: 22px; overflow: hidden; background: #9C9 center 70% / cover no-repeat; box-shadow: 0 5px 0 rgba(74, 46, 26, .18); }
.loc.cur { box-shadow: 0 0 0 4px var(--sun), 0 5px 0 rgba(74, 46, 26, .18); } .loc.locked { filter: saturate(.35) brightness(.9); }
.loc-in { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 8px; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(40, 24, 10, .7)); color: #fff; } .loc-in b { font-size: 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.album-h { margin: 12px 0 6px; font-weight: 900; color: var(--rc); font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.card-b { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 16px; background: linear-gradient(#fff, color-mix(in srgb, var(--rc) 18%, #fff)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 55%, #fff), 0 3px 0 rgba(74, 46, 26, .1); font-size: 11px; font-weight: 900; text-align: center; line-height: 1.1; }
.card-b.unk .spr { filter: brightness(0) opacity(.22); } .card-b.unk span { color: #B9A385; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 rgba(74, 46, 26, .1); font-size: 12px; font-weight: 900; }
.tile.on { box-shadow: 0 0 0 3px var(--leaf), 0 3px 0 rgba(74, 46, 26, .1); } .check { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 13px; }
select { font: inherit; font-weight: 800; padding: 8px 10px; border-radius: 12px; border: 2px solid #EAD3AC; background: #fff; color: var(--ink); }
.toggle { width: 58px; height: 32px; border-radius: 16px; background: #DCCDB4; position: relative; transition: background .2s; } .toggle i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); transition: left .2s; }
.toggle.on { background: var(--leaf); } .toggle.on i { left: 29px; }
.about { margin: 12px 0; } .legal { text-align: center; font-size: 12px; color: var(--ink2); line-height: 1.6; } .legal a { color: var(--lake2); }
.steps { line-height: 1.55; font-weight: 700; padding-left: 22px; }

/* ---------- hatch overlay ---------- */
.hatch { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rc) 60%, #fff), #2B1B3D 80%); animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; } }
.hatch .rays { position: absolute; left: 50%; top: 42%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255, 255, 255, .16) 0 8deg, transparent 8deg 20deg); animation: spin 18s linear infinite; mask: radial-gradient(closest-side, #000, transparent); -webkit-mask: radial-gradient(closest-side, #000, transparent); }
.hatch .stage { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.h-egg { position: absolute; animation: eggshake .5s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); }
.hatch.s1 .h-egg { animation-duration: .3s; } .hatch.s2 .h-egg { animation-duration: .16s; }
.cracks { position: absolute; inset: 10px 30px; width: calc(100% - 60px); height: calc(100% - 20px); fill: none; stroke: #4A2E1A; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cracks path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .3s; }
.hatch.s1 .c1 { stroke-dashoffset: 0; } .hatch.s2 .c2, .hatch.s2 .c3 { stroke-dashoffset: 0; }
.h-goose { position: absolute; opacity: 0; transform: scale(.2) translateY(40px); }
.hatch.s3 .h-egg { animation: eggburst .35s forwards; } .hatch.s3 .h-goose { animation: gooseIn .6s cubic-bezier(.3, 1.6, .5, 1) .1s forwards; }
.h-info { position: relative; text-align: center; color: #fff; opacity: 0; transform: translateY(20px); transition: all .4s .45s; } .hatch.s3 .h-info { opacity: 1; transform: none; }
.h-info h2 { margin: 6px 0 2px; font-size: 32px; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); } .h-info p { margin: 0 0 16px; font-size: 17px; }
.h-rar .rar { font-size: 14px; padding: 3px 12px; } .new { margin-left: 6px; padding: 3px 10px; border-radius: 10px; background: var(--berry); font-weight: 900; font-size: 13px; animation: pulse 1s infinite; display: inline-block; }
@keyframes eggshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes eggburst { to { transform: scale(1.5); opacity: 0; filter: brightness(3); } }
@keyframes gooseIn { to { opacity: 1; transform: none; } }

/* ---------- juice ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 104px); transform: translate(-50%, 30px); opacity: 0; z-index: 160; max-width: 90vw; padding: 10px 18px; border-radius: 18px; background: rgba(60, 36, 16, .92); color: #fff; font-weight: 800; text-align: center; transition: all .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } .toast a { color: var(--sun); }
.float { position: fixed; z-index: 170; transform: translate(-50%, -50%); font-weight: 900; font-size: 24px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 6px rgba(0, 0, 0, .2); pointer-events: none; animation: floatup 1.1s forwards; }
.float.gold { color: #FFE14D; font-size: 28px; } .float.minus { color: #fff; font-size: 20px; }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -70%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -190%); } }
.fly { position: fixed; z-index: 175; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.pt { position: fixed; z-index: 172; width: 12px; height: 12px; pointer-events: none; animation: pt .9s ease-out forwards; }
.pt.star { background: #FFE14D; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 16px; height: 16px; }
.pt.spark { background: #fff; border-radius: 50%; } .pt.seed { background: #7BC950; border-radius: 50% 50% 50% 0; width: 9px; height: 9px; }
@keyframes pt { 0% { transform: translate(-50%, -50%) scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 30px)) scale(1) rotate(var(--r)); opacity: 0; } }
.confetti { position: fixed; top: -12px; z-index: 180; width: 10px; height: 14px; pointer-events: none; animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { transform: translate(var(--sx), 105vh) rotate(720deg); } }
.egg-pop { font-size: 0; }
@media (min-width: 700px) { #app { border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.goose .gbar.hide { opacity: 0; }
.infoline { text-align: center; } .infoline .rar { margin-right: 4px; }
.wl { font-size: 13px; }
.mote { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #FFF6B0; box-shadow: 0 0 8px 3px rgba(255, 244, 170, .7); pointer-events: none; z-index: 95; animation: mote 9s ease-in-out infinite; opacity: 0; }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 50% { transform: translate(18px, -26px); } 80% { opacity: .7; } 100% { opacity: 0; transform: translate(-10px, -60px); } }
.hatch .stage::before { content: ''; position: absolute; left: 50%; bottom: 6px; width: 180px; height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .35), transparent 70%); }
