/* Mandalay Beach / Pool Complex overlay — sun, desert, turquoise water */

:root {
  --pool-sky: #1a3a52;
  --pool-sky-hot: #3d6f8c;
  --pool-sun: #ffb347;
  --pool-sun-core: #ffe08a;
  --pool-water: #1a8a9a;
  --pool-water-deep: #0d4a58;
  --pool-sand: #c4a06a;
  --pool-desert: #8a5a32;
  --pool-gold: #e8c547;
  --pool-foam: #d8f0f4;
  --pool-ink: #071018;
  --pool-panel: rgba(8, 18, 26, 0.88);
  --pool-text: #e8f4f6;
}

body.pool-overlay-active {
  overflow: hidden;
}

.pool-overlay-host {
  display: none !important;
}

.pool-overlay {
  position: fixed;
  inset: 0;
  z-index: 9250;
  display: none;
  pointer-events: none;
}

.pool-overlay--open {
  display: block;
  pointer-events: auto;
}

.pool-overlay__backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding:
    max(0.85rem, var(--safe-top, 0px))
    max(0.85rem, var(--safe-right, 0px))
    max(0.85rem, var(--safe-bottom, 0px))
    max(0.85rem, var(--safe-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: pool-fade-in 320ms ease-out;
}

@keyframes pool-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Atmosphere layers ── */

.pool-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pool-atmosphere__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 8%, rgba(255, 179, 71, 0.45) 0%, transparent 42%),
    radial-gradient(ellipse at 20% 0%, rgba(57, 197, 207, 0.18) 0%, transparent 40%),
    linear-gradient(180deg, #245a78 0%, var(--pool-sky) 38%, #0e2430 72%, #07141c 100%);
}

.pool-atmosphere__sun {
  position: absolute;
  top: 6%;
  right: 12%;
  width: min(22vw, 9rem);
  height: min(22vw, 9rem);
  animation: pool-sun-pulse 6s ease-in-out infinite;
}

.pool-atmosphere__sun-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pool-sun-core), var(--pool-sun) 55%, #e08a20 100%);
  box-shadow:
    0 0 40px rgba(255, 179, 71, 0.55),
    0 0 90px rgba(255, 140, 40, 0.35);
}

.pool-atmosphere__sun-ray {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 14deg,
    rgba(255, 200, 100, 0.18) 14deg 22deg,
    transparent 22deg 50deg,
    rgba(255, 200, 100, 0.12) 50deg 58deg,
    transparent 58deg 100deg,
    rgba(255, 200, 100, 0.16) 100deg 108deg,
    transparent 108deg
  );
  animation: pool-sun-spin 28s linear infinite;
}

@keyframes pool-sun-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes pool-sun-spin {
  to { transform: rotate(360deg); }
}

.pool-atmosphere__haze {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(196, 160, 106, 0.12) 70%, transparent 100%);
  animation: pool-haze 8s ease-in-out infinite alternate;
}

@keyframes pool-haze {
  from { opacity: 0.55; transform: translateY(0); }
  to { opacity: 0.9; transform: translateY(-1.5%); }
}

.pool-atmosphere__desert {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 28%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(138, 90, 50, 0.35) 40%, rgba(90, 55, 28, 0.55) 100%);
  clip-path: polygon(0 55%, 12% 40%, 28% 58%, 45% 32%, 62% 50%, 78% 28%, 100% 48%, 100% 100%, 0 100%);
  opacity: 0.85;
}

.pool-atmosphere__palms {
  position: absolute;
  inset: 0;
}

.pool-palm {
  position: absolute;
  bottom: 22%;
  width: 2.5rem;
  height: 9rem;
  background: linear-gradient(180deg, transparent 0%, #1a4030 18%, #0d281c 100%);
  border-radius: 40% 40% 10% 10%;
  opacity: 0.55;
  transform-origin: bottom center;
  animation: pool-palm-sway 5.5s ease-in-out infinite;
}

.pool-palm::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  left: 50%;
  width: 4.5rem;
  height: 2.2rem;
  margin-left: -2.25rem;
  background: radial-gradient(ellipse at 50% 100%, #1f5a40 0%, transparent 70%);
  border-radius: 50%;
}

.pool-palm--a { left: 6%; animation-delay: 0s; }
.pool-palm--b { right: 8%; left: auto; animation-delay: -2.2s; height: 7.5rem; opacity: 0.4; }

@keyframes pool-palm-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}

