/* 온라인 색칠놀이 (/color/): the picture cards, the full-screen colouring board and the "움직여라!" stage. site/color.js */
.cl-head .date { max-width: 46em; }
.cl-tip { margin: 0 0 18px; font-size: 15px; color: #6b5a44; }
.cl-chips { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; margin: 0 0 6px; background: var(--paper, #fffaf0); }
.cl-chip { border: 2px solid #f1e3c8; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 15px; font-weight: 700; background: #fff; color: #4a3a28; cursor: pointer; }
.cl-chip[aria-pressed="true"] { background: #ff7a1a; border-color: #ff7a1a; color: #fff; }
.cl-group h3 { margin: 18px 0 10px; font-size: 20px; }
.cl-group h3 small { font-size: 14px; color: #a08c70; font-weight: 400; }
.cl-group[hidden] { display: none; }
.cl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0 0 28px; }
.cl-card { position: relative; display: block; background: #fff; border: 3px solid #f1e3c8; border-radius: 18px; padding: 8px 8px 10px;
  text-decoration: none; color: #4a3a28; text-align: center; transition: transform .15s, border-color .15s; }
.cl-card:hover, .cl-card:focus-visible { transform: translateY(-3px); border-color: #ff9b4a; }
.cl-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 10px; background: #fff; }
.cl-card b { display: block; margin-top: 6px; font-size: 16px; }
.cl-card.started::after { content: attr(data-started); position: absolute; top: 8px; right: 8px; background: #ff7a1a; color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.cl-mine { margin: 8px 0 30px; }
.cl-mine h2 { margin: 0 0 12px; }
.cl-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cl-mine-item { margin: 0; text-align: center; font-size: 14px; color: #6b5a44; }
.cl-mine-pic { display: block; width: 100%; padding: 0; border: 3px solid #cfe8c0; border-radius: 14px; background: #fff; cursor: pointer; overflow: hidden; }
.cl-mine-pic img { display: block; width: 100%; }
.cl-mine-del { margin-top: 4px; border: 0; background: none; color: #a08c70; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* the colouring board: full screen over the page */
html.cl-lock, html.cl-lock body { overflow: hidden; }
.cl-ed { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #fff7e6; touch-action: manipulation; }
.cl-ed[hidden], .cl-stage[hidden] { display: none; }
.cl-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 2px solid #f1e3c8; flex-wrap: wrap; }
.cl-top b { font-size: 18px; color: #4a3a28; margin-right: auto; }
.cl-btn { border: 0; border-radius: 99px; padding: 9px 14px; font: inherit; font-size: 15px; font-weight: 700; background: #f3ead8; color: #4a3a28; cursor: pointer; }
.cl-btn:active { transform: scale(.96); }
.cl-main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px; }
.cl-board { position: relative; flex: none; background: #fff; border-radius: 14px; box-shadow: 0 3px 14px rgba(120, 80, 30, .15); overflow: hidden;
  touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.cl-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#cl-line { pointer-events: none; }
.cl-busy { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: #8a7458; }
.cl-busy[hidden] { display: none; }
.cl-drop { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); pointer-events: none; animation: cl-drop .5s ease-out forwards; }
@keyframes cl-drop { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.cl-side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 150px; }
.cl-tools { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
.cl-modes { display: flex; gap: 6px; }
.cl-mode { flex: 1; border: 2px solid #f1e3c8; border-radius: 14px; padding: 7px 4px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: #4a3a28; cursor: pointer; }
.cl-mode i { display: block; font-style: normal; font-size: 22px; line-height: 1.1; }
.cl-ico-brush::before { content: "🖍️"; }
.cl-ico-fill::before { content: "🪣"; }
.cl-mode[aria-checked="true"] { border-color: #ff7a1a; background: #fff3e6; box-shadow: 0 0 0 2px #ff7a1a; }
.cl-brushopts { display: flex; flex-direction: column; gap: 6px; }
.cl-brushopts[hidden] { display: none; }
.cl-sizes { display: flex; justify-content: center; gap: 8px; }
.cl-size { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 2px solid #f1e3c8; border-radius: 50%; background: #fff; cursor: pointer; }
.cl-size i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--c, #e8453c); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.cl-size[aria-checked="true"] { border-color: #4a3a28; box-shadow: 0 0 0 2px #4a3a28; }
.cl-inside { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b5a44; justify-content: center; }
.cl-inside input { width: 20px; height: 20px; accent-color: #ff7a1a; }
.cl-board.fill { cursor: pointer; }
.cl-pal { display: grid; grid-template-columns: repeat(4, 30px); gap: 8px; }
.cl-sw { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--c);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .14); cursor: pointer; }
.cl-sw[aria-checked="true"] { transform: scale(1.25); box-shadow: 0 0 0 3px #4a3a28; }
.cl-eraser { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5' stroke='%23e8453c' stroke-width='3'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cl-go { width: 100%; border: 0; border-radius: 18px; padding: 14px 8px; font: inherit; font-size: 20px; font-weight: 800; color: #fff;
  background: #c9b89c; cursor: pointer; }
.cl-go.ready { background: #ff7a1a; box-shadow: 0 0 0 4px #ffd8b0; animation: cl-pulse 1.2s ease-in-out infinite; }
@keyframes cl-pulse { 50% { transform: scale(1.06); } }
.cl-left { margin: 0; font-size: 14px; color: #8a7458; text-align: center; min-height: 2.6em; }
@media (orientation: portrait), (max-width: 700px) {
  .cl-main { flex-direction: column; }
  .cl-side { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .cl-tools { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
  .cl-modes { flex: 0 1 260px; }
  .cl-brushopts { flex-direction: row; align-items: center; gap: 12px; }
  .cl-pal { grid-template-columns: repeat(8, 34px); }
  .cl-sw { width: 34px; height: 34px; }
  .cl-go { width: auto; padding: 12px 22px; font-size: 18px; }
  .cl-left { min-height: 0; width: 100%; }
}
@media (orientation: portrait) and (min-width: 600px) {
  .cl-pal { grid-template-columns: repeat(8, 52px); gap: 12px; }
  .cl-sw { width: 52px; height: 52px; border-width: 4px; }
  .cl-go { padding: 16px 34px; font-size: 22px; }
  .cl-left { font-size: 16px; }
}
@media (min-width: 1000px) and (orientation: landscape) {
  .cl-side { width: 180px; }
  .cl-pal { grid-template-columns: repeat(4, 36px); gap: 9px; }
  .cl-sw { width: 36px; height: 36px; }
}

/* "움직여라!" */
.cl-stage { position: fixed; inset: 0; z-index: 2100; display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% 40%, #fffdf3, #ffe7b8); }
.cl-stage canvas { flex: 1; width: 100%; min-height: 0; }
.cl-stage-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px; }
.cl-stage-bar .cl-btn { font-size: 17px; padding: 12px 18px; background: #fff; box-shadow: 0 2px 8px rgba(120, 80, 30, .15); }
.cl-stage-bar .cl-btn.main { background: #ff7a1a; color: #fff; }
.cl-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 2200; background: #4a3a28; color: #fff;
  padding: 10px 18px; border-radius: 99px; font-size: 15px; }
.cl-toast[hidden] { display: none; }
.cl-how { margin-top: 10px; }
