/* 놀이터 아이콘 메뉴 + 놀이터/도안 두 갈래 (js/play-tabs.js) */
.pt-off { display: none !important; }

/* 두 갈래: 🎠 놀이터 / 📄 도안 */
.pt-space-wrap { padding: 20px 0 4px; }
.pt-space { display: flex; gap: 12px; justify-content: center; }
.pt-space > * { flex: 1 1 0; max-width: 280px; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 20px; border: 2px solid #E8D6C2; background: #fff; color: #5b4339; font: inherit; font-size: 19px; font-weight: 800;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.pt-space > * i { font-style: normal; font-size: 26px; line-height: 1; }
.pt-space > [aria-pressed="true"] { background: #5b4339; border-color: #5b4339; color: #fff; }
.pt-space > *:hover { border-color: #5b4339; }

/* 아이콘 줄: 스크롤해도 위에 붙어 있어요, 휴대폰은 가로로 밀어요 */
.pt-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line, #EFE6DC); }
.pt-bar-in { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pt-bar-in::-webkit-scrollbar { display: none; }
@media (min-width: 861px) { .pt-bar-in { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.pt-ic { position: relative; flex: 0 0 auto; min-width: 80px; min-height: 76px; padding: 8px 12px; border-radius: 18px; border: 2px solid #F0E2D3;
  background: #FFF9F2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2; color: #5b4339; cursor: pointer; text-decoration: none; scroll-snap-align: start;
  transition: background .15s, transform .15s; }
.pt-ic i { font-style: normal; font-size: 30px; line-height: 1; }
.pt-ic span { white-space: nowrap; }
.pt-ic small { position: absolute; top: 4px; right: 7px; font-size: 11px; opacity: .55; }
.pt-ic:hover { transform: translateY(-1px); border-color: #E1C9B2; }
.pt-ic[aria-pressed="true"] { background: #5b4339; border-color: #5b4339; color: #fff; }

/* 모든 놀이가 다른 페이지에 있는 놀이터: 큰 그림 타일 */
.pt-launch { padding-top: 20px; }
.pt-launch-q { margin: 0 0 12px; font-weight: 700; color: #5b4339; }
.pt-launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pt-launch-grid .pt-ic { min-height: 108px; font-size: 15px; }
.pt-launch-grid .pt-ic i { font-size: 40px; }
.pt-launch-grid .pt-ic span { white-space: normal; text-align: center; }

/* 종이로 놀기 모음 */
.pt-paper-h { margin: 0 0 6px; font-size: 24px; }
.pt-paper-sub { margin: 0 0 16px; color: var(--color-text-sub, #6b6b6b); font-size: 15px; line-height: 1.6; }
.pt-paper-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pt-paper-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid #EFE6DC; background: #fff;
  font: inherit; text-align: left; cursor: pointer; min-height: 64px; }
.pt-paper-row:hover { border-color: #C9B8A6; }
.pt-paper-row i { font-style: normal; font-size: 28px; flex: none; }
.pt-paper-row span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pt-paper-row b { font-size: 15px; color: #2b2b2b; }
.pt-paper-row small { font-size: 13px; color: var(--color-text-sub, #6b6b6b); }
.pt-paper-row em { font-style: normal; font-size: 20px; }

/* 원하는 도안 신청하기 (도안 공간 맨 아래) */
.pt-ask-sec { padding-top: 8px; }
.pt-ask { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; border-radius: 24px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #FFE7CF 0%, #FFD3C2 100%); }
.pt-ask-tag { align-self: flex-start; font-size: 13px; font-weight: 800; background: #fff; border-radius: 999px; padding: 5px 12px; color: #B4592A; }
.pt-ask strong { font-size: 21px; line-height: 1.35; }
.pt-ask span:not(.pt-ask-tag) { color: #5b4f45; font-size: 15px; line-height: 1.6; }
.pt-ask em { align-self: flex-start; font-style: normal; font-weight: 800; color: #fff; background: #E8772E; border-radius: 999px; padding: 11px 18px; margin-top: 4px; }

/* 아이콘 메뉴가 있을 때 놀이 칸 정리 */
.pt-on .mg-main { display: block; }
.pt-on .mg-main > .mg-card { margin-bottom: 0; }
.pt-on [id] { scroll-margin-top: calc(var(--header-h) + 104px); }

@media (max-width: 760px) {
  .pt-on .pg-head .pg-photo:not(.ps-hero) { aspect-ratio: 16 / 8; }
  .pt-on .pg-head .ps-hero img { max-height: 170px; object-fit: cover; }
  .pt-on .pg-head .ps-hero-chips { display: none; }
  .pt-on .pg-head .ps-hero-pics { aspect-ratio: auto; height: 170px; }
  .pt-on .pg-head .ps-hero-pics img { height: 170px; }   /* 휴대폰: 노리도장 사진 고르기 단추는 숨겨 아이콘 줄을 위로 */
  .pt-on .pg-head { padding-bottom: 8px; }
  .pt-on [class*="hero-photo"], .pt-on [class*="hero-art"] { display: none; }   /* 휴대폰: 놀이 페이지 제목 칸 사진은 숨겨 아이콘 메뉴를 위로 */
}
@media (max-width: 520px) {
  .pt-space-wrap { padding-top: 14px; }
  .pt-space > * { min-height: 60px; font-size: 17px; border-radius: 18px; }
  .pt-ic { min-width: 74px; min-height: 72px; font-size: 12.5px; }
  .pt-ic i { font-size: 28px; }
  .pt-ask { padding: 20px; }
  .pt-ask strong { font-size: 19px; }
}

/* 놀이 아래 '📄 ○○ 도안 보러 가기' */
.pt-to-doan { margin-top: 18px; margin-bottom: 8px; }
.pt-to-doan a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #F4F8FF; border: 1.5px solid #DCE6F7; color: inherit; text-decoration: none; min-height: 64px; }
.pt-to-doan a:hover { border-color: #9DB7E3; }
.pt-to-doan i { font-style: normal; font-size: 26px; }
.pt-to-doan span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pt-to-doan b { font-size: 16px; color: #2F5DA8; }
.pt-to-doan small { font-size: 13px; color: var(--color-text-sub, #6b6b6b); }
.pt-to-doan em { font-style: normal; font-weight: 800; font-size: 20px; color: #2F5DA8; }
