* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sea-top: #1a6d8c;
  --sea-mid: #10516e;
  --sea-deep: #0a3550;
  --frame-bg: #141a4a;
  --panel: rgba(8, 10, 32, 0.92);
  --panel-line: rgba(120, 160, 255, 0.14);
  --text: #eef6ff;
  --text-dim: #93a8d8;
  --accent: #29f0d4;
  --gold: #ffd75e;
  --violet: #8f6bff;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 120% at 50% 0%, #1c2260 0%, #10133c 55%, #070a24 100%);
  color: var(--text);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.fish-root {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 8px;
}

.fish-frame {
  position: relative;
  width: min(100%, 1180px);
  height: min(100%, 700px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #1b2158 0%, #131847 60%, #0e1238 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
}

/* Reserve room for the side panel; collapse it when the panel is hidden. */
.fish-top,
.fish-sea,
.fish-controls {
  margin-right: 250px;
  transition: margin-right 0.25s ease;
}

.fish-frame:has(.fish-side.is-hidden) .fish-top,
.fish-frame:has(.fish-side.is-hidden) .fish-sea,
.fish-frame:has(.fish-side.is-hidden) .fish-controls {
  margin-right: 0;
}

/* ---------- Top bar (floats over the sea) ---------- */
.fish-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 16px 0;
  margin-bottom: -58px; /* overlay on top of the scene like the original */
  pointer-events: none;
}

.fish-top > * {
  pointer-events: auto;
}

.fish-logo {
  font-size: 38px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #cfe9ff 0%, #6fb9ff 45%, #3f7cf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(20, 20, 80, 0.9)) drop-shadow(0 6px 16px rgba(80, 140, 255, 0.45));
  transform: rotate(-4deg);
}

.fish-risk {
  text-align: center;
  padding-top: 4px;
}

.fish-risk-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
}

.fish-risk-tabs {
  display: inline-flex;
  gap: 18px;
}

.fish-risk-tab {
  border: 0;
  background: transparent;
  color: #d8b95c;
  opacity: 0.55;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fish-risk-tab.is-active {
  opacity: 1;
  color: #ffe28a;
  background: rgba(90, 70, 20, 0.35);
  border-bottom-color: #ffe28a;
  border-radius: 6px 6px 0 0;
}

.fish-buy-bonus {
  border: 0;
  cursor: pointer;
  position: relative;
  width: 104px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.9) 0 12%, transparent 14%),
    repeating-conic-gradient(from 235deg at 50% 96%, #ffd9f3 0 11deg, #e9a2e8 11deg 22deg, #b98bff 22deg 33deg);
  box-shadow: inset 0 -4px 10px rgba(120, 40, 140, 0.5), 0 8px 22px rgba(150, 90, 220, 0.4);
  color: #2c1450;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  transition: transform 0.12s ease;
}

.fish-buy-bonus:hover {
  transform: scale(1.05);
}

.fish-buy-bonus-shell {
  display: none;
}

.fish-buy-bonus-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---------- Sea scene ---------- */
.fish-sea {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(90, 140, 255, 0.25);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(120, 230, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #2b86a4 0%, #1a6d8c 22%, #10516e 55%, #0a3550 82%, #082a42 100%);
}

/* light rays */
.fish-rays {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 30%, rgba(190, 245, 255, 0.07) 33%, transparent 37%),
    linear-gradient(100deg, transparent 44%, rgba(190, 245, 255, 0.06) 47%, transparent 52%),
    linear-gradient(100deg, transparent 58%, rgba(190, 245, 255, 0.05) 62%, transparent 66%);
  pointer-events: none;
}

/* side cliffs */
.fish-cliff {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26%;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.35));
}

