.pb-games-page{min-height:100vh;background:#f7f8ff}
.pb-games-hero{position:relative;min-height:100vh;overflow:hidden;padding:18px 0 56px}
.pb-games-bg{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.68),rgba(245,247,255,.95)),url('../img/hero-bg.webp') center/cover no-repeat;filter:saturate(.9)}
.pb-games-hero>.container-xxl{position:relative;z-index:2}
.pb-games-heading{text-align:center;padding:56px 20px 24px}
.pb-games-kicker{display:inline-flex;align-items:center;gap:8px;color:#ff3fa4;font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:13px}
.pb-games-heading h1{font-size:clamp(42px,6vw,78px);line-height:.95;font-weight:900;color:#165fdb;letter-spacing:-2px;margin:10px 0 8px;text-shadow:0 4px 0 #fff}
.pb-games-heading p{font-size:clamp(17px,2vw,22px);font-weight:700;color:#4b5f90;margin:0}
.pb-game-menu{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.8fr);gap:24px;align-items:stretch}
.pb-lumi-host{position:relative;display:grid;place-items:end center;min-height:560px}
.pb-lumi-host img{width:min(100%,400px);height:540px;object-fit:contain;filter:drop-shadow(0 24px 18px rgba(70,46,120,.18))}
.pb-lumi-bubble{position:absolute;top:36px;right:0;max-width:230px;padding:14px 18px;border-radius:22px 22px 22px 6px;background:#fff;color:#d72d8a;font-weight:900;box-shadow:0 14px 32px rgba(72,72,145,.14);border:2px solid #ffd0eb}
.pb-feature-game{position:relative;display:grid;grid-template-columns:.85fr 1.15fr;gap:24px;align-items:center;background:rgba(255,255,255,.96);border:3px solid rgba(255,111,194,.28);border-radius:36px;padding:28px;box-shadow:0 22px 60px rgba(63,64,140,.16),inset 0 0 0 2px rgba(255,255,255,.9)}
.pb-feature-game::before{content:"";position:absolute;inset:-2px;border-radius:36px;pointer-events:none;box-shadow:0 0 34px rgba(255,75,174,.22)}
.pb-feature-copy{position:relative;z-index:2}
.pb-game-number{width:70px;height:70px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#ff43ae,#a33cff);color:#fff;font-size:38px;font-weight:900;box-shadow:0 10px 24px rgba(215,45,138,.25);margin-bottom:18px}
.pb-level-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;background:#eaf6ff;color:#1268dd;font-weight:900;font-size:13px}
.pb-level-pill i{color:#ffb300}
.pb-feature-copy h2{font-size:clamp(34px,4vw,58px);line-height:1;font-weight:900;color:#193f9b;margin:18px 0 14px;letter-spacing:-1.5px}
.pb-feature-copy p{font-size:18px;line-height:1.55;color:#56678f;font-weight:600}
.pb-feature-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.pb-game-play,.pb-game-help{border:0;border-radius:999px;padding:13px 24px;font-weight:900;transition:.2s ease}
.pb-game-play{background:linear-gradient(135deg,#20c874,#0bae57);color:#fff;box-shadow:0 12px 25px rgba(11,174,87,.28)}
.pb-game-play:hover{transform:translateY(-2px);box-shadow:0 15px 30px rgba(11,174,87,.34)}
.pb-game-help{background:#eef6ff;color:#1769d8;border:2px solid #cfe5ff}
.pb-game-help:hover{background:#e3f0ff}
.pb-game-preview{background:linear-gradient(145deg,#f9fbff,#fff1fa);border:2px solid #e7d6ff;border-radius:30px;padding:18px;box-shadow:inset 0 0 30px rgba(118,56,255,.07)}
.pb-preview-board{height:300px;border-radius:24px;background:#fff;display:grid;place-items:center;box-shadow:inset 0 0 0 2px #e9efff}
.pb-preview-butterfly{position:relative;width:240px;height:180px}
.pb-preview-butterfly .wing{position:absolute;width:92px;height:78px;border:8px solid #6f2fc8;background:linear-gradient(135deg,#ff64be,#ffb3dc);border-radius:60% 35% 60% 35%}
.pb-preview-butterfly .wing-a{left:22px;top:12px;transform:rotate(16deg)}
.pb-preview-butterfly .wing-b{left:24px;bottom:12px;transform:rotate(-16deg)}
.pb-preview-butterfly .body{position:absolute;left:112px;top:30px;width:24px;height:122px;border-radius:20px;background:#46237f}
.pb-preview-butterfly .missing{position:absolute;left:132px;top:8px;width:92px;height:164px;border:6px dashed #a9b1c7;border-radius:55%;opacity:.85}
.pb-preview-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.pb-preview-options span{height:62px;border-radius:18px;background:linear-gradient(145deg,#fff,#f6f2ff);border:2px solid #eadcff;position:relative}
.pb-preview-options span::after{content:"";position:absolute;inset:15px 23%;border-radius:50% 35% 50% 35%;background:#ff63b8}
.pb-preview-options span:nth-child(2)::after{background:#53c8ff}
.pb-preview-options span:nth-child(3)::after{background:#a86cff}
.pb-coming-grid{grid-column:2;display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.pb-coming-card{min-height:130px;border-radius:28px;background:linear-gradient(145deg,rgba(112,89,219,.72),rgba(52,97,193,.72));color:#fff;display:flex;align-items:center;justify-content:center;gap:16px;border:2px solid rgba(255,255,255,.45);box-shadow:0 14px 30px rgba(48,65,139,.13)}
.pb-coming-card b{font-size:30px}.pb-coming-card span{font-size:21px;font-weight:900}.pb-coming-card i{font-size:30px;opacity:.8}
.pb-game-stage{margin-top:20px;background:rgba(255,255,255,.95);border-radius:36px;padding:24px;box-shadow:0 22px 60px rgba(61,63,139,.16);border:2px solid #eadfff}
.pb-game-toolbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px}
.pb-circle-btn{width:52px;height:52px;border-radius:50%;border:0;background:#fff;color:#176cf4;display:grid;place-items:center;font-size:22px;box-shadow:0 8px 20px rgba(44,77,145,.16)}
.pb-game-progress{display:flex;align-items:center;justify-content:center;gap:18px}
.pb-game-progress strong{color:#31508d;font-size:16px}
.pb-progress-stars{display:flex;gap:8px}
.pb-progress-stars i{font-size:24px;color:#cfd8ed}
.pb-progress-stars i.done{color:#ffb300;filter:drop-shadow(0 2px 5px rgba(255,179,0,.35))}
.pb-game-title{display:flex;align-items:center;justify-content:center;gap:12px;text-align:left;margin:15px 0 22px}
.pb-game-title>span{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#ff4bad,#a54cff);color:#fff;font-size:25px;box-shadow:0 8px 18px rgba(197,58,160,.22)}
.pb-game-title h2{margin:0;color:#164fbd;font-weight:900;font-size:34px}.pb-game-title p{margin:0;color:#6c79a0;font-weight:700}
.pb-game-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px;align-items:center}
.pb-game-lumi{position:relative;align-self:stretch;display:flex;align-items:flex-end;justify-content:center;min-height:520px}
.pb-game-lumi img{width:100%;height:500px;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(64,47,120,.18))}
.pb-game-message{position:absolute;top:14px;right:-10px;max-width:190px;background:#fff7fc;color:#d82f8f;border:2px solid #ffd0eb;border-radius:20px 20px 20px 5px;padding:12px 15px;font-weight:900;box-shadow:0 10px 22px rgba(90,72,150,.12)}
.pb-puzzle-area{min-width:0}
.pb-puzzle-card{position:relative;min-height:390px;border-radius:30px;background:linear-gradient(145deg,#fff,#f9fbff);border:3px solid #d8e8ff;display:grid;place-items:center;padding:34px 20px 20px;overflow:hidden}
.pb-puzzle-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 25%,rgba(255,63,164,.08),transparent 25%),radial-gradient(circle at 80% 20%,rgba(16,134,255,.08),transparent 25%)}
.pb-puzzle-label{position:absolute;left:18px;top:16px;padding:7px 12px;border-radius:999px;background:#edf5ff;color:#1767d4;font-weight:900;z-index:2}
.pb-puzzle-svg{position:relative;z-index:1;width:min(100%,560px);height:340px;display:grid;place-items:center;margin:0 auto}
.pb-puzzle-svg svg,.pb-choice svg{display:block;width:100%;height:100%;overflow:visible}
.pb-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.pb-choice{position:relative;min-height:155px;padding:12px;border-radius:24px;border:3px solid #e3e8fa;background:#fff;display:grid;place-items:center;cursor:pointer;transition:.18s ease;box-shadow:0 10px 22px rgba(49,65,127,.08)}
.pb-choice:hover{transform:translateY(-4px);border-color:#81c4ff;box-shadow:0 14px 28px rgba(36,102,208,.15)}
.pb-choice svg{width:100%;max-width:150px;height:112px}
.pb-choice.correct{border-color:#35ca78;background:#effff6;animation:pb-pop .45s ease}
.pb-choice.wrong{border-color:#ff7b9d;background:#fff3f6;animation:pb-shake .32s ease}
.pb-choice-status{position:absolute;right:12px;top:10px;width:36px;height:36px;border-radius:50%;display:none;place-items:center;color:#fff;font-size:20px}
.pb-choice.correct .pb-choice-status{display:grid;background:#22bd68}.pb-choice.wrong .pb-choice-status{display:grid;background:#f05575}
.pb-game-modal{position:fixed;inset:0;z-index:5000;background:rgba(17,30,78,.55);display:grid;place-items:center;padding:20px;backdrop-filter:blur(7px)}
.pb-game-modal-card{position:relative;width:min(100%,520px);background:#fff;border-radius:32px;padding:36px;text-align:center;box-shadow:0 28px 70px rgba(18,31,80,.3);border:3px solid #e5dcff}
.pb-modal-close{position:absolute;right:16px;top:16px;width:40px;height:40px;border:0;border-radius:50%;background:#f2f5ff;color:#4262aa}
.pb-modal-icon{font-size:54px;color:#ffb300}.pb-game-modal-card h2{font-size:36px;font-weight:900;color:#175bd1;margin:10px 0}.pb-game-modal-card p{font-size:17px;color:#5d6d93}
.pb-finish-stars{display:flex;justify-content:center;gap:8px;font-size:42px;color:#ffb300;margin-bottom:8px}
@keyframes pb-pop{50%{transform:scale(1.04)}}@keyframes pb-shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media(max-width:1199px){
  .pb-game-menu{grid-template-columns:220px minmax(0,1fr)}
  .pb-lumi-host img{height:470px}
  .pb-feature-game{grid-template-columns:1fr}
  .pb-game-preview{max-width:640px}
}
@media(max-width:991px){
  .pb-games-heading{padding-top:34px}
  .pb-game-menu{grid-template-columns:1fr}
  .pb-lumi-host{min-height:340px;place-items:center}
  .pb-lumi-host img{height:330px}
  .pb-lumi-bubble{top:12px;right:10%}
  .pb-coming-grid{grid-column:auto}
  .pb-game-layout{grid-template-columns:1fr}
  .pb-game-lumi{min-height:260px}
  .pb-game-lumi img{height:260px}
  .pb-game-message{top:10px;right:15%}
  .pb-puzzle-card{min-height:340px}
}
@media(max-width:700px){
  .pb-games-hero{padding-top:10px}
  .pb-games-heading{padding:30px 10px 18px}
  .pb-feature-game,.pb-game-stage{padding:16px;border-radius:26px}
  .pb-feature-actions{flex-direction:column}
  .pb-game-play,.pb-game-help{width:100%;justify-content:center}
  .pb-preview-board{height:230px}
  .pb-preview-butterfly{transform:scale(.78)}
  .pb-coming-grid{grid-template-columns:1fr}
  .pb-game-toolbar{gap:8px}
  .pb-circle-btn{width:44px;height:44px}
  .pb-progress-stars{gap:3px}
  .pb-progress-stars i{font-size:19px}
  .pb-game-title h2{font-size:27px}
  .pb-game-layout{gap:10px}
  .pb-game-lumi{min-height:150px;justify-content:flex-start;padding-left:8px}
  .pb-game-lumi img{width:145px;height:145px}
  .pb-game-message{font-size:13px;top:34px;right:5%;max-width:178px}
  .pb-puzzle-card{min-height:290px;padding:34px 8px 10px}
  .pb-puzzle-svg{height:255px}
  .pb-choice-grid{gap:7px}
  .pb-choice{min-height:120px;border-radius:18px;padding:8px}
  .pb-choice svg{width:100%;max-width:88px;height:82px}
}

/* Juego 2 · Byte: Repara el circuito */
.pb-mini-game-card{min-height:130px;border-radius:28px;background:#fff;border:2px solid #dbe9ff;box-shadow:0 14px 30px rgba(48,65,139,.12);display:grid;grid-template-columns:90px 1fr auto;gap:14px;align-items:center;padding:14px 16px}
.pb-mini-game-card img{width:90px;height:96px;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(20,90,190,.18))}
.pb-mini-game-card b,.pb-mini-game-card span{display:block}.pb-mini-game-card b{font-size:20px;color:#145fd5}.pb-mini-game-card span{font-size:13px;line-height:1.35;color:#5c6d94;margin-top:4px}
.pb-mini-game-card button{border:0;border-radius:999px;padding:10px 16px;background:linear-gradient(135deg,#24a7ff,#176cf4);color:#fff;font-weight:900;white-space:nowrap}
.pb-byte-stage{border-color:#cfe6ff;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(239,248,255,.98))}
.pb-byte-title>span{background:linear-gradient(135deg,#19b9ff,#176cf4)}
.pb-byte-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:center}
.pb-byte-host{position:relative;min-height:520px;display:flex;align-items:flex-end;justify-content:center}.pb-byte-host img{width:100%;height:490px;object-fit:contain;filter:drop-shadow(0 20px 18px rgba(27,78,154,.18))}
.pb-byte-message{position:absolute;top:18px;right:-4px;max-width:195px;padding:12px 15px;border-radius:20px 20px 20px 5px;background:#eef9ff;border:2px solid #bfe7ff;color:#1264d8;font-weight:900;box-shadow:0 10px 22px rgba(46,94,167,.12)}
.pb-circuit-wrap{min-width:0}.pb-circuit-board{position:relative;min-height:300px;border-radius:30px;background:linear-gradient(145deg,#071e49,#0c3474);border:4px solid #42c7ff;padding:54px 26px;display:grid;grid-template-columns:120px 1fr 120px;gap:18px;align-items:center;overflow:hidden;box-shadow:inset 0 0 40px rgba(50,210,255,.12),0 16px 34px rgba(18,67,138,.18)}
.pb-circuit-lines{position:absolute;inset:0;width:100%;height:100%;z-index:0}.pb-circuit-lines path{fill:none;stroke:#5bdcff;stroke-width:8;stroke-linecap:round;filter:drop-shadow(0 0 7px #2fc7ff)}
.pb-circuit-source,.pb-circuit-target{position:relative;z-index:2;min-height:120px;border-radius:24px;background:#fff;display:grid;place-items:center;text-align:center;padding:12px;color:#145fd5;font-weight:900;border:3px solid #9ee7ff}.pb-circuit-source i,.pb-circuit-target i{font-size:42px}.pb-circuit-source span,.pb-circuit-target span{font-size:13px}
.pb-circuit-target{transition:.25s ease}.pb-circuit-target.on{background:#fff8bd;color:#e49a00;border-color:#ffd43f;box-shadow:0 0 38px rgba(255,212,63,.85)}.pb-circuit-target.on i{filter:drop-shadow(0 0 10px #ffdd42)}
.pb-circuit-slots{position:relative;z-index:3;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.pb-circuit-slot{min-height:132px;border-radius:22px;border:3px dashed #8fcff5;background:rgba(24,58,111,.96);color:#cdeeff;display:grid;place-items:center;padding:8px;transition:.18s ease}.pb-circuit-slot i{font-size:32px;opacity:.45}.pb-circuit-slot small{font-size:11px;font-weight:800;opacity:.7}.pb-slot-number{width:28px;height:28px;border-radius:50%;background:#1b7fe4;color:#fff;display:grid;place-items:center;font-weight:900}
.pb-circuit-slot.filled{border-style:solid;border-color:var(--part);background:#fff;color:var(--part);box-shadow:0 0 22px color-mix(in srgb,var(--part) 45%,transparent)}.pb-circuit-slot.filled i,.pb-circuit-slot.filled small{opacity:1}.pb-circuit-slot.wrong{animation:pb-shake .32s ease;border-color:#ff6e8e}
.pb-component-bank{margin-top:18px;background:#fff;border:2px solid #dbe9ff;border-radius:26px;padding:16px}.pb-component-bank>p{margin:0 0 12px;color:#53678f;font-weight:800;text-align:center}
.pb-component-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.pb-circuit-piece{min-height:100px;border:3px solid #e1e8fb;border-radius:20px;background:#fff;color:var(--part);display:grid;place-items:center;padding:8px;font-weight:900;transition:.18s ease}.pb-circuit-piece i{font-size:30px}.pb-circuit-piece span{font-size:11px;color:#53678f}.pb-circuit-piece.selected{transform:translateY(-4px);border-color:var(--part);box-shadow:0 10px 20px color-mix(in srgb,var(--part) 20%,transparent)}.pb-circuit-piece:disabled{opacity:.28;filter:grayscale(1);cursor:not-allowed}
@media(max-width:991px){
 .pb-mini-game-card{grid-template-columns:78px 1fr auto}.pb-mini-game-card img{width:78px;height:84px}
 .pb-byte-layout{grid-template-columns:1fr}.pb-byte-host{min-height:240px;justify-content:flex-start;padding-left:10px}.pb-byte-host img{width:210px;height:230px}.pb-byte-message{top:40px;right:12%;max-width:190px}
}
@media(max-width:700px){
 .pb-mini-game-card{grid-template-columns:72px 1fr;gap:10px;padding:12px}.pb-mini-game-card img{width:72px;height:78px}.pb-mini-game-card button{grid-column:1/-1;width:100%}
 .pb-byte-host{min-height:155px}.pb-byte-host img{width:145px;height:150px}.pb-byte-message{font-size:13px;top:35px;right:5%;max-width:175px}
 .pb-circuit-board{min-height:390px;padding:24px 14px;grid-template-columns:1fr;grid-template-rows:72px 1fr 72px;gap:12px}.pb-circuit-source,.pb-circuit-target{min-height:72px;grid-template-columns:auto auto;justify-content:center;gap:10px}.pb-circuit-source i,.pb-circuit-target i{font-size:30px}.pb-circuit-lines{display:none}
 .pb-circuit-slots{grid-template-columns:repeat(3,1fr);gap:7px}.pb-circuit-slot{min-height:108px;border-radius:17px;padding:5px}.pb-circuit-slot i{font-size:25px}.pb-circuit-slot small{font-size:9px}.pb-slot-number{width:24px;height:24px;font-size:12px}
 .pb-component-bank{padding:12px}.pb-component-bank>p{font-size:13px}.pb-component-grid{grid-template-columns:repeat(3,1fr);gap:7px}.pb-circuit-piece{min-height:82px;border-radius:16px}.pb-circuit-piece i{font-size:24px}.pb-circuit-piece span{font-size:9px}
}

/* Menú de juegos consistente */
.pb-game-menu{display:block}
.pb-games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.pb-games-grid .pb-feature-game{display:grid;grid-template-columns:170px minmax(0,1fr);gap:22px;align-items:center;padding:24px;min-height:650px}
.pb-games-grid .pb-feature-copy{align-self:center}
.pb-games-grid .pb-feature-copy h2{font-size:clamp(32px,3vw,48px)}
.pb-card-character{position:relative;min-height:285px;display:flex;align-items:flex-end;justify-content:center}
.pb-card-character img{width:100%;height:280px;object-fit:contain;filter:drop-shadow(0 18px 16px rgba(50,70,145,.18))}
.pb-card-bubble{position:absolute;top:0;left:50%;transform:translateX(-50%);width:180px;padding:10px 13px;border-radius:18px 18px 18px 5px;background:#fff7fc;border:2px solid #ffd1e9;color:#d92d8f;font-size:13px;font-weight:900;text-align:center;box-shadow:0 8px 18px rgba(73,66,130,.1)}
.pb-byte-bubble{background:#eef8ff;border-color:#c9e8ff;color:#1666d7}
.pb-byte-number{background:linear-gradient(135deg,#22b9ff,#176cf4)}
.pb-game-card-byte{border-color:#cce8ff}
.pb-game-card-byte::before{box-shadow:0 0 34px rgba(42,166,255,.2)}
.pb-games-grid .pb-game-preview{grid-column:1/-1;width:100%;padding:16px;margin-top:2px}
.pb-preview-house-board{height:250px}
.pb-preview-svg{width:100%;height:100%;display:block}
.pb-preview-shapes span,.pb-preview-components span{display:grid;place-items:center;height:72px;font-size:32px;background:linear-gradient(145deg,#fff,#f5f3ff);border:2px solid #e6dcff;border-radius:18px}
.pb-preview-shapes span::after,.pb-preview-components span::after{display:none!important}
.pb-byte-modal-icon{color:#168cf4}
.pb-circuit-preview{height:250px;border-radius:24px;background:linear-gradient(145deg,#071e49,#0b397e);border:3px solid #46c9ff;display:flex;align-items:center;justify-content:center;padding:20px;box-shadow:inset 0 0 30px rgba(65,210,255,.13)}
.pb-preview-node,.pb-preview-part{position:relative;z-index:2;width:72px;height:72px;border-radius:20px;background:#fff;display:grid;place-items:center;color:#176cf4;font-size:32px;border:3px solid #9ee7ff;box-shadow:0 0 18px rgba(58,198,255,.2)}
.pb-preview-node.target{color:#f2b000;border-color:#ffe26b;background:#fffbe5;box-shadow:0 0 24px rgba(255,215,70,.45)}
.pb-preview-wire{width:62px;height:8px;background:#57ddff;box-shadow:0 0 10px #32c9ff;flex:0 1 62px}
.pb-preview-part{width:64px;height:64px;border-color:#a7dfff;color:#245fc5}
.pb-coming-grid-full{grid-column:auto;margin-top:24px}
@media(max-width:1199px){
 .pb-games-grid{grid-template-columns:1fr}
 .pb-games-grid .pb-feature-game{grid-template-columns:220px minmax(0,1fr);min-height:auto}
 .pb-games-grid .pb-game-preview{grid-column:1/-1}
}
@media(max-width:700px){
 .pb-games-grid{gap:18px}
 .pb-games-grid .pb-feature-game{grid-template-columns:120px minmax(0,1fr);gap:12px;padding:16px}
 .pb-card-character{min-height:185px}
 .pb-card-character img{height:180px}
 .pb-card-bubble{width:142px;font-size:11px;top:-2px;padding:8px 10px}
 .pb-games-grid .pb-feature-copy h2{font-size:29px;margin:12px 0 10px}
 .pb-games-grid .pb-feature-copy p{font-size:14px}
 .pb-games-grid .pb-feature-actions{grid-column:1/-1}
 .pb-games-grid .pb-game-preview{padding:10px}
 .pb-preview-house-board,.pb-circuit-preview{height:200px}
 .pb-preview-shapes span,.pb-preview-components span{height:58px;font-size:25px}
 .pb-preview-node{width:50px;height:50px;font-size:23px;border-radius:15px}
 .pb-preview-part{width:46px;height:46px;font-size:21px;border-radius:14px}
 .pb-preview-wire{width:28px;flex-basis:28px;height:6px}
 .pb-coming-grid-full{grid-template-columns:1fr}
}

/* Juego 3 · Roko: Sigue a Roko */
.pb-game-card-roko{border-color:#cfeec3}.pb-game-card-roko::before{box-shadow:0 0 34px rgba(72,196,45,.18)}
.pb-roko-bubble{background:#f1ffe9;border-color:#cdeebe;color:#3eaa24}.pb-roko-number{background:linear-gradient(135deg,#69d846,#37a91d)}
.pb-roko-preview-board{height:250px;border-radius:24px;background:linear-gradient(145deg,#efffe9,#eef8ff);border:2px solid #d5efca;display:flex;align-items:center;justify-content:center;gap:24px}
.pb-roko-preview-board>span{width:92px;height:100px;border-radius:22px;background:#fff;display:grid;place-items:center;align-content:center;gap:5px;color:#3eaa24;border:2px solid #d5efca}.pb-roko-preview-board i{font-size:42px}.pb-roko-preview-board small{font-size:11px;font-weight:900}
.pb-preview-roko span{display:flex;align-items:center;justify-content:center;gap:10px;height:72px;font-size:24px;background:#fff;border:2px solid #d9ebd2;border-radius:18px}.pb-preview-roko span::after{display:none!important}
.pb-roko-stage{border-color:#d4efc9;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,255,242,.98))}.pb-roko-title>span{background:linear-gradient(135deg,#69d846,#37a91d)}
.pb-roko-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:center}.pb-roko-host{position:relative;min-height:520px;display:flex;align-items:flex-end;justify-content:center}.pb-roko-host img{width:100%;height:490px;object-fit:contain;filter:drop-shadow(0 20px 18px rgba(52,130,35,.18))}
.pb-roko-message{position:absolute;top:18px;right:-4px;max-width:200px;padding:12px 15px;border-radius:20px 20px 20px 5px;background:#f1ffe9;border:2px solid #cdeebe;color:#31951b;font-weight:900;box-shadow:0 10px 22px rgba(73,142,56,.12)}
.pb-roko-game{min-width:0}.pb-roko-display{min-height:330px;border-radius:30px;background:linear-gradient(145deg,#102a18,#174d25);border:4px solid #63d947;display:flex;align-items:center;justify-content:center;gap:20px;padding:28px;box-shadow:inset 0 0 40px rgba(83,220,64,.12),0 16px 34px rgba(49,116,32,.14)}
.pb-roko-step{width:112px;height:112px;border-radius:28px;background:#fff;display:grid;place-items:center;align-content:center;gap:6px;color:#39a623;box-shadow:0 12px 24px rgba(0,0,0,.12);animation:pb-roko-pop .28s ease}.pb-roko-step i{font-size:48px}.pb-roko-step small{font-size:11px;font-weight:900;color:#467c3a}.pb-roko-hidden{font-size:76px;color:#bcebb1;font-weight:900}.pb-roko-countdown{font-size:24px;color:#d7ffd0;font-weight:900;text-align:center}
.pb-roko-answers{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.pb-roko-answer{min-height:118px;border-radius:24px;border:3px solid #dcedd7;background:#fff;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 10px 22px rgba(67,115,54,.08);transition:.18s ease}.pb-roko-answer-step{display:grid;place-items:center;gap:3px;color:#3da926}.pb-roko-answer-step i{font-size:27px}.pb-roko-answer-step small{font-size:9px;font-weight:900;color:#5d7557}.pb-roko-answer:hover{transform:translateY(-3px);border-color:#79d85f}.pb-roko-answer.correct{background:#effff0;border-color:#35c86a;animation:pb-pop .4s ease}.pb-roko-answer.wrong{background:#fff1f4;border-color:#ef6e91;animation:pb-shake .32s ease}.pb-roko-answer:disabled{cursor:default}.pb-roko-modal-icon{color:#49b92c}
@keyframes pb-roko-pop{50%{transform:scale(1.08)}}
@media(max-width:991px){.pb-roko-layout{grid-template-columns:1fr}.pb-roko-host{min-height:240px;justify-content:flex-start;padding-left:10px}.pb-roko-host img{width:210px;height:230px}.pb-roko-message{top:40px;right:12%;max-width:190px}}
@media(max-width:700px){.pb-roko-preview-board{height:200px;gap:8px}.pb-roko-preview-board>span{width:72px;height:82px;border-radius:18px}.pb-roko-preview-board i{font-size:30px}.pb-roko-preview-board small{font-size:9px}.pb-preview-roko span{height:58px;font-size:17px;gap:7px}.pb-roko-host{min-height:155px}.pb-roko-host img{width:145px;height:150px}.pb-roko-message{font-size:13px;top:35px;right:5%;max-width:175px}.pb-roko-display{min-height:250px;padding:16px;gap:8px;border-radius:22px}.pb-roko-step{width:58px;height:62px;border-radius:17px;gap:3px}.pb-roko-step i{font-size:27px}.pb-roko-step small{font-size:8px}.pb-roko-hidden{font-size:54px}.pb-roko-answers{grid-template-columns:1fr;gap:8px}.pb-roko-answer{min-height:78px;border-radius:18px;gap:6px}.pb-roko-answer-step i{font-size:22px}.pb-roko-answer-step small{font-size:8px}}

/* Juego 4 · Nexa: La máquina de sumar */
.pb-game-card-nexa{border-color:#decfff}
.pb-game-card-nexa::before{box-shadow:0 0 34px rgba(145,79,255,.2)}
.pb-nexa-bubble{background:#f7efff;border-color:#decfff;color:#7338d7}
.pb-nexa-number{background:linear-gradient(135deg,#a45dff,#6f35db)}
.pb-roko-number{background:linear-gradient(135deg,#69d846,#37a91d)}
.pb-game-card-coming{display:grid!important;grid-template-columns:1fr!important;place-items:center;min-height:650px!important;background:linear-gradient(145deg,rgba(236,239,255,.96),rgba(224,229,250,.96));border-color:#d9def2;box-shadow:0 18px 45px rgba(55,69,135,.08)}
.pb-game-card-coming::before{display:none}
.pb-coming-feature{text-align:center;color:#64739d}.pb-coming-feature>i{display:block;font-size:54px;color:#92a0c2;margin:8px 0 14px}.pb-coming-feature h2{font-size:40px;font-weight:900;color:#53658f;margin:0}.pb-coming-feature p{font-weight:700;margin-top:10px}
.pb-nexa-preview-board{height:250px;border-radius:24px;background:linear-gradient(145deg,#f7f0ff,#eef5ff);display:grid;place-items:center;align-content:center;gap:14px;border:2px solid #e0d1ff}
.pb-preview-count{font-size:clamp(30px,3vw,48px);letter-spacing:5px;line-height:1.4;text-align:center;display:flex;align-items:center;justify-content:center;gap:14px;color:#7c49df}.pb-preview-count span{display:flex;gap:8px}.pb-preview-count b{color:#7b3dde;margin:0 6px}.pb-preview-equals{font-size:34px;font-weight:900;color:#6e43c8}
.pb-preview-numbers span{display:grid;place-items:center;height:72px;font-size:30px;font-weight:900;color:#56319c;background:#fff;border:2px solid #e1d4fb;border-radius:18px}
.pb-preview-numbers span::after{display:none!important}.pb-preview-numbers .is-correct{background:#f0e8ff;border-color:#9a65ef;box-shadow:0 0 18px rgba(143,83,237,.18)}
.pb-nexa-modal-icon{color:#8246df}

.pb-nexa-stage{border-color:#dfd0ff;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,243,255,.98))}
.pb-nexa-title>span{background:linear-gradient(135deg,#a65cff,#6e35db)}
.pb-nexa-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:center}
.pb-nexa-host{position:relative;min-height:520px;display:flex;align-items:flex-end;justify-content:center}.pb-nexa-host img{width:100%;height:490px;object-fit:contain;filter:drop-shadow(0 20px 18px rgba(92,54,154,.18))}
.pb-nexa-message{position:absolute;top:18px;right:-4px;max-width:195px;padding:12px 15px;border-radius:20px 20px 20px 5px;background:#f7efff;border:2px solid #dfcbff;color:#7138cb;font-weight:900;box-shadow:0 10px 22px rgba(89,55,151,.12)}
.pb-nexa-machine{min-width:0;background:linear-gradient(145deg,#fff,#faf7ff);border:3px solid #ddceff;border-radius:30px;padding:24px;box-shadow:0 16px 34px rgba(98,58,160,.12)}
.pb-nexa-question{min-height:340px;border-radius:26px;background:linear-gradient(145deg,#f5efff,#eef7ff);border:2px solid #e1d5fb;display:grid;place-items:center;align-content:center;padding:24px;gap:22px}
.pb-nexa-groups{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;width:100%}.pb-nexa-groups>b,.pb-nexa-number-question>b{font-size:48px;color:#7742d6}.pb-nexa-object-group{min-height:150px;border-radius:24px;background:#fff;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:10px;padding:20px;border:2px solid #e5dcfb}.pb-nexa-object-group i{font-size:52px;line-height:1;color:#7b48df;filter:drop-shadow(0 3px 3px rgba(93,59,151,.1))}
.pb-nexa-eq-small{font-size:30px;font-weight:900;color:#59369b}.pb-nexa-number-question{display:flex;align-items:center;justify-content:center;gap:24px;font-size:74px;font-weight:900;color:#3e5aae}
.pb-nexa-answers{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.pb-nexa-answer{min-height:120px;border-radius:24px;border:3px solid #e2d7f7;background:#fff;color:#5c35a4;font-size:46px;font-weight:900;box-shadow:0 10px 22px rgba(75,54,126,.08);transition:.18s ease}.pb-nexa-answer:hover{transform:translateY(-3px);border-color:#a66ef4}.pb-nexa-answer.correct{background:#effff5;border-color:#39c77a;color:#159653;animation:pb-pop .4s ease}.pb-nexa-answer.wrong{background:#fff1f5;border-color:#f06d91;color:#d14368;animation:pb-shake .32s ease}
@media(max-width:991px){
 .pb-nexa-layout{grid-template-columns:1fr}.pb-nexa-host{min-height:240px;justify-content:flex-start;padding-left:10px}.pb-nexa-host img{width:210px;height:230px}.pb-nexa-message{top:40px;right:12%;max-width:190px}
 .pb-game-card-coming{min-height:300px!important}
}
@media(max-width:700px){
 .pb-nexa-preview-board{height:200px}.pb-preview-count{font-size:30px;letter-spacing:2px}.pb-preview-equals{font-size:27px}.pb-preview-numbers span{height:58px;font-size:25px}
 .pb-nexa-host{min-height:155px}.pb-nexa-host img{width:145px;height:150px}.pb-nexa-message{font-size:13px;top:35px;right:5%;max-width:175px}
 .pb-nexa-machine{padding:12px;border-radius:22px}.pb-nexa-question{min-height:270px;padding:14px;border-radius:20px}.pb-nexa-groups{gap:8px}.pb-nexa-groups>b,.pb-nexa-number-question>b{font-size:34px}.pb-nexa-object-group{min-height:120px;padding:10px;gap:5px;border-radius:18px}.pb-nexa-object-group i{font-size:36px}.pb-nexa-eq-small{font-size:24px}.pb-nexa-number-question{gap:12px;font-size:48px}
 .pb-nexa-answers{gap:8px}.pb-nexa-answer{min-height:92px;border-radius:18px;font-size:36px}.pb-game-card-coming{min-height:230px!important}.pb-coming-feature h2{font-size:32px}.pb-coming-feature>i{font-size:42px}
}

/* Lumi · ajuste desktop del puzzle sin tocar móvil */
@media(min-width:992px){
 .pb-game-stage#gameStage,.pb-game-stage#byteGameStage,.pb-game-stage#rokoGameStage,.pb-game-stage#nexaGameStage{max-width:1280px;margin:20px auto 0;padding:20px 22px}
 #gameStage .pb-game-layout{grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:center}
 #gameStage .pb-game-lumi{min-height:430px}
 #gameStage .pb-game-lumi img{height:405px}
 #gameStage .pb-puzzle-card{min-height:330px;padding:32px 18px 16px}
 #gameStage .pb-puzzle-svg{width:min(100%,620px);height:275px;padding:8px;margin:0 auto}
 #gameStage .pb-puzzle-svg svg{width:100%;height:100%;max-width:620px;max-height:275px;margin:auto;overflow:visible}
 #gameStage .pb-choice{min-height:125px;padding:8px}
 #gameStage .pb-choice svg{width:100%;max-width:125px;height:96px;margin:auto}
}
