:root{--bg:#14110c;--bg-2:#1b160f;--panel:#211a12;--panel-2:#2a2117;--border:#3d3324;--border-strong:#574936;--text:#ece2cd;--muted:#a4977c;--gold:#d0a84f;--gold-dim:#a9863a;--tile:#241d14;--tile-hover:#2f2618;--tile-selected:#43351f;--c0:#d8b45a;--c1:#6ea765;--c2:#5b93cf;--c3:#a878c9;--on-color:#191308;--radius:10px;--gap:8px;--maxw:880px}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:radial-gradient(1200px 600px at 50% -10%, #241d13 0%, transparent 60%), var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:system-ui,Segoe UI,Roboto,sans-serif;line-height:1.4}a{color:var(--gold)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app{max-width:var(--maxw);flex-direction:column;min-height:100dvh;margin:0 auto;padding:clamp(12px,3vw,24px) clamp(12px,3vw,20px) 40px;display:flex}.app--message{text-align:center;justify-content:center;align-items:center;gap:8px}.app--message .loading{color:var(--muted)}.app--message .error{color:#e08a7a;max-width:40ch}.layout{align-items:flex-start;gap:16px;margin-top:12px;display:flex}.play{flex-direction:column;flex:auto;gap:14px;min-width:0;display:flex}.log-col{border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);flex:none;align-self:stretch;width:210px;padding:12px}.log-title{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 8px;font-size:.8rem}.log-empty{color:var(--muted);margin:0;font-size:.82rem}.log-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.log-entry{background:var(--panel-2);border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:5px 7px;animation:.25s both reveal;display:flex}.log-thumbs{gap:3px;display:flex}.log-thumb-wrap{outline:none;display:inline-flex;position:relative}.log-thumb{object-fit:contain;width:24px;height:24px;image-rendering:pixelated;background:var(--tile);cursor:help;border-radius:4px}.log-pop{background:var(--panel);border:1px solid var(--border-strong);z-index:30;pointer-events:none;border-radius:8px;flex-direction:column;align-items:center;gap:4px;padding:8px;display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);box-shadow:0 10px 28px #0000008c}.log-thumb-wrap:hover .log-pop,.log-thumb-wrap:focus-visible .log-pop{display:flex}.log-pop__img{object-fit:contain;width:88px;height:88px;image-rendering:pixelated}.log-pop__name{color:var(--text);white-space:nowrap;font-size:.82rem;font-weight:700}.log-badge{white-space:nowrap;color:var(--on-color);border-radius:999px;padding:3px 6px;font-size:.66rem;font-weight:800}.log-badge--good{background:var(--c1)}.log-badge--near{background:var(--c0)}.log-badge--bad{color:var(--muted);background:#4a3a2a}.feedback{text-align:center;border-radius:999px;padding:8px 12px;font-size:.9rem;font-weight:700;animation:.28s both pop}.feedback--good{background:var(--c1);color:var(--on-color)}.feedback--near{background:var(--c0);color:var(--on-color)}.feedback--bad{background:var(--panel-2);color:var(--muted);border:1px solid var(--border-strong)}.header{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;padding-bottom:14px;display:flex}.header__titlerow{align-items:center;gap:10px;display:flex}.header__title{margin:0;line-height:0}.header__logo{filter:drop-shadow(0 2px 3px #0000008c);width:auto;height:clamp(60px,13vw,88px);display:block}.help-btn{border:1.5px solid var(--gold-dim);width:26px;height:26px;color:var(--gold);cursor:pointer;background:0 0;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;font-size:.95rem;font-weight:800;line-height:1;display:inline-flex}.help-btn:hover{background:var(--panel-2);border-color:var(--gold)}.header__tagline{color:var(--muted);max-width:34ch;margin:2px 0 0;font-size:.9rem}.header__actions{flex-direction:column;align-items:flex-end;gap:10px;display:flex}.selects{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.header__buttons{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.select{position:relative}.select__btn{appearance:none;background:var(--panel-2);border:1px solid var(--border-strong);color:var(--text);font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:7px 12px;font-weight:600;transition:background .15s,border-color .15s;display:inline-flex}.select__btn:hover,.select__btn--open{border-color:var(--gold-dim);background:#34291c}.select__caret{color:var(--muted);font-size:.7em;line-height:1}.select__menu{z-index:30;white-space:nowrap;background:var(--panel);border:1px solid var(--border-strong);border-radius:10px;min-width:100%;margin:0;padding:5px;list-style:none;animation:.12s both fade;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #00000073}.select__opt{appearance:none;text-align:left;width:100%;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:8px 12px;display:block}.select__opt:hover{background:var(--panel-2)}.select__opt--on{color:var(--gold);font-weight:700}.btn{appearance:none;border:1px solid var(--border-strong);background:var(--panel-2);color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:9px 16px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s,transform 50ms;display:inline-block}.btn:hover:not(:disabled){border-color:var(--gold-dim);background:#34291c}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn--primary{background:linear-gradient(180deg, var(--gold) 0%, var(--gold-dim) 100%);color:var(--on-color);border-color:var(--gold)}.btn--primary:hover:not(:disabled){background:var(--gold)}.btn--daily{color:#eaf1fb;background:linear-gradient(#3d5f92 0%,#2f4a72 100%);border-color:#4f86c6}.btn--daily:hover:not(:disabled){background:#446aa2;border-color:#6ea0da}.btn--unlimited{color:#f0e9fb;background:linear-gradient(#6b4e93 0%,#503970 100%);border-color:#8a6fb5}.btn--unlimited:hover:not(:disabled){background:#7a5aa6;border-color:#a488cf}.btn--hint{border-color:var(--gold-dim);color:var(--gold);align-items:center;gap:6px;display:inline-flex}.hint-count{text-align:center;background:#00000047;border-radius:999px;min-width:20px;padding:0 7px;font-weight:800}.daily-tag{border:1px solid var(--border-strong);background:var(--panel);color:var(--gold);border-radius:999px;align-self:center;margin-top:12px;padding:6px 14px;font-size:.82rem;font-weight:700}.unlimited-tag{color:var(--c3);border-color:#5a4577}.unlimited-tag strong{color:var(--text)}.unlimited-next{text-align:center;color:var(--c3);margin:0;font-weight:700}.solved-list{gap:var(--gap);flex-direction:column;display:flex}.solved{border-radius:var(--radius);color:var(--on-color);padding:10px 12px;animation:.35s both reveal}.solved--c0{background:var(--c0)}.solved--c1{background:var(--c1)}.solved--c2{background:var(--c2)}.solved--c3{background:var(--c3)}.solved__label{text-transform:uppercase;letter-spacing:.03em;margin-bottom:6px;font-size:.95rem;font-weight:800}.solved__creatures{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.solved__item{color:inherit;border-radius:6px;flex-direction:column;align-items:center;gap:3px;margin:0;padding:2px;text-decoration:none;display:flex}.solved__item:hover{background:#0000001f}.solved__item:hover .solved__name{text-decoration:underline}.solved__img{object-fit:contain;width:72px;height:72px;image-rendering:pixelated}.solved__name{text-align:center;font-size:.72rem;font-weight:700;line-height:1.1}.board{gap:var(--gap);grid-template-columns:repeat(4,1fr);display:grid}.tile{appearance:none;border:1px solid var(--border);background:var(--tile);color:var(--text);border-radius:var(--radius);cursor:pointer;aspect-ratio:1;flex-direction:column;justify-content:flex-start;align-items:center;gap:4px;padding:7px 4px 6px;transition:background .12s,border-color .12s,transform 60ms;display:flex;overflow:hidden}.tile:hover:not(:disabled){background:var(--tile-hover);border-color:var(--border-strong)}.tile--selected{background:var(--tile-selected);border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.tile__img{object-fit:contain;width:100%;min-height:0;image-rendering:pixelated;pointer-events:none;flex:1 1 0}.tile__img--broken{visibility:hidden}.tile__name{text-align:center;-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;flex:none;width:100%;margin-top:auto;font-size:clamp(.56rem,2.5vw,.72rem);font-weight:600;line-height:1.05;display:-webkit-box;overflow:hidden}.tile--name{justify-content:center}.tile--name .tile__name{-webkit-line-clamp:4;margin-top:0;font-size:clamp(.72rem,3.4vw,1rem);line-height:1.15}.tile--hint{color:var(--on-color)}.tile--hint0{background-color:var(--c0)}.tile--hint1{background-color:var(--c1)}.tile--hint2{background-color:var(--c2)}.tile--hint3{background-color:var(--c3)}.controls{flex-direction:column;align-items:center;gap:12px;margin-top:4px;display:flex}.mistakes{color:var(--muted);align-items:center;gap:8px;font-size:.9rem;display:flex}.mistakes__dots{align-items:center;gap:5px;display:inline-flex}.life{width:22px;height:22px;image-rendering:pixelated;filter:drop-shadow(0 1px 1px #00000080);transition:opacity .2s,filter .2s}.life--used{opacity:.28;filter:grayscale()brightness(.8)}.controls__buttons{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.over-actions{justify-content:center;margin-top:4px;display:flex}.ad-slot{width:100%;min-height:90px;margin:20px auto 0;overflow:hidden}.footer{border-top:1px solid var(--border);color:var(--muted);text-align:center;margin-top:24px;padding-top:14px;font-size:.78rem}.modal-backdrop{z-index:10;background:#080603b8;justify-content:center;align-items:center;padding:20px;animation:.2s both fade;display:flex;position:fixed;inset:0}.modal{background:var(--panel);border:1px solid var(--border-strong);text-align:center;border-radius:14px;width:100%;max-width:380px;padding:22px;box-shadow:0 20px 60px #0009}.modal__title{color:var(--gold);margin:0 0 6px;font-family:Georgia,serif}.modal__text{color:var(--text);margin:0 0 12px}.modal__text--muted{color:var(--muted);font-size:.9rem}.modal__seed{color:var(--muted);word-break:break-all;margin-bottom:16px;font-size:.78rem}.modal__seed code{color:var(--text)}.modal__buttons{justify-content:center;gap:10px;display:flex}.modal__close{width:30px;height:30px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;font-size:1.4rem;line-height:1;position:absolute;top:8px;right:10px}.modal__close:hover{background:var(--panel-2);color:var(--text)}.modal--help{text-align:left;max-width:420px;position:relative}.help>p{color:var(--text);margin:0 0 12px;font-size:.92rem}.help__heading{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:14px 0 8px;font-size:.72rem}.help__chips{flex-wrap:wrap;gap:6px;display:flex}.chip{background:var(--panel-2);border:1px solid var(--border-strong);color:var(--text);border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:600}.help__levels{color:var(--text);flex-direction:column;gap:3px;margin:0;padding-left:18px;font-size:.88rem;display:flex}.help__levels strong{color:var(--gold)}.modal--daily{text-align:left;max-width:420px;position:relative}.daily-help{color:var(--muted);margin:0 0 14px;font-size:.85rem}.daily-days{flex-direction:column;gap:6px;max-height:56vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.daily-day{border:1px solid var(--border-strong);background:var(--panel-2);width:100%;color:var(--text);font:inherit;cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-weight:600;transition:background .12s,border-color .12s;display:flex}.daily-day:hover{border-color:var(--gold-dim);background:#34291c}.daily-day__status{font-size:.8rem;font-weight:800}.daily-day__status--play{color:var(--gold)}.daily-day__status--won{color:var(--c1)}.daily-day__status--lost{color:#d98a7a}@keyframes reveal{0%{opacity:0;transform:translateY(-6px)scale(.98)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes pop{0%{opacity:0;transform:scale(.94)}60%{transform:scale(1.03)}to{opacity:1;transform:scale(1)}}@keyframes shake{10%,90%{transform:translate(-2px)}20%,80%{transform:translate(3px)}30%,50%,70%{transform:translate(-5px)}40%,60%{transform:translate(5px)}}.tile--shake{animation:.5s cubic-bezier(.36,.07,.19,.97) both shake}.btn:focus-visible,.select__btn:focus-visible,.select__opt:focus-visible,.tile:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media (prefers-reduced-motion:reduce){*{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}@media (width<=760px){.layout{flex-direction:column}.log-col{order:2;width:100%}.log-list{flex-flow:wrap;max-height:none}}@media (width<=420px){:root{--gap:6px}.solved__img{width:56px;height:56px}.solved__name{font-size:.62rem}}.howto-page{max-width:760px}.howto-back{color:var(--muted);margin-bottom:10px;font-size:.9rem;text-decoration:none;display:inline-block}.howto-back:hover{color:var(--gold)}.howto-title{color:var(--gold);text-shadow:0 1px #000;margin:0 0 10px;font-family:Georgia,Times New Roman,serif;font-size:clamp(26px,6vw,38px)}.howto-lede{color:var(--text);margin:0;font-size:1.02rem}.howto-toc{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:8px;margin:18px 0 8px;padding-bottom:14px;display:flex}.howto-toc a{color:var(--muted);border:1px solid var(--border);background:var(--panel);border-radius:999px;padding:4px 10px;font-size:.82rem;text-decoration:none}.howto-toc a:hover{color:var(--gold);border-color:var(--border-strong)}.howto-sec{margin:26px 0;scroll-margin-top:16px}.howto-sec h2{color:var(--gold);margin:0 0 8px;font-family:Georgia,Times New Roman,serif;font-size:1.35rem}.howto-sec p{color:var(--text);margin:8px 0}.howto-sec strong{color:#f4e9d0}.howto-conn{gap:8px;margin:12px 0 0;padding:0;list-style:none;display:grid}.howto-conn li{color:var(--muted);align-items:baseline;gap:10px;font-size:.95rem;display:flex}.howto-conn .chip{text-align:center;flex:none;min-width:92px}.howto-levels{color:var(--muted);gap:8px;margin:10px 0 0;padding-left:20px;display:grid}.howto-levels li{color:var(--muted)}.howto-levels strong{color:var(--gold)}.howto-tip{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;color:var(--muted)!important}.howto-cta{text-align:center;margin-top:28px}
