.koi-game { --koi-water: #315e59; --koi-paper: #f6f2e5; --koi-ink: #263b39; color: var(--color-ink,var(--koi-ink)); outline: none; }
.koi-top, .koi-journal-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.koi-top .badge { display: inline-flex; gap: 16px; align-items: center; }
.koi-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(20px,4vw,44px); align-items: stretch; }
.koi-pond { position: relative; min-height: 390px; overflow: hidden; border-radius: 28px; background: var(--koi-water); }
.koi-water, .koi-pond-decoration { position: absolute; inset: 0; width: 100%; height: 100%; }.koi-pond-decoration { object-fit: cover; }
.koi-swimmer { position: absolute; width: 36%; animation: koi-drift 12s ease-in-out infinite alternate; transform-origin: center; }
.koi-swimmer-one { top: 20%; left: 15%; rotate: -20deg; }.koi-swimmer-two { top: 43%; left: 42%; rotate: 155deg; animation-delay: -5s; animation-duration: 15s; }.koi-swimmer-three { top: 50%; left: 5%; width: 27%; rotate: 20deg; animation-delay: -8s; animation-duration: 18s; }
.koi-fish-art { width: 100%; height: auto; display: block; }
.koi-pond-label { position: absolute; z-index: 2; left: 20px; bottom: 20px; right: 20px; padding: 12px 16px; border-radius: 14px; background: var(--koi-paper); color: var(--koi-ink); box-shadow: 0 4px 0 #c0b896; display: grid; gap: 2px; }
.koi-pond-label span { font-size: .875rem; }.koi-pond-label strong { font-size: 1.15rem; }
.koi-bobber { position: absolute; width: 48px; height: 20px; left: 55%; top: 36%; border: 2px solid #d8e7d1; border-radius: 50%; opacity: 0; }
.is-fishing .koi-bobber { opacity: 1; }.koi-bobber span { position: absolute; left: 20px; bottom: 8px; width: 7px; height: 27px; background: #eaca65; border-radius: 6px; border-top: 11px solid #d77758; transform: rotate(12deg); }.koi-bobber.is-hooked { border-width: 3px; }.koi-bobber.is-hooked span { transform: rotate(-15deg); }
.koi-catch-art { position: absolute; z-index: 1; width: 68%; left: 16%; top: 18%; padding: 10px; border-radius: 50%; background: #c0d5ba; box-shadow: 0 0 0 14px #b7d0ba30; rotate: -12deg; }
.koi-console { padding-block: 8px; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.koi-console h3 { font-size: clamp(1.35rem,2.2vw,1.7rem); line-height: 1.2; margin: 0; }
.koi-instruction { line-height: 1.6; margin: 0; }
.koi-mode { display: flex; justify-content: space-between; gap: 12px; align-items: center; }.koi-mode label { font-size: .875rem; }.koi-mode select { min-height: 44px; max-width: 65%; background: var(--koi-paper); color: inherit; border: 1px solid #78877b; border-radius: 12px; padding: 8px 28px 8px 12px; font: inherit; font-size: .875rem; }.koi-mode select:disabled { color: #56675b; background: #e2e5d9; cursor: not-allowed; }
.koi-timing { padding-block: 4px; }.koi-meter-labels, .koi-round-stats { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; font-variant-numeric: tabular-nums; }.koi-round-stats { margin-top: 12px; }
.koi-track { position: relative; height: 52px; margin: 10px 8px 0; border-radius: 14px; background: #dce2d4; border: 1px solid #899783; }
.koi-zone { position: absolute; top: 0; bottom: 0; background: #e6c75e; border-inline: 2px solid #78652e; }
.koi-track-label { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: .8125rem; color: #2b382d; font-weight: 600; white-space: nowrap; background: #f6f2e5db; border-radius: 5px; padding: 1px 5px; pointer-events: none; }
.koi-needle { position: absolute; top: -6px; bottom: -6px; width: 5px; translate: -50% 0; border-radius: 4px; background: #283c3b; z-index: 1; box-shadow: 0 0 0 2px #f6f2e5; }
.koi-actions { display: flex; gap: 12px; flex-wrap: wrap; }.koi-actions .primary { min-width: 160px; }.koi-actions .btn { min-height: 52px; }
.koi-nudge { display: flex; gap: 10px; margin-top: 16px; }.koi-nudge .btn { flex: 1; min-height: 44px; font-size: .875rem; }
.koi-status { min-height: 48px; font-size: .95rem; line-height: 1.5; margin: 0; color: #315b43; }.koi-help, .koi-provenance { font-size: .875rem; line-height: 1.6; margin: 0; }
.koi-journal-heading { margin-top: 36px; }.koi-journal-heading h3 { font-size: 1.2rem; }
.koi-collection { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }.koi-specimen { background: var(--color-card,var(--koi-paper)); border: 1px solid #c8cdbb; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; text-align: center; align-items: center; min-width: 0; }.koi-specimen strong { font-size: .875rem; line-height: 1.4; }.koi-specimen span { font-size: .8125rem; margin-top: 3px; }.koi-specimen.is-unseen .koi-fish-art { opacity: .4; filter: grayscale(1); }.koi-provenance { margin-top: 22px; }
.koi-game button:focus-visible, .koi-game select:focus-visible, .koi-game:focus-visible { outline: 3px solid var(--color-focus,#236ab3); outline-offset: 4px; }.koi-game button:disabled { cursor: not-allowed; opacity: .6; }
.koi-pond.is-paused .koi-swimmer { animation-play-state: paused; }
@keyframes koi-drift { from { translate: -10% 0; } to { translate: 20% 18%; } }
@media (max-width: 700px) { .koi-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }.koi-pond { min-height: 260px; }.koi-pond-label { left: 14px; right: 14px; bottom: 14px; }.koi-collection { grid-template-columns: repeat(3,minmax(0,1fr)); }.koi-console { gap: 14px; }.koi-status { min-height: 0; }.koi-catch-art { width: 50%; left: 25%; top: 8%; } }
@media (prefers-reduced-motion: reduce) { .koi-swimmer { animation: none; } }