.pool-atmosphere__water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background:
    linear-gradient(180deg, rgba(26, 138, 154, 0.15) 0%, var(--pool-water) 35%, var(--pool-water-deep) 100%);
  overflow: hidden;
}

.pool-wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(216, 240, 244, 0.18);
  animation: pool-wave-drift 7s ease-in-out infinite;
}

.pool-wave--1 { bottom: 55%; animation-duration: 6s; }
.pool-wave--2 { bottom: 35%; opacity: 0.7; animation-duration: 8s; animation-delay: -2s; }
.pool-wave--3 { bottom: 12%; opacity: 0.5; animation-duration: 9.5s; animation-delay: -4s; height: 3rem; }

@keyframes pool-wave-drift {
  0%, 100% { transform: translateX(-2%) scaleY(1); }
  50% { transform: translateX(3%) scaleY(1.15); }
}

.pool-atmosphere__steam {
  position: absolute;
  inset: 30% 10% 25%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(220, 240, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(200, 230, 240, 0.14) 0%, transparent 45%);
  animation: pool-steam 4s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes pool-steam {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-4%); }
}

.pool-atmosphere__bubbles span {
  position: absolute;
  bottom: 8%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(180, 230, 255, 0.45);
  animation: pool-bubble 5s linear infinite;
}

.pool-atmosphere__bubbles span:nth-child(1) { left: 18%; animation-delay: 0s; }
.pool-atmosphere__bubbles span:nth-child(2) { left: 34%; animation-delay: -1s; width: 0.3rem; height: 0.3rem; }
.pool-atmosphere__bubbles span:nth-child(3) { left: 52%; animation-delay: -2.2s; }
.pool-atmosphere__bubbles span:nth-child(4) { left: 68%; animation-delay: -0.8s; width: 0.55rem; height: 0.55rem; }
.pool-atmosphere__bubbles span:nth-child(5) { left: 82%; animation-delay: -3.1s; }

@keyframes pool-bubble {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-55vh) scale(1.1); opacity: 0; }
}

.pool-atmosphere__neon {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(57, 197, 207, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 40%, rgba(232, 197, 71, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 80%, rgba(61, 214, 140, 0.12) 0%, transparent 45%);
  animation: pool-neon-shift 3.2s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes pool-neon-shift {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.pool-atmosphere__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 18px,
    rgba(232, 197, 71, 0.04) 18px,
    rgba(232, 197, 71, 0.04) 36px
  );
  opacity: 0.7;
}

/* Motif backdrop tweaks */
.pool-overlay__backdrop--reef .pool-atmosphere__sky {
  background: linear-gradient(180deg, #0a2a38 0%, #061820 50%, #031018 100%);
}

.pool-overlay__backdrop--reef .pool-atmosphere__sun { opacity: 0.25; }

.pool-overlay__backdrop--rave .pool-atmosphere__sky {
  background: linear-gradient(180deg, #0a1020 0%, #081018 40%, #04080e 100%);
}

.pool-overlay__backdrop--rave .pool-atmosphere__sun { opacity: 0.15; filter: hue-rotate(40deg); }

.pool-overlay__backdrop--steam .pool-atmosphere__water {
  background: linear-gradient(180deg, rgba(180, 210, 220, 0.2) 0%, #2a6a72 40%, #143840 100%);
}

/* FX bursts */
.pool-fx--splash .pool-atmosphere__water {
  animation: pool-splash-burst 0.85s ease-out;
}

@keyframes pool-splash-burst {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.45); }
  100% { filter: brightness(1); }
}

.pool-fx--splash .pool-hero-splash {
  animation: pool-splash-pop 0.7s ease-out;
}

@keyframes pool-splash-pop {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.4); }
}

