*,*:before,*:after{box-sizing:border-box}html,body{margin:0}img{max-width:100%}:root{--bg:#110f12;--g50:#171419;--g100:#221d24;--g200:#322b35;--g400:#675e6c;--g500:#8a808f;--g600:#a59ba9;--g700:#cdc4d0;--g900:#f6f0f2;--blue:#ff3b3b;--blue-press:#d42a2a;--blue-soft:#3a1a1d;--orange:#ff8a3d;--red:#ff3b3b;--font:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;color-scheme:dark}[hidden]{display:none!important}html,body{height:100%}body{background:var(--bg);color:var(--g900);font-family:var(--font);font-size:16px;-webkit-tap-highlight-color:transparent;overflow:hidden;touch-action:pan-x pan-y;letter-spacing:-.01em}#app{height:100%;max-width:480px;margin:0 auto;position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.screen{flex:1;display:flex;flex-direction:column;min-height:0}*{scrollbar-width:thin;scrollbar-color:var(--g200) transparent}*::-webkit-scrollbar{width:6px;height:6px;background:transparent}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:var(--g200);border-radius:3px}*::-webkit-scrollbar-thumb:hover,*::-webkit-scrollbar-thumb:active{background:var(--blue)}*::-webkit-scrollbar-button{display:none;width:0;height:0}*::-webkit-scrollbar-corner{background:transparent}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;letter-spacing:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.tnav{height:54px;display:flex;align-items:center;gap:6px;padding:env(safe-area-inset-top,0px) 8px 0;box-sizing:content-box;background:var(--bg);flex:none}.tnav .ib{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--g900)}.tnav .ib:active{background:var(--g100)}.tnav .brand{flex:1;display:flex;align-items:center;gap:8px;font-weight:700;font-size:17px;min-width:0}.logo{width:24px;height:24px;border-radius:7px;overflow:hidden;flex:none;background:#000}.logo img{display:block;width:100%;height:100%}.tnav svg{display:block}.toast{position:absolute;left:50%;bottom:110px;transform:translate(-50%);background:#2c262f;color:#fff;font-size:14px;padding:12px 18px;border-radius:14px;z-index:20;max-width:calc(100% - 48px);text-align:center;line-height:1.45;animation:fade .2s}.cta-wrap{padding:12px 20px calc(16px + env(safe-area-inset-bottom,0px));background:linear-gradient(to bottom,rgba(17,15,18,0),var(--bg) 18px);flex:none;display:flex;flex-direction:column;gap:8px}.cta{height:56px;border-radius:16px;background:var(--blue);color:#fff;font-weight:700;font-size:17px;width:100%;transition:transform .1s,background .15s}.cta:active{background:var(--blue-press);transform:scale(.985)}.cta:disabled{background:var(--blue-soft);color:#8a4a4e;cursor:default;transform:none}.cta.sub{background:var(--g100);color:var(--g700)}.cta.sub:active{background:var(--g200)}#hero{display:block;width:100%;height:80px;margin:0 0 12px}.name-body{flex:1;overflow-y:auto;padding:16px 24px 12px;display:flex;flex-direction:column;gap:28px}.name-body>:first-child{margin-top:auto}.name-body>:last-child{margin-bottom:auto}@media (max-height:700px){.name-body{gap:18px;padding-top:8px}#hero{height:60px;margin-bottom:6px}.name-body h1{font-size:24px}.lead{margin-top:4px;font-size:15px}.chips{margin-top:10px;gap:6px}.chip{padding:7px 12px;font-size:14px}#s-name .cta-wrap{gap:6px;padding-top:8px}#s-name .cta{height:50px}}h1{font-weight:700;font-size:26px;line-height:1.38;margin:0;text-wrap:balance;letter-spacing:-.02em}.lead{color:var(--g600);line-height:1.6;margin:8px 0 0;font-size:16px}.field label{display:block;font-size:14px;color:var(--g600);margin-bottom:8px;font-weight:500}#who{width:100%;box-sizing:border-box;background:var(--g100);border:2px solid transparent;border-radius:14px;padding:15px 16px;color:var(--g900);font:inherit;font-size:18px;font-weight:500}#who:focus{outline:none;border-color:var(--blue);background:var(--bg)}#who::placeholder{color:var(--g400)}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.chip{background:var(--g100);border-radius:999px;padding:8px 14px;font-size:15px;color:var(--g700);font-weight:500}.chip:active{background:var(--g200)}.chat-head{display:flex;align-items:center;gap:6px;padding:calc(10px + env(safe-area-inset-top,0px)) 20px 14px 8px;border-bottom:1px solid var(--g100);flex:none}.chat-head .ib{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--g900);flex:none}.chat-head .ib:active{background:var(--g100)}.chat-mode .tnav{display:none}.who-block{flex:1;min-width:0}.who-block small{display:block;font-size:13px;color:var(--g500)}.who-name{font-weight:700;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gauge{width:128px;flex:none;text-align:right}.gauge .lv{font-size:13px;color:var(--orange);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.bar{height:8px;background:var(--g100);border-radius:4px;overflow:hidden;margin-top:6px}.fill{height:100%;width:0;background:linear-gradient(90deg,#ffc342,var(--orange),var(--red));border-radius:4px;transition:width .35s ease}.hot .fill{animation:pulse .9s ease-in-out infinite}@keyframes pulse{50%{filter:saturate(1.6) brightness(1.1)}}#log{flex:1;overflow-y:auto;padding:18px 16px 10px;display:flex;flex-direction:column;gap:8px;min-height:0;background:var(--g50)}.empty{margin:auto;text-align:center;color:var(--g500);line-height:1.7;font-size:15px}.empty b{display:block;font-size:18px;color:var(--g900);margin-bottom:4px}.msg{display:flex;justify-content:flex-end;align-items:flex-end;gap:6px}.msg time{font-size:11px;color:var(--g500);font-variant-numeric:tabular-nums;flex:none}.bubble{background:var(--blue);color:#fff;border-radius:20px 20px 6px;padding:10px 14px;max-width:75%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:16px}.msg.new .bubble{animation:pop .22s ease-out}@keyframes pop{0%{transform:translateY(8px) scale(.94);opacity:0}}.chat-foot{padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px;background:var(--bg);border-top:1px solid var(--g100);flex:none}#doneBtn{height:52px;border-radius:16px;background:var(--blue);color:#fff;font-weight:700;font-size:17px;transition:transform .1s,background .15s}#doneBtn:active{background:var(--blue-press);transform:scale(.985)}#doneBtn:disabled{background:var(--blue-soft);color:#8a4a4e;transform:none;cursor:default}.inrow{display:flex;gap:8px;align-items:flex-end}#msg{flex:1;min-width:0;resize:none;background:var(--g100);border:0;border-radius:22px;padding:12px 16px;color:var(--g900);font:inherit;line-height:1.45;max-height:120px}#msg::placeholder{color:var(--g400)}#send{width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;flex:none;display:grid;place-items:center}#send:active{background:var(--blue-press)}.scrim{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:flex-end;z-index:10;animation:fade .2s}@keyframes fade{0%{opacity:0}}.sheet{background:var(--bg);width:100%;border-radius:24px 24px 0 0;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;animation:up .25s ease-out}@keyframes up{0%{transform:translateY(40px);opacity:.4}}.grab{width:40px;height:4px;border-radius:2px;background:var(--g200);margin:0 auto 14px}.sheet h2{font-weight:700;font-size:22px;margin:0;padding:0 24px}.sheet p{margin:6px 0 12px;color:var(--g600);font-size:15px;padding:0 24px}.opt{display:flex;gap:16px;align-items:center;text-align:left;padding:14px 24px}.opt:active{background:var(--g50)}.opt .ic{width:48px;height:48px;border-radius:14px;background:var(--g100);display:grid;place-items:center;font-size:24px;flex:none}.opt b{display:block;font-size:17px;font-weight:700}.opt span{font-size:14px;color:var(--g600)}.opt .chev{margin-left:auto;color:var(--g400);font-size:20px}.sheet .cta-wrap{padding-bottom:4px;background:none}#s-destroy{background:var(--bg)}.d-head{padding:6px 20px 8px;font-size:14px;color:var(--g600);display:flex;justify-content:space-between;gap:10px}.d-head b{color:var(--g900);font-weight:700}#dMode{color:var(--red);font-weight:800}#stage{flex:1;position:relative;min-height:0}#cv{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none;display:block}.hint{position:absolute;left:50%;top:14px;transform:translate(-50%);background:#28222bf0;color:#fff;border-radius:999px;padding:10px 18px;font-size:14px;white-space:nowrap;pointer-events:none;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;font-weight:500}.hint.top{top:14px;bottom:auto}.fin{background:var(--red);color:#fff;border-radius:999px;padding:5px 14px;font-weight:700;font-size:13px}.fin:active{background:var(--blue-press)}.hint em{font-style:normal;color:#ff6b5e;font-weight:700;letter-spacing:.05em}.done-body{flex:1;overflow-y:auto;padding:28px 24px 8px;display:flex;flex-direction:column;gap:24px}.done-ic{width:64px;height:64px;border-radius:20px;background:var(--g100);display:grid;place-items:center;font-size:34px}#doneTitle span{color:var(--blue)}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:var(--g50);border-radius:18px;padding:18px 4px}.stats div{text-align:center}.stats div+div{border-left:1px solid var(--g200)}.stats b{display:block;font-weight:700;font-size:22px;font-variant-numeric:tabular-nums}.stats small{color:var(--g500);font-size:13px}.today{color:var(--g600);font-size:15px;line-height:1.65;margin:0}.today b{color:var(--g900)}@media (prefers-reduced-motion:reduce){.msg.new .bubble,.sheet,.scrim,.toast,.hot .fill{animation:none}}.chat-mode body{position:fixed;top:0;right:0;bottom:0;left:0;overscroll-behavior:none}.kb-open .chat-foot{padding-bottom:10px}.tnav .ib.off{display:none}.tnav .ib.off+.brand{margin-left:12px}.comfort{margin:0;padding:18px 20px;background:var(--g100);border-radius:18px;font-size:18px;font-weight:600;line-height:1.5;color:var(--g900);border-left:4px solid var(--blue)}.log-h{font-size:15px;font-weight:700;color:var(--g700);margin:0 0 10px}.cta-wrap .cta.sub:disabled{background:var(--g100);color:var(--g400)}.av-body{flex:1;overflow-y:auto;padding:8px 20px 12px;display:flex;flex-direction:column;gap:18px}.av-body h1{font-size:24px}#avCanvas{display:block;width:100%;height:230px;background:var(--g50);border-radius:20px}.av-body .chips{margin-top:0}.chip.on{background:var(--blue);color:#fff}.haptic-layer{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}#stage{touch-action:none}
