:root{--ink:#2f2925;--muted:#8c8279;--accent:#d9733b;--sheet:#f7f3ec;--card:#fff;--placeholder:#e6ddd1;--sky-top:#bcd9e8;--sky-bottom:#f4e3c9;--shadow:0 2px 6px #5a3c201a;color:var(--ink);-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Inter,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{overscroll-behavior:none;background:var(--sheet);height:100%;margin:0;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:0;padding:0}button:active{transform:scale(.97)}.muted{color:var(--muted)}.app{flex-direction:column;max-width:520px;height:100dvh;margin:0 auto;display:flex}.scene-area{background:linear-gradient(var(--sky-top), var(--sky-bottom));flex:none;height:56dvh;min-height:330px;position:relative}.scene{position:absolute;inset:0}.scene canvas{display:block}.hud{padding:calc(env(safe-area-inset-top) + 8px) 16px 0;pointer-events:none;position:absolute;inset:0 0 auto}.hud button{pointer-events:auto}.hud-top{justify-content:space-between;align-items:center;display:flex}.player{align-items:center;gap:10px;display:flex}.crest{background:var(--card);width:38px;height:38px;box-shadow:var(--shadow);border-radius:50%}.player-name{color:#5c534c;font-size:12px;font-weight:600}.power strong{font-size:21px;font-weight:800}.power span{color:var(--muted);font-size:11px;font-weight:600}.currencies{gap:8px;display:flex}.pill{background:#ffffffbf;border-radius:14px;align-items:center;gap:6px;height:28px;padding:0 10px;font-size:13px;font-weight:700;display:inline-flex}.plus{background:var(--accent);color:#fff;border-radius:50%;width:22px;height:22px;margin-right:-6px;font-weight:800;line-height:22px}.resources{background:#fff9;border-radius:13px;grid-template-columns:repeat(4,1fr);align-items:center;height:26px;margin-top:8px;padding:0 12px;font-size:12.5px;font-weight:700;display:grid}.resource{align-items:center;gap:6px;display:inline-flex}.dot{background:var(--placeholder);border-radius:4px;width:14px;height:14px;display:inline-block}.dot-gold{background:#e2b84a;border-radius:50%}.dot-gem{background:#e06a9a;transform:rotate(45deg)scale(.8)}.stage{left:50%;top:calc(env(safe-area-inset-top) + 92px);flex-direction:column;align-items:center;gap:6px;display:flex;position:absolute;transform:translate(-50%)}.stage-pill{background:#ffffffb8;border-radius:13px;height:26px;padding:0 14px;font-size:12px;font-weight:700;line-height:26px}.waves{gap:4px;display:flex}.wave{background:#fffc;border-radius:2px;width:17px;height:3.5px}.wave.done{background:#2f29258c}.skillbar{justify-content:center;align-items:center;gap:8px;display:flex;position:absolute;bottom:34px;left:0;right:0}.skill{background:var(--card);width:44px;height:44px;box-shadow:var(--shadow);border-radius:50%}.auto-pill{background:var(--card);height:28px;box-shadow:var(--shadow);border-radius:14px;align-items:center;gap:6px;padding:0 12px;font-size:12px;font-weight:700;display:inline-flex;position:absolute;right:16px}.auto-dot{background:#6dbb72;border-radius:50%;width:8px;height:8px}.sheet{z-index:1;background:var(--sheet);border-radius:24px 24px 0 0;flex-direction:column;flex:auto;gap:14px;margin-top:-24px;padding:18px 16px 12px;display:flex;position:relative;overflow-y:auto;box-shadow:0 -3px 12px #3b2a1a1a}.section-head{justify-content:space-between;align-items:baseline;margin-bottom:10px;display:flex}.section-head h2{margin:0;font-size:15px;font-weight:800}.section-head .muted{font-size:11px;font-weight:600}.grid{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.card{aspect-ratio:82/80;background:var(--card);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex}.card-icon{background:var(--placeholder);border-radius:50%;width:42px;height:42px}.card-label{color:var(--muted);font-size:9.5px;font-weight:600}.card-bar{background:var(--placeholder);border-radius:2px;width:34px;height:4px}.gatebar{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:auto;display:grid}.gate-info{flex-direction:column;gap:6px;font-size:14px;display:flex}.progress{background:var(--placeholder);border-radius:2px;width:78px;height:4px;overflow:hidden}.progress span{background:#5b7a9a;height:100%;display:block}.recruit{background:var(--accent);color:#fff;border-radius:26px;flex-direction:column;justify-content:center;align-items:center;min-width:178px;height:52px;display:flex;box-shadow:0 4px 10px #8a3c1040}.recruit-title{font-size:16px;font-weight:800}.recruit-sub{opacity:.85;font-size:11px;font-weight:600}.auto-round{background:var(--card);width:52px;height:52px;box-shadow:var(--shadow);color:var(--muted);border-radius:50%;justify-self:end;font-size:11px;font-weight:700}.coming-soon{text-align:center;padding-top:40px}.coming-soon h2{margin:0 0 6px;font-size:17px}.nav{background:var(--card);padding:6px 4px calc(env(safe-area-inset-bottom) + 6px);border-top:1px solid #ece5da;flex:none;grid-template-columns:repeat(5,1fr);display:grid}.tab{color:#9b9188;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:48px;font-size:10px;font-weight:600;display:flex}.tab-icon{background:var(--placeholder);border-radius:6px;width:22px;height:22px}.tab.active{color:var(--ink);font-weight:700}.tab.active .tab-icon{background:var(--accent);border-radius:50%;box-shadow:0 0 0 7px #fbe7da}.tab-label{white-space:nowrap}
