/* Coloring Book: laid out like Get Dressed (it uses that game's .dr- styles for the scene, cards and
   typing line); these are its own touches. */
.game.coloring { background: #fff4ec; }
.game.coloring .dr-scene { background: #ffe9d6; }
.game.coloring .cb-sheet { stroke: #3a2a4a; stroke-width: 6; }
.game.coloring .dr-card .dr-thumb { pointer-events: none; }
.game.coloring .hud .btn.ghost { background: #fff; }

/* the parts of the picture: tap one to paint it; the one to paint next glows */
.game.coloring .cb-part { cursor: pointer; transition: fill .35s ease; }
.game.coloring .cb-part.now { filter: drop-shadow(0 0 6px #ffc400) drop-shadow(0 0 14px #ffc400); animation: cb-glow 1.3s ease-in-out infinite alternate; }
.game.coloring .cb-part.now[fill="#ffffff"] { fill: #fff6a8; }
.game.coloring .cb-part.dab { animation: cb-dab .45s ease-out; }
.game.coloring .cb-part.dab.now { animation: cb-glow 1.3s ease-in-out infinite alternate; }

/* what's said, above the picture */
.game.coloring .cb-say { left: 50%; top: 14%; }

/* the gallery wall, after hanging a picture up */
.game.coloring .cb-wall { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; background: #fbf1e3; opacity: 0; pointer-events: none; transition: opacity .6s ease; overflow: hidden; }
.game.coloring .cb-wall.show { opacity: 1; }
.game.coloring .cb-wall h3 { font-size: 28px; color: var(--grape); margin: 0; }
.cb-frames { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; min-height: 0; }
.cb-frame { background: #fff; border: 6px solid #c98a4b; outline: 3px solid var(--ink); border-radius: 4px; padding: 5px; box-shadow: 0 6px 0 rgba(58, 42, 74, .2); }
.cb-frame svg { display: block; width: 150px; height: 112px; }
.cb-frames .cb-frame.cb-new { animation: dr-pop .7s .6s cubic-bezier(.2, 1.7, .4, 1) both; }
.cb-frames .cb-frame.cb-new svg { width: 260px; height: 195px; }

@media (max-height: 820px) {
  .game.coloring .cb-wall { padding: 8px; gap: 4px; }
  .game.coloring .cb-wall h3 { font-size: 22px; }
  .cb-frames { gap: 8px; }
  .cb-frame svg { width: 100px; height: 75px; }
  .cb-frames .cb-frame.cb-new svg { width: 180px; height: 135px; }
}

/* picking a picture */
.game.coloring .cb-panel { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 10px 16px; background: rgba(58, 42, 74, .28); }
.game.coloring .cb-panel[hidden] { display: none; }
.game.coloring .cb-card { background: var(--paper); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 rgba(58, 42, 74, .3); padding: 14px 22px 10px; text-align: center; width: min(860px, 100%); max-height: calc(100% - 8px); display: flex; flex-direction: column; align-items: center; min-height: 0; }
.game.coloring .cb-card h3 { font-size: 30px; color: var(--grape); }
.game.coloring .cb-card > p { font-size: 18px; font-weight: 700; margin: 2px 0 8px; line-height: 1.25; text-wrap: balance; }
.game.coloring .cb-pages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; padding: 4px; overflow: auto; min-height: 0; margin-bottom: 8px; }
.game.coloring .cb-page { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 5px 3px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; font: inherit; font-weight: 800; font-size: 13px; line-height: 1.1; color: var(--ink); cursor: pointer; }
.game.coloring .cb-page:hover { background: #fff3a0; }
.game.coloring .cb-page svg { display: block; width: 100%; height: auto; }
.game.coloring .cb-enter { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-top: 3px; }

/* the gallery card */
.cb-gallery-modal .cb-walls { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-height: 60vh; overflow: auto; padding: 8px; background: #fbf1e3; border-radius: 14px; }

/* the photo on the results card */
.cb-photo svg { width: 208px; height: 156px; background: #fff; }

@keyframes cb-glow { from { opacity: 1; } to { opacity: .72; } }
@keyframes cb-dab { 0% { opacity: .35; } 100% { opacity: 1; } }
