.playground-dialog { width: min(1040px, calc(100vw - 24px)); }
#playground-dialog, #playground-result, #playground-route { scroll-padding-top: 64px; }
#playground-dialog > .update-close, #playground-result > .update-close, #playground-route > .update-close { width: 44px; height: 44px; min-height: 44px; padding: 0; line-height: 1; font-size: 1.25rem; }
#playground-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#playground-tabs button { font-size: .875rem; padding: 8px; scroll-margin-top: 64px; }
.play-cards { margin-top: 12px; }
.play-cards article { background: linear-gradient(135deg, #e0fff5, #e5e5ff); }
.play-cards article img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play-cards article video { display: block; width: 100%; max-height: 360px; border-radius: 12px; }
.play-cards article button { margin-top: 8px; }
.play-cards input, .play-cards select, .play-maker select { width: 100%; min-height: 44px; padding: 8px; font: inherit; color: #312341; background: white; border: 2px solid #312341; border-radius: 10px; }
.play-reward { margin: 14px 0 0; padding: 12px; border: 2px dashed #845bd3; border-radius: 16px; background: #f9efff; overflow-wrap: anywhere; }
.play-reward p { margin: 8px 0; }
.play-reward button { width: 100%; background: #f9d8ff; }
.play-maker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.play-maker label { display: grid; gap: 6px; font-weight: 800; }
.play-maker-preview { margin-top: 12px; padding: 12px; border: 3px solid #312341; border-radius: 20px; background: #e9f8ff; }
.play-maker-preview > img { max-height: 190px; object-fit: cover; }
.play-maker-preview.gold { border: 7px double #bc8200; background: #fff2aa; box-shadow: inset 0 0 0 3px #fff9d9; }
.play-notice { padding: 12px; border-radius: 14px; background: #fdd4e7; font-weight: 800; }
.play-trail { display: block; width: 100%; border: 2px solid #312341; border-radius: 12px; }
.play-share-preview { margin-top: 12px; padding: 12px; border: 2px solid #312341; border-radius: 14px; background: #e3faff; }
.play-share-preview textarea { width: 100%; min-height: 120px; font: inherit; padding: 8px; border: 2px solid #312341; border-radius: 10px; overflow-wrap: anywhere; }
.play-sticker-result { font-size: 2rem !important; }
#playground-hud { position: fixed; top: max(2px, env(safe-area-inset-top)); left: max(55px, env(safe-area-inset-left)); right: max(55px, env(safe-area-inset-right)); z-index: 12; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 10px; border: 2px solid #312341; border-radius: 12px; background: #fffce7ef; color: #312341; font-size: .875rem; }
#playground-hud strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#playground-hud span { white-space: nowrap; font-weight: 900; }
#playground-hud progress { width: min(90px, 14vw); height: 14px; accent-color: #34cba6; }
#playground-hud[hidden] { display: none; }
body[data-playground="1"] #hud { display: none !important; }
body[data-playground="1"] #exit-button, body[data-playground="1"] #fullscreen-button { top: max(2px, env(safe-area-inset-top)); width: 44px; height: 44px; min-height: 44px; }
body[data-playground="1"] #exit-button { right: max(2px, env(safe-area-inset-right)); }
body[data-playground="1"] #fullscreen-button { left: max(2px, env(safe-area-inset-left)); }
#playground-button { background: #e8d5ff; }
@media (max-width: 1024px), (max-height: 600px) {
  .home-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .home-shortcuts > button { min-height: 44px; font-size: .875rem; padding: 6px; }
}
@media (max-width: 550px) { #playground-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .play-maker { grid-template-columns: 1fr; } }
@media (max-height: 600px) and (orientation: landscape) { .play-cards article > img { height: 72px; aspect-ratio: auto; object-fit: cover; } }
@media (max-height: 300px) and (orientation: landscape) { #playground-hud { min-height: 30px; font-size: .875rem; padding: 3px 6px; } }
