.challenge-page{--game-ink:#203e38;--game-muted:#526963;--game-green:#245d4c;max-width:1080px;padding:24px 24px 20px;color:var(--game-ink)}.challenge-page [hidden]{display:none!important}.challenge-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;margin:0 0 20px}.challenge-brand{display:flex;align-items:center;gap:12px;min-width:0}.challenge-brand>div{min-width:0}.challenge-brand h1{font-size:1.7rem;font-weight:800;letter-spacing:-.045em;line-height:1.15;margin:4px 0 0}.challenge-back{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:1px solid #d8e3dc;border-radius:50%;text-decoration:none;font-size:1.3rem;background:#fff}.challenge-kicker{color:var(--game-muted);font-size:.7rem;letter-spacing:.07em;font-weight:800;text-decoration:none;text-transform:uppercase;margin:0}.challenge-toolbar-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.game-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;border:1px solid #cedcd4;border-radius:12px;padding:10px 14px;color:var(--game-ink);background:#fff;cursor:pointer;transition:background .15s,transform .15s;touch-action:manipulation}.game-button{font-family:inherit;font-size:.85rem;font-weight:700;line-height:1.25}.game-button svg{width:20px;height:20px;flex:none}.game-button:hover{background:#eaf1e9}.game-button:active{transform:translateY(1px)}.game-button:disabled{opacity:.5;cursor:default}.game-button-primary{background:var(--game-green);border-color:var(--game-green);color:#fff;box-shadow:0 3px 0 #174636}.game-button-primary:hover{background:#194c3d}.game-button-subtle{background:0 0;border-color:transparent}.game-icon-button{width:44px;padding:10px;flex:none}.game-button[aria-pressed=true]{background:#e0eee4;border-color:#709e88}.challenge-game{background:#fff;border:1px solid #dbe4dc;border-radius:26px;box-shadow:0 12px 42px #26483807;overflow:hidden}.challenge-game-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 26px;border-bottom:1px solid #e4ebe5;background:#f8faf5}.challenge-game-heading>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.challenge-level{font-size:.72rem;font-weight:800;border:1px solid #d4e3cc;background:#edf4e6;color:#3d653a;border-radius:7px;padding:5px 9px}.challenge-board-description{font-size:.8rem;color:var(--game-muted)}.challenge-progress{min-width:140px;text-align:right;display:grid;gap:7px}.challenge-progress>span{font-size:.78rem;font-weight:800}.challenge-progress progress{display:block;appearance:none;border:0;width:100%;height:5px;border-radius:9px;overflow:hidden;background:#e0e8dc}.challenge-progress progress::-webkit-progress-bar{background:#e0e8dc}.challenge-progress progress::-webkit-progress-value{background:#4b8b60;border-radius:9px;transition:width .3s}.challenge-progress progress::-moz-progress-bar{background:#4b8b60;border-radius:9px}.challenge-workspace{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:stretch}.challenge-board-panel{padding:20px 26px 18px;min-width:0}.challenge-sidebar{padding:28px 22px;background:#fcfcf7;border-left:1px solid #e6ebe1;min-width:0;display:flex;flex-direction:column;justify-content:space-between}.challenge-bank-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.challenge-bank-heading h2{font-size:.9rem;font-weight:800;margin:0}.challenge-bank-count{font-size:.72rem;color:var(--game-muted);font-variant-numeric:tabular-nums}.challenge-words{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-wrap:wrap;gap:8px}.challenge-words li{display:flex;align-items:center;gap:7px;border:1px solid #e0e7dc;border-radius:9px;padding:7px 10px;min-width:0;max-width:100%;font-size:.82rem;font-weight:700;background:#fff;overflow-wrap:anywhere;transition:background .2s,border-color .2s}.challenge-sidebar .challenge-words li{width:100%;padding:9px 11px}.challenge-check{font-size:.85em;color:#658173}.challenge-words li.is-found{background:var(--word-color);border-color:transparent}.challenge-words li.is-found>span:nth-child(2){text-decoration:line-through;text-decoration-thickness:1px}.challenge-words li.is-found .challenge-check{color:#254c3e}.challenge-grid-scroll{overflow:auto;max-width:100%;border-radius:16px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b3c9bb #f3f6ef}.challenge-grid{position:relative;width:100%;padding:8px;container-type:inline-size;background:#f8faf5;border-radius:16px;touch-action:none;user-select:none;-webkit-user-select:none;--puzzle-size:10;--cell-font:20px}.challenge-row{display:grid;grid-template-columns:repeat(var(--puzzle-size),minmax(0,1fr));position:relative;z-index:1}.challenge-grid button{display:block;aspect-ratio:1;min-width:0;padding:0;border:0;border-radius:50%;background:0 0;color:#243f39;font-family:inherit;font-weight:800;font-size:var(--cell-font);line-height:1;touch-action:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.challenge-grid button:hover{background:#244c3810}.challenge-grid button:focus-visible{outline:2px solid #24588c;outline-offset:-2px}.challenge-grid button.is-anchor{box-shadow:inset 0 0 0 2px #356c91}.challenge-grid button.is-hint{box-shadow:inset 0 0 0 2px #ab741e;background:#fff0c6}.challenge-grid button.is-selecting{background:#b9dceb55}.challenge-lines{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);pointer-events:none;overflow:visible}.challenge-lines line{stroke-width:.78;stroke-linecap:round}.challenge-lines .selection-line{stroke:#b9dceb}.challenge-grid-scroll.is-zoomed{max-height:min(58svh,520px);border:1px solid #d8e3d7}.is-zoomed .challenge-grid{min-width:calc(var(--puzzle-size)*36px + 16px)}.is-zoomed .challenge-grid,.is-zoomed .challenge-grid button{touch-action:pan-x pan-y}.challenge-status{font-size:.8rem;line-height:1.5;min-height:2.7em;margin:12px 2px 6px;color:var(--game-muted)}.challenge-scroll-help{font-size:.75rem;color:var(--game-muted);margin:9px 2px 0;line-height:1.5}.challenge-actions{display:flex;gap:8px;align-items:center;padding-top:10px;border-top:1px solid #e8eee4}.challenge-actions>:nth-child(2){margin-right:auto}.challenge-actions .game-button{font-size:.78rem;padding:9px 11px}.challenge-actions .game-icon-button{padding:10px}.challenge-complete{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:15px;padding:16px 20px;border:1px solid #c4dfb1;border-radius:16px;background:#f1f8e7}.challenge-complete>div{position:relative;padding-left:32px}.challenge-trophy{position:absolute;left:0;top:0;color:#9a720d;font-size:1.7rem}.challenge-complete h3{font-size:1rem;font-weight:800;margin:0 0 5px}.challenge-complete p{font-size:.78rem;line-height:1.4;margin:0}.challenge-complete .game-button{flex-shrink:0}.challenge-about{font-size:.83rem;color:var(--game-muted);margin:20px 4px 0}.challenge-about summary{padding:10px 0;cursor:pointer;min-height:44px}.challenge-about p{max-width:720px;line-height:1.7;margin:8px 0}.challenge-about>a{display:inline-block;min-height:44px;padding:8px 0}.challenge-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:26px;border:1px solid #d7e1d7;border-radius:22px;box-shadow:0 24px 100px #17392e40;color:var(--game-ink);overflow:auto;overscroll-behavior:contain;background:#fff}.challenge-dialog::backdrop{background:#16362b70;backdrop-filter:blur(4px)}.challenge-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.challenge-dialog-heading h2{font-size:1.35rem;font-weight:800;letter-spacing:-.03em;margin:4px 0 0}.challenge-dialog-heading .game-icon-button{background:#f3f6ef;border-color:transparent}.challenge-dialog>p{font-size:.9rem;line-height:1.8}.challenge-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px}.challenge-field{min-width:0}.challenge-field-wide{grid-column:1/-1}.challenge-field label{display:block;font-size:.83rem;font-weight:800;margin:0 0 7px}.challenge-field input,.challenge-field select{display:block;width:100%;min-height:48px;padding:11px 13px;background:#f9fbf6;border:1px solid #cddacf;border-radius:10px;color:var(--game-ink);font:inherit;font-size:16px}.challenge-field select{appearance:none;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#42635b 50%),linear-gradient(135deg,#42635b 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}.challenge-field-help{font-size:.78rem;line-height:1.55;color:var(--game-muted);margin:7px 0 0}.challenge-field-help:empty{display:none}.challenge-print{display:grid;gap:18px}.challenge-print .activity-secondary{margin:0}.challenge-print [role=status]{font-size:.85rem;line-height:1.5;margin:0}.challenge-page input:focus-visible{outline:3px solid #254b86;outline-offset:2px}@media(max-width:900px){.challenge-page{padding:18px 18px 20px}.challenge-toolbar{align-items:flex-start;gap:12px}.challenge-toolbar-actions .game-button-subtle{width:44px;padding:10px;border-color:#d8e3dc;background:#fff}.challenge-toolbar-actions .game-button-subtle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.challenge-workspace{grid-template-columns:minmax(0,1fr) 220px}.challenge-board-panel{padding:18px}.challenge-sidebar{padding:24px 16px}.challenge-brand h1{font-size:1.5rem}}@media(max-width:680px){.challenge-page{padding:12px 10px 16px}.challenge-toolbar{display:grid;grid-template-columns:1fr;margin-bottom:12px;gap:12px}.challenge-brand{gap:9px}.challenge-brand h1{font-size:1.35rem;margin-top:3px}.challenge-kicker{font-size:.6rem}.challenge-back{width:40px;height:40px}.challenge-toolbar-actions{display:grid;grid-template-columns:44px 44px minmax(0,1fr);gap:8px}.challenge-toolbar-actions .game-button-primary{justify-self:end;min-width:150px}.challenge-game{border-radius:19px}.challenge-game-heading{padding:12px;gap:10px}.challenge-game-heading>div:first-child{gap:7px}.challenge-board-description{font-size:.72rem}.challenge-level{padding:4px 7px;font-size:.67rem}.challenge-progress{min-width:105px;gap:6px}.challenge-progress>span{font-size:.72rem}.challenge-workspace{display:block}.challenge-board-panel{padding:0 10px 10px}.challenge-sidebar{display:none}#challengeWordBank{padding:12px 2px}.challenge-bank-heading h2{font-size:.72rem}.challenge-bank-count{font-size:.67rem}.challenge-words{gap:5px;margin:8px 0 0;max-height:96px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:1px}.challenge-words li{font-size:.72rem;padding:4px 7px;border-radius:6px;gap:4px}.challenge-grid{padding:5px;border-radius:12px}.challenge-lines{inset:5px;width:calc(100% - 10px);height:calc(100% - 10px)}.challenge-grid-scroll{border-radius:12px}.challenge-status{font-size:.75rem;min-height:2.5em;margin:9px 2px 4px}.challenge-actions{gap:6px;padding-top:8px}.challenge-actions .game-button{font-size:.72rem;padding:8px;gap:5px;min-height:44px}.challenge-actions .game-icon-button{width:40px;min-width:40px}.challenge-actions svg{width:18px;height:18px}.challenge-complete{flex-direction:column;align-items:stretch;padding:14px}.challenge-complete .game-button{width:100%}.challenge-dialog{width:100%;max-width:100%;margin:auto 0 0;max-height:calc(100dvh - 16px);border-radius:22px 22px 0 0;padding:20px 20px max(20px,env(safe-area-inset-bottom));border-bottom:0}.challenge-dialog-heading{margin-bottom:18px}.challenge-settings{gap:13px}.challenge-about{margin-top:10px;font-size:.78rem}}@media(min-width:681px) and (max-height:850px){.challenge-page{max-width:980px}.challenge-workspace{grid-template-columns:minmax(0,1fr) 250px}.challenge-grid-scroll{max-width:480px;margin:auto}.challenge-board-panel{padding-top:15px}}@media(prefers-reduced-motion:reduce){.challenge-progress progress::-webkit-progress-value,.challenge-words li,.game-button{transition:none}}@media print{.challenge-about,.challenge-actions,.challenge-dialog,.challenge-toolbar-actions{display:none!important}.challenge-game{box-shadow:none}}html.challenge-modal-open{overflow:hidden}.challenge-grid-scroll{max-width:520px;margin-inline:auto}.challenge-sidebar .is-dense .challenge-words{max-height:480px;overflow:auto;padding:1px}.challenge-sidebar .is-dense .challenge-words li{width:auto}.challenge-words:focus-visible{outline:2px solid #24588c;outline-offset:3px;border-radius:6px}.challenge-words-help{margin:6px 1px 0;color:var(--game-muted);font-size:.7rem;line-height:1.4}.challenge-maker-link{margin:10px 4px 0;font-size:.85rem}.challenge-maker-link a{display:inline-flex;align-items:center;gap:8px;min-height:44px}.challenge-share-open{background:#e5f0e7;border-color:#709e88;color:#184e3b}.challenge-share-open:hover{background:#d5e8da;border-color:#245d4c}.challenge-share-label-short{display:none}@media(max-width:900px){.challenge-toolbar{grid-template-columns:minmax(0,1fr) auto;align-items:center}.challenge-toolbar-actions{grid-column:1/-1;justify-content:flex-end}}@media(max-width:680px){.challenge-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:10px}.challenge-share-open{justify-self:end;min-width:0;padding:9px 10px;font-size:.8rem}.challenge-share-label-full{display:none}.challenge-share-label-short{display:inline}}.challenge-guide{max-width:800px;margin:30px 0 0;padding-top:22px;border-top:1px solid #dbe4dc;color:var(--game-muted);font-size:.85rem;line-height:1.75}.challenge-guide h2{font-size:1.15rem;color:var(--game-ink);font-weight:800;margin:0 0 10px}.challenge-guide p{margin:0 0 12px}.challenge-guide details{border-top:1px solid #e3e9e2}.challenge-guide summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:700;color:var(--game-ink)}.challenge-guide details p{padding-bottom:8px}.challenge-share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.challenge-share-actions .game-button{flex:1}.challenge-share-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 20px}.challenge-share-platforms .game-button{justify-content:flex-start;min-width:0;padding:10px 12px;text-decoration:none}.challenge-share-platforms .challenge-share-icon{fill:currentColor;stroke:none;width:20px;height:20px;flex-shrink:0}.challenge-share-icon[data-service=whatsapp]{color:#237b43}.challenge-share-icon[data-service=telegram]{color:#247fa6}.challenge-share-icon[data-service=facebook]{color:#2263ae}@media(max-width:400px){.challenge-share-actions{flex-direction:column}}.challenge-page #challengeShareLink{font-size:16px}#challengeShareDialog>p{font-size:.85rem;line-height:1.65;margin:0 0 18px}#challengeShareDialog #challengeShareStatus{margin:12px 0 0}@media print{.challenge-guide,.challenge-maker-link,.challenge-share-open{display:none!important}}.challenge-quick-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 20px;max-width:620px;margin:0 0 18px}.challenge-quick-settings>.challenge-field-help{grid-column:1/-1;margin:0;font-size:.72rem}.challenge-quick-settings label{font-size:.72rem;margin-bottom:6px}.challenge-page .editor-select-trigger{min-height:48px;border-color:#cddacf;border-radius:11px;background:#fff;color:var(--game-ink);font-size:.85rem}.challenge-page .editor-select-trigger>svg{stroke:#526e63}.challenge-page .editor-select-trigger:hover,.challenge-page .editor-stepper:hover{border-color:#709e88}.challenge-page .editor-select-trigger[aria-expanded=true],.challenge-page .editor-stepper:focus-within{border-color:var(--game-green);box-shadow:0 0 0 3px #245d4c14}.challenge-page .editor-select-trigger[aria-expanded=true]>svg{stroke:var(--game-green)}.challenge-page .editor-select-menu{border-color:#cddacf;border-radius:14px;color:var(--game-ink);box-shadow:0 14px 45px #17392e26;font-size:16px}.challenge-page .editor-select-option{border-radius:8px;min-height:44px}.challenge-page .editor-select-option[aria-selected=true]{color:#184e3b;background:#e5f0e7;font-weight:700}.challenge-page .editor-select-option>svg{stroke:var(--game-green)}.challenge-page .editor-select-option.is-active{box-shadow:inset 0 0 0 2px #709e88}.challenge-page .editor-select-option:hover{background:#f0f5ee}.challenge-page .editor-select-searchable .editor-select-search{border-color:#cddacf;background:#f8faf5;color:var(--game-ink);font-size:16px}.challenge-page .editor-select-footer{border-color:#e4ebe5;color:var(--game-muted)}.challenge-page .editor-select-footer button{border-color:#cddacf;background:#e5f0e7;color:var(--game-ink);min-height:44px}.challenge-page .editor-segments{min-height:52px;border-color:#d4e1d7;border-radius:11px;background:#edf2eb;padding:3px;gap:3px}.challenge-page .editor-segment{min-height:44px;border-radius:8px;color:var(--game-muted);font-size:.8rem;padding:7px 6px}.challenge-page .editor-segment:hover{background:#dce9dc;color:var(--game-ink)}.challenge-page .editor-segment[aria-checked=true]{background:var(--game-green);border-color:var(--game-green);color:#fff;box-shadow:0 2px 4px #17392e20}.challenge-page .editor-stepper{min-height:48px;border-color:#cddacf;border-radius:11px;background:#f8faf5}.challenge-page .editor-stepper input{width:0;min-width:0;flex:1;min-height:46px;border:0;border-radius:0;padding:8px 2px;background:0 0;text-align:center;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;appearance:textfield}.challenge-page .editor-stepper button{flex:0 0 44px;min-height:46px;border-radius:10px;background:#edf2eb;color:var(--game-green);font-size:24px}.challenge-page .editor-stepper button:hover:not(:disabled){background:#dce9dc;color:var(--game-ink)}.challenge-page :is(.editor-select-trigger,.editor-select-search,.editor-segment,.editor-stepper input):focus-visible{outline:2px solid #24588c;outline-offset:2px}.challenge-page .editor-stepper input:focus-visible{outline-offset:-3px}@media(min-width:681px){.challenge-quick-settings{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr);max-width:none;margin-bottom:12px}.challenge-quick-settings>.challenge-field-help{grid-column:auto;align-self:end;padding:12px 0}}@media(max-width:680px){.challenge-toolbar-actions{grid-template-columns:minmax(0,1fr) 44px minmax(0,1.25fr)}.challenge-toolbar-actions .game-button-primary{min-width:0;width:100%}#challengeSettingsOpen{padding:9px 10px;overflow-wrap:anywhere;font-size:.8rem}#challengeSettingsOpen svg{display:none}.challenge-quick-settings{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:6px 8px;margin-bottom:12px}.challenge-page .editor-select-trigger{font-size:16px}.challenge-quick-settings .editor-select-trigger{font-size:.85rem;padding:8px 10px;min-height:52px}.challenge-quick-settings .editor-select-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.challenge-quick-settings .editor-segment{font-size:.75rem;padding:6px 3px;overflow-wrap:normal}}@media print{.challenge-quick-settings{display:none!important}}@media(max-width:380px){#challengeQuickNext svg{display:none}.challenge-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) 44px 44px;gap:4px}.challenge-actions .game-button{min-width:0;padding:8px 4px}.challenge-actions>:nth-child(2){margin-right:0}.challenge-actions .game-icon-button{width:44px;min-width:44px}.challenge-actions .game-button:not(.game-icon-button) svg{display:none}}
