:root{color-scheme:dark;--bg:#102632;--panel:#183642;--raised:#22444f;--line:#3a5b65;--ink:#f5f0df;--muted:#b2c7c9;--gold:#f5cf78;--mint:#9ee3c4;--cell:#f4efdf;--cell-ink:#183642;--blue:#b8d9f3;--bad:#ffb5a6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer;color:var(--ink);background:var(--raised);border:1px solid var(--line);border-radius:12px;padding:.7rem 1rem;font-weight:600;touch-action:manipulation}button:hover{filter:brightness(1.1)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:var(--mint)}button span{font-weight:400}header{max-width:1220px;margin:auto;padding:1.4rem 2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.brand{display:flex;gap:.8rem;align-items:center}.brand-mark{display:grid;place-items:center;width:45px;height:45px;background:var(--gold);color:var(--bg);border-radius:14px;font-size:1.8rem}.brand strong{display:block;font-size:1.2rem}.brand div>span{color:var(--muted);font-size:.8rem}#wallet{color:var(--gold);border-color:#6b6a4d;border-radius:30px;white-space:nowrap}#wallet span:last-child{font-size:.85rem}main{max-width:1160px;margin:1rem auto 2rem;padding:0 2rem}.topline{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0 1.4rem}.eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:750;color:var(--gold)}h1{font:600 2.4rem/1.15 Georgia,serif;letter-spacing:-.025em;margin:.35rem 0 .6rem}h2{font-size:1.15rem;margin:0 0 .65rem}p{margin:0;color:var(--muted)}.topline p{max-width:650px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:1.4rem;align-items:start}.game-panel{padding:1.1rem 1.4rem 1.4rem;border:1px solid var(--line);background:var(--panel);border-radius:22px;min-width:0;box-shadow:0 14px 50px #081b252e}.game-bar{display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:.875rem;color:var(--muted);margin-bottom:1rem}.text-button{border:0;background:none;padding:.3rem;color:var(--mint);font-size:.875rem}#board{max-width:490px;margin:auto;user-select:none;-webkit-user-select:none}.puzzle-grid{display:grid;gap:4px;margin:0 auto}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-5{grid-template-columns:repeat(5,1fr)}.grid-6{grid-template-columns:repeat(6,1fr)}.grid-9{grid-template-columns:repeat(9,1fr)}.grid-11{grid-template-columns:repeat(11,1fr)}.cell{aspect-ratio:1;padding:0;border:0;border-radius:8px;display:grid;place-items:center;min-width:0;font-weight:650;position:relative;background:var(--cell);color:var(--cell-ink);font-size:1.45rem}.cell.selected{background:var(--gold);box-shadow:inset 0 0 0 3px #a97026}.cell.fixed{background:#c5d7d5;font-weight:800}.cell.conflict{color:#952d27;background:#f7c6bb}.cell.word-found{background:var(--mint)}.cell.marked{background:var(--gold)}.grid-9 .cell{font-size:1.15rem;border-radius:3px}.grid-11{gap:2px}.grid-11 .cell{font-size:1.05rem;border-radius:3px}.cell.black{background:transparent}.cell .clue-no{font-size:.5rem;position:absolute;top:1px;left:3px;color:#36535b}.cell.in-word{background:#c1dff3}.cell.in-word.selected{background:var(--gold)}.sudoku{gap:2px;background:#58717a;padding:3px;border-radius:10px}.sudoku .box-right{margin-right:3px}.sudoku .box-bottom{margin-bottom:3px}.sudoku.grid-4{max-width:370px}.sudoku.grid-4 .cell{font-size:2rem}.sudoku.grid-9 .cell{font-size:1.15rem}.number-pad{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;margin:1rem 0}.number-pad button{min-width:38px;padding:.5rem}.word-list{display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem;margin:1rem 0}.word-list span{font-size:.8rem;background:#284b56;padding:.3rem .65rem;border-radius:6px;letter-spacing:.04em}.word-list .found{text-decoration:line-through;color:var(--mint)}#game-message{font-size:.9rem;min-height:1.5em;margin:.8rem 0;text-align:center;color:var(--gold)}.game-actions{display:flex;justify-content:space-between;gap:.7rem;border-top:1px solid var(--line);padding-top:1rem}.game-actions button{flex:1;font-size:.95rem}.game-actions button span{display:block;font-size:.75rem;color:var(--muted)}#new-puzzle{background:var(--gold);color:var(--bg);border-color:var(--gold)}aside{display:flex;flex-direction:column;gap:1rem}.daily-card{background:var(--gold);color:var(--bg);padding:1.4rem;border-radius:20px}.daily-card .eyebrow{color:#465740}.daily-card h2{font:600 1.7rem/1.2 Georgia,serif;margin:.65rem 0}.daily-card p{color:#384d4f;font-size:.9rem}.daily-card button{background:var(--bg);border-color:var(--bg);margin:1rem 0 .7rem;width:100%}.daily-card small{display:block;font-size:.8rem}.session-card{border:1px solid var(--line);border-radius:18px;padding:1.2rem}.stat-row{display:flex;justify-content:space-between;padding:.4rem 0;color:var(--muted)}.stat-row strong{color:var(--ink)}.session-card p{font-size:.85rem;margin-top:.7rem}.preview-note{padding:.8rem;border:1px dashed #59777e;border-radius:10px;font-size:.8rem;color:var(--muted)}.small-links{display:flex;gap:.5rem;justify-content:space-between}.small-links button{font-size:.8rem;padding:.5rem;background:transparent;border:0;color:var(--muted)}#ad-slot{max-width:760px;text-align:center;margin:1rem auto;padding:1rem;color:var(--muted);border:1px dashed var(--line);border-radius:10px;font-size:.8rem}footer{max-width:1160px;margin:1rem auto;padding:1rem 2rem;display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.75rem}#completion{background:#2b514b;border:1px solid var(--mint);padding:1rem;border-radius:12px;margin-top:1rem;text-align:center}#completion strong{display:block;font-size:1.2rem;color:var(--mint)}#completion p{margin:.4rem 0}.word-rows{display:grid;gap:.5rem;max-width:340px;margin:auto}.word-row{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem}.letter-box{aspect-ratio:1;display:grid;place-items:center;background:var(--raised);border:2px solid #75929a;border-radius:7px;font-size:1.6rem;font-weight:750}.letter-box.correct{background:var(--mint);border-color:var(--mint);color:var(--bg)}.letter-box.present{background:var(--gold);border-color:var(--gold);color:var(--bg)}.letter-box.absent{background:#405560;border-color:#405560;color:#fff}.keyboard{margin:1rem -1rem .5rem;display:flex;flex-direction:column;gap:.3rem;align-items:center}.keyrow{display:flex;gap:.25rem;justify-content:center;width:100%}.keyrow button{padding:.6rem .2rem;flex:1;max-width:40px;font-size:.85rem;border-radius:5px}.keyrow button.wide{max-width:65px;flex:1.6;font-size:.7rem}.keyrow button.correct{background:var(--mint);color:var(--bg)}.keyrow button.present{background:var(--gold);color:var(--bg)}.keyrow button.absent{opacity:.45}.input-row{display:flex;gap:.5rem;margin:1rem 0;align-items:center}.input-row input{width:100%;padding:.75rem;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);text-transform:uppercase}.clue{padding:.7rem .9rem;background:var(--raised);border-radius:10px;margin:.8rem 0;font-size:.9rem}.clue-buttons{display:flex;gap:.35rem;flex-wrap:wrap;max-height:120px;overflow:auto}.clue-buttons button{font-size:.75rem;padding:.35rem .5rem}.clue-buttons .chosen{border-color:var(--gold);color:var(--gold)}.slider .cell{font-size:2.4rem;border-radius:15px;box-shadow:0 4px 0 #061a24}.slider .blank{background:#112a35;box-shadow:inset 0 0 0 1px var(--line)}.lights .cell{background:#102a35;border:1px solid var(--line);border-radius:10px;overflow:hidden}.lights svg{width:100%;height:100%;stroke:#5d7881;fill:none;stroke-width:7;stroke-linecap:round}.lights .powered svg{stroke:var(--mint)}.lights .powered{background:#1a443f;border-color:#428477}.lights .source{border:2px solid var(--gold)}.lights .source svg{stroke:var(--gold)}dialog{width:min(590px,calc(100% - 1.5rem));max-height:90vh;border:1px solid #79969d;background:var(--bg);color:var(--ink);border-radius:20px;padding:1.4rem}dialog::backdrop{background:#06161eda;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem}.modal-head h2{font:600 1.7rem Georgia,serif}.modal-head button{padding:.4rem .7rem}.library-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.library-tile{text-align:left;padding:1rem;background:var(--panel)}.library-tile strong{display:block;color:var(--gold)}.library-tile span{display:block;font-size:.8rem;color:var(--muted);margin-top:.4rem}.library-tile .puzzle-icon{font-size:1.6rem;margin-bottom:.4rem;color:var(--mint)}.difficulty{display:flex;gap:.6rem;margin:1rem 0}.difficulty button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}.offer{padding:1rem;background:var(--panel);border:1px solid var(--line);border-radius:12px;margin:.8rem 0}.offer h3{margin:0;color:var(--gold)}.offer p{font-size:.875rem;margin:.4rem 0}.offer button{margin-top:.5rem;width:100%}.modal-copy p{margin:.8rem 0}.modal-copy label{display:flex;justify-content:space-between;margin:1rem 0}.modal-copy input[type=checkbox]{width:22px;height:22px;accent-color:var(--mint)}.modal-copy .small{font-size:.8rem}.bad{color:var(--bad)}#toast{display:none;position:fixed;bottom:1.2rem;left:50%;transform:translateX(-50%);max-width:90vw;padding:.85rem 1.1rem;border:1px solid var(--mint);background:#173d41;color:var(--ink);border-radius:12px;z-index:100;font-size:.9rem}#toast.visible{display:block}[hidden]{display:none!important}@media(prefers-reduced-motion:no-preference){.cell{transition:background .12s}.project-card{transition:transform .15s}}@media(max-width:850px){.play-layout{grid-template-columns:1fr;max-width:600px;margin:auto}aside{display:grid;grid-template-columns:1fr 1fr}.daily-card,.session-card{padding:1rem}.preview-note,.small-links{grid-column:1/-1}main{padding:0 1rem}.topline{max-width:600px;margin:1rem auto}.topline{align-items:start}.topline h1{font-size:2rem}.topline>button{font-size:.85rem;max-width:150px}header{padding:1rem}#ad-slot{margin:1rem}footer{padding:1rem;flex-direction:column;gap:.3rem}}@media(max-width:420px){.brand div>span{display:none}.brand strong{font-size:1rem}.brand-mark{width:36px;height:36px;font-size:1.4rem}#wallet{padding:.5rem .7rem}#wallet span:last-child{display:none}.game-panel{padding:1rem .8rem}.topline h1{font-size:1.7rem}.topline p{font-size:.85rem}.topline>button{padding:.6rem;max-width:118px}aside{grid-template-columns:1fr}.preview-note,.small-links{grid-column:auto}.game-actions button{padding:.65rem .4rem;font-size:.85rem}.grid-11 .cell{font-size:.9rem}.keyboard{margin-left:0;margin-right:0}.grid-9 .cell{font-size:.9rem}}

#town{border:1px solid var(--line);border-radius:20px;padding:1.3rem;margin:1.2rem 0 2rem;background:linear-gradient(160deg,#173949,#102632)}.town-heading{display:flex;justify-content:space-between;gap:1rem;align-items:center}.town-heading h2{font:2rem Georgia,serif;color:var(--gold)}#town p{color:var(--muted);font-size:.85rem;margin:.5rem 0}.town-street{display:grid;grid-template-columns:repeat(5,1fr);gap:.7rem;margin:1.2rem 0}.town-building{display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:1rem .3rem;background:#122b38}.town-building strong{font-size:.85rem}.town-building small{color:var(--muted)}.town-house{display:block;position:relative;width:64px;height:70px;background:#315365;border-radius:3px;margin-top:20px}.roof{position:absolute;top:-20px;left:-8px;border-left:40px solid transparent;border-right:40px solid transparent;border-bottom:25px solid #527182}.windows{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px 12px}.windows i{width:14px;height:16px;background:#10212a}.restored{border-color:var(--gold)}.restored .windows i{background:var(--gold);box-shadow:0 0 14px #f5cf7888}.restored .roof{border-bottom-color:#b87f57}.restored .town-house{background:#89604b}.wire-tools{display:flex;gap:.7rem;justify-content:center;margin-top:1rem}.lights .cell.locked{border:3px dotted var(--gold)}.town-level{margin:.3rem}.wire-tools button[aria-pressed=true]{border-color:var(--gold)}@media(max-width:600px){.town-street{grid-template-columns:repeat(2,1fr)}.town-heading{align-items:stretch;flex-direction:column}.town-building:last-child{grid-column:1/-1}}

/* Soft circuit illumination; static glow also works with reduced motion. */
.lights .cell{position:relative;isolation:isolate;box-shadow:inset 0 1px 5px #0003}
.lights .cell svg{transform-origin:50% 50%;color:#5d7881}
.lights .powered{box-shadow:inset 0 0 18px #9ee3c41c,0 0 12px #9ee3c428;border-color:#65b39a}
.lights .powered svg{color:#c0ffe8;stroke:#c0ffe8;filter:drop-shadow(0 0 3px #92ffd7) drop-shadow(0 0 7px #61d8b788)}
.lights .source{box-shadow:inset 0 0 18px #f5cf7826,0 0 14px #f5cf7838}
.lights .source svg{color:#ffe7a6;stroke:#ffe7a6;filter:drop-shadow(0 0 3px #f5cf78) drop-shadow(0 0 7px #f5cf7877)}
.lights .cell.locked{border-color:var(--gold)}
@media(prefers-reduced-motion:no-preference){.lights .cell{transition:background-color .25s,box-shadow .3s,border-color .25s}.lights .cell:active{transform:scale(.97)}.town-building{transition:border-color .4s,box-shadow .4s}.restored{box-shadow:0 0 22px #f5cf7820}.restored .windows i{animation:window-warmth 3s ease-in-out infinite alternate}@keyframes window-warmth{from{box-shadow:0 0 9px #f5cf7866}to{box-shadow:0 0 17px #f5cf7899}}}
@media(prefers-reduced-motion:reduce){.lights .cell,.town-building,.restored .windows i{animation:none;transition:none}}

nav[aria-label='App shelf']{max-width:1200px;margin:auto;padding:12px 24px 0}nav[aria-label='App shelf'] a{color:#afe5cb;text-decoration:none;font-size:14px}nav[aria-label='App shelf'] a:hover{text-decoration:underline}

nav[aria-label='App shelf']{display:flex;justify-content:space-between;align-items:center;gap:1rem}.account-strip{max-width:1200px;margin:auto;padding:8px 24px;color:var(--muted);font-size:.85rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}.account-strip button{font-size:.8rem;padding:.35rem .6rem}#account-dialog h2{margin:0 0 1rem}#account-dialog p{line-height:1.6;margin:1rem 0}#account-dialog>button{display:block;width:100%;margin:.7rem 0}#account-dialog form{display:grid;gap:1rem}#account-dialog label{display:block}#account-dialog input{display:block;width:100%;padding:.8rem;margin-top:.35rem;background:#132d39;color:var(--ink);border:1px solid var(--line);border-radius:8px;font:inherit}#account-dialog button{min-height:44px}@media(max-width:500px){.account-strip{align-items:flex-start;flex-direction:column}}
/* Interaction polish */
#board{position:relative;isolation:isolate;contain:layout style}.cell{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.cell:focus-visible{outline-offset:1px;z-index:2}.slider .cell:not(.blank){z-index:1}.slider .blank{pointer-events:none}.letter-box{backface-visibility:hidden}#balance{display:inline-block}.game-actions button,.number-pad button,.wire-tools button{min-height:44px}.number-pad button{min-width:44px}.cell.peer:not(.selected):not(.fixed){background:#e0e9df}.cell.same-digit:not(.selected){box-shadow:inset 0 0 0 2px #639988}.cell.conflict:not(.selected){color:#952d27;background:#f7c6bb}.wordsearch .cell.marked{box-shadow:inset 0 0 0 2px #a97026}.word-list .found{background:#234d43}#puzzle-sparkles{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:5;overflow:visible}#puzzle-sparkles span{position:absolute;left:50%;top:50%;font-size:28px;color:var(--gold);text-shadow:0 0 12px #f5cf7880}#puzzle-sparkles span:nth-child(even){color:var(--mint)}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .16s,border-color .16s,box-shadow .16s}button:not(.cell):not(:disabled):active{transform:translateY(1px)}dialog[open]{animation:dialog-arrive .18s ease-out}.cell{transition:background-color .17s,box-shadow .17s}.restored .windows i{animation:none}@keyframes dialog-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:600px){#town{padding:.9rem;margin:.8rem 0 1.2rem}.town-heading h2{font-size:1.5rem}.town-heading{flex-direction:row;align-items:center}.town-heading button{font-size:.8rem;padding:.6rem}.town-heading p{display:none}.town-street{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:.5rem;margin:.75rem 0;padding:4px 2px 8px}.town-building{flex:0 0 106px;scroll-snap-align:start;padding:.6rem .3rem;gap:.3rem}.town-house{transform:scale(.7);margin-top:4px;margin-bottom:-10px}.town-building strong{font-size:.72rem}.town-building small{font-size:.7rem}.account-strip{gap:.5rem}.topline{flex-wrap:wrap}.topline>button{max-width:none}.game-panel{padding:.85rem .65rem}.input-row{flex-wrap:wrap}.input-row input{flex:1;min-width:140px}.grid-11 .cell{font-size:clamp(.75rem,3.3vw,1.05rem)}#game-message{min-height:3em}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.wordsearch,.slider{touch-action:none}.wordsearch .cell.drag-trail{background:var(--gold);box-shadow:inset 0 0 0 2px #bf9650;z-index:1}.wordsearch .cell.drag-end{background:#ffe8a8}.wordsearch .cell,.slider .cell{cursor:grab}.wordsearch .cell:active,.slider .cell:active{cursor:grabbing}
/* A stable track and stable tile colors prevent flashes while pieces move. */
.slider{background:#112a35;border-radius:15px}.slider .cell{transition:none!important}.slider .cell:hover{filter:none}.slider .blank{background:transparent;box-shadow:none}.slider .cell:not(.blank){will-change:transform}
.puzzle-difficulty{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .75rem;margin:0 0 1rem;color:var(--muted);font-size:.85rem}.puzzle-difficulty select{padding:.5rem .75rem;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);min-height:44px}.puzzle-difficulty span{flex-basis:100%;font-size:.8rem}.grid-7{grid-template-columns:repeat(7,1fr)}.slider.grid-5 .cell,.slider.grid-6 .cell{font-size:clamp(1rem,4vw,1.8rem);border-radius:9px}
.puzzle-clock{display:flex;align-items:center;gap:.45rem;padding:.35rem .65rem;border:1px solid #6b6a4d;border-radius:12px;background:#102a35;white-space:nowrap}.puzzle-clock span{font-size:.7rem;color:var(--muted)}.puzzle-clock strong{color:var(--gold);font-size:1.15rem;font-variant-numeric:tabular-nums;letter-spacing:.04em}.game-bar{flex-wrap:wrap}
#daily-collection{padding:1.2rem;border:1px solid var(--line);border-radius:20px;background:linear-gradient(140deg,#244943,#183642);margin-bottom:.8rem}#daily-collection h2{font:1.8rem Georgia,serif;color:var(--gold)}#daily-collection p{font-size:.85rem}.daily-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:1rem 0}.daily-puzzle{text-align:left;min-height:82px}.daily-puzzle strong,.daily-puzzle span{display:block}.daily-puzzle span{font-size:.75rem;color:var(--muted);margin-top:.4rem}.daily-puzzle.completed{border-color:var(--mint);background:#204d40}.progress-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.progress-actions a{font-size:.85rem}.town-street{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:600px){.daily-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-puzzle{padding:.7rem;font-size:.9rem}.town-street{display:flex}}
.puzzle-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px;padding:12px 0;border-bottom:1px solid #36535a}.puzzle-nav button[aria-pressed=true]{background:#f5cf78;color:#102632}.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-heading h2{margin:0;text-align:center}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;text-align:center}.calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:82px;background:#193b46;border:1px solid #36535a;border-radius:12px}.calendar-day span{color:#a9bfbd;font-size:13px}.calendar-day.earned-star{background:#4c4328;border-color:#f5cf78}.calendar-day.earned-star span{color:#ffdb81;font-size:27px}.calendar-today{outline:2px solid #afe5cb;outline-offset:1px}#calendar-area{max-width:760px;margin:auto;padding:20px}#account-greeting{color:#f5cf78}[hidden]{display:none!important}@media(max-width:600px){.puzzle-nav{gap:6px}.puzzle-nav button{flex:1 1 40%;padding:10px}.calendar-grid{gap:4px}.calendar-day{min-height:62px;border-radius:7px}.calendar-grid>strong{font-size:12px}#calendar-area{padding:8px}.calendar-heading h2{font-size:22px}}
.game-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0 38px}.game-choice{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:12px;padding:24px;border:1px solid #456973;background:linear-gradient(145deg,#244b55,#16333f);border-radius:20px}.game-choice-mark{display:grid;place-items:center;background:#f5cf78;color:#102632;width:54px;height:54px;border-radius:15px;font-size:23px;font-weight:bold}.game-choice>strong{font-size:21px;color:#f8f2e5}.game-choice>span:not(.game-choice-mark){color:#b9cdcc;line-height:1.5;font-weight:normal}.game-choice>small{margin-top:auto;padding-top:8px;color:#afe5cb}.game-picker-intro{color:#b9cdcc}@media(max-width:700px){.game-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-choice{padding:16px;gap:10px}.game-choice>strong{font-size:17px}.game-choice>span:not(.game-choice-mark){font-size:13px}.game-choice-mark{width:42px;height:42px;font-size:19px}}
/* Pocket arcade: colorful cards, calm boards, friendly rounded type. */
:root{--bg:#201b3c;--panel:#292443;--raised:#393250;--line:#625577;--ink:#fff8ef;--muted:#d1c6df;--gold:#ffd66f;--mint:#a9eed4;--cell:#fff5e5;--cell-ink:#29203e}
body{background:radial-gradient(ellipse at 5% 5%,#743c8455,transparent 42%),radial-gradient(ellipse at 100% 35%,#315e8b55,transparent 45%),radial-gradient(circle at 16px 16px,#c7b2ee12 2px,transparent 3px),#201b3c;background-size:auto,auto,32px 32px,auto;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif}
header{padding-top:1rem;padding-bottom:1rem}.brand-mark{width:56px;height:56px;background:#ffd66f;border:3px solid #ffe8a9;box-shadow:4px 5px 0 #0e0b2480;transform:rotate(-8deg);border-radius:19px;color:#493363}.brand strong{font-size:clamp(1.2rem,3vw,1.7rem);font-weight:900;letter-spacing:-.045em}.brand div>span{color:#d9cbe9}.brand-mark:hover{transform:rotate(8deg)}
body>nav{padding-top:16px}#wallet{background:#493462;color:#ffe29b;border:2px solid #977098;box-shadow:0 4px 0 #120e29}#account-button,#export-save{background:#3f335a;border-color:#8a729d}.account-strip{background:#2e2547;border:1px solid #5b4971;border-radius:18px;padding:14px 20px}#account-greeting{color:#ffe39a}
h1,h2,.daily-card h2{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-weight:900;letter-spacing:-.035em}h1{font-size:clamp(2.2rem,4.4vw,3.5rem)}
.puzzle-nav{background:#17132980;border:1px solid #665377;border-radius:22px;padding:10px;gap:10px;margin-top:22px}.puzzle-nav button{flex:1;background:transparent;border-color:transparent;border-radius:14px;color:#eee1ff;min-height:46px}.puzzle-nav button[aria-pressed=true]{background:#ffd66f;color:#332440;box-shadow:0 4px 0 #aa7738}.puzzle-nav button:not([aria-pressed=true]):hover{background:#49395f}
#play-area{padding:18px 0}#play-area h1{margin-bottom:10px}#play-area h1::before{content:'YOUR LITTLE HAPPY PLACE';display:block;color:#e0b4fa;font-size:12px;font-weight:800;letter-spacing:.18em;margin-bottom:14px}.game-picker-intro{font-size:1.08rem;color:#e0d2eb;max-width:650px}.game-picker{gap:22px;margin-top:32px}
.game-choice{--card:#ffe49a;--edge:#c99841;--spot:#ffbd4c;background:var(--card);color:#30213f;border:2px solid #fff6;box-shadow:0 7px 0 var(--edge),0 15px 26px #100c2938;border-radius:26px;padding:26px;position:relative;overflow:hidden;isolation:isolate;min-height:258px;gap:12px}.game-choice:nth-child(2){--card:#d5c0ff;--edge:#9471d0;--spot:#b497ef}.game-choice:nth-child(3){--card:#aff0d9;--edge:#54b795;--spot:#6cdab4}.game-choice:nth-child(4){--card:#ffc6d6;--edge:#d180a3;--spot:#f6a3bd}.game-choice:nth-child(5){--card:#b6e5ff;--edge:#689fc7;--spot:#7ecbef}.game-choice:nth-child(6){--card:#ffd1a7;--edge:#d89863;--spot:#ffb175}.game-choice::after{content:'';position:absolute;z-index:-1;width:120px;height:120px;border:22px solid var(--spot);border-radius:35px;right:-37px;top:-31px;transform:rotate(23deg);opacity:.65}.game-choice-mark{width:64px;height:64px;border-radius:20px;background:#fffaf0;color:#493263;font-size:27px;border:2px solid #fff;box-shadow:3px 4px 0 #30213f20;transform:rotate(-6deg)}.game-choice:nth-child(even) .game-choice-mark{transform:rotate(6deg)}.game-choice>strong{color:#30213f;font-size:24px;font-weight:900;letter-spacing:-.025em}.game-choice>span:not(.game-choice-mark){color:#493c55;font-size:15px;line-height:1.5}.game-choice>small{color:#30213f;background:#ffffff73;padding:8px 12px;border-radius:24px;font-size:13px;font-weight:800;margin-top:auto}.game-choice:hover{filter:none;border-color:white}
.game-panel{background:#292443;border:1px solid #76628c;box-shadow:0 8px 0 #14102b55,0 20px 40px #100c2925;border-radius:26px}.eyebrow{color:#ffd66f}.session-card{background:#312848;border-color:#726083}.daily-card{background:#ffd887;color:#30213f;box-shadow:0 5px 0 #bc8d4e}.daily-card .eyebrow,.daily-card p{color:#4b3c50}.daily-card button{background:#45305d;color:#fff8ef;border-color:#45305d}.daily-card h2{font-size:1.8rem}.preview-note{border-color:#7a658f}.puzzle-clock{background:#211a35;border-color:#846e93}.puzzle-difficulty select{background:#201a36}.game-actions button{border-radius:15px}.input-row input,#account-dialog input{background:#201a36}dialog{background:#2e2547;border-color:#8c70a0;border-radius:24px;box-shadow:0 24px 90px #08051acc}dialog::backdrop{background:#100a25c9}.clue{background:#453456}.word-list span{background:#473657}.word-list .found{background:#224d43}#completion{background:#254b48;color:#e6fff2}#toast{background:#fff0c8;color:#30213f}
#daily-collection{background:linear-gradient(120deg,#42315e,#2b3657);border:1px solid #8d70ad;border-radius:26px}.daily-puzzle{background:#eee4ff;color:#30213f;border:2px solid #fff7;box-shadow:0 4px 0 #9f88b9}.daily-puzzle strong,.daily-puzzle span{color:#30213f}.daily-puzzle.completed{background:#a9eed4;border-color:#dafff0}#town{background:linear-gradient(#312c54,#202a48);border-color:#726891;border-radius:26px}.town-building{background:#423758;border-color:#867094}.town-building.restored{background:#2d574c}.calendar-day{background:#3b3054;border-color:#7c648f}.calendar-day.earned-star{background:#ffe3a0;border-color:#fff0ba;color:#392944;box-shadow:0 4px 0 #ae823b}.calendar-day.earned-star span{color:#765016}.calendar-day span{color:#ded1ec}.calendar-today{outline-color:#f6acd2}
#calendar-area{background:#2c234680;border:1px solid #6c5681;border-radius:24px;padding:22px}#ad-slot{border-color:#75618c}footer{color:#d1c6df}
@media(prefers-reduced-motion:no-preference){.game-choice{transition:transform .18s ease,box-shadow .18s ease}.game-choice:hover{transform:translateY(-5px) rotate(-.6deg);box-shadow:0 11px 0 var(--edge),0 20px 32px #100c2944}.game-choice:active{transform:translateY(3px)!important;box-shadow:0 3px 0 var(--edge)}.brand-mark{transition:transform .25s ease}}
@media(max-width:700px){.game-picker{gap:16px 12px}.game-choice{padding:18px 14px;min-height:245px;border-radius:21px}.game-choice>strong{font-size:19px}.game-choice>span:not(.game-choice-mark){font-size:13px}.game-choice-mark{width:48px;height:48px;font-size:22px;border-radius:15px}.game-choice>small{font-size:12px;padding:7px 9px}.game-choice::after{width:85px;height:85px;border-width:17px}.puzzle-nav{gap:6px;padding:8px}.puzzle-nav button{flex:1 1 40%;padding:9px;font-size:14px}.account-strip{margin-left:1rem;margin-right:1rem;padding:12px 14px}.brand-mark{width:44px;height:44px;flex-shrink:0}.game-panel{padding:14px 10px}#calendar-area{padding:12px}.topline h1{font-size:2.2rem}}
.grid-8{grid-template-columns:repeat(8,1fr)}.grid-10{grid-template-columns:repeat(10,1fr)}.crossword .cell{font-size:clamp(.9rem,3.6vw,1.35rem)}.crossword .cell .clue-no{font-size:.55rem}.slider.grid-4 .cell{font-size:clamp(1.5rem,5vw,2.2rem)}
#word-targets{background:#3d3053;border:1px solid #a98ac0;border-radius:18px;padding:16px 18px;margin:0 0 20px}#word-targets h2{display:inline-block;margin:0 12px 0 0;font-size:1.3rem;color:#ffe49a}.word-target-count{display:inline-block;color:#e5d7ee;font-size:.9rem}#word-targets .word-list{justify-content:flex-start;gap:10px;margin:12px 0 0}#word-targets .word-list span{font-size:1.18rem;font-weight:800;letter-spacing:.07em;padding:8px 13px;background:#fff0c8;color:#362440;border:1px solid #ffe4a1;border-radius:10px}#word-targets .word-list .found{background:#20483e;color:#b7efd4;border-color:#528d77;text-decoration:line-through}@media(max-width:600px){#word-targets{padding:12px}#word-targets h2{font-size:1.1rem}#word-targets .word-list{gap:7px}#word-targets .word-list span{font-size:1rem;padding:6px 9px}}
/* Sudoku: a quiet, high-contrast board with unmistakable box boundaries. */
.sudoku{gap:0;background:#302640;padding:0;border:3px solid #302640;border-radius:10px;overflow:hidden}.sudoku .cell{background:#fffdf8!important;color:#282136;border-radius:0!important;border:0;border-right:1px solid #b8afc2;border-bottom:1px solid #b8afc2;box-shadow:none!important;margin:0!important;font-family:system-ui,sans-serif;font-weight:650;font-variant-numeric:tabular-nums}.sudoku.grid-9 .cell{font-size:clamp(1.05rem,2.4vw,1.5rem)}.sudoku .cell.fixed{background:#fffdf8!important;color:#282136;font-weight:850}.sudoku .cell:not(.fixed){color:#315bbb}.sudoku .cell.peer:not(.selected):not(.fixed){background:#fffdf8!important}.sudoku .cell.same-digit:not(.selected){background:#e5eaff!important;box-shadow:none!important}.sudoku .cell.selected{background:#ffdb78!important;color:#282136;box-shadow:inset 0 0 0 3px #825018!important}.sudoku .cell.conflict:not(.selected){background:#ffe0e0!important;color:#9e182c;box-shadow:inset 0 -3px 0 #b7233b!important}.sudoku .cell.box-right{border-right:3px solid #40334f;margin:0!important}.sudoku .cell.box-bottom{border-bottom:3px solid #40334f;margin:0!important}.sudoku .cell:nth-child(9n){border-right:0}.sudoku .cell:nth-last-child(-n+9){border-bottom:0}.sudoku .cell:hover{filter:none}.sudoku .cell:focus-visible{outline:3px solid #825018;outline-offset:-3px}.sudoku-key{font-size:.82rem;text-align:center;color:#e2d6ed;margin:12px 0 4px;line-height:1.6}@media(max-width:600px){.sudoku.grid-9 .cell{font-size:clamp(1rem,4.4vw,1.25rem)}}
.sudoku .cell.possible-spot:not(.selected){background:#ece5ff!important;box-shadow:inset 0 0 0 2px #b9a3db!important}.spots-toggle{display:block;margin:16px auto 10px;font-size:.9rem}.spots-toggle[aria-pressed=true]{background:#e0d2fa;color:#32203f;border-color:#c6abeb}.number-pad .chosen-number{background:#e0d2fa;color:#32203f;outline:3px solid #aa83d0;outline-offset:2px}#controls:has(.spots-toggle)>p:not(.sudoku-key){font-size:.86rem;text-align:center;max-width:490px;margin:0 auto 12px}
.lights-status{display:flex;align-items:center;gap:14px;padding:14px 16px;margin:0 0 18px;border:1px solid #79688e;border-radius:18px;background:#211d38}.lights-status>div{flex:1}.lights-status strong{display:block;font-size:1.15rem;color:#e2d3ef}.lights-status p{font-size:.85rem;margin-top:4px;line-height:1.45}.status-house{display:block;flex:0 0 62px;width:62px;height:62px}.status-house svg{width:100%;height:100%;overflow:visible}.house-wall{fill:#4d4763;stroke:#9381a5;stroke-width:2}.house-roof{fill:none;stroke:#af9abc;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.house-door{fill:#241e38}.house-window{fill:#24223c}.lights-status.finished{background:linear-gradient(110deg,#345442,#253c42);border:2px solid #b5ecc2;box-shadow:0 0 22px #b7ffd218}.lights-status.finished strong{color:#ffe29b;font-size:1.4rem}.lights-status.finished p{color:#e4faeb}.finished .house-window{fill:#ffe392;filter:drop-shadow(0 0 5px #ffe077)}.finished .house-roof{stroke:#ffd675}.finished .house-wall{fill:#608970;stroke:#bce7bd}.lights-next{background:#ffda81;color:#30213f;border:0;font-size:.85rem;white-space:nowrap}@media(max-width:600px){.lights-status{flex-wrap:wrap;padding:12px;gap:10px}.status-house{flex-basis:48px;width:48px;height:48px}.lights-status.finished strong{font-size:1.15rem}.lights-next{width:100%}}

/* Player comfort pass: clear pencil work and forgiving controls. */
#ad-slot{display:none}
.puzzle-difficulty select,.game-bar button,#controls button,.small-links button{min-height:44px}
.sudoku-tools{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:16px 0 10px}
.notes-toggle[aria-pressed=true]{background:#e0d2fa;color:#32203f;border-color:#c6abeb}
.sudoku .cell .pencil-marks{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);position:absolute;inset:3px;line-height:1;font-size:clamp(.6rem,1.3vw,.85rem);font-weight:600;color:#38558c;pointer-events:none}
.pencil-marks>span{display:flex;align-items:center;justify-content:center}
.sudoku-key{font-size:.9rem}.puzzle-grid .cell:focus-visible{outline:3px solid #9c42cb;outline-offset:-3px}
#controls .number-pad{gap:6px;flex-wrap:wrap}#controls .number-pad button{min-width:40px}
@media(max-width:600px){.sudoku .cell .pencil-marks{font-size:clamp(.55rem,2.7vw,.8rem);inset:2px}.sudoku-tools button{flex:1}.game-bar{flex-wrap:wrap;gap:10px}}

#controls .number-pad{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));max-width:360px;margin:16px auto}.keyboard-help{display:block;margin-top:6px}@media(pointer:coarse){.keyboard-help{display:none}}

#game-content[hidden],#account-gate[hidden]{display:none!important}.account-gate{max-width:700px;margin:55px auto;padding:42px 28px;text-align:center;border:1px solid #b6a2db66;border-radius:28px;background:linear-gradient(140deg,#46326b,#202844);box-shadow:0 24px 70px #0004}.account-gate h1{font-size:clamp(2rem,6vw,3.5rem);line-height:1.12}.account-gate p{max-width:48ch;margin:20px auto;line-height:1.7}.gate-art{display:block;font-size:4rem;color:#ffda74}.account-gate button{background:#ffda74;color:#20243b;padding:16px 24px;font-weight:800}.account-gate small{display:block;line-height:1.6;color:#d8cee9}#gate-status{color:#ffdf95}@media(max-width:600px){.account-gate{margin:24px 16px;padding:28px 18px}}

/* Five Letters: explicit status colors, independent of the decorative palette. */
.letter-box.correct,.keyrow button.correct,.five-key.correct{background:#238543;border-color:#238543;color:#fff}
.letter-box.present,.keyrow button.present,.five-key.present{background:#e99b87;border-color:#e99b87;color:#341b18}
.five-color-key{display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;font-family:system-ui,sans-serif}
.five-key{padding:.4rem .6rem;border-radius:7px;font-size:.78rem;font-weight:650;line-height:1.4}
.five-key.absent{background:#405560;color:#fff}
.gate-games{list-style:none;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:26px auto;padding:0;max-width:600px}
.gate-games li{display:flex;align-items:center;gap:8px;background:#ffffff14;border:1px solid #b6a2db55;border-radius:999px;padding:8px 14px;font-size:.92rem;color:#f3ecd9}
.gate-games li span{color:#ffda74;font-weight:800}
