/* SPDX-License-Identifier: MIT */
/* Wool Quest: warm, simple, mobile-first fantasy journal. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');
:root{--cream:#f7f3ea;--paper:#fffdf8;--ink:#33443b;--muted:#859087;--border:#e8e7dd;--green:#477f65;--green-dark:#32654e;--mint:#e8f0e5;--peach:#f6e2cc;--pink:#e6b4a9;--shadow:0 10px 36px rgba(62,75,56,.06)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Zen Maru Gothic','DM Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,select,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.52;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #a3bfa8;outline-offset:3px}
a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}
.app-shell{max-width:1270px;margin:auto;padding:0 28px}
.site-header{height:103px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.brand{display:inline-flex;gap:12px;align-items:center}.brand-mark{width:43px;height:43px;border-radius:14px;background:#dce7db;color:#477e5d;display:grid;place-items:center;font-size:32px;transform:rotate(-10deg)}
.brand strong{font-family:'DM Sans',sans-serif;font-size:26px;letter-spacing:-1.2px;font-weight:800;line-height:1.05;display:block}
.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.06em;margin-top:6px}
.head-right{display:flex;align-items:center;gap:15px}.status-pill{background:#e8eee4;border-radius:40px;padding:11px 16px;color:#517761;font-size:12px;font-weight:700;white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;background:#91aa92;border-radius:50%;margin-right:5px}
.status-pill.running{background:#d6e9d8;color:#2d7356}.status-pill.running .status-dot{background:#3ba56d;box-shadow:0 0 0 5px #3ba56d22}
.icon-button{border:1px solid var(--border);background:var(--paper);border-radius:50%;width:42px;height:42px;font-size:21px;color:var(--ink)}
.tabs{display:flex;gap:24px;align-items:center;padding:14px 0 0;border-bottom:1px solid var(--border);margin-bottom:36px}
.tabs button{background:none;border:0;padding:15px 20px;color:#8d988f;font-weight:700;border-bottom:3px solid transparent;font-size:13px;letter-spacing:.02em}
.tabs button.selected{color:var(--green-dark);border-color:var(--green);background:linear-gradient(180deg,transparent,#e8eee459)}
.tabs button:hover{color:var(--green-dark)}
.page-view{display:none;animation:fade .25s ease}.page-view.active{display:block}@keyframes fade{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px;padding:0 4px}.eyebrow{font:700 10px 'DM Sans',sans-serif;letter-spacing:.2em;color:#92a292}
h1{font-size:clamp(26px,3vw,39px);line-height:1.42;letter-spacing:-.06em;font-weight:900;margin:10px 0 0}h1 em{font-style:normal;color:var(--green)}
.welcome-stamp{border:2px dashed #d8cdb5;color:#ada17d;background:#fff9e9;border-radius:50%;width:94px;height:94px;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(11deg);font:800 15px/1.05 'DM Sans',sans-serif;text-align:center;flex-shrink:0}.welcome-stamp span{font-size:20px;color:#d0a0a0}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:25px}.main-column,.side-column{display:flex;flex-direction:column;gap:22px;min-width:0}
.scene-card,.knit-card,.stats-card,.quest-card,.boss-card,.records-panel,.project-card,.item-card{background:var(--paper);border:1px solid var(--border);border-radius:21px;box-shadow:var(--shadow)}
.scene-card{overflow:hidden}.scene-top{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;gap:8px}
.area-tag{background:#eff4eb;color:#507b5c;border-radius:20px;padding:7px 12px;font-size:12px;font-weight:700}.scene-time{font-size:12px;color:#9ba89c}
.scene{height:325px;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(#cfeadf,#eef9e8 65%);transition:background 1s}
.sky-sun{position:absolute;top:31px;right:18%;width:62px;height:62px;border-radius:50%;background:#fff1b2;box-shadow:0 0 0 17px #fff3bd3d}
.cloud{position:absolute;top:48px;left:12%;width:75px;height:22px;border-radius:40px;background:#fffdf5b9;animation:clouds 32s linear infinite}.cloud:before{content:"";position:absolute;width:42px;height:34px;border-radius:50%;background:inherit;bottom:3px;left:16px}.cloud-b{left:70%;top:78px;transform:scale(.65);animation-duration:45s}
@keyframes clouds{50%{translate:22px 0}}
.hill{position:absolute;border-radius:50% 50% 0 0}.hill-back{background:#b2dcb7;width:130%;height:220px;bottom:-105px;left:-20%;rotate:-8deg}.hill-mid{background:#92c99e;width:110%;height:200px;bottom:-129px;right:-13%;rotate:8deg}.hill-front{background:#72ae85;width:140%;height:130px;bottom:-84px;left:-19%}
.road{position:absolute;bottom:-39px;left:-8%;width:125%;height:100px;border-top:17px solid #e8d7ac;border-radius:50%;rotate:-6deg;opacity:.95}
.tree{position:absolute;color:#56956b;font-size:80px;bottom:59px;z-index:1;text-shadow:2px 2px #3f865c15}.tree-1{left:6%;transform:scale(.8)}.tree-2{right:5%;bottom:77px;transform:scale(.55)}.flowers{position:absolute;left:5%;right:0;bottom:13px;z-index:2;color:#f6e6b7;font-size:17px;letter-spacing:25px;white-space:nowrap;pointer-events:none}
.chest{position:absolute;right:12%;bottom:64px;width:60px;height:45px;border:4px solid #967144;border-top:9px solid #d6a05c;border-radius:10px 10px 6px 6px;background:#bd8548;box-shadow:inset 0 0 0 4px #e7b76b;font-size:26px;color:#f6da9a;text-align:center;line-height:30px;z-index:3}.chest span{position:absolute;top:-30px;left:12px;font-size:22px;animation:sparkle 1.5s ease-in-out infinite;color:#ffea9e}@keyframes sparkle{50%{transform:scale(1.35);opacity:.55}}
.sheep-walker{position:absolute;left:24%;bottom:33px;z-index:5;width:168px;height:145px;filter:drop-shadow(0 8px 4px #37694a25);transform-origin:50% 90%}
.sheep-svg{width:100%;height:100%;display:block;overflow:visible}.hat-sprite,.neck-sprite,.back-sprite{position:absolute;z-index:2;font-size:30px;pointer-events:none;text-shadow:0 2px 3px #ffffffbd}.hat-sprite{top:2%;right:2%;transform:rotate(9deg)}.neck-sprite{right:0;top:50%;font-size:26px}.back-sprite{left:6%;top:36%;font-size:27px;z-index:-1}
.scene[data-running="true"] .sheep-walker{animation:sheepBounce .55s ease-in-out infinite alternate}.scene[data-running="true"] .sheep-leg-a{animation:legWalk .55s ease-in-out infinite alternate;transform-origin:53px 97px}.scene[data-running="true"] .sheep-leg-b{animation:legWalk .55s ease-in-out infinite alternate-reverse;transform-origin:112px 97px}.scene[data-running="true"] .flowers{animation:flowersMove 7s linear infinite}
@keyframes sheepBounce{to{transform:translateY(-8px) rotate(1.5deg)}}@keyframes legWalk{to{transform:rotate(13deg)}}@keyframes flowersMove{to{translate:-100px}}
.scene-label{position:absolute;bottom:22px;right:16px;z-index:4;color:#ffffff;font-size:11px;font-weight:700;text-shadow:0 2px 5px #2e6349;background:#447e6199;padding:8px 11px;border-radius:24px}
.scene[data-area="forest"]{background:linear-gradient(#bbd9c8,#e2e9d8)}.scene[data-area="forest"] .hill-back{background:#8dbe92}.scene[data-area="forest"] .hill-mid{background:#6ca67e}.scene[data-area="snow"]{background:linear-gradient(#b9d4ea,#edf8f9)}.scene[data-area="snow"] .hill{background:#e5f4f5}.scene[data-area="snow"] .hill-front{background:#cbe6df}.scene[data-area="castle"]{background:linear-gradient(#7b8fb3,#d8c6da)}.scene[data-area="castle"] .hill-back{background:#a3a3be}.scene[data-area="castle"] .hill-mid{background:#8389a8}.scene[data-area="castle"] .hill-front{background:#676f96}
.scene-bottom{display:flex;justify-content:space-between;padding:15px 23px;font-size:12px;color:#6e8575}.scene-bottom b{color:#4d755b}.muted{color:#9ba99c}
.knit-card{padding:26px 29px}.knit-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.knit-head h2{font-size:19px;margin:7px 0 0;letter-spacing:-.03em}.yarn-ball{font-size:36px}.knit-card label,.modal label{display:block;color:#718477;font-size:12px;font-weight:700;margin-bottom:7px}
.project-select-row{display:flex;gap:9px;margin-bottom:21px}.project-select-row select{appearance:none;flex:1;min-width:0;border:1px solid var(--border);padding:13px 42px 13px 14px;border-radius:12px;background:var(--paper);color:var(--ink);font-weight:700;font-size:14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23758d7d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.outline-button{border:1px solid #d8e1d7;border-radius:12px;background:var(--paper);color:#567462;padding:12px 17px;font-size:13px;font-weight:700}
.outline-button:hover{background:#edf5ec}.add-small{font-size:23px;line-height:1;width:49px;padding:6px}
.timer-row{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;padding-top:1px}.timer-label{font-size:12px;color:#91a094}.timer{font-family:'DM Sans',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.015em;font-size:clamp(34px,4vw,46px);font-weight:800;color:#3b6651;margin-top:3px}
.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:13px;background:#477f65;color:#fff;padding:16px 21px;box-shadow:0 5px 0 #34634f;font-weight:700;font-size:14px;white-space:nowrap;transition:transform .15s,background .15s}.primary-button:hover{background:#3a7359;transform:translateY(-2px)}.primary-button:active{transform:translateY(3px);box-shadow:0 2px 0 #34634f}.primary-button.paused{background:#aa8363;box-shadow:0 5px 0 #916c52}
.helper{font-size:11px;line-height:1.8;color:#9ba79b;margin:20px 0 0}.stats-card{padding:24px}.card-header{display:flex;align-items:center;justify-content:space-between}.flower-small{color:#b5c9b2;font-size:27px}.stat-big{display:grid;gap:19px;margin-top:22px}.stat-big small{font-size:11px;color:#8b9a8e;display:block;margin-bottom:4px}.stat-big strong{font-family:'DM Sans','Zen Maru Gothic',sans-serif;font-size:28px;color:#406d57;letter-spacing:-.04em}.stat-big strong span{font-size:14px}.divider{height:1px;background:var(--border);margin:21px 0}.level-head,.level-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.level-head small{color:#99a79a;font-size:11px}
.progress-track{width:100%;height:9px;background:#e8eee6;overflow:hidden;border-radius:30px;margin:11px 0 15px}.progress-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#a4cba8,#558c6d);border-radius:30px;transition:width .3s}.level-foot{color:#8b967d}.level-foot b{color:#647564}
.quest-card{padding:22px 22px 14px;min-height:260px}.quest-card h2{font-size:16px;margin:0;letter-spacing:-.04em}.card-header>span:last-child{color:#bca77e;font-size:21px}.quest-log{margin-top:15px}.log-row{display:flex;align-items:flex-start;gap:11px;border-bottom:1px solid #f1f0e7;padding:12px 0}.log-row:last-child{border-bottom:0}.log-icon{width:33px;height:33px;border-radius:11px;background:#e9efe6;display:grid;place-items:center;flex:none;font-size:17px}.log-icon.treasure{background:#faf0d7}.log-icon.battle{background:#f5e7df}.log-icon.level{background:#efe5f6}.log-content{min-width:0;flex:1}.log-content b{display:block;font-size:12px}.log-content p{font-size:11px;color:#93a092;margin:3px 0 0;line-height:1.65}.log-content time{font:10px 'DM Sans',sans-serif;color:#aab3a8}
.boss-card{display:flex;gap:15px;padding:20px 22px;background:#f9f0e8;border-color:#eee0d2}.boss-icon{font-size:36px;color:#ae846c}.boss-card>div{flex:1}.boss-card h3{font-size:16px;margin:5px 0 10px}.boss-progress{height:7px;background:#eadbd0;border-radius:10px;overflow:hidden}.boss-progress span{display:block;width:0;height:100%;background:#c59678;border-radius:10px}.boss-card p{font-size:10px;color:#a48879;margin:8px 0 0}
.foot-note{text-align:center;color:#9aaa98;font-size:12px;letter-spacing:.04em;padding:30px}.site-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--border);padding:25px 4px 33px;margin-top:25px;font-size:10px;color:#a3aca0}.footer-mark{color:var(--green)}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:6px 0 30px}.section-heading h1{font-size:31px;margin-top:9px}.section-heading p{font-size:13px;color:#929c91;margin:10px 0 0;line-height:1.8}
.project-grid,.item-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.project-card{padding:24px}.project-card h3{font-size:18px;margin:8px 0 14px}.project-card .project-emoji{font-size:29px}.project-card p{font-size:12px;color:#889b8b}.project-card .project-hours{font:800 28px 'DM Sans',sans-serif;color:#4e8166}.project-card .project-hours small{font:12px 'Zen Maru Gothic',sans-serif}.project-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.project-actions button{flex:1;padding:9px 11px;font-size:12px}.project-actions .primary-button{box-shadow:none}.completed-tag{display:inline-block;padding:4px 9px;border-radius:14px;background:#e3efdf;color:#4c7b50;font-size:10px;font-weight:700}.empty-state{grid-column:1/-1;padding:50px 25px;text-align:center;color:#8d9c8f;border:2px dashed #e0e7dc;border-radius:20px;background:#fffdf7}.empty-state .large{font-size:48px;margin-bottom:16px}
.wardrobe-preview{display:flex;align-items:center;gap:21px;background:linear-gradient(110deg,#e9f2e5,#fdf7e7);border:1px solid #e0e7da;padding:20px 28px;border-radius:20px;margin-bottom:23px}.preview-sheep{font-size:58px}.wardrobe-preview b{font-size:17px}.wardrobe-preview p{color:#8b998a;font-size:12px;margin:7px 0 0}.item-card{text-align:center;padding:25px 13px 21px;position:relative}.item-icon{font-size:46px;display:block;margin-bottom:11px}.item-card h3{font-size:14px;margin:4px 0}.item-card p{font-size:11px;color:#91a092;margin:8px 0 18px}.item-card .outline-button,.item-card .primary-button{width:100%;max-width:220px;box-shadow:none;padding:10px}.item-card.locked{filter:grayscale(.85);opacity:.65}.item-card.locked .item-icon{filter:grayscale(1);opacity:.5}.rarity{position:absolute;right:12px;top:10px;color:#ad9b82;font-size:10px}.rarity.rare{color:#8d74c9}.rarity.epic{color:#b37c4c}
.record-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:19px}.summary-tile{background:var(--paper);border:1px solid var(--border);border-radius:18px;padding:22px}.summary-tile small{display:block;font-size:11px;color:#919e92;margin-bottom:12px}.summary-tile strong{font:800 25px 'DM Sans','Zen Maru Gothic',sans-serif;color:#537d63}
.records-panel{padding:25px;margin:18px 0}.records-panel h2{font-size:17px;margin-bottom:23px}.weekly-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;height:190px;align-items:end}.chart-item{display:flex;flex-direction:column;align-items:center;gap:5px;height:100%;justify-content:end}.chart-item span{font-size:10px;color:#8c9b8a}.chart-bar-track{height:135px;display:flex;align-items:end;width:min(100%,36px);background:#f0f3ec;border-radius:9px;overflow:hidden}.chart-bar{background:#92bca0;border-radius:9px 9px 0 0;width:100%;min-height:2px}.chart-item.today .chart-bar{background:#4c8665}.all-logs{display:grid;gap:0}.all-logs .log-row{padding:13px 3px}
.modal{border:1px solid #dedfd3;border-radius:22px;padding:30px;box-shadow:0 28px 80px #1e3a2b40;color:var(--ink);width:min(92vw,490px);max-height:90dvh;overflow:auto;background:var(--paper)}.modal::backdrop{background:#25372e75;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;gap:12px;margin-bottom:19px}.modal-heading>span{font-size:25px;color:#8aa48b}.modal-heading h2{margin:0;font-size:22px}.modal p{font-size:13px;line-height:1.9;color:#7f9487}.modal input[type=text]{border:1px solid var(--border);padding:14px;border-radius:12px;width:100%;font-size:15px;background:#fff}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}.settings-buttons{display:grid;gap:10px;margin:18px 0}.ad-option{background:#f5f3ea;border-radius:14px;padding:17px;display:flex;justify-content:space-between;align-items:center;gap:13px;margin:22px 0}.ad-option b{font-size:13px;display:block}.ad-option small{display:block;color:#879487;font-size:10px;margin-top:6px;line-height:1.7}.full-width{width:100%}
.toast{position:fixed;left:50%;bottom:24px;translate:-50% 0;background:#2e5c47;color:#fff;border-radius:30px;padding:13px 23px;box-shadow:0 10px 26px #19372833;font-size:13px;opacity:0;pointer-events:none;transition:opacity .3s;z-index:50;max-width:min(90vw,520px);text-align:center}.toast.visible{opacity:1}
@media(max-width:1000px){.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(255px,1fr)}.knit-card{padding:20px}.timer-row{align-items:stretch;flex-direction:column}.timer{font-size:40px}.primary-button{padding:14px 18px}.scene{height:300px}.scene-top{padding:14px}}
@media(max-width:700px){.app-shell{padding:0 16px}.site-header{height:77px}.brand strong{font-size:22px}.brand-mark{width:38px;height:38px}.brand small{font-size:9px}.head-right{gap:7px}.status-pill{font-size:10px;padding:9px 10px}.icon-button{width:36px;height:36px}.tabs{justify-content:space-around;gap:0;margin:0 -16px 25px;padding:5px 10px 0}.tabs button{font-size:12px;padding:13px 8px;flex:1}.welcome-row{margin:0 0 24px}.welcome-row h1{font-size:29px}.welcome-stamp{width:66px;height:66px;font-size:11px}.welcome-stamp span{font-size:13px}.dashboard-grid{grid-template-columns:1fr;gap:20px}.main-column,.side-column{gap:17px}.scene{height:285px}.scene-top{padding:13px 15px}.sheep-walker{left:13%;bottom:29px;scale:.86}.chest{right:10%;scale:.8}.tree-1{left:0}.knit-card{padding:21px}.timer-row{flex-direction:row;align-items:flex-end}.timer{font-size:34px}.timer-row .primary-button{font-size:12px;padding:14px 12px}.stats-card{padding:20px}.stat-big{grid-template-columns:1fr 1fr;gap:10px}.stat-big strong{font-size:23px}.quest-card{min-height:0}.section-heading{align-items:flex-start;flex-direction:column}.section-heading h1{font-size:27px}.record-summary{grid-template-columns:repeat(2,1fr)}.site-footer{flex-direction:column;align-items:start;gap:6px}}
@media(max-width:375px){.app-shell{padding:0 12px}.tabs{margin-left:-12px;margin-right:-12px}.welcome-row h1{font-size:25px}.status-pill{display:none}.scene{height:250px}.timer{font-size:29px}.timer-row{flex-direction:column;align-items:stretch}.timer-row .primary-button{width:100%}.sheep-walker{left:8%;scale:.75}.knit-card{padding:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
