:root {
  --ink: #273448;
  --coral: #ef705c;
  --yellow: #f7c94b;
  --mint: #9bd6b4;
  --sky: #bde4e3;
  --paper: #fff9ee;
  --line: rgba(39, 52, 72, .15);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #d8eee3; color: var(--ink); font-family: Nunito, sans-serif; display: grid; place-items: center; }
.game-shell { width: min(1180px, 100%); padding: 18px 28px 16px; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; }
.topbar { height: 58px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.brand { font-family: "Baloo 2", sans-serif; font-size: 20px; letter-spacing: 1px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.brand b { color: var(--coral); }
.brand-mark { font-size: 24px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.1)); }
.level-tag { text-align: center; line-height: 1.05; }
.eyebrow, .level-tag strong, .hud-label, .objective small, .sticker, .footer, .pause-chip { font-size: 10px; letter-spacing: 1.5px; font-weight: 900; }
.level-tag strong { display: block; font-size: 12px; letter-spacing: 2px; margin-top: 5px; }
.eyebrow { color: #77928d; }
.icon-button { justify-self: end; min-width: 36px; min-height: 36px; border: 2px solid transparent; border-radius: 50%; color: var(--ink); background: transparent; font-size: 17px; cursor: pointer; letter-spacing: -5px; opacity: .82; }.icon-button:hover, .icon-button:focus-visible { border-color: var(--ink); background: var(--paper); outline: none; }.icon-button[aria-pressed="true"] { color: #8a7650; opacity: .65; }
.game-wrap { position: relative; overflow: hidden; aspect-ratio: 2.15 / 1; min-height: 500px; background: linear-gradient(180deg, #bde4e3, #9fd5df); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 10px 0 rgba(39,52,72,.12); user-select: none; }
.loading-screen { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; overflow: hidden; background: radial-gradient(circle at 50% 22%, #e7f4e7 0 12%, transparent 13%), linear-gradient(145deg, #a8dbd0, #77bda5); opacity: 1; transition: opacity .32s ease, visibility .32s ease; }.loading-screen:before, .loading-screen:after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,249,238,.2); }.loading-screen:before { width: 270px; height: 270px; left: -90px; bottom: -135px; }.loading-screen:after { width: 310px; height: 310px; right: -120px; top: -160px; }.loading-screen.is-leaving { opacity: 0; pointer-events: none; }.loading-screen.is-hidden { visibility: hidden; }.loading-card { position: relative; z-index: 1; width: min(500px, 94%); padding: clamp(24px, 5vw, 46px); border: 3px solid var(--ink); border-radius: 18px; background: rgba(255,249,238,.94); box-shadow: 9px 10px 0 rgba(39,52,72,.18); text-align: center; }.loading-kicker { display: inline-block; padding: 7px 10px; background: var(--yellow); color: var(--ink); font: 900 9px Nunito, sans-serif; letter-spacing: 1.2px; transform: rotate(-2deg); }.loading-word { display: flex; justify-content: center; gap: clamp(1px, .6vw, 6px); margin: 18px 0 12px; color: var(--coral); font: 800 clamp(35px, 6vw, 64px)/.9 "Baloo 2", sans-serif; letter-spacing: -1px; }.loading-word span { display: inline-block; animation: loadingLetter 1.05s ease-in-out infinite; }.loading-word span:nth-child(2n) { color: var(--ink); animation-delay: -.18s; }.loading-word span:nth-child(3n) { color: #d59628; animation-delay: -.36s; }.rolling-scene { position: relative; height: 108px; margin: 6px auto 16px; overflow: hidden; border-bottom: 4px solid var(--ink); }.rolling-scene:before { content: ''; position: absolute; top: 43px; left: 8%; width: 82%; border-top: 3px dashed #b4d9c1; }.loading-egg { position: absolute; bottom: 12px; left: 9%; z-index: 2; display: grid; width: 48px; height: 62px; place-items: center; border: 3px solid var(--ink); border-radius: 52% 48% 48% 52% / 60% 60% 40% 40%; background: #fffdf5; box-shadow: 3px 5px 0 rgba(39,52,72,.17); color: var(--ink); font: 900 12px Nunito, sans-serif; animation: eggRoll 2.6s cubic-bezier(.55,.05,.45,.95) infinite; }.loading-egg span { transform: rotate(-14deg); }.rolling-shadow { position: absolute; bottom: 6px; left: 12%; width: 44px; height: 9px; border-radius: 50%; background: rgba(39,52,72,.18); animation: eggShadow 2.6s cubic-bezier(.55,.05,.45,.95) infinite; }.finish-line { position: absolute; right: 8%; bottom: 8px; z-index: 1; display: grid; grid-template-columns: repeat(2, 10px); width: 20px; border: 2px solid var(--ink); }.finish-line i { width: 8px; height: 9px; background: var(--ink); }.finish-line i:nth-child(4n+2), .finish-line i:nth-child(4n+3) { background: var(--paper); }.motion-line { position: absolute; left: 7%; height: 3px; border-radius: 3px; background: #ef705c; animation: motionLine 2.6s ease-in-out infinite; }.line-one { bottom: 32px; width: 22px; }.line-two { bottom: 48px; width: 13px; animation-delay: -.18s; }.loading-progress { height: 16px; overflow: hidden; border: 3px solid var(--ink); border-radius: 99px; background: #dce8d9; box-shadow: inset 0 2px 0 rgba(39,52,72,.08); }.loading-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: repeating-linear-gradient(45deg, #ef705c 0 12px, #f5816c 12px 24px); transition: width .22s ease; }.loading-card p { margin: 10px 0 0; color: #718080; font: 800 10px Nunito, sans-serif; letter-spacing: .4px; }.loading-card p strong { color: var(--coral); }@keyframes loadingLetter { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-9px) rotate(5deg); } }@keyframes eggRoll { 0% { left: 9%; transform: rotate(0deg) translateY(0); } 44% { transform: rotate(360deg) translateY(-10px); } 70% { left: 72%; transform: rotate(620deg) translateY(0); } 76% { left: 72%; transform: rotate(690deg) translateY(-4px); } 100% { left: 9%; transform: rotate(720deg) translateY(0); } }@keyframes eggShadow { 0%,100% { left: 12%; transform: scale(1); } 44% { transform: scale(.65); } 70%,76% { left: 75%; transform: scale(1); } }@keyframes motionLine { 0%,64%,100% { transform: translateX(0); opacity: 0; } 16%,52% { transform: translateX(130px); opacity: .85; } }
.title-mode .hud, .title-mode .tip, .title-mode .pause-chip { display: none; }
.intro-mode .hud, .intro-mode .tip, .intro-mode .pause-chip { display: none; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.condition-panel { width: 218px; padding: 12px 14px; background: rgba(255,249,238,.92); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 rgba(39,52,72,.12); }
.hud-label { display: flex; justify-content: space-between; font-size: 9px; }
.hud-label strong { color: #48a676; font-size: 14px; }
.meter { height: 9px; background: #e9ddd0; border-radius: 9px; margin: 7px 0 5px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; background: #65bd8b; border-radius: inherit; transition: width .25s, background .25s; }
.status-line { color: #7c898b; font-size: 10px; font-weight: 800; }
.objective { display: flex; gap: 9px; align-items: center; padding: 9px 12px; background: rgba(255,249,238,.82); border-radius: 7px; border: 1px solid rgba(39,52,72,.12); }
.pin { width: 24px; height: 24px; display: grid; place-items: center; background: var(--coral); color: white; border-radius: 50%; }
.objective small { display: block; color: #77928d; font-size: 8px; }.objective strong { font-size: 12px; }
.tip { position: absolute; left: 24%; bottom: 17%; display: flex; align-items: center; gap: 10px; color: #fff9ee; text-shadow: 0 2px 0 rgba(39,52,72,.25); font-size: 10px; line-height: 1.2; letter-spacing: 1px; pointer-events: none; transition: opacity .3s; }.tip b { color: var(--yellow); font-size: 12px; }.mouse-icon { font-size: 27px; }.pause-chip { position: absolute; right: 24px; bottom: 18px; color: #fff9ee; }.pause-chip span { opacity: .7; letter-spacing: .5px; font-size: 9px; text-transform: lowercase; }
.screen { position: absolute; inset: 0; z-index: 5; }.screen-title { background: linear-gradient(112deg, rgba(255,249,238,.84) 0%, rgba(255,249,238,.68) 45%, rgba(255,249,238,0) 72%); padding: 9% 0 0 8%; animation: arrive .7s ease both; }.title-copy { position: relative; z-index: 2; }.sticker { display: inline-block; padding: 7px 10px; background: var(--yellow); transform: rotate(-2deg); color: var(--ink); font-size: 8px; }.title-copy h1 { margin: 17px 0 4px; font: 800 clamp(52px, 8vw, 104px)/.73 "Baloo 2", sans-serif; letter-spacing: -2px; }.title-copy h1 em { color: var(--coral); font-style: normal; }.title-copy p { margin: 19px 0 22px; font-size: 16px; line-height: 1.2; }.title-copy p strong { color: var(--coral); }.play-button { padding: 12px 17px 11px 20px; color: var(--paper); background: var(--coral); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; font: 900 13px Nunito, sans-serif; letter-spacing: 1px; transition: transform .15s, box-shadow .15s; }.play-button span { margin-left: 28px; font-size: 20px; line-height: 0; vertical-align: -2px; }.play-button:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }.mini-note { margin-top: 20px; color: #78918e; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.title-egg { position: absolute; right: 18%; bottom: 19%; width: 136px; height: 174px; background: #fffdf5; border: 4px solid var(--ink); border-radius: 52% 48% 48% 52% / 60% 60% 40% 40%; transform: rotate(13deg); box-shadow: 11px 12px 0 rgba(39,52,72,.16); animation: wobble 3s ease-in-out infinite; }.egg-face { position: absolute; top: 44%; left: 39%; font: 800 23px Nunito, sans-serif; letter-spacing: 5px; }.egg-shine { position: absolute; width: 20px; height: 40px; top: 20%; left: 24%; background: white; border-radius: 50%; transform: rotate(30deg); }.title-box { position: absolute; right: 5%; bottom: 9%; padding: 13px 16px; transform: rotate(-7deg); background: #d79758; border: 3px solid var(--ink); color: #6a3d2f; font: 900 12px/1.1 Nunito; text-align: center; }.title-box span { font-size: 8px; letter-spacing: 1px; }
.end-screen { display: grid; place-items: center; z-index: 20; background: rgba(39,52,72,.25); backdrop-filter: blur(3px); }.end-card { width: min(380px, 85%); text-align: center; padding: 28px; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 7px 7px 0 rgba(39,52,72,.24); animation: arrive .4s ease both; }.end-icon { font-size: 43px; }.end-card h2 { margin: 8px 0; font: 800 30px/1 "Baloo 2"; }.end-card p { margin: 0 0 20px; color: #718080; font-size: 14px; }.hidden { display: none; }
.footer { padding: 14px 2px 0; color: #78918e; font-size: 9px; }.footer span:nth-child(2) { color: var(--coral); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes wobble { 0%,100% { transform: rotate(13deg); } 50% { transform: rotate(8deg) translateY(-5px); } }
@media (min-width: 701px) { body { display: block; overflow: hidden; }.game-shell { width: 100vw; height: 100vh; padding: 14px 22px 10px; }.topbar { height: 58px; }.game-wrap { width: 100%; height: calc(100vh - 116px); min-height: 560px; aspect-ratio: auto; border-radius: 10px; }.footer { height: 30px; padding-top: 10px; } }
@media (max-width: 700px) { body { display: block; } .game-shell { padding: 8px 10px; margin: 0 auto; }.topbar { height: 50px; }.level-tag { transform: none; }.level-tag strong { font-size: 10px; }.brand { font-size: 15px; }.game-wrap { min-height: 0; aspect-ratio: 1.5 / 1; border-width: 2px; }.hud { top: 10px; left: 10px; right: 10px; }.condition-panel { width: 172px; padding: 8px 9px; }.objective { padding: 6px; }.objective div { display: none; }.tip { left: 9%; bottom: 15%; }.pause-chip { right: 10px; bottom: 10px; }.screen-title { padding: 6% 0 0 7%; }.sticker { padding: 5px 7px; font-size: 6px; }.title-copy h1 { margin: 10px 0 2px; font-size: 40px; }.title-copy p { margin: 8px 0 9px; font-size: 12px; }.play-button { padding: 7px 10px 6px 12px; font-size: 10px; }.play-button span { margin-left: 16px; font-size: 16px; }.mini-note { margin-top: 8px; font-size: 7px; }.title-egg { right: 8%; bottom: 17%; width: 83px; height: 111px; border-width: 3px; }.title-box { right: 4%; bottom: 6%; transform: rotate(-7deg) scale(.7); transform-origin: right bottom; }.footer { font-size: 7px; } }
.menu-buttons { display: grid; grid-template-columns: repeat(2, 145px); gap: 9px; width: 299px; }
.menu-buttons .play-button { grid-column: 1 / -1; width: 100%; }
.menu-button { padding: 12px 14px; color: var(--ink); background: rgba(255,249,238,.92); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; font: 900 12px Nunito, sans-serif; letter-spacing: 1px; text-align: left; transition: transform .15s, box-shadow .15s; }
.menu-button span { float: right; color: var(--coral); font-size: 17px; line-height: .7; }
.menu-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.menu-panel { position: absolute; inset: 0; display: grid; place-items: center; z-index: 30; background: rgba(39,52,72,.27); backdrop-filter: blur(4px); }
.menu-panel.hidden { display: none; }
.menu-panel-card { position: relative; width: min(410px, 82%); padding: 30px; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 7px 7px 0 rgba(39,52,72,.24); text-align: center; }
.menu-panel-card h2 { margin: 12px 0 6px; font: 800 34px/1 "Baloo 2"; }.menu-panel-card p { margin: 0 auto 22px; max-width: 300px; color: #718080; font-size: 14px; line-height: 1.4; }.panel-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 26px; line-height: 1; }.panel-close:hover { color: var(--coral); }.menu-panel .play-button { width: auto; text-align: center; }
.sad-egg { display: none; }.quit-actions { display: block; margin-top: 20px; }.quit-actions .quit-confirm { display: none; }.quit-open .sad-egg { display: grid; place-items: center; width: 74px; height: 88px; margin: 4px auto 8px; border: 3px solid var(--ink); border-radius: 52% 48% 48% 52% / 60% 60% 40% 40%; background: #fffdf5; font: 900 20px Nunito, sans-serif; letter-spacing: 3px; transform: rotate(-5deg); box-shadow: 4px 5px 0 rgba(39,52,72,.14); }.quit-open .quit-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }.quit-open .quit-actions .quit-confirm { display: block; }.quit-open #menuPanelTitle { font-size: 28px; }.quit-open #menuPanelCopy { margin-bottom: 0; color: var(--ink); font-weight: 800; }.quit-confirm { padding: 12px 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; font: 900 12px Nunito, sans-serif; letter-spacing: 1px; }.quit-confirm:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.settings-open .menu-panel-card { max-height: calc(100% - 24px); overflow-y: auto; }.settings-open .menu-panel-card h2 { font-size: 30px; }
.settings-content { display: none; text-align: left; margin: 16px auto 18px; max-width: 430px; }.settings-open .settings-content { display: block; }.settings-open #menuPanelCopy, .settings-open #panelAction { display: none; }.settings-open #menuPanelTitle { margin-bottom: 4px; }.setting-row { margin: 11px 0; }.setting-row label, .setting-row > span { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font: 900 10px Nunito, sans-serif; letter-spacing: 1px; }.setting-row output { color: var(--coral); font-size: 11px; }.setting-row input[type="range"] { width: 100%; margin: 7px 0 0; accent-color: var(--coral); cursor: pointer; }.segmented { display: flex; gap: 4px; margin-top: 7px; }.segmented button { flex: 1; padding: 6px 5px; border: 1px solid var(--ink); border-radius: 4px; background: #f5ead7; color: var(--ink); cursor: pointer; font: 900 9px Nunito, sans-serif; }.segmented button.selected { background: var(--coral); color: var(--paper); }.reset-settings { display: block; width: 100%; margin-top: 16px; padding: 8px; border: 2px solid var(--ink); border-radius: 5px; background: #f5ead7; color: var(--coral); cursor: pointer; font: 900 10px Nunito, sans-serif; letter-spacing: 1px; }.reset-settings:hover { background: #f0d6c4; }
@media (max-width: 700px) { .menu-buttons { grid-template-columns: 1fr; width: 150px; gap: 6px; }.menu-buttons .play-button { grid-column: auto; }.menu-button { padding: 7px 10px 6px 12px; font-size: 9px; } }
.fullscreen-row { align-items: center; }.fullscreen-button { padding: 7px 9px; border: 2px solid var(--ink); border-radius: 5px; background: var(--coral); color: var(--paper); cursor: pointer; font: 900 9px Nunito, sans-serif; letter-spacing: .5px; }.fullscreen-button:hover { background: #d95f50; }
.title-state .footer { display: none; }
.return-menu-button { display: none; position: absolute; left: 24px; bottom: 18px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 5px; background: rgba(255,249,238,.92); color: var(--ink); box-shadow: 3px 3px 0 rgba(39,52,72,.25); cursor: pointer; font: 900 10px Nunito, sans-serif; letter-spacing: 1px; }.return-menu-button:hover { background: var(--coral); color: var(--paper); }.return-menu-card p { margin-bottom: 4px; color: var(--ink); font-weight: 800; }.return-menu-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }.return-menu-actions .play-button { width: auto; text-align: center; padding-left: 14px; }.continue-button { padding: 12px 15px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; font: 900 12px Nunito, sans-serif; letter-spacing: .5px; }.continue-button:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }.return-menu-panel-hidden { display: none; }
.gameplay-state .return-menu-button { display: block; }
.title-state .title-egg { width: 178px; height: 226px; right: 17%; bottom: 15%; }
.archive-stats { display: flex; gap: 8px; }.archive-stats > div { min-width: 112px; }.star-count { padding: 12px; border: 2px solid var(--ink); border-radius: 7px; background: #fff1bd; text-align: center; }.star-count span { display: block; color: #8a7650; font-size: 9px; font-weight: 900; letter-spacing: 1px; }.star-count strong { display: block; margin-top: 4px; color: #d59628; font: 800 25px "Baloo 2"; }.star-count b { font-weight: 800; }
@media (max-width: 700px) { .title-state .title-egg { width: 104px; height: 138px; right: 6%; bottom: 12%; } }
.collection-screen { position: absolute; inset: 0; z-index: 40; padding: 30px 42px; background: #f4e6c7; overflow: auto; }.collection-header { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 20px; }.collection-header h2 { margin: 10px 0 0; font: 800 42px/1 "Baloo 2"; letter-spacing: 1px; }.collection-header p { margin: 6px 0 0; color: #718080; font-size: 14px; }.collection-back { align-self: start; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 6px; background: var(--coral); color: var(--paper); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; font: 900 11px Nunito, sans-serif; letter-spacing: 1px; }.archive-stats { display: flex; gap: 8px; }.collection-progress, .star-count { padding: 12px; border: 2px solid var(--ink); border-radius: 7px; background: var(--paper); text-align: center; }.collection-progress span, .star-count span, .preview-kicker { display: block; color: #77928d; font-size: 9px; font-weight: 900; letter-spacing: 1px; }.collection-progress strong, .star-count strong { display: block; margin-top: 4px; color: var(--coral); font: 800 25px "Baloo 2"; }.star-count { background: #fff1bd; }.star-count strong { color: #d59628; }.collection-body { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 28px; margin-top: 30px; }.egg-grid { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 12px; align-content: start; }.egg-card { position: relative; min-height: 155px; padding: 14px 8px 10px; border: 2px solid rgba(39,52,72,.2); border-radius: 8px; background: rgba(255,249,238,.78); color: var(--ink); cursor: pointer; text-align: center; transition: transform .15s, border-color .15s; }.egg-card:hover, .egg-card.selected { transform: translateY(-3px); border-color: var(--coral); }.egg-card.selected { box-shadow: inset 0 0 0 2px var(--yellow), 4px 4px 0 rgba(39,52,72,.12); }.egg-card:disabled { cursor: default; opacity: .62; }.egg-card:disabled:hover { transform: none; border-color: rgba(39,52,72,.2); }.collection-egg { position: relative; width: 54px; height: 70px; margin: 0 auto 9px; border: 3px solid var(--ink); border-radius: 52% 48% 48% 52% / 60% 60% 40% 40%; box-shadow: 4px 5px 0 rgba(39,52,72,.12); }.collection-egg span { position: absolute; left: 50%; top: 43%; transform: translate(-50%,-50%); color: var(--ink); font: 900 12px Nunito; letter-spacing: 1px; }.egg-card strong { display: block; font-size: 11px; letter-spacing: .5px; }.egg-card small { display: block; margin-top: 5px; color: #77928d; font-size: 8px; font-weight: 900; }.locked-badge { color: #a18b78 !important; }.classic { background: #fffdf5; }.golden { background: #f4c84d; }.chocolate { background: #9a674b; }.rainbow { background: linear-gradient(160deg, #ef705c 0 25%, #f7c94b 25% 50%, #7fcaa7 50% 75%, #84b7c0 75%); }.space { background: #39486e; }.robot { background: #a9b5b5; }.chef { background: #fffdf5; }.basketball { background: #e88a43; }.egg-preview { padding: 22px; border: 2px solid var(--ink); border-radius: 9px; background: var(--paper); text-align: center; }.preview-stage { display: grid; place-items: center; height: 220px; background: #d8eee3; border-radius: 7px; }.preview-stage .collection-egg { width: 118px; height: 155px; animation: previewBob 2.5s ease-in-out infinite; }.preview-stage .collection-egg span { font-size: 24px; }.egg-preview h3 { margin: 5px 0; font: 800 25px "Baloo 2"; }.egg-preview p { min-height: 38px; margin: 0 0 16px; color: #718080; font-size: 12px; line-height: 1.35; }.cosmetic-note { padding-top: 12px; border-top: 1px solid var(--line); color: #77928d; font-size: 8px; font-weight: 900; letter-spacing: .8px; line-height: 1.3; }@keyframes previewBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@media (max-width: 700px) { .collection-screen { padding: 16px; }.collection-header { grid-template-columns: 1fr auto; }.collection-header > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }.collection-header h2 { font-size: 29px; }.collection-progress { padding: 8px; }.collection-body { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }.egg-grid { grid-template-columns: repeat(2, 1fr); }.egg-preview { order: -1; }.preview-stage { height: 145px; }.preview-stage .collection-egg { width: 80px; height: 105px; } }
.levels-screen { position: absolute; inset: 0; z-index: 45; padding: 28px 42px; background: #b9dfd5; overflow: hidden; }.levels-header { position: relative; z-index: 4; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: start; gap: 20px; }.levels-header h2 { margin: 9px 0 0; font: 800 42px/1 "Baloo 2"; }.levels-header p { margin: 5px 0; color: #617c7b; font-size: 14px; }.levels-back { padding: 11px 13px; border: 2px solid var(--ink); border-radius: 6px; background: var(--coral); color: var(--paper); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; font: 900 11px Nunito, sans-serif; letter-spacing: 1px; }.map-progress { min-width: 120px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 7px; background: var(--paper); text-align: center; }.map-progress span { display: block; color: #77928d; font-size: 9px; font-weight: 900; letter-spacing: 1px; }.map-progress strong { display: block; margin-top: 2px; color: var(--coral); font: 800 25px "Baloo 2"; }.map-viewport { position: absolute; inset: 155px 42px 28px; overflow: hidden; border: 3px solid var(--ink); border-radius: 10px; background: #a9d6c1; cursor: grab; }.map-viewport:active { cursor: grabbing; }.map-world { position: absolute; left: 0; top: 0; width: 1800px; height: 730px; background: #9ed39a; transform: translate(0,0); transition: transform .8s cubic-bezier(.2,.75,.25,1); }.map-world.is-panning { transition: none; }.map-hill { position: absolute; border-radius: 50%; background: #8bc58b; }.hill-a { left: -70px; top: 35px; width: 570px; height: 330px; }.hill-b { left: 1050px; top: -110px; width: 650px; height: 390px; background: #87bf99; }.map-cloud { position: absolute; width: 170px; height: 38px; border-radius: 40px; background: rgba(255,249,238,.7); animation: mapCloud 18s linear infinite; }.map-cloud:before, .map-cloud:after { content: ''; position: absolute; bottom: 5px; border-radius: 50%; background: inherit; }.map-cloud:before { left: 28px; width: 58px; height: 58px; }.map-cloud:after { left: 82px; width: 42px; height: 42px; }.cloud-a { left: 280px; top: 60px; }.cloud-b { left: 1230px; top: 105px; animation-delay: -8s; transform: scale(.7); }.map-river { position: absolute; left: 710px; top: -80px; width: 160px; height: 850px; background: #80c7cc; border-left: 7px solid rgba(255,249,238,.35); border-right: 7px solid rgba(255,249,238,.35); transform: rotate(13deg); }.map-bridge { position: absolute; left: 665px; top: 390px; width: 260px; height: 62px; border: 13px solid #b77e56; background: repeating-linear-gradient(90deg, #d39b62 0 25px, #ad714e 25px 30px); transform: rotate(13deg); }.map-road { position: absolute; height: 92px; border-radius: 50%; border: 18px solid #9b755b; transform: rotate(-12deg); }.road-main { left: -80px; top: 440px; width: 1940px; }.road-side { left: 950px; top: 185px; width: 500px; transform: rotate(48deg); border-color: #b18765; }.journey-line { position: absolute; left: 170px; top: 445px; width: 1390px; border-top: 8px dashed #f7c94b; transform: rotate(-12deg); opacity: .9; }.map-details span { position: absolute; z-index: 2; display: block; }.map-house { color: #d9785f; font-size: 70px; text-shadow: 3px 3px 0 #fff1c9; }.house-a { left: 250px; top: 265px; }.house-b { left: 510px; top: 145px; transform: scale(.75); }.map-tree { color: #4d946a; font-size: 74px; text-shadow: 0 10px 0 #9a674b; }.tree-a { left: 95px; top: 250px; }.tree-b { left: 430px; top: 385px; transform: scale(.7); }.tree-c { left: 1130px; top: 290px; transform: scale(1.2); }.map-truck { left: 170px; top: 392px; padding: 8px 16px; border: 3px solid var(--ink); border-radius: 8px; background: #ef705c; color: var(--paper); font-size: 28px; }.map-bench { left: 1280px; top: 400px; color: #9a674b; font-size: 55px; }.map-factory { left: 1430px; top: 180px; padding: 15px; border: 3px solid var(--ink); background: #d5b179; color: #6a493b; font: 900 13px/1.1 Nunito; text-align: center; }.level-marker { position: absolute; z-index: 5; width: 92px; height: 92px; border: 4px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 5px 6px 0 rgba(39,52,72,.22); color: var(--ink); cursor: pointer; transform: translate(-50%,-50%); font: 800 31px "Baloo 2"; }.level-marker small { display: block; margin-top: -5px; font: 900 8px Nunito; letter-spacing: 1px; }.level-marker:hover, .level-marker.selected { border-color: var(--coral); transform: translate(-50%,-50%) scale(1.07); }.level-marker.completed { background: #f7c94b; }.level-marker.locked { background: #d8d3c4; color: #7f8178; cursor: not-allowed; }.level-marker.locked:after { content: '🔒'; position: absolute; right: -4px; bottom: -4px; font-size: 18px; }.level-preview { position: absolute; z-index: 10; right: 62px; bottom: 45px; width: 285px; padding: 22px; border: 3px solid var(--ink); border-radius: 9px; background: var(--paper); box-shadow: 7px 7px 0 rgba(39,52,72,.2); }.level-preview h3 { margin: 9px 0 0; font: 800 31px "Baloo 2"; }.level-preview h4 { margin: -2px 0 8px; color: var(--coral); font: 900 12px Nunito; letter-spacing: 1px; }.level-preview p { margin: 0 0 15px; color: #718080; font-size: 12px; line-height: 1.4; }.preview-stamp { display: inline-block; padding: 5px 8px; background: #f7c94b; color: var(--ink); font: 900 8px Nunito; letter-spacing: 1px; }.preview-close { position: absolute; top: 7px; right: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 24px; }.performance { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-bottom: 16px; border-top: 1px solid var(--line); padding-top: 11px; }.performance span { color: #77928d; font-size: 8px; font-weight: 900; letter-spacing: 1px; }.performance strong { color: #d59628; letter-spacing: 2px; }.performance b { font-size: 11px; }.level-preview .play-button { width: 100%; }.level-preview .play-button[disabled] { opacity: .5; cursor: not-allowed; }.levels-screen.hidden { display: none; }@keyframes mapCloud { 0%,100% { transform: translateX(0); } 50% { transform: translateX(80px); } }
.map-egg-marker { position: absolute; left: 240px; top: 375px; z-index: 6; display: grid; place-items: center; width: 38px; height: 44px; border: 2px solid var(--coral); border-radius: 50%; background: var(--paper); box-shadow: 3px 4px 0 rgba(39,52,72,.18); font-size: 23px; animation: mapEggBob 1.8s ease-in-out infinite; }@keyframes mapEggBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 700px) { .levels-screen { padding: 16px; }.levels-header { grid-template-columns: 1fr auto; gap: 8px; }.levels-header > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }.levels-header h2 { font-size: 29px; }.map-viewport { inset: 130px 16px 16px; }.level-preview { left: 24px; right: 24px; bottom: 28px; width: auto; }.level-marker { width: 72px; height: 72px; font-size: 25px; } }

/* Map polish and accessible zoom controls. */
.map-viewport { touch-action: none; background: linear-gradient(135deg, #bce3d4, #91cdb8); }
.map-world { transform-origin: 0 0; background-image: radial-gradient(circle at 14% 16%, rgba(255,255,255,.25) 0 2px, transparent 3px); background-size: 32px 32px; }
.map-controls { position: absolute; z-index: 20; top: 13px; right: 13px; display: flex; overflow: hidden; border: 2px solid var(--ink); border-radius: 7px; background: var(--paper); box-shadow: 3px 3px 0 rgba(39,52,72,.18); }
.map-controls button { width: 34px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 900 21px Nunito, sans-serif; line-height: 1; }.map-controls button:hover, .map-controls button:focus-visible { background: var(--yellow); outline: none; }
.map-controls output { display: grid; min-width: 49px; place-items: center; border-inline: 1px solid var(--ink); font: 900 9px Nunito, sans-serif; letter-spacing: .4px; }
