/* Nevaeh's Jungle (id "blossom", free): Monkey Jungle's sister in soft pink and banana yellow (a light theme). A pink jungle with blossom vines, banana-yellow
   light, chunky hand-drawn monkeys munching bananas, pink leaves on the buttons and cards, and pink-painted wooden
   Head to Head signs. The scene is buildJungle(bg, R, 'blossom') in app.js (it reuses the jungle scene's classes
   from theme-jungle.css); colours are in theme-flat.css. */

/* ---- the scene ---- */
[data-theme="blossom"] #stage-bg { background:
  radial-gradient(60% 40% at 70% 0%, rgba(255, 236, 160, .55), transparent 70%),
  linear-gradient(#f3d0dd 0%, #f6dae4 40%, #f2cfdc 100%); }
[data-theme="blossom"] .scene .jbeam { background: linear-gradient(rgba(255, 245, 200, .55), transparent 85%); }
[data-theme="blossom"] .scene .swing .rope { background: #b04a7e; }
[data-theme="blossom"] .scene .fly { background: #ffd23d; box-shadow: 0 0 6px 2px rgba(255, 200, 40, .5); }
[data-theme="blossom"] .scene .jfloor::after { background: #e7a9c2; }

/* monkeys sitting at the edges of the jungle floor, munching (a little bob, and the banana goes up to the mouth) */
.scene .sitter { position: absolute; bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 3vh); left: var(--x); width: 4.6rem; height: 4.6rem;
 }

.scene .sitter svg { width: 100%; height: 100%; display: block; overflow: visible; animation: bob 2.6s ease-in-out infinite; animation-delay: var(--t); }
.scene .sitter .arm { transform-box: view-box; transform-origin: 6px 4px; animation: munch 2.6s ease-in-out infinite; animation-delay: var(--t); }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes munch { 0%, 55%, 100% { transform: rotate(0); } 70%, 85% { transform: rotate(-22deg); } }

/* ---- the app ---- */
/* chunky hand-drawn look: banana-yellow "Party" with a thick brown outline */
[data-theme="blossom"] .logo .l2 { position: relative; color: #ffc928; -webkit-text-stroke: .06em #4a2a1c; paint-order: stroke fill; }
/* a banana leaning on "Party" */
[data-theme="blossom"] .logo:not(.small) .l2::after { content: ''; position: absolute; right: -.55em; top: -.42em; width: .9em; height: .7em;
  transform: rotate(24deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 44'%3E%3Cpath d='M6 10q4 26 26 30 18 2 26-10-16 6-28-2Q14 20 14 6z' fill='%23ffd23d' stroke='%232a1020' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M8 4l6 2-1 4-6-2z' fill='%235a3a1a' stroke='%232a1020' stroke-width='2'/%3E%3Cpath d='M18 18q8 14 26 14' fill='none' stroke='%23e0a800' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-theme="blossom"] :is(.title, .tag, .home .dim) { text-shadow: 0 1px 6px rgba(255, 246, 250, .9); }

/* a pink blossom vine draped over the top of every main button */
[data-theme="blossom"] .btn:not(.ghost):not(.small) { position: relative; overflow: visible; }
[data-theme="blossom"] .btn:not(.ghost):not(.small)::before { content: ''; position: absolute; left: 4%; right: 4%; top: -8px; height: 20px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 8Q50 16 100 8T200 8' fill='none' stroke='%23b8306f' stroke-width='3'/%3E%3Cg fill='%23ff8cc6' stroke='%237a1648' stroke-width='1'%3E%3Cpath d='M20 11q-8 8-2 11 6-3 2-11z'/%3E%3Cpath d='M58 12q8 7 3 10-6-2-3-10z'/%3E%3Cpath d='M100 8q-8 8-2 12 6-3 2-12z'/%3E%3Cpath d='M140 6q8 8 2 12-6-3-2-12z'/%3E%3Cpath d='M180 9q-8 8-2 11 6-3 2-11z'/%3E%3C/g%3E%3Cg fill='%23ffd23d'%3E%3Ccircle cx='40' cy='12' r='2.2'/%3E%3Ccircle cx='120' cy='9' r='2.2'/%3E%3Ccircle cx='160' cy='9' r='2.2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
[data-theme="blossom"] .btn:not(.ghost) { box-shadow: 0 3px 0 color-mix(in srgb, var(--hot) 55%, #6b3a1a); }
[data-theme="blossom"] .btn.alt { color: #3a0a24; }
[data-theme="blossom"] .btn.gold { color: #3a2400; }

/* a big pink leaf tucked into the corner of cards */
[data-theme="blossom"] .panel { position: relative; }
[data-theme="blossom"] .panel::after { content: ''; position: absolute; top: -.5rem; right: -.3rem; width: 3rem; height: 3rem; pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M56 4Q20 6 10 34q-4 14 4 22 22-2 36-22Q60 18 56 4z' fill='%23ff7ab8' stroke='%237a1648' stroke-width='2'/%3E%3Cpath d='M54 6Q34 26 14 54M44 18l-8-2M38 26l-10-2M30 36l-10-1M44 18l2 8M38 26l2 10M30 36l2 9' fill='none' stroke='%237a1648' stroke-width='1.6'/%3E%3C/svg%3E") top right / contain no-repeat; }

/* Head to Head tiles are pink-painted wooden signs */
[data-theme="blossom"] .topic { border: 0; color: #fff4fa;
  background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(0, 0, 0, .16) 22px 24px),
    linear-gradient(90deg, #a33a72, #b8467f 30%, #a33a72 60%, #8f2f63);
  box-shadow: 0 4px 0 #5a1438, inset 0 2px 0 rgba(255, 210, 235, .3), 0 0 16px color-mix(in srgb, var(--sc) 25%, transparent); }
[data-theme="blossom"] .topic .ic { width: 2.2rem; height: 2.2rem; padding: .4rem; border-radius: 50%; color: #fff; background: var(--sc);
  box-shadow: 0 0 0 2px #5a1438; }
[data-theme="blossom"] .topic small { color: #ffd6ea; }
[data-theme="blossom"] #splash { background: linear-gradient(#fbe9f0, #f2cfdc); }

@media (prefers-reduced-motion: reduce) {
  [data-theme="blossom"] .scene * { animation: none !important; }
}

/* banana yellow is for buttons; on the light pink, text and icons that use the accent get a deeper gold so
   they stay readable */
[data-theme="blossom"] { --hot-ink: #a86a00; }
[data-theme="blossom"] :is(.logo .beta, .codechip, .bigcode, .me .pts, .pl .sc, .stat b, .rank .pt, .crumb, #tabbar button.on, .glyph,
  .gcard .em .ic, .chip .ic, .setrow .ic, .noteic .ic, .droplist button .ic, .styletile .ic, .agree a, .linkbtn) { color: var(--hot-ink); }