.pool-fx--mistime .pool-overlay__shell {
  animation: pool-shake 0.45s ease-out;
}

@keyframes pool-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pool-fx--ring .pool-zone__hero--wave::after {
  content: "";
  position: absolute;
  inset: 30% 40%;
  border: 2px solid var(--pool-gold);
  border-radius: 50%;
  animation: pool-ring-toss 0.7s ease-out forwards;
}

@keyframes pool-ring-toss {
  0% { transform: translateY(-40%) scale(0.4); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(30%) scale(1); opacity: 0; }
}

.pool-fx--steam .pool-atmosphere__steam {
  animation: pool-steam 1.2s ease-out;
  opacity: 1;
}

.pool-fx--shutter .pool-overlay__shell {
  animation: pool-shutter 0.35s steps(2, end);
}

@keyframes pool-shutter {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(2.2); }
}

.pool-fx--neon .pool-atmosphere__neon {
  animation: pool-neon-hit 0.6s ease-out;
}

@keyframes pool-neon-hit {
  0% { opacity: 0.4; }
  40% { opacity: 1; filter: brightness(1.4); }
  100% { opacity: 0.7; }
}

.pool-fx--sun .pool-atmosphere__sun {
  animation: pool-sun-pulse 0.5s ease-out;
  transform: scale(1.12);
}

.pool-fx--gold .pool-overlay__shell {
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.55), 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* ── Shell ── */

.pool-overlay__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: min(var(--overlay-max-h, calc(100dvh - 1.7rem)), 100%);
  min-height: min(280px, var(--overlay-max-h, calc(100dvh - 1.7rem)));
  overflow: hidden;
  margin: auto;
  padding: 1.15rem 1.25rem 1rem;
  color: var(--pool-text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  background:
    linear-gradient(180deg, rgba(232, 197, 71, 0.08) 0%, transparent 28%),
    var(--pool-panel);
  border: 1px solid rgba(57, 197, 207, 0.35);
  box-shadow:
    0 0 0 1px rgba(232, 197, 71, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  animation: pool-shell-in 420ms cubic-bezier(0.22, 1.1, 0.36, 1) both;
}

.pool-overlay__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
}

.pool-overlay__header,
.pool-overlay__tagline,
.pool-overlay__message,
.pool-overlay__footer {
  flex-shrink: 0;
}

@keyframes pool-shell-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pool-overlay__shell--wave { border-color: rgba(26, 138, 154, 0.55); }
.pool-overlay__shell--steam { border-color: rgba(180, 210, 220, 0.35); }
.pool-overlay__shell--cabana { border-color: rgba(232, 197, 71, 0.4); }
.pool-overlay__shell--reef { border-color: rgba(80, 180, 220, 0.45); }
.pool-overlay__shell--club { border-color: rgba(255, 179, 71, 0.45); }
.pool-overlay__shell--rave { border-color: rgba(57, 197, 207, 0.5); }
.pool-overlay__shell--reel { border-color: rgba(232, 197, 71, 0.35); }

.pool-overlay__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.35rem;
}

.pool-overlay__eyebrow {
  margin: 0;
  color: var(--pool-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.pool-overlay__title {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(26, 138, 154, 0.35);
}

.pool-overlay__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
  font-size: 0.78rem;
}

.pool-overlay__chips {
  color: var(--pool-gold);
  font-weight: 700;
}

.pool-overlay__tagline {
  margin: 0 0 0.75rem;
  color: rgba(232, 244, 246, 0.72);
  max-width: 48rem;
  line-height: 1.45;
  font-size: 0.9rem;
}

.pool-overlay__message {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  animation: pool-shell-in 280ms ease-out;
}

.pool-overlay__message.is-ok {
  background: rgba(61, 214, 140, 0.1);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: #9aecc0;
}

.pool-overlay__message.is-bad {
  background: rgba(240, 113, 120, 0.1);
  border: 1px solid rgba(240, 113, 120, 0.35);
  color: #f0a0a5;
}

.pool-overlay__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(57, 197, 207, 0.18);
}

