/* Wildwasser render.css (FW2v2BS responsive layout) */

#playerData {
    display: none !important;
}

#game {
    width: 100%;
    min-height: 100%;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #d9c9a3;
    background-image: linear-gradient(160deg, #e5d7b5 0%, #cbd6a4 55%, #b8cfa0 100%);
    box-sizing: border-box;
}

#game.ww-compact-game {
    padding: 4px;
}

#game.ww-fit-viewport {
    padding: 6px;
}

/* Compact non-shifting final round badge inside board-container */
.ww-final-round-banner {
    position: absolute;
    top: 1%;
    left: 55.2%;
    margin: 0;
    padding: calc(4px * var(--ww-board-scale, 1)) calc(8px * var(--ww-board-scale, 1));
    border-radius: calc(6px * var(--ww-board-scale, 1));
    border: max(1px, calc(2px * var(--ww-board-scale, 1))) solid #b45309;
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    font-weight: 700;
    font-size: calc(13px * var(--ww-board-scale, 1));
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
    z-index: 110;
    pointer-events: none;
}

#gameBoard {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

#gameBoard.ww-stacked {
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.board-container {
    flex: 0 1 685px;
    width: 685px;
    max-width: 100%;
    min-width: 340px;
    position: relative;
    display: block;
    line-height: 0;
    height: fit-content;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

#gameBoard:not(.ww-stacked) .board-container {
    position: sticky;
    top: 0;
    flex: 0 0 auto;
    max-width: 685px;
    min-width: 340px;
}

#gameBoard.ww-stacked .board-container {
    flex: 0 1 auto;
    width: 100%;
    max-width: 685px;
    min-width: 0;
}

.board-image {
    width: 100%;
    max-width: 685px;
    height: auto;
    display: block;
}

/* Board tokens */
.board-marker {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    height: 5%;
    width: auto;
    z-index: 1000;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95), 2px 4px 6px 1px rgba(0, 0, 0, 0.7);
    filter: contrast(1.05) brightness(1.02);
    cursor: default;
}

