:root{--bg-pure: #050609;--surface: rgba(255, 255, 255, .03);--surface-card: rgba(14, 18, 26, .7);--border-subtle: rgba(212, 175, 55, .18);--border-bright: rgba(212, 175, 55, .45);--gold-primary: #d4af37;--gold-light: #fef08a;--gold-amber: #f59e0b;--gold-glow: rgba(212, 175, 55, .35);--text-pure: #f5f2eb;--text-dim: #9ca3af;--text-muted: #6b7280;--font-header: "Cinzel", serif;--font-mono: "Fira Code", monospace;--font-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;--safe-top: env(safe-area-inset-top, 16px);--safe-bottom: env(safe-area-inset-bottom, 24px);--safe-left: env(safe-area-inset-left, 16px);--safe-right: env(safe-area-inset-right, 16px)}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}html,body{width:100%;height:100dvh;overflow:hidden;background-color:var(--bg-pure);color:var(--text-pure);font-family:var(--font-sans)}body{display:flex;justify-content:center;align-items:center;background:radial-gradient(circle at 50% 30%,#0d121c,#050609 85%);transition:background .8s ease}body.state-recovering{background:radial-gradient(circle at 50% 25%,#18140a,#050609 85%)}body.state-completed{background:radial-gradient(circle at 50% 30%,#1a170a,#050609 85%)}#app-viewport{width:100%;max-width:480px;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:var(--safe-top) var(--safe-left) calc(var(--safe-bottom) + 68px) var(--safe-right);position:relative}.app-header{width:100%;display:flex;justify-content:space-between;align-items:center;height:48px;padding:0 8px;flex-shrink:0}.brand-badge{display:flex;align-items:center;gap:8px}.brand-icon-mini{width:20px;height:20px;filter:drop-shadow(0 0 8px var(--gold-glow))}.brand-title{font-family:var(--font-header);font-size:15px;font-weight:700;letter-spacing:3px;color:var(--gold-primary)}.header-actions{display:flex;align-items:center;gap:8px}.icon-btn{background:rgba(255,255,255,.04);border:1px solid var(--border-subtle);border-radius:20px;padding:5px 12px;color:var(--text-dim);font-family:var(--font-mono);font-size:11px;letter-spacing:1px;display:flex;align-items:center;gap:6px;cursor:pointer;transition:all .2s ease}.icon-btn:active{transform:scale(.96);border-color:var(--gold-primary);color:var(--gold-primary)}.view-panel{display:none;width:100%;flex:1;flex-direction:column;justify-content:space-between;align-items:center;animation:fadeIn .4s cubic-bezier(.16,1,.3,1) forwards}.view-panel.active{display:flex}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.idle-center{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;text-align:center;gap:24px}.idle-pulse-wrapper{position:relative;display:flex;justify-content:center;align-items:center}.idle-pulse-halo{position:absolute;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(212,175,55,.25),rgba(212,175,55,0) 70%);animation:breatheHalo 3s ease-in-out infinite;pointer-events:none}@keyframes breatheHalo{0%,to{transform:scale(.92);opacity:.5}50%{transform:scale(1.15);opacity:.9}}.btn-recover-pulse{width:170px;height:170px;border-radius:50%;background:linear-gradient(135deg,#181d29,#0a0d14);border:2px solid var(--border-bright);box-shadow:0 0 32px rgba(212,175,55,.3),inset 0 0 20px rgba(0,0,0,.8);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;cursor:pointer;outline:none;transition:all .25s cubic-bezier(.16,1,.3,1)}.btn-recover-pulse:active{transform:scale(.93);border-color:var(--gold-light);box-shadow:0 0 48px rgba(245,158,11,.6)}.pulse-sigil{width:44px;height:44px;color:var(--gold-primary);filter:drop-shadow(0 0 10px var(--gold-glow))}.pulse-label{font-family:var(--font-header);font-size:17px;font-weight:700;letter-spacing:3px;color:var(--gold-primary)}.idle-motto{font-size:13px;color:var(--text-dim);line-height:1.5;max-width:280px}.idle-stats-badge{width:100%;padding:12px 18px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:18px;display:flex;justify-content:space-around;align-items:center;margin-bottom:8px}.stat-item{display:flex;flex-direction:column;align-items:center;gap:2px}.stat-val{font-family:var(--font-mono);font-size:16px;font-weight:700;color:var(--gold-primary)}.stat-lbl{font-size:11px;color:var(--text-muted);letter-spacing:.5px}.recovery-top{width:100%;display:flex;flex-direction:column;gap:8px;padding-top:4px}.progress-info{display:flex;justify-content:space-between;align-items:center;font-family:var(--font-mono);font-size:12px;color:var(--gold-primary)}.progress-track{width:100%;height:4px;background:rgba(255,255,255,.08);border-radius:2px;overflow:hidden}.progress-fill{height:100%;width:14%;background:linear-gradient(90deg,var(--gold-amber),var(--gold-primary));border-radius:2px;transition:width .4s cubic-bezier(.16,1,.3,1);box-shadow:0 0 8px var(--gold-glow)}.recovery-stage{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;width:100%;padding:0 16px;gap:16px}.stage-icon-wrap{width:90px;height:90px;border-radius:50%;background:rgba(212,175,55,.06);border:1px solid var(--border-bright);display:flex;justify-content:center;align-items:center;box-shadow:0 0 24px rgba(212,175,55,.15)}.stage-icon{width:48px;height:48px;color:var(--gold-primary)}.stage-title{font-size:26px;font-weight:800;letter-spacing:-.5px;color:var(--text-pure);line-height:1.25}.stage-hint{font-size:14px;color:var(--text-dim);line-height:1.5;max-width:320px}.stage-timer-badge{font-family:var(--font-mono);font-size:13px;color:var(--gold-amber);background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.25);padding:4px 12px;border-radius:12px;letter-spacing:1px}.recovery-actions{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:6px}.btn-done-dominant{width:100%;max-width:340px;min-height:58px;border-radius:29px;background:linear-gradient(135deg,#d4af37,#b89127);border:1px solid #fef08a;color:#05060a;font-family:var(--font-sans);font-size:17px;font-weight:800;letter-spacing:.5px;display:flex;justify-content:center;align-items:center;gap:10px;box-shadow:0 8px 24px rgba(212,175,55,.35);cursor:pointer;transition:all .2s cubic-bezier(.16,1,.3,1)}.btn-done-dominant:active{transform:scale(.96);box-shadow:0 4px 12px rgba(212,175,55,.2)}.btn-skip-subtle{background:none;border:none;color:var(--text-muted);font-size:12px;cursor:pointer;padding:6px 14px;border-radius:12px;letter-spacing:.5px;transition:color .2s ease}.btn-skip-subtle:hover,.btn-skip-subtle:active{color:var(--text-dim)}.completed-stage{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;width:100%;padding:0 16px;gap:20px}.completion-sigil-box{width:80px;height:80px;border-radius:50%;background:rgba(212,175,55,.1);border:2px solid var(--gold-primary);display:flex;justify-content:center;align-items:center;box-shadow:0 0 32px rgba(212,175,55,.4)}.completion-title{font-family:var(--font-header);font-size:24px;font-weight:700;letter-spacing:2px;color:var(--gold-primary)}.completion-sub{font-size:14px;color:var(--text-dim)}.resilience-card{width:100%;max-width:360px;background:var(--surface-card);border:1px solid var(--border-bright);border-radius:20px;padding:20px 18px;box-shadow:0 12px 36px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:14px}.resilience-header{font-family:var(--font-header);font-size:12px;letter-spacing:2px;color:var(--gold-amber);text-transform:uppercase;border-bottom:1px solid var(--border-subtle);padding-bottom:8px}.resilience-metrics{display:flex;justify-content:space-around;align-items:center}.resilience-metric-val{font-family:var(--font-mono);font-size:20px;font-weight:800;color:var(--text-pure)}.resilience-metric-lbl{font-size:11px;color:var(--text-dim);margin-top:2px}.resilience-quote{font-size:13px;color:var(--gold-primary);font-style:italic;line-height:1.4;padding-top:4px}.completion-actions{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:6px}.btn-finish-return{width:100%;max-width:340px;min-height:54px;border-radius:27px;background:linear-gradient(135deg,#d4af37,#b89127);border:1px solid #fef08a;color:#05060a;font-size:16px;font-weight:800;letter-spacing:.5px;cursor:pointer;box-shadow:0 8px 24px rgba(212,175,55,.35);transition:all .2s ease}.btn-finish-return:active{transform:scale(.96)}.btn-capture-save{background:rgba(255,255,255,.05);border:1px solid var(--border-subtle);color:var(--gold-primary);padding:8px 18px;border-radius:20px;font-size:13px;font-family:var(--font-mono);display:flex;align-items:center;gap:8px;cursor:pointer}.toast-msg{position:fixed;top:40px;left:50%;transform:translate(-50%) translateY(-20px);background:rgba(10,14,22,.95);border:1px solid var(--border-bright);color:var(--gold-light);font-family:var(--font-sans);padding:8px 18px;border-radius:20px;font-size:13px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.8);pointer-events:none;opacity:0;transition:all .3s cubic-bezier(.16,1,.3,1);z-index:100}.toast-msg.show{opacity:1;transform:translate(-50%) translateY(0)}@media(max-width:480px)and (max-height:480px)and (aspect-ratio:1/1){:root{--safe-top: 42px;--safe-bottom: 48px;--safe-left: 44px;--safe-right: 44px}body{border-radius:50%}#app-viewport{padding:var(--safe-top) var(--safe-left) calc(var(--safe-bottom) + 38px) var(--safe-right)}.app-header{height:36px;padding:0 20px}.brand-title{display:none}.btn-recover-pulse{width:140px;height:140px}.idle-pulse-halo{width:172px;height:172px}.idle-motto{display:none}.idle-stats-badge{padding:6px 12px;border-radius:14px}.stat-val{font-size:13px}.stat-lbl{font-size:9px}.recovery-stage{gap:10px}.stage-icon-wrap{width:62px;height:62px}.stage-icon{width:32px;height:32px}.stage-title{font-size:19px}.stage-hint{font-size:12px}.completed-stage{gap:8px}.completion-sigil-box{width:50px;height:50px}.completion-sigil-box svg{width:26px;height:26px}.completion-title{font-size:18px}.completion-sub{font-size:11px}.btn-done-dominant{min-height:48px;font-size:15px;max-width:250px}.btn-finish-return{min-height:44px;font-size:14px;max-width:250px;margin-bottom:4px}.btn-capture-save,.resilience-quote{display:none}.resilience-card{padding:8px 10px;gap:6px}.resilience-header{font-size:10px;padding-bottom:4px}.resilience-metric-val{font-size:16px}.resilience-metric-lbl{font-size:9px}}
