:root{color-scheme:light;--ink:#18343c;--muted:#56676b;--paper:#f6f3eb;--teal:#14665c;--line:#dcded6;--gold:#edbd58;--radius:20px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,select,input{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #c6cec8;background:#fffef9;color:var(--ink);border-radius:10px;min-height:44px;padding:10px 16px;font-weight:650;transition:background .15s,transform .15s}button:hover:enabled{background:#e9eee6}button:active:enabled{transform:translateY(1px)}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #00796f;outline-offset:4px}a{color:inherit}p{line-height:1.55}h1,h2,h3,p{margin-top:0}h2{font-size:1.5rem;letter-spacing:-.035em;margin-bottom:0}h3{font-size:1.05rem}.topbar{max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:24px 38px;border-bottom:1px solid var(--line);gap:16px}.wordmark{font-size:1.35rem;font-weight:800;text-decoration:none;letter-spacing:-.06em}.wordmark i{font-weight:500}.wordmark span{font-size:.55rem;letter-spacing:.18em;display:block;margin-top:2px}.return-link{font-size:.85rem;font-weight:650;text-underline-offset:4px;min-height:44px;display:flex;align-items:center}.shell{max-width:1160px;margin:auto;padding:30px 30px 16px}.intro{display:flex;justify-content:space-between;align-items:center;padding:0 4px 24px;gap:24px}.eyebrow{font-size:.65rem;font-weight:800;letter-spacing:.16em;margin-bottom:10px;color:#42665f}h1{font-size:clamp(2.7rem,5vw,4.1rem);letter-spacing:-.065em;line-height:1.05;margin-bottom:16px;font-weight:780}h1 span{display:block;font-size:1.02rem;font-weight:550;letter-spacing:.12em;text-transform:uppercase;margin-top:10px}.tagline{font-size:.95rem;color:var(--muted);margin:0}.phone-break{display:none}.intro-pegs{display:flex;gap:13px;transform:rotate(-6deg);padding:25px;border-radius:80px;background:#e9e9df;box-shadow:inset 0 2px 2px #132e3708}.intro-pegs i{display:grid;place-items:center;font-style:normal;font-size:1.5rem;font-weight:800;width:58px;height:58px;border-radius:50%;box-shadow:inset 0 4px 4px #ffffff45,inset 0 -5px 0 #00000015,0 7px 0 #142c3214}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.toolbar .primary{min-width:152px;display:flex;justify-content:space-between;gap:25px}.secondary-tools{display:flex;gap:8px}.primary{background:var(--teal);border-color:var(--teal);color:white}.primary:hover:enabled{background:#0c5149}.secondary-tools button{background:transparent;border-color:var(--line);font-size:.85rem}.game-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.play-card{grid-column:2;grid-row:1;background:#fffef9;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:0 5px 18px #24393605}.history-card{grid-column:1;grid-row:1;background:#18343c;color:#f7f4eb;border-radius:var(--radius);padding:26px;overflow:hidden}.card-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.card-heading .eyebrow{margin-bottom:5px}.history-card .eyebrow{color:#9bc5b8}.badge{font-size:.72rem;font-weight:750;padding:7px 11px;background:#e6eee5;color:#225d4e;border-radius:30px}.rules{font-size:.81rem;line-height:1.65;color:var(--muted);margin:14px 0}.secret-strip{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:12px 0 20px}.secret-strip span:not(.peg){font-size:.58rem;font-weight:800;letter-spacing:.12em}.secret-strip p{font-size:.66rem;color:var(--muted);margin:5px 0 0}.pegs{display:flex;gap:9px;align-items:center}.peg{border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-weight:800;font-size:1rem;line-height:1;box-shadow:inset 0 3px 3px #ffffff3d,inset 0 -4px 1px #0000001a;border:1px solid #00000018;flex-shrink:0;font-style:normal}.secret-pegs{gap:5px}.secret-pegs .peg{width:27px;height:27px;font-size:.78rem}.secret-pegs .unknown{background:#eaece5;color:#56686b;box-shadow:inset 0 2px 2px #18343c15}.color-0{background:#b93d3b;color:white}.color-1{background:#245fa3;color:white}.color-2{background:#26754f;color:white}.color-3{background:#edbd58;color:#332a16}.color-4{background:#7755a1;color:white}.color-5{background:#c6551c;color:white}.color-6{background:#297b87;color:white}.color-7{background:#a9396a;color:#fff}
.attempt-line{display:flex;justify-content:space-between;align-items:center;font-size:.82rem;margin:0 0 14px;gap:10px}.attempt-line span{color:var(--muted);font-size:.75rem}.active-row{display:flex;justify-content:center;gap:9px;padding:14px 9px;background:#f0f1e9;border:1px solid #d9dfd3;border-radius:14px}.slot{display:flex;flex-direction:column;align-items:center;padding:0;background:transparent;border:0;border-radius:9px;min-width:44px;flex:1;max-width:64px;min-height:62px;gap:6px}.slot .peg{width:clamp(32px,4.2vw,48px);height:clamp(32px,4.2vw,48px);font-size:1.1rem}.slot .empty{background:#e0e4d9;box-shadow:inset 0 3px 3px #24383012;color:#6a786c;border:2px dashed #9eafa1}.slot[aria-pressed=true] .peg{outline:3px solid #14665c;outline-offset:3px}.slot-number{font-size:.6rem;color:var(--muted);font-weight:650}.slot-instruction{font-size:.73rem;color:var(--muted);margin:12px 0 16px}fieldset{border:0;margin:0;padding:0}legend{font-size:.8rem;font-weight:750;padding:0;margin:0 0 10px}legend span{font-size:.63rem;color:var(--muted);font-weight:400}.palette{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.palette button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 3px 7px;font-size:.66rem;border-color:#dfe3d9;font-weight:600}.palette .peg{width:35px;height:35px;font-size:1rem}.key-number{font-size:.56rem;color:var(--muted)}.edit-actions{display:flex;gap:4px;margin:12px 0}.edit-actions button{background:transparent;flex:1;font-size:.7rem;white-space:nowrap;padding:8px 4px;border-color:transparent;min-height:44px}.edit-actions button:hover:enabled{background:#eff2e9}.check-button{display:flex;justify-content:space-between;align-items:center;background:var(--teal);color:#fff;border:0;width:100%;padding:15px 18px;min-height:52px;font-size:.92rem}.check-button:hover:enabled{background:#0d5149}.check-button:disabled{opacity:1;background:#dfe7df;color:#5a6a5c}.message{font-size:.8rem;color:#39584f;min-height:2.8em;margin:14px 0 7px}.card-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:6px;gap:10px}.text-button{background:transparent;border:0;font-size:.76rem;padding:10px 3px;text-decoration:underline;text-underline-offset:4px}.history-count{font-size:.75rem;border:1px solid #6c868b;padding:7px 10px;border-radius:30px;color:#d4e4df;white-space:nowrap}.feedback-legend{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:.68rem;line-height:1.5;color:#c4d7d5;margin:20px 0 16px}.exact-icon{color:#f3c466;font-size:.9rem}.misplaced-icon{color:#d5ede5;font-size:1.05rem}.history-scroll{height:486px;overflow:auto;scrollbar-width:thin;scrollbar-color:#66817e #18343c;border-top:1px solid #3b565d;border-bottom:1px solid #3b565d}.empty-history{padding:54px 20px 20px;text-align:center;color:#bdcecb}.empty-dots{font-size:1.7rem;color:#93aaa5;font-weight:750;letter-spacing:.09em;margin-bottom:26px}.empty-history h3{color:#f6f2e8;font-size:1.05rem;margin-bottom:10px}.empty-history p{font-size:.83rem;line-height:1.8}.first-tip{margin-top:37px;border:1px solid #4c696c;text-align:left;border-radius:12px;padding:17px}.first-tip strong{font-size:.75rem;color:#efc976}.first-tip p{margin:7px 0 0;font-size:.75rem}.history-list{list-style:none;padding:0;margin:0}.history-entry{padding:16px 1px;border-bottom:1px solid #3b565d;animation:arrive .25s ease-out}.history-entry:last-child{border-bottom:0}.history-entry-top{display:flex;align-items:center;gap:12px}.guess-number{font-size:.7rem;color:#c1d4cf;min-width:23px;font-variant-numeric:tabular-nums}.history-entry .pegs{gap:8px;flex:1}.history-entry .peg{width:36px;height:36px;font-size:.95rem;outline:1px solid #ffffff22;outline-offset:1px}.history-entry .feedback{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0 0 35px;font-size:.73rem;color:#e6eee9}.markers{display:inline-flex;gap:3px;letter-spacing:2px;font-size:.85rem}.markers .exact-icon{font-size:.75rem}.history-copy{background:transparent;border-color:#58767a;color:#e2ece7;font-size:.64rem;padding:4px 9px;min-height:44px}.history-copy:hover:enabled{background:#2c4c52}.history-note{font-size:.7rem;color:#bfd0cc;margin:18px 0 0;line-height:1.6}.keyboard{margin:20px 0;font-size:.75rem;color:var(--muted)}summary{cursor:pointer;min-height:44px;padding:12px 0}.keyboard p{max-width:800px}.page-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:20px 0 10px;font-size:.65rem;color:#61716c}.outcome{background:#e9f1e6;border:1px solid #bdcfb6;border-radius:12px;padding:18px;margin:12px 0 18px;animation:arrive .3s ease-out}.outcome h3{margin-bottom:8px;font-size:1.3rem}.outcome p{font-size:.85rem;margin-bottom:16px}.outcome .primary{width:100%}.notice{background:#fff0ce;border:1px solid #d5b875;border-radius:10px;padding:12px;font-size:.8rem}.skip{position:absolute;left:12px;top:-100px;background:white;padding:12px;z-index:10}.skip:focus{top:12px}dialog{border:1px solid #d4dbce;border-radius:22px;padding:28px;max-width:min(570px,calc(100vw - 28px));width:570px;max-height:88dvh;color:var(--ink);background:#fffef9;box-shadow:0 30px 90px #0b263d45}dialog::backdrop{background:#0f2d36a6;backdrop-filter:blur(3px)}dialog p,dialog li{font-size:.9rem;line-height:1.7}.dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.close{font-size:1.5rem;line-height:1;padding:5px;width:44px;min-width:44px;border-radius:50%}.field{display:flex;flex-direction:column;gap:8px;font-size:.8rem;font-weight:700;margin:16px 0}select{width:100%;min-height:48px;border:1px solid #becac1;border-radius:9px;background:#f8f8ef;color:var(--ink);padding:10px;font-size:.95rem}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.muted{color:var(--muted);font-size:.77rem!important}.toggle{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.85rem;line-height:1.6}.toggle input{width:21px;height:21px;accent-color:var(--teal);flex-shrink:0}.preferences{border-top:1px solid var(--line);padding-top:16px;margin-top:24px}.preferences legend{padding:0 8px 0 0}.wide{width:100%}.error{color:#a32d25;font-size:.8rem;min-height:1.5em;margin-bottom:6px}.instructions{padding-left:22px}.instructions li{margin-bottom:14px}.worked-example{background:#f0f1e7;border-radius:12px;padding:20px;margin:22px 0}.worked-example h3{margin-bottom:12px}.worked-example p{font-size:.8rem;margin:12px 0}.example-pegs{gap:12px}.example-score{border-top:1px solid #d0dbcb;padding-top:14px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:24px 0}.stat{background:#eff2e9;border-radius:12px;padding:16px}.stat strong{font-size:1.9rem;display:block;margin-bottom:4px;line-height:1.1}.stat span{font-size:.7rem;color:var(--muted)}.danger{color:#9e3024}.confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}#confirm-dialog{max-width:min(450px,calc(100vw - 28px))}.noscript{position:fixed;inset:25% 15%;padding:40px;background:#fff8da;border:3px solid #d59c35;z-index:50}.large-labels .peg{font-size:1.3rem}.large-labels .secret-pegs .peg{font-size:1rem}.large-labels .palette .peg{font-size:1.3rem}.no-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}[hidden]{display:none!important}@keyframes arrive{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1000px){.play-card{position:sticky;top:18px}}
@media(max-width:850px){.intro-pegs{gap:8px;padding:18px}.intro-pegs i{width:43px;height:43px;font-size:1.15rem}.shell{padding:25px 20px 12px}.game-layout{gap:16px}.play-card,.history-card{padding:20px}.history-entry .peg{width:30px;height:30px;font-size:.8rem}.history-entry .pegs{gap:5px}.history-copy{padding:4px 6px}.history-entry-top{gap:8px}.secret-strip{flex-direction:column;align-items:flex-start}.secret-pegs .peg{width:30px;height:30px}.slot .peg{width:36px;height:36px}.palette button{padding-top:7px}.intro h1{font-size:3.4rem}.slot{min-width:0}.active-row{gap:6px}}
@media(max-width:670px){.topbar{padding:16px 18px}.wordmark{font-size:1.2rem}.wordmark span{font-size:.48rem}.return-link{font-size:.74rem}.shell{padding:24px 14px 12px}.intro{padding:0 3px 20px;gap:12px}.intro h1{font-size:2.7rem}.intro h1 span{font-size:.78rem;letter-spacing:.15em}.eyebrow{font-size:.57rem;letter-spacing:.13em}.tagline{font-size:.79rem}.phone-break{display:inline}.intro-pegs{display:grid;grid-template-columns:repeat(2,1fr);padding:10px;border-radius:24px;gap:7px}.intro-pegs i{width:29px;height:29px;font-size:.82rem;box-shadow:inset 0 -3px 0 #00000015,0 4px 0 #142c3214}.toolbar{margin-bottom:16px;gap:8px;flex-wrap:wrap}.toolbar .primary{min-width:130px;min-height:44px;font-size:.8rem;padding:10px 12px}.secondary-tools{gap:4px;flex:1;justify-content:flex-end}.secondary-tools button{font-size:.68rem;padding:9px 8px}.game-layout{display:flex;flex-direction:column;gap:18px}.play-card,.history-card{width:100%;padding:20px}.card-heading h2{font-size:1.4rem}.secret-strip{flex-direction:row;align-items:center;margin-bottom:16px}.active-row{padding:12px 8px;gap:8px}.slot{min-height:61px}.slot .peg{width:44px;height:44px;font-size:1.2rem}.slot-instruction{margin:10px 0 13px}.palette{grid-template-columns:repeat(4,1fr);gap:7px}.palette button{padding:8px 2px 6px;font-size:.64rem;gap:4px}.palette .peg{width:31px;height:31px}.edit-actions{margin:6px 0}.edit-actions button{font-size:.68rem}.message{min-height:0;margin:12px 0}.history-scroll{height:330px}.history-entry .peg{width:36px;height:36px;font-size:1rem}.history-entry .pegs{gap:8px}.empty-history{padding:25px 18px}.empty-dots{margin-bottom:15px}.first-tip{margin-top:20px}.history-entry-top{gap:10px}.page-footer{display:block;font-size:.61rem}.page-footer span{display:block;margin-bottom:7px}dialog{padding:23px}.feedback-legend{margin-top:16px}.history-note{margin-top:14px}}
@media(max-width:380px){.intro h1{font-size:2.25rem}.intro .eyebrow{font-size:.51rem}.play-card,.history-card{padding:15px}.secondary-tools button{font-size:.64rem;padding:9px 7px}.toolbar .primary{min-width:105px;gap:10px;font-size:.73rem}.slot .peg{width:36px;height:36px}.active-row{gap:5px}.secret-pegs{gap:4px}.secret-pegs .peg{width:24px;height:24px}.secret-strip span:not(.peg){font-size:.51rem}.secret-strip p{font-size:.59rem}.history-entry .peg{width:30px;height:30px;font-size:.85rem}.history-entry .pegs{gap:5px}.history-copy{padding:4px 6px}.guess-number{min-width:18px}.history-entry-top{gap:7px}.history-entry .feedback{margin-left:25px}.field-grid{grid-template-columns:1fr}.confirm-actions{gap:8px}.confirm-actions button{font-size:.8rem;padding:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Comfortable reading sizes for the clues and controls. */
.rules{font-size:.88rem}.attempt-line{font-size:.95rem}.attempt-line span{font-size:.82rem}.palette button{font-size:.8rem}.palette .key-number{font-size:.6rem}.edit-actions button{font-size:.8rem}.feedback-legend{font-size:.78rem}.history-entry .feedback{font-size:.88rem}.history-copy{font-size:.75rem}.message{font-size:.88rem}.slot-instruction{font-size:.82rem}.history-note{font-size:.8rem}
@media(max-width:670px){.rules{font-size:.8rem}.palette button{font-size:.73rem}.edit-actions button{font-size:.73rem}.feedback-legend{font-size:.74rem}.history-entry .feedback{font-size:.82rem}}
@media(max-width:670px){.slot .peg{width:min(44px,100%);height:auto;aspect-ratio:1}.history-entry-top{flex-wrap:wrap}.history-entry .pegs{min-width:max-content}}
@media(max-width:380px){.intro-pegs{display:none}.slot .peg{width:min(36px,100%)}}
.history-card :focus-visible{outline-color:#edbd58}