.board-marker.marker-selectable {
    outline: 4px solid #ffcc00;
    outline-offset: 2px;
    box-shadow: 0 0 15px 5px rgba(255, 204, 0, 0.9), 0 0 8px 6px rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.board-marker.marker-selectable:hover {
    transform: translate(-50%, -50%) scale(1.15);
    outline: 4px solid #ffffff;
    box-shadow: 0 0 20px 8px rgba(255, 234, 0, 1), 0 0 10px 6px rgba(0, 0, 0, 0.85);
}

.board-marker.marker-selectable-special {
    outline: 4px dashed #ffcc00;
    outline-offset: 2px;
    box-shadow: 0 0 15px 5px rgba(255, 204, 0, 0.9), 0 0 8px 6px rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.board-marker.marker-selectable-special:hover {
    transform: translate(-50%, -50%) scale(1.15);
    outline: 4px dashed #ffffff;
    box-shadow: 0 0 20px 8px rgba(255, 234, 0, 1), 0 0 10px 6px rgba(0, 0, 0, 0.85);
}

/* Interactive log coordinate ring */
.ww-board-highlight {
    position: absolute;
    width: 8%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #ff5722;
    box-shadow: 0 0 0 3px #ffffff, 0 0 16px 4px rgba(255, 87, 34, 0.85);
    z-index: 1020;
    pointer-events: none;
}

/* River deck counter */
.deck-counter {
    position: absolute;
    top: 1%;
    left: 46.5%;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: calc(4px * var(--ww-board-scale, 1));
    background-color: #e0f2fe;
    color: #0c4a6e;
    padding: calc(4px * var(--ww-board-scale, 1)) calc(8px * var(--ww-board-scale, 1));
    border-radius: calc(6px * var(--ww-board-scale, 1));
    font-weight: 700;
    font-size: calc(15px * var(--ww-board-scale, 1));
    line-height: 1.1;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
    border: max(1px, calc(2px * var(--ww-board-scale, 1))) solid #38bdf8;
    z-index: 110;
    white-space: nowrap;
    cursor: pointer;
}

.deck-counter:hover,
.deck-counter:focus-visible {
    background-color: #bae6fd;
}

.ww-deck-icon {
    height: 1.2em;
    width: auto;
    border-radius: calc(2px * var(--ww-board-scale, 1));
    display: block;
}

.publisher-logo-link {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 105;
    display: block;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.publisher-logo-link:hover {
    transform: scale(1.08);
}

.publisher-logo-img {
    display: block;
    width: calc(28px * var(--ww-board-scale, 1));
    height: calc(80px * var(--ww-board-scale, 1));
    object-fit: contain;
}

.ww-tutorial-link {
    position: absolute;
    bottom: 1.0%;
    left: 5.2%;
    z-index: 110;
    display: inline-flex;
    align-items: center;
    gap: calc(4px * var(--ww-board-scale, 1));
    padding: calc(4px * var(--ww-board-scale, 1)) calc(8px * var(--ww-board-scale, 1));
    background-color: rgba(255, 255, 255, 0.88);
    color: #333333;
    border: max(1px, calc(2px * var(--ww-board-scale, 1))) solid #555555;
    border-radius: calc(6px * var(--ww-board-scale, 1));
    font-weight: 700;
    font-size: calc(11px * var(--ww-board-scale, 1));
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ww-tutorial-link:hover,
.ww-tutorial-link:focus-visible {
    background-color: #ffffff;
    color: #111827;
    text-decoration: none;
    transform: scale(1.04);
}

/* Players section */
#playersSection {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    align-self: stretch;
    flex: 1 2 380px;
    min-width: 300px;
    max-width: 685px;
    box-sizing: border-box;
    background-color: #7ba344;
    border-left: 2px solid #5d7e32;
}

#playersSection.ww-dense-players {
    padding: 4px;
    gap: 4px;
}

#playersSection.ww-dense-players .ww-player-row {
    padding: 5px 7px;
    gap: 4px;
}

#playersSection.ww-dense-players .player-name {
    line-height: 1.35;
}

#playersSection.ww-dense-players .player-markers {
    gap: 6px;
    margin-top: 4px;
    flex-wrap: nowrap;
}

#playersSection.ww-dense-players .player-marker {
    width: 28px;
    max-width: 28px;
    flex: 0 1 28px;
    min-width: 0;
}

#playersSection.ww-dense-players .takeback-btn-style {
    width: 28px;
    max-width: 28px;
    flex: 0 1 28px;
    margin-left: 4px;
}

#playersSection.ww-dense-players .ww-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
}

#playersSection.ww-dense-players .player-hand {
    gap: 4px;
    margin-top: 0;
    justify-content: space-between;
}

#playersSection.ww-players-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 4px;
    align-content: start;
}

#playersSection.ww-players-two-col .ww-player-row {
    height: 100%;
}

#gameBoard.ww-stacked #playersSection {
    flex: 0 1 auto;
    align-self: center;
    width: 100%;
    min-width: 0;
    max-width: 685px;
    padding: 5px;
    gap: 5px;
    border-left: none;
}

.ww-player-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px;
    border-width: 2px;
    border-style: solid;
    border-radius: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.65);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease;
}

.ww-player-row.ww-log-target {
    box-shadow: 0 0 0 3px #ff5722, 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ww-player-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.ww-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 10px;
    border: 2px solid #555555;
    background-color: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
    user-select: none;
}

.ww-avatar.is-bot {
    font-size: 1.3rem;
}

.ww-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-name-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    max-width: 100%;
}

