html,body{touch-action:none;-webkit-user-select:none;user-select:none;background:#2b2236;width:100%;height:100%;margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}#game{position:fixed;inset:0}#game canvas{display:block}#rotate-overlay{z-index:10;color:#fff4e0;text-align:center;background:#2b2236;flex-direction:column;justify-content:center;align-items:center;gap:24px;padding:32px;font-size:20px;display:none;position:fixed;inset:0}.rotate-icon{border:4px solid #fff4e0;border-radius:10px;width:48px;height:80px;animation:2s ease-in-out infinite rotate-hint}@keyframes rotate-hint{0%,30%{transform:rotate(0)}60%,to{transform:rotate(-90deg)}}@media (orientation:portrait) and (pointer:coarse){#rotate-overlay{display:flex}}#debug-overlay{z-index:5;color:#fff4e099;pointer-events:none;font:11px ui-monospace,Consolas,monospace;position:fixed;bottom:6px;left:8px}#toasts{z-index:8;pointer-events:none;flex-direction:column;align-items:center;gap:6px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%)}.toast{color:#fff4e0;opacity:0;background:#3a2e48f2;border-radius:999px;padding:8px 16px;font-size:15px;transition:opacity .25s,transform .25s;transform:translateY(-8px);box-shadow:0 4px 12px #0000004d}.toast.visible{opacity:1;transform:translateY(0)}.toast-error{background:#b0363ef2}.panel-backdrop{z-index:7;background:#140e1c8c;justify-content:center;align-items:center;padding:12px;display:flex;position:fixed;inset:0}.panel{color:#3a2e48;background:#fff4e0;border-radius:18px;flex-direction:column;max-width:min(720px,96vw);max-height:92vh;display:flex;overflow:hidden;box-shadow:0 10px 30px #0006}.panel-header{color:#3a2e48;background:#f2a541;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.panel-header h2{margin:0;font-size:20px}.panel-close{cursor:pointer;color:#3a2e48;background:0 0;border:0;padding:0 4px;font-size:28px;line-height:1}.recipe-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:14px;display:grid;overflow-y:auto}.recipe-card{text-align:left;cursor:pointer;font:inherit;color:inherit;background:#fffaf0;border:2px solid #e2c99f;border-radius:12px;flex-direction:column;gap:4px;min-height:44px;padding:10px;display:flex}.recipe-card:not(:disabled):hover{border-color:#f2a541}.recipe-card:disabled{cursor:default;opacity:.55}.recipe-card.locked{filter:grayscale()}.recipe-name{font-size:16px;font-weight:700}.recipe-row{font-size:14px}.recipe-profit{color:#2f7d32;font-weight:700}.recipe-warning{color:#b0363e}#hud{z-index:6;pointer-events:none;flex-wrap:wrap;align-items:center;gap:8px;display:flex;position:fixed;top:8px;left:8px;right:8px}#hud[hidden]{display:none}#hud>*{pointer-events:auto}.hud-pill{color:#fff4e0;background:#3a2e48e6;border-radius:999px;align-items:center;gap:6px;min-width:64px;padding:5px 12px 5px 8px;font-size:16px;font-weight:700;display:flex}.hud-icon{font-size:16px}.bump{animation:.35s ease-out bump}@keyframes bump{0%{transform:scale(1)}40%{color:#ffd84d;transform:scale(1.25)}to{transform:scale(1)}}.hud-level{background:#3a2e48e6;border-radius:999px;align-items:center;gap:6px;padding:4px 12px 4px 4px;display:flex}.hud-badge{color:#3a2e48;background:#f2a541;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:inline-flex}.hud-xp{background:#2b2236;border-radius:8px;width:120px;height:16px;position:relative;overflow:hidden}#hud-xp-fill{background:linear-gradient(90deg,#6cc56c,#9be29b);width:0;height:100%;transition:width .6s ease-out}#hud-xp-text{color:#fff4e0;text-shadow:0 1px 2px #000;justify-content:center;align-items:center;font-size:11px;display:flex;position:absolute;inset:0}.hud-shift{font:inherit;cursor:pointer;border:0;border-radius:999px;min-height:40px;margin-left:auto;padding:8px 16px;font-size:15px;font-weight:700}.hud-shift.closed{color:#3a2e48;background:#f2a541;animation:1.6s ease-in-out infinite pulse}.hud-shift.open{color:#1f3a1f;cursor:default;background:#6cc56c}@keyframes pulse{0%,to{box-shadow:0 0 #f2a541b3}50%{box-shadow:0 0 0 10px #f2a54100}}.level-up{text-align:center;align-items:center;gap:8px;min-width:260px;padding:20px 28px}.level-up-badge{background:#f2a541;border-radius:50%;justify-content:center;align-items:center;width:72px;height:72px;margin:0 auto;font-size:36px;font-weight:700;animation:.6s ease-out bump;display:flex}.level-up-title{margin:8px 0 0}.level-up-reward,.level-up-subtitle{margin:4px 0}.level-up-unlocks{margin:0;padding:0;font-weight:700;list-style:none}.primary-button{color:#3a2e48;font:inherit;cursor:pointer;background:#f2a541;border:0;border-radius:999px;min-height:44px;margin-top:10px;padding:10px 24px;font-weight:700}
