/* Englishzilla – Zilly's road trip (3D driving game for vocabulary) */
#ezRoad{max-width:1100px;margin:6px auto 0;font-family:"Nunito",system-ui,sans-serif;color:#25222e}
#ezRoad *{box-sizing:border-box}
#ezRoad [hidden]{display:none!important}
#ezRoad .zd-top{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:8px}
#ezRoad .zd-stars,#ezRoad .zd-count{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:17px;color:#5a00c2;background:#f1e8ff;border-radius:99px;padding:5px 16px}
#ezRoad .zd-count{margin-right:auto;background:#fff;border:1.5px solid #c9a6ff}
#ezRoad .zd-count::before{content:"";display:inline-block;width:1.2em;height:1.2em;vertical-align:-.24em;margin-right:.3em;background:url(/img/ui/flag.svg) center/contain no-repeat}
#ezRoad .zd-stars.pop{animation:zdpop .5s}
@keyframes zdpop{40%{transform:scale(1.35)}}
#ezRoad .zd-pause{font:600 14px/1.3 "Nunito",system-ui,sans-serif;color:#5a00c2;background:#fff;border:1.5px solid #c9a6ff;border-radius:99px;padding:5px 12px;margin:0;cursor:pointer}
#ezRoad .zd-pause:hover{background:#f6f0ff;border-color:#7e10ff}

