@font-face { font-family: 'Barlow'; src: url('../../assets/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../../assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM'; src: url('../../assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM'; src: url('../../assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root { --ink: #3a2a1c; --ink2: #7a6450; --panel: #fffaf0f2; --card: #f6ecd6; --line: #ecdcb8; --green: #5cb83a; --green2: #3f8a26; --sun: #ffd23f; --sun2: #e0a800; --red: #e8413c; --red2: #b02a26; --shadow: 0 18px 50px #3a2a1c55; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #9fdaf5; color: var(--ink); font-family: DM, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible + span, input:focus-visible { outline: 3px solid #3fa9ff; outline-offset: 3px; }
[hidden] { display: none !important; }
#board { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.coin { display: inline-block; width: .8em; height: .8em; margin-right: 4px; border-radius: 50%; vertical-align: -1px; background: radial-gradient(circle at 35% 30%, #fff3b0 0 18%, #ffd23f 22% 60%, #d99a00 64%); box-shadow: inset 0 0 0 2px #c98d00; font-style: normal; flex: none; }
.back { position: fixed; top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); z-index: 6; padding: 10px 14px; border-radius: 999px; background: #ffffffe0; color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 6px 18px #0003; }
body:not(.menu-on) .back { display: none; }

/* eggs drawn with CSS so blue, rainbow and golden eggs look right everywhere */
.eg { display: inline-block; width: .74em; height: .95em; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, #fdf6e6 40%, #e9dcc0); box-shadow: inset -2px -3px 0 #0001; vertical-align: -2px; }
.eg.blueEgg { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #b7e2f2 40%, #7fb9d2); }
.eg.rainbowEgg { background: linear-gradient(#ff4a4a 0 17%, #ff9a2a 17% 34%, #ffd23f 34% 51%, #5ccf4a 51% 68%, #3fa9ff 68% 85%, #a05aff 85%); }
.eg.goldenEgg { background: radial-gradient(circle at 35% 30%, #fffbe0 0 14%, #ffd23f 42%, #d99a00); box-shadow: 0 0 8px #ffd23f; }

/* menu */
.panel { position: fixed; z-index: 5; top: 18px; right: 18px; bottom: 18px; width: min(430px, 42vw); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); border: 3px solid #fff; }
.logo { font: 800 italic 76px/.82 Barlow, sans-serif; display: flex; gap: 10px; letter-spacing: -1px; text-shadow: 0 4px 0 #3a2a1c18; }
.logo span { color: #f2a81f; }
.logo b { color: var(--red); font-weight: 800; }
.tag { margin: 8px 0 14px; color: var(--ink2); font-size: 14px; }
.farm-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.farm-card div { background: #fff; border: 3px solid var(--line); border-radius: 15px; padding: 8px 4px; text-align: center; }
.farm-card b { display: block; font: 800 italic 26px/1 Barlow, sans-serif; }
.farm-card small { display: block; font-size: 11px; color: var(--ink2); margin-top: 2px; }
.play { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 15px 20px; border-radius: 20px; background: var(--sun); color: var(--ink); font: 800 italic 38px/1 Barlow, sans-serif; letter-spacing: 1px; box-shadow: 0 7px 0 var(--sun2), 0 12px 24px #b0800044; transition: transform .08s, box-shadow .08s; }
.play span { font-size: .6em; }
.play:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--sun2); }
.fine { font-size: 11.5px; color: var(--ink2); line-height: 1.45; }
.menu-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.menu-buttons button { background: #fff; border: 3px solid var(--line); border-radius: 15px; padding: 9px 4px 8px; font-weight: 700; font-size: 13px; }
.menu-buttons button span { display: block; font-size: 22px; margin-bottom: 2px; }
.settings { display: grid; gap: 10px; margin-top: 10px; background: var(--card); border-radius: 15px; padding: 12px 14px; }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > span { width: 46px; height: 26px; border-radius: 999px; background: #d9cdb0; position: relative; flex: none; transition: background .2s; }
.switch > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { left: 23px; }
.danger { background: #fff; border: 3px solid #f2c4c0; color: var(--red2); border-radius: 12px; padding: 9px; font-weight: 700; font-size: 13px; }
.danger.armed { background: var(--red); color: #fff; border-color: var(--red); }
.help { text-align: center; font-size: 11.5px; color: var(--ink2); margin: 12px 0 0; line-height: 1.45; }
.side-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.side-head h2 { font: 800 italic 32px/1 Barlow, sans-serif; margin: 0; flex: 1; }
.sh-icon { font-size: 30px; line-height: 1; }
.count { font: 800 italic 20px Barlow, sans-serif; color: #b07d00; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--line); font: 800 18px Barlow, sans-serif; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px #0002; }
.trophy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.trophy { background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 40px 1fr; gap: 0 8px; align-items: center; }
.trophy span { grid-row: 1 / 3; font-size: 30px; text-align: center; }
.trophy b { font: 800 italic 18px/1.05 Barlow, sans-serif; }
.trophy small { font-size: 11px; color: var(--ink2); }
.trophy.off { opacity: .5; filter: grayscale(1); }
.trophy.on { border-color: #f2c94c; background: #fffbea; }

/* HUD */
#hud { position: fixed; inset: 0 0 auto 0; z-index: 4; pointer-events: none; }
.top { display: flex; align-items: center; gap: 8px; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); flex-wrap: wrap; }
.top > * { pointer-events: auto; }
.spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #ffffffeb; border-radius: 999px; padding: 6px 13px; font: 800 italic 22px Barlow, sans-serif; box-shadow: 0 4px 12px #0002; }
.chip.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.18); background: #fff3c4; } }
.level em { font-style: normal; font-size: 16px; }
.level .xp { width: 64px; height: 9px; border-radius: 9px; background: #ece4d0; overflow: hidden; margin-left: 4px; }
.level .xp i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5cb83a, #9be06a); border-radius: 9px; transition: width .3s; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 16px; padding: 7px 13px 7px 9px; box-shadow: 0 4px 0 #e0d2b0, 0 6px 14px #0002; font: 800 italic 19px Barlow, sans-serif; }
.hbtn span { font-size: 22px; line-height: 1; }
.hbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #e0d2b0; }
.hbtn.on { background: #fff3c4; }
.hbtn.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); box-shadow: 0 4px 0 #e0d2b0, 0 0 0 6px #ffd23f88; } }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font: 700 13px/22px DM, sans-serif; font-style: normal; text-align: center; box-shadow: 0 2px 6px #0003; }
.badge.go { background: var(--green); }
.goal { margin: 8px auto 0; width: max-content; max-width: calc(100vw - 24px); background: #fffaf0ee; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 14px #0002; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.goal small { color: var(--ink2); font-weight: 700; }
.goal.done { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }

/* seeds and the info bar */
#tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.seeds { display: grid; grid-template-columns: repeat(7, minmax(0, 76px)); gap: 6px; pointer-events: auto; background: #ffffffd9; padding: 7px; border-radius: 20px; box-shadow: 0 8px 22px #0003; }
.seed { position: relative; background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: 5px 2px 4px; display: grid; justify-items: center; }
.seed .ico { font-size: 26px; line-height: 1.1; }
.seed b { font: 800 italic 15px/1 Barlow, sans-serif; white-space: nowrap; }
.seed small { font-size: 11px; font-weight: 700; display: flex; align-items: center; }
.seed kbd { position: absolute; top: 2px; left: 5px; font: 700 9px DM, sans-serif; color: #b9ad90; }
.seed.on { border-color: var(--green); background: #eaf8e3; box-shadow: 0 4px 0 var(--green2); transform: translateY(-3px); }
.seed.locked { opacity: .5; }
.info { pointer-events: auto; display: flex; align-items: center; gap: 8px; background: #fffaf0f5; border-radius: 18px; padding: 8px 10px; box-shadow: 0 8px 22px #0003; border: 3px solid #fff; max-width: calc(100vw - 20px); flex-wrap: wrap; justify-content: center; }
.ti { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ti .ico { font-size: 28px; }
.ti b { font: 800 italic 20px/1 Barlow, sans-serif; display: block; }
.ti small { font-size: 12px; color: var(--ink2); display: block; margin-top: 2px; }
.bar { display: block; width: 120px; height: 8px; border-radius: 8px; background: #ece4d0; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #5cb83a, #9be06a); }
.btn { border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 13px; background: #fff; border: 3px solid var(--line); display: inline-flex; align-items: center; gap: 4px; }
.btn.go { background: var(--sun); border-color: var(--sun); box-shadow: 0 3px 0 var(--sun2); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green2); }
.btn:disabled { background: #ece4d0; border-color: #ece4d0; box-shadow: none; color: #8a7a5a; }
.btn.x { width: 38px; height: 38px; padding: 0; justify-content: center; }
.name-input { font: 700 15px DM, sans-serif; padding: 8px 10px; border-radius: 10px; border: 3px solid var(--line); width: 150px; -webkit-user-select: text; user-select: text; }

/* side sheet */
.sheet-panel { position: fixed; z-index: 7; top: 74px; right: 14px; bottom: 14px; width: min(400px, 40vw); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); border: 3px solid #fff; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.sec { font: 800 italic 18px Barlow, sans-serif; color: var(--ink2); margin: 14px 2px 6px; letter-spacing: .5px; }
.sec:first-child { margin-top: 2px; }
.list { display: grid; gap: 7px; }
.row-item { background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 9px 10px; display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 10px; align-items: center; text-align: left; }
.row-item .icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 13px; background: var(--card); display: grid; place-items: center; font-size: 25px; overflow: hidden; }
.row-item .icon img, .ti .ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti .ico.pic { width: 46px; height: 46px; border-radius: 12px; background: var(--card); overflow: hidden; flex: none; }
.row-item b { font: 800 italic 19px/1 Barlow, sans-serif; }
.row-item small { font-size: 11.5px; color: var(--ink2); grid-column: 2; }
.row-item .acts { grid-column: 3; grid-row: 1 / 3; display: flex; gap: 5px; align-items: center; }
.row-item.locked { opacity: .55; }
.row-item.mine { border-color: #cdeac0; background: #f6fcf2; }
.price { min-width: 76px; justify-content: center; }
.need { display: inline-flex; gap: 3px; align-items: center; background: var(--card); border-radius: 8px; padding: 2px 6px; font-size: 12px; font-weight: 700; margin: 2px 3px 0 0; }
.need.ok { background: #e2f5d8; color: #2f6a1e; }
.need.short { background: #fde3e0; color: var(--red2); }
.queue { display: flex; gap: 8px; align-items: center; background: var(--card); border-radius: 16px; padding: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.slot { width: 52px; height: 52px; border-radius: 13px; background: #fff; border: 3px dashed #e0d2b0; display: grid; place-items: center; font-size: 24px; position: relative; overflow: hidden; }
.slot.busy { border-style: solid; }
.slot.busy::after { content: ''; position: absolute; left: 0; bottom: 0; height: 5px; width: var(--p); background: var(--green); }
.slot.done { border: 3px solid var(--green); background: #eaf8e3; animation: pulse 1s ease-in-out infinite; }
.slot small { position: absolute; bottom: 4px; font: 700 10px DM, sans-serif; color: var(--ink2); }
.order { background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 10px 12px; display: grid; gap: 8px; }
.order.ready { border-color: var(--green); }
.order .who { display: flex; align-items: center; gap: 8px; }
.order .who span { font-size: 30px; }
.order .who b { font: 800 italic 20px Barlow, sans-serif; flex: 1; }
.order .items { display: flex; flex-wrap: wrap; gap: 6px; }
.order .it { display: flex; align-items: center; gap: 4px; background: var(--card); border-radius: 12px; padding: 5px 9px; font-weight: 700; font-size: 14px; }
.order .it span { font-size: 22px; }
.order .it.ok { background: #e2f5d8; }
.order .it small { font-size: 12px; color: var(--ink2); }
.order .it.ok small { color: #2f6a1e; }
.order .pay { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.order .pay em { font-style: normal; font: 800 italic 20px Barlow, sans-serif; display: flex; align-items: center; gap: 10px; }
.order .pay em small { font: 700 13px DM, sans-serif; color: #5c8a2a; }
.order.wait { text-align: center; color: var(--ink2); font-weight: 700; padding: 18px; border-style: dashed; }
.empty { text-align: center; color: var(--ink2); padding: 18px 10px; font-size: 14px; }
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; }
.cell { background: #fff; border: 3px solid var(--line); border-radius: 15px; padding: 7px 6px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.cell .ico { font-size: 28px; line-height: 1.15; }
.cell b { font: 800 italic 22px/1 Barlow, sans-serif; }
.cell small { font-size: 11px; color: var(--ink2); }
.cell .btn { padding: 5px 8px; font-size: 12px; border-radius: 10px; margin-top: 3px; }

/* world labels */
#labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; }
.lbl > * { pointer-events: none; }
.lbl.sign, .lbl.done, .lbl.busy, .lbl.price, .lbl.small, .lbl.bubble, .lbl.alert, .lbl.arrow, .lbl.float { translate: -50% -50%; }
.lbl.sign { background: #fffaf0ee; border-radius: 12px; padding: 5px 10px; text-align: center; box-shadow: 0 4px 12px #0003; border: 2px solid #fff; }
.lbl.sign b { display: block; font: 800 italic 17px/1 Barlow, sans-serif; }
.lbl.sign small { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink2); margin-top: 2px; }
.lbl.done { background: var(--green); color: #fff; border-radius: 999px; padding: 4px 11px; font: 800 italic 19px Barlow, sans-serif; box-shadow: 0 4px 12px #0003; animation: hop 1s ease-in-out infinite; }
.lbl.busy { background: #fffaf0ee; border-radius: 12px; padding: 3px 8px 6px; display: grid; justify-items: center; box-shadow: 0 4px 12px #0003; }
.lbl.busy span { font-size: 18px; }
.lbl.busy i { display: block; width: 44px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green) var(--p), #e6dcc4 var(--p)); }
.lbl.price { background: #fffaf0e6; border-radius: 999px; padding: 2px 8px; font: 800 italic 15px Barlow, sans-serif; display: flex; align-items: center; box-shadow: 0 2px 8px #0002; }
.lbl.small { background: #ffffffd0; border-radius: 999px; padding: 2px 8px; font: 700 11px DM, sans-serif; }
.lbl.bubble { background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; box-shadow: 0 3px 10px #0003; animation: hop 1.4s ease-in-out infinite; }
.lbl.bubble::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 9px; height: 9px; background: #fff; border-radius: 50%; translate: -60% 0; }
.lbl.alert { background: var(--red); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 italic 26px Barlow, sans-serif; box-shadow: 0 0 0 4px #fff, 0 4px 14px #0005; animation: hop .5s ease-in-out infinite; }
.lbl.arrow { font-size: 34px; animation: point 0.8s ease-in-out infinite; filter: drop-shadow(0 3px 4px #0005); }
.lbl.float { font: 800 italic 22px Barlow, sans-serif; color: #fff; text-shadow: 0 2px 0 #3a2a1c, 0 0 8px #0006; display: flex; align-items: center; gap: 3px; }
@keyframes hop { 50% { margin-top: -5px; } }
@keyframes point { 50% { margin-top: -10px; } }

#banner { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%) scale(.9); z-index: 8; text-align: center; color: #fff; pointer-events: none; opacity: 0; transition: opacity .35s, transform .35s; text-shadow: 0 4px 0 #3a2a1caa, 0 0 22px #0007; }
#banner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#banner small { display: block; font: 700 16px Barlow, sans-serif; letter-spacing: 4px; }
#banner b { display: block; font: 800 italic clamp(54px, 10vw, 100px)/.95 Barlow, sans-serif; }
#toasts { position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 100px); left: 50%; transform: translateX(-50%); z-index: 9; display: grid; gap: 8px; pointer-events: none; width: min(420px, calc(100vw - 24px)); }
.toast { background: #fffaf0f2; border-radius: 16px; padding: 10px 14px; box-shadow: 0 10px 26px #0003; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; animation: tin .35s ease; border: 3px solid #fff; }
.toast > span { font-size: 24px; }
.toast small { display: block; font-weight: 400; color: var(--ink2); font-size: 12px; }
.toast.out { animation: tout .4s ease forwards; }
@keyframes tin { from { transform: translateY(-14px); opacity: 0; } }
@keyframes tout { to { transform: translateY(-14px); opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

@media (max-width: 760px) and (orientation: portrait) {
  .panel { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 60vh; border-radius: 24px; padding: 16px; }
  .logo { font-size: 56px; }
  .tag { margin: 4px 0 10px; font-size: 13px; }
  .play { font-size: 32px; padding: 12px; }
  .farm-card b { font-size: 22px; }
  .chip { font-size: 17px; padding: 4px 9px; }
  .level .xp { width: 28px; }
  .hbtn { padding: 5px 7px; border-radius: 14px; }
  .hbtn span { font-size: 20px; }
  .hbtn b { display: none; }
  .badge { min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; top: -5px; right: -5px; padding: 0 5px; }
  .top { gap: 5px; flex-wrap: nowrap; }
  .top .icon-btn { width: 38px; height: 38px; }
  .seeds { grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; gap: 4px; padding: 5px; }
  .seed { padding: 4px 1px 3px; border-radius: 12px; }
  .seed .ico { font-size: 22px; }
  .seed b { display: none; }
  .seed kbd { display: none; }
  .sheet-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62vh; animation: rise .25s ease; }
  body.sheet-on #tray { display: none; }
  .goal { font-size: 13px; }
  #toasts { top: calc(max(12px, env(safe-area-inset-top)) + 96px); }
  .trophy-grid { grid-template-columns: 1fr 1fr; }
  .lbl.sign { padding: 3px 7px; border-radius: 10px; }
  .lbl.sign b { font-size: 13px; }
  .lbl.sign small { font-size: 9.5px; }
  .lbl.done { font-size: 15px; padding: 2px 8px; }
  .lbl.bubble { width: 24px; height: 24px; font-size: 13px; }
  .lbl.arrow { font-size: 28px; }
}
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@media (max-height: 520px) and (orientation: landscape) {
  .panel { top: 8px; bottom: 8px; right: 8px; width: min(380px, 48vw); padding: 14px; border-radius: 20px; }
  .logo { font-size: 46px; margin-bottom: 4px; }
  .tag { display: none; }
  .farm-card { margin-bottom: 8px; }
  .farm-card b { font-size: 20px; }
  .play { font-size: 26px; padding: 9px; }
  .seeds { grid-template-columns: repeat(7, 54px); padding: 4px; gap: 4px; border-radius: 16px; }
  .seed { padding: 2px 1px; border-radius: 11px; }
  .seed .ico { font-size: 19px; }
  .seed b, .seed kbd { display: none; }
  .seed small { font-size: 10px; }
  #tray { gap: 4px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .info { padding: 4px 8px; gap: 6px; }
  .btn { padding: 6px 9px; }
  .top { padding-top: max(6px, env(safe-area-inset-top)); }
  .chip { font-size: 18px; padding: 4px 10px; }
  .hbtn { padding: 4px 9px 4px 7px; font-size: 16px; }
  .hbtn span { font-size: 18px; }
  .goal { margin-top: 4px; padding: 4px 12px; font-size: 12px; }
  .sheet-panel { top: 52px; bottom: 6px; right: 8px; width: min(360px, 46vw); padding: 12px; }
  .back { top: 8px; left: 8px; }
  #toasts { top: 56px; }
}
