/* 0.55 «Сезоны» P — spring's events: «Сад клуба» (public/spring-garden.js: the lobby's strip under the season's banner,
   the garden window) and «Первоапрельские шутки» (public/spring-pranks.js: the window, the pranks on the participants'
   faces, the chipmunk's bubble, the friend's «😂 Посмеяться»). Fresh greens, soil browns, blossom pinks. */

/* --- The lobby's strip ---------------------------------------------------------------------------------------- */
.sp-gs { position: relative; margin: 10px 0 4px; padding: 10px 12px 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, rgba(160, 220, 255, .12), rgba(120, 200, 110, .14) 60%, rgba(107, 74, 47, .35)); border: 1px solid rgba(170, 230, 150, .22); }
.sp-gs:hover { border-color: rgba(190, 240, 170, .45); }
.sp-gs-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-gs-head b { font-size: 15px; color: #e6f7da; }
.sp-gs-n { color: #b9d8aa; font-size: 12px; flex: 1; min-width: 0; }
.sp-gs-btn { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.sp-gs-btn:hover, .sp-gs-btn:focus-visible { border-color: #a8e08f; }
.sp-gs.sp-gs-new .sp-gs-btn::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #ff79b0; vertical-align: 2px; }
.sp-gs-bed { display: flex; align-items: flex-end; justify-content: space-evenly; gap: 0; height: 64px; margin: 4px -4px 0; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.sp-gs-f { flex: none; width: 40px; height: 60px; display: block; }
.sp-gs-f .sp-flower { width: 40px; height: 60px; display: block; }
@media (min-width: 761px) { .sp-gs-bed { height: 80px; } .sp-gs-f, .sp-gs-f .sp-flower { width: 52px; height: 78px; } }
.sp-gs-f.mine .sp-flower { filter: drop-shadow(0 0 4px rgba(255, 226, 122, .9)); }
.sp-gs-empty { align-self: center; padding: 0 8px 14px; color: #cfe8c2; font-size: 13px; }

/* --- The garden window ---------------------------------------------------------------------------------------- */
.sp-gd-modal.stats-modal { padding: 20px; }
.sp-gd-page { position: relative; display: flex; flex-direction: column; width: min(980px, 100%); max-height: calc(100dvh - 40px); overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(190, 240, 170, .25); color: #eef8e8; box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  background: radial-gradient(120% 70% at 50% 0%, #3b6b3a 0%, #24442a 50%, #182b1b 100%); }
.sp-gd-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 6px 22px; }
.sp-gd-head { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sp-gd-title { font: 700 24px/1.15 Georgia, 'Times New Roman', serif; color: #ffe2ee; }
.sp-gd-sub { margin-top: 3px; font-size: 13px; color: #b9d8aa; }
.sp-gd-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: #eef8e8; font-size: 24px; line-height: 1; cursor: pointer; }
.sp-gd-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px 20px; padding: 6px 22px 22px; overflow: auto; min-height: 0; }
.sp-gd-note { grid-column: 1 / -1; padding: 60px 10px; text-align: center; color: #b9d8aa; }
.sp-gd-mine { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); align-self: start; }
.sp-gd-h { font-size: 16px; color: #ffe2ee; }
.sp-gd-how { margin: 0; color: #cfe8c2; font-size: 13px; line-height: 1.45; }
.sp-gd-note2, .sp-gd-pv { margin: 0; color: #ffd6a8; font-size: 12.5px; }
.sp-gd-seeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-gd-seed { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 96px; padding: 6px 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.sp-gd-seed .sp-packet { width: 48px; height: 56px; }
.sp-gd-seed.on { border-color: var(--accent); background: rgba(229, 160, 13, .14); }
.sp-gd-seed:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sp-gd-acts { display: flex; gap: 8px; }
.sp-gd-go, .sp-gd-water { flex: 1; min-height: 46px; border-radius: 12px; border: 0; background: var(--accent); color: #111; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.sp-gd-water { background: #5aa0ff; color: #fff; }
.sp-gd-go:disabled, .sp-gd-water:disabled { opacity: .55; cursor: default; }
.sp-gd-big { position: relative; display: flex; justify-content: center; padding: 6px 0 0; }
.sp-gd-big .sp-flower { width: 150px; height: 225px; transform-origin: 50% 92%; }
.sp-gd-grew .sp-flower { animation: sp-grow 1.1s cubic-bezier(.3, 1.6, .5, 1) both; }
.sp-gd-yay { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 999px; background: #ff79b0; color: #fff; font-weight: 800; font-size: 13px; }
@keyframes sp-grow { 0% { transform: scale(.82); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.sp-gd-stage { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.sp-gd-stage b { font-size: 16px; } .sp-gd-stage span { color: #cfe8c2; font-size: 13px; }
.sp-gd-dots { display: flex; justify-content: center; gap: 5px; }
.sp-gd-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.sp-gd-dots i.on { background: #8fd36e; } .sp-gd-dots i.bloom { box-shadow: 0 0 0 2px #ff9ec4; }
.sp-gd-bed { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px 6px; align-content: start; border-radius: 16px;
  background: linear-gradient(180deg, rgba(160, 220, 255, .1), rgba(120, 200, 110, .12) 70%, rgba(107, 74, 47, .3)); }
.sp-gd-f { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 4px 2px; border-radius: 12px; }
.sp-gd-f.mine { background: rgba(255, 226, 122, .14); box-shadow: inset 0 0 0 1px rgba(255, 226, 122, .45); }
.sp-gd-fa .sp-flower { width: 60px; height: 90px; display: block; transform-origin: 50% 92%; }
.sp-gd-f:nth-child(3n) .sp-gd-fa .sp-flower { animation-delay: -1.3s; } .sp-gd-f:nth-child(3n + 1) .sp-gd-fa .sp-flower { animation-delay: -2.4s; }
.sp-gd-fa .sp-flower { animation: sp-sway 4.2s ease-in-out infinite; }
@keyframes sp-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.sp-gd-fn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.sp-gd-f small { color: #b9d8aa; font-size: 11px; }
.sp-gd-empty { grid-column: 1 / -1; padding: 30px 8px; text-align: center; color: #cfe8c2; }
@media (max-width: 760px) {
  .sp-gd-modal.stats-modal { padding: 0; align-items: stretch; }
  .sp-gd-page { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .sp-gd-top { padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 4px 16px; }
  .sp-gd-body { grid-template-columns: 1fr; padding: 4px 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .sp-gd-big .sp-flower { width: 120px; height: 180px; }
}
@media (max-width: 340px) { .sp-gd-seeds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-gd-bed { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .sp-gd-fa .sp-flower, .sp-gd-grew .sp-flower { animation: none; } }

/* --- «Первоапрельские шутки»: the window ---------------------------------------------------------------------- */
.spk-modal.stats-modal { padding: 20px; }
.spk-page { width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 18px; padding: 14px 18px 18px; color: var(--text);
  background: linear-gradient(180deg, #3a2d4a, #24202f); border: 1px solid rgba(255, 190, 230, .25); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.spk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 18px; }
.spk-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: var(--text); font-size: 24px; cursor: pointer; }
.spk-how { margin: 6px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.spk-h { display: block; margin: 6px 0; font-size: 14px; }
.spk-who { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.spk-friend { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; min-height: 76px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.spk-friend img, .spk-friend i { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--accent-2); }
.spk-friend span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk-friend.on, .spk-kind.on { border-color: var(--accent); background: rgba(229, 160, 13, .12); }
.spk-none { color: var(--muted); font-size: 13px; }
.spk-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.spk-kind { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 120px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.spk-kind small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.spk-friend:focus-visible, .spk-kind:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.spk-demo { display: block; }
.spk-face { position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; background: #f2c6a0; }
.spk-ini { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 26px; }
.spk-face .spk-ov { left: 0; top: 0; width: 44px; height: 44px; }
.spk-warn { margin: 8px 0 0; color: var(--bad, #e5484d); font-size: 13px; }
.spk-acts { margin-top: 12px; display: flex; }
.spk-go { flex: 1; min-height: 48px; border-radius: 12px; border: 0; background: var(--accent); color: #111; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.spk-go:disabled { opacity: .55; cursor: default; }
.spk-off { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); cursor: pointer; }
.spk-off input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.spk-off span { display: flex; flex-direction: column; gap: 2px; } .spk-off small { color: var(--muted); font-size: 12px; }
.spk-pp { margin: 0 0 10px; }
@media (max-width: 400px) { .spk-kinds { grid-template-columns: 1fr; } .spk-kind { min-height: 0; flex-direction: row; text-align: left; } .spk-kind b { min-width: 7em; } }

/* --- The pranks on faces (the participants strip: the chip's face is 22 px at left 3 px) ----------------------------- */
.spk-ov { position: absolute; pointer-events: none; }
.person > .spk-ov { left: 3px; top: calc(50% - 11px); width: 22px; height: 22px; z-index: 2; }
header .participants.spk-room { padding-top: 9px; margin-top: -7px; }
.spk-eyes i { position: absolute; top: 18%; width: 46%; height: 46%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.2px #111; }
.spk-eyes i:first-child { left: 2%; } .spk-eyes i:last-child { right: 2%; }
.spk-eyes b { position: absolute; left: 30%; top: 30%; width: 44%; height: 44%; border-radius: 50%; background: #111; animation: spk-roll 1.3s ease-in-out infinite; }
.spk-eyes i:last-child b { animation-duration: 1.7s; animation-direction: reverse; }
@keyframes spk-roll { 0% { transform: translate(-35%, 30%); } 25% { transform: translate(40%, -30%); } 50% { transform: translate(30%, 40%); } 75% { transform: translate(-40%, -20%); } 100% { transform: translate(-35%, 30%); } }
.spk-boing i { position: absolute; bottom: 80%; width: 2px; height: 70%; background: repeating-linear-gradient(180deg, #333 0 2px, #bbb 2px 4px); transform-origin: 50% 100%; animation: spk-bob 0.9s ease-in-out infinite; }
.spk-boing i:first-child { left: 22%; transform: rotate(-16deg); } .spk-boing i:last-child { right: 22%; transform: rotate(16deg); animation-delay: -.45s; }
.spk-boing i::after { content: ''; position: absolute; left: -3px; top: -6px; width: 8px; height: 8px; border-radius: 50%; background: #ff5c8a; box-shadow: 0 0 0 1px #111; }
@keyframes spk-bob { 0%, 100% { height: 70%; } 50% { height: 95%; } }
.spk-face .spk-boing i { bottom: 78%; }
.spk-chip i { position: absolute; right: -32%; bottom: -18%; font-style: normal; font-size: 13px; line-height: 1; }
.spk-face .spk-chip i { font-size: 22px; }
.person.spk-on { border-color: #ff9ec4; }
.spk-bubble { position: fixed; z-index: 1700; transform: translateX(-14px); max-width: min(260px, calc(100vw - 16px)); pointer-events: none; }
.spk-bubble[hidden] { display: none; }
.spk-bq { position: relative; display: block; padding: 7px 11px; border-radius: 14px; background: #fff7d6; color: #3a2a14; font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: spk-squeak .5s ease-in-out infinite alternate; }
.spk-bq::before { content: ''; position: absolute; left: 14px; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #fff7d6; }
@keyframes spk-squeak { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.spk-pill { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1750; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 20px);
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(40, 30, 52, .97); border: 1px solid #ff9ec4; color: var(--text); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.spk-laugh { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--accent); color: #111; font: inherit; font-weight: 800; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .spk-eyes b, .spk-boing i, .spk-bq { animation: none; } }