.player-name {
    font-weight: bold;
    font-size: 1.0em;
    line-height: 1.5;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-name-line .flag {
    width: 1.4em;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.player-name-line .flag .fflag {
    display: block;
    width: 88%;
    padding-top: 58.08%;
    margin: 6% 12% 6% 0;
}

.player-name-line .isOnlineImg,
.player-name-line .game-presence {
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.player-markers {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.player-marker {
    width: 35px;
    max-width: 15%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: default;
}

.ww-start-marker {
    border-radius: 50%;
}

.ww-start-marker-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
}

.start-marker-inactive {
    filter: grayscale(100%) opacity(30%);
}

/* Hand cards row: 5 cards side-by-side without horizontal overflow */
.player-hand {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-top: 4px;
}

.ww-card-slot {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: var(--ww-card-max-w, 129px);
    border-radius: 8px;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.player-card {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.28);
}

.ww-card-slot.card-selectable {
    outline: 3px solid #eab308;
    outline-offset: -3px;
    cursor: pointer;
}

.ww-card-slot.card-selectable:hover {
    transform: translateY(-3px);
    outline: 4px solid #facc15;
    outline-offset: -4px;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.65);
}

.ww-card-slot.card-selected {
    outline: 5px solid rgba(46, 204, 113, 1);
    outline-offset: -5px;
    border-radius: 8px;
}

.ww-card-slot.card-draft-selected {
    outline: 4px solid #0284c7;
    outline-offset: -4px;
    box-shadow: 0 0 12px 3px rgba(2, 132, 199, 0.7);
}

.ww-card-slot.card-inactive {
    filter: grayscale(100%) opacity(55%);
    cursor: default;
}

/* Marker highlights */
.marker-selectable {
    outline: 4px solid #ffcc00;
    outline-offset: 2px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px 4px rgba(255, 204, 0, 0.85), 0 0 6px 4px rgba(0, 0, 0, 0.7);
}

.marker-selectable:hover {
    transform: scale(1.12);
    outline: 4px solid #ffffff;
}

.marker-selectable-special {
    outline: 4px dashed #ffcc00;
    outline-offset: 2px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px 4px rgba(255, 204, 0, 0.85), 0 0 6px 4px rgba(0, 0, 0, 0.7);
}

.marker-selectable-special:hover {
    transform: scale(1.12);
    outline: 4px dashed #ffffff;
}

.takeback-btn-style {
    display: none;
    width: 35px;
    max-width: 16%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 50%;
    margin-left: 8px;
    cursor: default;
}

.takeback-btn-style.marker-selectable {
    display: inline-block;
    cursor: pointer;
}

#action-die,
#result-die {
    position: absolute;
    top: 35.5%;
    left: 53.5%;
    width: 9.5%;
    max-width: 60px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: none;
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.88);
}

#action-die {
    z-index: 60;
    cursor: default;
}

#action-die.marker-selectable {
    display: block;
    cursor: pointer;
    border-radius: 8px;
}

#result-die {
    z-index: 55;
}

.action-text-btn {
    position: absolute;
    top: 37.5%;
    left: 54%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: fit-content;
    white-space: nowrap;
    background-color: #ffd700;
    color: #000000;
    border: max(1px, calc(2px * var(--ww-board-scale, 1))) solid #b8860b;
    border-radius: calc(6px * var(--ww-board-scale, 1));
    padding: calc(6px * var(--ww-board-scale, 1)) calc(12px * var(--ww-board-scale, 1));
    font-weight: bold;
    font-size: calc(14px * var(--ww-board-scale, 1));
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 0 12px 3px rgba(255, 215, 0, 0.7), 2px 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.action-text-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background-color: #ffffff;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.9), 2px 4px 8px rgba(0, 0, 0, 0.6);
}

/* River overlay & cards */
.river-overlay {
    position: absolute;
    top: 0;
    left: 23.9%;
    width: 21.9%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.river-overlay::before {
    content: '';
    position: absolute;
    top: -600px;
    left: 0;
    width: 100%;
    height: calc(100% + 600px);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 70%, rgba(255, 255, 255, 0) 100%);
    background-size: 100% 120px, 100% 200px, 100% 300px;
    background-repeat: repeat;
    will-change: transform;
    animation: flowWaterGPU 7.5s linear infinite;
}

@keyframes flowWaterGPU {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, 600px, 0); }
}

