@import "https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap";:root{--bg:#efe6d4;--surface:#fbf3e4;--ink:#1b1b1b;--ink-inverse:#fbf3e4;--muted:#5e574c;--border:#cdbfa6;--line:#dccfb8;--floor:#f0e2c8;--empty:#8c8170;--tomato:#e4572e;--mustard:#f2b632;--cobalt:#2a50c8;--stroke:2px solid var(--ink);--shadow:4px 4px 0 var(--ink);--on-light:#1a1a1a;--on-light-muted:#5f5b55;--on-dark:#f6f5f2;--on-dark-muted:#c9c4bc;--outline-soft:#b9ab92}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font-family:Bricolage Grotesque,system-ui,sans-serif}button{cursor:pointer;font-family:inherit;transition:transform .1s ease-out,box-shadow .1s ease-out}button:not(:disabled):active{transform:scale(.97)}.btn-outline:not(:disabled):active,.btn-paper:not(:disabled):active{box-shadow:1px 1px 0 var(--ink);transform:translate(3px,3px)}.app{flex-direction:column;max-width:430px;min-height:100vh;margin:0 auto;display:flex}.header{justify-content:space-between;align-items:flex-end;padding:28px 20px 0;display:flex}.logo{letter-spacing:-.02em;font-size:14px;font-weight:800}h1{letter-spacing:-.02em;margin:4px 0 0;font-size:30px;font-weight:800}.icon-btn{border:var(--stroke);background:var(--surface);width:44px;height:44px;color:var(--ink);border-radius:22px;justify-content:center;align-items:center;display:flex}.chips{scrollbar-width:none;gap:8px;padding:18px 20px 16px;display:flex;overflow-x:auto}.chip{border:var(--stroke);background:var(--surface);height:44px;color:var(--ink);border-radius:22px;flex-shrink:0;padding:0 16px;font-size:14px;font-weight:700}.chip-on{background:var(--ink);border-color:var(--ink);color:var(--ink-inverse)}.grid{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;padding:0 20px 20px;display:grid}.card{background:var(--surface);border:var(--stroke);border-radius:18px;flex-direction:column;gap:2px;height:160px;padding:12px;display:flex}.card-img{flex:1;justify-content:center;align-items:center;display:flex}.card-name{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.card-cat{color:var(--muted);font-size:11px}.bottom{background:var(--bg);position:sticky;bottom:0}.shuffle-bar{padding:12px 20px}.shuffle-btn{border:var(--stroke);background:var(--ink);width:100%;height:56px;color:var(--ink-inverse);border-radius:28px;justify-content:center;align-items:center;gap:10px;font-size:16px;font-weight:800;display:flex}.tabs{border-top:var(--stroke);grid-template-columns:repeat(3,minmax(0,1fr));height:72px;display:grid}.tab{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:12px;font-weight:600;text-decoration:none;display:flex}.tab-on{color:var(--ink);font-weight:800}.screen{flex-direction:column;flex:1;display:flex}.tabs{background:var(--bg);position:sticky;bottom:0}.tab{background:0 0;border:none}.shuffle-bar{background:var(--bg);position:sticky;bottom:72px}.sub-header{justify-content:space-between;align-items:center;padding:20px 20px 0;display:flex}.sub-title{letter-spacing:0;margin:0;font-size:18px}.icon-btn-plain{width:44px;height:44px;color:inherit;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex}.icon-spacer{width:44px}.outfit{border:var(--stroke);border-radius:20px;flex-direction:column;gap:4px;margin:14px 20px 0;padding:14px 8px;transition:background .2s;display:flex}.layer{justify-content:space-between;align-items:center;display:flex}.layer-item{flex-direction:column;flex:1;align-items:center;gap:2px;display:flex}.layer-name{font-size:11px;font-weight:600}.layer-photo{object-fit:contain;max-width:100%}.layer .icon-btn-plain:disabled{opacity:.3;cursor:default}.btn-solid:disabled{opacity:.75;cursor:default}.pill-btn,.pill-btn-outline{border-radius:22px;min-width:44px;height:44px;padding:0 16px;font-size:13px;font-weight:700}.pill-btn{border:var(--stroke);background:var(--ink);color:var(--ink-inverse)}.pill-btn-outline{border:var(--stroke);background:var(--surface);color:var(--ink)}.pill-btn:disabled{opacity:.6;cursor:default}.tips-link{margin:-8px auto 0;font-size:13px}.tips-overlay{z-index:110;background:var(--bg);max-width:430px;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);flex-direction:column;margin:0 auto;display:flex;position:fixed;inset:0}.tips-heading{margin:0}.tips-body{flex:1;min-height:0;overflow-y:auto}.tips-drawing{border:var(--stroke);background:var(--surface);border-radius:22px;justify-content:center;align-items:center;height:340px;margin:14px 20px 0;display:flex}@media (height<=700px){.tips-drawing{height:260px}.tips-drawing svg{width:230px;height:230px}}.tips-text{flex-direction:column;gap:6px;padding:22px 24px 0;display:flex}.tips-label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800}.tips-title{letter-spacing:-.03em;margin:0;font-size:30px;font-weight:800;line-height:1.05}.tips-footer{flex-direction:column;gap:16px;padding:12px 20px 24px;display:flex}.tips-heading{font-weight:800}.tips-overlay .tips-text:first-child{padding-top:14px}.tips-section{padding:0 24px}.tips-section .rules{gap:10px;margin-top:14px}.tips-section .rule{gap:2px;padding:8px 12px 9px}.tips-section .rule-word{font-size:20px}.tips-section .rule-line{font-size:13px;line-height:1.35}.tips-text-kind{padding-top:20px}.tips-kinds{padding:10px 20px 0}.tips-drawing-small{height:190px}.tips-drawing-small svg{width:172px;height:172px}.tips-kind-tip{text-align:center;margin:12px 24px 8px;font-size:15px;font-weight:600;line-height:1.4}.tips-footer .tips-done{margin-top:0}.tips-title{text-wrap:balance}@media (height<=700px){.tips-drawing-small{height:180px}.tips-drawing-small svg{width:164px;height:164px}}.rules{flex-direction:column;gap:12px;margin:18px 0 0;padding:0 4px 0 0;list-style:none;display:flex}.rule{border:var(--stroke);background:var(--surface);color:var(--ink);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;gap:4px;padding:10px 14px 12px;display:flex;transform:rotate(-1.5deg)}.rule:nth-child(2){background:var(--mustard);margin-left:10px;transform:rotate(1.2deg)}.rule:nth-child(3){background:var(--tomato);transform:rotate(-.8deg)}.rule-word{letter-spacing:-.02em;font-size:24px;font-weight:800;line-height:1}.rule-word:after{content:"."}.rule-line{font-size:14px;font-weight:500;line-height:1.4}.app-plain{padding-bottom:env(safe-area-inset-bottom,0px)}.welcome{padding:28px 24px}.welcome-back{margin:-10px 0 0 -12px}.app-plain:has(.welcome){background:var(--bg)}.app-plain:has(.welcome-tomato){--bg:var(--tomato);--muted:var(--ink)}.app-plain:has(.welcome-mustard){--bg:var(--mustard);--muted:var(--ink)}.app-plain:has(.welcome-cobalt){--bg:var(--cobalt);--muted:var(--surface);color:var(--surface)}.welcome-hey{letter-spacing:-.05em;color:var(--surface);margin:36px 0 0;font-size:96px;font-weight:800;line-height:.9}.welcome-tagline{letter-spacing:-.01em;text-wrap:balance;margin:14px 0 0;font-size:24px;font-weight:700;line-height:1.15}.welcome-art{flex:1;min-height:140px;max-height:320px;margin:12px -6px 0;position:relative}.welcome-art svg{width:auto;position:absolute}.welcome-art-top{aspect-ratio:1;max-width:54%;height:80%;top:2%;right:46%;transform:rotate(-8deg)}.welcome-art-bottom{aspect-ratio:140/220;max-width:44%;height:90%;bottom:4%;left:56%;transform:rotate(7deg)}.welcome-sub{color:var(--muted);margin:10px 0 0;font-size:15px;line-height:1.5}.welcome-step{color:var(--muted);margin:12px 0 0;font-size:12px;font-weight:700}.welcome-title{letter-spacing:-.03em;text-wrap:balance;margin:6px 0 0;font-size:34px;line-height:1}.welcome-form{flex-direction:column;flex:1;gap:14px;display:flex}.name-preview{border:var(--stroke);background:var(--surface);min-height:120px;box-shadow:5px 5px 0 var(--ink);text-align:center;letter-spacing:-.04em;overflow-wrap:anywhere;border-radius:18px;justify-content:center;align-items:center;margin:12px 6px 8px;padding:18px 12px;font-size:36px;font-weight:800;line-height:1.05;display:flex;transform:rotate(-2deg)}.welcome-note{color:var(--muted);margin:0;font-size:13px}.welcome-error{margin-top:16px}.welcome-actions{flex-direction:column;margin-top:auto;padding-top:24px;display:flex}.welcome-actions .link-btn{margin-top:4px}.profile-closet{flex-direction:column;gap:10px;margin-top:24px;display:flex}.profile-hint{margin:0;font-size:13px}.profile-closet .profile-save{flex:none;width:100%;height:50px}.profile-closet .profile-save:disabled{opacity:.5;cursor:default}.legal-note{text-align:center;color:var(--muted);margin:4px 0 0;font-size:12px}.legal-note a{color:var(--ink);font-weight:600}.profile-link{justify-content:center;align-items:center;margin-top:20px;display:flex}.header-sub{color:var(--muted);font-size:13px;font-weight:500}.pill-icon{align-items:center;gap:6px;display:flex}.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 span{color:var(--muted);font-size:12px}.week{padding:20px 20px 0}.week-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;display:grid}.week-day{color:var(--muted);flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:500;display:flex}.week-today{color:var(--ink);font-weight:800}.week-box{border:1.5px dashed var(--empty);width:100%;height:64px;color:var(--empty);border-radius:12px;justify-content:center;align-items:center;display:flex;overflow:hidden}.week-has{background:var(--surface);border:var(--stroke)}.week-today .week-box{border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink)}.saved-head{padding:22px 20px 0}.outfits-grid{padding-bottom:28px}.outfit-card{background:var(--surface);border:var(--stroke);border-radius:18px;flex-direction:column;gap:8px;padding:8px;display:flex}.outfit-card-btn{color:inherit;text-align:left;background:0 0;border:none;flex-direction:column;gap:2px;padding:0;display:flex}.outfit-card-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:10px}.outfit-card-name{text-overflow:ellipsis;white-space:nowrap;margin-top:6px;padding:0 4px;font-size:14px;font-weight:700;overflow:hidden}.outfit-card-meta{color:var(--muted);padding:0 4px 4px;font-size:11px}.outfit-card-actions{justify-content:space-between;align-items:center;gap:6px;padding:0 4px 4px;display:flex}.outfit-card-actions .link-btn{margin:0}.outfit-pic{border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:2px;height:168px;display:flex;overflow:hidden}.outfit-pic img{object-fit:contain;max-width:80%}.outfit-pic-tops,.outfit-pic-bottoms{height:62px}.outfit-pic-shoes{height:28px}.outfit-pic-small{gap:0;width:100%;height:100%}.outfit-pic-small .outfit-pic-tops,.outfit-pic-small .outfit-pic-bottoms{height:26px}.outfit-pic-small .outfit-pic-shoes{height:10px}.worn-note{text-align:center;color:var(--muted);margin:-8px 0 0;font-size:13px;font-weight:600}.item-photo-card{border:var(--stroke);background:var(--surface);border-radius:22px;justify-content:center;align-items:center;height:250px;display:flex;overflow:hidden}.item-photo-card img{object-fit:contain;max-width:100%;max-height:100%;padding:16px}.retake-row{justify-content:space-between;gap:16px;margin-top:-10px;display:flex}.retake-link:focus-within{outline:2px solid var(--ink);outline-offset:2px}.retake-link:active{opacity:.6}.retake-link{cursor:pointer;min-height:44px;color:var(--ink);background:0 0;border:none;align-items:center;gap:8px;padding:0;font-size:13px;font-weight:700;text-decoration:underline;display:flex}.layer-controls{flex-direction:column;align-items:center;display:flex}.bg-picker{color:var(--muted);justify-content:space-between;align-items:center;padding:14px 20px 0;font-size:13px;font-weight:600;display:flex}.swatches{gap:2px;display:flex}.swatch{background:0 0;border:none;justify-content:center;align-items:center;width:44px;height:44px;padding:0;display:flex}.swatch span{border-radius:15px;width:30px;height:30px;display:block}.shuffle-dock{left:50%;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:19;background:var(--bg);flex-direction:column;gap:8px;width:100%;max-width:430px;padding:10px 20px 12px;display:flex;position:fixed;transform:translate(-50%)}.shuffle-actions{gap:10px;display:flex}.shuffle-actions .btn-outline:disabled{opacity:.6;cursor:default}.shuffle-hint{text-align:center;margin:0;font-size:12px;font-weight:600}.btn-inner{justify-content:center;align-items:center;gap:6px;display:inline-flex}.shuffle-screen{padding-bottom:120px}.btn-outline{border:var(--stroke);background:var(--surface);height:56px;color:var(--ink);box-shadow:var(--shadow);border-radius:28px;flex:1;justify-content:center;align-items:center;gap:8px;font-size:15px;font-weight:800;display:flex}.btn-solid{border:var(--stroke);background:var(--ink);height:56px;color:var(--ink-inverse);border-radius:28px;flex:1.3;font-size:15px;font-weight:800}.coming-soon{padding:28px 20px}.coming-soon p{color:var(--muted);font-size:14px}.auth{gap:0;padding:32px 24px 28px}.auth-title{margin-top:28px}.auth-sub{color:var(--muted);margin:8px 0 0;font-size:14px;line-height:1.45}.auth-form{flex-direction:column;gap:14px;margin-top:28px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:13px;font-weight:700}.input{border:var(--stroke);background:var(--surface);height:50px;color:var(--ink);border-radius:16px;padding:0 14px;font-family:inherit;font-size:17px;font-weight:600}.input::placeholder{color:var(--muted);font-weight:500}.input:focus{outline:2px solid var(--ink);outline-offset:1px}.btn-primary{border:var(--stroke);background:var(--ink);height:56px;color:var(--ink-inverse);border-radius:28px;margin-top:8px;font-size:16px;font-weight:800}.btn-primary:disabled{opacity:.6;cursor:default}.btn-outline:disabled,.btn-paper:disabled{box-shadow:none}.btn-paper{border:var(--stroke);background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.link-btn{min-height:44px;color:var(--ink);background:0 0;border:none;margin-top:12px;font-size:14px;font-weight:600;text-decoration:underline}.auth-error{color:#8a2a1c;background:#fbe9e7;border-radius:10px;margin:0;padding:10px 12px;font-size:13px}.auth-notice{color:#2f5e3a;background:#e4ece5;border-radius:10px;margin:0;padding:10px 12px;font-size:13px}.signout{flex:none;width:100%;margin-top:12px}.card-img{min-height:0}.card-img img{object-fit:contain;max-width:100%;max-height:100%}.closet-message{margin:0 20px 12px;font-size:14px}.muted{color:var(--muted)}.loading-note{color:var(--muted);justify-content:center;align-items:center;gap:8px;margin:0;padding:40px 20px;font-size:14px;font-weight:600;display:flex}.load-error{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.load-error p{margin:0}.sub-header+.load-error{margin-top:12px}.empty{text-align:center;color:var(--muted);padding:40px 20px;font-size:14px}.empty .btn-outline{flex:none;width:100%;margin-top:8px}.add-form{flex-direction:column;gap:18px;padding:16px 20px 28px;display:flex}.photo-pick{border:2px dashed var(--ink);background:var(--floor);height:280px;color:var(--ink);cursor:pointer;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:600;display:flex;overflow:hidden}.photo-pick.has-photo{border-style:solid}.photo-pick:focus-within{outline:2px solid var(--ink);outline-offset:2px}.photo-pick img{object-fit:contain;width:100%;height:100%}.photo-hint{text-align:center;color:var(--muted);margin:-10px 0 0;font-size:12px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.field-label{font-size:13px;font-weight:700}.chip-row{flex-wrap:wrap;gap:8px;display:flex}.crash-reload{flex:none;width:100%}.crash-detail{color:var(--muted);overflow-wrap:anywhere;margin-top:16px;font-size:12px}.save-actions{flex-direction:column;gap:10px;display:flex}.save-actions .btn-outline{flex:none}.save-actions .btn-outline:disabled{opacity:.6;cursor:default}.saved-note{color:#2f5e3a;background:#e4ece5;border-radius:10px;align-items:center;gap:8px;margin:0;padding:10px 12px;font-size:13px;font-weight:600;display:flex}.saved-note svg{flex-shrink:0}.tabs{padding-bottom:env(safe-area-inset-bottom,0px)}.tab{height:72px}.shuffle-bar{bottom:calc(72px + env(safe-area-inset-bottom,0px))}.app{min-height:100dvh;padding-top:env(safe-area-inset-top,0px);padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}.app:before{content:"";height:env(safe-area-inset-top,0px);background:var(--bg);z-index:30;position:fixed;top:0;left:0;right:0}.tabs{z-index:20;width:100%;max-width:430px;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.shuffle-bar{left:50%;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:19;width:100%;max-width:430px;position:fixed;transform:translate(-50%)}.grid{padding-bottom:100px}.photo-pick.has-photo{background-color:var(--surface);background-image:linear-gradient(45deg, var(--floor) 25%, transparent 25%), linear-gradient(-45deg, var(--floor) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--floor) 75%), linear-gradient(-45deg, transparent 75%, var(--floor) 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px}.photo-pick.has-photo img{box-sizing:border-box;padding:12px}.bg-status{color:var(--muted);text-align:center;justify-content:center;align-items:center;gap:8px;margin:-6px 0 0;font-size:13px;font-weight:600;display:flex}.spinner{border:2px solid var(--border);border-top-color:var(--ink);border-radius:50%;flex-shrink:0;width:14px;height:14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.version-pick{justify-content:center;margin-top:-6px}.busy-overlay{z-index:100;-webkit-backdrop-filter:blur(4px);background:#efe6d4f0;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.busy-card{text-align:center;flex-direction:column;align-items:center;width:100%;max-width:320px;display:flex}.busy-photo{border:var(--stroke);background:var(--surface);width:200px;height:200px;box-shadow:var(--shadow);border-radius:20px;margin-bottom:20px;position:relative;overflow:hidden}.busy-photo img{object-fit:contain;box-sizing:border-box;width:100%;height:100%;padding:12px}.busy-shimmer{background:linear-gradient(105deg,#0000 30%,#ffffffbf 50%,#0000 70%) 0 0/250% 100%;animation:1.4s ease-in-out infinite shimmer;position:absolute;inset:0}@keyframes shimmer{0%{background-position:150% 0}to{background-position:-50% 0}}.busy-title{margin:0;font-size:18px;font-weight:800}.busy-sub{color:var(--muted);margin:6px 0 0;font-size:14px}.busy-bar{background:var(--line);border-radius:3px;width:100%;height:6px;margin-top:16px;overflow:hidden}.busy-bar span{background:var(--ink);border-radius:3px;height:100%;transition:width .2s;display:block}@media (prefers-reduced-motion:reduce){.busy-shimmer,.spinner{animation:none}button{transition:none}button:not(:disabled):active{opacity:.7;transform:none}}.suggest-note{color:var(--muted);font-size:12px}.card-btn{border:var(--stroke);width:100%;font:inherit;color:inherit;text-align:left}.card-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.item-photo{cursor:default}.danger-link{color:#8a2a1c}.confirm-delete{color:#8a2a1c;text-align:center;background:#fbe9e7;border-radius:14px;padding:14px;font-size:14px;font-weight:600}.confirm-delete p{margin:0 0 12px}.confirm-actions{gap:10px;display:flex}.confirm-actions .btn-outline{height:48px}.btn-danger{border:var(--stroke);color:#fff;background:#b3261e;border-radius:24px;flex:1;height:48px;font-size:15px;font-weight:700}.btn-danger:disabled,.confirm-actions .btn-outline:disabled{opacity:.6;cursor:default}
