:root{--canvas:#faf9f6;--surface:#fff;--surface-soft:#f4f1eb;--ink:#111827;--muted:#5f6570;--border:#dedbd6;--primary:#2563eb;--primary-dark:#1d4ed8;--cyan:#0891b2;--cyan-soft:#ecfeff;--violet:#7c3aed;--violet-soft:#f5f3ff;--orange:#ea580c;--orange-soft:#fff7ed;--shadow:0 18px 50px #11182717;--shell:1180px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--canvas);color:var(--ink);margin:0;font-size:16px;line-height:1.65}a{color:inherit}img{max-width:100%;display:block}button,input{font:inherit}.shell{width:min(calc(100% - 40px), var(--shell));margin-inline:auto}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:100;background:var(--ink);color:#fff;border-radius:6px;padding:10px 14px;position:fixed;top:12px;left:12px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}:focus-visible{outline-offset:3px;outline:3px solid #2563eb73}.site-header{z-index:50;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#faf9f6f5;position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;gap:28px;min-height:72px;display:flex}.brand{letter-spacing:-.02em;align-items:center;gap:10px;font-size:1.06rem;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{background:var(--primary);color:#fff;border-radius:9px;place-items:center;width:34px;height:34px;display:grid}.site-navigation{align-items:center;gap:30px;display:flex}.site-navigation a{color:#404653;font-size:.94rem;font-weight:650;text-decoration:none}.site-navigation a:hover{color:var(--primary)}.menu-toggle{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:8px;width:42px;height:42px;padding:10px;display:none}.menu-toggle span{background:var(--ink);width:20px;height:2px;margin:4px 0;display:block}.hero{border-bottom:1px solid var(--border);padding:64px 0 78px}.hero-grid{grid-template-columns:minmax(0,1.05fr) minmax(320px,.75fr);align-items:center;gap:clamp(40px,8vw,96px);display:grid}.eyebrow{color:var(--primary);letter-spacing:.13em;margin:0 0 12px;font-size:.75rem;font-weight:800}.eyebrow--cyan{color:var(--cyan)}.eyebrow--violet{color:var(--violet)}.eyebrow--orange{color:var(--orange)}.hero h1{letter-spacing:-.055em;max-width:670px;margin:0;font-size:clamp(2.45rem,5vw,4.25rem);line-height:1.12}.hero-intro{max-width:590px;color:var(--muted);margin:24px 0 0;font-size:clamp(1rem,2vw,1.15rem)}.hero-actions{flex-wrap:wrap;gap:12px;margin-top:32px;display:flex}.button{border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;min-height:48px;padding:10px 20px;font-weight:750;text-decoration:none;display:inline-flex}.button--primary{background:var(--primary);color:#fff}.button--primary:hover{background:var(--primary-dark)}.button--secondary{background:var(--surface);border-color:var(--border)}.button--secondary:hover{border-color:#a8a39b}.hero-notes{color:var(--muted);flex-wrap:wrap;gap:18px;margin:24px 0 0;padding:0;font-size:.88rem;list-style:none;display:flex}.hero-notes li:before{content:"✓";color:var(--primary);margin-right:6px;font-weight:800}.hero-visual{justify-content:center;display:flex}.portrait-card{background:var(--surface);border:1px solid var(--border);width:min(100%,390px);box-shadow:var(--shadow);border-radius:20px;padding:14px;transform:rotate(1.2deg)}.portrait-card picture{background:var(--surface-soft);border-radius:12px;height:clamp(380px,52vw,510px);display:block;overflow:hidden}.portrait-card img{object-fit:contain;width:100%;height:100%}.portrait-caption{color:var(--muted);align-items:center;gap:8px;padding:14px 4px 2px;font-size:.88rem;display:flex}.status-dot{background:#22c55e;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #dcfce7}.catalog-section{padding:92px 0}.catalog-section--tools{background:var(--surface)}.catalog-section--games{background:var(--surface-soft)}.section-heading{justify-content:space-between;align-items:end;gap:40px;margin-bottom:36px;display:flex}.section-heading h2,.leaderboard-panel h2,.faq-section h2{letter-spacing:-.04em;margin:0;font-size:clamp(1.85rem,3vw,2.55rem);line-height:1.25}.section-heading>p{max-width:390px;color:var(--muted);margin:0}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.content-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;min-height:255px;padding:26px;transition:transform .16s,box-shadow .16s,border-color .16s;display:flex;position:relative;overflow:hidden}.content-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #11182712}.content-card--tool:hover{border-color:#67e8f9}.content-card--game-violet:hover{border-color:#c4b5fd}.content-card--game-orange:hover{border-color:#fdba74}.card-icon{background:var(--cyan-soft);width:46px;height:46px;color:var(--cyan);border-radius:11px;place-items:center;margin-bottom:22px;font-size:1.08rem;font-weight:850;display:grid}.content-card--game-violet .card-icon{background:var(--violet-soft);color:var(--violet)}.content-card--game-orange .card-icon{background:var(--orange-soft);color:var(--orange)}.card-copy h3{letter-spacing:-.02em;margin:0 0 8px;font-size:1.14rem}.card-copy p{color:var(--muted);margin:0;font-size:.94rem}.card-link{color:var(--primary);margin-top:auto;padding-top:22px;font-size:.91rem;font-weight:750;text-decoration:none}.content-card--tool .card-link{color:var(--cyan)}.content-card--game-violet .card-link{color:var(--violet)}.content-card--game-orange .card-link{color:var(--orange)}.card-grid--games .content-card:last-child{grid-column:auto}.ad-wrap{padding:24px 0}.ad-slot{color:#8b8b87;background:#ffffff73;border:1px dashed #c9c5be;justify-content:center;align-items:center;gap:10px;min-height:92px;display:flex}.ad-slot span{letter-spacing:.08em;border:1px solid #bcb8b1;border-radius:3px;padding:2px 6px;font-size:.63rem}.ad-slot p{margin:0;font-size:.78rem}.leaderboard-section{background:var(--surface);padding:92px 0}.leaderboard-panel{border:1px solid var(--border);background:#fffdf9;border-radius:18px;grid-template-columns:1fr .8fr;align-items:center;gap:clamp(38px,8vw,92px);padding:clamp(30px,5vw,58px);display:grid}.leaderboard-panel>div:first-child>p:not(.eyebrow){max-width:590px;color:var(--muted)}.text-link{color:var(--primary);margin-top:8px;font-weight:750;text-decoration:none;display:inline-block}.leaderboard-preview{text-align:center;background:var(--orange-soft);border:1px solid #fed7aa;border-radius:14px;padding:30px}.trophy{width:52px;height:52px;color:var(--orange);background:#fff;border-radius:50%;place-items:center;margin:0 auto 16px;font-size:1.4rem;display:grid}.leaderboard-preview strong{font-size:1.06rem;display:block}.leaderboard-preview p{color:var(--muted);margin:7px 0 0;font-size:.9rem}.faq-section{border-top:1px solid var(--border);padding:92px 0}.faq-grid{grid-template-columns:.65fr 1fr;gap:clamp(42px,9vw,110px);display:grid}.faq-grid>div:first-child>p:last-child{color:var(--muted)}.faq-list{border-top:1px solid var(--border)}.faq-list details{border-bottom:1px solid var(--border);padding:20px 0}.faq-list summary{cursor:pointer;padding-right:30px;font-weight:750;list-style:none;position:relative}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"+";color:var(--primary);position:absolute;right:4px}.faq-list details[open] summary:after{content:"−"}.faq-list p{color:var(--muted);margin:12px 30px 0 0}.site-footer{color:#d1d5db;background:var(--ink);padding:42px 0}.footer-grid{grid-template-columns:1fr auto auto;align-items:center;gap:36px;display:grid}.footer-brand{color:#fff;font-size:1.08rem;font-weight:800;text-decoration:none}.site-footer p{color:#9ca3af;margin:3px 0 0;font-size:.84rem}.visitor-count strong{color:#fff}.footer-meta{color:#9ca3af;align-items:center;gap:14px;font-size:.82rem;display:flex}.footer-meta a{color:#d1d5db}.breadcrumbs ol{color:var(--muted);gap:8px;padding:0;font-size:.88rem;list-style:none;display:flex}.breadcrumbs li+li:before{content:"/";color:#aaa59d;margin-right:8px}.leaderboard-page{background:linear-gradient(180deg, var(--surface-soft) 0, var(--canvas) 360px);padding:48px 0 92px}.leaderboard-shell{max-width:980px}.leaderboard-heading{text-align:center;max-width:720px;margin:44px auto 28px}.leaderboard-heading h1{letter-spacing:-.05em;margin:0;font-size:clamp(2.15rem,6vw,3.7rem);line-height:1.12}.leaderboard-heading>p:last-child{color:var(--muted);margin:16px auto 0}.leaderboard-periods{border:1px solid var(--border);background:var(--surface);border-radius:12px;gap:5px;width:fit-content;margin:0 auto 24px;padding:5px;display:flex}.leaderboard-periods a,.leaderboard-filter a{color:var(--muted);border-radius:8px;padding:9px 15px;font-size:.9rem;font-weight:750;text-decoration:none}.leaderboard-periods a:hover,.leaderboard-filter a:hover{color:var(--primary)}.leaderboard-periods a[aria-current=page]{color:#fff;background:var(--primary)}.leaderboard-filter{border:1px solid var(--border);background:var(--surface);border-radius:12px;justify-content:space-between;align-items:center;gap:18px;margin:0 0 18px;padding:14px 18px;display:flex}.leaderboard-filter>span{font-size:.9rem;font-weight:800}.leaderboard-filter>div{flex-wrap:wrap;gap:4px;display:flex}.leaderboard-filter a[aria-current=page]{color:#fff;background:var(--violet)}.leaderboard-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:18px;overflow:hidden}.leaderboard-card-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:24px;padding:26px 30px;display:flex}.leaderboard-card-heading h2{letter-spacing:-.03em;margin:2px 0 0;font-size:clamp(1.35rem,3vw,1.8rem)}.leaderboard-kicker{color:var(--orange);letter-spacing:.08em;margin:0;font-size:.75rem;font-weight:800}.leaderboard-unit{color:#9a3412;background:var(--orange-soft);border-radius:999px;flex:none;padding:7px 11px;font-size:.78rem;font-weight:750}.leaderboard-table-wrap{overflow-x:auto}.leaderboard-table{border-collapse:collapse;text-align:left;width:100%}.leaderboard-table th{color:var(--muted);letter-spacing:.04em;background:#f8f7f4;padding:14px 20px;font-size:.78rem}.leaderboard-table td{border-top:1px solid #ebe8e2;padding:17px 20px}.leaderboard-table tbody tr:hover{background:#fffcf6}.leaderboard-rank{color:#9a3412;background:var(--orange-soft);border-radius:50%;place-items:center;width:30px;height:30px;display:grid}.leaderboard-empty{color:var(--muted);text-align:center;padding:52px 24px!important}.leaderboard-game-links{margin-top:34px}.leaderboard-game-links h2{margin:0 0 14px;font-size:1rem}.leaderboard-game-links>div{flex-wrap:wrap;gap:9px;display:flex}.leaderboard-game-links a{border:1px solid var(--border);background:var(--surface);color:#404653;border-radius:9px;padding:9px 13px;font-size:.86rem;font-weight:700;text-decoration:none}.leaderboard-game-links a:hover{color:var(--primary);border-color:#93c5fd}.legal-page{padding:48px 0 88px}.legal-shell{max-width:900px}.legal-card{border:1px solid var(--border);box-shadow:var(--shadow);background:#fffdf9;border-radius:18px;margin-top:24px;padding:clamp(28px,6vw,58px)}.legal-card h1{font-family:var(--serif);margin:4px 0 8px;font-size:clamp(2.2rem,7vw,3.6rem);line-height:1.1}.legal-card h2{margin:38px 0 12px;font-size:1.2rem}.legal-card p,.legal-card li{color:var(--muted);line-height:1.8}.legal-card li+li{margin-top:8px}.legal-card a{color:var(--primary)}.legal-updated{margin-top:0;font-size:.88rem}.contact-box{border:1px solid var(--border);background:var(--cyan-soft);border-radius:12px;margin:30px 0;padding:24px}.contact-box h2{margin-top:0}.contact-box .button{color:#fff}@media (width<=900px){.hero-grid,.leaderboard-panel,.faq-grid{grid-template-columns:1fr}.hero-copy{text-align:center}.hero-intro{margin-inline:auto}.hero-actions,.hero-notes{justify-content:center}.hero-visual{order:-1}.portrait-card{width:min(100%,310px)}.portrait-card picture{height:360px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:1fr 1fr}.footer-meta{grid-column:1/-1}}@media (width<=680px){.shell{width:min(calc(100% - 28px), var(--shell))}.header-inner{min-height:64px}.menu-toggle{display:block}.site-navigation{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:10px;flex-direction:column;align-items:stretch;gap:0;padding:8px;display:none;position:absolute;top:calc(100% + 1px);left:14px;right:14px}.site-navigation.is-open{display:flex}.site-navigation a{padding:11px 12px}.hero{padding:34px 0 58px}.hero-grid{gap:34px}.hero h1{font-size:clamp(2.1rem,11vw,3rem)}.portrait-card{width:min(88%,290px);padding:10px}.portrait-card picture{height:318px}.catalog-section,.leaderboard-section,.faq-section{padding:68px 0}.section-heading{margin-bottom:28px;display:block}.section-heading>p{margin-top:12px}.card-grid{grid-template-columns:1fr}.content-card{min-height:230px}.leaderboard-panel{padding:24px}.leaderboard-page{padding:30px 0 68px}.leaderboard-heading{margin-top:30px}.leaderboard-periods{width:100%}.leaderboard-periods a{text-align:center;flex:1;padding-inline:8px}.leaderboard-filter{flex-direction:column;align-items:flex-start}.leaderboard-filter>div{width:100%}.leaderboard-filter a{text-align:center;flex:1}.leaderboard-card-heading{flex-direction:column;align-items:flex-start;padding:22px 18px}.leaderboard-table{min-width:590px}.leaderboard-table th,.leaderboard-table td{padding-inline:15px}.footer-grid{text-align:center;grid-template-columns:1fr}.footer-meta{grid-column:auto;justify-content:center}}.tool-page{padding:34px 0 84px}.tool-page .breadcrumbs{margin-bottom:24px}.tool-header{max-width:760px;margin-bottom:30px}.tool-header h1{letter-spacing:-.045em;margin:0;font-size:clamp(2rem,5vw,3rem);line-height:1.18}.tool-header p{color:var(--muted);margin:12px 0 0;font-size:1.02rem}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.tool-grid--single{grid-template-columns:1fr}.tool-panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;min-width:0;padding:clamp(20px,4vw,30px)}.tool-panel--wide{grid-column:1/-1}.tool-panel h2,.tool-panel h3{letter-spacing:-.025em;margin:0 0 16px;line-height:1.3}.tool-panel h2{font-size:1.3rem}.tool-panel h3{font-size:1.05rem}.tool-stack{gap:16px;display:grid}.tool-field{gap:7px;min-width:0;display:grid}.tool-field label,.tool-label{color:#303642;font-size:.92rem;font-weight:700}.tool-input,.tool-select,.tool-textarea{width:100%;min-height:48px;color:var(--ink);background:#fff;border:1px solid #bcb8b1;border-radius:8px;padding:10px 12px}.tool-textarea{resize:vertical;min-height:108px}.tool-input:focus,.tool-select:focus,.tool-textarea:focus{border-color:var(--primary);outline-offset:1px;outline:3px solid #2563eb2e}.tool-controls{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.tool-controls>.tool-field{flex:180px}.tool-button{color:#fff;background:var(--primary);border:1px solid var(--primary);cursor:pointer;border-radius:8px;min-height:48px;padding:10px 18px;font-weight:750}.tool-button:hover{background:var(--primary-dark)}.tool-button--secondary{color:var(--ink);background:var(--surface-soft);border-color:var(--border)}.tool-button--secondary:hover{background:#e9e5de}.tool-button:disabled{cursor:not-allowed;opacity:.55}.tool-result{overflow-wrap:anywhere;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;min-height:50px;padding:14px;overflow-x:auto}.tool-page [hidden],.tool-page .hidden,.tool-result[hidden],.tool-hidden{display:none!important}.tool-result--center{text-align:center;font-variant-numeric:tabular-nums}.tool-table-wrap{width:100%;overflow-x:auto}.tool-table{border-collapse:collapse;background:#fff;width:100%}.tool-table th,.tool-table td{text-align:left;border:1px solid var(--border);padding:10px 12px}.tool-table th{background:var(--surface-soft);width:130px}.tool-copy{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:8px;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:6px;display:inline-flex}.tool-pair{grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;display:grid}.tool-divider{color:var(--muted);font-weight:800}.tool-faq{margin-top:34px}.tool-faq h2{margin-bottom:16px}.tool-faq details{border-top:1px solid var(--border);padding:16px 0}.tool-faq details:last-child{border-bottom:1px solid var(--border)}.tool-faq summary{cursor:pointer;font-weight:750}.tool-faq details p{color:var(--muted)}.tool-loader{border:4px solid #d7d3cc;border-top-color:var(--primary);border-radius:50%;width:34px;height:34px;margin:4px auto 12px;animation:1s linear infinite tool-spin}@keyframes tool-spin{to{transform:rotate(360deg)}}.tool-map{border-radius:8px;width:100%;height:300px;margin-top:14px}.tool-stats{grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px;display:grid}.tool-stat{text-align:center;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px;padding:14px 8px}.tool-stat span{font-variant-numeric:tabular-nums;font-size:1.35rem;font-weight:800;display:block}.tool-prompt-wrap{position:relative}.tool-prompt{color:#555d69;background:var(--surface-soft);border:1px solid var(--border);text-align:left;white-space:normal;border-radius:10px;min-height:170px;padding:24px;font-size:clamp(1.15rem,3vw,1.45rem);line-height:1.8;overflow-y:auto}.tool-prompt span.correct{color:#15803d}.tool-prompt span.incorrect{color:#dc2626;text-decoration:underline}.tool-page .tool-status-loading{color:var(--muted);animation:1.4s ease-in-out infinite tool-status-pulse}.tool-page .tool-status-error{color:#b91c1c;font-weight:700}@keyframes tool-status-pulse{50%{opacity:.45}}.tool-progress{color:var(--muted);font-size:.85rem;position:absolute;top:8px;right:12px}.tool-leaderboard-link{color:var(--primary);margin-top:14px;font-weight:750;display:inline-block}.tool-result-screen{z-index:80;background:#111827c7;place-items:center;padding:18px;display:grid;position:fixed;inset:0;overflow-y:auto}.tool-result-screen.hidden{display:none}.tool-result-screen>.tool-panel{width:min(100%,520px)}.tool-result-dialog{width:min(100%,520px);box-shadow:var(--shadow);text-align:center;background:#fff;border-radius:14px;padding:clamp(24px,5vw,38px)}.tool-result-dialog h2{margin-top:0;font-size:clamp(1.75rem,6vw,2.5rem)}.tool-result-dialog .hidden{display:none}.tool-result-dialog .tool-stack{margin-top:18px}.tool-actions{flex-wrap:wrap;gap:8px;display:flex}.tool-download{margin-top:10px;display:inline-flex}.tool-download.d-none{display:none}.tool-range{width:100%;min-height:44px}.tool-code{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}@media (width<=680px){.tool-page{padding:24px 0 60px}.tool-grid{grid-template-columns:1fr}.tool-panel--wide{grid-column:auto}.tool-pair{grid-template-columns:1fr}.tool-divider{text-align:center}.tool-stats{gap:6px}.tool-stat{font-size:.78rem}.tool-stat span{font-size:1.08rem}.tool-controls .tool-button{width:100%}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,:before,:after{transition-duration:.01ms!important}.tool-loader{animation-duration:.01ms}}.game-page .hidden{display:none!important}.game-page{min-height:70vh;padding:34px 0 80px}.game-shell{max-width:980px}.game-heading{max-width:720px;margin:34px 0 28px}.game-heading h1{letter-spacing:-.045em;margin:0;font-size:clamp(2rem,5vw,3.15rem);line-height:1.15}.game-heading>p:last-child{color:var(--muted);margin:14px 0 0;font-size:1.02rem}.game-toolbar{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-bottom:20px;padding:16px;display:flex}.game-toolbar .leaderboard-link{margin-left:auto}.game-status{flex-wrap:wrap;align-items:center;gap:10px 22px;display:flex}.game-status span{color:var(--muted);font-size:.88rem}.game-status strong{color:var(--ink);font-size:1.22rem;line-height:1.25;display:block}.game-status--stacked{gap:12px;display:grid}.game-control{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.game-control label,.game-control>span{color:var(--muted);font-size:.86rem;font-weight:700}.game-control select,.game-form input{min-height:44px;color:var(--ink);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 12px}.game-option{min-width:44px;min-height:44px;color:var(--ink);background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:8px;padding:7px 10px}.game-option.active{color:#fff;background:var(--orange);border-color:var(--orange)}.game-stage{border:1px solid var(--border);background:#f1eee8;border-radius:14px;place-items:center;padding:clamp(14px,3vw,28px);display:grid;overflow:hidden}.game-stage canvas{touch-action:none;border-radius:8px;max-width:100%;height:auto;display:block}.game-canvas-wrap{width:min(100%,400px);position:relative}.game-canvas-wrap canvas{background:#1a202c;border:4px solid #374151;width:100%}.game-start-message{color:#fff;text-align:center;background:#111827b8;border-radius:5px;place-items:center;padding:20px;display:grid;position:absolute;inset:4px}.game-start-message p{margin:0;font-size:clamp(1rem,4vw,1.35rem);font-weight:750}.game-instructions{color:var(--muted);text-align:center;margin:14px 0 0;font-size:.88rem}.game-board-scroll{width:100%;padding:4px;overflow-x:auto}.game-board-scroll>*{margin-inline:auto}.game-modal{z-index:80;background:#111827c7;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.game-modal__panel{text-align:center;background:var(--surface);width:min(100%,430px);max-height:calc(100vh - 40px);box-shadow:var(--shadow);border-radius:14px;padding:28px;overflow-y:auto}.game-modal__panel h2{margin:0 0 8px;font-size:2rem}.game-form{text-align:left;gap:10px;margin-top:20px;display:grid}.game-form label{color:var(--muted);font-size:.84rem;font-weight:700}.game-form .button{width:100%}.game-message{margin:16px 0;font-weight:700}.game-actions{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.game-actions .button:first-child{grid-column:1/-1}.game-button--danger{color:#fff;background:#dc2626}.game-button--danger:disabled,.button:disabled{cursor:not-allowed;opacity:.48}.game-help{color:var(--muted);margin:0;font-size:.8rem}.game-play-grid{grid-template-columns:minmax(0,2fr) minmax(240px,.8fr);gap:18px;display:grid}.game-side-panel{align-content:start;gap:14px;display:grid}.game-side-panel>*{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}.game-log h2{margin:0 0 8px;font-size:.9rem}.game-log ol{max-height:110px;color:var(--muted);margin:0;padding-left:22px;font-size:.84rem;overflow-y:auto}.game-page--minesweeper #gameBoard{background:#2d3748;border:3px solid #374151;width:max-content;display:grid}.game-page--minesweeper .cell{color:#111827;cursor:pointer;-webkit-user-select:none;user-select:none;background:#94a3b8;border:1px solid #475569;place-items:center;width:25px;height:25px;padding:0;font-size:.9rem;font-weight:800;display:grid}.game-page--minesweeper .cell.revealed{background:#e2e8f0}.game-page--minesweeper .cell.mine{background:#ef4444}.game-page--minesweeper .cell.flagged{background-color:#94a3b8;background-image:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><text y=\".9em\" font-size=\"90\">🚩</text></svg>");background-position:50%;background-repeat:no-repeat;background-size:contain}.game-page--minesweeper .color-1{color:#2563eb}.game-page--minesweeper .color-2{color:#15803d}.game-page--minesweeper .color-3{color:#c2410c}.game-page--minesweeper .color-4{color:#7e22ce}.game-page--minesweeper .color-5{color:#dc2626}.game-page--minesweeper .color-6{color:#0f766e}.game-page--minesweeper .color-7{color:#be185d}.game-page--minesweeper .color-8{color:#475569}.game-page--sudoku #sudoku-board{aspect-ratio:1;background:#334155;border:3px solid #334155;grid-template:repeat(9,1fr)/repeat(9,1fr);width:min(100%,450px);display:grid}.game-page--sudoku .row{display:contents}.game-page--sudoku .cell{color:#111827;-webkit-user-select:none;user-select:none;background:#f8fafc;border:1px solid #94a3b8;place-items:center;min-width:0;font-size:clamp(1rem,5vw,1.45rem);font-weight:700;display:grid}.game-page--sudoku .cell.given{color:#1e293b;background:#e2e8f0}.game-page--sudoku .cell.selected{background:#bae6fd}.game-page--sudoku .cell.error{background:#fecaca}.game-page--sudoku .cell:nth-child(3n){border-right:3px solid #475569}.game-page--sudoku .cell:nth-child(9n){border-right:0}.game-page--sudoku .row:nth-child(3n) .cell{border-bottom:3px solid #475569}.game-number-palette{grid-template-columns:repeat(5,minmax(44px,1fr));gap:8px;width:min(100%,540px);margin-top:16px;display:grid}.game-key{color:#fff;background:var(--primary);cursor:pointer;border:0;border-radius:8px;min-height:48px;font-size:1.1rem;font-weight:800}.game-key--erase{background:#b91c1c;font-size:.85rem}.game-board-scale{width:min(100%,400px);overflow-x:auto}.game-page--2048 #game-board{touch-action:none;background:#bbada0;border-radius:8px;grid-template:repeat(4,1fr)/repeat(4,1fr);gap:16px;width:400px;height:400px;padding:16px;display:grid;position:relative}.game-page--2048 .cell{background:#cdc1b4;border-radius:4px;height:80px}.game-page--2048 .tile{border-radius:4px;place-items:center;width:80px;height:80px;font-size:2rem;font-weight:850;transition:top .1s ease-in-out,left .1s ease-in-out;display:grid;position:absolute}.game-page--2048 .tile.tile-merged{animation:.2s ease-in-out game-tile-merged}.game-page--2048 .tile.tile-new{animation:.2s ease-in-out game-tile-new}@keyframes game-tile-merged{50%{transform:scale(1.2)}}@keyframes game-tile-new{0%{opacity:.5;transform:scale(.5)}}.game-page--2048 .tile[data-value="2"]{color:#776e65;background:#eee4da}.game-page--2048 .tile[data-value="4"]{color:#776e65;background:#ede0c8}.game-page--2048 .tile[data-value="8"]{color:#fff;background:#f2b179}.game-page--2048 .tile[data-value="16"]{color:#fff;background:#f59563}.game-page--2048 .tile[data-value="32"]{color:#fff;background:#f67c5f}.game-page--2048 .tile[data-value="64"]{color:#fff;background:#f65e3b}.game-page--2048 .tile[data-value="128"],.game-page--2048 .tile[data-value="256"],.game-page--2048 .tile[data-value="512"],.game-page--2048 .tile[data-value="1024"],.game-page--2048 .tile[data-value="2048"]{color:#fff;background:#d9a514;font-size:1.55rem}.game-page--2048 .tile[data-value="4096"]{color:#fff;background:#3c3a32;font-size:1.45rem}.game-page--archery .game-stage{background:#071827;padding:8px}.game-page--archery #gameCanvas{aspect-ratio:720/520;width:100%}@media (width<=900px){.game-play-grid{grid-template-columns:1fr}}@media (width<=680px){.game-page{padding-top:20px}.game-toolbar{align-items:stretch}.game-toolbar .leaderboard-link{width:100%;margin-left:0}.game-status{justify-content:space-between;width:100%}.game-control{width:100%}.game-control select{flex:1}.game-stage{padding:10px}.game-modal__panel{padding:22px}}@media (prefers-reduced-motion:reduce){.game-page--2048 .tile{transition:none!important;animation:none!important}}.admin-page{color:#f9fafb;background:#111827;min-height:100vh;margin:0;padding:24px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.admin-page--login{place-items:center;display:grid}.admin-shell{width:min(100%,1024px);margin-inline:auto}.admin-login-shell{width:min(100%,448px)}.admin-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.admin-title{margin:0;font-size:clamp(1.75rem,5vw,2rem);line-height:1.2}.admin-title--centered{text-align:center;margin-bottom:24px}.admin-card{background:#1f2937;border-radius:10px;box-shadow:0 12px 30px #0000003d}.admin-form{gap:16px;padding:clamp(24px,7vw,32px);display:grid}.admin-field{gap:8px;display:grid}.admin-field label{color:#d1d5db;font-size:.875rem}.admin-input{color:#fff;background:#374151;border:1px solid #4b5563;border-radius:6px;width:100%;min-height:44px;padding:9px 14px}.admin-input:focus{outline-offset:1px;border-color:#60a5fa;outline:3px solid #60a5fa40}.admin-button{color:#fff;cursor:pointer;border:0;border-radius:8px;min-height:44px;padding:9px 16px;font-weight:700}.admin-button--full{width:100%}.admin-button--primary{background:#2563eb}.admin-button--primary:hover{background:#1d4ed8}.admin-button--success{background:#16a34a}.admin-button--success:hover{background:#15803d}.admin-link-button{color:#f87171;cursor:pointer;font:inherit;background:0 0;border:0;padding:4px;font-weight:700}.admin-link-button:hover{color:#fca5a5}.admin-message{margin:0;font-size:.875rem}.admin-message--error{color:#f87171}.admin-notice{border:1px solid;border-radius:8px;margin-bottom:16px;padding:12px 16px}.admin-notice--success{color:#dcfce7;background:#14532da6;border-color:#16a34a}.admin-notice--error{color:#fee2e2;background:#7f1d1da6;border-color:#dc2626}.admin-add-section{margin-bottom:24px;padding:24px}.admin-section-title{margin:0;font-size:1.25rem}.admin-add-section .admin-section-title{margin-bottom:16px}.admin-add-form{grid-template-columns:160px minmax(0,1fr) auto;gap:12px;display:grid}.admin-language-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.admin-language-card{overflow:hidden}.admin-language-header{background:#374151;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.admin-muted{color:#d1d5db;font-size:.875rem}.admin-sentence-list>*+*{border-top:1px solid #374151}.admin-sentence{align-items:flex-start;gap:12px;padding:16px;display:flex}.admin-sentence.is-inactive{opacity:.5}.admin-sentence p{overflow-wrap:anywhere;flex:1;margin:0;font-size:.875rem;line-height:1.5}.admin-empty{color:#9ca3af;text-align:center;margin:0;padding:24px}@media (width<=760px){.admin-page{padding:16px}.admin-add-form,.admin-language-grid{grid-template-columns:1fr}.admin-add-form .admin-button{width:100%}}
