/* Englishzilla – Zilly's buzzer duel (needs ez-zgames.css) */
#ezDuel .zd-lab{align-self:center;margin-right:4px;font-weight:700;font-size:14px;color:#6a6479}
#ezDuel .zd-arena{position:relative;min-height:420px;border-radius:22px;border:2px solid #d9c8f5;padding:12px;background:linear-gradient(90deg,#f1e8ff 0 33%,#faf7ff 33% 67%,#e3f8ec 67%);transition:background .3s}
#ezDuel.win-v .zd-arena{background:linear-gradient(90deg,#d9c2ff 0 33%,#faf7ff 33% 67%,#e3f8ec 67%)}
#ezDuel.win-g .zd-arena{background:linear-gradient(90deg,#f1e8ff 0 33%,#faf7ff 33% 67%,#bdf0d2 67%)}

/* the scores */
#ezDuel .zd-board{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin-bottom:12px}
#ezDuel .zd-p{display:flex;align-items:center;gap:12px;font-family:"Poppins",system-ui,sans-serif;font-weight:800}
#ezDuel .zd-p.g{justify-content:flex-end}
#ezDuel .zd-name{font-size:clamp(16px,2.2vw,26px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ezDuel .zd-p.v .zd-name{color:#5a00c2}
#ezDuel .zd-p.g .zd-name{color:#178850}
#ezDuel .zd-pts{display:inline-flex;align-items:center;justify-content:center;min-width:1.6em;padding:2px 12px;border-radius:16px;color:#fff;font-size:clamp(30px,4.4vw,56px);line-height:1.1}
#ezDuel .zd-p.v .zd-pts{background:#7e10ff;box-shadow:0 5px 0 #5a00c2}
#ezDuel .zd-p.g .zd-pts{background:#20c46a;box-shadow:0 5px 0 #178850}
#ezDuel .zd-pts.pop{animation:zdpop .5s}
@keyframes zdpop{40%{transform:scale(1.35)}}
#ezDuel .zd-qn{display:block;padding:4px 14px;border-radius:99px;background:#fff;border:2px solid #d9c8f5;font-weight:700;font-size:14px;color:#6a6479;white-space:nowrap}

/* the three columns: violet answers – the question – green answers */
#ezDuel .zd-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:stretch}
#ezDuel .zd-pad{display:flex;flex-direction:column;gap:10px;justify-content:center}
#ezDuel .zd-who{display:none;margin:0;text-align:center;font:800 15px/1.2 "Poppins",system-ui,sans-serif}
#ezDuel .zd-pad.v .zd-who{color:#5a00c2}
#ezDuel .zd-pad.g .zd-who{color:#178850}
#ezDuel .zd-pad button{position:relative;display:flex;align-items:center;justify-content:center;min-height:64px;margin:0;padding:8px 12px 8px 40px;background:#fff;border:3px solid;border-radius:16px;font:800 clamp(16px,1.9vw,26px)/1.2 "Nunito",system-ui,sans-serif;color:#25222e;cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
#ezDuel .zd-pad.v button{border-color:#b98aff;box-shadow:0 4px 0 #b98aff}
#ezDuel .zd-pad.g button{border-color:#6fe0a0;box-shadow:0 4px 0 #6fe0a0}
#ezDuel .zd-pad button:hover:not(:disabled){filter:brightness(.97)}
#ezDuel .zd-pad button:active:not(:disabled){transform:translateY(3px);box-shadow:none}
#ezDuel .zd-pad button:disabled{cursor:default;opacity:.5}
#ezDuel .zd-pad button.ok{opacity:1;background:#e3f8ec;border-color:#20c46a;color:#178850}
#ezDuel .zd-pad button.no{opacity:1;background:#fdecf1;border-color:#ff7fb0;color:#b8204f;text-decoration:line-through}
#ezDuel .zd-pad kbd{position:absolute;left:9px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:7px;font:800 13px/24px "Poppins",system-ui,sans-serif;text-align:center;padding:0;box-shadow:none;border:0;color:#fff}
#ezDuel .zd-pad.v kbd{background:#7e10ff}
#ezDuel .zd-pad.g kbd{background:#20c46a}

#ezDuel .zd-card{position:relative;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:16px 18px;background:#fff;border:3px solid #7e10ff;border-radius:22px;box-shadow:0 6px 0 rgba(43,33,64,.12);text-align:center}
#ezDuel .zd-kind{margin:0;font-weight:700;font-size:15px;color:#6a6479}
#ezDuel .zd-ask{margin:0;font:800 clamp(20px,2.5vw,34px)/1.3 "Poppins",system-ui,sans-serif;color:#25222e;text-wrap:balance}
#ezDuel .zd-ask.long{font-size:clamp(17px,1.9vw,26px)}
#ezDuel .zd-topicname{display:inline-block;padding:4px 20px;border-radius:14px;background:#7e10ff;color:#ffd84d;letter-spacing:.04em;text-transform:uppercase}
#ezDuel .zd-gap{display:inline-block;width:2.6em;border-bottom:4px solid #ff7fb0;margin:0 .1em;height:.9em}
#ezDuel .zd-fill{color:#178850;background:#e3f8ec;border-radius:8px;padding:0 .2em}
#ezDuel .zd-timer{height:8px;border-radius:99px;background:#efe6ff;overflow:hidden}
#ezDuel .zd-timer i{display:block;height:100%;background:#ffd84d;transform-origin:0 50%}
#ezDuel .zd-res{margin:0;min-height:1.4em;font-weight:800;font-size:clamp(15px,1.7vw,20px);color:#25222e}
#ezDuel .zd-res.v{color:#5a00c2}
#ezDuel .zd-res.g{color:#178850}
#ezDuel .zd-say{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#f1e8ff;font-size:17px;cursor:pointer;margin:0;padding:0}
#ezDuel .zd-say.on,#ezDuel .zd-say:hover{background:#e3d2ff}

