:root{--bg:#f6efe2;--surface:#fffaf1;--text:#4a3426;--text-sub:#8a7262;--ink:#5a3e2b;--border:#e3d5bf;--accent:#3f8f6b;--accent-text:#fff;--accent-soft:#e3efe4;--mustard:#e3b04b;--terracotta:#c9694a;--dust:#b9a98f;--level-1:#8cc7a6;--level-2:#c2d07a;--level-3:#e8c065;--level-4:#e39a5c;--level-5:#c9665a;--shadow:3px 4px 0 #5a3e2b2e;--radius:20px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*,:before,:after{box-sizing:border-box}body{background:radial-gradient(#5a3e2b0d 1px, transparent 1px) 0 0 / 14px 14px, var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:Zen Maru Gothic,system-ui,sans-serif;line-height:1.7}h1,h2,p{margin:0}.page{flex-direction:column;gap:20px;max-width:560px;min-height:100dvh;margin:0 auto;padding:40px 16px 64px;display:flex;position:relative}.eyebrow{color:var(--accent);letter-spacing:.1em;font-weight:700}.title{font-size:clamp(1.8rem,7vw,2.4rem);font-weight:900;line-height:1.35}.lead{color:var(--text-sub)}.note{color:var(--text-sub);text-align:center;font-size:.85rem}.button{font:inherit;cursor:pointer;border:2px solid #0000;border-radius:999px;justify-content:center;align-items:center;padding:14px 20px;font-weight:700;text-decoration:none;transition:transform .1s,opacity .2s;display:inline-flex}.button:active{transform:scale(.97)}.button-primary{border-color:var(--ink);background:var(--accent);color:var(--accent-text);box-shadow:3px 4px 0 var(--ink)}.button-primary:active{box-shadow:1px 2px 0 var(--ink)}.button-ghost{color:var(--text-sub);background:0 0}.button-large{padding:18px 24px;font-size:1.15rem}.page-top{justify-content:center}.brand{color:var(--ink);letter-spacing:.08em;align-items:center;gap:8px;font-size:1.15rem;font-weight:900;display:flex}.brand__mascot{border:2px solid var(--ink);background:var(--bg);border-radius:50%;width:52px;height:52px}.title__mark{background:linear-gradient(#0000 62%,#e3b04b8c 62%)}.type-pile{aspect-ratio:1/1.12;margin:4px 0 8px;position:relative}.polaroid{border:2px solid var(--ink);width:44%;box-shadow:var(--shadow);background:#fff;border-radius:6px;padding:6px 6px 18px;position:absolute}.polaroid__image,.polaroid__emoji{aspect-ratio:1;object-fit:cover;border-radius:3px;width:100%;display:block}.polaroid__emoji{place-items:center;margin:0;font-size:3rem;display:grid}.type-list ul{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px;margin:12px 0 0;padding:0;list-style:none;display:grid}.type-list li{text-align:center;flex-direction:column;align-items:center;gap:4px;font-size:.78rem;font-weight:700;line-height:1.4;display:flex}.type-list__image,.type-list__emoji{aspect-ratio:1;border:2px solid var(--ink);object-fit:cover;background:var(--surface);border-radius:14px;width:100%}.type-list__emoji{place-items:center;margin:0;font-size:2.4rem;display:grid}.scattered{z-index:-1;pointer-events:none;position:fixed;inset:0;overflow:hidden}.scattered span{opacity:.3;filter:sepia(.7)saturate(.8);line-height:1;position:absolute}.progress{background:var(--border);border-radius:999px;height:8px;overflow:hidden}.progress__bar{background:var(--accent);height:100%}.quiz__count{color:var(--accent);font-size:1.4rem;font-weight:900}.quiz__count span{color:var(--text-sub);font-size:1rem}.question{flex-direction:column;gap:20px;display:flex}.question__text{font-size:1.35rem;line-height:1.5}.question__choices{flex-direction:column;gap:10px;display:flex}.choice{border:2px solid var(--ink);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:16px;padding:16px 18px;transition:border-color .15s,background .15s}.choice:hover,.choice.is-selected{border-color:var(--accent);background:var(--accent-soft)}.card{border:2px solid var(--ink);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-direction:column;gap:12px;padding:24px 20px;display:flex}.result-level,.result-type{text-align:center;align-items:center}.result-level__label,.result-type__label{color:var(--text-sub);font-weight:700}.result-level__value{font-size:4rem;font-weight:900;line-height:1}.result-level__value span{color:var(--text-sub);margin-left:4px;font-size:1.2rem}.result-level__name,.result-type__name{font-size:1.6rem;font-weight:900}.level-meter{align-items:flex-end;gap:6px;height:48px;display:flex}.level-meter__cell{background:var(--border);transform-origin:bottom;border-radius:6px;width:28px}.level-meter__cell[data-level="1"]{height:20%}.level-meter__cell[data-level="2"]{height:40%}.level-meter__cell[data-level="3"]{height:60%}.level-meter__cell[data-level="4"]{height:80%}.level-meter__cell[data-level="5"]{height:100%}.level-meter__cell.is-on[data-level="1"]{background:var(--level-1)}.level-meter__cell.is-on[data-level="2"]{background:var(--level-2)}.level-meter__cell.is-on[data-level="3"]{background:var(--level-3)}.level-meter__cell.is-on[data-level="4"]{background:var(--level-4)}.level-meter__cell.is-on[data-level="5"]{background:var(--level-5)}.result-type__emoji{font-size:3.5rem;line-height:1}.result-type__image{aspect-ratio:1;border:2px solid var(--ink);object-fit:cover;border-radius:16px;width:min(280px,100%)}.advice{background:var(--accent-soft);text-align:left;border-radius:14px;padding:14px 16px}.tags{color:var(--text-sub);flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;font-size:.9rem;display:flex}.tag{border:1px solid var(--ink);border-radius:999px;padding:2px 10px}.share{flex-direction:column;gap:4px;display:flex}.cta{background:var(--accent-soft);box-shadow:none;border-style:dashed}.cta h2{font-size:1.2rem}.site-footer{border-top:2px dashed var(--border);max-width:560px;color:var(--text-sub);text-align:center;flex-direction:column;align-items:center;gap:6px;margin:0 auto;padding:24px 16px 40px;font-size:.78rem;display:flex}.site-footer__links{gap:16px;display:flex}.site-footer a{color:var(--text)}.doc h2{font-size:1.05rem}.doc ul{margin:0;padding-left:1.2em}.doc a{color:var(--accent)}.button-soft{background:var(--accent-soft);color:var(--text);font-size:.95rem}.section-title{font-size:1.1rem}.page-play{gap:14px;padding-top:16px}.status{flex-direction:column;gap:8px;display:flex}.energy__label{justify-content:space-between;font-weight:700;display:flex}.energy__track{background:var(--border);border-radius:999px;height:12px;overflow:hidden}.energy__bar{background:linear-gradient(90deg, var(--accent), var(--level-2));border-radius:999px;height:100%}.energy__bar.is-low{background:var(--level-5)}.status__stats{grid-template-columns:repeat(4,1fr);gap:6px;margin:0;display:grid}.status__stats div{border:1.5px solid var(--ink);background:var(--surface);text-align:center;border-radius:10px;padding:4px 6px}.status__stats dt{color:var(--text-sub);font-size:.7rem}.status__stats dd{margin:0;font-size:.9rem;font-weight:700}.room{--clean:0;--wall-slope:25.6deg;aspect-ratio:4/3;border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow);isolation:isolate;background:#e9dcc4;position:relative;overflow:hidden}.room__wall,.room__floor,.room.has-image:before{z-index:-1;filter:brightness(calc(.62 + .38 * var(--clean))) saturate(calc(.5 + .5 * var(--clean)));transition:filter .8s;position:absolute;inset:0}.room__wall--left{clip-path:polygon(0 0,50% 0,50% 30%,0 62%);background:#f3e6cf}.room__wall--right{clip-path:polygon(50% 0,100% 0,100% 62%,50% 30%);background:#e6d3b3}.room__floor{clip-path:polygon(50% 30%,100% 62%,100% 100%,0 100%,0 62%);background:repeating-linear-gradient(-26deg,#d9b98c 0 26px,#cfae80 26px 28px)}.room.has-image:before{content:"";background:var(--room-image) center / cover}.room.has-image :is(.room__wall,.room__floor,.room__window){display:none}.room.has-image :is(.room__shelf,.room__door){font-size:0}.room__window{width:22%;height:22%;transform:skewY(calc(-1 * var(--wall-slope)));transform-origin:0 0;filter:brightness(calc(.7 + .3 * var(--clean)));background:linear-gradient(#bfe3f5,#e7f6fc);border:5px solid #fff;border-radius:6px;position:absolute;top:18%;left:14%}.room__window-glow{opacity:var(--clean);background:radial-gradient(circle,#fffbe8 0%,#0000 70%);position:absolute;inset:0}.room__shelf,.room__door{line-height:1;position:absolute}.room__shelf{font-size:2.6rem;top:34%;left:3%}.room__door{transform:skewY(var(--wall-slope));font-size:3.4rem;top:12%;right:12%}.room__badge{background:var(--accent);min-width:20px;color:var(--accent-text);text-align:center;border-radius:999px;padding:0 5px;font-size:.75rem;position:absolute;bottom:-4px;right:-6px}.room__stash{font-size:1.1rem;display:flex;position:absolute;top:55%;left:-26px}.room__trash-bag{z-index:100;font-size:2.2rem;position:absolute;bottom:3%;right:3%}.room__item,.room__held{color:inherit;font:inherit;filter:drop-shadow(0 3px 2px #0003);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;background:0 0;border:0;padding:0;line-height:1}.room__item{position:absolute;translate:-50% -50%}.room__item:disabled,.room__held:disabled{cursor:default}.room__item.is-selectable,.room__held.is-selectable{cursor:pointer;transition:scale .15s,filter .15s}.room__item.is-selectable:hover,.room__item.is-selectable:focus-visible,.room__held.is-selectable:hover,.room__held.is-selectable:focus-visible{filter:drop-shadow(0 0 6px #fff8c8)drop-shadow(0 3px 2px #0003);outline:none;scale:1.12}.room__item.is-selected{animation:1.2s ease-in-out infinite bob}.room__item.is-selected,.room__held.is-selected{filter:drop-shadow(0 0 8px #fff8c8)drop-shadow(0 3px 2px #0003)}@keyframes bob{50%{translate:-50% calc(-50% - 6px)}}.room__hold{z-index:100;flex-direction:column;align-items:center;line-height:1;display:flex;position:absolute;bottom:2%;left:2%}.room__hold-items{gap:2px;margin-bottom:-6px;font-size:1.3rem;display:flex}.room__held.is-selectable{animation:1.4s ease-in-out infinite hop}@keyframes hop{50%{translate:0 -4px}}.room__hold-box{font-size:2rem}.room__hold-count{color:#6b5a2f;background:#fffc;border-radius:999px;margin-top:2px;padding:1px 6px;font-size:.65rem;font-weight:700}.play-hint{color:var(--text-sub);text-align:center;font-size:.88rem}.sprite{pointer-events:none;width:auto;height:1.3em;display:block}.sheet-backdrop{z-index:25;background:#00000059;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:min(560px,100%);max-height:88dvh;padding:16px 16px calc(16px + env(safe-area-inset-bottom));border:2px solid var(--ink);background:var(--bg);border-bottom:0;border-radius:24px 24px 0 0;flex-direction:column;gap:12px;display:flex;overflow-y:auto}.room__effect{z-index:101;pointer-events:none;font-size:1.8rem;position:absolute;translate:-50% -50%}.room__dust span{background:var(--dust);pointer-events:none;border-radius:50%;width:6px;height:6px;position:absolute}.room__burst{z-index:102;pointer-events:none;background:radial-gradient(circle at 25% 22%,#fffdf0 0%,#fffadcb3 40%,#0000 80%);place-items:center;display:grid;position:absolute;inset:0}.room__burst p{color:#6b5a2f;background:#ffffffd9;border-radius:999px;padding:8px 16px;font-weight:900}.phase-banner{background:var(--level-3);color:#3a2c10;text-align:center;border-radius:12px;padding:10px 14px;font-weight:700}.item-card{border:2px solid var(--ink);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-direction:column;gap:10px;padding:16px;display:flex}.item-card__head{align-items:center;gap:14px;display:flex}.item-card__emoji{font-size:3rem;line-height:1}.item-card__name{font-size:1.2rem;line-height:1.4}.item-card__meta{color:var(--text-sub);flex-wrap:wrap;gap:4px;margin-top:4px;font-size:.78rem;display:flex}.item-card__price{color:var(--text-sub)}.item-card__price strong{color:var(--text);font-size:1.25rem}.item-card__price.is-loud strong{color:var(--level-5);font-size:1.5rem}.item-card__knowledge{background:var(--accent-soft);border-radius:10px;padding:6px 10px;font-size:.85rem}.item-card__episode{border-left:4px solid var(--level-3);background:var(--bg);border-radius:8px;padding:12px;font-size:.92rem}.item-card__hint{margin-top:6px;font-weight:700}.item-card__hint.is-blurred{filter:blur(3px)}.decisions{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.decision{border:2px solid var(--ink);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:16px;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;transition:transform .1s,border-color .15s;display:flex}.decision:not(:disabled):hover{border-color:var(--accent)}.decision:not(:disabled):active{transform:scale(.95)}.decision:disabled{opacity:.45;cursor:not-allowed}.decision__emoji{font-size:1.6rem}.decision__label{font-weight:700}.decision__cost{color:var(--text-sub);font-size:.72rem}.decision--stash{border-style:dashed}.small-actions__title{color:var(--text-sub);margin-bottom:6px;font-size:.85rem}.small-actions__list{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1.5px solid var(--ink);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:8px 12px;font-size:.85rem}.chip.is-done{border-color:var(--accent);background:var(--accent-soft);color:var(--text-sub)}.chip:disabled{cursor:default}.chip__cost{color:var(--text-sub);margin-left:6px;font-size:.75rem}.toasts{z-index:40;pointer-events:none;flex-direction:column;gap:8px;width:min(520px,100% - 32px);display:flex;position:fixed;top:12px;left:50%;translate:-50%}.toast{border:2px solid var(--ink);background:var(--surface);box-shadow:var(--shadow);border-radius:14px;padding:12px 16px;font-size:.9rem}.toast p{color:var(--text-sub);font-size:.82rem}.overlay{z-index:30;background:#00000073;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.overlay__panel{border:2px solid var(--ink);border-radius:var(--radius);background:var(--surface);text-align:center;flex-direction:column;gap:12px;width:min(420px,100%);padding:28px 24px;display:flex}.overlay__emoji{font-size:3rem}.score{text-align:center;align-items:center}.score__label{color:var(--text-sub);font-weight:700}.score__value{font-size:4.5rem;font-weight:900;line-height:1}.score__value span{margin-left:4px;font-size:1.3rem}.rank{background:var(--accent-soft);border-radius:999px;padding:2px 16px;font-weight:900}.rank--S{background:var(--level-3);color:#3a2c10}.rank--D{background:var(--border)}.before-after{grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;display:grid}.before-after__arrow{color:var(--text-sub);font-size:1.4rem}.mini-room{border-radius:12px;flex-wrap:wrap;align-content:flex-start;gap:2px;min-height:110px;padding:8px;font-size:1.1rem;display:flex}.mini-room.is-messy{background:#cbb08a}.mini-room.is-clean{background:#e9dcc4}.mini-room__clean{margin:auto;font-size:2.4rem}.breakdown{flex-direction:column;gap:8px;margin:0;padding:0;font-size:.88rem;list-style:none;display:flex}.breakdown li{grid-template-columns:1fr 80px 48px;align-items:center;gap:8px;display:grid}.breakdown li.is-minus{color:var(--level-5);grid-template-columns:1fr 48px}.breakdown strong{text-align:right}.breakdown__bar{background:var(--border);border-radius:999px;height:8px;overflow:hidden}.breakdown__bar span{background:var(--accent);height:100%;display:block}.energy-chart{width:100%;height:auto}.energy-chart__axis{stroke:var(--border)}.energy-chart__line{fill:none;stroke:var(--accent);stroke-width:2.5px;stroke-linejoin:round}.energy-chart__marker{fill:var(--level-3)}.reveals,.knowledge{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.reveals li{gap:10px;display:flex}.reveals__emoji{font-size:1.6rem}.reveals__head{flex-wrap:wrap;justify-content:space-between;gap:4px 8px;display:flex}.reveals__head span,.reveals__truth,.knowledge p{color:var(--text-sub);font-size:.85rem}.next-rank{background:var(--bg);border-radius:999px;padding:6px 14px;font-size:.9rem}.next-rank strong{color:var(--accent)}.improvements{border:2px solid var(--accent)}.improvements ul{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.improvements li{justify-content:space-between;align-items:center;gap:12px;font-size:.9rem;display:flex}.improvements__gain{background:var(--accent);color:var(--accent-text);border-radius:999px;flex-shrink:0;padding:4px 10px}.rank-guide{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.rank-guide li{border-radius:12px;align-items:flex-start;gap:10px;padding:8px;display:flex}.rank-guide li.is-current{background:var(--accent-soft)}.rank-guide .rank{text-align:center;flex-shrink:0;min-width:36px;padding:2px 0}.rank-guide__name{font-weight:700}.rank-guide__name span{color:var(--text-sub);margin-left:8px;font-size:.8rem;font-weight:400}.rank-guide__desc{color:var(--text-sub);font-size:.82rem}
