.p-shell{max-width:1000px;margin:24px auto;padding:clamp(16px,4vw,40px);background:#092d20;color:#f2f7ef;border-radius:20px;min-height:70vh}.p-shell a{color:#c7f36a}.p-shell h1{font-size:clamp(32px,5vw,54px);letter-spacing:-1.5px}.p-shell h2{font-size:22px}.p-controls,.p-nav,.p-stats{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.p-nav{border-bottom:1px solid #476b55;padding-bottom:16px}.p-kicker{color:#c7f36a;font-size:12px;letter-spacing:2px}.p-card,.p-panel{background:#16432e;border:1px solid #52745c;border-radius:14px;padding:clamp(12px,3vw,24px)}.p-controls select{font:inherit;padding:6px;border-radius:6px}.p-grid{display:grid;grid-gap:5px;gap:5px;max-width:540px;margin:18px auto}.p-grid button{aspect-ratio:1;min-width:0;padding:0;border:1px solid #789681;border-radius:5px;background:#24583e;color:white;font-weight:700;font-size:clamp(15px,4vw,30px);touch-action:manipulation}.p-grid button:disabled{opacity:.3}.p-primary,.p-secondary{border:1px solid #c7f36a;border-radius:8px;padding:10px 18px;font-weight:700}.p-primary{background:#c7f36a;color:#092d20}.p-secondary{background:transparent;color:#eaf6e6}.p-result strong{font-size:48px;color:#c7f36a}.p-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));grid-gap:14px;gap:14px}.p-card{display:flex;flex-direction:column;gap:8px;text-decoration:none}.p-card strong{font-size:22px;color:white}.p-card span{color:#d4e5d7}.p-shell :focus-visible{outline:3px solid #c7f36a;outline-offset:3px}.p-history{padding-left:20px}.p-stats{margin-top:18px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}@media(max-width:480px){.p-shell{margin:0;border-radius:0}.p-grid{gap:3px}}.p-reaction{display:block;width:100%;min-height:190px;margin:16px 0;border:2px solid #789681;border-radius:14px;background:#24583e;color:white;font:inherit;font-size:clamp(20px,4vw,32px);font-weight:700;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.p-reaction-early,.p-reaction-wait{background:#842e32}.p-reaction-signal{background:#16743b}.p-reaction-trials{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:5px;gap:5px;margin:16px 0}.p-reaction-trials>div{min-width:0;background:#103522;padding:8px 4px;border-radius:6px;display:flex;flex-direction:column;gap:5px;text-align:center;font-size:clamp(11px,2vw,16px)}.p-reaction-bar{height:5px;background:#c7f36a;border-radius:4px}.p-memory-display,.p-memory-form{display:flex;flex-direction:column;align-items:center;gap:16px;padding:20px 0}.p-memory-display strong{font-size:clamp(24px,5vw,48px);letter-spacing:.08em;color:#c7f36a;overflow-wrap:anywhere;max-width:100%;text-align:center;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.p-memory-display progress{width:min(100%,420px);accent-color:#c7f36a}.p-memory-form input{width:min(100%,420px);box-sizing:border-box;font:inherit;font-size:22px;padding:12px;border-radius:8px;border:1px solid #789681;background:#fff;color:#092d20}.p-memory-wrap{overflow-wrap:anywhere}.p-memory-form button:disabled{opacity:.5}.p-visual-grid button:disabled{opacity:1;cursor:default}.p-visual-grid button.p-v-marked{background:#c7f36a;color:#092d20}.p-visual-grid button.p-v-wrong{background:#842e32;color:white}.p-visual-grid button.p-v-missed{background:#f0c66c;color:#092d20}.p-v-progress{width:100%;accent-color:#c7f36a;margin-bottom:12px}.p-panel .p-primary:disabled{opacity:.5;cursor:not-allowed}.p-panel .p-secondary{margin:6px}.game-rules summary{cursor:pointer;font-weight:700}.game-rules p{line-height:1.6;margin-bottom:0}.game-board.game-sudoku{gap:0;background:white;border:3px solid #222;box-sizing:border-box}.game-sudoku input{width:100%;min-width:0;aspect-ratio:1;text-align:center;padding:0;border:0;border-right:1px solid #888;border-bottom:1px solid #888;border-radius:0;background:white;color:#174a84;font-size:clamp(14px,3vw,25px);box-sizing:border-box}.game-sudoku input.sudoku-fixed{color:#111;font-weight:700;opacity:1;-webkit-text-fill-color:#111}.game-sudoku input:disabled{opacity:1}.game-sudoku input:focus{background:#e1efff;outline:2px solid #4386ce;outline-offset:-2px;z-index:1}.game-board button.pair-found{background:#c7f36a;color:#153e2c;opacity:1}.game-board button.pair-open{background:#e2eee5;color:#153e2c}.game-board button.nonogram-fill{background:#c7f36a;color:#153e2c}.game-board button.nonogram-mark{background:#173d2d;color:#e9eee9}.game-board.game-2048 button.tile{display:grid;place-items:center;position:relative}.game-2048 .tile span{display:block}.game-2048 .tile-motion{animation:tile-slide .15s ease-out}@keyframes tile-slide{0%{transform:translate(var(--tile-x),var(--tile-y));opacity:.65}to{transform:translate(0);opacity:1}}@media(prefers-reduced-motion:reduce){.game-2048 .tile-motion{animation:none}}.game-2048 button.tile-2{background:#eee4da;color:#302820}.game-2048 button.tile-4{background:#ede0c8;color:#302820}.game-2048 button.tile-8{background:#f2b179;color:#302820}.game-2048 button.tile-16{background:#f59563;color:#302820}.game-2048 button.tile-32{background:#f67c5f;color:#302820}.game-2048 button.tile-64{background:#f65e3b;color:#302820}.game-2048 button.tile-128{background:#edcf72;color:#302820}.game-2048 button.tile-256{background:#edcc61;color:#302820}.game-2048 button.tile-512{background:#edc850;color:#302820}.game-2048 button.tile-1024{background:#edc53f;color:#302820}.game-2048 button.tile-2048{background:#edc22e;color:#302820}.quiz-setup{display:grid;grid-gap:16px;gap:16px;max-width:100%;container-type:inline-size}.quiz-setup-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.quiz-setup-head h2{margin:0}.quiz-duration,.quiz-setup-head>span{color:#c2d6c7;font-size:14px}.quiz-count{min-width:0;border:0;padding:0;margin:0}.quiz-count legend{font-weight:600;margin-bottom:10px;padding:0}.quiz-count-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.quiz-count-option,.quiz-timer{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #789681;border-radius:10px;background:#103522;cursor:pointer;min-width:0;box-sizing:border-box}.quiz-count-option:has(input:checked),.quiz-timer:has(input:checked){border-color:#c7f36a;background:#24583e}.quiz-count-option input,.quiz-timer input{accent-color:#c7f36a;width:20px;height:20px;flex:0 0 20px;margin:0}.quiz-count-option span,.quiz-timer span{display:grid;grid-gap:4px;gap:4px;min-width:0}.quiz-count-option strong{font-size:22px}.quiz-setup small{font-size:13px;color:#d4e5d7;line-height:1.4}.quiz-duration{margin:0}.quiz-start{width:100%;min-height:48px;font:inherit;font-weight:700;cursor:pointer}.quiz-start:hover{background:#d5ff8a}.p-panel>p[role=status]:empty{display:none}@container (max-width:340px){.quiz-count-options{grid-template-columns:1fr}}.p-shell .p-setup{display:grid;grid-gap:16px;gap:16px;margin-top:20px}.p-shell .p-duration{border:0;padding:0;margin:0;min-width:0}.p-shell .p-duration legend{font-weight:650;margin-bottom:12px;padding:0}.p-shell .p-duration-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));grid-gap:10px;gap:10px}.p-shell .p-duration-options label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px;border:1px solid #789681;border-radius:10px;background:#103522;cursor:pointer;box-sizing:border-box}.p-shell .p-duration-options label:has(input:checked){border-color:#c7f36a;background:#24583e}.p-shell .p-duration-options input{accent-color:#c7f36a;width:18px;height:18px;margin:0;flex-shrink:0}.p-shell .p-setup-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));grid-gap:14px;gap:14px;align-items:end}.p-shell .p-setup-controls label{display:grid;grid-gap:8px;gap:8px;min-width:0;font-weight:600}.p-shell .p-setup-controls select{width:100%;min-height:48px;box-sizing:border-box;padding:10px 12px;background:#103522;color:#f2f7ef;border:1px solid #789681;border-radius:10px;color-scheme:dark;font:inherit}.p-shell .p-setup-controls select:disabled{opacity:.65;cursor:not-allowed}.p-shell .p-setup-controls button,.p-shell .p-start{min-height:48px;width:100%;font:inherit;font-weight:700;cursor:pointer;box-sizing:border-box}.p-shell .p-panel fieldset:has(>label>input[type=radio]){min-width:0;border:0;padding:0;margin:16px 0}.p-shell .p-panel fieldset>label:has(>input[type=radio]){display:flex!important;align-items:center;gap:10px;padding:12px!important;margin:8px 0;border:1px solid #789681;border-radius:10px;background:#103522;cursor:pointer;min-height:44px;box-sizing:border-box}.p-shell .p-panel fieldset>label:has(>input:checked){border-color:#c7f36a;background:#24583e}.p-shell .p-panel fieldset>label>input[type=radio]{accent-color:#c7f36a;width:18px;height:18px;flex-shrink:0;margin:0}.p-shell .p-panel textarea{box-sizing:border-box;max-width:100%;padding:12px;border:1px solid #789681;border-radius:10px;background:#103522;color:#f2f7ef;font:inherit;resize:vertical}.p-shell{--muted:#f2f7ef}.p-shell .fineprint,.p-shell .lead,.p-shell .prompt,.p-shell .tiny-label{color:#fff}