:root{color-scheme:light;--bg: #f9f8fc;--paper: #fff;--hero: #eeebf9;--hero-edge: #e7e0f6;--text: #20192f;--soft-text: #554f64;--text-dim: #635b72;--edge: #e7e1ef;--tile-edge: #e5dfee;--tile-active: #c1afd9;--key: #eeebf4;--key-shadow: #ddd6e9;--purple: #5d419e;--purple-hover: #4a2d8e;--tint: #f1eafb;--green: #cbecda;--green-text: #174e38;--yellow: #f7e5b7;--yellow-text: #604413;--grey: #e3dfea;--grey-text: #4d435e;--warm: #f9eddf;--warm-text: #8d4a20;--shadow: 0 6px 26px #3a24500a;--radius: 18px;font:16px/1.5 Segoe UI,Helvetica Neue,Arial,sans-serif;background:var(--bg);color:var(--text);font-synthesis:none;-webkit-tap-highlight-color:transparent}:root[data-theme=dark]{color-scheme:dark;--bg: #191523;--paper: #242031;--hero: #2b2041;--hero-edge: #392d4f;--text: #fbf7ff;--soft-text: #d3cadf;--text-dim: #bbb0ca;--edge: #3a3149;--tile-edge: #494058;--tile-active: #a48dc3;--key: #382f47;--key-shadow: #1c1725;--purple: #cdb5ff;--purple-hover: #e2d2ff;--tint: #36294e;--green: #285843;--green-text: #e0ffeb;--yellow: #735824;--yellow-text: #fff1cd;--grey: #4c425d;--grey-text: #fcf4ff;--warm: #4c3538;--warm-text: #ffcc9f;--shadow: 0 6px 26px #0e0a1340}@media(prefers-color-scheme:dark){:root:not([data-theme]),:root[data-theme=auto]{color-scheme:dark;--bg: #191523;--paper: #242031;--hero: #2b2041;--hero-edge: #392d4f;--text: #fbf7ff;--soft-text: #d3cadf;--text-dim: #bbb0ca;--edge: #3a3149;--tile-edge: #494058;--tile-active: #a48dc3;--key: #382f47;--key-shadow: #1c1725;--purple: #cdb5ff;--purple-hover: #e2d2ff;--tint: #36294e;--green: #285843;--green-text: #e0ffeb;--yellow: #735824;--yellow-text: #fff1cd;--grey: #4c425d;--grey-text: #fcf4ff;--warm: #4c3538;--warm-text: #ffcc9f;--shadow: 0 6px 26px #0e0a1340}}:root[data-theme=contrast]{color-scheme:light;--bg: #fff;--paper: #fff;--hero: #ebf5ff;--hero-edge: #304357;--text: #000;--soft-text: #202020;--text-dim: #343434;--edge: #4b4b4b;--tile-edge: #525252;--tile-active: #0649a1;--key: #eee;--key-shadow: #646464;--purple: #073b8a;--purple-hover: #03265c;--tint: #e4efff;--green: #005292;--green-text: #fff;--yellow: #f8c346;--yellow-text: #271700;--grey: #393939;--grey-text: #fff;--warm: #fff1db;--warm-text: #571d04;--shadow: none}*{box-sizing:border-box}body{margin:0;min-width:280px;min-height:100dvh}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default}a{color:var(--purple)}button,a,input,textarea{outline-offset:3px}:focus-visible{outline:2px solid var(--purple)}button:disabled:not(.key){opacity:.66}p,h1,h2,h3{margin:0}svg{flex-shrink:0;vertical-align:middle}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{position:fixed;z-index:20;top:10px;left:10px;padding:10px;background:var(--paper)}.topbar{background:var(--paper);border-bottom:1px solid var(--edge)}.topbar-inner{height:70px;max-width:1200px;padding:0 28px;margin:auto;display:flex;align-items:center;gap:29px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:23px;font-weight:800;letter-spacing:-.055em;color:var(--text);white-space:nowrap}.brand-dot{color:var(--purple)}.brand-mark{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;place-content:center;width:34px;height:34px;border-radius:9px;background:#6243aa;padding:8px;transform:rotate(-6deg)}.brand-mark i{background:#fff;border-radius:2px;width:7px;height:7px}.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){background:#cbb8ed}.all-games{display:inline-flex;align-items:center;gap:6px;font-size:.865rem;font-weight:650;color:var(--soft-text);text-decoration:none;white-space:nowrap}.all-games:hover,.card-link:hover,footer a:hover{color:var(--purple-hover);text-decoration:underline}.tools{margin-left:auto;display:flex;align-items:center;gap:7px}.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;background:transparent;border:1px solid transparent;border-radius:11px;color:var(--soft-text)}.tools .icon-btn{background:var(--bg);border-color:var(--edge)}.icon-btn:hover{background:var(--tint);color:var(--purple)}main{max-width:1200px;margin-inline:auto;padding:23px 28px 0}.hero{position:relative;overflow:hidden;isolation:isolate;min-height:195px;display:grid;place-items:center;background:linear-gradient(113deg,var(--hero) 5%,var(--tint) 100%);border:1px solid var(--hero-edge);border-radius:25px}.hero-content{position:relative;z-index:1;text-align:center;padding:22px 10px 24px}.edition{width:max-content;margin:0 auto;display:flex;align-items:center;gap:7px;color:var(--purple);font-size:.79rem;line-height:1.2;font-weight:750;padding:6px 11px;border-radius:100px;border:1px solid var(--hero-edge);background:var(--paper)}.edition-dot{width:4px;height:4px;display:inline-block;border-radius:50%;background:currentColor;margin:0 2px}.hero h1{font-family:Georgia,Times New Roman,serif;font-size:clamp(3.1rem,7vw,4.65rem);line-height:1.05;font-weight:700;letter-spacing:-.081em;padding:2px 7px 4px 0}.hero h1 span{color:var(--purple)}.hero p{color:var(--soft-text);font-size:1rem;font-weight:550;margin-top:5px}.hero-art{position:absolute;inset-block:0;width:31%;pointer-events:none;color:#8065b7}.art-left{left:0}.art-right{right:0}.art-tile{position:absolute;display:grid;place-items:center;width:70px;height:70px;border-radius:15px;font:700 2rem/1 Segoe UI,sans-serif;border:1px solid #fff9;box-shadow:0 8px 18px #3a245019}.art-left .art-first{left:27%;top:21%;transform:rotate(-15deg);background:#f7f2ff;color:#7358a8}.art-left .art-second{left:47%;top:52%;transform:rotate(12deg);background:#dcd0f2;color:#573887}.art-right .art-first{right:25%;top:20%;transform:rotate(13deg);background:#d8ede4;color:#436951}.art-right .art-second{right:44%;top:53%;transform:rotate(-12deg);background:#f5e8ca;color:#805c37}.art-spark,.art-dot,.orbit{position:absolute}.art-left .art-spark{left:60%;top:19%}.art-right .art-spark{right:60%;top:15%}.art-dot{width:6px;height:6px;border-radius:50%;background:#9c84cc;opacity:.55;top:70%}.art-left .art-dot{left:22%}.art-right .art-dot{right:24%}.orbit{width:300px;height:125px;border:1px solid #a48dc488;opacity:.45;border-radius:50%}.art-left .one{left:-82px;top:22px;transform:rotate(-21deg)}.art-left .two{left:-42px;top:44px;transform:rotate(-21deg)}.art-right .one{right:-82px;top:22px;transform:rotate(21deg)}.art-right .two{right:-42px;top:44px;transform:rotate(21deg)}.game-layout{display:grid;grid-template-columns:minmax(185px,232px) minmax(0,495px) minmax(185px,232px);justify-content:center;align-items:start;gap:clamp(18px,3.2vw,57px);margin:20px auto 0}.game-center{min-width:0;text-align:center}.mode-selector{display:inline-flex;justify-content:center;gap:3px;padding:4px;border-radius:13px;border:1px solid var(--edge);background:var(--key);margin-bottom:16px}.mode-selector button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;min-width:94px;padding:4px 14px;background:transparent;border:1px solid transparent;border-radius:9px;font-size:.88rem;line-height:1.2;font-weight:700;color:var(--soft-text)}.mode-selector .selected{color:var(--purple);background:var(--paper);border-color:var(--edge);box-shadow:var(--shadow)}.mode-selector button:hover{color:var(--purple-hover)}.board{--tile: 53px;width:max-content;display:grid;gap:5px;margin:auto}.tile-row{display:grid;grid-template-columns:repeat(5,var(--tile));gap:5px}.tile{width:var(--tile);height:var(--tile);display:grid;place-items:center;position:relative;border-radius:9px;border:1px solid var(--tile-edge);background:var(--paper);font-size:1.61rem;line-height:1;font-weight:780;transition:background-color .13s,border-color .13s;-webkit-user-select:none;user-select:none}.active-tile{border-color:var(--tile-active);box-shadow:inset 0 0 0 1px var(--tile-active)}.entered-tile{border-color:var(--purple);box-shadow:inset 0 0 0 1px var(--purple)}.exact{--mark-color: var(--green);--mark-text: var(--green-text)}.present{--mark-color: var(--yellow);--mark-text: var(--yellow-text)}.absent{--mark-color: var(--grey);--mark-text: var(--grey-text)}.tile:is(.exact,.present,.absent),.key:is(.exact,.present,.absent),.legend-dot{background:var(--mark-color);color:var(--mark-text);border-color:transparent}.tile-symbol{position:absolute;bottom:3px;right:4px}.pop{animation:pop .13s ease-out}.reveal{animation:reveal 315ms ease-in-out both}.shake{animation:shake .28s ease-in-out}@keyframes pop{45%{transform:scale(1.075)}}@keyframes reveal{0%{transform:rotateX(0);background:var(--paper);color:var(--text)}42%{transform:rotateX(90deg);background:var(--paper);color:var(--text)}to{transform:rotateX(0)}}@keyframes shake{20%,60%{transform:translate(-4px)}40%,80%{transform:translate(4px)}}.game-message{min-height:32px;display:flex;gap:5px;flex-wrap:wrap;align-items:center;justify-content:center;color:var(--purple);font-size:.86rem;font-weight:650;line-height:1.25;padding:3px 0}.keyboard{max-width:485px;margin:0 auto;display:grid;gap:5px}.key-row{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:4px}.key-row-3{grid-template-columns:1.8fr repeat(7,minmax(0,1fr)) 1.8fr}.key{display:grid;place-items:center;padding:0 1px;min-width:0;height:44px;font-size:.96rem;font-weight:750;line-height:1;border:1px solid transparent;background:var(--key);border-radius:7px;box-shadow:0 2px 0 var(--key-shadow);color:var(--text);transition:transform .1s,filter .12s}.key:is(.absent,.present,.exact){box-shadow:0 2px color-mix(in srgb,var(--mark-color),var(--mark-text) 20%)}.key:hover:not(:disabled){filter:brightness(.92)}.key:active:not(:disabled){transform:translateY(2px);box-shadow:none}.key:disabled{opacity:.72}.submit-key{background:var(--purple);color:var(--paper)}.backspace{background:var(--tint);color:var(--purple)}.game-legend{margin-top:16px}.legend{display:flex;align-items:center;justify-content:center;gap:15px;color:var(--soft-text);font-size:.79rem}.legend>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.legend-dot{border-radius:5px;width:18px;height:18px;display:inline-grid;flex-shrink:0;place-items:center}.mobile-intro{display:none}.side-card{background:var(--paper);border:1px solid var(--edge);border-radius:var(--radius);box-shadow:var(--shadow);margin-top:60px;padding:17px 16px 13px}.card-title{display:flex;align-items:center;gap:8px;position:relative}.card-title h2{font-size:1.01rem;letter-spacing:-.022em}.card-icon{width:34px;height:34px;border-radius:10px;display:inline-grid;place-items:center;background:var(--tint);color:var(--purple)}.card-icon.warm{background:var(--warm);color:var(--warm-text)}.side-card p{color:var(--soft-text);font-size:.86rem;line-height:1.45;margin:11px 0 12px}.dismiss-intro{margin-left:auto;width:28px;height:28px}.lesson-example{--tile: 48px;display:flex;gap:6px;margin:16px 0}.lesson-example.compact{--tile: clamp(24px, 2.45vw, 31px);gap:4px;margin:11px 0 12px}.compact .tile{font-size:.96rem;border-radius:6px}.compact .tile-symbol{display:none}.lesson-list{list-style:none;padding:0;margin:0;display:grid;gap:7px;font-size:.9rem}.side-card .lesson-list{font-size:.8rem}.lesson-list li{display:flex;align-items:center;gap:7px;color:var(--soft-text)}.text-button{border:0;background:transparent;color:var(--purple);display:inline-flex;align-items:center;gap:4px;padding:0;font-weight:700}.text-button:hover{color:var(--purple-hover);text-decoration:underline}.card-link{border-top:1px solid var(--edge);padding-top:10px;margin-top:13px;width:100%;justify-content:space-between;font-size:.85rem}.streak-number{color:var(--soft-text);font-size:.88rem;margin-top:8px}.streak-number strong{font-family:Georgia,serif;color:var(--text);font-size:2.5rem;letter-spacing:-.07em;line-height:1.05;margin-right:3px}.week{display:flex;justify-content:space-between;gap:2px;margin-top:12px;text-align:center}.week>div{display:grid;justify-items:center;gap:3px;color:var(--text-dim);font-size:.7rem;font-weight:650}.week-day{display:grid;place-items:center;width:clamp(17px,2vw,22px);height:clamp(17px,2vw,22px);border-radius:50%;background:var(--key);border:1px solid transparent;color:var(--soft-text)}.week-day i{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.68}.week-today{border-color:var(--tile-active);color:var(--purple)}.week-won{background:var(--green);color:var(--green-text)}footer{color:var(--text-dim);max-width:1144px;margin:26px auto 0;padding:13px 15px 19px;border-top:1px solid var(--edge);display:flex;justify-content:center;flex-wrap:wrap;gap:12px 23px;font-size:.78rem}footer a{color:inherit;text-decoration:none}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;min-height:40px;font-weight:710;line-height:1.25;border:1px solid transparent;border-radius:9px;font-size:.92rem}.primary{background:var(--purple);color:var(--paper)}.primary:hover{background:var(--purple-hover)}.secondary{background:var(--tint);color:var(--purple);border-color:var(--edge)}.secondary:hover{border-color:var(--purple)}.finished{min-height:94px;display:flex;flex-wrap:wrap;justify-content:center;align-content:start;gap:8px}.finished p{flex:0 0 100%;display:flex;align-items:center;justify-content:center;gap:6px;font-size:.86rem;color:var(--soft-text)}.modal{width:min(94vw,450px);max-height:89dvh;padding:0;border:1px solid var(--edge);border-radius:20px;background:var(--paper);color:var(--text);box-shadow:0 14px 90px #22143254}.modal::backdrop{background:#2113337a;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-inner{padding:clamp(16px,4vw,25px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.modal h2{font-size:1.45rem;line-height:1.14;letter-spacing:-.045em}.modal h3{font-size:1rem}.modal p{margin:0 0 11px}.modal .lesson-list{margin-bottom:14px}.modal .credits{font-size:.77rem;color:var(--text-dim);border-top:1px solid var(--edge);padding-top:11px;margin:15px 0 0}.hint{color:var(--soft-text);font-size:.85rem}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0;margin:0 0 16px;text-align:center}.stat-grid>div{padding:8px 4px;border-radius:9px;background:var(--tint);display:flex;flex-direction:column-reverse;gap:4px}.stat-grid dt{font-size:.75rem;color:var(--soft-text);line-height:1.18}.stat-grid dd{margin:0;font-size:1.2rem;font-weight:790}.distribution{display:grid;gap:4px;list-style:none;margin:8px 0 12px;padding:0}.distribution li{display:flex;gap:6px;align-items:center;font-size:.87rem}.bar-track{width:100%}.bar{display:inline-block;font-weight:650;color:var(--purple);padding:1px 5px;text-align:right;background:var(--tint);border-radius:4px}.today-bar .bar{color:var(--paper);background:var(--purple)}.settings-options{border:0;margin:0 0 12px;padding:0;display:grid;gap:7px}.settings-options legend{font-weight:750;margin-bottom:7px;padding:0}.settings-options label,.toggle{display:flex;align-items:center;gap:7px}.toggle{margin:7px 0 5px;font-weight:650}input[type=checkbox],input[type=radio]{accent-color:var(--purple);width:17px;height:17px;margin:0;flex-shrink:0}.inline-form{margin-bottom:9px}.inline-form label{display:block;font-size:.815rem;font-weight:650;margin-bottom:4px}.input-row{display:flex;align-items:stretch;gap:6px}input:not([type=checkbox],[type=radio]),textarea{min-width:0;flex:1;padding:7px;border:1px solid var(--tile-active);color:var(--text);background:var(--bg);border-radius:8px}textarea{width:100%;height:100px}.form-message{color:var(--purple);font-weight:650}table{width:100%;border-collapse:collapse;font-size:.9rem;text-align:left}th,td{padding:6px 5px;border-bottom:1px solid var(--edge);overflow-wrap:anywhere}.own-score{background:var(--tint);font-weight:700}.result-banner{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;color:var(--purple);background:var(--tint)}.result-banner.won{animation:celebrate .42s ease-out}@keyframes celebrate{45%{transform:scale(1.025)}}.result-banner h3{font-size:1.24rem}.result-banner p{margin:0;color:var(--soft-text);font-size:.875rem}.result-facts{margin-top:10px;display:flex;gap:4px 12px;flex-wrap:wrap;color:var(--soft-text);font-size:.82rem}.result-facts span{display:flex;gap:5px;align-items:center}.result-actions,.share-links{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:12px}.share-links{font-size:.82rem;align-items:center}.share-status:empty{display:none}.share-status{color:var(--purple);font-size:.82rem}.wide{width:100%;margin-top:12px}.reminder{border-top:1px solid var(--edge);padding-top:11px;margin-top:14px}.portal-next{display:grid;gap:2px;margin-top:12px;padding:11px 13px;border-radius:12px;background:var(--tint)}.portal-next a{font-weight:700}.reminder h3{display:flex;align-items:center;gap:6px;margin-bottom:3px}.reminder .consent{display:flex;margin-top:8px;font-weight:450;color:var(--soft-text)}.more-games{display:inline-flex;align-items:center;gap:5px;font-size:.84rem;font-weight:700}@media(max-width:915px){.game-layout{gap:17px;grid-template-columns:minmax(155px,190px) minmax(0,460px) minmax(155px,190px)}.side-card{padding-inline:11px}.art-tile{width:58px;height:58px;font-size:1.6rem}}@media(max-width:760px){.topbar-inner{height:58px;padding-inline:14px;gap:12px}.brand{font-size:20px;gap:7px}.brand-mark{width:29px;height:29px;padding:6px}.all-games{display:none}.tools{gap:3px}.tools .icon-btn{width:38px;height:38px;border-color:transparent;background:transparent}main{padding:11px 12px 0}.hero{border-radius:18px;min-height:130px}.hero-content{padding:9px 5px 13px}.hero h1{font-size:clamp(2.8rem,10.1vw,3.75rem)}.hero p{font-size:.88rem;margin-top:2px}.edition{font-size:.76rem;padding:4px 8px}.hero-art{width:27%}.art-tile{width:33px;height:33px;border-radius:8px;font-size:1rem}.art-left .art-first{left:18%}.art-left .art-second{left:28%;top:64%}.art-right .art-first{right:18%}.art-right .art-second{right:28%;top:64%}.art-spark,.art-dot{display:none}.orbit{opacity:.3}.art-left .orbit{left:-245px}.art-right .orbit{right:-245px}.game-layout{display:flex;max-width:485px;flex-direction:column;gap:13px;margin-top:10px}.game-center{order:-1;width:100%}.side-card{margin:0;width:100%}.guide-card,.streak-card{display:none}.mode-selector{margin-bottom:10px;padding:3px}.mode-selector button{min-height:33px}.board{--tile: clamp(39px, 12vw, 50px)}.tile{font-size:1.4rem}.game-message{min-height:26px}.key{height:45px;font-size:.91rem}.key-row{gap:3px}.game-legend{margin-top:11px}.legend{gap:12px}.mobile-intro{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:2px;font-size:.78rem}.mobile-intro .icon-btn{width:32px;height:32px}footer{margin-top:12px}}@media(max-width:365px){.topbar-inner{padding-inline:9px;gap:5px}.tools .icon-btn{width:34px}.tools{gap:1px}main{padding-inline:8px}.hero-art{opacity:.76}.hero p{font-size:.815rem}.key{font-size:.84rem}.legend{font-size:.75rem;gap:8px}}@media(max-height:745px){.hero{min-height:115px}.hero-content{padding-block:7px}.board{--tile: 43px}.keyboard .key{height:42px}}@media(max-height:670px)and (max-width:760px){.hero{min-height:94px}.hero h1{font-size:2.45rem}.topbar-inner{height:48px}.board{--tile: 39px;gap:4px}.tile-row{gap:4px}.game-layout{margin-top:7px}.mode-selector{margin-bottom:7px}.key{min-height:35px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}}@media(max-height:600px)and (max-width:760px){.topbar-inner{height:44px}main{padding-top:6px}.hero{min-height:82px}.hero-content{padding-block:4px}.hero h1{font-size:2rem}.edition{padding-block:3px}.game-layout{margin-top:5px}.mode-selector{margin-bottom:5px}.mode-selector button{min-height:28px}.board{--tile: 32px}.game-message{min-height:20px}.keyboard .key{height:38px}}.score-invite{margin-top:12px}.score-invite .hint{margin-bottom:6px}.score-invite .wide{margin-top:0}
