/* Englishzilla – the arcade games of 29.11 (caterpillar, bubbles, run, bricks, noughts and crosses) */
.ezar{max-width:760px;margin:0 auto;border-radius:22px;padding:14px;position:relative;color:#2b2140}
.ezar .zg-top{display:flex;justify-content:flex-end;margin-bottom:8px}
.ezar .button2{cursor:pointer}

/* ---------- Zilly's caterpillar ---------- */
#ezCaterpillar{background:#e9f8df;border:3px solid #9fd98a;max-width:660px}
.cp-setup{text-align:center;padding:18px 10px}.cp-big{width:130px;height:130px}.cp-setup p{font-size:1.15rem;margin:10px 0}.cp-small{font-size:1rem!important}
.cp-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.cp-pic img{width:62px;height:62px;background:#fff;border-radius:14px;border:3px solid #2b2140;padding:4px;display:block}
.cp-word{display:flex;gap:5px;flex:1}
.cp-word b{width:30px;height:38px;border-bottom:4px solid #2b2140;font:800 26px/38px Poppins,system-ui,sans-serif;text-align:center;color:#178850}
.cp-word b.nx{border-color:#7e10ff;animation:cpBlink 1.2s ease-in-out infinite}
.cp-lives{display:flex;gap:4px}
.cp-lives i{width:22px;height:22px;border-radius:0 60% 0 60%;background:#cfd8c8;display:inline-block;transform:rotate(-20deg)}
.cp-lives i.on{background:#2fb96b;box-shadow:inset -3px -3px 0 rgba(0,0,0,.15)}
.cp-n{font-weight:800;background:#fff;border-radius:999px;padding:4px 12px}
.cp-wrap{position:relative;display:flex;justify-content:center;border-radius:14px;overflow:hidden}
.cp-cv{display:block;border-radius:14px;border:3px solid #2b2140;touch-action:none}
.cp-over{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.35);cursor:pointer;text-align:center;padding:10px}
.cp-over[hidden]{display:none}
.cp-over p{background:#fff;border:3px solid #2b2140;border-radius:16px;padding:10px 16px;font-weight:800;font-size:1.1rem;margin:0}
.cp-ok{display:flex;flex-direction:column;align-items:center;gap:4px}.cp-ok img{width:90px;height:90px}.cp-ok b{font:900 28px Poppins,system-ui,sans-serif;color:#178850}
.cp-end{background:#fff;border:5px solid #ffd23f;border-radius:22px;padding:16px 20px;max-width:340px;cursor:default}.cp-end img{width:90px;height:90px}.cp-end p{border:0!important;padding:0!important;font-weight:400!important;margin:6px 0 12px!important}
.cp-pad{display:grid;grid-template-columns:repeat(3,56px);grid-template-rows:repeat(2,48px);gap:6px;justify-content:center;margin-top:10px}
.cp-pad button{border:3px solid #2b2140;background:#fff;border-radius:12px;font-size:20px;cursor:pointer;color:#2b2140}
.cp-pad button:active{background:#ffd23f}
.cp-pad [data-d=up]{grid-column:2;grid-row:1}.cp-pad [data-d=left]{grid-column:1;grid-row:2}.cp-pad [data-d=down]{grid-column:2;grid-row:2}.cp-pad [data-d=right]{grid-column:3;grid-row:2}
.cp-msg{text-align:center;min-height:1.4em;margin:8px 0 0}
@keyframes cpBlink{50%{border-color:#ffd23f}}
@media (max-width:560px){#ezCaterpillar{padding:8px}.cp-word b{width:22px;height:30px;font-size:20px;line-height:30px}.cp-pic img{width:48px;height:48px}}
@media (prefers-reduced-motion:reduce){.cp-word b.nx{animation:none}}

/* ---------- Zilly's bubbles ---------- */
#ezBubbles{background:#eaf4ff;border:3px solid #9fd0ff;max-width:600px}
.bb-setup{text-align:center;padding:18px 10px}.bb-big{width:120px;height:120px}.bb-setup p{font-size:1.15rem;margin:10px 0}.bb-small{font-size:1rem!important}
.bb-head{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:8px;font-weight:700}
.bb-head span{background:#fff;border-radius:999px;padding:4px 12px}
.bb-wrap{position:relative;display:flex;justify-content:center;border-radius:16px}
.bb-cv{display:block;background:linear-gradient(#fff,#e6f2ff);border-radius:16px;border:3px solid #2b2140;touch-action:none;cursor:crosshair}
.bb-over{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(20,8,40,.4);border-radius:16px;padding:10px}
.bb-over[hidden]{display:none}
.bb-end{background:#fff;border:5px solid #ffd23f;border-radius:22px;padding:16px 20px;text-align:center;max-width:320px}.bb-end img{width:90px;height:90px}.bb-end p{margin:6px 0 12px}
.bb-msg{text-align:center;min-height:1.4em;margin:8px 0 0}

/* ---------- Zilly's run ---------- */
#ezRun{background:#e8f6ff;border:3px solid #9fd0ff;max-width:640px}
.rn-setup{text-align:center;padding:18px 10px}.rn-big{width:120px;height:120px}.rn-setup p{font-size:1.15rem;margin:10px 0}.rn-small{font-size:1rem!important}
.rn-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rn-hearts{display:flex;gap:4px}
.rn-hearts i{width:22px;height:20px;background:#d8d2e4;clip-path:path('M11 20C4 14 0 10 0 6 0 2.5 2.7 0 6 0 8.2 0 10 1.2 11 3 12 1.2 13.8 0 16 0 19.3 0 22 2.5 22 6 22 10 18 14 11 20Z');display:inline-block}
.rn-hearts i.on{background:#e73f70}
.rn-prog{flex:1;height:12px;background:#fff;border-radius:99px;overflow:hidden;border:2px solid #2b2140}
.rn-prog i{display:block;height:100%;background:#23c16b;width:0;transition:width .4s}
.rn-stars{font-weight:800;background:#fff;border-radius:999px;padding:3px 12px}.rn-stars b{color:#f2a50c}
.rn-q{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:3px solid #2b2140;border-radius:16px;padding:8px 12px;min-height:64px;font:800 1.15rem Poppins,system-ui,sans-serif;text-align:center;margin-bottom:8px}
.rn-qp img,.rn-qp img.ez-vpic{width:56px!important;height:56px!important;display:block!important}
.rn-road{position:relative;height:440px;border-radius:18px;overflow:hidden;background:#5b5470;border:3px solid #2b2140;cursor:pointer;touch-action:pan-y;user-select:none}
.rn-lines{position:absolute;inset:0;background:linear-gradient(90deg,transparent calc(33.333% - 3px),rgba(255,255,255,.7) calc(33.333% - 3px),rgba(255,255,255,.7) calc(33.333% + 3px),transparent calc(33.333% + 3px),transparent calc(66.666% - 3px),rgba(255,255,255,.7) calc(66.666% - 3px),rgba(255,255,255,.7) calc(66.666% + 3px),transparent calc(66.666% + 3px));-webkit-mask:repeating-linear-gradient(#000 0 34px,transparent 34px 64px);mask:repeating-linear-gradient(#000 0 34px,transparent 34px 64px)}
.rn-road.on .rn-lines{animation:rnRoad .6s linear infinite}
.rn-road::before,.rn-road::after{content:'';position:absolute;top:0;bottom:0;width:10px;background:repeating-linear-gradient(#e73f70 0 20px,#fff 20px 40px);z-index:1}
.rn-road::before{left:0}.rn-road::after{right:0}
.rn-lane{position:absolute;top:0;bottom:0;width:33.333%}
.rn-lane[data-l="0"]{left:0}.rn-lane[data-l="1"]{left:33.333%}.rn-lane[data-l="2"]{left:66.666%}
.rn-gate{position:absolute;left:0;right:0;height:22%;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 14px;z-index:2}
.rn-gate[hidden]{display:none}
.rn-ans{background:#fff;border:4px solid #ffd23f;border-radius:16px;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px;box-shadow:0 5px 0 rgba(0,0,0,.3);font:800 clamp(14px,2.6vw,20px)/1.15 Nunito,system-ui,sans-serif;color:#2b2140;word-break:break-word}
.rn-ans img,.rn-ans img.ez-vpic{width:60px!important;height:60px!important;display:block!important}
.rn-ans.bush{background:#2fb96b;border-color:#178850;border-radius:50% 50% 16px 16px}
.rn-ans.ok{background:#e2f7ea;border-color:#23c16b}.rn-ans.no{background:#ffe4ec;border-color:#e73f70}
.rn-zilly{position:absolute;bottom:2%;width:16%;max-width:96px;height:auto;aspect-ratio:100/120;transform:translateX(-50%);transition:left .18s ease-out;z-index:3;filter:drop-shadow(0 6px 0 rgba(0,0,0,.25));overflow:visible}
.rn-zilly.run .rn-body{animation:rnBob .36s ease-in-out infinite}
.rn-zilly.run .rn-f1{animation:rnStep .36s ease-in-out infinite}
.rn-zilly.run .rn-f2{animation:rnStep .36s ease-in-out infinite reverse}
.rn-zilly.run .rn-arms{animation:rnArms .36s ease-in-out infinite;transform-origin:50px 60px}
.rn-gate.gone{z-index:1;opacity:.85;pointer-events:none}
.rn-zilly.hop{animation:rnHop .5s}
.ezar-pause{border:2px solid #2b2140;background:#fff;border-radius:999px;padding:3px 12px;font:800 14px Nunito,system-ui,sans-serif;cursor:pointer;color:#2b2140;white-space:nowrap}
.ezar-pause[aria-pressed=true]{background:#ffd23f}
.rn-road.ouch{animation:rnOuch .4s}
.rn-over{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(20,8,40,.45);z-index:5;cursor:default;padding:10px}
.rn-over[hidden]{display:none}
.rn-end{background:#fff;border:5px solid #ffd23f;border-radius:22px;padding:16px 20px;text-align:center;max-width:320px}.rn-end img{width:90px;height:90px}.rn-end p{margin:6px 0 12px}
.rn-msg{text-align:center;min-height:1.4em;margin:8px 0 0}
@keyframes rnBob{50%{transform:translateY(-5px)}}
@keyframes rnStep{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes rnArms{50%{transform:rotate(4deg)}}
@keyframes rnRoad{to{-webkit-mask-position:0 64px;mask-position:0 64px}}
@keyframes rnHop{40%{transform:translateX(-50%) translateY(-24px)}}
@keyframes rnOuch{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media (max-width:560px){.rn-road{height:380px}.rn-gate{gap:5px;padding:0 12px}.rn-q{font-size:1rem}}
@media (prefers-reduced-motion:reduce){.rn-road.on .rn-lines,.rn-zilly.hop,.rn-road.ouch,.rn-zilly.run *{animation:none!important}}

/* ---------- Zilly's bricks ---------- */
#ezBricks{background:#fff3e6;border:3px solid #ffc98a;max-width:700px}
.bk-setup{text-align:center;padding:18px 10px}.bk-big{width:120px;height:120px}.bk-setup p{font-size:1.15rem;margin:10px 0}.bk-small{font-size:1rem!important}
.bk-head{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:8px;font-weight:700}
.bk-head>span{background:#fff;border-radius:999px;padding:4px 12px}
.bk-lives{display:flex;gap:5px}.bk-lives i{width:16px;height:16px;border-radius:50%;background:#e2dcea;border:2px solid #2b2140;display:inline-block}.bk-lives i.on{background:#ffd23f}
.bk-wrap{position:relative;display:flex;justify-content:center}
.bk-cv{display:block;background:linear-gradient(#2b2140,#4b1d8f);border-radius:16px;border:3px solid #2b2140;touch-action:none;cursor:none}
.bk-over{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(20,8,40,.4);border-radius:16px;padding:10px}
.bk-over[hidden]{display:none}
.bk-end{background:#fff;border:5px solid #ffd23f;border-radius:22px;padding:16px 20px;text-align:center;max-width:320px}.bk-end img{width:90px;height:90px}.bk-end p{margin:6px 0 12px}
.bk-msg{text-align:center;min-height:1.4em;margin:8px 0 0}

/* ---------- Noughts and crosses ---------- */
#ezNoughts{background:#fff;border:3px solid #eadcff;max-width:620px}
.ezar-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:8px 0}
.nc-setup{text-align:center;padding:16px 10px}.nc-setup p{font-size:1.15rem;margin:10px 0}.nc-small{font-size:1rem!important}
.nc-logo{display:flex;justify-content:center;gap:6px}.nc-logo svg{width:70px;height:70px}
.nc-score{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.nc-team{display:flex;align-items:center;gap:8px;border:3px solid #eadcff;border-radius:999px;padding:5px 14px;font-weight:800}
.nc-team b{font:900 22px Poppins,system-ui,sans-serif}.nc-team.t0 b{color:#e73f70}.nc-team.t1 b{color:#178850}
.nc-team em{font-style:normal;background:#f3edff;border-radius:999px;padding:0 10px;font-size:1.1rem}
.nc-team.now.t0{border-color:#e73f70;background:#fff0f4}.nc-team.now.t1{border-color:#178850;background:#ecfaf1}
.nc-turn{text-align:center;font-size:1.15rem;margin:10px 0;min-height:1.5em}
.nc-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:420px;margin:0 auto;aspect-ratio:1}
.nc-sq{border:4px solid #2b2140;border-radius:18px;background:#faf7ff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:6%;transition:background .15s,transform .15s}
.nc-sq span{font:900 clamp(18px,4vw,28px) Poppins,system-ui,sans-serif;color:#cdbbe8}
.nc-sq:not(:disabled):hover,.nc-sq:focus-visible{background:#fff3c4;transform:scale(1.03)}
.nc-sq:disabled{cursor:default}
.nc-sq.pick{background:#fff3c4}
.nc-sq.win{background:#ffe08a;border-color:#f2a50c}
.nc-sq svg{width:100%;height:100%}
.nc-sq.full svg path,.nc-sq.full svg circle{stroke-dasharray:1;stroke-dashoffset:1;animation:ncDraw .45s ease-out forwards}
.nc-msg{text-align:center;min-height:1.4em;margin:12px 0 4px}
.nc-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@keyframes ncDraw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.nc-sq.full svg path,.nc-sq.full svg circle{animation:none;stroke-dashoffset:0}}
