/* A supporting cast from the opening: folded edges, small faces, quiet shadows.
   Section sizing and the main visual remain owned by playground.css. */
.playground .morph-study { background: none; border-radius: 0; box-shadow: none; transform: rotate(-3deg); }
.playground .section-intro--morph .morph-study { padding: 0; }
.playground .morph-drawing { max-width: 290px; filter: drop-shadow(8px 12px 0 rgb(23 53 160/.25)); }
.playground .morph-papers { stroke-width: .5; stroke-opacity: .16; }
.playground .morph-controls { position: relative; color: var(--paper); border-color: #8aa1ef; margin-top: 12px; }
.playground .morph-controls button { color: #e2e7ff; }
.playground .morph-controls button[aria-pressed=true] { color: var(--yellow); }
.playground .morph-controls button[aria-pressed=true]::after { background: var(--yellow); }
.playground .morph-caption { color: #e2e7ff; margin-top: 8px; }

/* A tiny page-making studio. Each object has a single, clear silhouette. */
.playground .design-canvas { isolation: isolate; }
.make-cloud,.make-orbit { position: absolute; inset: 7% 4%; width: 92%; height: 86%; pointer-events: none; }
.make-cloud { filter: drop-shadow(5px 8px 0 rgb(20 48 139/.18)); }
.make-orbit { z-index: 1; }
.make-helper { position: absolute; left: 5%; bottom: 12%; width: 28%; max-height: 85%; z-index: 4; transform: rotate(-10deg); filter: drop-shadow(6px 10px 0 rgb(34 39 34/.12)); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.make-spark { position: absolute; left: 26%; top: 7%; width: 7%; z-index: 4; transform: rotate(8deg); transition: transform .6s; }
.playground .design-sheet { left: 38%; top: 15%; width: 44%; height: 70%; border-color: #3e4b68; border-radius: 12px 12px 7px 7px; box-shadow: 6px 7px 0 #b3bdd5,11px 15px 0 rgb(34 39 34/.1); }
.playground .sheet-bar { background: #e7ebf4; border-color: #a9b3c6; border-radius: 11px 11px 0 0; }
.playground .sheet-bar i { width: 5px; height: 5px; border: 0; background: var(--blue); }
.playground .sheet-bar i:nth-child(2) { background: var(--yellow); }
.playground .sheet-bar i:nth-child(3) { background: var(--green); }
.playground .sheet-content { height: calc(100% - 24px); }
.playground .sheet-rule { width: 58%; }
.playground .sheet-rule--short { width: 38%; }
.sheet-friend { position: absolute; right: 12px; bottom: 10px; width: 22%; max-width: 88px; }
.playground .design-sticker { width: 13%; min-height: 42px; aspect-ratio: auto; padding: 12px 6px; inset: 7% 7% auto auto; border: 0; border-radius: 50% 50% 45% 45%; font-size: clamp(10px,1.2vw,15px); box-shadow: 3px 4px 0 #cfaa34; transform: rotate(10deg); }
.playground .design-sticker::after { content: ''; position: absolute; left: 18%; bottom: -8px; width: 17px; height: 17px; background: var(--yellow); clip-path: polygon(0 0,100% 0,15% 100%); }
.playground .design-cursor.friend-pointer { width: 12%; max-height: 48%; left: auto; right: 4%; bottom: 6%; transform: rotate(5deg); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.playground .design-canvas[data-design-view=bold] .make-helper { transform: translateY(-5%) rotate(6deg); }
.playground .design-canvas[data-design-view=bold] .design-sheet { border-radius: 12px 12px 7px 7px; }
.playground .design-canvas[data-design-view=bold] .make-spark { transform: rotate(48deg); }
.playground .design-canvas[data-design-view=play] .make-helper { transform: translateY(-7%) rotate(-18deg); }
.playground .design-canvas[data-design-view=play] .design-sheet { border-radius: 12px 36px 7px 7px; }
.playground .design-canvas[data-design-view=play] .make-spark { transform: rotate(100deg); }
.playground .design-canvas[data-design-view=play] .friend-pointer { transform: translate(-8%,-8%) rotate(-10deg); }

/* The stair and pencil leave the live text experiment in the center. */
.lesson-cloud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.playground .lesson-paper { left: 22%; top: 6%; width: 72%; height: 80%; z-index: 2; border-color: #bbaf84; border-radius: 7px; box-shadow: 5px 6px 0 #e4ddc5,10px 13px 0 rgb(134 106 20/.2); }
.playground .lesson-paper::before { content: ''; position: absolute; width: 24%; height: 25px; left: 31%; top: -13px; background: #7895e6; opacity: .78; transform: rotate(6deg); clip-path: polygon(0 4%,95% 0,100% 90%,5% 100%); }
.playground .lesson-paper-label { color: #646c61; }
.playground .lesson-stair.lesson-friend { left: -5%; bottom: 0; width: 32%; z-index: 3; transform: rotate(-8deg); filter: drop-shadow(5px 8px 0 rgb(129 102 20/.15)); }
.lesson-pencil { position: absolute; right: -5%; top: -2%; width: 19%; z-index: 4; transform: rotate(15deg); filter: drop-shadow(4px 7px 0 rgb(129 102 20/.12)); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.lesson-spark { position: absolute; width: 12%; left: 4%; top: 40%; z-index: 1; transform: rotate(-15deg); transition: transform .5s; }
.playground .lesson-sticker { left: 1%; right: auto; top: 12%; width: 21%; aspect-ratio: auto; padding: 12px 3px; border-radius: 50%; font-size: clamp(16px,2.1vw,27px); background: var(--blue); box-shadow: 3px 5px 0 #cfac38; transform: rotate(-12deg); transition: background .3s,transform .5s; }
.playground .activity-art--learn:has(.lesson-switch[aria-pressed=true]) .lesson-pencil { transform: translateY(4%) rotate(3deg); }
.playground .activity-art--learn:has(.lesson-switch[aria-pressed=true]) .lesson-spark { transform: rotate(65deg); }
.playground .activity-art--learn:has(.lesson-switch[aria-pressed=true]) .lesson-sticker { background: var(--green); transform: rotate(6deg); }

/* A green cloth cover, cream page edges and a bookmark who peeks out. */
.journal-aura { position: absolute; left: 48%; top: -4%; width: 52%; height: 105%; pointer-events: none; }
.journal-bookmark { position: absolute; width: 10%; left: 48%; top: 26%; z-index: 2; transform: rotate(-13deg); filter: drop-shadow(4px 8px 0 rgb(10 28 21/.18)); transition: transform .7s cubic-bezier(.22,1,.36,1); }
.journal-spark { position: absolute; width: 5%; left: 94%; top: 3%; z-index: 4; transform: rotate(15deg); }
.playground .journal-book { isolation: isolate; }
.playground .journal-book::before { content: ''; position: absolute; inset: 5px -7px -6px 8px; z-index: -1; background: repeating-linear-gradient(0deg,#d5ddcb 0 1px,#f8f7f1 1px 3px); border-radius: 3px 9px 9px 3px; box-shadow: 7px 10px 0 rgb(10 28 21/.18); }
.playground .cover-front { background: linear-gradient(110deg,#426959,#2f5145 70%); color: var(--paper); border: 1px solid #6d8d79; border-radius: 3px 9px 9px 3px; box-shadow: inset 8px 0 0 rgb(20 50 38/.25),inset 10px 0 0 rgb(188 210 181/.12),8px 13px 24px rgb(10 28 21/.18); }
.playground .cover-top { color: #d7e1d0; border-color: #75927d; }
.playground .cover-title { color: var(--paper); }
.playground .cover-copy,.playground .cover-mark { display: none; }
.cover-face { position: absolute; width: 42%; max-width: 88px; left: 29%; bottom: 23%; }
.playground .cover-bottom { color: #d7e1d0; border-color: #75927d; }
.playground .journal-pages,.playground .cover-back { border-radius: 3px 7px 7px 3px; }
.playground .journal-pages { background: linear-gradient(90deg,#e6e9dc,var(--paper) 12%); }
.playground .journal-pages li::before { content: ''; display: inline-block; vertical-align: .08em; width: 5px; height: 5px; background: #e9c64c; border-radius: 50%; margin-right: 8px; }
.playground .media-wordmark { opacity: .82; }
.playground .is-book-open .media-wordmark { opacity: .14; }
.playground .is-book-open .journal-bookmark { transform: translateY(-10%) rotate(7deg); }
.profile-friend { position: absolute; top: -32px; right: 18px; width: 64px; transform: rotate(10deg); filter: drop-shadow(3px 5px 0 rgb(34 39 34/.12)); pointer-events: none; }

@media (max-width:760px) {
  .playground .morph-drawing { max-width: 235px; }
  .playground .morph-controls { margin-top: 10px; }
  .playground .morph-controls button { font-size: 10px; }
  .make-cloud,.make-orbit { inset: 8% 0; width: 100%; height: 84%; }
  .make-helper { left: 0; bottom: 8%; width: 31%; }
  .make-spark { top: 11%; left: 9%; width: 12%; }
  .playground .design-sheet { left: 29%; top: 16%; width: 61%; height: 71%; }
  .playground .sheet-content { height: calc(100% - 22px); padding-inline: 12px; }
  .sheet-friend { right: 10px; bottom: 8px; width: 21%; }
  .playground .design-sticker { inset: 4% 4% auto auto; width: 25%; min-height: 34px; padding: 9px 4px; font-size: 10px; }
  .playground .design-cursor.friend-pointer { width: 19%; right: -1%; bottom: 0; max-height: 42%; }
  .playground .design-canvas .canvas-kicker { left: 16px; top: 12px; font-size: 5px; }
  .playground .design-canvas .canvas-foot { left: 16px; bottom: 11px; font-size: 5px; }
  .playground .lesson-paper { padding: 20px; }
  .playground .lesson-sticker { font-size: 16px; padding-block: 9px; }
  .playground .lesson-paper::before { height: 20px; top: -10px; }
  .journal-aura { left: 20%; top: 12%; width: 80%; height: 81%; }
  .journal-bookmark { left: 9%; top: 38%; width: 21%; }
  .journal-spark { left: 88%; top: 14%; width: 10%; }
  .playground .media-wordmark { opacity: .3; }
  .profile-friend { width: 56px; top: -27px; }
}
@media (max-width:380px) {
  .playground .lesson-paper { padding: 17px; }
  .playground .lesson-paper-label { font-size: 9px; padding-bottom: 11px; }
  .playground .lesson-preview { font-size: 42px; margin-top: 14px; }
  .playground .lesson-code { padding-top: 9px; }
}

/* Changes of pose follow the existing controls, with no perpetual animation. */
.motion-off .playground .make-helper,.motion-off .playground .make-spark,
.motion-off .playground .friend-pointer,.motion-off .playground .lesson-pencil,
.motion-off .playground .lesson-spark,.motion-off .playground .lesson-sticker,
.motion-off .playground .journal-bookmark { transition: none; }
@media (prefers-reduced-motion:reduce) {
  .playground .make-helper,.playground .make-spark,.playground .friend-pointer,
  .playground .lesson-pencil,.playground .lesson-spark,.playground .lesson-sticker,
  .playground .journal-bookmark { transition: none; }
}
