:root{color-scheme:light;--green:#263a31;--dark:#172b23;--cream:#f7f4e9;--paper:#fffdf6;--ink:#24362d;--muted:#495e52;--accent:#bc4f3a;--gold:#e9ba73;--line:#d6d8c8;font:1rem/1.5 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #a95037;outline-offset:3px}.wrap{width:min(1120px,calc(100% - 48px));margin:auto}header{background:var(--green);color:var(--paper)}.top{display:flex;align-items:center;justify-content:space-between;min-height:70px}.brand{font-family:Georgia,serif;font-size:1.26rem}.brand span,footer span{color:var(--accent);margin-right:.35rem}header .brand span{color:var(--gold)}.quiet,.primary,.tools button{padding:.65rem 1rem;border-radius:.5rem;border:1px solid currentColor;background:transparent;color:inherit;font-weight:650}.primary,.tools .primary{background:#a84332;color:#fff;border-color:#a84332}.primary:hover,.tools .primary:hover{background:#893326}.quiet:hover,.tools button:not(.primary):hover{background:#898f7426}.hero{margin:32px 0 42px;padding:clamp(24px,5vw,64px);background:var(--green);color:var(--paper);border-radius:1.35rem;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:32px;overflow:hidden}.eyebrow{font-size:.875rem;letter-spacing:.15em;font-weight:750;margin:0 0 .45rem}.hero .eyebrow{color:var(--gold)}h1,h2{font-family:Georgia,serif;font-weight:500;line-height:1.02;margin:0}h1{font-size:clamp(3.2rem,8vw,7.3rem);letter-spacing:-.065em}h1 span{color:var(--gold)}h2{font-size:clamp(2rem,5vw,3.8rem);letter-spacing:-.045em}.intro{max-width:370px;color:#f1eddd;margin:1.3rem 0 1.5rem}.art{justify-self:center;width:min(100%,350px)}.art-frame{padding:10%;border-radius:50% 50% 14px 14px;border:1px solid #e9ba7380;background:#334a3e}.pixel{display:grid;grid-template-columns:repeat(15,1fr);aspect-ratio:1;background:repeating-linear-gradient(45deg,#f3e5c4,#f3e5c4 4px,#f6ebd0 4px,#f6ebd0 8px);border:4px solid #dcb475;transform:rotate(3deg);border-radius:10%;overflow:hidden}.pixel i{border:1px solid #725c3320}.pixel .g{background:#415c4c}.pixel .r{background:#bf6551}.pixel .d{background:#253a32}.pixel .y{background:#d3a455}.art-caption{text-align:center;color:#f1d7ad;font-family:Georgia,serif;font-style:italic;padding-top:1rem}.art-caption span{padding:0 .4rem}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:1.2rem}.section-head p:last-child{color:var(--muted);margin:0}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.day{position:relative;text-align:left;min-height:94px;padding:.65rem .8rem;border:1px solid var(--line);border-radius:.7rem;background:var(--paper);color:var(--green)}.day:hover{border-color:var(--green)}.day strong{display:block;font:2rem Georgia,serif}.day span{font-size:.875rem}.day.locked{background:#eeeee3;color:#4f5c51}.day.solved{background:#e2ebdb}.day.today{background:var(--green);color:white}.day:last-child{border-color:#ad704b}.day:last-child strong::after{content:' ✦';color:#a84332;font-size:1rem}.game{margin:28px auto;text-align:center;padding:clamp(16px,4vw,36px);background:var(--paper);border:1px solid var(--line);border-radius:1.2rem}.back{display:block;margin:0 0 1.2rem}.board-shell{overflow:auto;margin:1rem auto}.tools{display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem}.tools [aria-pressed=true]{background:var(--green);color:white}.board-shell #board{display:grid;width:max-content;margin:auto;touch-action:manipulation;user-select:none;--cell:clamp(17px,5.3vw,34px);font-size:clamp(.65rem,2.7vw,.87rem)}.clues{display:flex;align-items:center;justify-content:flex-end;gap:.24em;padding:0 .3em;color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}.col{flex-direction:column;justify-content:flex-end;padding:0 0 .21em;gap:0;line-height:1.15}.clues.done{color:#596e61;background:#e6ecd9}.cell{width:var(--cell);height:var(--cell);border:0;border-bottom:1px solid #a9b5a7;border-right:1px solid #a9b5a7;background:#f9f8ee;padding:0;color:#3e5345;font-size:1.1em;line-height:1;touch-action:none}.cell.marked{background:var(--green)}.cell.edge-right{border-right:2px solid #4b5e51}.cell.edge-bottom{border-bottom:2px solid #4b5e51}.cell.edge-start{border-left:2px solid #4b5e51}.cell.edge-top{border-top:2px solid #4b5e51}.cell:focus-visible{position:relative;z-index:1;outline-offset:-3px}#feedback{min-height:1.5rem}#reward{margin:auto;max-width:530px;padding:1.2rem;background:#e9eedf;border-radius:.8rem}#reward h3{margin:.2em 0;font:1.65rem Georgia,serif}#reward p{margin:.5rem 0}footer{padding:2rem 0;text-align:center;color:var(--muted)}dialog{width:min(510px,calc(100% - 30px));border:1px solid var(--line);border-radius:1rem;background:var(--paper);color:var(--ink);padding:1.5rem}dialog::backdrop{background:#172b23bb}.close{float:right;border:0;background:none;color:inherit;font-size:1.5rem}[hidden]{display:none!important}
@media(max-width:650px){.wrap{width:calc(100% - 24px)}.hero{grid-template-columns:1fr;margin:14px 0 30px;gap:22px}.art{width:min(67%,220px)}.days{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.day{min-height:73px;padding:.4rem}.day strong{font-size:1.7rem}.day span{font-size:.8rem}.game{padding:12px 4px}.back{margin-left:8px}}
.preview-banner{margin:1rem 0;padding:.65rem 1rem;border-radius:.5rem;background:#f5e1bc;color:#503b24}
.cell.given{position:relative}.cell.given::after{content:'';position:absolute;inset:2px 2px auto auto;width:4px;height:4px;border-radius:50%;background:#a84332}.cell.given.marked::after{background:var(--gold)}
main{padding-bottom:2rem}#lesson{max-width:530px;background:#f1ead8;border-radius:.65rem;padding:.7rem 1rem;margin:0 auto 1rem;text-align:left}#lesson p{margin:.2rem 0 0}.cell.lesson-target{box-shadow:inset 0 0 0 2px #bc4f3a}.cell.lesson-target.marked{box-shadow:inset 0 0 0 2px #e9ba73}.clues.lesson-target{background:#f3dec1}.tools button:disabled{opacity:.5;cursor:default}#board.training{--cell:clamp(35px,10vw,44px)}
.cat-reaction{display:flex;align-items:center;gap:.45rem;width:fit-content;max-width:100%;margin:.75rem auto 0}.cat-reaction figcaption{font-size:.875rem;font-weight:650;line-height:1.2}
.cat-face{display:block;flex:none;width:38px;height:38px;object-fit:contain}
.zoom-tools{display:flex;justify-content:center;align-items:center;gap:.65rem;margin:.75rem auto}.zoom-tools input{accent-color:var(--green);width:clamp(100px,28vw,210px);min-height:30px}
#board-shell{max-width:max-content;max-height:min(65vh,640px);overscroll-behavior:contain}
.board-shell #board:not(.training){--cell:var(--game-cell,24px)}
#board .clues{background:var(--paper)}#board .clues.done{background:#e6ecd9;color:#596e61;text-decoration:line-through}#board .clues.lesson-target{background:#f3dec1;text-decoration:none}
#board:not(.training) .col,#board:not(.training) .row,#board:not(.training) .clue-corner{position:sticky;z-index:2}
#board:not(.training) .row{left:0;border-right:1px solid var(--line)}#board:not(.training) .col{top:0;border-bottom:1px solid var(--line)}
#board:not(.training) .clue-corner{top:0;left:0;z-index:3;background:var(--paper)}
#board .clues.active-clue{background:#f4dfbe}.cell.active-cell:not(.marked){background:#f4ebd6}.cell.active-cell.marked{background:#47674f}
.zoom-tools{flex-wrap:wrap}.zoom-tools .quiet{padding:.35rem .65rem}.zoom-tools [aria-pressed=true]{background:var(--green);color:white}#board.panning .cell{touch-action:pan-x pan-y;cursor:grab}
#board.finished .cell.given::after{display:none}
#board.finished .cell:not(.marked){background:var(--result-color,#f9f8ee)}
#board.finished .cell.marked{background:var(--result-color,var(--green))}
#board.finished .clues.done{text-decoration:none;background:#e6ecd9}
