:root{font-family:ui-rounded,"Trebuchet MS",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263553;background:#f7f7ff;font-synthesis:none;-webkit-tap-highlight-color:transparent;--ink:#263553;--purple:#6758ca;--purple-dark:#5144b2;--mint:#d8f6e7;--green:#18865b;--red:#d54852;--gold:#f1ae21}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;min-height:100dvh;background:radial-gradient(ellipse at 7% 4%,#e1f4ff 0,transparent 34%),radial-gradient(ellipse at 97% 46%,#fce6ee 0,transparent 32%),#f7f7ff;color:var(--ink)}button{font:inherit;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}button:focus-visible{outline:4px solid #41bfe4;outline-offset:3px}button[disabled]{cursor:not-allowed}button:active:not([disabled]){transform:translateY(2px)}[hidden]{display:none!important}
.app-shell{max-width:1100px;margin:auto;padding:20px 28px 28px}.top-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:10px 0 26px}.brand{display:flex;align-items:center;gap:17px}.brand-tiles{display:flex;align-items:center;transform:rotate(-6deg);padding:3px}.brand-tiles span{display:grid;place-items:center;width:37px;height:40px;border-radius:11px;font-size:22px;font-weight:1000;color:white;border-bottom:4px solid #0002;box-shadow:0 4px 6px #27375c12}.brand-tiles span:nth-child(1){background:#ff8b70;transform:rotate(-10deg)}.brand-tiles span:nth-child(2){background:#72c8ae;transform:translateX(-4px) rotate(6deg)}.brand-tiles span:nth-child(3){background:#8f86df;transform:translateX(-8px) rotate(-4deg)}.brand-name{font-size:29px;line-height:1.15;font-weight:1000;letter-spacing:-1px;color:#263553}.brand-name span{color:var(--purple)}.brand-subtitle{font-size:12px;margin-top:2px;color:#7883a0;font-weight:750;letter-spacing:.2px}.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.top-button{min-height:48px;border-radius:17px;padding:11px 17px;font-size:14px;font-weight:900;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .12s,background .2s}.top-button--outline{background:white;border:2px solid #dce1f1;color:var(--ink);box-shadow:0 4px 12px #26355309}.top-button--outline:hover{background:#f8faff}.top-button--lavender{background:#eae7ff;color:#594bc1;border:2px solid #eae7ff}.top-button--lavender:hover{background:#dfd9ff}
.main-layout{max-width:870px;margin:auto}.game-info{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:2px auto 18px;max-width:760px}.progress-section{flex:1;min-width:150px}.progress-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px;font-size:13px;font-weight:900}.progress-label span:last-child{color:#8993ac}.progress-bar{height:12px;border-radius:100px;background:#e5e7f4;overflow:hidden}.progress-bar span{display:block;width:10%;height:100%;background:linear-gradient(90deg,#8582e8,#5dc3cc);border-radius:100px;transition:width .28s}.score-panels{display:flex;gap:10px}.mini-score{min-width:145px;display:flex;align-items:center;gap:10px;border-radius:17px;padding:10px 16px}.mini-score--yellow{background:#fff0c6}.mini-score--mint{background:#e0f7ed}.mini-score-icon{font-size:23px}.mini-score div{display:flex;flex-direction:column;line-height:1.2}.mini-score-label{font-size:11px;font-weight:850;color:#68748e}.mini-score strong{font-size:27px;line-height:1.13;color:#263553;font-weight:1000;font-variant-numeric:tabular-nums}
.spell-card{background:#fff;border:2px solid #eef0f8;border-radius:31px;box-shadow:0 18px 60px #33357512,0 2px 8px #33357507;text-align:center;padding:27px 42px 24px;position:relative}.card-heading .eyebrow{font-size:10px;letter-spacing:2px;color:#7264c8;font-weight:1000;display:flex;align-items:center;justify-content:center;gap:8px}.eyebrow-dot{height:8px;width:8px;border-radius:50%;background:#87d5bb}.card-heading h1{font-size:clamp(24px,4vw,32px);line-height:1.1;letter-spacing:-1px;margin:7px 0 7px;font-weight:1000}.card-heading p{font-size:14px;color:#7f88a0;margin:0}.picture-frame{width:min(100%,360px);height:230px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;margin:22px auto 18px;background:linear-gradient(135deg,#eefaff,#f4eaff);border-radius:28px;isolation:isolate}.picture-frame[data-theme="1"]{background:linear-gradient(135deg,#fff4da,#ffeaf1)}.picture-frame[data-theme="2"]{background:linear-gradient(135deg,#e8fff0,#e9f7ff)}.picture-frame[data-theme="3"]{background:linear-gradient(135deg,#f4efff,#fff5de)}.picture-frame[data-theme="4"]{background:linear-gradient(135deg,#ffeff0,#e8fbf6)}.picture-frame img{width:210px;height:210px;object-fit:contain;z-index:1;filter:drop-shadow(0 8px 3px #25345b10);pointer-events:none;user-select:none;-webkit-user-drag:none;animation:picture-pop .4s cubic-bezier(.25,1.7,.5,1)}.shape{position:absolute;display:block;pointer-events:none;opacity:.4}.shape--one{width:115px;height:115px;background:#fff;border-radius:50%;top:-46px;left:-30px}.shape--two{width:53px;height:53px;border:12px solid #ffffff;border-radius:24px;right:13px;top:19px;transform:rotate(25deg)}.shape--three{width:75px;height:75px;background:#fff;border-radius:50%;right:-15px;bottom:-28px}.tiles-heading{max-width:455px;margin:0 auto 10px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:900;color:#717c99}.tiles-heading span:last-child{border-radius:100px;padding:5px 12px;background:#f2edff;color:var(--purple)}.letter-tiles{display:flex;gap:9px;justify-content:center;align-items:center;flex-wrap:nowrap;max-width:540px;margin:auto}.tile{height:64px;width:64px;min-width:0;flex:0 1 64px;display:grid;place-items:center;border:3px solid #d9ddeb;background:#f9faff;color:#293755;border-radius:16px;font-size:clamp(21px,4vw,33px);font-weight:1000;line-height:1;text-transform:uppercase;box-shadow:0 4px 0 #e5e7f0;transition:background .12s,border-color .12s}.tile[data-selected="true"]:not(.tile--locked){border-color:#8b80e2;box-shadow:0 0 0 4px #8b80e224,0 4px 0 #d2ccfb}.tile--right{border-color:#4cb989;background:#dcf8e8;color:#147849;box-shadow:0 4px 0 #b3e5c9}.tile--wrong{border-color:#ed8d98;background:#ffe2e6;color:#bb374b;box-shadow:0 4px 0 #f5c3ca}.tile--locked{cursor:default}.feedback{font-size:14px;font-weight:800;line-height:1.4;min-height:41px;display:flex;align-items:center;justify-content:center;max-width:580px;margin:13px auto 8px}.feedback--neutral{color:#7e88a1}.feedback--wrong{color:#c34d62}.feedback--right{color:#148358}.main-button{border:0;background:#6557cd;color:#fff;box-shadow:0 5px 0 #5144ad,0 10px 20px #6557cd1f;border-radius:17px;font-size:17px;font-weight:1000;min-height:58px;padding:14px 32px;display:flex;align-items:center;gap:14px;justify-content:center;margin:auto;transition:background .15s,transform .1s;width:min(100%,310px)}.main-button:not([disabled]):hover{background:#5848c6}.main-button[disabled]{background:#bdb9e3;box-shadow:0 5px 0 #a8a4ca;color:#f9f8ff}.main-button span{font-size:23px}.submit-hint{font-size:11px;margin:12px 0 0;color:#939bb0;font-weight:700;min-height:15px}
.keyboard-panel{padding:19px 20px 20px;background:#fff;border:2px solid #eef0f8;border-radius:27px;margin:15px auto 0;box-shadow:0 10px 30px #33357508}.keyboard-title{font-size:14px;font-weight:1000;text-align:center;display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:15px}.keyboard-help{color:#9ba3b6;font-size:11px;font-weight:750;margin-left:10px}.keyboard{display:flex;flex-direction:column;gap:7px}.keyboard-row{display:flex;justify-content:center;gap:7px}.key{background:#f0f1fb;border:2px solid #e4e6f3;box-shadow:0 3px 0 #dce0ed;border-radius:11px;color:#37405d;min-width:0;width:min(12.2%,60px);height:49px;font-size:19px;font-weight:1000;display:grid;place-items:center}.key:hover{background:#e8e5ff;border-color:#cdc8f8}.key:active{background:#dcd6ff}.backspace-btn{margin:13px auto 0;min-height:36px;padding:7px 19px;border:0;border-radius:11px;color:#7e6687;background:#fff1f4;font-size:12px;font-weight:900}.backspace-btn:hover{background:#ffe3ea}.page-footer{font-size:11px;color:#98a0b4;font-weight:750;text-align:center;margin:22px auto 0;line-height:1.6}.page-footer span{color:#dd718b}
.finish-area{background:white;border:2px solid #eaeaf5;border-radius:32px;box-shadow:0 18px 60px #33357512;text-align:center;max-width:630px;margin:35px auto;padding:40px 38px 44px}.finish-confetti{font-size:33px;letter-spacing:16px}.finish-badge{font-size:85px;margin:14px auto}.finish-area h1{font-size:43px;font-weight:1000;letter-spacing:-1.5px;margin:12px 0 8px}.finish-area>p{color:#7d88a2;margin:0 0 26px}.finish-score{max-width:280px;margin:auto;background:#f1edff;padding:17px;border-radius:23px;display:flex;flex-direction:column;gap:4px}.finish-score>span{font-size:11px;font-weight:1000;letter-spacing:1.5px;color:#6255c5}.finish-score strong{font-size:65px;line-height:1.1;font-weight:1000;color:#4735af}.finish-score small{font-size:24px;color:#a5a0cb}.finish-best{font-weight:850;color:#32946f;font-size:14px;margin:18px auto 25px}.finish-actions{display:flex;flex-direction:column;align-items:center;gap:15px}
.overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:#1b264a9d;backdrop-filter:blur(4px);padding:16px;overflow:auto}.modal{background:#fff;width:min(100%,530px);max-height:calc(100dvh - 36px);overflow:auto;border-radius:28px;box-shadow:0 20px 80px #1e204351;padding:26px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.modal-kicker{font-size:10px;color:#796bcc;font-weight:1000;letter-spacing:1.4px}.modal-head h2{font-size:27px;line-height:1.2;letter-spacing:-.5px;margin:5px 0 16px}.close-modal{width:39px;height:39px;flex:none;border-radius:13px;border:0;background:#f1f1fa;font-size:28px;line-height:1;color:#6d7391}.personal-best{display:flex;flex-direction:column;gap:3px;align-items:center;border-radius:20px;padding:18px;background:linear-gradient(110deg,#f2edff,#f0faff)}.personal-best span:first-child{font-size:10px;letter-spacing:1.2px;color:#6862ab;font-weight:1000}.personal-best strong{font-size:60px;line-height:1.15;color:#6150c7;font-weight:1000}.personal-best span:last-child{font-size:12px;color:#8c90a8;font-weight:800}.history-heading{font-size:15px;font-weight:1000;margin:23px 0 11px}.history-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow:auto}.history-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f7f8fd;border-radius:16px;padding:12px 14px}.history-entry .history-date{font-size:13px;font-weight:950}.history-entry .history-status{font-size:11px;color:#8b95aa;font-weight:750;margin-top:3px}.history-entry strong{font-size:20px;font-variant-numeric:tabular-nums;color:#6051c5}.history-entry small{font-size:12px;color:#999fb3}.history-empty{text-align:center;background:#f8f9ff;color:#838ca4;border-radius:14px;padding:28px 10px;font-size:13px;font-weight:800}.local-note{text-align:center;font-size:11px;color:#9ca4b6;margin:16px auto}.modal-done{background:#6557cd;color:#fff;border:0;border-radius:13px;width:100%;min-height:48px;font-weight:950}.confirm-modal{text-align:center;max-width:420px;padding:30px}.confirm-icon{font-size:54px}.confirm-modal h2{font-size:26px;margin:10px 0}.confirm-modal p{color:#7d87a0;font-size:14px;line-height:1.6}.confirm-buttons{display:flex;gap:10px;margin-top:24px}.confirm-buttons>*{flex:1;width:auto;min-width:0}.confirm-buttons .main-button{font-size:14px;min-height:49px;padding:10px 14px;box-shadow:0 4px 0 #5144ad}
@keyframes picture-pop{from{transform:scale(.86);opacity:.5}to{transform:scale(1);opacity:1}}@media (max-width:730px){.app-shell{padding:13px 16px 18px}.top-bar{align-items:flex-start;padding-bottom:20px;gap:15px;flex-direction:column}.top-actions{width:100%;justify-content:flex-start}.top-button{min-height:44px;padding:9px 14px;font-size:13px}.game-info{gap:14px;flex-wrap:wrap}.progress-section{flex-basis:100%;order:2}.score-panels{order:1;width:100%}.mini-score{flex:1}.spell-card{padding:24px 18px}.keyboard-panel{padding:17px 8px}.keyboard-help{display:none}}@media (max-width:460px){.brand-tiles span{width:33px;height:35px;font-size:19px}.brand-name{font-size:26px}.brand-subtitle{font-size:11px}.top-actions>*{flex:1}.game-info{margin-bottom:12px}.mini-score{padding:8px 12px;min-width:0}.mini-score strong{font-size:23px}.picture-frame{height:198px;margin:16px auto 15px}.picture-frame img{width:180px;height:180px}.card-heading h1{font-size:25px}.card-heading p{font-size:12px}.spell-card{border-radius:24px;padding:21px 12px 20px}.letter-tiles{gap:5px}.tile{height:53px;flex-basis:53px;width:53px;font-size:25px;border-radius:13px;border-width:2px}.feedback{font-size:13px;min-height:45px;padding:0 9px}.main-button{min-height:53px;font-size:15px}.key{height:46px;width:min(12.4%,56px);font-size:17px;border-radius:10px}.keyboard-row{gap:4px}.keyboard-title{margin-bottom:10px}.keyboard-panel{border-radius:22px}.finish-area{margin:12px auto;padding:34px 18px}.finish-area h1{font-size:34px}}@media (max-width:350px){.tile{height:45px;flex-basis:45px;width:45px;font-size:21px}.key{font-size:15px}.brand-subtitle{display:none}}@media (prefers-reduced-motion:reduce){*,*::after,*::before{animation-duration:.001ms!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}