/* start / result */
#ezDuel .zd-panel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(37,34,46,.45);border-radius:20px;z-index:8}
#ezDuel .zd-pin{width:min(94%,620px);max-height:100%;overflow:auto;background:#fff;border:3px solid #7e10ff;border-radius:22px;padding:14px 20px 18px;text-align:center;box-shadow:0 8px 0 rgba(43,33,64,.25)}
#ezDuel .zd-pin h3{margin:0 0 6px;font:800 clamp(20px,3vw,32px)/1.2 "Poppins",system-ui,sans-serif;color:#5a00c2}
#ezDuel .zd-pin h3.g{color:#178850}
#ezDuel .zd-pin p{margin:0 0 10px;font-weight:700;font-size:clamp(15px,1.9vw,19px);line-height:1.4;color:#25222e}
#ezDuel .zd-names{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 10px}
#ezDuel .zd-names label{display:flex;flex-direction:column;gap:4px;text-align:left;font-weight:700;font-size:14px}
#ezDuel .zd-names label.v{color:#5a00c2}
#ezDuel .zd-names label.g{color:#178850}
#ezDuel .zd-names input{width:100%;padding:8px 12px;border:2px solid currentColor;border-radius:12px;font:700 17px/1.2 "Nunito",system-ui,sans-serif;color:#25222e;background:#fff}
#ezDuel .zd-names input:focus{outline:3px solid #ffd84d}
#ezDuel .zd-keys .v{color:#5a00c2}
#ezDuel .zd-keys .g{color:#178850}
#ezDuel .zd-keys span{display:inline-block;margin:0 8px;padding:2px 10px;border-radius:8px;background:#f6f0ff;font-family:"Poppins",system-ui,sans-serif}
#ezDuel .zd-cup{position:relative;width:110px;margin:0 auto 4px}
#ezDuel .zd-cup svg{display:block;width:100%;height:auto;animation:zdjump .6s 3}
#ezDuel .zd-cup.g svg{filter:hue-rotate(-150deg) saturate(1.2) brightness(1.5)}
#ezDuel .zd-cup span{position:absolute;right:-18px;top:-6px;font-size:44px;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
@keyframes zdjump{50%{transform:translateY(-12%)}}
#ezDuel .zd-final{font:800 clamp(20px,2.6vw,30px)/1.2 "Poppins",system-ui,sans-serif!important}
#ezDuel .zd-final .v{color:#5a00c2}
#ezDuel .zd-final .g{color:#178850}
#ezDuel .zd-rev{text-align:left}
#ezDuel .zd-rev p{font-size:15px;color:#6a6479;margin:0 0 4px}
#ezDuel .zd-rev ul{margin:0 0 8px;padding-left:20px;font-size:clamp(14px,1.6vw,17px);line-height:1.8}
#ezDuel .zd-rev b{padding:0 7px;border-radius:99px}
#ezDuel .zd-rev b.n{background:#fdecf1;color:#b8204f}
#ezDuel .zd-rev b.y{background:#e3f8ec;color:#178850}
#ezDuel .zd-go{margin:6px 0 0;padding:10px 32px;border:0;border-radius:99px;background:#20c46a;color:#fff;font:800 clamp(18px,2.4vw,28px)/1.2 "Poppins",system-ui,sans-serif;cursor:pointer;box-shadow:0 5px 0 #178850}
#ezDuel .zd-go:hover:not(:disabled){background:#1bb05f}
#ezDuel .zd-go:disabled{opacity:.5}

#ezDuel.zg-full .zd-arena{flex:1;min-height:0;display:flex;flex-direction:column}
#ezDuel.zg-full .zd-row{flex:1}
#ezDuel.zg-full .zd-pad button{min-height:84px;font-size:clamp(20px,2.4vw,34px)}

/* phones: violet answers, the question, green answers – one under the other */
@media (max-width:700px){
  #ezDuel .zd-arena{background:#faf7ff;padding:10px}
  #ezDuel .zd-row{grid-template-columns:1fr}
  #ezDuel .zd-card{order:-1}
  #ezDuel .zd-pad{flex-direction:row;flex-wrap:wrap;gap:6px}
  #ezDuel .zd-who{display:block;flex-basis:100%}
  #ezDuel .zd-pad button{flex:1 1 30%;min-height:52px;font-size:15px;padding:6px 6px 6px 30px}
  #ezDuel .zd-pad kbd{left:5px;width:20px;height:20px;line-height:20px;font-size:11px}
  #ezDuel .zd-pad.v{padding:8px;border-radius:14px;background:#f1e8ff}
  #ezDuel .zd-pad.g{padding:8px;border-radius:14px;background:#e3f8ec}
  #ezDuel .zd-names{grid-template-columns:1fr}
}
/* merged 23.11: on narrow phones the score bar must not be wider than the screen */
#ezDuel .zd-board{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
#ezDuel .zd-p{min-width:0}
@media (max-width:480px){#ezDuel .zd-board{gap:6px}#ezDuel .zd-p{gap:6px}#ezDuel .zd-name{font-size:14px}}
