/* Hodion v11.1 styles: growth, Garden Pass, comics, Herbarium, events, week party, Winter Lights theme. */
html[data-accent="lights"] { --pine: #5b33c4; --on-pine: #fff; --pine-ink: #24105c; --accent-soft: #ece4ff; --accent-soft-ink: #2a1160; --bg: #f7f3ff; --bg-glow: rgba(255, 209, 102, 0.28); }
html[data-theme="dark"][data-accent="lights"] { --pine: #c3b0ff; --on-pine: #1d0b4a; --pine-ink: #ece4ff; --accent-soft: #2a1c52; --accent-soft-ink: #ece4ff; --bg: #0f0a1f; }

/* 1. smooth growth: a new garden piece rises from the ground with a little bounce */
.v111-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: v111-grow 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.v111-sprout-out { transform-box: fill-box; transform-origin: 50% 100%; animation: v111-shrink 0.7s ease-in both; }
@keyframes v111-grow { 0% { transform: scale(0.05); opacity: 0; } 35% { opacity: 1; } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes v111-shrink { to { transform: scale(0); opacity: 0; } }

/* 2. Garden Pass */
.v111-pass-head .v11-bar { margin: 0.4rem 0; }
.v111-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.5rem; margin-top: 0.7rem; }
.v111-step { position: relative; display: grid; justify-items: center; gap: 0.15rem; padding: 0.55rem 0.35rem; border-radius: 18px; background: var(--surface); border: 2px solid var(--line-soft); text-align: center; color: var(--ink); min-height: 104px; }
.v111-step b { font-size: var(--fs-sm); color: var(--muted); }
.v111-step .v111-glyph { font-size: 1.5rem; line-height: 1.2; }
.v111-step small { font-size: 0.78rem; line-height: 1.15; overflow-wrap: anywhere; }
.v111-step.is-item { background: linear-gradient(160deg, var(--surface), var(--accent-soft)); }
.v111-step.is-ready { border-color: var(--pine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 22%, transparent); }
.v111-step.is-claimed { opacity: 0.8; }
.v111-step.is-claimed .v111-glyph { color: var(--pine); }
.v111-step.is-locked { opacity: 0.55; }
.v111-step .v11-chip { min-height: 32px; padding: 0.15rem 0.6rem; }
.v111-pass-card { background: linear-gradient(135deg, #ece4ff, #fff6d6); color: #2a1160; }
html[data-theme="dark"] .v111-pass-card { background: linear-gradient(135deg, #2a1c52, #3a2d12); color: #f3ecff; }

/* 3. comics */
.v111-comic { display: grid; gap: 0.6rem; }
.v111-panel { position: relative; margin: 0; min-height: 210px; border-radius: 20px; border: 3px solid #1f1a2e; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 0.6rem; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.v111-panel.bg-frost { background: linear-gradient(#cfe6ff, #f4fbff 60%, #e3f1f9 60%); }
.v111-panel.bg-dusk { background: linear-gradient(#ffb98a, #ffe3b3 60%, #d8efd2 60%); }
.v111-panel.bg-night { background: linear-gradient(#1c2650, #3b4a86 62%, #24315c 62%); }
.v111-panel.bg-lights { background: radial-gradient(circle at 20% 20%, #ffd166 0 6px, transparent 7px), radial-gradient(circle at 50% 12%, #ff7a9a 0 6px, transparent 7px), radial-gradient(circle at 80% 22%, #8fe3ff 0 6px, transparent 7px), linear-gradient(#2a1c52, #5b33c4 62%, #2f2360 62%); }
.v111-panel.bg-snow { background: linear-gradient(#e6f0ff, #ffffff 62%, #eef4fb 62%); }
.v111-panel.bg-dawn { background: linear-gradient(#ffd6e6, #fff4d6 62%, #dff3d6 62%); }
.v111-bubble { align-self: flex-start; max-width: 88%; background: #fff; color: #1f1a2e; border: 2.5px solid #1f1a2e; border-radius: 18px; padding: 0.45rem 0.75rem; font-weight: 700; font-size: var(--fs-sm); position: relative; }
.v111-bubble::after { content: ""; position: absolute; left: 26px; bottom: -11px; border: 6px solid transparent; border-top: 8px solid #1f1a2e; }
.v111-cast { display: flex; align-items: flex-end; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.v111-actor { display: grid; place-items: end center; }
.v111-actor.is-talking { animation: v111-talk 1.6s ease-in-out infinite; }
.v111-prop { font-size: 2.2rem; }
@keyframes v111-talk { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.v111-ch { margin-top: 0.5rem; }
.v111-ch h3 { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.v111-ch.is-locked { opacity: 0.7; }

/* 4. Herbarium */
.v111-herb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin: 0.9rem 0 0.4rem; }
.v111-herb-h small { color: var(--muted); font-weight: 700; }
.v111-herb { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; }
.v111-herb-card { display: grid; justify-items: center; gap: 0.2rem; text-align: center; padding: 0.45rem; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-soft); color: var(--ink); }
.v111-herb-card b { font-size: 0.82rem; line-height: 1.15; overflow-wrap: anywhere; }
.v111-herb-card small { font-size: 0.75rem; color: var(--muted); }
.v111-herb-art { width: 100%; min-height: 54px; display: grid; place-items: center; }
.v111-thumb { width: 100%; height: auto; border-radius: 10px; max-height: 70px; }
.v111-herb-card.is-soon .v111-herb-art { filter: grayscale(1) brightness(1.15); opacity: 0.45; }
.v111-emo { font-size: 1.9rem; }

/* 5. events */
.v111-event { margin-top: 0.5rem; }
.v111-event h3 { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.v111-now { background: var(--pine); color: var(--on-pine); }
.v111-past { opacity: 0.7; }

/* 6. week party */
.v111-party { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.v111-bunting { width: 100%; height: 34px; display: block; transform-origin: 50% 0; animation: v111-sway 4s ease-in-out infinite alternate; }
.v111-party-tag { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.92); color: #2a1160; font-weight: 800; font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap; }
@keyframes v111-sway { from { transform: rotate(-0.6deg); } to { transform: rotate(0.6deg); } }

/* 7. stats by list */
.v111-cat-row { display: grid; grid-template-columns: minmax(5rem, 34%) 1fr auto; gap: 0.5rem; align-items: center; margin: 0.3rem 0; }
.v111-cat-row span { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { .v111-grow, .v111-sprout-out, .v111-actor.is-talking, .v111-bunting { animation: none !important; } }
.less-motion .v111-grow, .less-motion .v111-sprout-out, .less-motion .v111-actor.is-talking, .less-motion .v111-bunting { animation: none !important; }
#v111-you-row[hidden] { display: none; }
/* big phone fonts (up to 200 %): tab labels shrink to fit instead of overlapping */
.tabbar button { min-width: 0; overflow: hidden; }
.tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: min(0.75rem, 3.1vw); }
/* Herbarium thumbnails: crop the sky so the piece is visible; capital first letter */
.v111-herb-card b::first-letter { text-transform: uppercase; }
