*{box-sizing:border-box}body{margin:0;color:#231f20;background:#e9f4f7 url(/assets/fondo-n5-2026-sala-BwHxoWqk.webp) center/cover fixed no-repeat;font-family:Roboto,Arial,sans-serif}button,select,a{font:inherit}button,select{min-height:44px}button,a,select{touch-action:manipulation}button{cursor:pointer;border:2px solid #0878c4;border-radius:12px;background:#fff;color:#075a83;padding:10px 16px;font-weight:600}button:hover{background:#edfaff}button:disabled{cursor:default;opacity:.45}:focus-visible{outline:3px solid #fc9808;outline-offset:4px}a{color:#075a83}.art-header{display:flex;align-items:center;gap:12px;padding:16px 24px;max-width:1440px;margin:auto}.art-header>span{font-size:16px;background:#fffffff2;padding:12px 16px;border-radius:12px;margin-right:auto}.back{display:grid;place-items:center;width:44px;height:44px;background:#fff;border-radius:12px;text-decoration:none;font-size:24px}main{max-width:1200px;margin:clamp(8px,5dvh,48px) auto 24px;padding:0 24px}.challenge-heading{background:#fffffff5;border:2px solid #08cde7;border-radius:24px;text-align:center;padding:16px 24px;margin-bottom:20px}.challenge-heading h2{color:#0878c4;font-size:clamp(22px,2vw,28px);margin:0 0 8px;font-weight:600}.instruction{margin:0;color:#58595b;font-size:clamp(16px,1.5vw,20px);line-height:1.4}.workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.25fr);gap:32px;align-items:center}.board-panel{min-width:0}.carpet{width:100%;max-width:520px;aspect-ratio:1;padding:9.65%;background:url(/assets/game/c9f461bb14a3dba2943a424616671b50802891cb218cebd30d3fe2116599c951.webp) center/100% 100% no-repeat;margin:auto}.board{display:block;width:100%;height:100%;background:#fff}.code-panel{display:grid;gap:16px;min-width:0}.algorithm-panel,.bank-panel{border:2px solid #08cde7;border-radius:20px;background:#00667cef;padding:20px}.algorithm-panel{min-height:196px}.start-block{display:flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:100%;padding:12px 20px;background:#ffbf17;color:#231f20;border-radius:8px 8px 8px 0;font-size:15px;font-weight:600}.start-block span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#528e20;color:#fff;font-size:13px}.program{display:flex;flex-wrap:wrap;align-content:start;gap:12px;list-style:none;padding:12px 0 8px;margin:0;min-height:108px;max-height:260px;overflow:auto}.program:empty{display:none}.program li{position:relative;width:104px;padding-bottom:28px}.program-card{position:relative;border:0;background:transparent!important;padding:0;width:104px;height:64px;border-radius:4px}.program-card img{width:100%;height:100%;object-fit:fill}.program-card span{position:absolute;right:12px;top:7px;color:#fff;background:#075a83;border-radius:4px;padding:2px 4px;font-size:12px}.block-tools{position:absolute;bottom:0;display:flex;gap:4px;visibility:hidden}.program li:hover .block-tools,.program li:focus-within .block-tools{visibility:visible}.block-tools button{font-size:14px;min-height:28px;height:28px;min-width:32px;padding:0;border:0;border-radius:6px}.empty{display:grid;place-items:center;min-height:100px;margin:12px 0 0;padding:16px;border:2px dashed #08cde7;border-radius:12px;color:#fff;text-align:center;font-size:15px}.palette{display:flex;justify-content:space-around;gap:16px}.command-card{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;padding:0;background:transparent!important;color:#fff;min-width:0;flex:1}.command-card img{width:100%;height:64px;max-width:128px;object-fit:fill}.command-card span{font-size:14px;font-weight:500}.command-card:hover img{filter:brightness(1.12)}.block-settings{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;margin-top:16px;color:#fff;font-size:14px}.block-settings label{display:flex;align-items:center;gap:8px}.block-settings select{min-height:36px;border:1px solid #d0e3eb;border-radius:8px;padding:4px 8px;color:#231f20;background:#fff}.actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.primary{background:#08dbf7;color:#064462;border-color:#0878c4}.primary:hover{background:#6be9f9}.status:empty{display:none}.status{margin:0;background:#fff;border-radius:12px;padding:12px 16px;color:#58595b;line-height:1.4}.status.success{color:#235b00;background:#effbdd}.next{justify-self:center;display:inline-block;padding:12px 20px;background:#91ed00;color:#231f20;border-radius:12px;text-decoration:none;font-weight:600}dialog{border:2px solid #08cde7;border-radius:20px;padding:24px;width:min(520px,calc(100% - 32px));max-height:85dvh;color:#231f20}dialog::backdrop{background:#10394d99}dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}dialog h2{font-size:22px;margin:0}dialog h3{font-size:16px;color:#58595b;margin:24px 0 8px}dialog nav{display:grid;gap:8px}dialog nav a{padding:12px;background:#f0f8fc;border-radius:8px;text-decoration:none}dialog nav a[aria-current]{background:#0878c4;color:#fff}dialog form button{font-size:24px;padding:0;width:44px}[hidden]{display:none!important}@media(max-width:760px){.art-header{padding:12px;gap:8px}.art-header>span{font-size:14px;padding:12px}.art-header>button{padding:8px 12px}main{padding:0 12px;margin:4px auto 20px}.challenge-heading{padding:12px 16px;margin-bottom:12px;border-radius:20px}.challenge-heading h2{font-size:22px;margin-bottom:4px}.instruction{font-size:16px}.workspace{grid-template-columns:1fr;gap:12px}.carpet{max-width:380px;padding:9.65%}.code-panel{gap:12px}.algorithm-panel,.bank-panel{padding:16px;border-radius:16px}.algorithm-panel{min-height:156px}.empty{min-height:64px}.palette{gap:12px}.command-card img{height:56px}.block-settings{gap:16px;margin-top:12px}.program{max-height:208px;gap:8px}.program li,.program-card{width:88px}.program-card{height:56px}.program li{padding-bottom:32px}.block-tools{gap:2px}.block-tools button{min-width:28px}.start-block{font-size:14px;padding:8px 16px}}@media(min-width:761px)and (max-height:740px){main{margin-top:4px}.art-header{padding-block:8px}.challenge-heading{padding:12px 20px;margin-bottom:12px}.workspace{gap:24px}.carpet{max-width:440px}.algorithm-panel,.bank-panel{padding:16px}.algorithm-panel{min-height:172px}.program{max-height:180px}}
