:root{--bg: #f4f2ee;--card: #ffffff;--ink: #26241f;--muted: #7a766c;--line: #dedacf;--accent: #3f6b4a;--bad: #b3402f}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font:15px/1.45 system-ui,-apple-system,Apple SD Gothic Neo,Noto Sans KR,sans-serif;word-break:keep-all}#app{display:flex;flex-direction:column;height:100%;max-width:480px;margin:0 auto}.content{flex:1;overflow-y:auto;padding:12px 12px 16px;-webkit-overflow-scrolling:touch}.tabbar{display:flex;border-top:1px solid var(--line);background:var(--card);padding-bottom:env(safe-area-inset-bottom)}.tab{flex:1;min-height:48px;border:0;background:none;font:inherit;color:var(--muted)}.tab.on{color:var(--accent);font-weight:700;box-shadow:inset 0 -3px 0 var(--accent)}.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-bottom:10px;display:flex;flex-direction:column;gap:8px}.card.dim{opacity:.55}.card p{margin:0}.row{display:flex;align-items:center;justify-content:space-between;gap:8px}.row.wrap{flex-wrap:wrap;justify-content:flex-start}.row.field{justify-content:space-between}.col{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.note{margin:0 0 10px;color:var(--muted)}.muted{color:var(--muted)}.small{font-size:13px}.bad{color:var(--bad)}.section-title{font-size:15px;margin:18px 0 8px}.btn{min-height:40px;padding:0 14px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff;font:inherit}.btn:disabled{opacity:.4}.btn.small-btn{min-height:34px;padding:0 10px;background:none;color:var(--accent)}.btn.primary{width:100%}.select,.input,input[type=number]{min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;font:inherit;color:inherit;min-width:0}input[type=number]{width:100%}.bar{height:8px;background:#e7e3d8;border-radius:4px;overflow:hidden}.bar i{display:block;height:100%;background:var(--accent)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{font-size:12px;padding:2px 8px;border:1px solid var(--line);border-radius:10px;color:var(--muted)}.spark{width:96px;height:24px;color:var(--accent);flex:none}.signup{display:flex;flex-direction:column;gap:12px;padding:48px 24px}.signup h1{margin:0;font-size:24px}.signup p{margin:0;color:var(--muted)}.center{margin:auto;padding:24px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center}.toast{position:fixed;left:12px;right:12px;bottom:calc(64px + env(safe-area-inset-bottom));max-width:456px;margin:0 auto;padding:10px 14px;background:#2e2c27;color:#fff;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30}.toast.show{opacity:1}#app.game .panels{display:flex;flex-direction:column;flex:1;min-height:0}.farm{flex:none;height:45vh;height:45dvh;background:#dfe3cf;overflow:hidden}.farm canvas{touch-action:manipulation}@media (min-width: 900px){#app.game{max-width:1280px;flex-direction:row}#app.game .farm{flex:1 1 55%;height:100%}#app.game .panels{flex:0 0 440px;border-left:1px solid var(--line)}}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#26241f73;display:flex;align-items:flex-end;justify-content:center;z-index:20;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}.sheet{width:100%;max-width:456px;max-height:80vh;overflow-y:auto;background:var(--card);border-radius:12px;padding:18px 18px 14px;display:flex;flex-direction:column;gap:8px}.sheet h2{margin:0 0 4px;font-size:17px}.sheet p{margin:0}.sheet .line{font-size:15px}.sheet .aside{color:var(--muted);font-size:14px;margin-top:4px}.sheet-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.sheet-buttons .btn{min-width:96px}@media (min-width: 900px){.overlay{align-items:center}}
