:root{--paper:#f8f6ef;--ink:#203b32;--muted:#627069;--line:#dedfd4;--coral:#ad4b35;--mint:#e5ebe0}*{box-sizing:border-box}html{font-size:100%}body{background:var(--paper);color:var(--ink);margin:0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;line-height:1.6}a{color:inherit}.sr-only{clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}button,input{font:inherit}button,.button{border:2px solid var(--ink);background:var(--ink);color:#fff;cursor:pointer;border-radius:14px;justify-content:center;align-items:center;min-height:48px;padding:.7rem 1.1rem;font-weight:700;text-decoration:none;display:inline-flex}button:disabled{opacity:.5;cursor:not-allowed}.button.primary{min-height:64px;font-size:1.3rem}.secondary{color:var(--ink);background:0 0}:focus-visible{outline:3px solid var(--coral);outline-offset:3px}.shell{max-width:900px;margin:auto;padding:clamp(1rem,4vw,3rem)}header,footer{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}header{border-bottom:1px solid var(--line);justify-content:space-between;padding-bottom:1rem}footer{border-top:1px solid var(--line);margin-top:3rem;padding-top:1.5rem;font-size:.9rem}.brand{font-size:1.25rem;font-weight:800;text-decoration:none}h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.2}h2{font-size:1.4rem}.home>p{font-size:1.2rem}.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem;margin-top:2rem;display:grid}.cards a,.panel,.task{border:1px solid var(--line);background:#fff;border-radius:18px;padding:1.5rem}.cards a{min-height:80px;font-size:1.2rem;font-weight:700;text-decoration:none}.cards a:hover{background:var(--mint)}.task{margin-top:2rem}.eyebrow{color:var(--muted);font-weight:700}.target{letter-spacing:.05em;margin:1rem 0;font-size:clamp(2rem,8vw,4rem);font-weight:800}.task label{margin-top:1rem;font-weight:700;display:block}.task input{border:2px solid var(--ink);border-radius:12px;width:100%;max-width:500px;min-height:56px;margin:.5rem 0 1rem;padding:.7rem;font-size:1.5rem;display:block}.actions{flex-wrap:wrap;gap:.7rem;display:flex}.notice{background:var(--mint);border-radius:8px;padding:.8rem}@media (max-width:480px){.shell{padding:1rem}.cards{grid-template-columns:1fr}.actions>*{flex:100%}}.keyboard-guide{gap:1rem;display:grid}.keyboard-guide label{margin-top:1rem;font-weight:700;display:block}.keyboard-guide select{border:2px solid var(--ink);max-width:100%;min-height:48px;font:inherit;background:#fff;border-radius:10px;padding:.5rem;display:block}.keyboard-scroll{max-width:100%;padding:.25rem 0 1rem;overflow-x:auto}.keyboard{border:1px solid var(--line);background:#e9eee8;border-radius:18px;min-width:900px;padding:1rem}.keyboard-row{justify-content:center;gap:.3rem;margin-bottom:.3rem;display:flex}.keyboard-key{text-align:center;background:#fff;border:2px solid #aeb9b1;border-radius:9px;flex-direction:column;flex:1;justify-content:center;align-items:center;min-width:0;min-height:68px;line-height:1.2;display:flex}.keyboard-key strong{font-size:1.2rem}.keyboard-key span{font-size:.85rem}.keyboard-key small{font-size:.7rem}.keyboard-key.active.left{background:#ffe9d9;border-color:#aa5938}.keyboard-key.active.right{background:#dcecf7;border-color:#345e7c}.keyboard-key.current{outline-offset:-4px;outline:4px solid #203b32}.keyboard-key.helper{font-weight:700}.keyboard-key.space{flex:4}.keyboard-legend{flex-wrap:wrap;gap:.6rem;display:flex}.keyboard-legend span{border:1px solid var(--ink);border-radius:8px;padding:.3rem .7rem}.keyboard-legend span:first-child{background:#ffe9d9}.keyboard-legend span:nth-child(2){background:#dcecf7}.hand-hint p{margin:.5rem 0}.posture-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;display:grid}.posture-grid>p{grid-column:1/-1}.posture-grid h2{margin-top:0}@media (max-width:480px){.keyboard-key{min-height:58px}}.keyboard-key .key-hand{white-space:nowrap;font-size:.62rem;font-weight:700}.keyboard-key[data-key-code=Backspace]{flex:2}.keyboard-key[data-key-code=Tab],.keyboard-key[data-key-code=Backslash]{flex:1.5}.keyboard-key[data-key-code=CapsLock]{flex:1.75}.keyboard-key[data-key-code=Enter],.keyboard-key[data-key-code=ShiftLeft],.keyboard-key[data-key-code=ShiftRight]{flex:2.25}.keyboard-key[data-key-code=Space]{flex:6}.draft-preview{gap:.25rem;margin:1rem 0;font-size:1.5rem;font-weight:700;display:flex}.draft-preview span{border:2px solid var(--line);text-align:center;border-radius:8px;min-width:2rem;padding:.15rem .35rem}.draft-preview .draft-match{background:#e5ebe0;border-color:#416d50}.draft-preview .draft-mismatch{background:#fff0e9;border-color:#ad4b35}section[aria-label="한글 단계별 학습"] label{margin-top:1rem;font-weight:700;display:block}section[aria-label="한글 단계별 학습"] select{border:2px solid var(--ink);max-width:100%;min-height:48px;font:inherit;background:#fff;border-radius:10px;margin:.4rem 0 1rem;padding:.5rem;display:block}section[aria-label="한글 단계별 학습"] .target{overflow-wrap:anywhere}.lesson label{margin-top:1rem;font-weight:700;display:block}.lesson select{border:2px solid var(--ink);max-width:100%;min-height:48px;font:inherit;background:#fff;border-radius:10px;margin:.4rem 0 1rem;padding:.5rem;display:block}.lesson .target{overflow-wrap:anywhere}.lesson .panel+.panel,.lesson .actions[aria-label=대소문자\ 정책]{margin-top:1rem}.adventure{gap:1rem;display:grid}.adventure .panel{margin-top:1rem}.adventure label{margin-top:1rem;font-weight:700;display:block}.adventure select{border:2px solid var(--ink);max-width:100%;min-height:48px;font:inherit;background:#fff;border-radius:10px;margin:.4rem 0 1rem;padding:.5rem;display:block}.adventure .target{overflow-wrap:anywhere}.record-book{gap:1rem;display:grid}.record-book>.panel{min-width:0}.record-book .actions{margin:1rem 0}.record-book label{margin-top:1rem;font-weight:700;display:block}.record-book select,.record-book input[type=file]{border:2px solid var(--ink);max-width:100%;min-height:48px;font:inherit;background:#fff;border-radius:10px;margin:.4rem 0 1rem;padding:.5rem;display:block}.record-scroll{max-width:100%;overflow-x:auto}.record-book table{border-collapse:collapse;background:#fff;width:100%;min-width:670px}.record-book caption{text-align:left;padding:.5rem;font-weight:700}.record-book th,.record-book td{border:1px solid var(--line);text-align:left;vertical-align:top;padding:.4rem}.record-book tbody tr{height:2.4rem}.record-book thead{background:var(--mint)}@media print{body{color:#000;background:#fff}.shell{max-width:none;padding:0}.shell>header,.shell>h1,.shell>p,.shell>footer,.no-print{display:none!important}.record-book .panel{border:0;padding:0}.record-book table{min-width:0;font-size:10pt}.record-book th,.record-book td{border-color:#777}.record-book tbody tr{break-inside:avoid}.record-scroll{overflow:visible}@page{size:A4 landscape;margin:12mm}}.garden{gap:1rem;display:grid}.garden-scene{background:var(--mint);border-radius:18px;align-items:center;gap:1rem;margin:1rem 0;padding:1rem;display:flex}.garden-plant{font-size:3rem;line-height:1;animation:.55s ease-out garden-grow;display:inline-block}.garden .target{overflow-wrap:anywhere}@keyframes garden-grow{0%{opacity:.5;transform:scale(.65)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.garden-plant{animation:none}}.space-delivery{gap:1rem;display:grid}.space-delivery .target{overflow-wrap:anywhere}.space-option{align-items:center;gap:.6rem;min-height:48px;margin:1rem 0;display:flex}.space-option input{width:24px;height:24px}.space-scene{background:#e8ebf7;border-radius:18px;align-items:center;gap:1rem;padding:1rem;display:flex}.space-scene span{font-size:3rem;line-height:1}.appearance-options{border:1px solid var(--line);background:#fff;border-radius:14px;flex-wrap:wrap;align-items:center;gap:.8rem 1.4rem;margin:1rem 0;padding:1rem;display:flex}.appearance-options legend{font-weight:700}.appearance-options label{align-items:center;gap:.45rem;font-weight:700;display:inline-flex}.appearance-options input{width:22px;height:22px}.appearance-options select{border:2px solid var(--ink);min-height:48px;color:var(--ink);background:#fff;border-radius:8px;padding:.4rem}.theme-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.8rem;margin:1rem 0;display:grid}.theme-scene{border:1px solid var(--line);min-height:115px;color:var(--ink);background:#fff;border-radius:16px;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex}.theme-scene p{margin:.2rem 0;line-height:1.5}.theme-character{object-fit:contain;flex:none;width:80px;height:80px}.theme-robot.theme-soft{background:linear-gradient(120deg,#eef4ef,#fff)}.theme-garden.theme-soft{background:linear-gradient(120deg,#e6f1e3,#fff)}.theme-space.theme-soft{background:linear-gradient(120deg,#e9ecf7,#fff)}.theme-faint{background:#f8f8f5}.theme-quiet{background:#fff;min-height:auto}.theme-quiet strong{font-size:1rem}.reward-shelf{margin-top:1rem}.reward-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:.75rem;margin-top:1rem;display:grid}.reward-list>div{border:1px solid var(--line);border-radius:12px;padding:1rem}.reward-list p{margin:.35rem 0 1rem}.appearance-large .target{font-size:clamp(2.5rem,9vw,5rem)}.appearance-large .task input{font-size:2rem}.appearance-large .theme-scene,.appearance-large .reward-shelf{font-size:1.18rem}@media (max-width:480px){.theme-gallery{grid-template-columns:1fr}.theme-character{width:64px;height:64px}.appearance-options{display:grid}.reward-list{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.theme-scene *,.garden-plant{transition:none!important;animation:none!important}}.reward-preview{border:1px solid var(--line);background:var(--mint);border-radius:10px;margin:.8rem 0;padding:.8rem 1rem}.theme-quiet .garden-plant{animation:none}.theme-quiet .garden-scene,.theme-quiet .space-scene{background:#fff}.scene-decoration{border:1px solid var(--ink);color:var(--ink);background:#fff;border-radius:8px;padding:.2rem .5rem;font-weight:700;display:inline-block}.scene-decoration span{font-size:1.25rem}.sound-controls{margin:1rem 0}.sound-controls>label{margin:.65rem 0;display:block}.sound-controls input[type=checkbox]{vertical-align:middle;width:1.25rem;height:1.25rem}.sound-sliders{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:.7rem;display:grid}.sound-sliders label{display:grid}.sound-sliders input{width:100%;min-height:44px}.parent-filters{flex-wrap:wrap;gap:1rem;display:flex}.parent-filters label{flex:150px;display:grid}.parent-filters select,.panel>label select{border:2px solid var(--ink);min-height:48px;color:var(--ink);background:#fff;border-radius:8px;padding:.5rem;display:block}.panel>label{margin:.7rem 0;display:block}.panel>label.parent-check{align-items:center;gap:.6rem;min-height:48px;display:flex}.parent-check input{width:24px;height:24px}@font-face{font-family:Galmuri11;src:url(/assets/tajafun/fonts/Galmuri11.woff2)format("woff2");font-display:swap;font-weight:400}@font-face{font-family:Galmuri11;src:url(/assets/tajafun/fonts/Galmuri11-Bold.woff2)format("woff2");font-display:swap;font-weight:700}body:has(.game-shell){background:#0d1940;overflow:hidden}.game-shell{--game-navy:#0d1940;--game-blue:#4263eb;--game-sky:#8ee7ff;--game-yellow:#ffd166;--game-pink:#ff8fab;--game-cream:#fff9ea;--game-ink:#12213f;isolation:isolate;width:100%;height:100vh;height:var(--game-viewport-height,100dvh);min-width:0;min-height:0;padding:max(env(safe-area-inset-top),6px) max(env(safe-area-inset-right),8px) max(env(safe-area-inset-bottom),6px) max(env(safe-area-inset-left),8px);background:radial-gradient(circle at 75% 10%,#253d87 0,#101f50 34%,var(--game-navy) 72%);color:#fff;grid-template-rows:auto minmax(0,1fr) auto;font-family:Galmuri11,system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;line-height:1.35;display:grid;position:relative;overflow:hidden}.game-shell.readable-font{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif}.game-shell [hidden]{display:none!important}.game-shell button,.game-shell .button,.game-shell input,.game-shell select{font:inherit}.game-shell button,.game-shell .button{color:#fff;background:linear-gradient(#57f,#3656d7);border:0;border-radius:14px;min-width:44px;min-height:44px;padding:.55rem .85rem;box-shadow:0 4px #243c9b,0 8px 18px #07112a66}.game-shell button:hover,.game-shell .button:hover{filter:brightness(1.08)}.game-shell button:active,.game-shell .button:active{transform:translateY(2px);box-shadow:0 2px #243c9b}.game-shell button.secondary,.game-shell .button.secondary{color:var(--game-ink);background:#eef4ff;box-shadow:0 4px #a7b7db}.game-shell button.danger{background:#aa3d56;box-shadow:0 4px #6f2538}.game-shell :focus-visible{outline:3px solid var(--game-yellow);outline-offset:3px}.game-topbar{z-index:10;border:0;border-bottom:1px solid #ffffff26;grid-template-columns:auto minmax(110px,1fr) auto auto;align-items:center;gap:clamp(.35rem,1vw,.8rem);min-width:0;min-height:58px;padding:.35rem .45rem .55rem;display:grid}.game-brand{text-align:left;justify-self:start;align-items:center;box-shadow:none!important;background:0 0!important;gap:.5rem!important;padding:.2rem .35rem!important;display:flex!important}.game-brand .brand-star{background:var(--game-yellow);color:#8a4b00;border-radius:12px;place-items:center;width:38px;height:38px;display:grid;box-shadow:inset 0 -4px #e5a928}.game-brand strong{letter-spacing:.04em;font-size:1.05rem;display:block}.game-brand small{color:#bceeff;font-size:.65rem;display:block}.mode-pill{text-overflow:ellipsis;white-space:nowrap;justify-self:start;max-width:100%;overflow:hidden;color:#e9faff!important;background:#ffffff18!important;box-shadow:inset 0 0 0 1px #ffffff2e!important}.game-score{white-space:nowrap;align-items:center;gap:.4rem;display:flex}.game-score span{background:#07122c99;border-radius:12px;align-items:center;gap:.2rem;min-height:36px;padding:.3rem .55rem;font-weight:700;display:inline-flex}.game-score svg{width:18px;color:var(--game-yellow);fill:#ffd16666}.top-actions{gap:.35rem;display:flex}.game-icon-button{flex-direction:column;gap:.05rem;display:inline-flex;background:#ffffff12!important;padding:.25rem .45rem!important;box-shadow:inset 0 0 0 1px #fff2!important}.game-icon-button svg{width:22px;height:22px}.game-icon-button span{font-size:.6rem}.game-stage{background:#101e49;border:1px solid #aeeeff30;border-radius:22px;min-width:0;min-height:0;position:relative;overflow:hidden;box-shadow:inset 0 0 40px #07112e,0 12px 28px #050a1f66}.game-canvas,.fallback-world{min-width:0;min-height:0;position:absolute;inset:0}.game-canvas canvas{display:block;width:100%!important;height:100%!important}.fallback-world{background:radial-gradient(circle at 60% 15%,#4a63a8,#172755 48%,#0d1739);grid-template-rows:1fr auto auto;align-items:end;padding:1rem;display:grid;overflow:hidden}.fallback-stars{color:#fff3a8;letter-spacing:clamp(.4rem,3vw,2.5rem);opacity:.8;font-size:clamp(1.3rem,4vw,2.7rem);position:absolute;inset:10% 8%}.fallback-road{background:linear-gradient(#7cd39a,#4aa777);border-radius:50% 50% 0 0;height:50%;min-height:80px;position:relative;box-shadow:inset 0 18px #a6e4ae}.fallback-robot{color:#21304e;background:#f5f8ff;border-radius:16px;place-items:center;width:58px;height:52px;transition:left .5s;display:grid;position:absolute;bottom:18%;box-shadow:0 6px #7aa2d8}.fallback-robot span{color:#53c7ca}.fallback-parcels{z-index:1;color:#ffcf70;justify-content:space-around;font-size:1.8rem;display:flex}.fallback-parcels .done{color:#d8f3dc;opacity:.7}.fallback-world>p{z-index:1;background:#07122c99;border-radius:9px;justify-self:center;margin:.35rem 0 0;padding:.25rem .55rem;font-size:.7rem}.mission-badge{z-index:3;text-align:center;background:#07122cbd;border:1px solid #ffffff38;border-radius:16px;max-width:min(86%,620px);padding:.45rem 1rem;display:grid;position:absolute;top:clamp(.55rem,2vw,1rem);left:50%;transform:translate(-50%);box-shadow:0 8px 20px #050b20aa}.mission-badge span{color:#9defff;font-size:.65rem}.mission-badge strong{overflow-wrap:anywhere;max-width:100%;font-size:clamp(1rem,2.8vw,1.45rem)}.reward-feedback{z-index:4;color:#fff4bd;text-shadow:0 3px 8px #030815;pointer-events:none;min-height:32px;font-size:clamp(1rem,3vw,1.6rem);font-weight:700;position:absolute;top:31%;left:50%;transform:translate(-50%,-50%)}.stage-progress{z-index:4;background:#07122ca8;border-radius:999px;height:8px;position:absolute;bottom:.65rem;left:1rem;right:1rem;overflow:hidden}.stage-progress span{border-radius:inherit;background:linear-gradient(90deg,#70e1d0,#ffe66d);height:100%;transition:width .45s;display:block}.game-control-deck{z-index:6;min-width:0;max-height:min(320px,42dvh);color:var(--game-ink);background:linear-gradient(#fffdf6,#eef5ff);border:1px solid #ffffff35;border-radius:20px;margin-top:.5rem;padding:.7rem clamp(.7rem,2vw,1.3rem) .65rem;overflow:hidden;box-shadow:0 -6px 24px #06102d80}.start-panel,.result-panel{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;min-height:132px;display:grid}.start-panel h1,.result-panel h2{margin:.15rem 0;font-size:clamp(1.45rem,4vw,2.25rem)}.start-panel p,.result-panel p{margin:.25rem 0}.game-kicker{color:#3356c5;letter-spacing:.08em;font-size:.72rem;font-weight:700;margin:0!important}.game-start-button{gap:.45rem!important;min-width:160px!important;min-height:58px!important;font-size:1.05rem!important}.game-start-button svg,.overlay-actions svg{width:22px;height:22px}.active-mission{grid-template-rows:auto minmax(0,1fr);min-height:0;display:grid}.mission-meta{justify-content:center;gap:.45rem;margin-bottom:.35rem;display:flex}.mission-meta span{color:#27457c;background:#dce9ff;border-radius:999px;padding:.18rem .55rem;font-size:.7rem;font-weight:700}.game-typing{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);grid-template-areas:"prompt input""letters feedback""note feedback";align-items:center;gap:.45rem 1rem;min-width:0;min-height:0;display:grid}.game-prompt{grid-area:prompt;min-width:0;display:grid}.game-prompt>span{color:#52688d;font-size:.68rem}.game-prompt strong{overflow-wrap:anywhere;color:#102449;font-size:clamp(1.75rem,4.5vw,3.5rem);line-height:1.08}.game-prompt small{color:#567}.game-input-row{grid-area:input;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;min-width:0;display:grid}.game-input-row input{color:#102449;background:#fff;border:3px solid #3458c7;border-radius:14px;width:100%;min-width:0;min-height:54px;padding:.65rem .8rem;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:max(16px,1.3rem);font-weight:700}.game-input-row button{min-height:54px}.game-letter-guide{grid-area:letters;gap:.18rem;min-width:0;display:flex;overflow:hidden}.game-letter-guide span{color:#5b6780;background:#fff;border:1px solid #c2cde2;border-radius:7px;place-items:center;min-width:1.65rem;height:1.8rem;padding:0 .2rem;display:grid}.game-letter-guide span.match{color:#15573f;background:#dff8e9;border-color:#2c9b72}.game-letter-guide span.miss{color:#8c3146;background:#fff0f2;border-color:#d7788b}.game-input-feedback{grid-area:feedback;align-items:center;gap:.55rem;min-height:44px;display:flex}.game-input-feedback p{flex:1;margin:0}.game-input-feedback button{flex:none}.paste-note{color:#8a4b00;grid-area:note;margin:0;font-size:.72rem}.save-status{color:#5c6e88;text-align:center;margin:.3rem 0 0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.68rem}.paused-strip{justify-content:center;align-items:center;gap:1rem;min-height:120px;display:flex}.paused-strip p{font-size:1.15rem;font-weight:700}.game-next-button{margin:.4rem auto;display:block}.game-control-deck .task{background:0 0;border:0;grid-template-columns:minmax(130px,.7fr) minmax(260px,1.3fr);align-items:center;gap:.3rem 1rem;margin:0;padding:0;display:grid}.game-control-deck .task .eyebrow,.game-control-deck .task .target{grid-column:1}.game-control-deck .task .target{margin:0;font-size:clamp(2rem,5vw,3.4rem)}.game-control-deck .task>p:not(.eyebrow):not(.target){grid-column:2;margin:.1rem 0}.game-control-deck .task>button,.game-control-deck .task>.actions{grid-column:2}.game-control-deck .task>.actions a,.game-control-deck .task>.actions button{min-height:42px}.game-virtual-keyboard{z-index:4;pointer-events:none;background:#07122c99;border:1px solid #ffffff24;border-radius:12px;width:min(40vw,420px);padding:.4rem;position:absolute;bottom:1.8rem;right:1rem}.game-virtual-keyboard>div{justify-content:center;gap:.2rem;margin:.17rem;display:flex}.game-virtual-keyboard span{color:#dff8ff;background:#ffffff15;border:1px solid #fff4;border-radius:6px;place-items:center;width:clamp(20px,2.7vw,31px);height:clamp(20px,2.7vw,31px);font-family:system-ui,sans-serif;font-size:.65rem;display:grid}.game-dock{z-index:7;left:max(env(safe-area-inset-left),16px);bottom:calc(max(env(safe-area-inset-bottom),10px) + min(300px,40dvh));gap:.35rem;display:flex;position:absolute}.game-dock button{flex-direction:column;gap:.05rem;display:flex;background:#07122cbd!important;padding:.3rem .55rem!important;box-shadow:inset 0 0 0 1px #ffffff26!important}.game-dock svg{width:21px;height:21px}.game-dock span{font-size:.57rem}.game-overlay-backdrop{z-index:30;padding:max(env(safe-area-inset-top),12px) max(env(safe-area-inset-right),12px) max(env(safe-area-inset-bottom),12px) max(env(safe-area-inset-left),12px);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#06102dcc;place-items:center;display:grid;position:absolute;inset:0}.game-overlay{width:min(760px,100%);min-width:0;height:min(620px,100%);min-height:0;color:var(--game-ink);background:linear-gradient(#fffdf5,#eaf2ff);border:2px solid #a7ddff;border-radius:24px;grid-template-rows:auto minmax(0,1fr);padding:clamp(.75rem,2vw,1.2rem);display:grid;overflow:hidden;box-shadow:0 22px 70px #030819}.game-overlay>header{border:0;border-bottom:1px solid #cbd8ed;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding:0 0 .6rem;display:flex}.game-overlay h2,.game-overlay h3{margin:.1rem 0}.game-overlay .game-icon-button{color:#18345f;background:#dfeaff!important}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:.8rem;padding-top:1rem;display:grid}.mode-card{text-align:center;grid-template-rows:auto auto 1fr;justify-items:center;min-width:0;color:#18345f!important;background:#fff!important;gap:.55rem!important;padding:1rem!important;display:grid!important;box-shadow:0 5px #aebfde!important}.mode-card.selected{outline:4px solid #4c6fff}.mode-card svg{color:#4263eb;width:42px;height:42px}.mode-card span{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.84rem}.overlay-center{text-align:center;align-content:center;place-items:center;gap:1rem;display:grid}.pause-robot{color:#315388;background:#fff;border:5px solid #6d8cc8;border-radius:24px;place-items:center;width:92px;height:78px;font-size:.8rem;display:grid;box-shadow:0 8px #9fb5dc}.overlay-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:.6rem;display:flex}.overlay-actions>*{gap:.35rem}.settings-layout{grid-template-columns:132px minmax(0,1fr);min-height:0;padding-top:.75rem;display:grid}.settings-tabs{border-right:1px solid #cbd8ed;flex-direction:column;gap:.4rem;padding-right:.7rem;display:flex}.settings-tabs button{color:#18345f!important;box-shadow:none!important;background:#e7efff!important}.settings-tabs button[aria-selected=true]{color:#fff!important;background:#4263eb!important}.settings-page{align-content:start;gap:.55rem;min-width:0;padding:.1rem 1rem;display:grid}.settings-page label:not(.check-row){grid-template-columns:minmax(90px,.6fr) minmax(150px,1fr);align-items:center;gap:.8rem;display:grid}.settings-page input[type=range],.settings-page select{color:#18345f;background:#fff;border:2px solid #8ba2cd;border-radius:10px;width:100%;min-width:0;min-height:44px;padding:.35rem}.settings-page .check-row{align-items:center;gap:.55rem;min-height:40px;display:flex}.settings-page input[type=checkbox]{width:22px;height:22px}.settings-page p{margin:.15rem 0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.84rem}.credit-lines{grid-template-columns:1fr;gap:.35rem;display:grid}.credit-lines p{background:#e7efff;border-radius:9px;padding:.45rem}.record-summary{text-align:center;grid-template-columns:repeat(4,minmax(0,1fr));align-content:center;gap:.75rem;display:grid}.record-summary>div{background:#e1edff;border-radius:16px;gap:.25rem;padding:1rem .4rem;display:grid}.record-summary strong{color:#3159d8;font-size:2rem}.record-summary span{font-size:.75rem}.record-summary p,.record-summary>a{grid-column:1/-1;justify-self:center}.help-pages{grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:.75rem;display:grid}.help-pages>div{background:#e8f0ff;border-radius:15px;padding:1rem}.help-pages p{margin:.25rem 0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif}@keyframes reward-pop{0%{opacity:0;transform:translate(-50%,-30%)scale(.8)}55%{opacity:1;transform:translate(-50%,-55%)scale(1.1)}to{opacity:1;transform:translate(-50%,-50%)scale(1)}}@media (max-width:760px){.game-topbar{grid-template-columns:auto minmax(0,1fr) auto}.game-brand small,.game-score span:nth-child(2),.top-actions .game-icon-button span{display:none}.game-score{grid-area:2/1/auto/-1;justify-content:center}.mode-pill{justify-self:stretch}.game-control-deck{max-height:min(330px,48dvh)}.game-typing{grid-template-columns:1fr;grid-template-areas:"prompt""input""letters""feedback""note"}.game-prompt strong{font-size:clamp(1.65rem,7vw,2.7rem)}.game-virtual-keyboard{display:none}.game-dock{bottom:calc(max(env(safe-area-inset-bottom),8px) + min(315px,46dvh))}.mode-grid{grid-template-columns:1fr}.mode-card{text-align:left;grid-template-rows:auto auto;grid-template-columns:auto 1fr;justify-items:start}.mode-card svg{grid-row:1/3}.settings-layout{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.settings-tabs{border-bottom:1px solid #cbd8ed;border-right:0;flex-direction:row;padding:0 0 .5rem}.settings-tabs button{flex:1;padding:.4rem!important}.settings-page{padding:.6rem .2rem}.record-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.help-pages{grid-template-columns:1fr 1fr}}@media (max-width:480px){.game-shell{padding:4px max(env(safe-area-inset-right),4px) max(env(safe-area-inset-bottom),4px) max(env(safe-area-inset-left),4px)}.game-topbar{min-height:50px;padding:.15rem .2rem .3rem}.game-brand .brand-star{width:34px;height:34px}.game-brand strong{font-size:.88rem}.mode-pill{font-size:.7rem;min-height:44px!important;padding:.35rem!important}.game-score{z-index:5;position:absolute;top:56px;right:8px}.game-score span{min-height:30px;padding:.2rem .35rem;font-size:.65rem}.game-score span:nth-child(3){display:none}.game-icon-button{min-width:44px!important;min-height:44px!important;padding:.2rem .35rem!important}.game-icon-button svg{width:20px;height:20px}.game-stage{border-radius:16px}.mission-badge{padding:.3rem .6rem;top:.35rem}.mission-badge strong{font-size:.92rem}.mission-badge small{display:none}.stage-progress{bottom:.4rem;left:.5rem;right:.5rem}.reward-feedback{font-size:.95rem;top:36%}.game-control-deck{border-radius:15px;max-height:min(320px,52dvh);padding:.45rem .55rem}.start-panel,.result-panel{grid-template-columns:1fr;gap:.5rem;min-height:0}.start-panel p,.result-panel p{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.78rem}.game-start-button{min-width:0!important;min-height:48px!important}.mission-meta{margin-bottom:.2rem}.mission-meta span{padding:.12rem .35rem;font-size:.6rem}.game-prompt strong{font-size:clamp(1.4rem,7vw,2rem)}.game-input-row input{min-height:48px;padding:.45rem .6rem;font-size:16px}.game-input-row button{min-height:48px}.game-letter-guide span{min-width:1.35rem;height:1.55rem;font-size:.72rem}.game-input-feedback{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.74rem}.game-input-feedback button{min-height:44px;padding:.35rem .55rem}.save-status{display:none}.game-dock{left:8px;bottom:calc(max(env(safe-area-inset-bottom),6px) + min(305px,50dvh));gap:.2rem}.game-dock button{min-width:44px!important;min-height:44px!important;padding:.2rem .4rem!important}.game-dock span{display:none}.game-control-deck .task{grid-template-columns:.55fr 1.45fr;gap:.15rem .5rem}.game-control-deck .task .eyebrow{font-size:.65rem}.game-control-deck .task .target{font-size:1.8rem}.game-control-deck .task>p:not(.eyebrow):not(.target):last-child{display:none}.game-control-deck .task>.actions{gap:.25rem}.game-control-deck .task>.actions a,.game-control-deck .task>.actions button{min-height:44px;padding:.25rem .45rem;font-size:.68rem}.game-overlay-backdrop{padding:5px}.game-overlay{border-radius:17px;height:100%;padding:.65rem}.game-overlay h2{font-size:1.15rem}.mode-grid{gap:.45rem;padding-top:.5rem}.mode-card{padding:.55rem!important}.mode-card svg{width:30px;height:30px}.mode-card span{font-size:.7rem}.settings-tabs{gap:.15rem}.settings-tabs button{font-size:.7rem;min-height:44px!important}.settings-page{gap:.3rem}.settings-page h3{font-size:1rem}.settings-page label:not(.check-row){grid-template-columns:85px minmax(0,1fr);font-size:.74rem}.settings-page input[type=range],.settings-page select{min-height:44px}.settings-page .check-row{min-height:44px;font-size:.74rem}.record-summary>div{padding:.55rem}.record-summary strong{font-size:1.35rem}.help-pages{gap:.35rem}.help-pages>div{padding:.55rem}.help-pages h3{font-size:.86rem}.help-pages p{font-size:.7rem}}@media (max-width:400px){.game-brand>span:last-child{display:none}.game-brand{padding:.1rem!important}.mode-pill{justify-self:stretch}}@media (max-height:700px){.game-topbar{min-height:48px}.game-control-deck{max-height:46dvh;padding-top:.4rem}.mission-badge{top:.3rem}.game-prompt small,.game-letter-guide{display:none}.game-dock{bottom:calc(max(env(safe-area-inset-bottom),5px) + 44dvh)}.game-control-deck .task>p:not(.eyebrow):not(.target):first-of-type{display:none}.game-overlay{height:100%}.settings-page p{font-size:.72rem}}@media (max-height:430px) and (orientation:landscape){.game-shell{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(360px,46vw)}.game-topbar{grid-column:1/-1}.game-stage{grid-area:2/1}.game-control-deck{grid-area:2/2;align-self:stretch;max-height:none;margin:0 0 0 .45rem}.game-dock{bottom:12px;left:12px}.game-typing{grid-template-columns:1fr;grid-template-areas:"prompt""input""feedback"}.game-letter-guide,.game-prompt small,.save-status{display:none}.game-prompt strong{font-size:clamp(1.3rem,4vw,2rem)}.start-panel,.result-panel,.game-control-deck .task{grid-template-columns:1fr}.game-control-deck .task>*{grid-column:1!important}.game-control-deck .task>p:last-child{display:none}.game-overlay{width:min(860px,100%)}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-layout{grid-template-rows:1fr;grid-template-columns:120px minmax(0,1fr)}.settings-tabs{border-bottom:0;border-right:1px solid #cbd8ed;flex-direction:column}.settings-page{grid-template-columns:repeat(2,minmax(0,1fr));align-content:center}.settings-page h3,.settings-page p,.settings-page .overlay-actions,.settings-page .credit-lines{grid-column:1/-1}.settings-page label:not(.check-row){grid-template-columns:70px minmax(0,1fr)}.help-pages{grid-template-columns:repeat(4,minmax(0,1fr))}}.game-shell.keyboard-open .game-stage{min-height:70px}.game-shell.keyboard-open .game-virtual-keyboard,.game-shell.keyboard-open .game-letter-guide{display:none}.game-shell.keyboard-open .game-control-deck{max-height:none}.game-shell.keyboard-open .mission-badge{top:.25rem}.game-shell.keyboard-open .mission-badge small,.game-shell.keyboard-open .reward-feedback{display:none}.fallback-world.scene-moving .fallback-stars{animation:4s ease-in-out infinite game-stars-glow}.fallback-world.scene-moving .fallback-robot{animation:2.4s ease-in-out infinite game-robot-idle}@media (max-height:430px) and (orientation:landscape){.mission-badge{max-width:58%;padding:.3rem .5rem;left:auto;right:.35rem;transform:none}.mission-badge strong{font-size:.9rem}}@keyframes game-stars-glow{50%{opacity:.45;transform:translateY(5px)}}@keyframes game-robot-idle{50%{transform:translateY(-5px)}}@media (prefers-reduced-motion:reduce){.game-shell *{scroll-behavior:auto!important}.reward-feedback,.stage-progress span,.fallback-robot{transition:none!important;animation:none!important}}.game-stage:has(.game-canvas){background:#589bd7;border:3px solid #c1edff;box-shadow:inset 0 0 0 3px #ffffff24,0 9px #274e8c,0 16px 26px #071d4a55}.game-control-deck{background:linear-gradient(#fffdf5,#fff0d9);border:3px solid #b9e8ff;box-shadow:0 -5px #264e91,0 12px 24px #071d4a55}.mission-badge{color:#233c65;background:#fff9de;border:3px solid #284b80;box-shadow:5px 5px #244b7b88}.mission-badge span{color:#b15180;font-weight:800}.mission-badge small{color:#73523b}.reward-feedback{color:#24406c;text-align:center;max-width:min(80%,400px);min-height:0;text-shadow:none;background:#fff7dc;border:3px solid #284b80;border-radius:18px 18px 18px 5px;padding:.45rem .85rem;font-size:clamp(.95rem,2.7vw,1.35rem);font-weight:900;box-shadow:5px 5px #18396688}.reward-feedback:empty{display:none}.reward-feedback.retry{background:#ecfff3}.reward-feedback.delivery,.reward-feedback.complete{background:#ffe894}.reward-feedback:not(:empty):after{background:inherit;content:"";border-bottom:3px solid #284b80;border-right:3px solid #284b80;width:16px;height:16px;position:absolute;bottom:-13px;left:20px;transform:rotate(45deg)}.reward-feedback.delivery,.reward-feedback.complete{animation:.5s cubic-bezier(.2,1.3,.4,1) comic-pop}.stage-progress{background:#2d5b85;border:2px solid #fff4ce;height:11px}.stage-progress span{background:repeating-linear-gradient(110deg,#ffe783 0 18px,#ffbd73 18px 29px)}.game-start-button{color:#213d6a!important;background:#ffcf64!important;border-color:#8c5e16!important;box-shadow:0 6px #c98731,0 10px 17px #17375d55!important}.game-kicker{color:#bb5681}.fallback-stars{color:#fff9c8}.fallback-sun{background:#ffe183;border:4px solid #f9b84e;border-radius:50%;width:65px;height:65px;position:absolute;top:12%;right:13%;box-shadow:0 0 0 9px #ffe18355}.fallback-sun:before{color:#654152;letter-spacing:10px;content:"••";font-size:17px;position:absolute;top:20px;left:17px}.fallback-sun span{border-bottom:3px solid #654152;border-radius:50%;width:16px;height:10px;position:absolute;top:32px;left:25px}.fallback-cloud{background:#ecf9ff;border-radius:50px;width:94px;height:28px;position:absolute;top:21%;left:13%;box-shadow:22px -13px 0 3px #ecf9ff,-17px -8px 0 2px #ecf9ff}.fallback-road{background:linear-gradient(#9ee3a0,#67c995);box-shadow:inset 0 18px #c1efad}.fallback-robot{background:#fff9e8;border:3px solid #5276b5;box-shadow:0 6px #7aa2d8}.fallback-face{color:#1c3b62;letter-spacing:5px;font-size:15px;line-height:1}.fallback-face i{border-bottom:2px solid #1c3b62;border-radius:50%;width:15px;height:7px;margin:1px auto 0;display:block}.fallback-robot strong{font-size:.48rem}.fallback-world.scene-moving .fallback-sun{animation:3s ease-in-out infinite comic-sun-bob}.fallback-world.scene-moving .fallback-cloud{animation:5s ease-in-out infinite alternate comic-cloud-sway}.game-shell:has(.fallback-world) .game-dock{top:clamp(90px,14dvh,128px);bottom:auto}.game-shell.keyboard-open:has(.fallback-world) .game-dock{display:none}@keyframes comic-pop{0%{opacity:0;transform:translate(-50%,-35%)scale(.7)}65%{opacity:1;transform:translate(-50%,-55%)scale(1.12)}to{opacity:1;transform:translate(-50%,-50%)scale(1)}}@keyframes comic-sun-bob{50%{transform:rotate(9deg)translateY(-6px)}}@keyframes comic-cloud-sway{to{transform:translate(18px)}}@media (prefers-reduced-motion:reduce){.fallback-sun,.fallback-cloud,.reward-feedback{animation:none!important}}.game-sky{z-index:0;pointer-events:none;background:#8acfe7 url(/assets/tajafun/backgrounds/morning.svg) 50%/cover no-repeat;position:absolute;inset:0}.game-sky:before,.game-sky:after{content:"";opacity:0;background-position:50%;background-size:cover;transition:opacity 1.6s;position:absolute;inset:0}.game-sky:before{background-image:url(/assets/tajafun/backgrounds/afternoon.svg)}.game-sky-1:before,.game-sky-2:after{opacity:1}.game-canvas,.fallback-world{z-index:1}.game-stage:has(.game-canvas){background:#8acfe7}.fallback-world{background:0 0}.robot-cheer{z-index:2;color:#25466f;pointer-events:none;background:#fffbe4;border:2px solid #345281;border-radius:15px 15px 15px 3px;max-width:min(30%,230px);padding:.5rem .7rem;font-size:clamp(.68rem,1.25vw,.95rem);font-weight:800;position:absolute;top:45%;left:3%;box-shadow:4px 4px #284b8070}.stage-progress-label{z-index:4;color:#fffde9;text-shadow:0 1px 4px #183966;justify-content:space-between;align-items:center;gap:.3rem;font-size:.67rem;display:flex;position:absolute;bottom:1.55rem;left:1rem;right:1rem}.stage-progress-label strong{font-size:.75rem}.stage-progress{height:15px;box-shadow:0 2px #153c66}.stage-progress span{box-shadow:inset 0 2px #fff7ceaa}.game-shell .game-submit-button{color:#49381d;text-shadow:0 1px #fff7d4;background:#ffc766 url(/assets/tajafun/ui/confirm-button.svg) 50%/100% 100% no-repeat;border:0;min-width:98px;min-height:57px;font-size:1.04rem;font-weight:900;box-shadow:0 5px #8f542a,0 9px 15px #17375d40}.game-shell .game-submit-button:hover{filter:brightness(1.06)saturate(1.1)}.game-shell .game-submit-button:active{box-shadow:0 2px #8f542a}.game-shell .game-skip-button{color:#244168;background:#f4f7ff;border:2px solid #9baed1;min-height:44px;padding:.35rem .65rem;font-size:.75rem;box-shadow:0 3px #b6c5de}.game-auto-next{text-align:center;color:#31568c;margin:.25rem;font-size:.8rem}.pause-layout{gap:.6rem}.pause-layout>p{margin:0}.pause-story{text-align:left;background:linear-gradient(115deg,#fffae2,#e7f5ff);border:3px solid #7ba6d6;border-radius:20px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;width:min(620px,100%);min-height:105px;padding:.7rem;display:grid;overflow:hidden;box-shadow:0 5px #9ab9dc}.pause-story-star{color:#ffc44d;filter:drop-shadow(1px 2px #9a6c37);font-size:2rem}.pause-story-copy{min-width:0;animation:.5s both pause-story-enter}.pause-story-copy strong{color:#9c467b}.pause-story-copy p{margin:.2rem 0 0;font-size:.88rem}.pause-story button{white-space:nowrap;font-size:.72rem}@keyframes pause-story-enter{0%{opacity:0;transform:translate(22px)}to{opacity:1;transform:translate(0)}}.credits-layout{grid-template-rows:auto minmax(0,1fr);gap:.7rem;min-height:0;padding-top:.8rem;display:grid}.credits-tabs{gap:.4rem;display:flex}.credits-tabs button{flex:1;color:#18345f!important;box-shadow:none!important;background:#e7efff!important}.credits-tabs button[aria-selected=true]{color:#fff!important;background:#4263eb!important}.credits-content{background:#ecf3ff;border-radius:15px;align-content:center;justify-items:start;gap:.45rem;min-height:0;padding:.8rem;display:grid}.credits-content h3,.credits-content p{margin:0}.credits-content p{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.86rem}.credits-content a{color:#1d50b8;text-decoration:underline}.credits-content button{justify-self:end;margin-top:.3rem}@media (max-width:480px){.robot-cheer{max-width:38%;padding:.35rem;font-size:.6rem;top:48%;left:2%}.stage-progress-label{font-size:.55rem;bottom:1.25rem;left:.5rem;right:.5rem}.stage-progress-label strong{font-size:.6rem}.game-shell .game-submit-button{min-width:80px;min-height:49px;font-size:.9rem}.pause-robot{border-width:3px;width:60px;height:52px;font-size:.6rem}.pause-story{grid-template-columns:auto 1fr;gap:.3rem;min-height:85px;padding:.4rem}.pause-story-star{font-size:1.2rem}.pause-story-copy p{font-size:.7rem}.pause-story button{grid-column:1/-1;justify-self:end;min-height:36px;padding:.2rem .5rem}.credits-content{padding:.5rem}.credits-content p{font-size:.7rem}}@media (max-height:430px) and (orientation:landscape){.robot-cheer{font-size:.65rem;top:53%;left:2%}.stage-progress-label{bottom:1.2rem}.pause-layout{text-align:left;grid-template-columns:70px minmax(0,1fr);align-content:center;gap:.25rem .6rem}.pause-layout>.pause-robot{border-width:3px;grid-row:1/3;width:58px;height:50px}.pause-layout>p{font-size:.75rem}.pause-story{grid-column:2;min-height:65px;padding:.35rem}.pause-story-copy p{font-size:.7rem}.pause-story button{min-height:36px}.pause-layout>.overlay-actions{grid-column:1/-1}.pause-layout>.overlay-actions button{min-height:38px}.credits-layout{grid-template-rows:1fr;grid-template-columns:110px minmax(0,1fr)}.credits-tabs{flex-direction:column}.credits-content{align-content:center}.credits-content p{font-size:.72rem}}@media (prefers-reduced-motion:reduce){.game-sky:before,.game-sky:after,.pause-story-copy{transition:none;animation:none}}.game-shell.readable-font .game-sky:before,.game-shell.readable-font .game-sky:after{transition-duration:.8s}.game-shell.cursor-idle,.game-shell.cursor-idle *{cursor:none!important}.game-input-row input:not(:focus){caret-color:#0000}.game-shell.reduced-motion .game-sky:before,.game-shell.reduced-motion .game-sky:after,.game-shell.reduced-motion .stage-progress span{transition:none!important}.game-shell.reduced-motion .pause-story-copy,.game-shell.reduced-motion .reward-feedback{animation:none!important}.menu-layout{grid-template-rows:minmax(0,1fr) auto;gap:.6rem;min-height:0;display:grid}.menu-layout .mode-grid{min-height:0}.menu-topic-action{justify-self:stretch;color:#304871!important;background:#ffda76!important;box-shadow:0 4px #ad8644!important}.topics-layout{grid-template-rows:auto minmax(0,1fr) auto;gap:.55rem;min-height:0;padding-top:.7rem;display:grid}.topic-tabs{gap:.3rem;display:flex}.topic-tabs button{flex:1;color:#254069!important;box-shadow:none!important;background:#e6eeff!important}.topic-tabs button[aria-selected=true]{color:#fff!important;background:#4163e9!important}.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(70px,1fr);gap:.5rem;min-height:0;display:grid}.topic-card{text-align:center;align-content:center;justify-items:center;color:#254069!important;background:#fffaf0!important;border:2px solid #9dc5ec!important;gap:.2rem!important;padding:.45rem!important;display:grid!important;box-shadow:0 4px #a9bfdb!important}.topic-card.selected{outline:3px solid #526fe7}.topic-card strong{font-size:.88rem}.topic-card span{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.69rem}.topics-layout>p{text-align:center;margin:0;font-size:.72rem}@media (max-height:430px) and (orientation:landscape){.settings-page p{line-height:1.15}}.game-typing:has(.game-prompt strong[aria-label^=문제\:]) .game-prompt strong{font-size:clamp(1rem,2.25vw,1.4rem)}@media (max-width:760px){.menu-layout .mode-grid{padding-top:.2rem}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:480px){.topic-tabs button{font-size:.7rem;padding:.3rem!important}.topic-grid{gap:.3rem}.topic-card{min-height:57px!important;padding:.25rem!important}.topic-card strong{font-size:.77rem}.topic-card span{font-size:.62rem}.topics-layout{gap:.35rem}.game-typing:has(.game-prompt strong[aria-label^=문제\:]) .game-prompt strong{font-size:1rem}}@media (max-height:430px) and (orientation:landscape){.menu-layout .mode-grid{padding-top:0}.menu-topic-action{min-height:39px!important}.topics-layout{gap:.25rem;padding-top:.3rem}.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(57px,1fr)}.topic-card{min-height:48px!important}.topic-card strong{font-size:.7rem}.topic-card span{font-size:.57rem}.topics-layout>p{font-size:.6rem}}.dictionary-layout{align-content:center;justify-items:start;gap:.7rem;min-height:0;padding:1rem;display:grid}.dictionary-layout h3,.dictionary-layout p{margin:0}.dictionary-layout h3{color:#274d88;font-size:clamp(1.2rem,3vw,2rem)}.dictionary-layout p{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.88rem}.dictionary-layout>.button,.dictionary-layout>button{justify-self:start}.dictionary-layout>.button{background:#f5f8ff}.game-dock{gap:.25rem}@media (max-width:480px){.dictionary-layout{gap:.45rem;padding:.5rem}.dictionary-layout p{font-size:.72rem}.game-dock{gap:.1rem}.game-dock button{min-width:44px;padding:.2rem!important}}.game-shell{background:linear-gradient(160deg,#5fa9df 0%,#a7dafa 52%,#f6e3bf 100%)}.game-topbar{background:linear-gradient(#3d85c6,#2c68ad);border:2px solid #bce8ff;border-radius:18px;box-shadow:0 5px #396ca3,0 10px 20px #32609155}.game-score span{background:#376faedb}.game-virtual-keyboard{background:#3776b6dc}.game-overlay-backdrop{background:#4482b6b5}.game-sky{background:#8acfe7 url(/assets/tajafun/backgrounds/world-postcard.webp) 50%/cover no-repeat}.game-sky:after{background-image:none}.game-sky-2{background-image:url(/assets/tajafun/backgrounds/star-voyage.webp)}.game-shell .game-dock{left:max(env(safe-area-inset-left),9px);gap:.25rem}.game-shell .game-dock button{color:#284b83;border:0;flex-direction:column;justify-content:center;align-items:center;gap:.02rem;min-width:76px;min-height:62px;display:flex;background:#dbedff url(/assets/tajafun/ui/dock-button.svg) 50%/100% 100% no-repeat!important;padding:.2rem .4rem!important;box-shadow:0 4px #376da7,0 7px 12px #244d7970!important}.game-shell .game-dock svg{stroke-width:2.4px;width:25px;height:25px}.game-shell .game-dock span{font-size:.65rem;font-weight:900;line-height:1.1;display:block}.game-overlay.mode-overlay{background:linear-gradient(#fffdf0d9,#eaf7fff0),url(/assets/tajafun/backgrounds/world-postcard.webp) 50%/cover no-repeat;width:min(860px,100%)}.menu-layout{grid-template-rows:auto minmax(0,1fr) auto;gap:.55rem;padding-top:.55rem}.mode-hero{text-align:left;background:linear-gradient(115deg,#fff8dcee,#e6f7ffec);border:2px solid #ffd277;border-radius:18px;justify-content:center;align-items:center;gap:.75rem;min-height:85px;padding:.5rem 1rem;display:flex;box-shadow:0 5px #8bb8d6}.mode-hero svg{color:#9c612f;fill:#ffd978;background:#ffe28a;border-radius:50%;flex:none;width:48px;height:48px;padding:.35rem}.mode-hero strong{color:#264879;font-size:clamp(1rem,2vw,1.35rem);display:block}.mode-hero p{margin:.25rem 0 0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.82rem}.mode-overlay .mode-grid{gap:.6rem;padding-top:.1rem}.mode-overlay .mode-card{border-radius:18px;grid-template-rows:auto auto 1fr;align-content:center;justify-items:center;color:#264879!important;background:linear-gradient(#ffffff30,#fffef2f2 67%),url(/assets/tajafun/backgrounds/world-postcard.webp) 0/auto 100% no-repeat!important;border:3px solid #fff!important;gap:.3rem!important;padding:.7rem!important;box-shadow:0 5px #6797bc,0 9px 16px #436e9255!important}.mode-overlay .mode-card-words{background-position:50%,50%!important}.mode-overlay .mode-card-sentences{background-image:linear-gradient(#ffffff25,#fffef2f2 67%),url(/assets/tajafun/backgrounds/star-voyage.webp)!important;background-position:50%,100%!important}.mode-overlay .mode-card svg{color:#264879;filter:drop-shadow(2px 3px 1px #5b709177);background:#ffe398;border:3px solid #fff;border-radius:17px;width:56px;height:56px;padding:.65rem}.mode-overlay .mode-card strong{font-size:1.08rem}.mode-overlay .mode-card span{font-size:.8rem;font-weight:700}.mode-overlay .mode-card.selected{outline:4px solid #ffbc52}.mode-overlay .menu-topic-action{font-size:.9rem}@media (max-width:760px){.mode-hero{min-height:70px}.mode-overlay .mode-card{text-align:left;grid-template-rows:auto auto;grid-template-columns:auto minmax(0,1fr);align-content:center;justify-items:start;min-height:88px;padding:.4rem .65rem!important}.mode-overlay .mode-card svg{grid-row:1/3;width:50px;height:50px}.mode-overlay .mode-card strong{font-size:.95rem}.mode-overlay .mode-card span{font-size:.7rem}}@media (max-width:480px){.game-shell .game-dock{gap:.05rem;left:6px}.game-shell .game-dock button{min-width:69px;min-height:55px;padding:.15rem .2rem!important}.game-shell .game-dock svg{width:21px;height:21px}.game-shell .game-dock span{font-size:.57rem;display:block}.mode-hero{min-height:67px;padding:.3rem .5rem}.mode-hero svg{width:38px;height:38px}.mode-hero strong{font-size:.9rem}.mode-hero p{font-size:.66rem}.mode-overlay .mode-card{min-height:76px;padding:.25rem .45rem!important}.mode-overlay .mode-card svg{width:42px;height:42px;padding:.4rem}.mode-overlay .menu-topic-action{font-size:.72rem;min-height:42px!important}}@media (max-height:430px) and (orientation:landscape){.game-shell .game-dock{bottom:8px}.game-shell .game-dock button{min-width:67px;min-height:53px}.menu-layout{gap:.2rem;padding-top:.2rem}.mode-hero{min-height:51px;padding:.2rem .5rem}.mode-hero svg{width:37px;height:37px}.mode-hero strong{font-size:.92rem}.mode-hero p{font-size:.65rem}.mode-overlay .mode-grid{gap:.3rem}.mode-overlay .mode-card{min-height:125px;padding:.35rem!important}.mode-overlay .mode-card svg{width:40px;height:40px}.mode-overlay .mode-card strong{font-size:.82rem}.mode-overlay .mode-card span{font-size:.62rem}.mode-overlay .menu-topic-action{min-height:38px!important}}.game-shell .game-dock button{width:84px;min-width:84px!important;min-height:68px!important}.game-shell .game-dock svg{width:29px;height:29px}.game-shell .game-dock span{font-size:.78rem}@media (max-width:480px){.game-shell .game-dock button{width:74px;min-width:74px!important;min-height:62px!important}.game-shell .game-dock svg{width:24px;height:24px}.game-shell .game-dock span{font-size:.69rem}}@media (max-height:430px) and (orientation:landscape){.game-shell .game-dock button{width:70px;min-width:70px!important;min-height:56px!important}.game-shell .game-dock svg{width:23px;height:23px}.game-shell .game-dock span{font-size:.68rem}}.game-shell .game-start-button{text-shadow:0 1px #fff8d7;border-radius:18px;color:#453718!important;background:linear-gradient(#fff0af 0%,#ffd37a 52%,#eda54e 100%)!important;border:1px solid #ffe6aa!important;box-shadow:0 3px #b97739,0 8px 16px #2a4b7760!important}.game-shell .game-submit-button{border:0;border-radius:18px;box-shadow:0 3px #b97739,0 8px 16px #2a4b7755!important}.game-shell .game-dock button{border-radius:17px;box-shadow:0 2px #638fc0,0 7px 13px #31598558!important}.game-shell .mode-card{border:2px solid #ffffffd6!important;box-shadow:0 3px #79a5c7,0 8px 16px #436e9238!important}.game-shell .game-start-button:active,.game-shell .game-submit-button:active,.game-shell .game-dock button:active{transform:translateY(2px);box-shadow:0 1px #8b785a,0 4px 8px #2a4b7740!important}@media (max-height:430px) and (orientation:landscape){.settings-page{align-content:start;gap:.18rem;padding:.05rem .45rem}.settings-page p{margin:0;font-size:.68rem;line-height:1.15}.settings-page h3{margin:0;font-size:.9rem}.settings-page .overlay-actions>*{min-height:39px;padding:.35rem .55rem}}.site-footer{color:#f7fbff;background:#1e477a;border:0;border-top:1px solid #8ebde277;justify-content:space-between;align-items:center;gap:.5rem;min-height:40px;margin:0;padding:.15rem .7rem;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.71rem;display:flex}.site-footer nav{justify-content:flex-end;align-items:center;gap:clamp(.3rem,1.6vw,1rem);min-width:0;display:flex}.site-footer a{min-height:36px;color:inherit;white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;padding:0 .25rem;text-decoration:none;display:inline-flex}.site-footer a:hover{text-decoration:underline}.site-footer a:focus-visible{outline-offset:1px;outline:3px solid #ffda70}.site-footer-brand{white-space:nowrap;font-weight:800}.game-shell{grid-template-rows:auto minmax(0,1fr) auto 40px}.game-shell>.site-footer{z-index:8;border-radius:9px 9px 0 0;grid-column:1/-1;margin:0 -.3rem -.1rem}.game-shell .game-dock{bottom:calc(max(env(safe-area-inset-bottom),10px) + min(300px,40dvh) + 40px)}.game-shell .life-pips{color:#da416d;background:#fff2f2e5;gap:.05rem}.life-pips svg{stroke-width:2.3px;width:17px;height:17px}.life-pips .filled{fill:#f56b8c}.life-pips .empty{fill:#fff;opacity:.48}.keyboard-guide-board{z-index:5;aspect-ratio:2.75;pointer-events:none;color:#173d6a;background:linear-gradient(160deg,#ffffff9e,#cdeeff80);border:2px solid #e9f8ffb5;border-radius:19px;width:min(35vw,370px);font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;position:absolute;bottom:42px;right:clamp(.7rem,2vw,2rem);box-shadow:0 6px 16px #245a8b55}.keyboard-guide-title{justify-content:space-between;gap:.3rem;font-size:clamp(.52rem,.9vw,.69rem);display:flex;position:absolute;top:3%;left:5%;right:5%}.keyboard-guide-title span{font-weight:700}.keyboard-guide-key{color:#21486f;background:#f5fcffbd;border:1px solid #f9ffffcf;border-radius:5px;place-items:center;width:9%;height:21%;font-size:clamp(.6rem,1vw,.83rem);font-weight:800;display:grid;position:absolute;box-shadow:0 2px #6c9ab8a1}.keyboard-guide-key.home-key:after{content:"";background:#e88b8d;border-radius:2px;width:16%;height:2px;position:absolute;bottom:2px;left:42%}.keyboard-guide-key.active{color:#5b3e1d;background:#ffdf87;box-shadow:0 2px #b88e46}.keyboard-runner{z-index:2;filter:drop-shadow(0 3px 3px #20487870);width:13%;height:auto;transition:left .19s ease-out,top .19s ease-out;position:absolute;transform:translate(-50%,-86%)}.keyboard-guide-board.still .keyboard-runner{transition:none}.keyboard-hand-hint{justify-content:space-between;font-size:clamp(.46rem,.8vw,.6rem);font-weight:800;display:flex;position:absolute;bottom:2%;left:5%;right:5%}.keyboard-hand-hint span:first-child{color:#9e4771}.keyboard-hand-hint span:last-child{color:#315aad}.healing-item{z-index:6;color:#e44673;background:#fff6f7d9;border-radius:50%;width:45px;height:45px;padding:7px;position:absolute;top:43%;right:23%;box-shadow:0 4px 12px #234f8c77}.healing-item svg{fill:#f56b8c;width:100%;height:100%}.game-shell.reduced-motion .healing-item{animation:none}.game-shell .game-input-row input{color:#183b65;background:#f9fdff url(/assets/tajafun/ui/input-sheen.svg) 50%/100% 100% no-repeat;border:2px solid #7ca7d7;border-radius:18px;box-shadow:inset 0 2px 7px #8db4d333,0 3px #9fbfdb,0 8px 15px #6483a333}.game-shell .game-input-row input::placeholder{color:#607d9e;font-weight:600}.game-shell .game-input-row input:focus{outline-offset:2px;border-color:#3d76ce;outline:3px solid #ffe18e;box-shadow:inset 0 2px 6px #8db4d333,0 3px #5e8bc6,0 8px 17px #4971a955}.game-overlay:has(.settings-layout) .settings-page{background:#ffffffb8;border-radius:15px}@media (max-width:760px){.keyboard-guide-board{width:min(67vw,270px);bottom:112px;right:8px}.keyboard-guide-title{font-size:.59rem}.keyboard-guide-key{font-size:.65rem}.keyboard-hand-hint{font-size:.5rem}}@media (max-width:480px){.game-shell{grid-template-rows:auto minmax(0,1fr) auto 44px}.game-shell>.site-footer{min-height:44px;padding:0 .15rem;font-size:.6rem}.game-shell>.site-footer nav{gap:0}.game-shell>.site-footer a{min-height:44px;padding:0 .22rem}.game-shell .game-dock{bottom:calc(max(env(safe-area-inset-bottom),6px) + min(305px,50dvh) + 44px)}.game-shell .life-pips svg{width:13px;height:13px}.keyboard-guide-board{width:min(66vw,238px);bottom:105px}.keyboard-guide-title{font-size:.51rem}.keyboard-guide-key{font-size:.57rem}}@media (max-height:430px) and (orientation:landscape){.game-shell{grid-template-rows:auto minmax(0,1fr) 36px}.game-shell .game-stage,.game-shell .game-control-deck{grid-row:2}.game-shell>.site-footer{grid-row:3;min-height:36px}.game-shell>.site-footer a{min-height:36px}.game-shell .game-dock{bottom:44px}.keyboard-guide-board{width:min(31vw,260px);bottom:40px}.keyboard-guide-title{font-size:.55rem}.keyboard-guide-key{font-size:.6rem}}.game-shell.keyboard-open .keyboard-guide-board{display:none}@media (max-width:480px) and (orientation:portrait){.game-shell .game-dock{grid-template-columns:repeat(2,74px);gap:2px;display:grid}.keyboard-guide-board{bottom:130px}}@media (max-width:380px) and (orientation:portrait){.keyboard-guide-board{width:210px;bottom:132px;right:5px}}.game-shell>.site-footer{font-size:.69rem}@media (max-width:480px){.game-shell>.site-footer{font-size:.65rem}}.game-overlay:has(.settings-layout){background:linear-gradient(#fffdf0d3,#e8f5ffc4),url(/assets/tajafun/backgrounds/world-postcard.webp) 50%/cover no-repeat}.game-overlay:has(.settings-layout) .settings-page{background:linear-gradient(#fffffff2 0%,#ffffffdf 58%,#ffffff82 100%)}.game-shell .game-overlay-backdrop{bottom:40px}@media (max-width:480px){.game-shell .game-overlay-backdrop{bottom:44px}}@media (max-height:430px) and (orientation:landscape){.game-shell .game-overlay-backdrop{bottom:36px}.settings-layout{padding-top:.2rem}.settings-tabs{gap:0;padding-bottom:0}}.content-file-actions{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:.5rem;display:grid}.game-overlay .asset-file-button{color:#20406d;cursor:pointer;background:#d7ebff url(/assets/tajafun/ui/dock-button.svg) 50%/100% 100% no-repeat;border:0;border-radius:14px;justify-content:center;align-items:center;gap:.35rem;min-width:0;min-height:52px;padding:.4rem .55rem;font-size:.84rem;font-weight:900;text-decoration:none;display:flex;box-shadow:0 3px #7198c4,0 7px 14px #25436a35}.game-overlay .asset-file-button svg{flex:none;width:21px;height:21px}.game-overlay .asset-file-button:hover{filter:brightness(1.05)}.game-overlay .asset-file-button:focus-visible,.game-overlay .asset-file-button:focus-within{outline-offset:2px;outline:3px solid #ffb930}.game-overlay .asset-file-button:active{transform:translateY(2px);box-shadow:0 1px #7198c4}.content-file-actions .sr-only{position:absolute!important}@media (max-width:480px){.content-file-actions{gap:.25rem}.game-overlay .asset-file-button{min-height:48px;padding:.25rem;font-size:.69rem}.game-overlay .asset-file-button svg{width:17px;height:17px}}.asset-file-copy{justify-items:start;line-height:1.1;display:grid}.asset-file-copy strong{font-size:inherit}.asset-file-copy small{font-size:.65em;font-weight:700}.game-overlay .asset-file-button{display:flex!important}.asset-file-button #content-pack-file{border:0!important;max-width:1px!important;min-height:0!important;padding:0!important}.game-topbar{isolation:isolate;background:linear-gradient(#2589c4e8,#2f6fb5f0),url(/assets/tajafun/backgrounds/world-postcard.webp) 50% 30%/cover;border-color:#d8f4ff;position:relative;overflow:hidden;box-shadow:0 4px #346aa1,0 9px 18px #275b8b4d}.game-topbar>:not(.header-cloud):not(.header-night):not(.header-stars){z-index:2;position:relative}.header-cloud,.header-night,.header-stars{z-index:0;pointer-events:none;position:absolute;inset:0}.header-cloud{opacity:.8;background:url(/assets/tajafun/ui/cloud-puff.svg) 50%/contain no-repeat;width:190px;height:75px;animation:32s linear infinite header-cloud-drift;inset:auto auto -13px -190px}.header-cloud-far{opacity:.58;width:130px;height:52px;animation-duration:46s;animation-delay:-19s;bottom:7px}.header-night{opacity:0;background:linear-gradient(#17255bd6,#224380a8);animation:38s ease-in-out infinite header-nightfall}.header-stars{opacity:0;background:radial-gradient(circle at 11% 29%,#fff7c0 0 2px,#0000 3px),radial-gradient(circle at 31% 67%,#fff 0 1.5px,#0000 2.5px),radial-gradient(circle at 59% 22%,#fff7c0 0 2px,#0000 3px),radial-gradient(circle at 84% 69%,#fff 0 1.5px,#0000 2.5px);animation:38s ease-in-out infinite header-starlight}.game-brand{min-width:0}.brand-mascot{filter:drop-shadow(0 3px 1px #1d477d80);background:url(/assets/tajafun/ui/keyboard-robot.svg) 50%/contain no-repeat;flex:none;width:44px;height:47px;animation:2.8s ease-in-out infinite brand-hop;display:block}.brand-title{min-width:0;display:grid}.game-brand .brand-title strong{color:#fff7b1;text-shadow:2px 2px #21467a,0 0 8px #fff8d080;white-space:nowrap;font-size:clamp(1rem,1.9vw,1.35rem);line-height:1.05}.game-brand .brand-title small{color:#fff;letter-spacing:.12em;text-shadow:1px 1px #275186}@keyframes header-cloud-drift{to{transform:translate(calc(100vw + 210px))}}@keyframes header-nightfall{0%,38%,to{opacity:0}55%,82%{opacity:1}}@keyframes header-starlight{0%,45%,to{opacity:0}60%,78%{opacity:1}}@keyframes brand-hop{0%,77%,to{transform:translateY(0)rotate(0)}84%{transform:translateY(-5px)rotate(-8deg)}92%{transform:translateY(0)rotate(7deg)}}.game-shell.reduced-motion .header-cloud,.game-shell.reduced-motion .header-night,.game-shell.reduced-motion .header-stars,.game-shell.reduced-motion .brand-mascot,.game-shell.game-paused .header-cloud,.game-shell.game-paused .header-night,.game-shell.game-paused .header-stars,.game-shell.game-paused .brand-mascot{animation-play-state:paused}.game-shell.reduced-motion .header-night,.game-shell.reduced-motion .header-stars{opacity:0}@media (prefers-reduced-motion:reduce){.header-cloud,.header-night,.header-stars,.brand-mascot{animation:none!important}.header-night,.header-stars{opacity:0}}@media (max-width:480px){.game-topbar{background-position:50% 32%}.brand-mascot{width:31px;height:35px}.game-brand .brand-title strong{font-size:.77rem}.game-brand .brand-title small{display:none}.game-brand>span:last-child{display:grid}.game-brand{gap:.18rem!important}}.game-overlay:has(.settings-layout){background:linear-gradient(145deg,#d8f5ffb8,#ffe5bbbd 51%,#c7d7ffb7),url(/assets/tajafun/backgrounds/world-postcard.webp) 50%/cover no-repeat;border-color:#fdf6c0;position:relative}.game-overlay:has(.settings-layout)>header{z-index:1;border-bottom-color:#8abde1;position:relative}.game-overlay:has(.settings-layout)>header:after{content:"";filter:drop-shadow(0 3px 1px #426d9a66);background:url(/assets/tajafun/ui/keyboard-robot.svg) 50%/contain no-repeat;flex:none;width:42px;height:46px;margin-left:auto;animation:3.5s ease-in-out infinite brand-hop}.game-overlay:has(.settings-layout)>header .game-icon-button{order:2}.settings-layout{z-index:1;gap:.55rem;position:relative}.game-overlay:has(.settings-layout) .settings-page{background:linear-gradient(135deg,#ceeff4ed,#fee5e4eb 58%,#e1dcffeb),url(/assets/tajafun/backgrounds/world-postcard.webp) 50%/cover no-repeat;border:2px solid #ffffffe0;border-radius:18px;box-shadow:inset 0 2px 9px #fff9,0 6px #75a7c280}.settings-page h3{color:#365d8e;background:#fff3a9;border-radius:999px;justify-self:start;padding:.22rem .75rem;box-shadow:0 2px #e8b979}.settings-page select{background:#fffdf4}.settings-page .check-row{font-weight:700}.settings-tabs{border-right:0;gap:4px;padding-right:.35rem}.settings-tabs button{justify-content:center;align-items:center;gap:.3rem;min-width:0;font-size:.77rem;font-weight:900;color:#264c79!important;background:#d8eafa url(/assets/tajafun/ui/dock-button.svg) 50%/100% 100% no-repeat!important;border:0!important;border-radius:13px!important;min-height:44px!important;padding:.2rem .3rem!important;display:flex!important;box-shadow:0 2px #78a0c3!important}.settings-tabs button svg{flex:none;width:18px;height:18px}.settings-tabs button[aria-selected=true]{color:#704619!important;background:#ffe39a url(/assets/tajafun/ui/confirm-button.svg) 50%/100% 100% no-repeat!important;box-shadow:0 2px #ad8551!important}.settings-tabs button:focus-visible{outline-offset:1px;outline:3px solid #ffb930}@media (max-width:760px){.settings-tabs{border:0;gap:3px;padding:0 0 .3rem}.settings-tabs button{flex:1;font-size:.7rem}.settings-tabs button svg{width:15px;height:15px}}@media (max-width:480px){.settings-layout{gap:.25rem}.game-overlay:has(.settings-layout)>header:after{width:31px;height:36px}.settings-tabs button{gap:2px;font-size:.65rem;padding:0!important}.settings-tabs button svg{width:13px;height:13px}.game-overlay:has(.settings-layout) .settings-page{border-radius:12px}}@media (max-height:430px) and (orientation:landscape){.settings-layout{gap:.25rem;padding-top:.2rem}.settings-tabs{border:0;gap:2px;padding:0 .25rem 0 0}.settings-tabs button{flex:none;height:44px;min-height:44px!important}.game-overlay:has(.settings-layout) .settings-page{padding:.2rem .65rem}}.game-shell.reduced-motion .game-overlay:has(.settings-layout)>header:after{animation:none}@media (prefers-reduced-motion:reduce){.game-overlay:has(.settings-layout)>header:after{animation:none}}.rival-progress-marker{z-index:2;background:#fa81b8;border:2px solid #fff;border-radius:50% 50% 46% 46%;width:15px;height:15px;transition:left .7s;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 1px 4px #204b84}.rival-progress-marker:before,.rival-progress-marker:after{content:"";background:#fa81b8;border-radius:4px;width:4px;height:8px;position:absolute;top:-7px}.rival-progress-marker:before{left:1px;transform:rotate(-18deg)}.rival-progress-marker:after{right:1px;transform:rotate(18deg)}.game-shell.reduced-motion .rival-progress-marker{transition:none}.fallback-rival{z-index:2;background:#fa87ba;border:2px solid #fff;border-radius:48% 48% 42% 42%;width:20px;height:21px;transition:left .7s;position:absolute;box-shadow:0 2px 4px #285d8470}.fallback-rival:before,.fallback-rival:after{content:"";background:inherit;border-radius:5px;width:6px;height:10px;position:absolute;top:-8px}.fallback-rival:before{left:1px;transform:rotate(-12deg)}.fallback-rival:after{right:1px;transform:rotate(12deg)}.fallback-rival-1{background:#92dfe0}.fallback-rival-2{background:#bea6f0}.fallback-rival-3{background:#ffd272}.game-shell.reduced-motion .fallback-rival{transition:none}@media (max-width:480px){.rival-progress-marker{width:13px;height:13px}.fallback-rival{width:15px;height:16px}}.game-shell .game-typing{grid-template-columns:minmax(0,1fr);grid-template-areas:"prompt""input""letters""feedback""note";justify-items:stretch;gap:.28rem}.game-shell .game-prompt{text-align:center;justify-items:center}.game-shell .game-prompt strong{text-align:center;max-width:min(850px,100%)}.game-shell .game-prompt small{text-align:center}.game-shell .game-input-row{background:linear-gradient(145deg,#fff7bc,#e3b96d 55%,#8ebee4);border-radius:21px;justify-self:center;gap:.3rem;width:min(800px,100%);padding:3px;position:relative;box-shadow:0 3px #8b9db5,0 8px 17px #4775a550}.game-shell .game-input-row input{letter-spacing:.025em;background:#eaf9ff url(/assets/tajafun/ui/input-sheen.svg) 50%/100% 100% no-repeat;border-radius:17px;min-height:55px;padding-left:2.8rem;font-weight:800;border:0!important;box-shadow:inset 0 2px 7px #82a8c966!important}.game-shell .game-input-row input:focus{outline-offset:-3px;outline:3px solid #4d82d4}.game-shell .input-keyboard-icon{z-index:1;color:#4d75a7;pointer-events:none;width:22px;height:22px;position:absolute;top:50%;left:15px;transform:translateY(-50%)}.game-shell .input-keyboard-icon svg{width:100%;height:100%}.game-shell .game-submit-button{border-radius:17px;outline:0;min-height:55px;margin:0;background:#ffc766 url(/assets/tajafun/ui/confirm-button.svg) 50%/100% 100% no-repeat!important;border:0!important;box-shadow:0 3px #b97739,0 8px 13px #2a4b7740!important}.game-shell .game-submit-button:focus-visible{outline-offset:2px;outline:3px solid #355bd8}.game-shell .game-letter-guide{justify-content:center}.game-shell .game-input-feedback{justify-self:center;width:min(800px,100%)}.travel-story-card{z-index:4;color:#2b527d;pointer-events:none;background:linear-gradient(135deg,#fff8dff2,#e6f7fff0);border:2px solid #fff4c7;border-radius:14px 14px 4px;gap:.12rem;width:min(250px,31%);padding:.5rem .65rem;display:grid;position:absolute;bottom:2.9rem;right:1rem;box-shadow:0 3px #639ac2,0 7px 13px #25527a55}.travel-story-card strong{color:#a45070;font-size:.8rem}.travel-story-card span,.travel-story-card small{font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.69rem;line-height:1.25}.travel-story-card small{font-weight:700}.game-shell.reduced-motion .travel-story-card{animation:none}@media (max-width:760px){.travel-story-card{width:min(175px,42%);padding:.35rem .45rem;bottom:2.6rem;right:.5rem}.travel-story-card strong{font-size:.64rem}.travel-story-card span,.travel-story-card small{font-size:.57rem}}@media (max-width:480px){.game-shell .game-input-row{padding:2px}.game-shell .game-input-row input{min-height:48px;padding-left:2.15rem;font-size:16px}.game-shell .input-keyboard-icon{width:18px;height:18px;left:10px}.game-shell .game-submit-button{min-width:78px;min-height:48px;font-size:.85rem}.travel-story-card{width:min(157px,42%);bottom:2.55rem;right:.35rem}.travel-story-card small{display:none}}@media (max-height:430px) and (orientation:landscape){.game-shell .game-typing{gap:.14rem}.game-shell .game-prompt strong{font-size:clamp(1.2rem,3vw,1.75rem)}.game-shell .game-input-row input,.game-shell .game-submit-button{min-height:44px}.travel-story-card{width:135px;padding:.25rem .35rem;bottom:2.2rem;right:.4rem}.travel-story-card span,.travel-story-card small{display:none}}.game-shell{--theme-sky:#8acfe7;--theme-panel:#fff3dc;--theme-primary:#527fda;--theme-accent:#ffbf68;--theme-ink:#233c65}.game-shell .game-stage:has(.game-canvas){background:var(--theme-sky)}.game-shell .game-control-deck{background:linear-gradient(180deg,#fffffff2,var(--theme-panel));color:var(--theme-ink)}.game-shell .game-kicker{color:var(--theme-primary)}.theme-lab-return{color:#294a75;background:#fff4b8;border-radius:12px;justify-content:center;align-items:center;min-height:44px;padding:.2rem .55rem;font-size:.67rem;font-weight:900;text-decoration:none;display:inline-flex;box-shadow:0 2px #7f9ebd}.theme-performance{z-index:7;color:#fff;pointer-events:none;background:#142d55d9;border:1px solid #fffa;border-radius:10px;align-items:center;gap:.35rem;padding:.25rem .45rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.58rem;display:flex;position:absolute;top:.45rem;left:.45rem}.theme-performance strong{color:#ffe173}.theme-lab{color:#203b5c;background:radial-gradient(circle at 15% 5%,#fff3b6 0 5%,#0000 19%),linear-gradient(145deg,#7bc7e8,#c6e8f3 48%,#f5d9bc);min-height:100dvh;padding:clamp(1rem,3vw,2.5rem)}.theme-lab-header{color:#fff;background:#173f70dd;border:2px solid #ffffffc7;border-radius:24px;justify-content:space-between;align-items:end;gap:1rem;max-width:1440px;margin:0 auto 1.2rem;padding:1rem 1.2rem;display:flex;box-shadow:0 7px #315f8b,0 16px 35px #244d7560}.theme-lab-header p{color:#ffe078;letter-spacing:.12em;margin:0;font-family:Galmuri11,system-ui,sans-serif;font-weight:900}.theme-lab-header h1{margin:.2rem 0;font-size:clamp(1.55rem,4vw,2.8rem)}.theme-lab-header span{color:#deefff;max-width:780px;display:block}.theme-lab-header .button{color:#443314;background:#ffc85d;border-color:#fff1a8;flex:none}.theme-lab-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;max-width:1440px;margin:auto;display:grid}.theme-card{--theme-sky:#8acfe7;--theme-panel:#fff;--theme-primary:#527fda;--theme-accent:#ffbf68;--theme-ink:#233c65;background:linear-gradient(160deg,var(--theme-panel),#ffffffd9);min-width:0;color:var(--theme-ink);box-shadow:0 5px 0 color-mix(in srgb,var(--theme-primary) 55%,#6d7c91),0 13px 24px #294d6d42;border:2px solid #ffffffd9;border-radius:23px;grid-template-rows:auto auto auto auto 1fr auto;gap:.65rem;padding:.8rem;display:grid}.theme-card[data-status=planned]{filter:saturate(.78)}.theme-card-art{isolation:isolate;background:linear-gradient(180deg,var(--theme-sky),color-mix(in srgb,var(--theme-primary) 55%,#fff));border-radius:17px;height:105px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px #ffffff75}.theme-card-art span{z-index:3;background:var(--theme-accent);width:52px;height:52px;color:var(--theme-ink);border:4px solid #fff;border-radius:18px;place-items:center;font:900 1.35rem Galmuri11,system-ui;display:grid;position:absolute;bottom:12px;left:50%;transform:translate(-50%)rotate(-4deg);box-shadow:0 5px #344e7870}.theme-card-art i,.theme-card-art b{background:#ffffffb5;border-radius:50%;position:absolute}.theme-card-art i{width:92px;height:32px;top:14px;left:7%;box-shadow:210px 18px #ffffff85}.theme-card-art b{background:#74bd85;width:170%;height:80px;bottom:-55px;left:-35%}.theme-card-copy p,.theme-card-copy h2,.theme-card-copy small,.theme-card-copy span{margin:0}.theme-card-copy p{color:var(--theme-primary);font-size:.7rem;font-weight:900}.theme-card-copy h2{font-size:1.22rem}.theme-card-copy small{opacity:.68;font-weight:800;display:block}.theme-card-copy span{margin-top:.35rem;font-size:.82rem;line-height:1.42;display:block}.theme-card ol{flex-wrap:wrap;gap:.22rem;margin:0;padding:0;list-style:none;display:flex}.theme-card li{background:color-mix(in srgb,var(--theme-primary) 14%,white);border-radius:999px;padding:.18rem .38rem;font-size:.64rem;font-weight:800}.theme-card dl{gap:.25rem;margin:0;display:grid}.theme-card dl div{grid-template-columns:110px 1fr;gap:.4rem;font-size:.65rem;display:grid}.theme-card dt{font-weight:900}.theme-card dd{margin:0}.theme-card fieldset{border:1px dashed color-mix(in srgb,var(--theme-primary) 45%,white);border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem;margin:0;padding:.45rem;display:grid}.theme-card fieldset:disabled{opacity:.55}.theme-card legend{padding:0 .25rem;font-size:.66rem;font-weight:900}.theme-card fieldset label{grid-template-columns:1fr auto;align-items:center;gap:.2rem;font-size:.64rem;font-weight:800;display:grid}.theme-card select{background:#fff;border:1px solid #9db0c5;border-radius:8px;min-height:36px;font-size:.65rem}.theme-card-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;display:grid}.theme-card-actions .button,.theme-card-actions button{background:var(--theme-primary);color:#fff;min-height:44px;box-shadow:0 3px 0 color-mix(in srgb,var(--theme-primary) 60%,#29374c);border:0;border-radius:13px;padding:.35rem;font-size:.78rem}.theme-card-actions .secondary{color:var(--theme-ink);background:#fff}.theme-card-actions button:only-child{grid-column:1/-1}.theme-compare{background:#f9fcffd9;border:2px solid #ffffffc4;border-radius:20px;max-width:1440px;margin:1.4rem auto 0;padding:1rem}.theme-compare h2{margin:0 0 .5rem}.theme-compare-table{gap:.35rem;display:grid}.theme-compare-table>div{background:#e8f2fa;border-radius:10px;grid-template-columns:130px 1fr;gap:.5rem;padding:.4rem .55rem;font-size:.8rem;display:grid}@media (max-width:1050px){.theme-lab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:680px){.theme-lab{padding:.65rem}.theme-lab-header{flex-direction:column;align-items:stretch}.theme-lab-header .button{align-self:stretch}.theme-lab-grid{grid-template-columns:1fr}.theme-card{grid-template-rows:auto}.theme-card-art{height:86px}.theme-performance{top:auto;bottom:2.3rem}.theme-lab-return{display:none}.theme-compare-table>div{grid-template-columns:1fr}.theme-card dl div{grid-template-columns:100px 1fr}}@media (prefers-reduced-motion:reduce){.theme-card-art span{transform:translate(-50%)}}.theme-card select{min-height:44px}.game-shell .game-input-feedback.with-quiz-assist{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"message actions""assist assist";align-items:center;gap:.35rem .55rem;display:grid}.game-input-feedback.with-quiz-assist>p{grid-area:message}.game-feedback-actions{justify-content:flex-end;align-items:center;gap:.35rem;display:flex}.game-input-feedback.with-quiz-assist .game-feedback-actions{grid-area:actions}.quiz-assist{color:#274b77;background:linear-gradient(135deg,#fff9c9,#e5f7ff);border:2px solid #ffe196;border-radius:13px;grid-area:assist;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.5rem;min-width:0;padding:.42rem .65rem;display:grid;box-shadow:0 3px #9ebfd4}.quiz-assist strong{color:#6b4518;white-space:nowrap;background:#ffcf67;border-radius:999px;padding:.2rem .45rem;font-size:.72rem}.quiz-assist span{overflow-wrap:anywhere;min-width:0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:.8rem;font-weight:800}.quiz-assist-3{background:linear-gradient(135deg,#e8fff1,#e8f3ff);border-color:#a7e2c8}.quiz-assist-3 strong{color:#174c38;background:#78d5a7}@media (max-width:480px){.game-shell .game-input-feedback.with-quiz-assist{grid-template-columns:1fr;grid-template-areas:"message""assist""actions"}.game-input-feedback.with-quiz-assist>p{text-align:center}.game-input-feedback.with-quiz-assist .game-feedback-actions{justify-content:center}.quiz-assist{text-align:center;grid-template-columns:1fr;justify-items:center;gap:.2rem;padding:.3rem .45rem}.quiz-assist span{font-size:.72rem}}@media (max-height:430px) and (orientation:landscape){.game-shell .game-input-feedback.with-quiz-assist{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"assist actions"}.game-input-feedback.with-quiz-assist>p{display:none}.quiz-assist{padding:.24rem .45rem}.quiz-assist span{font-size:.68rem}}.game-topbar>.game-primary-nav{z-index:3;justify-content:center;align-items:center;gap:.28rem;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.game-primary-nav button{justify-content:center;align-items:center;gap:.25rem;font-size:.69rem;font-weight:900;display:flex;color:#244f7d!important;background:#e9f6ff url(/assets/tajafun/ui/dock-button.svg) 50%/100% 100% no-repeat!important;border-radius:13px!important;min-width:58px!important;min-height:46px!important;padding:.25rem .45rem!important;box-shadow:0 3px #6c9bc2,0 5px 10px #173f6a4d!important}.game-primary-nav button:hover{filter:brightness(1.05)}.game-primary-nav button:active{transform:translateY(2px);box-shadow:0 1px #6c9bc2!important}.game-primary-nav button:focus-visible{outline-offset:-3px;outline:3px solid #ffcf55}.game-primary-nav svg{flex:none;width:20px;height:20px}@media (max-width:1180px){.game-topbar>.game-primary-nav{grid-area:2/1/auto/-1;justify-self:center;position:static;top:auto;left:auto;transform:none}.game-topbar{padding-bottom:.4rem}}@media (max-width:760px){.game-primary-nav{grid-area:2/1/auto/-1;justify-self:center}.game-topbar>.game-score{z-index:3;grid-area:2/1/auto/-1;justify-content:flex-start;justify-self:start;position:relative;top:auto;left:auto;right:auto}}@media (max-width:480px){.game-primary-nav{gap:.12rem}.game-primary-nav button{gap:.12rem;font-size:.58rem;min-width:44px!important;min-height:44px!important;padding:.18rem .28rem!important}.game-primary-nav svg{width:17px;height:17px}}
