/* Hoppitree: Nature Trail game styles. Prefix every class with the game id. */

/* ---------- Season Tree ---------- */
.seasons-stage { background: linear-gradient(180deg, rgba(225, 247, 255, .65), rgba(214, 245, 200, .55)); gap: clamp(8px, 2vh, 22px); padding: clamp(8px, 1.6vh, 18px); }
.seasons-tree { display: block; width: 100%; height: 100%; border-radius: 12%; }
.seasons-scene { position: relative; width: clamp(120px, min(34vw, 30vh), 250px); aspect-ratio: 1; flex-shrink: 0; border-radius: 12%; box-shadow: 0 0 0 5px #fff, 0 12px 24px rgba(29, 43, 83, .18); }
.seasons-badge { position: absolute; top: -12%; right: -16%; font-size: clamp(34px, min(8vw, 8vh), 64px); line-height: 1; filter: drop-shadow(0 4px 6px rgba(29, 43, 83, .25)); animation: float 3s ease-in-out infinite; }
.seasons-thing { display: grid; place-items: center; width: clamp(110px, min(26vw, 22vh), 190px); aspect-ratio: 1; flex-shrink: 0; background: #fff; border-radius: 50%; box-shadow: 0 12px 24px rgba(29, 43, 83, .16); }
.seasons-thing .q-pic { font-size: clamp(60px, min(15vw, 13vh), 110px); }

.seasons-choices { gap: clamp(8px, 2vw, 24px); }
.seasons-choices .choice { min-width: clamp(104px, min(17vw, 22vh), 184px); min-height: clamp(104px, min(17vw, 22vh), 184px); padding: clamp(8px, 1.2vw, 14px); }
.seasons-choices .pic-emo { font-size: clamp(44px, min(8vw, 9vh), 84px); }
.seasons-choices .pic-word { font-size: clamp(15px, min(2.4vw, 2.6vh), 22px); line-height: 1.15; text-align: center; }
.seasons-mini { display: block; width: clamp(72px, min(12.5vw, 15vh), 136px); aspect-ratio: 1; }
.seasons-why .choice, .recycle-ideas .choice { max-width: clamp(140px, 22vw, 230px); }
.seasons-used { opacity: .25; transform: scale(.82); pointer-events: none; }

.seasons-row { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.6vw, 18px); flex-shrink: 0; }
.seasons-step { display: flex; flex-direction: column; align-items: center; gap: 4px; width: clamp(84px, min(20vw, 21vh), 170px); }
.seasons-step .seasons-tree { box-shadow: 0 0 0 4px #fff, 0 8px 16px rgba(29, 43, 83, .16); }
.seasons-step b, .seasons-slot b { font-size: clamp(14px, min(2.4vw, 2.6vh), 21px); color: var(--ink); }
.seasons-q i { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 12%; border: 5px dashed var(--purple, #9B5DE5); background: rgba(255, 255, 255, .8); font-style: normal; font-weight: 700; font-size: clamp(44px, min(11vw, 11vh), 90px); color: var(--purple, #9B5DE5); animation: pulse 1.4s ease-in-out infinite; }
.seasons-q::after { content: '\00a0'; font-size: clamp(14px, min(2.4vw, 2.6vh), 21px); }
.seasons-arrow { font-size: clamp(22px, 4vw, 44px); color: var(--ink-soft); padding-bottom: 1.2em; }

.seasons-slots { display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 18px); flex-shrink: 0; }
.seasons-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: clamp(74px, min(19vw, 19vh), 156px); aspect-ratio: 1 / 1.18; border-radius: 18px; border: 4px dashed rgba(29, 43, 83, .3); background: rgba(255, 255, 255, .6); }
.seasons-slot i { font-style: normal; font-weight: 700; font-size: clamp(30px, 6vh, 54px); color: rgba(29, 43, 83, .35); }
.seasons-slot.seasons-filled { border: 4px solid #fff; background: #fff; box-shadow: 0 8px 16px rgba(29, 43, 83, .16); padding: 4px; }
.seasons-slot .seasons-tree { height: auto; aspect-ratio: 1; }

/* gentle falling leaves and snow, only on the big picture */
.seasons-scene .seasons-leaf { animation: seasonsLeaf 3.6s linear infinite; animation-delay: var(--d); }
.seasons-scene .seasons-flake { animation: seasonsSnow 4.4s linear infinite; animation-delay: var(--d); }
@keyframes seasonsLeaf { 0% { translate: 0 -34px; opacity: 0; } 15% { opacity: 1; } 50% { translate: 8px 4px; } 85% { opacity: 1; } 100% { translate: -4px 40px; opacity: 0; } }
@keyframes seasonsSnow { 0% { translate: 0 -20px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { translate: 6px 46px; opacity: 0; } }

/* ---------- Recycle Rangers ---------- */
.recycle-stage { background: linear-gradient(180deg, rgba(222, 244, 255, .65), rgba(205, 240, 205, .55)); }
.recycle-tray { position: absolute; inset: 0; }
.recycle-item { --rs: clamp(66px, min(13vw, 13vh), 98px); position: absolute; width: var(--rs); height: var(--rs); display: grid; place-items: center; font-size: calc(var(--rs) * .66); line-height: 1; background: #fff; border-radius: 26%; box-shadow: 0 10px 18px rgba(29, 43, 83, .16); cursor: grab; touch-action: none; z-index: 2; transition: left .35s cubic-bezier(.2, 1.4, .4, 1), top .35s cubic-bezier(.2, 1.4, .4, 1), transform .2s, box-shadow .2s; }
.recycle-svg { display: block; width: 1.3em; height: 1.3em; pointer-events: none; }
.recycle-item.recycle-dragging { cursor: grabbing; transform: scale(1.18) rotate(6deg); z-index: 10; box-shadow: 0 22px 34px rgba(29, 43, 83, .28); }
.recycle-item.recycle-picked { transform: scale(1.14); box-shadow: 0 0 0 6px var(--yellow, #FFD23F), 0 16px 26px rgba(29, 43, 83, .24); z-index: 5; }
.recycle-item.recycle-dropped { transform: scale(.3); opacity: 0; transition: left .3s, top .3s, transform .45s, opacity .45s; }

.recycle-bins { position: absolute; left: 0; right: 0; bottom: clamp(8px, 1.6vh, 16px); display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 4vw, 64px); padding: 0 10px; z-index: 1; }
.recycle-bin { position: relative; display: flex; flex-direction: column; align-items: center; width: clamp(96px, min(26vw, 29vh), 236px); cursor: pointer; transition: transform .2s; }
.recycle-bin svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 10px 10px rgba(29, 43, 83, .2)); }
.recycle-body { fill: var(--bc); }
.recycle-lid { fill: var(--bd); transform-box: view-box; transform-origin: 8px 26px; transition: transform .2s; }
.recycle-label { margin-top: 6px; padding: 3px 14px; border-radius: 999px; background: var(--bd); color: #fff; font-weight: 700; font-size: clamp(14px, min(2.6vw, 2.8vh), 22px); white-space: nowrap; }
.recycle-count { position: absolute; top: -4px; right: -4px; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 18px; background: var(--yellow, #FFD23F); color: var(--ink); font-size: 20px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, .2); }
.recycle-count:empty { display: none; }
.recycle-bin.recycle-open { transform: scale(1.07) translateY(-6px); }
.recycle-bin.recycle-open .recycle-lid { transform: rotate(-20deg); }
.recycle-bin.recycle-gulp { animation: gulp .45s; }
.recycle-bin.recycle-hint svg { animation: recycleHint .9s ease-in-out infinite; }
@keyframes recycleHint { 50% { transform: scale(1.08); filter: drop-shadow(0 0 14px #FFD23F) drop-shadow(0 0 6px #FFD23F); } }

.recycle-ideas .choice { min-width: clamp(130px, min(22vw, 26vh), 220px); min-height: clamp(130px, min(20vw, 26vh), 200px); }
.recycle-ideas .pic-word { font-size: clamp(16px, min(2.4vw, 2.6vh), 21px); line-height: 1.15; text-align: center; }
.recycle-ideas .recycle-svg { margin: 0 auto; }
.recycle-off { filter: grayscale(1) brightness(.55); }

/* when the tree cards are the whole question, let them grow */
.seasons-choices:only-child .choice { min-width: clamp(120px, min(20vw, 32vh), 250px); min-height: clamp(120px, min(20vw, 32vh), 250px); }
.seasons-choices:only-child .seasons-mini { width: clamp(88px, min(15.5vw, 25vh), 196px); }
