/* Berry farming, Berry Pouch and Berry Crush (js/berries.js) */
.berry-plot { display: flex; flex-direction: column; gap: 8px; min-width: min(520px, 80vw); }
.bp-msg { min-height: 1.2em; margin: 0; font-weight: 800; color: #ffe9a8; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.bp-seed { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0f2552; border: 2px solid #2d5bb3; border-radius: 10px; padding: 6px; }
.bp-seed:hover { border-color: #fff; }
.bp-seed img, .bp-head img { width: 36px; height: 36px; }
.bp-seed small { color: var(--muted); font-size: 11px; }
.bp-head { display: flex; gap: 10px; align-items: center; }
.bp-head div { display: flex; flex-direction: column; }
.bp-head small { color: var(--muted); }
.bp-stages { display: flex; gap: 4px; }
.bp-stages span { flex: 1; text-align: center; font-size: 11px; font-weight: 800; padding: 3px 0; border-radius: 6px; background: #0a1838; color: var(--muted); }
.bp-stages span.on { background: #2f7d3a; color: #fff; }
.bp-bar { height: 8px; background: #0a1838; border-radius: 4px; overflow: hidden; flex: 1; }
.bp-bar > div { height: 100%; background: linear-gradient(90deg, #6fd35f, #b9f06a); transition: width .4s; }
.bp-bar.water > div { background: linear-gradient(90deg, #3a8cff, #7fd0ff); }
.bp-moist { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 800; }
.berry-plot .warn { color: #ffb46b; }
.bp-actions { display: flex; gap: 8px; }
.bp-actions .ico { width: 18px; height: 18px; vertical-align: middle; }

.pouch { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.3fr); gap: 12px; }
.pouch-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; background: linear-gradient(#5b3a1f, #3d2612); border: 3px solid #a2703d; border-radius: 12px; padding: 8px; }
.pouch-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; text-align: left; background: rgba(0, 0, 0, .2); border: 2px solid transparent; border-radius: 8px; padding: 3px 8px; }
.pouch-item img { width: 28px; height: 28px; }
.pouch-item.sel { border-color: var(--gold); background: rgba(255, 207, 74, .15); }
.pouch-side h3 { margin: 10px 0 6px; font-size: 14px; }
.pouch-detail { display: flex; gap: 10px; }
.pouch-detail img { width: 48px; height: 48px; }
.pouch-detail div { display: flex; flex-direction: column; gap: 3px; }
.pouch-mons { display: flex; flex-wrap: wrap; gap: 6px; }
.pouch-powder { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 2px solid #2d5bb3; }
.pouch-powder img { width: 28px; height: 28px; }
.pouch-powder button { margin-left: auto; }
@media (max-width: 640px) { .pouch { grid-template-columns: 1fr; } }

.berry-crush { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(6, 12, 30, .75); font-family: Nunito, system-ui, sans-serif; color: #fff; }
.bc-box { width: min(420px, 92vw); background: linear-gradient(#152c5c, #0f2148); border: 3px solid #6c7cff; border-radius: 16px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bc-box h2 { margin: 0; color: var(--gold); }
.bc-berry { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(color-mix(in srgb, var(--c) 60%, #fff), var(--c)); }
.bc-berry img { width: 56px; height: 56px; }
.bc-berry.squash { animation: bc-squash .15s ease; }
@keyframes bc-squash { 50% { transform: scale(1.25, .7); } }
.bc-ring { position: relative; width: 120px; height: 120px; border-radius: 50%; border: 6px solid #0a1838; }
.bc-zone { position: absolute; left: 50%; top: -6px; width: 40px; height: 14px; margin-left: -20px; background: #ffcf4a; border-radius: 6px; }
.bc-dot { position: absolute; inset: 0; }
.bc-dot::after { content: ''; position: absolute; left: 50%; top: -10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.bc-ring.hit { animation: bc-hit .3s ease; }
@keyframes bc-hit { 50% { box-shadow: 0 0 30px #ffcf4a; border-color: #ffcf4a; } }
.bc-meter { width: 100%; height: 12px; background: #0a1838; border-radius: 6px; overflow: hidden; }
.bc-meter div { height: 100%; width: 0; background: linear-gradient(90deg, #ff9a3d, #ffe14d); }
.bc-stats { display: flex; gap: 16px; font-size: 13px; }
.bc-btn { width: 100%; padding: 14px; font-size: 22px; font-weight: 900; border-radius: 12px; background: linear-gradient(#ffd85e, #f3a51e); color: #3a2400; border: 3px solid #ffe9a8; }
.bc-btn:active { transform: scale(.97); }
.bc-btn:disabled { opacity: .5; }
.bc-result p { margin: 4px 0; }
