@font-face{font-family:DM;src:url('./assets/dm-sans-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:DM;src:url('./assets/dm-sans-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Bricolage;src:url('./assets/bricolage-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Reading;src:url('./assets/comic-neue-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{color-scheme:light;--teal:#007f89;--ink:#17383b;--yellow:#ffe343;--cream:#f7fbf8;--mint:#e8f3ed;--line:#bfd6cc;--muted:#587477}
*{box-sizing:border-box}body{margin:0;background:var(--cream);background-image:radial-gradient(#008b9015 1px,transparent 1px);background-size:20px 20px;color:var(--ink);font-family:DM,Arial,sans-serif}button,input,textarea,select{font:inherit;color:inherit}button,select,summary{cursor:pointer}button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{border:0}button:hover{filter:brightness(.97)}button:disabled{opacity:.5;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--teal);outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.svg-defs{position:absolute;height:0;width:0;overflow:hidden}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.header{background:var(--teal);color:white;display:flex;align-items:center;justify-content:space-between;padding:18px max(32px,calc((100vw - 1250px)/2));min-height:108px;border-radius:0 0 25px 25px;border-bottom:3px solid #164b4d;box-shadow:0 4px var(--yellow)}.brand{display:flex;align-items:center;gap:16px;text-decoration:none;color:white}.brand-icon{background:var(--yellow);border-radius:15px;width:57px;height:61px;display:grid;place-items:center;color:var(--ink);transform:rotate(-7deg);box-shadow:3px 3px #00525a}.brand-icon svg{width:37px;height:37px}.brand-overline{display:block;color:var(--yellow);font-weight:700;font-size:11px;letter-spacing:2.5px;margin-bottom:3px}.brand-title{display:block;font:700 clamp(29px,3.5vw,43px)/1.07 Bricolage,DM,sans-serif;letter-spacing:-1px}.brand-title>span{position:relative;isolation:isolate}.brand-title>span:after{position:absolute;content:'';background:var(--yellow);height:5px;bottom:0;left:0;right:0;z-index:-1;border-radius:50%}.header-actions{display:flex;gap:9px;align-items:center}.header-button{display:flex;align-items:center;gap:8px;background:#ffffff08;color:white;min-height:43px;border:1px solid #ffffff50;border-radius:11px;padding:10px 13px;font-size:12px;font-weight:700}.header :focus-visible{outline-color:var(--yellow)}.header-button.square{width:45px;padding:10px}.help-mark{border:1.6px solid currentColor;border-radius:50%;height:19px;width:19px;display:grid;place-items:center;font-size:12px}.shell{max-width:1250px;margin:auto;padding:32px 32px 0}.setup-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}h1{font:700 clamp(23px,2.7vw,32px)/1.2 Bricolage,DM,sans-serif;letter-spacing:-.7px}.mode-tabs{display:flex;gap:4px;background:#e1eee6;border:1px solid var(--line);padding:4px;border-radius:12px}.mode-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;background:none;padding:10px 16px;border-radius:8px;font-size:13px;font-weight:700;color:var(--muted)}.mode-tabs svg{height:18px;width:18px}.mode-tabs button[aria-pressed=true]{background:white;color:#006b75;box-shadow:0 1px 4px #123d3b13}.setup-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);gap:30px;align-items:start}.panel{border:1px solid var(--line);background:var(--mint);border-radius:20px;padding:23px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:1.7px;color:#356363}.word-count{font-weight:400;font-size:11px;letter-spacing:0;background:#fff9;border-radius:20px;padding:5px 8px}.source-tabs{display:flex;gap:0;margin:16px 0 13px;background:#d7e9df;border-radius:10px;padding:4px}.source-tabs button{background:none;flex:1;border-radius:7px;padding:10px;font-size:13px;font-weight:700;color:#577268}.source-tabs button[aria-pressed=true]{background:white;color:#006872;box-shadow:0 2px 0 #a5c6b5}select,textarea{border:1px solid #9ebfaf;border-radius:10px;background:white}#bank-select{width:100%;min-height:48px;padding:10px 34px 10px 12px;font-size:15px;font-weight:700}.bank-note{font-size:11px;line-height:1.55;color:var(--muted);margin-top:11px;min-height:34px}#custom-settings label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}textarea{display:block;width:100%;padding:12px;resize:vertical;font:700 18px/1.45 Reading,'Comic Sans MS',sans-serif}.small-note{font-size:11px;line-height:1.6;color:var(--muted);margin-top:10px}.word-details{margin-top:13px;border-bottom:1px solid #c5d9cd;padding-bottom:16px}.word-details summary{font-size:12px;color:#006d75;font-weight:700;min-height:26px;padding-top:4px}.word-chips{display:flex;flex-wrap:wrap;gap:6px;max-height:170px;overflow:auto;padding:10px 2px 5px}.word-chips span{border:1px solid #bed7c9;border-radius:6px;background:#fffc;padding:3px 8px;font:700 16px Reading,'Comic Sans MS',sans-serif}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;font-size:13px}.setting-row>label{font-weight:700}.segments{display:flex;gap:7px}.segments button{background:white;border:1px solid #a9c9b9;border-radius:9px;padding:9px 16px;font-size:12px;font-weight:700;min-height:40px}.segments button[aria-pressed=true]{background:var(--teal);color:white;border-color:#005d65;box-shadow:0 2px #00515a}.compact-select{font-size:13px;padding:8px 11px;min-width:102px;min-height:40px}.game-rule{margin-top:20px;font-size:12px;line-height:1.6;color:#446a5c}.switch{appearance:none;width:45px;height:27px;border-radius:30px;background:#a1bdb0;cursor:pointer;position:relative;margin:0}.switch:after{content:'';position:absolute;width:19px;height:19px;left:4px;top:4px;background:white;border-radius:50%;transition:transform .15s}.switch:checked{background:var(--teal)}.switch:checked:after{transform:translateX(18px);background:var(--yellow)}.preview-panel{padding:17px 0 0;min-width:0}.preview-heading{display:flex;align-items:center;justify-content:space-between;padding-inline:9px}.preview-heading h2{font:700 22px Bricolage,DM,sans-serif;letter-spacing:-.4px}.sample-label{font-size:9px;font-weight:700;letter-spacing:1.4px;color:#6c887b}.preview-cards{display:flex;gap:13px;justify-content:center;align-items:center;padding:28px 0 22px;position:relative}.word-card{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:8px;padding:18px;border-radius:14px;background:#fffefb;border:2px solid #bfd4cb;box-shadow:0 7px 0 #d4e6dc,0 12px 26px #183d3810;container-type:inline-size;isolation:isolate}.word-card:before{content:'';position:absolute;inset:7px;border:1px dashed #d6e4dc;border-radius:8px;pointer-events:none}.sample-card{width:47%;aspect-ratio:4/3;padding:14px 9px;gap:4px}.sample-card:first-child{transform:none}.sample-card:last-child{transform:none;border-color:#dfd08a;box-shadow:0 7px 0 #e9dfa8,0 12px 26px #183d3810}.word{position:relative;display:flex;align-items:center;justify-content:center;transform:none;width:100%;height:100%;min-width:0;border-radius:9px;background:transparent;font:700 var(--word-size,8cqw)/1.02 Reading,'Comic Sans MS',sans-serif;white-space:nowrap;min-height:0;max-width:none;padding:3px 5px;user-select:none;-webkit-user-select:none;touch-action:none;transition:background-color .1s;letter-spacing:0}.word:hover{background:#e9f2ec70;filter:none}.word:focus-visible{outline-width:2px;outline-offset:0;background:#ffe34355}.word.correct{background:var(--yellow)!important;color:#000!important}.word.wrong{background:#f4d8d4!important}.word-card.dealt{animation:deal .2s ease-out}.word-card.empty{background:#eff5f0}.preview-feedback{text-align:center;font-size:13px;font-weight:700;color:#426f60;min-height:22px;padding:0 8px}.preview-bottom{margin-top:31px;border-top:1px solid #d0e1d6;padding:17px 8px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.preview-bottom b{font-size:17px;color:var(--teal)}.preview-bottom i{display:inline-block;width:3px;height:3px;border-radius:50%;background:#a4bfb1;margin:0 8px;vertical-align:middle}.text-button{background:none;color:#006b75;font-size:12px;font-weight:700;padding:9px 4px;min-height:36px}.setup-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:26px;gap:20px}.how-brief{display:flex;align-items:center;gap:11px;font-size:13px;color:#446b5b}.tiny-dot{width:9px;height:9px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 5px #dbeee2}.primary-button{background:var(--yellow);color:var(--ink);border:2px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 var(--ink);padding:14px 24px;min-height:54px;display:inline-flex;align-items:center;justify-content:center;gap:30px;font-weight:700;font-size:15px}.primary-button:active{transform:translateY(2px);box-shadow:0 2px var(--ink)}.secondary-button{background:white;border:1px solid #9cbcab;padding:12px 16px;border-radius:10px;font-size:13px;font-weight:700;min-height:44px}.pdf-status{font-size:12px;color:#476e60;text-align:right;min-height:18px;margin-top:12px}.error{color:#914a30;font-size:12px;line-height:1.5;margin-top:8px}footer{border-top:1px solid #d1e2d6;margin-top:15px;padding:13px 0;display:flex;align-items:center;justify-content:space-between;color:#708b7b;font-size:9px;letter-spacing:1.5px}footer button{font-size:10px;min-height:30px}.game-shell{max-width:1320px;padding:0 32px 15px;margin:auto}.playing .header{min-height:80px;padding-top:10px;padding-bottom:10px}.playing .brand-title{font-size:30px}.playing .brand-icon{width:45px;height:48px}.playing .brand-icon svg{width:31px;height:31px}.playing .brand-overline{font-size:9px}.game-top{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:11px;color:var(--muted);font-weight:700}.game-tools{display:flex;gap:23px}.score-row{display:grid;grid-template-columns:minmax(0,1fr) 85px minmax(0,1fr);gap:35px;align-items:center;max-width:1100px;margin:0 auto 16px}.score-box{border:1px solid #98c9b6;background:#daf1e8;border-radius:13px;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;font-weight:700;color:#005e67;font-size:18px;min-height:69px}.score-box small{display:block;font-size:10px;font-weight:400;margin-top:5px;color:#497966}.score-box strong{font-size:38px;line-height:1}.player-two{background:#fff1a6;border-color:#d9c65b;color:#645315}.player-two small{color:#7b7248}.timer{border:4px solid var(--yellow);border-radius:50%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 0 1px #d9c65745;background:#fffefa}.timer strong{font-size:31px;line-height:1.05;font-variant-numeric:tabular-nums}.timer small{font-size:7px;letter-spacing:1px;font-weight:700;margin-top:3px}.timer.urgent{border-color:#d68c42}.solo-tip{text-align:right;font-size:13px;line-height:1.8;color:var(--muted)}.solo-tip strong{color:#145b60}.game-board{display:flex;align-items:center;justify-content:center;gap:0;position:relative}.game-card{width:min(44vw,calc(133.333dvh - 380px),580px);aspect-ratio:4/3;flex:none;padding:clamp(16px,2.4vw,30px);gap:10px}.left-card{border-color:#72bda9;border-width:3px;box-shadow:0 6px 0 #a5d3c1}.right-card{border-color:#d9c459;border-width:3px;box-shadow:0 6px 0 #e8d98f}.match-mark{width:7vw;max-width:70px;min-width:35px;display:grid;place-items:center;color:#82a998;font-size:33px;font-weight:700}.match-mark span{border:1px solid #c9ded0;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;line-height:1;padding-bottom:3px;background:#edf6f0}.game-feedback{font-weight:700;font-size:14px;text-align:center;min-height:34px;margin-top:17px;color:#337362}.time-track{height:4px;background:#deebe2;border-radius:4px;max-width:1100px;margin:auto;overflow:hidden}.time-track>div{width:100%;height:100%;background:var(--teal);transform-origin:left}.overlay{position:fixed;inset:0;background:#f7fbf8f2;z-index:30;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;backdrop-filter:blur(6px)}.overlay>span{font-size:20px;color:#5b8070}.overlay>strong{font:700 140px/1 Bricolage,DM,sans-serif;color:var(--teal)}.overlay>p{font-size:16px;color:var(--muted)}dialog{background:var(--cream);color:var(--ink);border:2px solid var(--ink);border-radius:23px;padding:32px;max-width:620px;width:calc(100% - 32px);max-height:88dvh;overflow:auto;box-shadow:0 7px 0 #1c3c3b33}dialog::backdrop{background:#123c42b8;backdrop-filter:blur(5px)}dialog h2{font:700 31px/1.1 Bricolage,DM,sans-serif;letter-spacing:-.5px;margin-bottom:18px}dialog h3{font-size:18px;margin:20px 0 10px}dialog p,dialog li{font-size:13px;line-height:1.65;margin-top:14px}dialog ol{padding-left:23px}dialog a{display:block;color:#006f79;font-size:12px;margin-top:15px}.close-button{position:absolute;right:15px;top:10px;background:none;font-size:31px;color:var(--muted);width:38px;height:38px}.dialog-symbol{background:var(--yellow);border:1px solid var(--ink);border-radius:50%;width:59px;height:59px;display:grid;place-items:center;margin:0 auto 22px;font-size:31px;color:var(--teal)}#pause-dialog,#results-dialog{text-align:center;max-width:510px}#pause-dialog .primary-button{margin-top:23px}.dialog-actions{display:flex;justify-content:center;gap:14px;align-items:center;margin-top:26px;flex-wrap:wrap}.results-scores{display:flex;gap:12px;margin-top:25px}.result-score{flex:1;background:#ddefe4;border:1px solid #a5c8b6;border-radius:15px;padding:17px 10px;font-size:13px}.result-score:nth-child(2){background:#fff2ac;border-color:#d9ca73}.result-score strong{display:block;font-size:48px;line-height:1.4}.result-score small{font-size:10px}.result-word{color:#527c67;min-height:22px}#show-list-notes{margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes deal{from{opacity:.5;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
.pdf-download-link{display:block;text-align:right;font-size:12px;color:var(--teal);margin-top:6px}
.fixed-value{display:grid;place-items:center;border:1px solid #a9c9b9;border-radius:10px;background:#fff;font-weight:700}
@media(min-width:1400px){.shell{padding-top:40px}.setup-grid{gap:55px}.preview-cards{padding-top:36px;padding-bottom:30px}.panel{padding:27px}.preview-bottom{margin-top:40px}}
@media(max-width:900px){.header{padding-inline:23px}.header-button{padding:9px}.header-button span{display:none}.shell{padding:27px 23px 0}.setup-grid{gap:22px;grid-template-columns:1fr 1fr}.setup-title{gap:10px}.mode-tabs button{font-size:11px;padding:10px}.panel{padding:18px}.preview-heading h2{font-size:20px}.sample-label{font-size:8px;letter-spacing:.7px}.setting-row{font-size:12px}.segments button{padding:9px 12px}.preview-cards{gap:8px;padding-top:37px}.preview-bottom{padding-inline:0}.preview-bottom i{margin-inline:4px}.preview-bottom{font-size:10px}.score-row{gap:20px}.game-shell{padding-inline:23px}}
@media(max-width:650px){.header{padding:14px 17px;min-height:94px;border-radius:0 0 18px 18px}.brand{gap:11px}.brand-title{font-size:28px}.brand-icon{width:42px;height:47px;border-radius:11px}.brand-icon svg{width:29px;height:29px}.brand-overline{font-size:8px;letter-spacing:1.5px}.header-actions{gap:6px}.header-button{min-height:36px;width:36px;justify-content:center;border-radius:9px;padding:7px}.header-button.square{width:36px;padding:7px}.header-button svg{width:19px;height:19px}#help-button{display:none}.shell{padding:25px 17px 0}.setup-title{align-items:stretch;flex-direction:column;gap:18px;margin-bottom:18px}.setup-title h1{font-size:25px}.mode-tabs button{flex:1;font-size:12px}.setup-grid{grid-template-columns:1fr;gap:13px}.panel{padding:18px}.preview-panel{padding-top:12px}.preview-cards{padding:22px 0 19px;gap:11px;max-width:480px;margin:auto}.sample-card{max-width:220px}.preview-bottom{margin-top:17px;padding-top:12px}.setup-bottom{margin-top:18px}.how-brief{font-size:11px;gap:8px;max-width:45%}.primary-button{padding:12px 17px;gap:14px;font-size:14px}.setup-bottom .primary-button{min-width:158px}.preview-feedback{font-size:12px}.game-shell{padding-inline:16px}.playing .header{min-height:68px}.playing .brand-title{font-size:25px}.playing .brand-overline{font-size:8px}.playing .brand-icon{width:37px;height:40px}.score-row{grid-template-columns:1fr 64px 1fr;gap:10px;margin-bottom:17px}.score-box{padding:9px 10px;min-height:65px;font-size:13px;border-radius:10px}.score-box strong{font-size:29px}.score-box small{font-size:8px;max-width:65px}.timer{border-width:3px}.timer strong{font-size:25px}.timer small{font-size:5px}.solo-tip{font-size:10px}.game-top{font-size:10px;min-height:44px}.game-tools{gap:17px}.game-tools button{font-size:11px}.game-board{flex-wrap:wrap;gap:20px}.game-card{width:min(76vw,calc((100dvh - 260px)/2),330px);min-width:205px}.match-mark{display:none}.game-feedback{font-size:12px;margin-top:20px}.overlay>p{font-size:13px;padding-inline:20px;text-align:center}.dialog-actions{gap:12px}dialog{padding:27px 23px}dialog h2{font-size:29px}.result-score strong{font-size:40px}}
@media(max-width:650px) and (min-height:800px){.game-card{width:min(76vw,calc((100dvh - 250px)/2),330px)}}
@media(min-width:651px) and (max-height:600px){.playing .header{min-height:61px}.playing .brand-title{font-size:25px}.playing .brand-icon{height:39px;width:37px}.game-top{min-height:34px}.score-row{grid-template-columns:1fr 62px 1fr;margin-bottom:10px}.score-box{min-height:55px;padding:8px 17px;font-size:15px}.score-box strong{font-size:28px}.timer strong{font-size:24px}.timer small{font-size:5px}.game-card{width:min(44vw,calc(133.333dvh - 286.667px),580px)}.game-feedback{margin-top:14px;font-size:12px;min-height:28px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
