.jy { margin-top: 30px; animation: rise .7s .15s both; }
.jy-stage {
  border-radius: 26px; overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(circle at 1px 1px, rgba(44, 46, 53, .09) 1px, transparent 0) 0 0 / 18px 18px, radial-gradient(120% 90% at 50% 0%, #fffdf7, #f4eedd);
}
.jy-art { position: relative; aspect-ratio: 4 / 3; margin-top: -6px; }
.jy-world { position: absolute; left: 0; top: 0; width: 400px; height: 300px; transform-origin: 0 0; }
.jy-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.jy-scene.on { visibility: visible; }
.jy-scene > div { position: absolute; will-change: transform, opacity; opacity: 0; }
.jy svg { display: block; width: 100%; height: 100%; }

.jy-pol { padding: 7px 7px 20px; background: #fff; border-radius: 4px; box-shadow: 0 12px 24px -12px rgba(44, 46, 53, .5); }
.jy-pol::before { content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 16px; margin-left: -23px; transform: rotate(-4deg); background: rgba(255, 171, 45, .65); border-radius: 2px; }
.jy-pol > div { height: 100%; border-radius: 2px; overflow: hidden; }
.jy-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--ink); color: var(--card);
  font: 800 14px/1 var(--body); box-shadow: 0 3px 0 var(--accent), 0 12px 24px -12px rgba(44, 46, 53, .6); white-space: nowrap;
}
.jy-chip span { font-size: 17px; }
.jy-orb {
  display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #fff3d6, var(--accent) 55%, #f08a1c); box-shadow: 0 0 0 10px rgba(255, 171, 45, .22), 0 0 44px 10px rgba(255, 171, 45, .5);
}
.jy-dot { border-radius: 50%; background: var(--accent); }
.jy-dot:nth-child(odd) { background: #6b5a9e; }

.jy-sheet { background: #fffefa; border-radius: 10px; border: 1.5px solid var(--line); box-shadow: 0 16px 30px -18px rgba(44, 46, 53, .45); background-image: repeating-linear-gradient(transparent 0 17px, #efe8d6 17px 18px); background-position: 0 40px; }
.jy-ln { border-radius: 4px; background: #9a9ca3; }
.jy-title { background: var(--ink); border-radius: 6px; }
.jy-tool { filter: drop-shadow(3px 6px 4px rgba(44, 46, 53, .28)); }

.jy-canvas { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1.5px var(--line), 0 18px 34px -18px rgba(44, 46, 53, .55); }
.jy-layer { border-radius: 3px; overflow: hidden; }
.jy-wash { background: repeating-linear-gradient(-45deg, #fbf8f0 0 10px, #f3eee1 10px 20px); border-radius: 3px; }

.jy-page, .jy-leaf, .jy-face { background: #fffefa; }
.jy-page { box-shadow: 0 18px 30px -18px rgba(44, 46, 53, .5); overflow: hidden; }
.jy-l { border-radius: 10px 2px 2px 10px; }
.jy-r, .jy-leaf .jy-face { border-radius: 2px 10px 10px 2px; }
.jy-r::before, .jy-face:not(.jy-back)::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; background: linear-gradient(90deg, rgba(44, 46, 53, .14), transparent); }
.jy-scene > .jy-leaf { transform-style: preserve-3d; background: none; will-change: transform; }
.jy-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.jy-back { transform: rotateY(180deg); border-radius: 10px 2px 2px 10px !important; }
.jy-text { display: grid; gap: 11px; padding: 34px 16px 0 22px; }
.jy-text i { display: block; height: 6px; border-radius: 3px; background: #b7b5ae; }
.jy-text i:first-child { height: 10px; background: var(--ink); width: 60% !important; margin-bottom: 6px; }
.jy-mark { background: rgba(255, 171, 45, .45); border-radius: 3px; z-index: 4; }
.jy-caret { background: var(--ink); border-radius: 2px; z-index: 4; }
.jy-scene > .jy-chip { z-index: 5; }

.jy-cover { border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: inset 7px 0 8px -5px rgba(0, 0, 0, .45), 0 16px 26px -14px rgba(44, 46, 53, .6); }
.jy-cover b { position: absolute; left: 10px; right: 10px; top: 10px; padding: 5px; border-radius: 6px; background: rgba(255, 253, 247, .92); font: 700 13px/1.1 var(--display); text-align: center; color: var(--ink); }
.jy-box { background: linear-gradient(#e3b77a, #d19f5c); border-radius: 4px 4px 10px 10px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08), 0 18px 26px -16px rgba(44, 46, 53, .6); }
.jy-box::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: rgba(255, 253, 247, .35); }
.jy-box-back { background: #b98849; border-radius: 6px 6px 0 0; }
.jy-lid { background: #eac48c; border-radius: 6px; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .35); }
.jy-lid::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: rgba(255, 253, 247, .35); }
.jy-heart { display: grid; place-items: center; border-radius: 50%; background: #e85d4a; color: #fff; font-size: 24px; line-height: 1; border: 3px solid #fff; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.jy-zoom { border-radius: 3px; background: var(--ink); }

.jy-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.jy-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 0; border: 0; border-radius: 12px; background: none;
  font: 800 12px/1.1 var(--body); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s;
}
.jy-tab span { font-size: 19px; transition: transform .3s; }
.jy-tab:hover { background: rgba(255, 171, 45, .16); color: var(--ink); }
.jy-tab.on { color: var(--ink); }
.jy-tab.on span { transform: scale(1.18) rotate(-6deg); }
.jy-tab i { display: block; width: 100%; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.jy-tab s { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); will-change: transform; }

.jy-cap { position: relative; z-index: 1; padding: 20px 22px 0; min-height: 104px; }
.jy-cap b { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--accent); font: 800 11px/1.3 var(--body); letter-spacing: .08em; margin-bottom: 6px; }
.jy-cap strong { display: block; font: 600 25px/1.12 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.jy-cap p { color: var(--ink-2); font-size: 15px; line-height: 1.4; margin-top: 4px; }
.jy-cap span { display: inline-block; white-space: pre; animation: jy-in .5s cubic-bezier(.2, .9, .3, 1) both; }
.jy-cap b { animation: jy-in .4s both; }
@keyframes jy-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 920px) { .jy { max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .jy-cap span, .jy-cap b { animation: none; } }
