* { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html { background:var(--bg); }
body { color:var(--text); max-width:480px; margin:0 auto; min-height:100vh; }
.screen { display:none; min-height:100vh; animation:fadeIn 0.2s ease; position:relative; overflow-x:hidden; }
.screen.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.header { padding:1rem 1.2rem; display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:20; backdrop-filter:blur(14px); }
.back-btn { cursor:pointer; display:flex; align-items:center; gap:4px; font-family:'Nunito',sans-serif; transition:all 0.15s; }
.back-btn:hover { border-color:var(--blue); }
.header-title { color:var(--text); letter-spacing:-0.3px; }
.home-top { padding:1.5rem 1.2rem 1.2rem; text-align:center; }
.home-frase { font-size:13px; color:var(--text-sec); text-align:center; font-weight:500; font-style:italic; margin-top:10px; padding:0 1.2rem; line-height:1.5; min-height:20px; animation:fadeIn 0.5s ease; }
.review-banner { margin:0 1.2rem 1rem; background:linear-gradient(135deg, var(--orange-dim), rgba(168,85,247,0.08)); border:1px solid rgba(249,115,22,0.25); border-radius:var(--r); padding:1rem 1.1rem; display:flex; align-items:center; gap:12px; cursor:pointer; width:calc(100% - 2.4rem); transition:all 0.15s; }
.review-banner:hover { border-color:rgba(249,115,22,0.5); }
.review-title { font-size:14px; font-weight:700; color:var(--orange); display:flex; align-items:center; gap:8px; }
.review-sub { font-size:12px; color:var(--text-sec); margin-top:2px; }
.step-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:1rem 1.1rem; display:flex; align-items:center; gap:14px; cursor:pointer; transition:all 0.15s; position:relative; overflow:hidden; }
.step-card:hover { border-color:var(--step-color,var(--blue)); transform:translateY(-1px); box-shadow:0 4px 20px rgba(0,0,0,0.3); }
.sc1{--step-color:var(--blue)}.sc2{--step-color:var(--cyan)}.sc3{--step-color:var(--purple)}.sc4{--step-color:var(--orange)}.sc5{--step-color:var(--green)}
.step-num { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-family:'Fredoka',monospace; font-size:20px; font-weight:700; flex-shrink:0; }
.sn1{background:var(--blue-dim);color:var(--blue)}.sn2{background:var(--cyan-dim);color:var(--cyan)}.sn3{background:var(--purple-dim);color:var(--purple)}.sn4{background:var(--orange-dim);color:var(--orange)}.sn5{background:var(--green-dim);color:var(--green)}
.step-info { flex:1; }
.step-title { font-size:15px; font-weight:700; color:var(--text); letter-spacing:-0.2px; }
.step-desc { font-size:12px; color:var(--text-sec); margin-top:3px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-weight:500; }
.ai-pill { font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; letter-spacing:0.05em; }
.step-arrow { color:var(--text-ter); font-size:18px; font-weight:700; }
.info-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:1.1rem; margin-bottom:1rem; font-size:14px; color:var(--text); line-height:1.7; font-weight:500; }
.info-card-label { font-size:10px; font-weight:700; color:var(--text-ter); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:8px; }
.tip-card { border-radius:var(--rsm); padding:0.75rem 1rem; margin-bottom:1rem; font-size:13px; line-height:1.5; font-weight:500; }
.field-label { font-size:11px; margin-bottom:6px; margin-top:1rem; display:block; letter-spacing:0.05em; text-transform:uppercase; }
input[type=text], textarea, select {
  width:100%; border-radius:var(--rsm);
  padding:11px 13px; font-size:14px; color:var(--text); line-height:1.5; transition:border-color 0.15s;
}
select { appearance:none; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B82B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; }
select option { background:var(--surface2); }
textarea { resize:vertical; min-height:72px; }
.ai-btn { width:100%; margin-top:10px; padding:13px; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; font-family:'Nunito',sans-serif; transition:opacity 0.15s,transform 0.1s; letter-spacing:0.02em; }
.ai-btn:hover { opacity:0.88; }
.ai-btn:active { transform:scale(0.98); }
.ai-btn:disabled { opacity:0.35; cursor:not-allowed; }
.disc { font-size:11px; margin-top:6px; font-weight:500; }
.chat-section { margin-top:1.2rem; padding-top:1.2rem; display:none; }
.chat-label { font-size:10px; font-weight:700; color:var(--text-ter); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:12px; }
.chat-messages { display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
.msg { max-width:88%; padding:10px 14px; border-radius:14px; font-size:14px; line-height:1.65; word-break:break-word; font-weight:500; }
.msg-user { background:linear-gradient(135deg,var(--blue),var(--purple)); color:#FFF; align-self:flex-end; border-radius:14px 14px 4px 14px; }
.msg-ai { color:var(--text); align-self:flex-start; border-radius:14px 14px 14px 4px; }
.msg-typing { color:var(--text-ter); font-style:italic; font-size:13px; }
.drawer-overlay { position:fixed; inset:0; z-index:60; display:none; backdrop-filter:blur(4px); }
.drawer-overlay.open { display:block; }
.drawer { position:fixed; bottom:0; transform:translateX(-50%) translateY(100%); width:100%; max-width:480px; z-index:70; max-height:75vh; display:flex; flex-direction:column; transition:transform 0.3s ease; }
.drawer-handle { width:40px; height:4px; background:var(--border); border-radius:2px; margin:12px auto 0; flex-shrink:0; }
.drawer-header { padding:1rem 1.2rem 0.5rem; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.drawer-title { color:var(--text); }
.drawer-close { border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; }
.drawer-body { padding:0 1.2rem 1.5rem; overflow-y:auto; flex:1; }
.fc-suggest { margin-top:8px; display:inline-flex; align-items:center; gap:6px; border-radius:30px; font-size:12px; cursor:pointer; transition:background 0.15s; }
.chat-input-row { display:flex; gap:8px; align-items:flex-end; }
.chat-input-row textarea { min-height:44px; max-height:110px; resize:none; flex:1; border-radius:var(--rsm); padding:10px 12px; }
.send-btn { width:44px; height:44px; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:17px; transition:opacity 0.15s; }
.send-btn:hover { opacity:0.85; }
.send-btn:disabled { opacity:0.35; cursor:not-allowed; }
.review-hint { font-size:13px; color:var(--text-sec); margin-bottom:1.2rem; line-height:1.5; font-weight:500; }
.fc-empty { text-align:center; padding:3rem 1rem; font-size:14px; line-height:1.7; font-weight:500; }
.fc-empty-icon { font-size:36px; display:block; margin-bottom:12px; }
.fc-card { padding:1.1rem; margin-bottom:10px; transition:border-color 0.15s; }
.fc-concept { font-size:15px; font-weight:700; color:var(--text); margin-bottom:3px; letter-spacing:-0.2px; }
.fc-date { font-size:11px; color:var(--text-ter); margin-bottom:12px; font-weight:500; }
.fc-answer-box { font-size:14px; color:var(--text-sec); line-height:1.65; display:none; padding-top:10px; border-top:1px solid var(--border); margin-bottom:12px; word-break:break-word; font-weight:500; }
.fc-actions { display:flex; gap:7px; }
.fc-btn { flex:1; padding:9px 6px; font-size:13px; font-weight:700; cursor:pointer; font-family:'Nunito',sans-serif; display:flex; align-items:center; justify-content:center; gap:5px; transition:all 0.12s; }
.fc-btn:hover { background:var(--border); color:var(--text); }
.fc-btn-ok { border-color:rgba(16,185,129,0.3); }
.fc-btn-ok:hover { background:var(--green-dim); }
.fc-btn-no { border-color:rgba(249,115,22,0.3); }
.fc-btn-no:hover { background:var(--orange-dim); }
.fc-btn-del { max-width:44px; }
.fc-pending { font-size:12px; color:var(--orange); font-weight:700; margin-top:8px; }
.done-body { padding:3rem 1.2rem 4rem; text-align:center; }
.done-icon { font-size:56px; display:block; margin-bottom:1.2rem; }
.done-title { font-family:'Fredoka',monospace; font-size:28px; font-weight:700; letter-spacing:-1px; margin-bottom:10px; background:linear-gradient(135deg,var(--blue),var(--cyan),var(--purple)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.done-text { font-size:14px; color:var(--text-sec); line-height:1.65; margin-bottom:2rem; font-weight:500; }
.done-btns { display:flex; flex-direction:column; gap:10px; }
.done-primary { padding:14px; border:none; color:#FFF; font-size:15px; font-weight:700; cursor:pointer; font-family:'Nunito',sans-serif; transition:opacity 0.15s; }
.done-primary:hover { opacity:0.88; }
.done-sec { padding:13px; border:1px solid var(--border); background:transparent; font-size:14px; cursor:pointer; font-family:'Nunito',sans-serif; font-weight:600; transition:background 0.15s; }
.done-sec:hover { background:var(--surface); }
.check-item { margin-bottom:14px; }
.check-label { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.check-box { width:20px; height:20px; border-radius:6px; border:2px solid var(--border); background:var(--surface); cursor:pointer; flex-shrink:0; margin-top:1px; accent-color:var(--blue); }
.check-text { font-size:15px; color:var(--text); line-height:1.65; font-weight:400; font-family:'Nunito',sans-serif; letter-spacing:-0.1px; text-align:justify; }
.check-label:has(.check-box:checked) .check-text { color:var(--text-sec); text-decoration:line-through; opacity:0.6; }
.check-note { font-size:13px; color:var(--cyan); line-height:1.55; margin-top:8px; margin-left:0; font-weight:500; background:rgba(255,255,255,0.06); border:1px solid rgba(6,182,212,0.3); backdrop-filter:blur(8px); border-radius:var(--rsm); padding:0.7rem 0.9rem; }
.techniques-box { padding:0.7rem 0.9rem; margin:8px 0 4px 0; }
.techniques-label { font-size:10px; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:10px; }
.tech-label { display:flex; align-items:center; gap:8px; margin-bottom:5px; cursor:pointer; }
.tech-text { line-height:1.3; }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes celebIn { from{opacity:0;transform:translateY(10px) scale(0.95)} to{opacity:1;transform:none} }
@keyframes confettiFall { 0%{transform:translateY(0) rotate(0deg);opacity:1} 100%{transform:translateY(100vh) rotate(720deg);opacity:0} }
@keyframes burst { 0%{transform:translate(-50%,-50%) scale(0);opacity:1} 60%{opacity:1} 100%{transform:translate(calc(-50% + var(--tx)),calc(-50% + var(--ty))) scale(1);opacity:0} }
.streak-banner { background:linear-gradient(135deg,rgba(249,115,22,0.15),rgba(251,191,36,0.1)); border:1px solid rgba(249,115,22,0.3); border-radius:var(--r); padding:0.75rem 1rem; margin:0 1.2rem 1rem; display:flex; align-items:center; gap:10px; }
.streak-fire { font-size:22px; }
.streak-text { flex:1; }
.streak-num { font-family:'Fredoka',monospace; font-size:18px; font-weight:700; color:var(--orange); }
.streak-label { font-size:12px; color:var(--text-sec); font-weight:500; }
.stats-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; margin-bottom:1.5rem; }
.stat-card { padding:0.75rem; text-align:center; }
.stat-num { font-family:'Fredoka',monospace; font-size:22px; font-weight:700; background:linear-gradient(135deg,var(--blue),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.stat-label { font-size:11px; color:var(--text-ter); font-weight:600; text-transform:uppercase; letter-spacing:0.05em; margin-top:3px; }
.share-btn { width:100%; padding:13px; border:none; color:#FFF; font-size:14px; font-weight:700; cursor:pointer; font-family:'Nunito',sans-serif; transition:opacity 0.15s; display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:10px; }
.share-btn:hover { opacity:0.88; }
.deco { position:absolute; pointer-events:none; z-index:0; inset:0; overflow:hidden; }
.deco svg { position:absolute; top:0; left:0; width:100%; height:100%; }
.screen > *:not(.deco) { position:relative; z-index:1; }
.step-hero-top { padding:1.4rem 1.2rem 0.5rem; }
.step-hero-label { font-family:'Fredoka',monospace; font-size:10px; font-weight:400; letter-spacing:0.18em; color:var(--text-ter); text-transform:uppercase; margin-bottom:6px; }
.step-hero-name { font-family:'Fredoka',monospace; font-size:28px; font-weight:400; letter-spacing:0.06em; text-transform:uppercase; line-height:1.1; background:linear-gradient(135deg,var(--blue),var(--cyan),var(--purple)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.dot { width:9px; height:9px; border-radius:50%; cursor:pointer; transition:all 0.35s ease; flex-shrink:0; }
@keyframes pulseDot { 0%,100%{transform:scale(1);box-shadow:0 0 8px rgba(249,115,22,0.5)} 50%{transform:scale(1.2);box-shadow:0 0 16px rgba(249,115,22,0.9)} }
.guided-card { position:relative; overflow:hidden; }
.guided-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,var(--blue),var(--cyan),var(--purple)); }
.guided-instruction { font-family:'Nunito',sans-serif; letter-spacing:-0.1px; margin-bottom:1.4rem; }
.guided-note { line-height:1.6; margin-bottom:1rem; }
.guided-btn { margin:0 auto; padding:10px 32px; border:none; cursor:pointer; font-family:'Nunito',sans-serif; transition:all 0.2s; }
.guided-btn:active { transform:scale(0.98); }
.guided-next-btn { width:100%; padding:15px; border:none; background:linear-gradient(135deg,var(--blue),var(--purple)); color:#FFF; font-size:15px; cursor:pointer; font-family:'Nunito',sans-serif; transition:all 0.2s; letter-spacing:0.02em; }
.guided-next-btn:hover { opacity:0.88; transform:translateY(-1px); }
.guided-skip-btn { width:100%; padding:12px; border-radius:var(--rsm); cursor:pointer; font-family:'Nunito',sans-serif; transition:all 0.15s; letter-spacing:0.02em; }
.guided-skip-btn:hover { border-color:var(--text-sec); color:var(--text-sec); }
@keyframes flashGreen { 0%{background:var(--surface)} 30%{background:rgba(16,185,129,0.25);border-color:var(--green)} 100%{background:var(--surface)} }
@keyframes tickPop { 0%{transform:scale(0);opacity:0} 60%{transform:scale(1.3)} 100%{transform:scale(1);opacity:1} }
.tick-overlay { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:48px; z-index:10; animation:tickPop 0.4s ease forwards; pointer-events:none; }
.global-progress { display:flex; }
.gp-step { flex:1; transition:background 0.4s ease; }
.road-wrap { position:relative; width:100%; }
.road-guide { margin:12px 16px 0; display:flex; align-items:center; justify-content:center; gap:10px; font-size:17px; font-weight:800; color:var(--text); }
.masc { display:block; height:auto; pointer-events:none; user-select:none; -webkit-user-drag:none; }
#road-wrap { position:relative; }
.road-masc { position:absolute; width:74px; z-index:3; transition:left 1.6s cubic-bezier(.45,.05,.3,1), top 1.6s cubic-bezier(.45,.05,.3,1); }
.road-masc .masc { width:74px; animation:mascFloat 3.2s ease-in-out infinite; }
.hc-em { transform:none !important; }
.hc-em .masc { width:74px; margin-top:-14px; margin-right:18px; filter:drop-shadow(0 8px 10px rgba(20,33,58,0.15)); }
.hm-note .em .masc { width:58px; margin:-8px 0; }
.st-masc { width:58px; margin-left:auto; }
.st-head .st-dots { margin-left:8px; }
#ob-masc { position:absolute; inset:0; z-index:1; pointer-events:none; }
#ob-masc img { position:absolute; pointer-events:auto; cursor:pointer; filter:drop-shadow(0 10px 14px rgba(20,33,58,0.18)); animation:mascFloat 3.4s ease-in-out infinite; }
#ob-masc img.pop { animation:mascPop 0.6s cubic-bezier(.3,1.6,.5,1); }
@keyframes mascPop { 0% { transform:scale(1); } 40% { transform:scale(1.18) translateY(-10px); } 100% { transform:scale(1); } }
#done-masc { width:190px; margin:0 auto 6px; }
.masc-float { animation:mascFloat 3.2s ease-in-out infinite; }
.masc-jump { animation:mascJump 0.9s cubic-bezier(.3,1.6,.5,1) both, mascFloat 3.2s ease-in-out 0.9s infinite; }
@keyframes mascFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@keyframes mascJump { 0% { transform:translateY(30px) scale(0.6); opacity:0; } 60% { transform:translateY(-14px) scale(1.06); opacity:1; } 100% { transform:translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .masc-float, .masc-jump { animation:none; } }
.road-svg { position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; }
.node-wrap { position:absolute; display:flex; align-items:center; cursor:pointer; transform:translate(-50%,-50%); transition:transform 0.18s ease; }
.node-wrap:active { transform:translate(-50%,-50%) scale(0.9); }
.node-base { width:104px; height:104px; border-radius:50%; position:relative; display:flex; align-items:center; justify-content:center; transition:transform 0.2s ease; }
.node-wrap:hover .node-base { transform:translateY(-6px); }
.node-sphere { width:94px; height:94px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; position:relative; overflow:hidden; box-shadow: inset 0 -12px 20px rgba(0,0,0,0.4), inset 0 10px 18px rgba(255,255,255,0.3), 0 10px 24px rgba(0,0,0,0.5); }
.node-sphere::after { content:''; position:absolute; top:6px; left:12px; width:44px; height:26px; background:rgba(255,255,255,0.15); border-radius:50%; transform:rotate(-20deg); pointer-events:none; }
.node-sphere svg { width:34px; height:34px; filter:drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.node-base::after { content:''; position:absolute; bottom:-9px; left:50%; transform:translateX(-50%); width:64px; height:13px; background:rgba(0,0,0,0.5); border-radius:50%; filter:blur(7px); }
.node-active .node-sphere { animation:spherePulse 2.4s ease-in-out infinite; }
@keyframes spherePulse {
  0%,100% { box-shadow: inset 0 -12px 20px rgba(0,0,0,0.4), inset 0 10px 18px rgba(255,255,255,0.3), 0 0 0 0 var(--pulse-color); }
  50% { box-shadow: inset 0 -12px 20px rgba(0,0,0,0.4), inset 0 10px 18px rgba(255,255,255,0.3), 0 0 0 16px transparent; }
}
.node-num { font-family:'Fredoka',monospace; font-size:13px; font-weight:700; letter-spacing:0.04em; color:rgba(255,255,255,0.9); }
.node-label { font-size:13px; font-weight:700; color:#EEF0FF; text-align:center; letter-spacing:-0.2px; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.1); backdrop-filter:blur(8px); padding:4px 14px; border-radius:20px; text-shadow:0 1px 4px rgba(0,0,0,0.6); }
.node-desc { font-size:13px; text-align:center; max-width:120px; line-height:1.4; }
.node-star { position:absolute; top:-8px; right:-8px; width:28px; height:28px; background:linear-gradient(135deg,#FBBF24,#F97316); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; border:3px solid var(--bg); z-index:2; box-shadow:0 3px 10px rgba(249,115,22,0.5); }
.ob-overlay{position:fixed;inset:0;z-index:999;display:none;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:2.5rem 2rem;max-width:480px;margin:0 auto;overflow:hidden;}
.ob-icon{font-size:64px;margin-bottom:0.5rem;text-align:center;}
.ob-title{font-family:'Nunito',sans-serif;font-size:22px;font-weight:900;text-align:center;margin-bottom:0.6rem;color:var(--text);line-height:1.3;}
.ob-text{font-size:16px;text-align:center;line-height:1.6;font-weight:500;max-width:300px;margin-top:0.5rem;}
.ob-hl{color:var(--cyan);font-weight:700;}
.ob-dots{display:flex;gap:8px;margin-top:2rem;margin-bottom:1.2rem;}
.ob-dot{width:8px;height:8px;border-radius:50%;background:var(--border);transition:all 0.3s;}
.ob-dot.on{width:24px;border-radius:4px;}
#ob.w3 #ob-content{pointer-events:none}#ob.w3 .ob-btn{pointer-events:auto}#ob.w3 .ob-text div{text-shadow:0 1px 14px rgba(255,255,255,0.95)}
.ob-btn{width:100%;max-width:320px;padding:15px;border:none;color:#FFF;font-size:15px;font-weight:700;cursor:pointer;font-family:'Nunito',sans-serif;}