.pool-overlay__exit {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pool-ink);
  background: linear-gradient(180deg, var(--pool-gold) 0%, #c9a030 100%);
  border: 1px solid rgba(255, 230, 150, 0.35);
  border-radius: 3px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.pool-overlay__exit:hover,
.pool-overlay__exit:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.pool-overlay__footer-note {
  font-size: 0.75rem;
}

/* Hub grid */

.pool-hub__summary {
  margin: 0 0 0.5rem;
  font-style: italic;
  border-left: 2px solid rgba(232, 197, 71, 0.4);
  padding-left: 0.65rem;
}

.pool-hub__unlocks {
  margin: 0 0 0.85rem;
  color: #9aecc0;
  font-size: 0.85rem;
}

.pool-zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.pool-zone-card {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border: 1px solid rgba(57, 197, 207, 0.28);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.pool-zone-card:hover,
.pool-zone-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--pool-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.pool-zone-card--visited {
  border-color: rgba(61, 214, 140, 0.35);
}

.pool-zone-card__visual {
  flex: 0 0 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(26, 138, 154, 0.35), rgba(8, 24, 32, 0.6));
  position: relative;
  overflow: hidden;
}

.pool-zone-card__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(216, 240, 244, 0.18));
  animation: pool-wave-drift 5s ease-in-out infinite;
}

