:root{font-family:Arial,Helvetica,sans-serif;color:#292722;background:#f8f6ef;font-synthesis:none;font-weight:400;--ink:#292722;--muted:#67645c;--pink:#ed87a8;--blue:#6bc2d8;--yellow:#ffd400;--green:#5fba2b;--line:#dedbd2}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer;min-height:56px;padding:12px 22px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);font-weight:700;transition:background .15s,transform .15s;touch-action:manipulation}button:hover:not(:disabled){background:#efede5}button:active:not(:disabled){transform:translateY(2px)}button:disabled{cursor:default;opacity:.55}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #295f85;outline-offset:4px}.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.primary:hover:not(:disabled){background:#484139}.plain{background:transparent;border-color:transparent}.muted{color:var(--muted);line-height:1.6}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;display:flex;align-items:center;gap:10px}.eyebrow>span{width:8px;height:8px;border-radius:50%;background:var(--green)}h1,h2,p{margin-top:0}h1{font-size:42px;letter-spacing:-1.8px;line-height:1.1;margin-bottom:18px}h2{font-size:20px;letter-spacing:-.5px}header{height:100px;max-width:1440px;margin:auto;padding:22px 48px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-size:26px;letter-spacing:-1.5px;border:0;background:transparent;padding:0;display:flex;align-items:center;gap:10px;white-space:nowrap}.brand>span:first-child{font-size:40px;color:#38332e}.brand .brand-dot{color:#ce456e;margin-left:-9px}.tools{display:flex;gap:8px}.tools button{font-size:12px;border-radius:30px;padding:8px 14px;background:transparent}.tools button[aria-pressed=true]{background:#eae6da;border-color:#aaa294}.home{max-width:1440px;margin:auto;padding:40px 7vw 0;display:grid;grid-template-columns:1.15fr 1fr;position:relative;min-height:calc(100svh - 100px)}.hero-copy{padding-top:32px;z-index:1}.hero-copy h1{font-size:clamp(50px,5.8vw,88px);line-height:1.02;letter-spacing:-4px;margin:30px 0 24px}.hero-copy h1>span{color:#b74166}.hero-copy p{font-size:17px;line-height:1.7;color:var(--muted)}.hero-buttons{display:flex;gap:14px;margin:30px 0}.hero-buttons button{min-height:64px}.hero-buttons span{margin-left:24px}.tags{display:flex;gap:10px}.tags span{font-size:12px;padding:8px 13px;border:1px solid #dcd8cc;border-radius:20px}.hero-art{position:relative;min-height:520px;display:flex;justify-content:center;align-items:center}.art-circle{position:absolute;width:95%;aspect-ratio:1;border-radius:50%;background:#eee8d8;max-width:490px}.hero-art>.mascot{height:440px;max-width:75%;object-fit:contain;position:relative;z-index:2;transform:rotate(5deg);margin-top:20px}.spark{position:absolute;z-index:3;font-size:70px}.s1{left:0;top:9%;color:#bb446b;transform:rotate(12deg)}.s2{right:0;bottom:22%;font-size:56px;color:#447c37}.math-sticker{z-index:3;position:absolute;right:0;top:8%;background:#fff;padding:18px 22px;border-radius:14px;font-size:26px;transform:rotate(8deg);box-shadow:0 8px #00000008}.math-sticker b{color:#3e762e}.hello{position:absolute;left:-10px;bottom:18%;z-index:3;background:var(--yellow);padding:16px 22px;border-radius:18px 18px 0;transform:rotate(-8deg);font-weight:700}.home-bottom{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:25px 0;margin-top:38px;font-size:12px;color:var(--muted);height:75px}.home-bottom b{font-size:24px;vertical-align:middle;margin-left:8px}.page{max-width:1120px;margin:auto;padding:30px 36px 40px}.page>.eyebrow{margin-bottom:16px}.centered{text-align:center}.centered>.eyebrow{justify-content:center}.centered>.plain{margin-left:12px}.segmented{display:inline-flex;background:#ebe8df;border-radius:16px;padding:5px;gap:4px}.segmented button{border:0;background:transparent}.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 2px 6px #0000000a}.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.config-grid.single{grid-template-columns:1fr}.config-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px}.levels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.levels button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:18px 14px;min-height:125px}.levels button>span{color:#8b573a}.levels button b{font-size:15px}.levels button small{font-size:12px;font-weight:400;color:var(--muted)}.levels button[aria-pressed=true]{border:2px solid var(--ink);background:#fff8d9;padding:17px 13px}.field{display:flex;flex-direction:column;gap:10px;font-size:13px;font-weight:700;margin-top:22px}.field select{min-height:56px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#faf9f4;color:var(--ink)}.hint,.checkbox{font-size:13px;color:var(--muted);margin:18px 0 0;min-height:24px}.checkbox{display:flex;align-items:center;gap:10px}.checkbox input{width:24px;height:24px;accent-color:var(--ink)}.setup-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:25px;gap:20px}.setup-bottom>div:first-child{display:flex;gap:18px;align-items:center;font-size:13px}.actions{display:flex;gap:12px;justify-content:center;align-items:center}.rules{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:30px 0;text-align:left}.rules>div{padding:20px;background:#eeece4;border-radius:18px}.rules>div>span{font-size:12px;font-weight:700;color:#817661}.rules h2{margin:12px 0 8px}.rules p{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:0}.rules .rule-note{grid-column:1/-1;text-align:center}.ready-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:30px 0}.ready-card{display:flex;gap:26px;align-items:center;padding:26px;border-radius:24px;background:#e3f1f4;border:1px solid #b6d3d9;text-align:left}.ready-card .mascot{height:180px}.ready-card p{font-size:13px;color:var(--muted)}.team-1.ready-card,.team-1.result-card{background:#f9e8ed;border-color:#e8b8c8}.mascot{object-fit:contain;-webkit-user-select:none;user-select:none}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:26px auto;width:min(700px,100%)}.result-card{background:#e3f1f4;border:1px solid #b6d3d9;border-radius:24px;padding:24px}.result-card .mascot{height:150px;margin-bottom:18px}.result-card strong{font-size:42px}.result-card strong small{font-size:22px;color:var(--muted)}.result-card p,.result-card>span{font-size:13px}.result-card p{margin:5px 0 14px}.winner{position:relative;overflow:hidden}.winner:after{content:"✦ · ✳ · ✦";position:absolute;top:18px;left:10%;right:10%;font-size:28px;color:#855511;pointer-events:none;animation:confetti 1.8s forwards}.celebrate{animation:jump .6s 2}.match header{height:72px;padding-top:8px;padding-bottom:8px}.game{height:calc(100svh - 72px);max-width:1280px;margin:auto;padding:0 28px 16px;display:flex;flex-direction:column;gap:8px}.game-toolbar{height:48px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.5px;font-weight:700}.game-toolbar button{min-height:40px;padding:8px 16px;font-size:12px;letter-spacing:0}.timer{font-size:22px;letter-spacing:1px;background:#fff4c0;padding:7px 20px;border-radius:30px}.rope-scene{flex:1;min-height:90px;max-height:250px;position:relative;padding-top:18px}.rope-caption{position:absolute;top:0;left:10%;right:10%;display:flex;justify-content:space-between;font-size:10px;font-weight:700;color:var(--muted);letter-spacing:.4px}.rope-track{height:calc(100% - 18px);position:relative;overflow:hidden}.center-line{position:absolute;left:50%;height:100%;border-left:2px dashed #c7c1b1}.rope-moving{height:100%;position:relative;display:flex;align-items:center;justify-content:center;transition:transform .35s ease}.rope-moving .mascot{height:100%;max-width:16%;z-index:2}.pull-left{transform:rotate(-7deg)}.pull-right{transform:rotate(7deg)}.rope-line{height:9px;width:36%;border-radius:8px;background:repeating-linear-gradient(60deg,#b78950 0 5px,#d9b681 5px 10px);position:relative;margin-top:25px}.ribbon{position:absolute;left:50%;top:-14px;transform:translate(-50%);background:#b84266;color:#fff;padding:6px 7px 14px;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);font-size:17px}.ticks{display:flex;justify-content:space-between;width:60%;margin:0 auto;font-size:13px;color:#a39b88;height:18px;align-items:center}.ticks .selected{color:#8d3050;font-weight:700;background:#f7d8e3;border-radius:10px;min-width:20px;text-align:center}.players{display:grid;grid-template-columns:1fr 1fr;gap:24px;flex-shrink:0}.player{background:#fff;border:2px solid #adcbd2;border-radius:22px;padding:12px 18px 18px;min-width:0;box-shadow:0 4px #e5e3d9}.player.team-1{border-color:#dfb6c4}.player.active{border-color:#407480}.player.team-1.active{border-color:#a54c70}.player-title{border:0;background:transparent;min-height:30px;width:100%;display:flex;justify-content:space-between;align-items:center;padding:0;font-size:16px;border-radius:4px;color:#285c68}.team-1 .player-title{color:#934664}.player-title small{font-size:11px;margin-left:8px;font-weight:400}.score{font-size:13px}.problem{display:flex;align-items:center;justify-content:center;gap:20px;min-height:76px;margin-top:2px}.task{font-weight:750;font-size:40px;text-align:center;line-height:1}.equals{font-size:28px;color:#817b6e}output{display:flex;align-items:center;justify-content:center;background:#eff6f7;border:2px dashed #a2c4cb;min-width:78px;height:64px;border-radius:14px;font-size:36px;font-weight:700;color:#285c68}.team-1 output{background:#fcf0f4;border-color:#d6adbc;color:#934664}.dots{display:grid;grid-template-columns:repeat(5,16px);gap:8px;justify-content:center;align-content:center}.dots i{height:16px;width:16px;border-radius:50%;background:#326c79}.team-1 .dots i{background:#a04b6c}.visual-add{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:6px;font-size:16px}.visual-add .dots{grid-template-columns:repeat(5,7px);gap:3px}.visual-add .dots i{width:7px;height:7px}.feedback{height:26px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);font-weight:600}.feedback.right{color:#377024}.feedback.wrong{color:#925324}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.keypad button{height:56px;min-height:56px;padding:0;border-radius:12px;font-size:28px;background:#f2f6f6;border-color:#c0d0d2;-webkit-user-select:none;user-select:none;touch-action:none}.team-1 .keypad button{background:#faf1f4;border-color:#dec6cf}.keypad .submit,.team-1 .keypad .submit{background:#292722;color:#fff;border-color:#292722}.keypad .erase{background:transparent;font-size:24px}.keypad button:disabled{opacity:.48}.overlay{position:fixed;inset:0;background:#24231fe0;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);z-index:20;display:flex;align-items:center;justify-content:center;padding:24px}.dialog{background:#f8f6ef;border-radius:28px;padding:38px;width:min(470px,100%);text-align:center;display:flex;flex-direction:column;gap:12px;box-shadow:0 20px 100px #0003}.dialog h1{font-size:30px;margin:8px 0}.dialog p{font-size:15px;line-height:1.6;color:var(--muted)}.dialog-icon{font-size:36px;color:#ad4269}.countdown{color:#fff;text-align:center}.countdown span{font-size:22px}.countdown strong{display:block;font-size:150px;color:var(--yellow)}.notice{background:#fff0be;text-align:center;padding:8px;font-size:13px}.notice button{min-height:35px;margin-left:16px}.board .keypad{gap:12px}.board .keypad button{height:72px;min-height:72px;font-size:36px}.board .problem{min-height:90px}.board .task{font-size:56px}.board .dots{grid-template-columns:repeat(5,20px);gap:9px}.board .dots i{width:20px;height:20px}.board .visual-add .dots{grid-template-columns:repeat(5,7px);gap:3px}.board .visual-add .dots i{width:7px;height:7px}.board .player{padding-bottom:16px}.tug{animation:tug .4s}.is-paused *{animation-play-state:paused!important}.reduced *{animation:none!important;transition:none!important}.mascot-fallback{font-size:80px;color:#a7456b}@keyframes tug{50%{translate:0 -5px}}@keyframes jump{50%{transform:translateY(-12px)}}@keyframes confetti{0%{opacity:1;transform:translateY(-15px)}to{opacity:0;transform:translateY(80px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-height:850px){.game{gap:16px;padding-bottom:24px}.player{padding:20px 26px}.keypad button{height:64px}.problem{min-height:88px}}@media(max-width:1000px){header{padding:14px 24px;height:85px}.brand{font-size:23px}.home{padding:24px 5vw 0;min-height:calc(100svh - 85px)}.hero-copy h1{font-size:62px;letter-spacing:-3px}.hero-art>.mascot{height:340px}.hero-art{min-height:470px}.hello{font-size:12px;left:-25px}.hero-copy p{font-size:15px}.hero-buttons{gap:0}.hero-buttons button{padding:12px 16px;font-size:13px}.hero-buttons span{margin-left:10px}.math-sticker{font-size:20px}.config-card{padding:18px}.levels{gap:6px}.levels button{padding:14px 8px}.levels button[aria-pressed=true]{padding:13px 7px}.levels button b{font-size:13px}.game{padding-left:16px;padding-right:16px}.players{gap:16px}}@media(max-height:700px){.match header{height:60px}.match .brand{font-size:22px}.match .brand>span:first-child{font-size:30px}.match .tools button{min-height:40px}.game{height:calc(100svh - 60px);gap:4px;padding-bottom:8px}.game-toolbar{height:36px}.game-toolbar button{min-height:32px;padding:5px 12px}.timer{font-size:18px;padding:4px 15px}.rope-scene{min-height:60px;padding-top:0}.rope-caption{display:none}.player{padding:8px 12px 10px;border-radius:16px}.player-title{min-height:24px;font-size:13px}.problem{min-height:61px;margin:0;gap:15px}output{height:54px;font-size:32px}.feedback{height:21px;font-size:11px}.hero-copy{padding-top:0}.hero-copy h1{font-size:60px;margin-top:24px}.hero-art{min-height:420px}.hero-art>.mascot{height:340px}.home-bottom{margin-top:12px}.page{padding-top:12px}.ready .rules,.ready-grid{margin:15px 0}.ready-card .mascot{height:140px}.result-card .mascot{height:110px}.result-grid{margin:16px auto}.result-card{padding:16px}.result-card h2{margin-bottom:10px}}@media(max-width:767px){header{height:auto;flex-wrap:wrap;padding:16px 20px;gap:8px}.brand{font-size:24px}.tools button{min-height:40px;font-size:11px}.home{display:flex;flex-direction:column;padding:25px}.hero-copy h1{font-size:58px}.hero-art{min-height:390px;margin-top:20px}.hero-art>.mascot{height:310px}.art-circle{width:300px}.hello{left:0}.math-sticker{right:10px}.home-bottom{font-size:10px;gap:15px}.page{padding:20px}.page h1{font-size:32px}.config-grid,.ready-grid,.result-grid{grid-template-columns:1fr}.setup-bottom{flex-direction:column;align-items:stretch}.setup-bottom>div:first-child{justify-content:space-between}.rules{grid-template-columns:1fr;gap:12px}.rules>div{padding:15px}.rules h2{margin:5px 0}.segmented button{padding:10px;font-size:12px}.actions{flex-wrap:wrap}.ready-card .mascot{height:130px}.centered>.plain{margin:12px 0}.hero-buttons{gap:10px}}@media(min-width:768px)and (max-height:600px){.match header{height:48px;padding:4px 16px}.match .tools button{min-height:36px;padding:5px 10px}.game{height:calc(100svh - 48px);gap:3px;padding-bottom:6px}.game-toolbar{height:28px}.game-toolbar button{min-height:28px}.rope-scene{min-height:32px}.rope-track{height:calc(100% - 12px)}.ticks{height:12px;font-size:10px}.player{padding:4px 12px 6px}.player-title{min-height:20px}.problem{min-height:56px}.feedback{height:18px;font-size:10px}output{height:50px}.keypad button{height:56px}.ribbon{font-size:10px;top:-10px;padding:3px 4px 8px}.rope-line{margin-top:5px;height:5px}}.reduced .winner:after{display:none}@media(prefers-reduced-motion:reduce){.winner:after{display:none}}
