*,*:before,*:after{box-sizing:border-box}html,body{margin:0;background:#f3f5f9;color:#16213e;font-family:Nunito,Noto Sans TC,sans-serif;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}a{color:#3047d9}a:hover{color:#1f33b0}button,input,textarea,select{font-family:inherit}input:focus,textarea:focus,select:focus{outline:3px solid #9AA9F5;outline-offset:1px}.page{max-width:480px;min-height:100dvh;margin:0 auto;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}@keyframes ccBob{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes ccHop{0%,to{transform:translateY(0) scale(1)}25%{transform:translateY(2px) scale(1.04,.96)}50%{transform:translateY(-16px) scale(.98,1.03)}75%{transform:translateY(0) scale(1.03,.97)}}@keyframes ccTilt{0%,to{transform:rotate(0)}50%{transform:rotate(-4deg)}}@keyframes ccPuff{0%,to{transform:scale(1)}50%{transform:scale(1.03,.98)}}@keyframes ccWag{0%,to{transform:rotate(-10deg)}50%{transform:rotate(12deg)}}@keyframes ccWagFast{0%,to{transform:rotate(-16deg)}50%{transform:rotate(18deg)}}@keyframes ccEar{0%,90%,to{transform:rotate(0)}94%{transform:rotate(-8deg)}}@keyframes ccBlink{0%,94%,to{transform:scaleY(1)}97%{transform:scaleY(.1)}}@keyframes ccPant{0%,to{transform:scaleY(1)}50%{transform:scaleY(1.15)}}@keyframes ccDroop{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(3px) rotate(-2deg)}}@keyframes ccVein{0%,to{transform:scale(1)}50%{transform:scale(1.18)}}@keyframes whPulse{0%,to{box-shadow:0 0 #9db0ff73}50%{box-shadow:0 0 0 16px #9db0ff00}}@keyframes whPop{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after,svg *{animation:none!important;transition:none!important}}.section-title{margin:0;font-size:21px;font-weight:900}.sub-title{font-size:13px;font-weight:800;color:#5b6478;letter-spacing:.5px}.muted{color:#5b6478}.back-header{display:flex;align-items:center;gap:4px;padding:14px 12px 6px}.back-header h1{margin:0;font-size:22px;font-weight:900}.back-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#16213e;border-radius:12px}.field{display:flex;flex-direction:column;gap:8px}.field label{font-size:14px;font-weight:800;color:#3b4560}.input{height:54px;border-radius:16px;border:2px solid #D3D9E6;background:#fff;padding:0 16px;font-size:17px;font-weight:700;color:#16213e;width:100%}.textarea{border-radius:16px;border:2px solid #D3D9E6;background:#fff;padding:14px 16px;font-size:15px;font-weight:600;color:#16213e;resize:none;width:100%}.btn-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;border-radius:18px;border:0;background:#3047d9;color:#fff;font-size:17px;font-weight:900;cursor:pointer;text-decoration:none}.btn-primary:disabled{opacity:.55;cursor:default}.btn-ghost{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;border-radius:18px;background:#fff;color:#16213e;border:2px solid #D3D9E6;font-size:16px;font-weight:900;cursor:pointer;text-decoration:none}.btn-danger{width:100%;min-height:52px;border-radius:18px;border:0;background:#fff;color:#b42318;font-size:15.5px;font-weight:800;cursor:pointer}.error{background:#fdecec;color:#8f1d14;border-radius:14px;padding:10px 14px;font-size:14px;font-weight:700;line-height:1.5}.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translate(-50%);background:#16213e;color:#fff;border-radius:999px;padding:12px 20px;font-size:15px;font-weight:800;white-space:nowrap;z-index:20;animation:toastIn .2s ease-out both;box-shadow:0 8px 24px #16213e40}.bottom-nav{position:sticky;bottom:0;margin-top:16px;background:#fff;border-top:1px solid #E2E6EF;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 8px calc(14px + env(safe-area-inset-bottom))}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:48px;justify-content:center;text-decoration:none;color:#5b6478;font-size:12px;font-weight:800}.bottom-nav a[aria-current=page]{color:#3047d9}.settings-card{background:#fff;border-radius:20px;display:flex;flex-direction:column}.settings-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 16px;color:#16213e;border:0;background:none;width:100%;text-align:left;cursor:pointer}.settings-row+.settings-row,.settings-row+.settings-edit,.settings-edit+.settings-row{border-top:1px solid #ECEFF5}.settings-row .label{font-size:15.5px;font-weight:800}.settings-row .value{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700;color:#5b6478}.settings-row select{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;cursor:pointer;font-size:16px}.settings-edit{display:flex;gap:8px;padding:10px 12px}.settings-edit .input{height:46px;font-size:16px}.settings-edit button{flex:none;min-height:46px;padding:0 14px;border-radius:12px;border:0;font-size:14px;font-weight:800;cursor:pointer}.switch{flex:none;width:52px;height:32px;border-radius:999px;background:#b9c1d3;position:relative;transition:background .15s ease}.switch:after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s ease}.switch[data-on=true]{background:#23874f}.switch[data-on=true]:after{transform:translate(20px)}.gate{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}.gate.dark{background:#16213e;color:#b9c3e6}@keyframes gmUp{0%{transform:translate(-50%,100%)}to{transform:translate(-50%)}}@keyframes gmFade{0%{opacity:0}to{opacity:1}}@keyframes gmPop{0%{opacity:0;transform:translate(-50%,10px) scale(.7)}30%{opacity:1;transform:translate(-50%,-6px) scale(1.08)}to{opacity:1;transform:translate(-50%) scale(1)}}@keyframes gmShine{0%{transform:translate(-120%) rotate(20deg)}60%,to{transform:translate(320%) rotate(20deg)}}.deck-page{color:#3a2414;background:radial-gradient(circle at 1px 1px,rgba(150,96,40,.16) 1px,transparent 0) 0 0 / 18px 18px,linear-gradient(180deg,#fff3e0,#fbe6cc)}.deck-page .section-title{color:#3a2414}.deck-header{margin:14px 14px 0;padding:14px;border-radius:22px;background:linear-gradient(180deg,#ffe2ba,#ffd39c);border:3px solid #F2B872;box-shadow:0 6px #e9a55a}.deck-avatar{flex:none;width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#fde6cf;box-shadow:0 0 0 3px #fff;overflow:hidden}.deck-track{height:10px;border-radius:99px;overflow:hidden;background:#78502826}.deck-track>div{height:100%;border-radius:99px;background:linear-gradient(90deg,#8e6bff,#c59bff);transition:width .3s ease}.deck-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}.deck-stat{display:flex;align-items:center;justify-content:center;gap:4px;padding:7px 2px;border-radius:12px;font-size:12.5px;font-weight:900;background:#fff9;white-space:nowrap}.flame{display:inline-block;width:12px;height:14px;border-radius:50%/60% 60% 40% 40%;background:radial-gradient(circle at 50% 75%,#ffe27a,#ff8a1f 60%,#ff4d2e)}.gem{display:inline-block;width:11px;height:11px;margin-right:4px;flex:none;background:linear-gradient(135deg,#c9a4ff,#7b4dff);transform:rotate(45deg) scale(.82);border-radius:3px;box-shadow:inset 0 0 0 1.5px #ffffff8c}.coin{display:inline-block;width:12px;height:12px;margin-right:4px;flex:none;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff2a8,#ffc531 55%,#d98e00);box-shadow:inset 0 0 0 1.5px #a05a0073}.gem.big{width:15px;height:15px;margin-right:6px}.coin.big{width:16px;height:16px;margin-right:6px}.deck-pet{margin:14px 14px 0;border-radius:24px;padding:14px 16px 12px;display:flex;align-items:center;gap:6px;border:3px solid rgba(242,184,114,.55);transition:background .3s ease}.deck-pet .speech{flex:1;background:#fff;border-radius:18px;padding:12px 14px;font-size:14.5px;font-weight:700;line-height:1.5;position:relative;box-shadow:0 3px #78461414}.deck-pet .speech:after{content:"";position:absolute;right:-8px;top:50%;margin-top:-8px;border:8px solid transparent;border-left-color:#fff;border-right:0}.deck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 14px}.deck-head{grid-column:1 / -1;display:flex;align-items:center;gap:10px;margin:18px 4px 2px;font-size:13px;font-weight:900;letter-spacing:.14em;color:#8a6a50}.deck-head:before,.deck-head:after{content:"";flex:1;height:2px;border-radius:2px;background:#78502826}.deck-empty{grid-column:1 / -1;text-align:center;font-size:13.5px;font-weight:700;color:#8a6a50;padding:6px 0 2px}.deck-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:28px 12px 14px;min-height:236px;cursor:pointer;font:inherit;color:#3a2414;border-radius:18px;background:linear-gradient(180deg,#fffdf8,#fff4e6);border:4px solid var(--c);box-shadow:0 0 0 3px var(--soft),0 8px 18px #78461429;margin:3px;width:calc(100% - 6px)}.deck-card[data-done=true]{background:linear-gradient(180deg,#f3ebdf,#eadfcf)}.deck-card:focus-visible{outline:3px solid #3A2414;outline-offset:4px}.deck-card .shine{position:absolute;top:-40%;left:0;width:40%;height:180%;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:gmShine 3.2s ease-in-out infinite}.deck-rank{position:absolute;top:0;left:50%;transform:translate(-50%);padding:3px 14px 4px;border-radius:0 0 10px 10px;font-size:11.5px;font-weight:900;letter-spacing:.08em;color:#fff;background:var(--c);white-space:nowrap}.deck-icon{flex:none;width:84px;height:84px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 50% 38%,#FFFFFF 0%,var(--soft) 70%);box-shadow:0 0 0 3px #fff,0 0 0 6px var(--soft),inset 0 -6px #7846140f}.deck-title{font-size:14.5px;font-weight:900;line-height:1.3;overflow-wrap:anywhere}.deck-meta{font-size:12px;font-weight:700;color:#8a6a50;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.deck-bar{display:block;width:100%;height:8px;border-radius:99px;overflow:hidden;background:#78502826}.deck-bar>span{display:block;height:100%;border-radius:99px;background:var(--c);transition:width .3s ease}.deck-reward{display:flex;align-items:center;font-size:12.5px;font-weight:900;margin-top:auto}.deck-reward .coin{margin-left:10px}.deck-stamp{position:absolute;top:66px;left:50%;transform:translate(-50%) rotate(-14deg);padding:4px 14px;border:3px solid #E5484D;border-radius:10px;color:#e5484d;font-size:18px;font-weight:900;letter-spacing:.2em;background:#ffffffb3;pointer-events:none}.deck-penalty{grid-column:1 / -1;position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;margin:3px;padding:26px 14px 14px;border-radius:18px;color:#3a2414;background:linear-gradient(180deg,#fff6f2,#ffe4dc);border:4px solid #1E1414;box-shadow:0 0 0 3px #e5484d,0 8px 18px #78141438}.deck-penalty .deck-rank{background:#1e1414;color:#ff6b6b;letter-spacing:.18em}.deck-penalty .deck-icon{width:68px;height:68px;--soft: #FFD5D5;box-shadow:0 0 0 3px #fff,0 0 0 5px #e5484d}.deck-penalty .kind{font-size:11.5px;font-weight:900;letter-spacing:.06em;color:#c62f35}.deck-penalty .title{font-size:16px;font-weight:900;line-height:1.3;overflow-wrap:anywhere}.deck-penalty .meta{font-size:12px;font-weight:700;color:#8a6a50}.deck-penalty .act{flex:none;min-width:76px;min-height:48px;padding:0 14px;border-radius:14px;border:0;cursor:pointer;font:inherit;font-size:15px;font-weight:900;color:#fff;background:#e5484d;box-shadow:inset 0 -4px #0003}.deck-penalty .act:disabled{opacity:.55;cursor:default}.deck-penalty .hold{flex:none;padding:8px 10px;border-radius:12px;font-size:13px;font-weight:900;color:#fff;background:#1e1414;text-align:center;line-height:1.3}.deck-penalty .deck-stamp{top:auto;bottom:18px;left:auto;right:14px;transform:rotate(-14deg)}.deck-add{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;margin:18px 14px 0;border:2.5px dashed #D9A86E;border-radius:18px;text-decoration:none;color:#b4561c;font-weight:900;font-size:15px;background:#ffffff73}.deck-add:hover{color:#8e3f10}.deck-toast{position:fixed;left:50%;top:calc(110px + env(safe-area-inset-top));transform:translate(-50%);white-space:nowrap;padding:12px 20px;border-radius:99px;font-size:16px;font-weight:900;z-index:60;color:#fff;background:#f2702b;box-shadow:0 8px 24px #00000040;animation:gmPop .5s ease-out both}.sheet-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#0a0c1e8c;animation:gmFade .18s ease-out}.sheet{position:fixed;left:50%;bottom:0;z-index:41;width:100%;max-width:480px;max-height:86dvh;overflow-y:auto;transform:translate(-50%);padding:12px 18px calc(26px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;color:#3a2414;background:linear-gradient(180deg,#fff8ee,#fbe9d2);animation:gmUp .24s cubic-bezier(.2,.9,.3,1.1);box-shadow:0 -10px 40px #0000004d}.sheet .grip{width:44px;height:5px;border-radius:99px;background:#00000026;margin:0 auto 14px}.sheet .banner{display:flex;align-items:center;gap:14px;padding:14px;border-radius:18px;background:var(--soft)}.sheet .banner-icon{flex:none;width:68px;height:68px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 50% 38%,#FFFFFF 0%,#FFFFFF 40%,var(--soft) 100%);box-shadow:0 0 0 3px var(--c)}.sheet .kind{font-size:12px;font-weight:900;letter-spacing:.08em;color:var(--c)}.sheet .box{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding:14px;border-radius:16px;background:#ffffffb3}.sheet .box-label{font-size:12.5px;font-weight:900;letter-spacing:.04em;color:#8a6a50}.sheet .bar{flex:1;height:12px;border-radius:99px;overflow:hidden;background:#78502826}.sheet .bar>div{height:100%;border-radius:99px;background:var(--c);transition:width .3s ease}.sheet .dot{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;border:2px dashed rgba(120,80,40,.2);color:transparent}.sheet .dot[data-state=past]{border-style:solid;background:#78502814}.sheet .dot[data-state=today]{border-color:var(--c)}.sheet .dot[data-state=done]{border:0;background:var(--c);color:#fff}.sheet .prize{flex:1;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:14px;font-size:15px;font-weight:900;background:#fff;box-shadow:0 2px #0000000f}.sheet .btn2{flex:1;min-height:52px;border-radius:16px;cursor:pointer;font:inherit;font-size:15.5px;font-weight:900;color:#3a2414;background:transparent;border:2.5px solid rgba(120,80,40,.15)}.sheet .btn1{flex:2;min-height:52px;border:0;border-radius:16px;cursor:pointer;font:inherit;font-size:16px;font-weight:900;color:#fff;background:linear-gradient(180deg,#ff9b4a,#f2702b);box-shadow:inset 0 -4px #0000002e}.sheet .btn1:disabled{opacity:.55;cursor:default}.sheet .undo{align-self:center;margin-top:10px;background:none;border:0;padding:8px;cursor:pointer;font:inherit;font-size:13.5px;font-weight:800;color:#8a6a50;text-decoration:underline}@keyframes sysIn{0%{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes sysGlow{0%,to{box-shadow:0 0 14px #4fe3ff8c,inset 0 0 22px #4fe3ff2e}50%{box-shadow:0 0 26px #4fe3ffd9,inset 0 0 30px #4fe3ff4d}}@keyframes sysCaret{0%,49%{opacity:1}50%,to{opacity:0}}.sys-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));background:radial-gradient(120% 80% at 50% 30%,#0a1e46fb,#030818fc 70%);animation:gmFade .25s ease-out}.sys-window{width:100%;max-width:420px;position:relative;padding:18px;border-radius:6px;color:#ddf6ff;background:linear-gradient(180deg,#0e2452f5,#081434f5);border:2px solid #4FE3FF;animation:sysIn .3s ease-out,sysGlow 2.4s ease-in-out infinite;font-family:Nunito,Noto Sans TC,ui-monospace,sans-serif}.sys-window:before,.sys-window:after{content:"";position:absolute;left:10px;right:10px;height:1px;background:#4fe3ff73}.sys-window:before{top:6px}.sys-window:after{bottom:6px}.sys-head{display:flex;align-items:center;justify-content:center;gap:10px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid rgba(79,227,255,.35);font-size:19px;font-weight:900;letter-spacing:.3em;color:#8ff0ff;text-shadow:0 0 10px rgba(79,227,255,.9)}.sys-head .count{position:absolute;right:16px;font-size:12px;letter-spacing:.05em;color:#6fb7d0;text-shadow:none}.sys-body{display:flex;gap:12px;align-items:flex-start}.sys-lines{flex:1;min-height:120px;display:flex;flex-direction:column;gap:10px;font-size:16px;font-weight:800;line-height:1.6;overflow-wrap:anywhere}.sys-lines .warn{color:#ff8a8a;text-shadow:0 0 8px rgba(255,90,90,.6)}.sys-lines .hint{font-size:13.5px;font-weight:700;color:#9cc8da}.sys-caret{display:inline-block;width:9px;height:1.1em;margin-left:2px;vertical-align:-3px;background:#8ff0ff;animation:sysCaret 1s step-end infinite}.sys-pet{flex:none;width:96px;display:flex;justify-content:center;filter:saturate(.8) drop-shadow(0 0 8px rgba(79,227,255,.35))}.sys-actions{display:flex;gap:10px;margin-top:18px}.sys-btn{flex:1;min-height:50px;border-radius:6px;cursor:pointer;font:inherit;font-size:16px;font-weight:900;letter-spacing:.2em;color:#ddf6ff;background:#4fe3ff1f;border:2px solid #4FE3FF;box-shadow:0 0 12px #4fe3ff73}.sys-btn.alt{border-color:#ff6b6b;background:#ff6b6b1f;box-shadow:0 0 12px #ff6b6b66}.sys-btn:disabled{opacity:.5;cursor:default}.sys-error{margin-top:12px;font-size:13.5px;font-weight:800;color:#ffb4b4}.stepper{display:flex;align-items:center;gap:12px}.stepper button{width:48px;height:48px;border-radius:14px;border:2px solid #D3D9E6;background:#fff;cursor:pointer;font-size:22px;font-weight:900;color:#16213e;display:flex;align-items:center;justify-content:center}.stepper button:disabled{opacity:.4;cursor:default}.stepper output{min-width:84px;text-align:center;font-size:18px;font-weight:900}.icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.icon-pick{aspect-ratio:1;border-radius:18px;border:2.5px solid #E2E6EF;background:#fff;cursor:pointer;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:800;color:#5b6478}.icon-pick[aria-checked=true]{border-color:#3047d9;background:#e3e8ff;color:#2335a8;box-shadow:0 0 0 2px #3047d9}.list-row{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 12px 8px 16px}.list-row+.list-row{border-top:1px solid #ECEFF5}.list-row .text{flex:1;min-width:0;font-size:15px;font-weight:800;overflow-wrap:anywhere}.tag{flex:none;font-size:11.5px;font-weight:900;padding:3px 8px;border-radius:99px}.tag.abstain{color:#8f1d14;background:#fdecec}.tag.extra{color:#6e4e00;background:#fff1c9}.icon-btn{flex:none;min-width:44px;min-height:44px;border-radius:12px;border:0;background:none;cursor:pointer;color:#b42318;font-size:14px;font-weight:800;padding:0 8px}.seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:#f3f5f9;border-radius:14px;padding:4px}.seg button{min-height:40px;border-radius:10px;border:0;background:none;cursor:pointer;font-size:14px;font-weight:800;color:#5b6478}.seg button[aria-pressed=true]{background:#fff;color:#16213e;box-shadow:0 1px 3px #0000001f}@keyframes spIn{0%{opacity:0;transform:translateY(24px) scale(.8) rotate(-4deg)}60%{opacity:1;transform:translateY(-6px) scale(1.04) rotate(1deg)}to{opacity:1;transform:none}}@keyframes spBurst{0%{opacity:0;transform:scale(.4)}70%{opacity:1;transform:scale(1.12)}to{transform:scale(1)}}@keyframes spRays{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes spTick{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}.deck-surprise{grid-column:1 / -1;position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;margin:3px;padding:26px 14px 14px;border-radius:18px;color:#3a2414;text-align:left;cursor:pointer;font:inherit;width:calc(100% - 6px);background:linear-gradient(180deg,#fffbea,#ffedb8);border:4px solid var(--c);box-shadow:0 0 0 3px #ffd65c,0 8px 18px #a0640040}.deck-surprise:focus-visible{outline:3px solid #3A2414;outline-offset:4px}.deck-surprise .deck-rank{background:linear-gradient(90deg,#e59a12,#ffc531,#e59a12);color:#3a2414;letter-spacing:.14em}.deck-surprise .deck-icon{width:68px;height:68px;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--c)}.deck-surprise .kind{font-size:11.5px;font-weight:900;letter-spacing:.06em;color:#b36f00}.deck-surprise .title{font-size:16px;font-weight:900;line-height:1.3;overflow-wrap:anywhere}.deck-surprise .ribbon{position:absolute;top:12px;right:-30px;width:110px;padding:3px 0;transform:rotate(38deg);text-align:center;font-size:12px;font-weight:900;letter-spacing:.3em;color:#fff;background:linear-gradient(180deg,#f2a818,#d48a00);box-shadow:0 2px 4px #78460059;text-shadow:0 1px 0 rgba(0,0,0,.25)}.deck-surprise .timer{flex:none;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:72px;margin-top:10px;padding:6px 10px;border-radius:12px;background:#3a2414;color:#ffd65c;font-size:19px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1.1}.deck-surprise .timer small{font-size:10.5px;font-weight:800;color:#e8c98a;letter-spacing:.1em}.deck-surprise[data-state=live] .timer{animation:spTick 1s ease-in-out infinite}.deck-surprise .deck-stamp{top:auto;bottom:18px;left:auto;right:14px;transform:rotate(-14deg)}.deck-surprise[data-state=expired]{filter:grayscale(1);opacity:.62;box-shadow:0 0 0 3px #d9d9d9,0 4px 10px #0000001f}.deck-surprise[data-state=expired] .timer{font-size:14px;color:#fff;background:#7a7a7a;padding:10px}.deck-surprise[data-state=done]{background:linear-gradient(180deg,#f3ebdf,#eadfcf)}.surprise-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));background:#1e1204d6;animation:gmFade .2s ease-out}.surprise-scrim:before{content:"";position:absolute;left:50%;top:46%;width:900px;height:900px;pointer-events:none;background:repeating-conic-gradient(rgba(255,214,92,.14) 0 10deg,transparent 10deg 20deg);-webkit-mask:radial-gradient(circle,#000 0%,transparent 60%);mask:radial-gradient(circle,#000 0%,transparent 60%);transform:translate(-50%,-50%);animation:spRays 24s linear infinite}.surprise-pop{position:relative;width:100%;max-width:340px;display:flex;flex-direction:column;gap:16px}.surprise-pop .burst{align-self:center;padding:8px 20px;border-radius:99px;font-size:22px;font-weight:900;letter-spacing:.08em;color:#3a2414;background:linear-gradient(180deg,#ffe27a,#ffc531);border:3px solid #3A2414;box-shadow:0 5px #3a2414;animation:spBurst .45s cubic-bezier(.2,.9,.3,1.2) both}.surprise-pop .deck-surprise.pop{flex-direction:column;text-align:center;gap:10px;padding:34px 18px 18px;cursor:default;margin:0;width:100%;animation:spIn .55s cubic-bezier(.2,.9,.3,1.1) .1s both}.surprise-pop .deck-surprise.pop .deck-icon{width:96px;height:96px}.surprise-pop .deck-surprise.pop .title{font-size:19px}.surprise-pop .deck-surprise.pop .timer{flex-direction:row;gap:8px;align-items:baseline;font-size:22px;margin-top:2px}.surprise-pop button{flex:1;min-height:52px;border-radius:16px;cursor:pointer;font:inherit;font-size:16px;font-weight:900}.surprise-pop .later{flex:1;color:#fff3d6;background:transparent;border:2.5px solid rgba(255,243,214,.5)}.surprise-pop .go{flex:2;border:0;color:#3a2414;background:linear-gradient(180deg,#ffe27a,#ffb800);box-shadow:inset 0 -4px #7846004d}.deck-toast.gold{color:#3a2414;background:linear-gradient(180deg,#ffe27a,#ffc531);border:3px solid #3A2414;white-space:normal;width:max-content;max-width:calc(100vw - 32px);text-align:center;line-height:1.4}.notify-hint{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;font-size:14px;font-weight:700;line-height:1.6;color:#3b4560}.notify-hint b{color:#16213e}.settings-row .sub{display:block;font-size:12.5px;font-weight:600;color:#5b6478;margin-top:2px}.deck-cardbox .deck-rank{letter-spacing:.14em}.deck-cardbox .ribbon{position:absolute;top:12px;right:-30px;width:104px;padding:2px 0;transform:rotate(38deg);text-align:center;font-size:11px;font-weight:900;letter-spacing:.24em;color:#fff;background:linear-gradient(180deg,#2dbb7e,#17865a);box-shadow:0 2px 4px #0a503259;text-shadow:0 1px 0 rgba(0,0,0,.25);pointer-events:none}.cards-offline{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;gap:6px;margin:14px 4px -10px;font-size:12.5px;font-weight:800;color:#8a6a50}.sheet a.btn1{display:flex;align-items:center;justify-content:center;text-decoration:none}.cardbox-decks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.cardbox-decks li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:12px;background:#fff;font-size:14.5px;font-weight:800}.cardbox-decks .name{min-width:0;overflow-wrap:anywhere}.cardbox-decks .due{flex:none;font-weight:900;color:var(--c)}@keyframes deckSpin{to{transform:rotate(360deg)}}.deck-refresh{flex:none;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;cursor:pointer;color:#b4561c;background:#fff9}.deck-refresh:focus-visible{outline:3px solid #3A2414;outline-offset:2px}.deck-refresh:disabled{cursor:default}.deck-refresh:disabled svg{animation:deckSpin .8s linear infinite}.ribbon-clip{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;border-radius:14px;pointer-events:none}.deck-card.stamping,.deck-penalty.stamping,.deck-surprise.stamping{overflow:visible;z-index:3}.stamp-hit{animation:stampSquash .42s cubic-bezier(.3,1.6,.5,1)}@keyframes stampSquash{0%{transform:scale(1)}18%{transform:scale(1.05,.9) translateY(4px)}40%{transform:scale(.98,1.03) rotate(-1.2deg)}60%{transform:scale(1.01,.99) rotate(.8deg)}to{transform:none}}@keyframes stampDrop{0%{transform:translate(-50%) translateY(-320px) rotate(-40deg) scale(3);opacity:0;animation-timing-function:cubic-bezier(.55,0,.75,.2)}10%{opacity:1}62%{transform:translate(-50%) translateY(0) rotate(-14deg) scale(1.18,1.05);opacity:1;animation-timing-function:cubic-bezier(.3,1.8,.5,1)}to{transform:translate(-50%) translateY(0) rotate(-14deg) scale(1);opacity:1}}@keyframes stampDropSide{0%{transform:translateY(-320px) rotate(-40deg) scale(3);opacity:0;animation-timing-function:cubic-bezier(.55,0,.75,.2)}10%{opacity:1}62%{transform:translateY(0) rotate(-14deg) scale(1.18,1.05);opacity:1;animation-timing-function:cubic-bezier(.3,1.8,.5,1)}to{transform:translateY(0) rotate(-14deg) scale(1);opacity:1}}@keyframes stampFade{0%{opacity:0}to{opacity:1}}.deck-stamp.stamp-wait{opacity:0}.deck-stamp.stamp-drop{animation:stampDrop .8s both}.deck-penalty .deck-stamp.stamp-drop,.deck-surprise .deck-stamp.stamp-drop{animation-name:stampDropSide}.stamp-fx{position:absolute;pointer-events:none}.stamp-shadow{width:96px;height:22px;margin:-11px 0 0 -48px;border-radius:50%;opacity:0;background:radial-gradient(rgba(58,36,20,.35),transparent 70%);animation:stampShadow .5s cubic-bezier(.55,0,.75,.2) both}@keyframes stampShadow{0%{opacity:0;transform:scale(.2)}90%{opacity:1;transform:scale(1.1)}to{opacity:0;transform:scale(1.2)}}.stamp-ink{width:0;height:0}.stamp-ink i{position:absolute;width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);border-radius:50%;background:#e5484d;opacity:0;animation:stampSplat .55s ease-out both}@keyframes stampSplat{0%{transform:translate(0) scale(.4);opacity:.95}to{transform:translate(var(--x),var(--y)) scale(1);opacity:0}}.stamp-ring{width:104px;height:44px;margin:-22px 0 0 -52px;border-radius:14px;border:3px solid #E5484D;opacity:0;animation:stampRing .45s ease-out both}@keyframes stampRing{0%{transform:scale(.6);opacity:.6}to{transform:scale(1.5);opacity:0}}.stamp-gain{z-index:1;transform:translate(-50%);white-space:nowrap;font-size:16px;font-weight:900;color:#f2702b;text-shadow:0 2px 0 #FFFFFF,0 0 6px #FFFFFF;opacity:0;animation:stampGain 1s .12s ease-out both}.stamp-gain b{color:#c98a00;margin-left:8px}@keyframes stampGain{0%{opacity:0;transform:translate(-50%,16px) scale(.8)}25%{opacity:1;transform:translate(-50%) scale(1.1)}to{opacity:0;transform:translate(-50%,-46px) scale(1)}}@media(prefers-reduced-motion:reduce){.deck-stamp.stamp-drop,.deck-penalty .deck-stamp.stamp-drop,.deck-surprise .deck-stamp.stamp-drop{animation:stampFade .3s both!important}.stamp-fx{display:none}}.scope-badges{display:flex;flex-wrap:wrap;gap:6px}.scope-badge{padding:2px 9px;border-radius:99px;font-size:12px;font-weight:800;background:#e3e8ff;color:#2335a8}.scope-badge[data-scope=cards]{background:#d3f2df;color:#17865a}.scope-badge[data-scope=notes]{background:#fff0d1;color:#a0620a}.scope-badge[data-scope=flow]{background:#f1e3ff;color:#7a35c2}.scope-picks{display:flex;flex-wrap:wrap;gap:8px}.scope-pick{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:14px;cursor:pointer;background:#fff;border:2px solid #DDE2EE;font-size:15px;font-weight:800;color:#16213e}.scope-pick:has(input:checked){border-color:#3047d9;background:#f1f4ff}.scope-pick input{width:18px;height:18px;margin:0;accent-color:#3047D9}.scope-hint{margin:0;font-size:13px;font-weight:600;color:#5b6478;line-height:1.55}.goal-card{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:20px;background:#fff;color:#16213e;text-decoration:none;border:2px solid transparent}.goal-card:hover{color:#16213e;border-color:#d3d9e6}.goal-card-title{font-size:16.5px;font-weight:900;overflow-wrap:anywhere}.goal-card-desc{font-size:13px;font-weight:600;color:#5b6478;line-height:1.5;overflow-wrap:anywhere}.goal-bar{flex:1;display:block;height:10px;border-radius:99px;overflow:hidden;background:#e2e6ef}.goal-bar.big{height:12px}.goal-bar>span{display:block;height:100%;border-radius:99px;background:#3047d9;transition:width .3s ease}.goal-count{flex:none;font-size:13.5px;font-weight:900;color:#3b4560;font-variant-numeric:tabular-nums}.goal-empty{padding:18px 16px;border-radius:18px;background:#fff;font-size:14px;font-weight:700;color:#5b6478;text-align:center;line-height:1.55}.goal-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border-radius:18px;border:0;background:#e3e8ff;color:#2335a8;font-size:15px;font-weight:900;cursor:pointer}.goal-depths{display:flex;flex-wrap:wrap;gap:6px}.goal-depths span{padding:4px 10px;border-radius:99px;font-size:12.5px;font-weight:900;font-variant-numeric:tabular-nums}.goal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 16px 10px}.goal-switch{display:flex;align-items:center;gap:8px;min-height:44px;border:0;background:none;padding:0;cursor:pointer;font-size:14px;font-weight:800;color:#3b4560}.goal-edit-btn{min-height:40px;padding:0 16px;border-radius:12px;border:2px solid #D3D9E6;background:#fff;cursor:pointer;font-size:14px;font-weight:800;color:#16213e}.goal-edit-btn[aria-pressed=true]{border-color:#3047d9;background:#3047d9;color:#fff}.goal-section{background:#fff;border-radius:20px;overflow:hidden}.goal-section-head{display:flex;align-items:center;gap:8px;width:100%;min-height:54px;padding:0 16px;border:0;background:none;cursor:pointer;text-align:left;font-size:15.5px;font-weight:900;color:#16213e}.goal-section-head .chev{flex:none;width:14px;color:#5b6478}.goal-section-desc{margin:0;padding:0 16px 8px 38px;font-size:13px;font-weight:600;color:#5b6478;line-height:1.5}.goal-row{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-top:1px solid #ECEFF5}.goal-row[data-checked=true] .goal-item-title{color:#8a93ae;text-decoration:line-through}.goal-check{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:#23874F;cursor:pointer}.goal-code{font-size:12.5px;font-weight:900;color:#3047d9;font-variant-numeric:tabular-nums}.goal-item-title{font-size:15px;font-weight:800;overflow-wrap:anywhere}.goal-item-desc{font-size:13px;font-weight:600;color:#5b6478;line-height:1.5;overflow-wrap:anywhere}.goal-links{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:13px;font-weight:800}.goal-links a{overflow-wrap:anywhere}.depth-chip{flex:none;padding:2px 8px;border-radius:99px;font-size:11.5px;font-weight:900}.goal-form{display:flex;flex-direction:column;gap:8px;padding:12px 16px}.goal-row-edit{border-top:1px solid #ECEFF5;background:#fafbfd}.goal-form-label{font-size:13px;font-weight:900;color:#3b4560}.input.sm{height:44px;font-size:15px;padding:0 12px;border-radius:12px}.goal-save{flex:1;min-height:44px;border-radius:12px;border:0;background:#3047d9;color:#fff;cursor:pointer;font-size:14px;font-weight:800}.goal-save:disabled,.goal-del:disabled{opacity:.5;cursor:default}.goal-del{flex:none;min-height:44px;padding:0 14px;border-radius:12px;border:2px solid #E9C2C2;background:#fff;color:#b42318;cursor:pointer;font-size:14px;font-weight:800}.goal-pick{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 16px;font-size:15px;font-weight:800;cursor:pointer}.goal-pick+.goal-pick{border-top:1px solid #ECEFF5}.goal-pick.all{color:#2335a8}.goal-pick input{width:18px;height:18px;margin:0;accent-color:#3047D9}.deck-focus{max-width:100%;padding:2px 8px;border-radius:8px;background:var(--soft);color:#3a2414;font-size:11.5px;font-weight:900;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sheet .learn{flex:none;min-height:44px;padding:0 16px;border:0;border-radius:14px;cursor:pointer;font:inherit;font-size:15px;font-weight:900;color:#fff;background:linear-gradient(180deg,#34b36f,#23874f);box-shadow:inset 0 -3px #0000002e}.sheet .learn:disabled{opacity:.55;cursor:default}.confirm-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:24px;background:#0a0c1e8c;animation:gmFade .18s ease-out}.confirm-box{width:100%;max-width:360px;display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:22px;background:#fff;box-shadow:0 16px 40px #0000004d}.confirm-box h2{margin:0;font-size:18px;font-weight:900;overflow-wrap:anywhere}.confirm-box p{margin:0;font-size:14px;font-weight:600;color:#3b4560;line-height:1.6}.confirm-danger{flex:1;min-height:50px;border-radius:18px;border:0;background:#b42318;color:#fff;cursor:pointer;font-size:15.5px;font-weight:900}.confirm-danger:disabled{opacity:.55;cursor:default}