.pool-zone-card--wave .pool-zone-card__visual {
  background: linear-gradient(160deg, #1a8a9a, #0d3a48);
}

.pool-zone-card--steam .pool-zone-card__visual {
  background: linear-gradient(160deg, #6a9aa4, #2a4850);
}

.pool-zone-card--cabana .pool-zone-card__visual {
  background:
    repeating-linear-gradient(90deg, #c9a030 0 6px, #1a2230 6px 12px);
}

.pool-zone-card--reef .pool-zone-card__visual {
  background: linear-gradient(180deg, #0a3040, #062028);
}

.pool-zone-card--club .pool-zone-card__visual {
  background: radial-gradient(circle at 50% 20%, #ffb347, #8a4a18 70%);
}

.pool-zone-card--rave .pool-zone-card__visual {
  background: linear-gradient(135deg, #0a2030, #123840 50%, #0a1810);
}

.pool-zone-card--reel .pool-zone-card__visual {
  background: linear-gradient(160deg, #3a3020, #1a1810);
}

.pool-zone-card__icon {
  font-size: 1.45rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.pool-zone-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem 0.7rem 0;
  min-width: 0;
}

.pool-zone-card__tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pool-gold);
  font-weight: 700;
}

.pool-zone-card__name {
  font-size: 0.95rem;
  color: #fff;
}

/* Zone interiors */

.pool-zone__hero {
  position: relative;
  height: 6.5rem;
  margin: 0 0 0.85rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pool-zone__hero--wave {
  background:
    linear-gradient(180deg, rgba(36, 90, 120, 0.4) 0%, transparent 40%),
    linear-gradient(180deg, #1a6a7a 45%, #0d3a48 100%);
}

.pool-hero-wave {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 15%;
  height: 2.5rem;
  background: rgba(216, 240, 244, 0.22);
  border-radius: 50%;
  animation: pool-wave-drift 4.5s ease-in-out infinite;
}

.pool-hero-splash {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 4rem;
  height: 4rem;
  margin-left: -2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 65%);
  opacity: 0;
  pointer-events: none;
}

.pool-zone__hero--steam {
  background:
    radial-gradient(ellipse at 40% 70%, rgba(220, 240, 255, 0.25), transparent 50%),
    linear-gradient(180deg, #3a6068, #1a3438);
}

.pool-zone__hero--cabana {
  background:
    repeating-linear-gradient(90deg, rgba(232, 197, 71, 0.35) 0 14px, rgba(20, 28, 36, 0.85) 14px 28px),
    linear-gradient(180deg, #2a3848, #142028);
}

.pool-zone__hero--reef {
  background: linear-gradient(180deg, #0a2838, #041418);
}

.pool-reef-glass {
  position: absolute;
  inset: 12% 18%;
  border: 2px solid rgba(120, 200, 230, 0.35);
  border-radius: 4px;
  background:
    linear-gradient(120deg, rgba(80, 180, 220, 0.12), transparent 40%),
    rgba(10, 40, 50, 0.55);
  box-shadow: inset 0 0 30px rgba(40, 140, 180, 0.25);
  animation: pool-reef-pulse 3.5s ease-in-out infinite;
}

@keyframes pool-reef-pulse {
  0%, 100% { box-shadow: inset 0 0 24px rgba(40, 140, 180, 0.2); }
  50% { box-shadow: inset 0 0 40px rgba(80, 200, 230, 0.35); }
}

.pool-zone__hero--club {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 179, 71, 0.55), transparent 40%),
    linear-gradient(180deg, #4a7a90, #1a4050 60%, #c4a06a 61%, #8a6a3a);
}

.pool-zone__hero--rave {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(57, 197, 207, 0.3), transparent 45%),
    radial-gradient(ellipse at 70% 60%, rgba(232, 197, 71, 0.2), transparent 40%),
    linear-gradient(180deg, #0a1424, #061018);
}

.pool-rave-deck {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18%;
  height: 0.35rem;
  background: linear-gradient(90deg, transparent, var(--pool-gold), var(--pool-water), transparent);
  box-shadow: 0 0 16px rgba(57, 197, 207, 0.45);
  animation: pool-neon-shift 1.8s ease-in-out infinite alternate;
}

.pool-action-block {
  margin: 0 0 1rem;
}

.pool-action-block h3 {
  margin: 0 0 0.25rem;
  color: var(--pool-gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pool-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.pool-action-row--stack {
  flex-direction: column;
}

.pool-action-btn {
  font: inherit;
  font-size: 0.82rem;
  color: var(--pool-text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(57, 197, 207, 0.3);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}

.pool-action-btn:hover:not(:disabled),
.pool-action-btn:focus-visible:not(:disabled) {
  border-color: var(--pool-gold);
  background: rgba(26, 138, 154, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.pool-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pool-action-btn--primary {
  background: linear-gradient(180deg, rgba(26, 138, 154, 0.45), rgba(13, 74, 88, 0.65));
  border-color: rgba(57, 197, 207, 0.55);
  font-weight: 700;
}

.pool-warning {
  color: #f0c040;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.pool-species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
}

.pool-species-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  padding: 0.75rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: rgba(0, 20, 30, 0.55);
  border: 1px solid rgba(80, 180, 220, 0.28);
  border-radius: 4px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.pool-species-card:hover,
.pool-species-card:focus-visible {
  border-color: rgba(120, 210, 240, 0.65);
  box-shadow: 0 0 16px rgba(40, 140, 180, 0.25);
  outline: none;
}

.pool-species-card--shot {
  border-color: rgba(61, 214, 140, 0.45);
  background: rgba(20, 50, 40, 0.45);
}

.pool-species-card__mark {
  color: var(--pool-gold);
  font-size: 0.9rem;
}

.pool-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pool-event-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(232, 197, 71, 0.12);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pool-event-list__item strong {
  color: var(--pool-gold);
}

.pool-event-list--locked li {
  padding: 0.35rem 0;
  color: var(--dim, #5c6773);
}

.pool-event-locked {
  margin-top: 1rem;
}

.pool-rave-pads .pool-action-btn--primary {
  width: 100%;
  margin-bottom: 0.35rem;
  text-align: center;
}

@media (max-width: 640px) {
  .pool-overlay__backdrop {
    padding: 0.4rem;
  }

  .pool-overlay__shell {
    padding: 0.9rem 0.85rem 0.75rem;
  }

  .pool-zone-card__visual {
    flex-basis: 3.25rem;
  }

  .pool-atmosphere__desert {
    opacity: 0.55;
  }

  .pool-palm {
    display: none;
  }
}
