.baysaver-wrapper {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f3fafb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.baysaver-title {
    text-align: center;
    margin-bottom: 0.25rem;
    color: #00587c;
}

.baysaver-subtitle {
    text-align: center;
    margin-bottom: 1rem;
    color: #15596b;
    font-size: 0.95rem;
}

.baysaver-top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.baysaver-score,
.baysaver-progress {
    font-weight: 600;
    color: #024;
}

.baysaver-message {
    flex: 1 1 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: #e5f4f7;
    color: #024;
    text-align: center;
    font-size: 0.9rem;
}

.baysaver-msg-correct {
    background: #d9f7e4;
    color: #146131;
}

.baysaver-msg-wrong {
    background: #fde4e4;
    color: #8a1f1f;
}

.baysaver-msg-finished {
    background: #fff4d1;
    color: #7a5200;
    font-weight: 600;
}

/* Bay scene */
.baysaver-bay-scene {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 230px;
    background: linear-gradient(to top, #5eb3d9 0%, #87d5ff 45%, #cbefff 100%);
}

/* Land & Water */
.baysaver-water {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(to top, #0f5f83 0%, #1c7ea4 40%, #3da1c8 100%);
    overflow: hidden;
}

.baysaver-wave {
    position: absolute;
    top: 8px;
    left: -40%;
    width: 180%;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    animation: baysaver-wave 6s linear infinite;
}

.baysaver-wave-2 {
    top: 28px;
    opacity: 0.5;
    animation-duration: 10s;
}

@keyframes baysaver-wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(40%); }
}

.baysaver-land {
    position: absolute;
    bottom: 48%;
    left: 0;
    right: 0;
    height: 15%;
    background: #97c37a;
}

.baysaver-tree {
    position: absolute;
    left: 10%;
    bottom: 0;
    width: 26px;
    height: 60px;
    background: #31522b;
    border-radius: 999px 999px 0 0;
}

.baysaver-grass {
    position: absolute;
    right: 15%;
    bottom: 0;
    width: 70px;
    height: 25px;
    background: #6fa451;
    border-radius: 50%;
}

/* Fish in the water */
.baysaver-fish {
    position: absolute;
    width: 35px;
    height: 18px;
    background: #ffdd7a;
    border-radius: 18px 18px 18px 2px;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.baysaver-fish::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 4px;
    width: 16px;
    height: 10px;
    background: #f1b454;
    border-radius: 0 10px 10px 0;
    transform: skewX(-20deg);
}

.baysaver-fish::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #333;
}

/* Different fish positions & speeds */
.baysaver-fish-1 {
    bottom: 18px;
    left: -40px;
    animation: baysaver-fish-swim 12s linear infinite;
}
.baysaver-fish-2 {
    bottom: 45px;
    left: -60px;
    animation: baysaver-fish-swim 15s linear infinite;
}
.baysaver-fish-3 {
    bottom: 70px;
    left: -80px;
    animation: baysaver-fish-swim 18s linear infinite;
}
.baysaver-fish-4 {
    bottom: 30px;
    left: -100px;
    animation: baysaver-fish-swim 20s linear infinite;
}

@keyframes baysaver-fish-swim {
    0%   { transform: translateX(0); }
    100% { transform: translateX(1200px); }
}

/* Item area (floating object) */
.baysaver-item-area {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Draggable item: word above, emoji icon below */
.baysaver-item-floating {
    padding: 0.6rem 0.9rem 0.9rem 0.9rem;
    border-radius: 14px;
    background: #ffe6a3;
    color: #502e00;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    cursor: grab;
    animation: baysaver-bob 2.3s ease-in-out infinite;
    text-align: center;
    max-width: 70%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

@keyframes baysaver-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.baysaver-item-label {
    font-size: 0.85rem;
    line-height: 1.1;
}

/* Icon container (colored circle) */
.baysaver-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recycle vs trash frames */
.baysaver-icon-recycle-frame {
    background: #d5f5e2;
    border: 2px solid #1f7a3a;
}

.baysaver-icon-trash-frame {
    background: #fde1e1;
    border: 2px solid #7b2222;
}

/* Emoji itself */
.baysaver-item-emoji {
    font-size: 24px;
    line-height: 1;
}

/* Bins */
.baysaver-bins {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    margin-bottom: 1rem;
}

.baysaver-bin {
    flex: 1 1 0;
    max-width: 220px;
    padding: 0.8rem 0.6rem;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border: 2px solid #c3dfe6;
}

.baysaver-bin-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #024;
}

.baysaver-bin-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 10px;
}

/* Bin icons */
.baysaver-bin-recycle {
    border: 3px solid #1f7a3a;
    position: relative;
}
.baysaver-bin-recycle::before,
.baysaver-bin-recycle::after {
    content: '';
    position: absolute;
    border: 6px solid #1f7a3a;
    border-radius: 2px;
}
.baysaver-bin-recycle::before {
    width: 20px;
    height: 10px;
    top: 8px;
    left: 18px;
    border-top: none;
    transform: rotate(20deg);
}
.baysaver-bin-recycle::after {
    width: 20px;
    height: 10px;
    bottom: 8px;
    right: 18px;
    border-bottom: none;
    transform: rotate(-20deg);
}

.baysaver-bin-trash {
    border: 3px solid #7b2222;
    position: relative;
}
.baysaver-bin-trash::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 12px;
    right: 12px;
    height: 6px;
    border-radius: 4px;
    border: 3px solid #7b2222;
}

/* Hover state for drops */
.baysaver-bin-hover {
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.4);
    transform: translateY(-2px);
}

/* Play Again Button */
.baysaver-play-again {
    display: inline-block;
    margin: 0 auto;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: #00587c;
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.baysaver-play-again:hover {
    background: #0071a5;
    transform: translateY(-1px);
}

.baysaver-footer-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    text-align: center;
    color: #567;
}

/* Responsive */
@media (max-width: 600px) {
    .baysaver-bay-scene {
        height: 210px;
    }
    .baysaver-bins {
        flex-direction: column;
        align-items: center;
    }
}
