:root{
  --bg:#ffffff;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#111827;
  --pill:#f3f4f6;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --btn:#111827;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
}

.shell{min-height:100%; display:flex; flex-direction:column;}
.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.topbarInner{
  max-width:960px; margin:0 auto;
  display:flex; align-items:center; gap:12px;
  padding:10px 14px;
}
.brandLogo{
  width:42px; height:42px; object-fit:contain;
  border-radius:12px;
}
.brandText{flex:1; min-width:0;}
.brandTitle{font-weight:900; letter-spacing:.5px;}
.brandSub{font-size:12px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

.stage{flex:1; max-width:960px; margin:0 auto; width:100%; padding:16px 14px 28px;}

.sceneWrap{display:flex; justify-content:center; margin-top:6px;}
.sceneImg{width:100%; max-width:520px; border-radius:22px; box-shadow: var(--shadow);}

.question{text-align:center; font-size:34px; font-weight:900; margin:18px 0 14px;}

.optionsCard{
  max-width:560px; margin:0 auto;
  background:var(--card);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:18px 14px;
}
.optionGrid{display:flex; gap:14px; justify-content:center; align-items:center;}
.optionBtn{
  width:140px; height:140px;
  border-radius:18px; border:0; background:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: transform .08s ease;
}
.optionBtn:active{transform:scale(.98);}
.optionBtn img{width:110px; height:110px; object-fit:contain; border-radius:14px;}

.listenRow{display:flex; justify-content:center; margin-top:14px;}
.listenBtn{
  background:var(--btn); color:#fff; border:0;
  padding:12px 18px; border-radius:14px;
  font-weight:800; cursor:pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.feedback{text-align:center; margin-top:14px; font-weight:800;}
.nextRow{display:flex; justify-content:center; margin-top:12px;}
.nextBtn{background:#111827; color:#fff; border:0; padding:12px 18px; border-radius:14px; font-weight:800; cursor:pointer;}

@media (max-width:560px){
  .question{font-size:30px;}
  .optionBtn{width:108px;height:108px;}
  .optionBtn img{width:86px;height:86px;}
}


/* Drawing screen */
.card.draw{max-width:760px;margin:0 auto;background:#fff;border-radius:22px;box-shadow:var(--shadow);padding:16px;}
.drawHead h2{margin:0 0 6px;font-size:22px;}
.drawHead p{margin:0 0 12px;color:var(--muted);font-weight:600;}
.canvasWrap{background:#f8fafc;border-radius:18px;padding:10px;box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);display:flex;justify-content:center;}
#canvas{width:100%;max-width:900px;height:auto;border-radius:14px;background:#fff;touch-action:none;}
.tools{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;}
.tools label{font-weight:700;color:#111827;display:flex;gap:10px;align-items:center;background:#f3f4f6;padding:10px 12px;border-radius:14px;}
.palette{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:10px;flex-wrap:wrap;}
.color{width:36px;height:36px;border-radius:12px;border:0;box-shadow:0 6px 14px rgba(0,0,0,.12);cursor:pointer;}
.rowBtns{display:flex;gap:10px;justify-content:center;margin-top:12px;flex-wrap:wrap;}
.btn{background:#111827;color:#fff;border:0;padding:12px 14px;border-radius:14px;font-weight:800;cursor:pointer;}
.btn.ghost{background:#f3f4f6;color:#111827;box-shadow:none;}
