/* ---------- Guess My Doodle ---------- */
.dpad {
  --cv: clamp(240px, min(100cqi - 40px, 100vh - 300px), 600px);
  position: relative; width: var(--cv); padding: 14px; border-radius: 30px;
  background: linear-gradient(160deg, #fdf7f1, #f2e6ee);
  box-shadow: 0 14px 0 -2px #e3cfdc, 0 30px 50px -24px rgba(73, 52, 110, 0.55);
}
.dcanvas {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 20px; background: #fffdf9; touch-action: none;
  box-shadow: inset 0 0 0 2px rgba(61, 53, 83, 0.06);
  /* faint paper dots */
  background-image: radial-gradient(rgba(61, 53, 83, 0.07) 1px, transparent 1.4px); background-size: 22px 22px;
}
.dpad.can-draw .dcanvas { cursor: crosshair; }
.dpad.nope { animation: shakeflat 0.45s ease; }
.dguesses { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; justify-content: center; }
.gchip { background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 18px; box-shadow: var(--shadow-soft); animation: pop 0.4s var(--ease-spring); color: var(--ink-soft); text-decoration: line-through; }
.gchip.right { color: #1f6b47; background: #c9f0dc; text-decoration: none; font-weight: 600; }

.stage-extra { width: 100%; display: flex; justify-content: center; }
.dtools { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(100%, 640px); }
.dtools:empty { display: none; }
.crayons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.crayon { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #fff; background: var(--c); box-shadow: var(--shadow-soft); cursor: pointer; transition: transform 0.2s var(--ease-spring); }
.crayon.on { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px var(--ink), var(--shadow-soft); }
.crayon.thick { background: #fff; display: grid; place-items: center; }
.crayon.thick span { width: 22px; height: 8px; border-radius: 4px; background: var(--ink); }
.dbtns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.dbtns .link-btn { margin-top: 0; }
.choices4, .choose-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.choose-row { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.pick {
  border: 0; border-radius: 20px; background: var(--cream); box-shadow: 0 5px 0 #e4dbe9, 0 14px 22px -14px rgba(73, 52, 110, 0.45);
  min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 18px; font-weight: 600; cursor: pointer; transition: transform 0.2s var(--ease-spring);
}
.pick .em { font-size: 34px; line-height: 1; }
.pick.big { min-height: 120px; font-size: 21px; }
.pick.big .em { font-size: 52px; }
.pick:active { transform: translateY(3px); }
.pick[disabled] { opacity: 0.45; cursor: default; }
.pick.wrong { text-decoration: line-through; }
.tries { font-size: 16px; color: var(--ink-soft); min-height: 20px; }
.dscore { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.dround { font-weight: 600; font-size: 19px; text-align: center; }
.dhist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 16px; }
.dhist .who { color: var(--ink-soft); }
.dhist .none { color: #b0a7bf; }
.reveal .big-emoji { font-size: 72px; line-height: 1.1; animation: pop 0.6s var(--ease-spring); }
.game-doodle .stage { gap: 14px; }

@media (max-width: 1099px) {
  .dpad { --cv: clamp(240px, 100cqi - 24px, 620px); }
}
@media (max-width: 620px) {
  .dpad { padding: 8px; border-radius: 20px; --cv: calc(100cqi - 4px); }
  .dcanvas { border-radius: 14px; }
  .choices4 { grid-template-columns: repeat(2, 1fr); }
  .choose-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pick.big { min-height: 96px; font-size: 17px; }
  .pick.big .em { font-size: 40px; }
  .crayon { width: 40px; height: 40px; }
  .gchip { font-size: 15px; }
}
