.numbers-game,.strategy-game{--ng-ink:#22362e;--ng-green:#d8f682;--ng-purple:#7950dd;--ng-cream:#faf9ed;color:var(--ng-ink);font-family:inherit}.numbers-game *,.strategy-game *{box-sizing:border-box}.ng-header{margin-bottom:25px}.ng-eyebrow{display:inline-flex;align-items:center;font-size:10px;font-weight:850;letter-spacing:1.7px;color:#6e6a85;background:#f0edf8;border:1px solid #e4def3;border-radius:7px;padding:7px 10px}.ng-header h3{font-size:clamp(23px,3vw,34px);line-height:1.15;letter-spacing:-1px;margin:12px 0 10px;color:var(--ng-ink)}.ng-header p{font-size:14px;line-height:1.65;max-width:750px;margin:0;color:#627168}.ng-target-layout,.ng-rule-layout,.ng-strategy-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:22px}.ng-workbench,.ng-rule-main,.ng-stone-arena{background:#f6f8ed;border:1px solid #e2e7d9;border-radius:21px;padding:25px;min-width:0}.ng-target-orb{position:relative;margin:0 auto 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;width:134px;height:134px;border-radius:50%;background:#d8f682;box-shadow:0 0 0 8px #e8f4c4,0 0 0 9px #c7db9a,0 14px 22px #7c965222;animation:ng-bob 5s ease-in-out infinite}.ng-target-orb span{font-size:10px;font-weight:900;letter-spacing:2px}.ng-target-orb strong{font-size:52px;line-height:1.12;letter-spacing:-2px}.ng-target-orb i{position:absolute;right:-10px;top:12px;font-style:normal;color:#7653ce;font-size:32px;animation:ng-spin 12s linear infinite}.ng-how{text-align:center;font-size:12px;color:#677365;max-width:390px;margin:0 auto 18px;line-height:1.6}.ng-cards{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;min-height:100px}.ng-number-card{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;background:white;border:2px solid #e2e7da;border-radius:14px;min-width:78px;max-width:220px;padding:18px 13px 12px;cursor:pointer;color:var(--ng-ink);font-family:inherit;box-shadow:0 5px 0 #dce3d4;transition:transform .2s,border-color .2s,box-shadow .2s;animation:ng-card-in .3s ease both}.ng-number-card strong{font-size:32px;line-height:1.2;font-weight:850;letter-spacing:-1px}.ng-number-card small{font-size:9px;color:#83917d;font-weight:650;margin-top:8px;max-width:150px;overflow-wrap:anywhere}.ng-number-card:hover{transform:translateY(-4px);border-color:#a8bd82}.ng-number-card.is-selected{background:#efe9ff;border-color:#9171d8;box-shadow:0 5px 0 #cbb9ec;transform:translateY(-5px)}.ng-number-card.is-combined{background:#f4f0ff}.ng-card-order{position:absolute;right:7px;top:5px;font-size:10px;color:#8573a4;font-weight:800}.ng-selection{font-size:12px;text-align:center;min-height:24px;line-height:1.5;margin:18px 0 10px;font-weight:650;color:#6b637b}.ng-operators{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}.ng-operator{width:47px;height:47px;display:grid;place-items:center;font-family:inherit;font-size:27px;font-weight:700;color:#554075;background:#e9dffb;border:1px solid #d4c1ef;border-radius:11px;cursor:pointer;transition:.18s}.ng-operator:hover:enabled{background:#d8c6f6;transform:translateY(-3px)}.ng-operator:disabled,.ng-swap:disabled{opacity:.42;cursor:not-allowed}.ng-swap{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:23px;background:transparent;border:0;color:#6e6877;cursor:pointer}.ng-swap span{font-size:8px;max-width:60px;font-family:inherit}.ng-actions{display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:25px}.numbers-game .game-btn,.strategy-game .game-btn{display:inline-flex;gap:15px;align-items:center;justify-content:center;font-family:inherit;font-size:12px;font-weight:800;border:1px solid #b5d071;border-radius:10px;padding:12px 15px;background:var(--ng-green);color:#263b22;cursor:pointer;box-shadow:0 3px 0 #b1c877;transition:.18s}.numbers-game .game-btn:hover:enabled,.strategy-game .game-btn:hover:enabled{background:#cbec70;transform:translateY(-2px);box-shadow:0 5px 0 #b1c877}.numbers-game .game-btn:disabled,.strategy-game .game-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.ng-soft{font-family:inherit;display:inline-flex;align-items:center;justify-content:center;padding:9px 10px;border:1px solid #dce2d3;border-radius:8px;background:#fff9;color:#63705a;font-size:11px;font-weight:700;cursor:pointer;transition:.2s}.ng-soft:hover:enabled{background:#fff;transform:translateY(-1px)}.ng-soft:disabled{opacity:.4;cursor:not-allowed}.ng-notebook,.ng-rule-lab,.ng-strategy-notebook{border:1px solid #e3dded;background:#fbf8ff;border-radius:21px;padding:23px;min-width:0}.ng-notebook-title{display:block;font-size:12px;font-weight:850;letter-spacing:.2px;color:#69527e;margin-bottom:15px}.ng-steps,.ng-move-history{list-style:none;margin:0;padding:0;counter-reset:ng-step}.ng-steps li{counter-increment:ng-step;display:flex;gap:9px;align-items:center;font-size:12px;font-weight:700;padding:12px 0;border-bottom:1px dashed #e4ddeb;animation:ng-card-in .25s ease}.ng-steps li:before{content:counter(ng-step);background:#e9def8;color:#7a5c99;width:22px;height:22px;border-radius:6px;font-size:10px;display:grid;place-items:center;flex-shrink:0}.ng-steps li.ng-empty-step:before{content:'·'}.ng-empty-step{color:#a69ab2!important;font-size:11px!important;font-weight:500!important;line-height:1.6}.ng-coach{border-top:1px solid #e4ddeb;margin-top:22px;padding-top:19px}.ng-coach>span{font-size:11px;font-weight:800;color:#94713f}.ng-coach p{font-size:12px;line-height:1.7;color:#776e80}.ng-feedback{margin:15px 0 0;min-height:21px;font-size:12px;line-height:1.65;color:#7b6746;transition:.2s}.ng-feedback:not(:empty){background:#fff7e4;border:1px solid #f0dfb9;border-radius:10px;padding:11px 13px}.ng-feedback.is-success{background:#edf8db;border-color:#c8e3aa;color:#3c662d}.ng-completed .ng-target-orb{box-shadow:0 0 0 10px #e8f4c4,0 0 30px #b4d678;animation:ng-bob 3s ease-in-out infinite}.ng-machine{display:flex;align-items:center;justify-content:center;gap:12px;padding:20px 0 27px}.ng-machine-port{display:flex;flex-direction:column;gap:7px;text-align:center;min-width:45px}.ng-machine-port span{font-size:9px;letter-spacing:1px;color:#7b866d;font-weight:800}.ng-machine-port strong{font-size:31px;font-weight:850;letter-spacing:-1px}.ng-machine-arrow{color:#a5b989;font-size:27px;animation:ng-arrow 2s ease-in-out infinite}.ng-machine-core{position:relative;background:#e7ddfa;border:2px solid #cab4e9;border-radius:21px;min-height:119px;width:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 8px 0 #d6c4eb;color:#71528d}.ng-machine-core strong{font-size:44px;line-height:1.1}.ng-machine-core small{font-size:7px;letter-spacing:1px;font-weight:900;margin-top:5px}.ng-gear{position:absolute;left:-14px;top:-13px;font-size:30px;animation:ng-spin 14s linear infinite;color:#6d8b52}.ng-machine-core.is-processing{animation:ng-machine-process .6s ease}.ng-probe-form>label{font-size:12px;font-weight:800;display:block;margin-bottom:10px}.ng-probe-form>div{display:flex;gap:8px}.ng-probe-form input,.ng-predictions input{font-family:inherit;padding:10px 12px;border:1px solid #ced8c3;background:#fff;border-radius:9px;font-size:19px;font-weight:800;color:var(--ng-ink);width:100%;min-width:0}.ng-probe-form input{max-width:140px}.ng-probe-form small{display:block;font-size:10px;line-height:1.65;color:#7c8974;margin-top:10px}.ng-observations{margin-top:25px}.ng-observation-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:235px;overflow:auto;padding:2px}.ng-observation{display:flex;gap:7px;align-items:center;background:#fff;border:1px solid #e2e7d8;border-radius:9px;padding:10px 9px;font-size:13px;animation:ng-card-in .3s ease}.ng-observation small{font-size:9px;color:#8d9687;margin-right:auto}.ng-observation>span{color:#a0b38d}.ng-rule-candidate{display:flex;gap:8px;align-items:flex-start;background:#fff;border:1px solid #dfd5ee;border-radius:10px;padding:12px 10px;margin-bottom:8px;cursor:pointer;transition:.2s}.ng-rule-candidate input{accent-color:#8c67c3;margin:2px 0}.ng-rule-candidate>span{flex:1;min-width:0}.ng-rule-candidate strong{display:block;font-size:12px;color:#654b7a;margin-bottom:5px}.ng-rule-candidate small{display:block;font-size:10px;color:#9a8ca5;line-height:1.5}.ng-candidate-state{font-size:12px;color:#8faa6c}.ng-rule-candidate.is-eliminated{opacity:.43;border-style:dashed}.ng-rule-candidate.is-eliminated .ng-candidate-state{color:#b58b93}.ng-survivor-count{font-size:10px;line-height:1.6;color:#8b739e}.ng-formula-builder{display:flex;flex-direction:column;gap:10px;margin:15px 0 25px}.ng-formula-builder>span{font-size:11px;color:#9c8ea5}.ng-formula-builder select,.ng-discovery select{width:100%;font-family:inherit;font-weight:750;color:#6c4e82;font-size:12px;background:#fff;border:1px solid #dccde9;border-radius:8px;padding:10px}.ng-predictions{margin-top:23px;padding-top:19px;border-top:1px solid #e3d9ed}.ng-predictions>p{font-size:11px;line-height:1.65;color:#95839e}.ng-predictions label{display:flex;gap:10px;align-items:center;margin:9px 0}.ng-predictions label>span{font-size:12px;font-weight:700;color:#7b648d;min-width:90px}.ng-predictions input{font-size:16px;max-width:110px;border-color:#ddceeb}.ng-rule-check{margin:16px 0 10px;width:100%}.ng-rule-lab>[data-ng-action="rule-reset"]{width:100%}.ng-players{display:flex;align-items:center;justify-content:space-between;gap:10px}.ng-player{display:flex;gap:9px;align-items:center;padding:10px 13px;border:1px solid transparent;border-radius:12px;transition:.3s;opacity:.58}.ng-player>span{display:grid;place-items:center;font-size:27px;width:43px;height:43px;background:white;border:1px solid #e5e8dc;border-radius:12px}.ng-player small{display:block;font-size:8px;letter-spacing:1px;color:#95a085;font-weight:800;margin-bottom:4px}.ng-player strong{font-size:14px;color:#45603c}.ng-player.is-active{background:#e8f2cd;border-color:#c6db9e;opacity:1;transform:translateY(-2px)}.ng-player.is-active>span{animation:ng-bob 3s ease-in-out infinite}.ng-versus{font-size:10px;font-weight:900;color:#b5beaa}.ng-stone-counter{text-align:center;margin:22px 0 18px}.ng-stone-counter strong{display:block;font-size:53px;line-height:1.1;letter-spacing:-2px;font-weight:900;color:#435b36}.ng-stone-counter span{font-size:8px;letter-spacing:2px;font-weight:850;color:#91a47e}.ng-stones{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;max-width:350px;margin:0 auto;min-height:115px;align-content:center}.ng-stone{display:grid;place-items:center;width:100%;aspect-ratio:1.3;font-size:31px;color:#9566d6;background:linear-gradient(135deg,#f4ebff,#dfcaf5);border:1px solid #cdb4e5;border-radius:13px;box-shadow:0 4px 0 #c6b2da;animation:ng-stone-float 4s ease-in-out infinite;animation-delay:calc(var(--stone-index)*-.27s);transition:opacity .35s,transform .35s,filter .35s}.ng-stone.is-collected{opacity:.14;box-shadow:none;filter:grayscale(1);transform:scale(.65);animation:none}.ng-turn-status{font-size:12px;font-weight:800;text-align:center;line-height:1.65;min-height:40px;display:flex;align-items:center;justify-content:center;color:#6a7a5d;margin:23px 0 15px}.ng-first-choice{display:flex;gap:13px;align-items:center;justify-content:center;flex-wrap:wrap;background:#fff9;border:1px solid #e2e7d6;padding:12px;border-radius:12px;transition:.2s}.ng-first-choice>span{font-size:10px;font-weight:800;color:#8a957c}.ng-first-choice label{font-size:12px;font-weight:700;color:#6b785e;display:flex;gap:4px;align-items:center}.ng-first-choice input{accent-color:#789c4c}.ng-first-choice.is-playing{opacity:.55}.ng-first-choice .game-btn{font-size:10px;padding:9px 12px}.ng-take-actions{display:flex;gap:10px;justify-content:center;margin:18px 0 15px}.ng-take{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 21px;background:#d8f682;border:1px solid #b7d474;border-radius:12px;box-shadow:0 4px 0 #b6ce7a;color:#3b562b;font-family:inherit;cursor:pointer;transition:.2s}.ng-take strong{font-size:24px;font-weight:850;line-height:1.1}.ng-take span{font-size:9px;font-weight:800}.ng-take:hover:enabled{transform:translateY(-4px);box-shadow:0 8px 0 #b6ce7a}.ng-take:disabled{opacity:.4;box-shadow:none;cursor:not-allowed}.ng-stone-arena>[data-ng-action="restart"]{display:flex;margin:0 auto}.ng-ai-explanation{margin-top:20px;font-size:10px;line-height:1.7;color:#87947b}.ng-ai-explanation summary{cursor:pointer;font-weight:750;color:#7b896e}.ng-ai-explanation p{margin-bottom:0}.ng-move-history{max-height:235px;overflow:auto}.ng-move-history li{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px dashed #e3d9ed;font-size:11px;color:#826d91;animation:ng-card-in .3s ease}.ng-move-history small{color:#af9bbb;white-space:nowrap}.ng-discovery{border-top:1px solid #e3d9ed;margin-top:20px;padding-top:20px}.ng-discovery>p{font-size:10px;line-height:1.7;color:#9a88a6}.ng-discovery>label{display:block;font-size:10px;line-height:1.65;font-weight:750;color:#7e658e;margin:14px 0}.ng-discovery select{margin-top:6px;font-size:11px}.ng-discovery .game-btn{width:100%;margin-top:4px}.ng-discovery .ng-soft{margin-top:10px}.ng-discovery>.ng-strategy-hint{font-size:11px;color:#947144}.numbers-game button:focus-visible,.numbers-game input:focus-visible,.numbers-game select:focus-visible,.strategy-game button:focus-visible,.strategy-game input:focus-visible,.strategy-game select:focus-visible{outline:3px solid #9371d9;outline-offset:3px}.ng-completed .ng-stone-counter strong{color:#8b5dc1}.ng-completed .ng-stone-counter{animation:ng-bob 3s ease-in-out infinite}@keyframes ng-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes ng-spin{to{transform:rotate(360deg)}}@keyframes ng-card-in{from{opacity:0;transform:translateY(8px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ng-arrow{0%,100%{opacity:.45;transform:translateX(0)}50%{opacity:1;transform:translateX(3px)}}@keyframes ng-machine-process{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-5deg)}40%,80%{transform:rotate(5deg)}}@keyframes ng-stone-float{0%,100%{translate:0 0}50%{translate:0 -4px}}@media(max-width:850px){.ng-target-layout,.ng-rule-layout,.ng-strategy-layout{grid-template-columns:minmax(0,1fr)}.ng-notebook,.ng-rule-lab,.ng-strategy-notebook{padding:19px}.ng-notebook .ng-steps{display:flex;gap:15px;flex-wrap:wrap}.ng-notebook .ng-steps li{border:0}.ng-coach{margin-top:12px}.ng-rule-lab{display:block}.ng-strategy-notebook .ng-move-history{max-height:160px}.ng-workbench,.ng-rule-main,.ng-stone-arena{padding:21px}}@media(max-width:480px){.ng-workbench,.ng-rule-main,.ng-stone-arena{padding:16px 12px}.ng-number-card{min-width:66px;padding:18px 10px 12px}.ng-number-card strong{font-size:28px}.ng-cards{gap:8px}.ng-machine{gap:7px}.ng-machine-core{width:110px;min-height:105px}.ng-machine-port strong{font-size:27px}.ng-observation-rows{grid-template-columns:1fr 1fr}.ng-observation{gap:5px;padding:9px 7px}.ng-observation small{font-size:8px}.ng-player{padding:7px;gap:6px}.ng-player>span{width:35px;height:35px;font-size:23px}.ng-stones{gap:8px}.ng-stone{font-size:25px;border-radius:10px}.ng-header h3{font-size:24px}.ng-take{padding:11px 19px}}@media(prefers-reduced-motion:reduce){.numbers-game *,.strategy-game *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.numbers-game,.strategy-game{container-type:inline-size;container-name:ng-game}
@container ng-game (max-width:650px){.ng-target-layout,.ng-rule-layout,.ng-strategy-layout{grid-template-columns:minmax(0,1fr)}.ng-notebook,.ng-rule-lab,.ng-strategy-notebook{padding:19px}.ng-notebook .ng-steps{display:flex;gap:15px;flex-wrap:wrap}.ng-notebook .ng-steps li{border:0}.ng-workbench,.ng-rule-main,.ng-stone-arena{padding:21px}.ng-coach{margin-top:12px}}
@container ng-game (max-width:380px){.ng-workbench,.ng-rule-main,.ng-stone-arena{padding:16px 12px}.ng-machine{gap:5px}.ng-machine-core{width:94px;min-height:99px}.ng-machine-port{min-width:35px}.ng-machine-arrow{font-size:20px}.ng-machine-port strong{font-size:25px}.ng-machine-core small{font-size:6px}.ng-observation-rows{grid-template-columns:minmax(0,1fr)}.ng-player{gap:6px;padding:7px}.ng-player>span{width:35px;height:35px;font-size:23px}.ng-header h3{font-size:24px}}