#ezRoad .zd-task{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;background:#fff;border:3px solid #7e10ff;border-radius:22px;padding:10px 20px;margin-bottom:10px;box-shadow:0 6px 0 #e6dcf7;min-height:72px}
#ezRoad .zd-task.new{animation:zdnew .6s}
@keyframes zdnew{0%{background:#f1e8ff;transform:scale(1.02)}100%{background:#fff;transform:none}}
#ezRoad .zd-what{font-weight:700;font-size:clamp(15px,1.8vw,19px);color:#6a6479}
#ezRoad .zd-goal{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:clamp(24px,3.4vw,38px);line-height:1.15;color:#5a00c2}
#ezRoad .zd-goal.pic{font-size:clamp(40px,5vw,60px);line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}

#ezRoad .zd-stage{position:relative;width:100%;aspect-ratio:16/9;min-height:280px;max-height:74vh;border-radius:22px;overflow:hidden;background:#bfe6ff;border:2px solid #d9c8f5;-webkit-user-select:none;user-select:none}
#ezRoad canvas{display:block;width:100%;height:100%;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}
#ezRoad .zd-signs{position:absolute;left:0;right:0;top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 12px;pointer-events:none}
#ezRoad .zd-signs button{pointer-events:auto;font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:clamp(15px,2.3vw,28px);line-height:1.15;color:#25222e;background:#fff;border:3px solid #7e10ff;border-radius:14px;padding:8px 6px;margin:0;cursor:pointer;box-shadow:0 4px 0 rgba(90,0,194,.35);overflow-wrap:anywhere;min-height:52px}
#ezRoad .zd-signs button.here{background:#f1e8ff;border-color:#5a00c2;box-shadow:0 4px 0 #5a00c2}
#ezRoad .zd-signs button.ok{background:#e3f8ec;border-color:#20c46a;color:#178850;box-shadow:0 4px 0 #178850}
#ezRoad .zd-signs button.no{background:#fdecf1;border-color:#ff7fb0;color:#b8204f;text-decoration:line-through;box-shadow:0 4px 0 #f3b3c7}
#ezRoad .zd-signs button:disabled{cursor:default}
#ezRoad .zd-signs button:focus-visible,#ezRoad .zd-arrow:focus-visible,#ezRoad .zd-go:focus-visible,#ezRoad .zd-speed button:focus-visible,#ezRoad .zd-pause:focus-visible{outline:3px solid #d7d477;outline-offset:2px}
#ezRoad .zd-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#ezRoad .zd-labels span{position:absolute;transform:translate(-50%,-50%);font-family:"Poppins",system-ui,sans-serif;font-weight:800;line-height:1.05;color:#3a0a5e;text-align:center;text-shadow:0 0 4px #fff,0 0 4px #fff,0 0 2px #fff;overflow-wrap:anywhere}
#ezRoad .zd-toast{position:absolute;left:50%;top:86px;transform:translateX(-50%);margin:0;max-width:92%;padding:6px 20px;border-radius:99px;background:#fff;border:3px solid #7e10ff;font-weight:800;font-size:clamp(15px,2.1vw,22px);text-align:center;opacity:0;transition:opacity .2s;pointer-events:none}
#ezRoad .zd-toast.show{opacity:1}
#ezRoad .zd-toast.ok{border-color:#20c46a;color:#178850}
#ezRoad .zd-toast.no{border-color:#ff7fb0;color:#b8204f}
#ezRoad .zd-arrow{position:absolute;bottom:14px;width:64px;height:64px;border-radius:50%;border:3px solid #7e10ff;background:rgba(255,255,255,.9);color:#5a00c2;font-size:26px;line-height:1;cursor:pointer;margin:0;padding:0;box-shadow:0 4px 0 rgba(90,0,194,.35);touch-action:manipulation}
#ezRoad:not(.zd-on) .zd-arrow{display:none}
#ezRoad .zd-arrow.l{left:14px}#ezRoad .zd-arrow.r{right:14px}
#ezRoad .zd-arrow:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(90,0,194,.35)}

#ezRoad .zd-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92%,520px);max-height:94%;overflow:auto;background:#fff;border:3px solid #7e10ff;border-radius:24px;padding:18px 22px;text-align:center;box-shadow:0 10px 0 rgba(90,0,194,.25)}
#ezRoad .zd-panel h3{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:clamp(22px,3vw,30px);color:#5a00c2;margin:0 0 6px}
#ezRoad .zd-panel p{margin:6px 0;font-size:17px;font-weight:700}
#ezRoad .zd-panel ul{list-style:none;margin:4px 0 8px;padding:0;font-weight:800;font-size:18px;color:#178850}
#ezRoad .zd-panel li{margin:2px 0}
#ezRoad .zd-rev{color:#6a6479}
#ezRoad .zd-speed button{font:700 15px/1.3 "Nunito",system-ui,sans-serif;color:#5a00c2;background:#fff;border:1.5px solid #c9a6ff;border-radius:99px;padding:6px 14px;margin:3px;cursor:pointer}
#ezRoad .zd-speed button.on{background:#7e10ff;border-color:#7e10ff;color:#fff}
#ezRoad .zd-go{font-family:"Poppins",system-ui,sans-serif;font-weight:800;font-size:20px;color:#fff;background:#20c46a;border:0;border-radius:14px;padding:11px 36px;margin-top:8px;cursor:pointer;box-shadow:0 4px 0 #178850}
#ezRoad .zd-go:hover{background:#1bb05e}
#ezRoad .zd-keys{margin:6px 0 0;font-size:13px;color:#6a6479}
#ezRoad .zd-nogl{font-weight:700;font-size:18px;padding:20px;background:#f1e8ff;border-radius:16px}

/* full screen (interactive whiteboard) */
#ezRoad.zd-full{max-width:none;margin:0;display:flex;flex-direction:column;padding:1.5vh 2vw;overflow:hidden}
#ezRoad.zd-full .zd-stage{flex:1;aspect-ratio:auto;max-height:none;min-height:0}
#ezRoad.zd-full .zd-keys{display:none}
#ezRoad.zd-full .zd-arrow{width:90px;height:90px;font-size:36px}

@media (max-width:600px){
  #ezRoad .zd-stage{aspect-ratio:3/4;border-radius:16px;max-height:78vh}
  #ezRoad .zd-signs{gap:5px;padding:0 6px;top:6px}
  #ezRoad .zd-signs button{border-width:2px;padding:6px 2px;border-radius:10px;font-size:13px;min-height:44px}
  #ezRoad .zd-toast{top:74px}
  #ezRoad .zd-keys{display:none}
  #ezRoad .zd-arrow{width:56px;height:56px}
}
@media (prefers-reduced-motion:reduce){#ezRoad .zd-stars.pop,#ezRoad .zd-task.new{animation:none}}
@media print{#ezRoad{display:none}}

/* pictures in the bubbles and on the road signs; restart; long descriptions */
#ezRoad .zd-restart{font:600 14px/1.3 "Nunito",system-ui,sans-serif;color:#5a00c2;background:#fff;border:1.5px solid #c9a6ff;border-radius:99px;padding:5px 12px;margin:0;cursor:pointer}
#ezRoad .zd-restart:hover{background:#f6f0ff;border-color:#7e10ff}
#ezRoad .zd-restart:focus-visible{outline:3px solid #d7d477;outline-offset:2px}
#ezRoad .zd-goal.desc{font-size:clamp(17px,2.2vw,26px);font-weight:700;line-height:1.25}
#ezRoad .zd-pic{display:inline-block;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;font-weight:400}
#ezRoad .zd-pic img{width:1em !important;height:1em !important;vertical-align:middle !important;display:block}
#ezRoad .zd-signs button.pic{font-size:clamp(34px,5.4vw,62px);padding:4px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none}
#ezRoad .zd-signs button.pic small{font:800 clamp(12px,1.5vw,17px)/1.1 "Poppins",system-ui,sans-serif;color:inherit;overflow-wrap:anywhere}
#ezRoad .zd-signs button.pic.no{opacity:.75}
#ezRoad .zd-labels span.pic{text-shadow:none;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 2px #fff)}
#ezRoad .zd-panel li .zd-pic{font-size:1.5em;vertical-align:middle}
#ezRoad .zd-panel li .zd-pic img{display:inline-block}
@media (max-width:560px){ #ezRoad .zd-signs button.pic{font-size:30px;min-height:48px} }