.river-cards-container {
    position: absolute;
    left: 23%;
    width: 22%;
    top: 0.8%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8%;
    pointer-events: none;
}

.river-card {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.river-card.river-slot-empty {
    visibility: hidden;
}

.river-cardback-placeholder {
    aspect-ratio: 140 / 154;
    object-fit: cover;
}

.river-shift-btn {
    position: absolute;
    left: 30%;
    bottom: 1%;
    width: 8%;
    max-width: 80px;
    height: auto;
    border-radius: 50%;
    z-index: 100;
    display: none;
    cursor: default;
    transition: transform 0.2s ease, outline 0.2s ease;
}

.river-shift-btn.marker-selectable {
    display: block;
    outline: 4px solid rgba(241, 196, 15, 0.95);
    outline-offset: 2px;
    cursor: pointer;
}

.river-shift-btn.marker-selectable:hover {
    outline: 5px solid #ffffff;
    transform: scale(1.1);
}

.hide-tokens-btn {
    position: absolute;
    top: 72.55%;
    right: 0.55%;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 1.1;
    display: inline-block;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333333;
    border: max(1px, calc(2px * var(--ww-board-scale, 1))) solid #555555;
    border-radius: calc(6px * var(--ww-board-scale, 1));
    padding: calc(4px * var(--ww-board-scale, 1)) calc(8px * var(--ww-board-scale, 1));
    font-weight: bold;
    font-size: calc(10px * var(--ww-board-scale, 1));
    cursor: pointer;
    z-index: 110;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease;
}

.hide-tokens-btn.is-active,
.hide-tokens-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

#gameBoard .board-container.reveal-board-active .actual-token {
    opacity: 0.35;
    transform: translate(-50%, -145%) scale(0.7);
    transition: all 0.25s ease-in-out;
    box-shadow: none;
    outline: none;
    pointer-events: none;
}

/* Styled Bootstrap Popover (U-13) */
.ww-popover {
    max-width: 310px;
    border: 2px solid #2b6cb0;
    background-color: #fdf6e3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ww-popover .popover-header {
    background-color: #2b6cb0;
    color: #ffffff;
    font-weight: 700;
    padding: 0.45rem 0.65rem;
}

.ww-popover .popover-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.ww-popover .popover-body {
    color: #1f2937;
    padding: 0.6rem 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}

.ww-popover-card-img {
    width: 110px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ww-popover-river-img {
    width: 150px;
    height: auto;
    border-radius: 6px;
}

/* Easter Egg: Waterfall Fish & Flamingo Meerkat (cursor: default per U-11) */
.waterfall-easteregg-trigger {
    position: absolute;
    bottom: 0;
    left: 23%;
    width: 23.5%;
    height: 11%;
    z-index: 95;
    cursor: default;
    background: transparent;
}

.startfeld-easteregg-trigger {
    position: absolute;
    top: 0;
    left: 4.5%;
    width: 11%;
    height: 6.5%;
    z-index: 100;
    cursor: default;
    background: transparent;
}

.easteregg-fish-container {
    position: absolute;
    bottom: 2%;
    left: 35%;
    width: 8%;
    aspect-ratio: 70 / 40;
    pointer-events: none;
    z-index: 1050;
}

.easteregg-fish-svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: fishJumpTrajectory 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.easteregg-fish-svg .fish-tail {
    animation: fishTailWiggle 0.16s infinite alternate ease-in-out;
    transform-origin: 14px 20px;
}

.easteregg-fish-svg .fish-pectoral {
    animation: fishFinFlap 0.18s infinite alternate ease-in-out;
    transform-origin: 30px 22px;
}

@keyframes fishJumpTrajectory {
    0% { transform: translate3d(0, 8px, 0) rotate(-70deg) scale(0.65); opacity: 0; }
    12% { opacity: 1; transform: translate3d(-12px, -35px, 0) rotate(-55deg) scale(0.95); }
    45% { transform: translate3d(-38px, -90px, 0) rotate(-5deg) scale(1.15); }
    75% { opacity: 1; transform: translate3d(-62px, -45px, 0) rotate(50deg) scale(1); }
    95% { transform: translate3d(-75px, 12px, 0) rotate(80deg) scale(0.75); opacity: 0.9; }
    100% { transform: translate3d(-78px, 22px, 0) rotate(85deg) scale(0.5); opacity: 0; }
}

@keyframes fishTailWiggle {
    0% { transform: rotate(-16deg); }
    100% { transform: rotate(18deg); }
}

@keyframes fishFinFlap {
    0% { transform: scaleY(0.7) rotate(-10deg); }
    100% { transform: scaleY(1.2) rotate(15deg); }
}

.fish-splash {
    position: absolute;
    width: 32px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), inset 0 0 4px rgba(129, 212, 250, 0.8);
}

