.pond-game-page {
    min-height: calc(100vh - 180px);
    padding: 1.5rem 0 3rem;
    color: #eaf6fb;
    font-family: "Manrope", sans-serif;
}

.pond-game-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto 1rem;
}

.pond-game-topbar p {
    margin: 0;
    color: #9ebbc9;
    font-size: .8rem;
}

.pond-game-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
}

.pond-game-mode-switcher {
    display: inline-flex;
    padding: 3px;
    background: rgba(3, 16, 27, .72);
    border: 1px solid rgba(139, 181, 208, .28);
    border-radius: 7px;
}

.pond-game-mode-switcher button {
    padding: .38rem .65rem;
    color: #a9c4d1;
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-size: .7rem;
    font-weight: 700;
}

.pond-game-mode-switcher button.active {
    color: #062033;
    background: #bfeaff;
}

.pond-game-mode-switcher button:hover:not(.active),
.pond-game-mode-switcher button:focus-visible {
    color: #fff;
}

.pond-game-school-controls {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.pond-game-school-controls[hidden] { display: none; }

.pond-game-night-status {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #d7e9f0;
    font-size: .74rem;
}

.pond-game-night-status span {
    max-width: 18rem;
}

.pond-game-night-status strong {
    color: #ffe49a;
    white-space: nowrap;
}

.pond-game-night-status[hidden] { display: none; }

.pond-game-add-fish {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: #062033;
    background: #f6c85f;
    border: 1px solid #ffe49c;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.pond-game-add-fish:hover,
.pond-game-add-fish:focus-visible {
    background: #ffe093;
    transform: translateY(-1px);
}

.pond-game-fish-count {
    min-width: 3.5rem;
    color: #c2dce7;
    font-size: .74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pond-game-back {
    color: #bfeaff;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.pond-game-back:hover,
.pond-game-back:focus-visible { color: #fff; }

.pond-game-world {
    position: relative;
    width: min(1100px, 100%);
    aspect-ratio: 2 / 1;
    margin: 0 auto;
    overflow: hidden;
    background: #071926;
    border: 1px solid rgba(139, 181, 208, .3);
    border-radius: 8px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .3);
}

.pond-game-background,
.pond-game-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pond-game-background { object-fit: cover; }
.pond-game-canvas { touch-action: none; }

.pond-game-hint {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    padding: .55rem .8rem;
    color: #e8f8ff;
    background: rgba(4, 18, 29, .78);
    border: 1px solid rgba(191, 234, 255, .35);
    border-radius: 7px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 220ms ease, transform 220ms ease;
}

.pond-game-hint small {
    display: block;
    margin-top: .35rem;
    font-size: .65rem;
    font-weight: 600;
}

.pond-game-hint.is-hidden {
    opacity: 0;
    transform: translate(-50%, 8px);
}

@media (max-width: 575.98px) {
    .pond-game-page { padding-top: 1rem; }
    .pond-game-topbar { align-items: flex-start; flex-direction: column; }
    .pond-game-topbar p { line-height: 1.45; }
    .pond-game-status { width: 100%; align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
    .pond-game-status p { flex: 1 0 100%; }
    .pond-game-mode-switcher { width: 100%; }
    .pond-game-mode-switcher button { flex: 1; }
    .pond-game-night-status { align-items: flex-start; flex-wrap: wrap; }
    .pond-game-night-status span { max-width: none; flex: 1 0 100%; }
    .pond-game-world { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
    .pond-game-hint { transition: none; }
}