.fish-cliff--left {
  left: -2%;
  background:
    radial-gradient(120% 55% at 0% 18%, #17646f 0 52%, transparent 53%),
    radial-gradient(130% 45% at 0% 55%, #135462 0 58%, transparent 59%),
    radial-gradient(150% 50% at 0% 95%, #0e4553 0 64%, transparent 65%);
}

.fish-cliff--right {
  right: -2%;
  background:
    radial-gradient(120% 50% at 100% 14%, #17646f 0 50%, transparent 51%),
    radial-gradient(130% 48% at 100% 52%, #135462 0 56%, transparent 57%),
    radial-gradient(150% 52% at 100% 94%, #0e4553 0 66%, transparent 67%);
}

/* corals */
.fish-coral {
  position: absolute;
  bottom: -4px;
  width: 120px;
  height: 90px;
  pointer-events: none;
  background:
    radial-gradient(28% 55% at 20% 100%, #b338a8 0 60%, transparent 61%),
    radial-gradient(24% 70% at 42% 100%, #d14fbf 0 55%, transparent 56%),
    radial-gradient(26% 48% at 64% 100%, #8e2f86 0 62%, transparent 63%),
    radial-gradient(22% 62% at 84% 100%, #c944ae 0 58%, transparent 59%);
  filter: drop-shadow(0 0 12px rgba(200, 70, 180, 0.35));
}

.fish-coral--l1 { left: 0; }
.fish-coral--l2 { left: 90px; width: 90px; height: 60px; opacity: 0.85; }
.fish-coral--r1 { right: 0; }
.fish-coral--r2 { right: 95px; width: 90px; height: 62px; opacity: 0.85; }

.fish-weeds span {
  position: absolute;
  bottom: -6px;
  width: 22px;
  height: 90px;
  background: linear-gradient(180deg, rgba(90, 220, 130, 0), rgba(40, 150, 90, 0.7));
  clip-path: polygon(50% 0%, 68% 22%, 55% 40%, 75% 60%, 58% 78%, 70% 100%, 30% 100%, 44% 76%, 26% 58%, 45% 40%, 32% 20%);
  transform-origin: bottom center;
  animation: fish-sway 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.fish-weeds span:nth-child(1) { left: 3%; height: 120px; animation-delay: 0.2s; }
.fish-weeds span:nth-child(2) { left: 8%; height: 75px; animation-delay: 1.4s; }
.fish-weeds span:nth-child(3) { left: 20%; height: 60px; animation-delay: 2.4s; opacity: 0.7; }
.fish-weeds span:nth-child(4) { right: 19%; height: 66px; animation-delay: 1s; opacity: 0.7; }
.fish-weeds span:nth-child(5) { right: 8%; height: 110px; animation-delay: 0.6s; }
.fish-weeds span:nth-child(6) { right: 3%; height: 80px; animation-delay: 2s; }

@keyframes fish-sway {
  from { transform: rotate(-6deg); }
  to { transform: rotate(6deg); }
}

.fish-bubbles span {
  position: absolute;
  bottom: -30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(190, 240, 255, 0.4);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.03) 60%);
  animation: fish-bubble 9s linear infinite;
  pointer-events: none;
}

.fish-bubbles span:nth-child(1) { left: 6%; animation-delay: 0s; transform: scale(0.7); }
.fish-bubbles span:nth-child(2) { left: 14%; animation-delay: 2.2s; }
.fish-bubbles span:nth-child(3) { left: 24%; animation-delay: 4.8s; transform: scale(1.3); }
.fish-bubbles span:nth-child(4) { left: 36%; animation-delay: 1.4s; transform: scale(0.6); }
.fish-bubbles span:nth-child(5) { left: 48%; animation-delay: 6s; }
.fish-bubbles span:nth-child(6) { left: 58%; animation-delay: 3.1s; transform: scale(1.2); }
.fish-bubbles span:nth-child(7) { left: 68%; animation-delay: 7.5s; transform: scale(0.8); }
.fish-bubbles span:nth-child(8) { left: 78%; animation-delay: 0.9s; }
.fish-bubbles span:nth-child(9) { left: 87%; animation-delay: 5.2s; transform: scale(0.65); }
.fish-bubbles span:nth-child(10) { left: 94%; animation-delay: 3.9s; transform: scale(1.1); }

@keyframes fish-bubble {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(-72vh); opacity: 0; }
}

/* stone arena steps at the bottom center */
.fish-arena {
  position: absolute;
  left: 50%;
  bottom: -14%;
  transform: translateX(-50%);
  width: 78%;
  height: 46%;
  pointer-events: none;
}

.fish-arena span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #3f9e97 0%, #2a7a78 45%, #1c5a5e 100%);
  box-shadow: inset 0 6px 10px rgba(190, 255, 240, 0.25), inset 0 -10px 16px rgba(0, 30, 40, 0.5);
}

.fish-arena span:nth-child(1) { bottom: 58%; width: 62%; height: 34%; }
.fish-arena span:nth-child(2) { bottom: 40%; width: 76%; height: 36%; filter: brightness(0.92); }
.fish-arena span:nth-child(3) { bottom: 20%; width: 90%; height: 38%; filter: brightness(0.82); }
.fish-arena span:nth-child(4) { bottom: 0; width: 100%; height: 40%; filter: brightness(0.7); }

/* ---------- Poles ---------- */
.fish-poles {
  position: absolute;
  left: 50%;
  bottom: 26%;
  transform: translateX(-50%);
  width: min(66%, 560px);
  height: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.fish-pole {
  position: relative;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(calc(var(--lift, 0px) * -1));
}

/* thin glowing needle */
.fish-pole-stick {
  position: relative;
  width: 5px;
  height: 120px;
  background: linear-gradient(180deg, rgba(240, 250, 255, 0.15) 0%, #dff3ff 40%, #f6fbff 100%);
  clip-path: polygon(50% 0%, 100% 12%, 78% 100%, 22% 100%, 0% 12%);
  filter: drop-shadow(0 0 6px rgba(190, 235, 255, 0.8));
}

/* glowing orb base */
.fish-pole-base {
  width: 26px;
  height: 26px;
  margin-top: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #e8dbff 0%, #a86ef0 45%, #6a34c9 100%);
  box-shadow: 0 0 16px rgba(168, 110, 240, 0.9), 0 0 34px rgba(168, 110, 240, 0.4);
}

.fish-pole-odd {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease, transform 0.2s ease;
}

.fish-pole.is-doubled .fish-pole-odd {
  color: var(--gold);
  transform: scale(1.15);
  text-shadow: 0 0 14px rgba(255, 215, 94, 0.7);
}

/* rings resting at the pole base */
.fish-pole-stack {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  pointer-events: none;
  z-index: 1;
}

.fish-stack-ring {
  position: absolute;
  left: 50%;
  width: 44px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 5px solid var(--ring-color, #3ee06f);
  background: transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.fish-stack-ring.is-gold {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 215, 94, 0.65), inset 0 2px 3px rgba(255, 255, 255, 0.5);
}

/* Flying ring */
.fish-fly-ring {
  position: absolute;
  z-index: 6;
  width: 46px;
  height: 17px;
  border-radius: 50%;
  border: 6px solid var(--ring-color, #3ee06f);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  will-change: transform, opacity;
}

.fish-fly-ring.is-gold {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 215, 94, 0.8);
}

/* Win message */
.fish-win {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: 60%;
  padding: 14px 0 10px;
  text-align: center;
  background: radial-gradient(60% 100% at 50% 100%, rgba(120, 80, 255, 0.4), transparent 75%);
  animation: fish-win-pop 0.3s ease;
  pointer-events: none;
}

.fish-win-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.fish-win-amount {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(41, 240, 212, 0.5), 0 2px 10px rgba(0, 0, 0, 0.6);
}

@keyframes fish-win-pop {
  from { transform: translateX(-50%) scale(0.75); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ---------- Bottom controls ---------- */
.fish-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 14px 16px 6px;
}

.fish-bet-btn {
  position: relative;
  width: 118px;
  height: 118px;
  margin-top: -34px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 30% 24%, #8ff3e4 0%, #43c8f0 38%, #7a4bff 82%, #5b2fd6 100%);
  box-shadow: 0 12px 30px rgba(80, 60, 220, 0.55), inset 0 4px 10px rgba(255, 255, 255, 0.45), inset 0 -8px 14px rgba(30, 10, 90, 0.5);
  transition: transform 0.1s ease, filter 0.15s ease;
}

.fish-bet-btn:hover { transform: scale(1.05); }
.fish-bet-btn:active { transform: scale(0.94); }

.fish-bet-btn:disabled {
  filter: grayscale(0.6) brightness(0.75);
  cursor: default;
  transform: none;
}

.fish-bet-btn-ring {
  position: absolute;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.fish-bet-btn-ring.r1 {
  top: 24px;
  left: 50%;
  margin-left: -6px;
  width: 40px;
  height: 20px;
  transform: rotate(-30deg);
}

.fish-bet-btn-ring.r2 {
  top: 48px;
  left: 22px;
  width: 30px;
  height: 15px;
  transform: rotate(-18deg);
  opacity: 0.9;
}

.fish-bet-btn-ring.r3 {
  top: 70px;
  left: 44px;
  width: 22px;
  height: 11px;
  transform: rotate(-40deg);
  opacity: 0.75;
}

.fish-controls-mid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 380px;
}

.fish-stake-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fish-stake-bar {
  flex: 1;
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 12, 40, 0.85);
  border: 1px solid var(--panel-line);
}

.fish-step {
  width: 46px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.fish-step:hover { color: var(--accent); }

#bet {
  flex: 1;
  height: 100%;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

#bet::-webkit-outer-spin-button,
#bet::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.fish-auto {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: rgba(10, 12, 40, 0.85);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fish-auto:hover { color: var(--text); }

.fish-auto.is-on {
  background: linear-gradient(180deg, #29f0d4, #12a98f);
  color: #071430;
  border-color: transparent;
}

.fish-quick-row {
  display: flex;
  gap: 10px;
}

.fish-quick {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: rgba(10, 12, 40, 0.85);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fish-quick:hover {
  color: var(--text);
  background: rgba(20, 26, 66, 0.95);
}

/* ---------- Right side panel ---------- */
.fish-side {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  width: 250px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--panel-line);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease;
}

.fish-side.is-hidden {
  transform: translateX(100%);
}

.fish-side-balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--panel-line);
}

.fish-side-balance-amount {
  font-size: 19px;
  font-weight: 900;
}

.fish-side-balance-unit {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
}

.fish-side-clock {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
}

.fish-side-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 8px;
}

.fish-side-tab {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--panel-line);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fish-side-tab.is-active {
  background: rgba(143, 107, 255, 0.25);
  border-color: rgba(143, 107, 255, 0.5);
  color: var(--text);
}

.fish-side-columns {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr 1fr 0.9fr;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.fish-side-rows {
  flex: 1;
  overflow-y: auto;
  padding: 0 6px 10px;
}

.fish-side-rows::-webkit-scrollbar { width: 4px; }
.fish-side-rows::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.25); border-radius: 2px; }

.fish-side-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr 1fr 0.9fr;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.fish-side-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.fish-side-row .win { color: var(--accent); font-weight: 700; }
.fish-side-row .lose { color: #ff6d7e; }

.fish-side-toggle {
  position: absolute;
  top: 50%;
  right: 250px;
  z-index: 9;
  transform: translateY(-50%);
  width: 26px;
  height: 54px;
  border: 1px solid var(--panel-line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  transition: right 0.25s ease;
}

.fish-side-toggle.is-shifted { right: 0; }

/* ---------- Bonus modal ---------- */
.fish-bonus {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 22, 0.82);
  backdrop-filter: blur(4px);
}

.fish-bonus[hidden] {
  display: none;
}

.fish-bonus-card {
  width: min(92vw, 460px);
  padding: 26px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1a2160, #10143f);
  border: 1px solid rgba(255, 215, 94, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.fish-bonus-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 215, 94, 0.4);
}

.fish-bonus-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.fish-bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 14px;
}

.fish-bonus-shell {
  height: 76px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  color: transparent;
  background:
    radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.8) 0 14%, transparent 16%),
    repeating-conic-gradient(from 235deg at 50% 100%, #ffd9f3 0 14deg, #f7a6dd 14deg 28deg);
  box-shadow: inset 0 -4px 8px rgba(150, 40, 120, 0.35), 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease;
}

.fish-bonus-shell:hover:not(:disabled) { transform: scale(1.06); }

.fish-bonus-shell.is-open {
  background: linear-gradient(180deg, #1c2258, #131740);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 94, 0.4);
}

.fish-bonus-shell.is-open.is-picked {
  color: #071430;
  background: linear-gradient(180deg, #ffe9a8, #ffc93e);
  box-shadow: 0 0 24px rgba(255, 215, 94, 0.7);
}

.fish-bonus-result {
  min-height: 24px;
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
}

.fish-bonus-close {
  margin-top: 12px;
  height: 44px;
  padding: 0 34px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #29f0d4, #12a98f);
  color: #071430;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Side panel becomes an overlay; content keeps full width. */
  .fish-top,
  .fish-sea,
  .fish-controls {
    margin-right: 0 !important;
  }
  .fish-side {
    width: 230px;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.4);
  }
  .fish-side-toggle { right: 230px; }
  .fish-side-toggle.is-shifted { right: 0; }
}

@media (max-width: 720px) {
  .fish-root { padding: 0; }
  .fish-frame {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding: 6px;
  }
  .fish-logo { font-size: 26px; }
  .fish-top { padding: 8px 10px 0; margin-bottom: -46px; }
  .fish-risk-tab { padding: 4px 8px; font-size: 12px; }
  .fish-buy-bonus { width: 74px; height: 56px; font-size: 11px; }

  .fish-poles { width: 90%; bottom: 24%; }
  .fish-pole { width: 54px; }
  .fish-pole-stick { height: 88px; }
  .fish-pole-base { width: 20px; height: 20px; }
  .fish-pole-odd { font-size: 17px; }
  .fish-pole-stack { width: 36px; }
  .fish-stack-ring { width: 34px; height: 12px; border-width: 4px; }

  .fish-bet-btn { width: 84px; height: 84px; margin-top: -20px; }
  .fish-bet-btn-ring.r1 { top: 18px; width: 30px; height: 15px; }
  .fish-bet-btn-ring.r2 { top: 36px; left: 16px; width: 22px; height: 11px; }
  .fish-bet-btn-ring.r3 { top: 52px; left: 32px; width: 16px; height: 8px; }

  .fish-controls { gap: 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .fish-controls-mid { min-width: 0; flex: 1; }
  .fish-stake-bar { height: 40px; }
  .fish-auto { height: 40px; padding: 0 10px; font-size: 11px; }
  .fish-quick { height: 32px; font-size: 11px; }

  .fish-side { width: min(78vw, 260px); }
  .fish-side-toggle { right: 0; }
  .fish-side:not(.is-hidden) ~ .fish-side-toggle { right: min(78vw, 260px); }
}
