/* A storybook skin for the crystal world's interface: the side panel is a parchment page with a
   stitched spine and a ribbon, the speech line is a handwritten scroll, the prompt is a ribbon
   banner with a wax seal, keepsake tools are bookmark ribbons, and the camera buttons are brass
   coins. Loaded after the other 3D stylesheets; only presentation changes. */

/* chapter heading: no box, a small ornament above and a gold flourish under the title */
.garden-body .chapter-caption,
.garden-body .world-3d.is-inside-room .chapter-caption,
.garden-body .is-walking .chapter-caption { background: radial-gradient(closest-side, #071220a8 0, #0712205c 55%, transparent 100%); border: 0; padding: 22px 34px 24px 14px; margin-left: -14px; border-radius: 0; text-shadow: 0 2px 14px #050d18; }
.garden-body .chapter-eyebrow { color: #d7b56a; letter-spacing: .26em; }
.garden-body .chapter-eyebrow::before { content: "❦ "; letter-spacing: 0; color: #c9a24f; }
.garden-body .chapter-caption h1 { position: relative; padding-bottom: 12px; margin-bottom: 8px; }
.garden-body .chapter-caption h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(220px, 80%); height: 10px; opacity: .85;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 10'><path d='M0 5h92c6 0 9-4 13-4s7 4 13 4 9-4 13-4 7 4 13 4h76' fill='none' stroke='%23c9a24f' stroke-width='1.3'/><circle cx='118' cy='5' r='2.4' fill='%23c9a24f'/></svg>") left center / contain no-repeat; }
.garden-body .chapter-caption #chapter-sub { font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 13.5px; color: #e6dcc6; }

/* "Look inside" and "Return": a little brass door plate rather than a box */
.garden-body .room-button { background: linear-gradient(170deg, #e9d29b, #c9a24f); color: #2b2218; border: 0; border-radius: 22px 22px 4px 4px; padding: 10px 18px 9px; font: 600 12.5px/1.2 Inter, sans-serif; letter-spacing: .03em; box-shadow: 0 3px 0 #7a5a24, 0 6px 16px #0007, inset 0 1px 0 #fff4cf; }
.garden-body .room-button::before { content: "⌂ "; font-size: 14px; }
.garden-body .room-button:hover { background: linear-gradient(170deg, #f4dfaa, #d8b25c); }

/* the speech line becomes a handwritten note on a small scroll */
.garden-body .world-speech { background: linear-gradient(90deg, #d9c294 0, #f5e9cc 9%, #fbf3df 50%, #f5e9cc 91%, #d9c294 100%); color: #2e2418; border: 0; border-radius: 3px; padding: 12px 26px 11px; font: 600 19px/1.35 "Magic Hand", Caveat, cursive; box-shadow: 0 10px 28px #0009, inset 0 0 18px #b8955a40; text-shadow: none; animation: storybook-unroll .45s ease-out both; }
.garden-body .world-speech::before { content: ""; position: absolute; inset: -5px -6px; border-left: 7px solid #8a6a3a; border-right: 7px solid #8a6a3a; border-radius: 6px; pointer-events: none; opacity: .85; }
@keyframes storybook-unroll { from { clip-path: inset(0 50% 0 50%); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

/* the prompt: a ribbon banner with a wax seal */
.garden-body .world-prompt { background: linear-gradient(180deg, #8f2f2a, #6e221f); color: #fbeedb; border: 0; padding: 10px 30px 10px 12px; border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); padding-left: 26px; box-shadow: none; font: 600 13px/1.2 Fraunces, Georgia, serif; letter-spacing: .02em; filter: drop-shadow(0 6px 10px #0008); }
.garden-body .world-prompt:hover { background: linear-gradient(180deg, #a3382f, #7c2823); }
.garden-body .world-prompt .prompt-diamond { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: transparent; font-size: 0; background: radial-gradient(circle at 35% 30%, #f0d48a, #c9a24f 55%, #8a6a24); box-shadow: inset 0 0 0 2px #e9cf86, 0 1px 2px #0006; position: relative; }
.garden-body .world-prompt .prompt-diamond::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #6e221f; font-size: 12px; }
.garden-body .world-prompt kbd { border-color: #e9cf8666; color: #f2dcb0; }

/* keepsake tools: bookmark ribbons with notched tails */
.garden-body .magic-toolbox { gap: 6px; align-items: flex-end; }
.garden-body .magic-toolbox > button { border: 0; border-radius: 0; min-height: 50px; padding: 8px 14px 16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%); box-shadow: none; font: 600 12px/1.2 Inter, sans-serif; filter: drop-shadow(0 5px 8px #0007); transition: transform .2s ease; }
.garden-body .magic-toolbox > button:hover { transform: translateY(-3px); }
.garden-body .magic-casebook-button { background: linear-gradient(180deg, #2f4a3a, #1f3328); color: #f3e6c4; }
.garden-body .magic-letter-button { background: linear-gradient(180deg, #a3372e, #7c2823); color: #fbeedb; }
.garden-body .magic-notebook-button { background: linear-gradient(180deg, #2d4672, #1f3354); color: #f1e6cc; }

/* camera tools: brass coins */
.garden-body .garden-tools button { border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a5c66, #22313a 70%); color: #f1dfb2; box-shadow: inset 0 0 0 2px #c9a24f, inset 0 0 0 4px #22313a, 0 4px 10px #0007; }
.garden-body .garden-tools button:hover { background: radial-gradient(circle at 35% 30%, #5b6f7a, #2a3b45 70%); }

/* the side panel: a parchment page with a stitched spine, a ribbon and ink headings */
.garden-body .panel { --card: #f6ecd3; --card-rgb: 246, 236, 211; --card-2: #ecdfbf; --ink: #2a2117; --ink-2: #4b3d2b; --muted: #7b6a50; --line: rgba(92, 66, 30, .18); --line-2: rgba(92, 66, 30, .32); --accent: #8f2f2a;
  color: var(--ink); border: 0; border-radius: 3px 6px 6px 3px; padding-left: 16px;
  background:
    radial-gradient(ellipse 80px 60px at 88% 10%, #c9a46a22, transparent), radial-gradient(ellipse 120px 80px at 12% 88%, #b88f5418, transparent),
    radial-gradient(130% 100% at 50% 40%, transparent 65%, #9b7a4626),
    linear-gradient(165deg, #f8eed6, #efe0bb);
  box-shadow: 0 18px 50px #000a, inset 0 0 40px #b8955a30; }
.garden-body .panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #4a2a1d, #6e3f2a 55%, #3d2318); box-shadow: inset -2px 0 3px #0006; border-radius: 3px 0 0 3px; }
.garden-body .panel::after { content: ""; position: absolute; top: -3px; right: 64px; z-index: 4; width: 14px; height: 70px; pointer-events: none; background: linear-gradient(90deg, #7d1f2a, #a8323d 50%, #7d1f2a); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); box-shadow: 0 2px 3px #0003; }
.garden-body .panel .panel-body h2 { font-family: Fraunces, Georgia, serif; color: #2a2117; position: relative; padding-bottom: 12px; }
.garden-body .panel .panel-body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 180px; height: 10px; opacity: .8;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 10'><path d='M0 5h92c6 0 9-4 13-4s7 4 13 4 9-4 13-4 7 4 13 4h76' fill='none' stroke='%238a6a3a' stroke-width='1.3'/><circle cx='118' cy='5' r='2.4' fill='%238f2f2a'/></svg>") left center / contain no-repeat; }
.garden-body .panel .panel-body h3 { color: #3a2c1d; }
.garden-body .panel .panel-body h3::before { content: "❧ "; color: #8f2f2a; font-size: .9em; }
.garden-body .panel a { color: #7a2a24; }
.garden-body .panel button:not(.panel-close) { background: transparent; border-color: rgba(92, 66, 30, .35); color: #3a2c1d; border-radius: 2px; }
.garden-body .panel button:not(.panel-close):hover { background: #ead9b2; }
.garden-body .panel .panel-close { background: #f1e3c2; color: #4b3d2b; border: 1px solid rgba(92, 66, 30, .35); border-radius: 50%; }
.garden-body .panel .p-card, .garden-body .panel .p-paper { background: transparent; border-color: rgba(92, 66, 30, .2); }
.garden-body .panel .panel-body { scrollbar-color: #b79a64 transparent; }

@media (max-width: 700px) {
  .garden-body .world-speech { font-size: 16px; padding: 10px 20px; top: auto; bottom: calc(178px + env(safe-area-inset-bottom)); }
  .garden-body .magic-toolbox > button { min-height: 44px; padding: 8px 10px 14px; }
  .garden-body .world-prompt { padding-right: 24px; }
  .garden-body .panel::after { right: 58px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .garden-body .world-speech { animation: none; } }

/* the food wheel in the storybook panel is always on light paper, so its names stay readable */
.garden-body .panel .slice.s0 { fill: #f1e6cc; } .garden-body .panel .slice.s1 { fill: #e2cfa9; } .garden-body .panel .slice.s2 { fill: #d3b48a; }
.garden-body .panel .slice { stroke: #f6ecd3; }
.garden-body .panel .wheel text { fill: #2a2117; }