.fish-splash-start {
    bottom: 2px;
    left: 8px;
    animation: waterSplashExpand 0.6s ease-out forwards;
}

.fish-splash-end {
    bottom: -10px;
    left: -70px;
    animation: waterSplashExpand 0.6s ease-out forwards;
}

@keyframes waterSplashExpand {
    0% { transform: scale(0.3); opacity: 1; }
    70% { opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.splash-drop {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 3px #81d4fa;
}

.drop-1 { top: -4px; left: 4px; animation: dropFly1 0.5s ease-out forwards; }
.drop-2 { top: -6px; left: 14px; animation: dropFly2 0.55s ease-out forwards; }
.drop-3 { top: -5px; left: 22px; animation: dropFly3 0.5s ease-out forwards; }
.drop-4 { top: -2px; left: 28px; animation: dropFly4 0.45s ease-out forwards; }

@keyframes dropFly1 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(-10px, -18px) scale(0.4); opacity: 0; } }
@keyframes dropFly2 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(-2px, -24px) scale(0.4); opacity: 0; } }
@keyframes dropFly3 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(8px, -20px) scale(0.4); opacity: 0; } }
@keyframes dropFly4 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(14px, -12px) scale(0.3); opacity: 0; } }

.easteregg-meerkat-container {
    position: absolute;
    top: 12%;
    left: 28%;
    width: 14%;
    aspect-ratio: 100 / 110;
    pointer-events: none;
    z-index: 2000;
    animation: meerkatRiverCruise 4.5s cubic-bezier(0.35, 0, 0.25, 1) forwards;
}

.easteregg-meerkat-svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: meerkatFloatRocking 1.4s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

.meerkat-waving-paw {
    animation: meerkatPawWaving 0.4s ease-in-out infinite alternate;
    transform-origin: 36px 48px;
}

.flamingo-neck {
    animation: flamingoNeckBob 1.6s ease-in-out infinite alternate;
    transform-origin: 66px 70px;
}

@keyframes meerkatRiverCruise {
    0% { top: 17%; left: 31%; transform: scale(0.65); opacity: 0; }
    10% { opacity: 1; transform: scale(0.95); }
    35% { left: 26%; }
    65% { left: 32%; }
    88% { left: 28%; opacity: 1; transform: scale(1.05); }
    100% { top: 98%; left: 29%; transform: scale(1.1) rotate(10deg); opacity: 0; }
}

@keyframes meerkatFloatRocking {
    0% { transform: rotate(-6deg) translateY(-2px); }
    100% { transform: rotate(7deg) translateY(2px); }
}

@keyframes meerkatPawWaving {
    0% { transform: rotate(-18deg); }
    100% { transform: rotate(20deg); }
}

@keyframes flamingoNeckBob {
    0% { transform: rotate(-4deg); }
    100% { transform: rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
    .river-overlay::before,
    .easteregg-fish-svg,
    .easteregg-fish-svg .fish-tail,
    .easteregg-fish-svg .fish-pectoral,
    .fish-splash,
    .splash-drop,
    .easteregg-meerkat-container,
    .easteregg-meerkat-svg,
    .meerkat-waving-paw,
    .flamingo-neck {
        animation: none !important;
    }

    .river-overlay {
        display: none !important;
    }
}
