/* 자유 그림(그림판)과 작품집 */

/* 그림판: 화면을 넓게 쓰고 그림을 가장 크게 */
.screen.studio { max-width: 1900px; height: 100vh; min-height: 0; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.st-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr) 230px; gap: 16px; align-items: start; }
.st-left { display: flex; flex-direction: column; gap: 10px; }
.st-tool {
  min-height: 84px; border-radius: 18px; border: 3px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--display); font-size: 17px;
}
.st-tool span { font-size: 32px; line-height: 1.1; }
.st-tool.on { border-color: var(--kid); background: var(--kid-soft); color: var(--kid); }
.st-sizes { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.st-size { height: 58px; border-radius: 14px; border: 3px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.st-size span { display: block; border-radius: 50%; background: var(--ink); }
.st-size.on { border-color: var(--kid); }
.st-canvas-wrap { display: flex; justify-content: center; min-width: 0; min-height: 0; }
#st-canvas {
  display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 110px);
  background: #fff; border-radius: 16px; box-shadow: 0 0 0 3px var(--line); touch-action: none; cursor: crosshair;
}
.st-right { display: flex; flex-direction: column; gap: 14px; }
.st-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-color { aspect-ratio: 1; border-radius: 50%; background: var(--c); border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--line); padding: 0; }
.st-color.on { box-shadow: 0 0 0 5px var(--kid); }
.st-actions { display: flex; flex-direction: column; gap: 8px; }
.st-actions .btn { min-height: 52px; font-size: 19px; padding: 0 12px; }
.st-actions .big-btn { min-height: 66px; font-size: 22px; max-width: none; margin-top: 4px; }
.st-msg { color: var(--good); font-family: var(--display); font-size: 19px; text-align: center; }
.st-overlay { position: fixed; inset: 0; background: rgba(20, 24, 33, .5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.st-dialog { background: var(--surface); border-radius: 28px; padding: 26px; width: min(720px, 100%); display: flex; flex-direction: column; gap: 14px; }
.st-dialog h2 { font-size: 30px; }
.st-dialog img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 2px var(--line); }
.st-dialog .field input { font-family: var(--body); font-size: 22px; }

/* 작품집 */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.art-tile { background: var(--surface); border: none; border-radius: 20px; overflow: hidden; padding: 0; display: flex; flex-direction: column; text-align: left; box-shadow: 0 3px 0 var(--line); }
.art-tile:active { transform: scale(.98); }
.art-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; display: block; }
.art-noimg { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 60px; background: var(--bg); }
.art-meta { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.art-meta b { font-family: var(--display); font-weight: 400; font-size: 22px; overflow-wrap: anywhere; }
.art-meta span { color: var(--muted); font-size: 15px; }
.art-view { gap: 14px; }
.art-view-body { flex: 1; display: flex; gap: 24px; align-items: flex-start; justify-content: center; flex-wrap: wrap; min-height: 0; }
.art-big img { display: block; max-width: 100%; max-height: calc(100vh - 230px); border-radius: 20px; box-shadow: 0 0 0 3px var(--line); background: #fff; }
.art-poem.big { background: var(--surface); border-radius: 20px; padding: 20px 24px; max-width: 420px; }

@media (max-width: 900px) {
  .screen.studio { height: auto; }
  .st-body { grid-template-columns: 1fr; }
  .st-left { flex-direction: row; flex-wrap: wrap; }
  .st-sizes { flex-direction: row; margin-top: 0; }
  .st-tool { min-width: 96px; }
  #st-canvas { max-height: 60vh; }
  .st-colors { grid-template-columns: repeat(8, 1fr); }
}
