.pool-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 13, 27, 0.16), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(255, 181, 43, 0.24), transparent 32%),
    linear-gradient(180deg, #f7f7f7 0%, #fff2ea 52%, #e5fbff 100%);
}

.pool-app {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

body.pool-reveal-is-open {
  overflow: hidden;
}

.pool-hero {
  position: relative;
  min-height: calc(100svh - 96px);
  display: grid;
  place-items: center;
  padding: 10px 0 26px;
  overflow: hidden;
}

.pool-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pool-bubbles span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.8);
  animation: poolBubble 7s ease-in-out infinite;
}

.pool-bubbles span:nth-child(1) { left: 8%; bottom: 12%; animation-delay: -1s; }
.pool-bubbles span:nth-child(2) { left: 22%; top: 24%; width: 10px; height: 10px; animation-delay: -4s; }
.pool-bubbles span:nth-child(3) { right: 10%; bottom: 24%; width: 24px; height: 24px; animation-delay: -2s; }
.pool-bubbles span:nth-child(4) { right: 24%; top: 16%; width: 12px; height: 12px; animation-delay: -5s; }
.pool-bubbles span:nth-child(5) { left: 50%; bottom: 8%; width: 14px; height: 14px; animation-delay: -3s; }
.pool-bubbles span:nth-child(6) { right: 42%; top: 34%; width: 8px; height: 8px; animation-delay: -6s; }

.pool-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 34px;
  padding: clamp(18px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.14);
  backdrop-filter: blur(22px) saturate(1.2);
}

.pool-card:has(.pool-result[hidden]) {
  width: min(100%, 640px);
}

.pool-card__top {
  display: grid;
  gap: 10px;
}

.pool-card h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 12vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.pool-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.pool-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pool-form label span {
  padding-left: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pool-form select,
.pool-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  padding: 0 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 950;
  outline-color: var(--accent);
}

.pool-submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  background: #f20d1b;
  color: #fff;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 950;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 180ms var(--pop), filter 180ms ease;
}

.pool-submit:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .pool-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
  }
}

.pool-result {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 440px;
  border-radius: 28px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 25%),
    linear-gradient(135deg, #f20d1b, #ff8a00);
  overflow: hidden;
  transition: background 320ms ease, transform 320ms ease;
}

.pool-result[hidden] {
  display: none;
}

.pool-result::before,
.pool-result::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.pool-result::before {
  width: 180px;
  height: 180px;
  left: -62px;
  top: -42px;
}

.pool-result::after {
  width: 110px;
  height: 110px;
  right: -38px;
  bottom: 34px;
}

.pool-card[data-state="perfect"] .pool-result {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.38), transparent 25%),
    linear-gradient(135deg, #f20d1b, #ff8a00 55%, #ffc247);
}

.pool-card[data-state="good"] .pool-result {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34), transparent 25%),
    linear-gradient(135deg, #ff8a00, #15c5d6);
}

.pool-card[data-state="chilly"] .pool-result {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 25%),
    linear-gradient(135deg, #27a7f2, #7b61ff);
}

.pool-card[data-state="frozen"] .pool-result {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 25%),
    linear-gradient(135deg, #5dc9ff, #2e55d3 58%, #1a1a3e);
}

.pool-thermo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.pool-thermo::before {
  content: "";
  position: absolute;
  bottom: 28px;
  width: 28px;
  height: calc(100% - 76px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.pool-thermo::after {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #fff;
}

.pool-thermo span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: var(--pool-level, 74%);
  max-height: calc(100% - 78px);
  border-radius: 999px 999px 12px 12px;
  margin-bottom: 42px;
  background: #f20d1b;
  box-shadow: 0 0 24px rgba(242, 13, 27, 0.55);
  transition: height 420ms var(--pop), background 220ms ease;
}

.pool-card[data-state="chilly"] .pool-thermo span,
.pool-card[data-state="frozen"] .pool-thermo span {
  background: #68d8ff;
  box-shadow: 0 0 24px rgba(104, 216, 255, 0.65);
}

.pool-temperature {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0;
  align-content: start;
}

.pool-temperature > span {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pool-temperature strong {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: -2px;
  color: #fff;
  font-size: clamp(4.4rem, 19vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pool-temperature small {
  margin-top: 0.28em;
  font-size: 0.24em;
  text-transform: uppercase;
}

.pool-scene {
  position: absolute;
  z-index: 2;
  inset: 112px 16px 68px 126px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.22);
}

.pool-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.pool-result p {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 14px;
  left: 144px;
  margin: 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: clamp(1rem, 3.8vw, 1.24rem);
  font-weight: 950;
  line-height: 1.16;
}

.pool-seo {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 20px auto 0;
  padding: 34px 0 52px;
}

.pool-seo h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.96;
}

.pool-seo p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.55;
}

.pool-seo details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.pool-seo summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 14px 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 950;
}

.pool-seo summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: transform 180ms ease;
}

.pool-seo details[open] summary::after {
  transform: rotate(45deg);
}

.pool-seo details p {
  padding: 0 18px 18px;
}

/* SEO 015: contenu enrichi et scannable. */
.pool-seo {
  max-width: 980px;
  gap: 18px;
  padding-bottom: 64px;
}

.pool-seo h2 {
  max-width: 820px;
}

.pool-seo h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.05;
}

.pool-seo strong {
  color: var(--ink);
}

.pool-seo__intro,
.pool-seo__block,
.pool-verdicts,
.pool-usecases,
.pool-faq {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 30px;
  padding: clamp(20px, 5vw, 34px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
}

.pool-seo__intro {
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 13, 27, 0.08), transparent 30%),
    radial-gradient(circle at 95% 12%, rgba(255, 181, 43, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.pool-seo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pool-seo__grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  border-radius: 26px;
  padding: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.pool-seo__grid i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #f20d1b;
  color: #fff;
  font-size: 1.35rem;
}

.pool-verdicts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pool-verdicts__list article {
  border-radius: 22px;
  padding: 18px;
  background: rgba(247, 247, 247, 0.9);
}

.pool-verdicts__list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1;
}

.pool-usecases ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pool-usecases li {
  position: relative;
  border-radius: 20px;
  padding: 15px 16px 15px 44px;
  background: #fff;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.35;
}

.pool-usecases li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f20d1b;
  box-shadow: 0 0 0 6px rgba(242, 13, 27, 0.1);
}

.pool-faq details + details {
  margin-top: 10px;
}

.pool-faq h2,
.pool-usecases h2,
.pool-verdicts h2 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .pool-seo {
    width: min(100%, calc(100vw - 24px));
    margin-top: 14px;
    padding-bottom: 48px;
  }

  .pool-seo__grid,
  .pool-verdicts__list {
    grid-template-columns: 1fr;
  }

  .pool-seo__grid article {
    min-height: 0;
  }
}

.pool-reveal {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.28), transparent 12%),
    radial-gradient(circle at 18% 18%, rgba(255, 194, 71, 0.56), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(24, 197, 214, 0.5), transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(242, 13, 27, 0.64), transparent 34%),
    linear-gradient(145deg, #09070f 0%, #171026 45%, #050306 100%);
  color: #fff;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 260ms ease, transform 420ms var(--pop);
  overflow: hidden;
}

.pool-reveal[hidden] {
  display: none;
}

.pool-reveal.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pool-reveal::before,
.pool-reveal::after {
  content: "";
  position: absolute;
  inset: -34%;
  background:
    conic-gradient(from 0deg, transparent 0 16deg, rgba(255, 255, 255, 0.18) 18deg 24deg, transparent 26deg 54deg, rgba(242, 13, 27, 0.22) 58deg 66deg, transparent 70deg 100deg);
  animation: poolRevealSweep 11s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.pool-reveal::after {
  filter: blur(24px);
  opacity: 0.58;
  animation-duration: 17s;
  animation-direction: reverse;
}

.pool-reveal__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pool-reveal__fx span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.95);
  animation: poolRevealSpark 2.8s ease-in-out infinite;
}

.pool-reveal__fx span:nth-child(1) { left: 12%; top: 18%; background: #ffc247; animation-delay: -0.4s; }
.pool-reveal__fx span:nth-child(2) { left: 82%; top: 22%; width: 18px; height: 18px; animation-delay: -1.5s; }
.pool-reveal__fx span:nth-child(3) { left: 22%; bottom: 18%; background: #18c5d6; animation-delay: -2.2s; }
.pool-reveal__fx span:nth-child(4) { right: 18%; bottom: 24%; background: #f20d1b; animation-delay: -0.9s; }
.pool-reveal__fx span:nth-child(5) { left: 50%; top: 9%; width: 7px; height: 7px; animation-delay: -1.9s; }
.pool-reveal__fx span:nth-child(6) { right: 8%; top: 58%; width: 14px; height: 14px; background: #ffc247; animation-delay: -2.5s; }

.pool-reveal__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  min-height: min(760px, calc(100svh - 36px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  padding: clamp(16px, 4vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(6, 5, 10, 0.68);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(1.35);
  overflow: hidden;
}

.pool-reveal__close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.pool-reveal__kicker {
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pool-reveal__thermo {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(78vw, 350px);
  min-height: min(62svh, 610px);
  margin: 0 auto;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.34));
}

.pool-reveal__scale {
  position: absolute;
  z-index: 5;
  top: 22px;
  bottom: 70px;
  left: calc(50% + 82px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 5vw, 1.45rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.pool-reveal__scale li {
  position: relative;
  min-width: 3ch;
}

.pool-reveal__scale li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-50%);
}

.pool-reveal__ice {
  position: absolute;
  z-index: 0;
  inset: -4% -18%;
  pointer-events: none;
}

.pool-reveal__ice b {
  position: absolute;
  display: block;
  width: clamp(38px, 10vw, 72px);
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(200, 246, 255, 0.7) 48%, rgba(80, 194, 255, 0.42)),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 9px 9px 12px rgba(255, 255, 255, 0.78),
    inset -10px -12px 16px rgba(38, 126, 190, 0.22),
    0 12px 28px rgba(80, 194, 255, 0.3);
  transform: rotate(var(--ice-rotate, -10deg));
  opacity: 0.72;
  animation: poolIceFloat 3.8s ease-in-out infinite;
}

.pool-reveal__ice b::before {
  content: "";
  position: absolute;
  inset: 9px auto auto 10px;
  width: 42%;
  height: 18%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-28deg);
}

.pool-reveal__ice b:nth-child(1) { --ice-rotate: -16deg; left: 2%; top: 10%; animation-delay: -0.6s; }
.pool-reveal__ice b:nth-child(2) { --ice-rotate: 11deg; right: 3%; top: 18%; width: clamp(32px, 8vw, 58px); animation-delay: -1.8s; }
.pool-reveal__ice b:nth-child(3) { --ice-rotate: 18deg; left: -2%; bottom: 24%; width: clamp(42px, 11vw, 78px); animation-delay: -2.6s; }
.pool-reveal__ice b:nth-child(4) { --ice-rotate: -8deg; right: -4%; bottom: 18%; animation-delay: -1.1s; }
.pool-reveal__ice b:nth-child(5) { --ice-rotate: 24deg; left: 42%; top: -2%; width: clamp(26px, 7vw, 46px); animation-delay: -3.1s; }

.pool-reveal__ice em {
  position: absolute;
  display: block;
  width: 11px;
  height: 20px;
  border-radius: 999px;
  background: rgba(157, 232, 255, 0.82);
  box-shadow: 0 0 18px rgba(157, 232, 255, 0.58);
  opacity: 0;
  transform: translateY(-10px);
  animation: poolIceDrip 1.5s ease-in infinite;
}

.pool-reveal__ice em:nth-of-type(1) { left: 16%; top: 34%; animation-delay: -0.2s; }
.pool-reveal__ice em:nth-of-type(2) { right: 20%; top: 42%; animation-delay: -0.8s; }
.pool-reveal__ice em:nth-of-type(3) { left: 55%; bottom: 24%; animation-delay: -1.2s; }

.pool-reveal[data-state="perfect"] .pool-reveal__ice b,
.pool-reveal[data-state="good"] .pool-reveal__ice b {
  opacity: 0.5;
  filter: blur(0.4px);
  animation-name: poolIceMelt;
}

.pool-reveal[data-state="perfect"] .pool-reveal__ice em,
.pool-reveal[data-state="good"] .pool-reveal__ice em {
  opacity: 0.82;
}

.pool-reveal[data-state="chilly"] .pool-reveal__ice b,
.pool-reveal[data-state="frozen"] .pool-reveal__ice b {
  opacity: 0.95;
  animation-duration: 2.7s;
}

.pool-reveal[data-state="frozen"] .pool-reveal__ice::before {
  content: "";
  position: absolute;
  inset: 10% -18% 8%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 80% 46%, rgba(157, 232, 255, 0.56), transparent 20%),
    linear-gradient(180deg, rgba(188, 242, 255, 0.22), rgba(65, 167, 255, 0.12));
  filter: blur(18px);
  animation: poolFrostPulse 2.4s ease-in-out infinite;
}

.pool-reveal__thermo > span {
  position: absolute;
  z-index: 1;
  bottom: 34px;
  width: 150px;
  height: calc(100% - 50px);
  border-radius: 54px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.54) 24%, rgba(255, 255, 255, 0.9) 54%, rgba(255, 255, 255, 0.42) 100%),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.3),
    inset 18px 0 24px rgba(255, 255, 255, 0.36),
    inset -12px 0 18px rgba(17, 17, 17, 0.1),
    0 18px 60px rgba(255, 255, 255, 0.24);
}

.pool-reveal__thermo > span::before {
  content: "";
  position: absolute;
  inset: 22px auto 28px 20px;
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.12));
  filter: blur(0.2px);
}

.pool-reveal__thermo > span::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -34px;
  width: 28px;
  height: calc(100% - 60px);
  opacity: 0.72;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0 4px, transparent 4px 24px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}

.pool-reveal__thermo::after {
  content: "";
  position: absolute;
  z-index: 3;
  bottom: 0;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.96), transparent 20%),
    radial-gradient(circle at 50% 55%, rgba(242, 13, 27, 0.96), rgba(242, 13, 27, 0.9) 40%, rgba(177, 0, 22, 0.95) 70%),
    #fff;
  border: 8px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 16px 20px 28px rgba(255, 255, 255, 0.28),
    inset -18px -22px 32px rgba(0, 0, 0, 0.22),
    0 0 54px rgba(242, 13, 27, 0.42);
}

.pool-reveal__thermo i {
  position: absolute;
  z-index: 4;
  bottom: 64px;
  width: 104px;
  height: calc(100% - 90px);
  border-radius: 44px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62) 22%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 18% 82%, rgba(255, 255, 255, 0.22));
  pointer-events: none;
}

.pool-reveal__thermo strong {
  position: absolute;
  z-index: 2;
  bottom: 42px;
  width: 104px;
  height: var(--reveal-level, 22%);
  min-height: 12px;
  max-height: calc(100% - 74px);
  border-radius: 42px 42px 26px 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, #ffcf4b, #ff8a00 56%, #f20d1b);
  box-shadow:
    inset 16px 0 18px rgba(255, 255, 255, 0.34),
    inset -16px 0 18px rgba(84, 0, 10, 0.24),
    0 0 46px rgba(242, 13, 27, 0.86);
  transition: height 90ms ease-out, background 260ms ease;
}

.pool-reveal[data-heat="cold"] .pool-reveal__thermo strong {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 22%),
    linear-gradient(180deg, #dffbff, #58cfff 58%, #2558ff);
  box-shadow:
    inset 16px 0 18px rgba(255, 255, 255, 0.34),
    inset -16px 0 18px rgba(0, 52, 128, 0.22),
    0 0 46px rgba(93, 201, 255, 0.9);
}

.pool-reveal[data-heat="warm"] .pool-reveal__thermo strong {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 22%),
    linear-gradient(180deg, #fff2a7, #ffb22e 58%, #ff7b00);
  box-shadow:
    inset 16px 0 18px rgba(255, 255, 255, 0.34),
    inset -16px 0 18px rgba(100, 42, 0, 0.2),
    0 0 46px rgba(255, 138, 0, 0.84);
}

.pool-reveal[data-heat="hot"] .pool-reveal__thermo strong {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, #ffcf4b, #ff4a1f 42%, #c70016);
}

.pool-reveal[data-state="chilly"] .pool-reveal__thermo::after,
.pool-reveal[data-state="frozen"] .pool-reveal__thermo::after {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), transparent 20%),
    radial-gradient(circle at 50% 55%, rgba(104, 216, 255, 0.96), rgba(67, 191, 255, 0.92) 42%, rgba(37, 88, 255, 0.95) 72%),
    #fff;
  box-shadow:
    inset 16px 20px 28px rgba(255, 255, 255, 0.28),
    inset -18px -22px 32px rgba(0, 0, 0, 0.22),
    0 0 54px rgba(93, 201, 255, 0.52);
}

.pool-reveal__copy {
  display: grid;
  gap: 0;
  text-align: center;
}

.pool-reveal__copy strong,
.pool-reveal__copy p {
  display: none;
}

.pool-reveal__copy span {
  opacity: 0;
  transform: translateY(18px) scale(0.86) rotate(-1.5deg);
}

.pool-reveal.show-verdict .pool-reveal__copy span {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  transition: opacity 260ms ease, transform 640ms var(--pop);
}

.pool-reveal__copy span {
  color: #fff;
  font-size: clamp(3.6rem, 18vw, 7.6rem);
  font-weight: 950;
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow:
    0 8px 0 rgba(0, 0, 0, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.38);
}

.pool-reveal[data-state="perfect"] .pool-reveal__copy span,
.pool-reveal[data-state="good"] .pool-reveal__copy span {
  color: #fff2a7;
}

.pool-reveal[data-state="chilly"] .pool-reveal__copy span,
.pool-reveal[data-state="frozen"] .pool-reveal__copy span {
  color: #d9fbff;
}

.pool-reveal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pool-reveal__actions button {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.pool-reveal__actions button:first-child {
  background: #f20d1b;
}

.pool-reveal__actions button:last-child {
  background: #111;
}

@keyframes poolBubble {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.46; }
  50% { transform: translate3d(18px, -44px, 0) scale(1.18); opacity: 1; }
}

@keyframes poolRevealSweep {
  to { transform: rotate(1turn); }
}

@keyframes poolRevealSpark {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.72); opacity: 0.42; }
  45% { transform: translate3d(16px, -26px, 0) scale(1.4); opacity: 1; }
  72% { transform: translate3d(-10px, 16px, 0) scale(0.92); opacity: 0.68; }
}

@keyframes poolIceFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--ice-rotate, -10deg)); }
  42% { transform: translate3d(10px, -16px, 0) rotate(calc(var(--ice-rotate, -10deg) + 8deg)); }
  74% { transform: translate3d(-8px, 10px, 0) rotate(calc(var(--ice-rotate, -10deg) - 6deg)); }
}

@keyframes poolIceMelt {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--ice-rotate, -10deg)) scale(0.94); opacity: 0.46; }
  45% { transform: translate3d(4px, 14px, 0) rotate(calc(var(--ice-rotate, -10deg) + 5deg)) scale(0.72, 0.58); opacity: 0.22; }
  72% { transform: translate3d(-3px, 8px, 0) rotate(calc(var(--ice-rotate, -10deg) - 4deg)) scale(0.82, 0.7); opacity: 0.3; }
}

@keyframes poolIceDrip {
  0% { transform: translateY(-8px) scaleY(0.7); opacity: 0; }
  28% { opacity: 0.82; }
  100% { transform: translateY(34px) scaleY(1.25); opacity: 0; }
}

@keyframes poolFrostPulse {
  0%, 100% { opacity: 0.56; transform: scale(0.96); }
  50% { opacity: 0.92; transform: scale(1.05); }
}

@media (max-width: 760px) {
  .pool-page .site-header {
    padding-top: 2px;
  }

  .pool-hero {
    min-height: calc(100svh - 80px);
    align-items: start;
    padding-top: 4px;
  }

  .pool-card {
    border-radius: 28px;
    padding: 14px;
  }

  .pool-card h1 {
    max-width: 8.6ch;
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .pool-form {
    grid-template-columns: 1fr 1fr;
  }

  .pool-form label:first-child {
    grid-column: 1 / -1;
  }

  .pool-form select,
  .pool-form input {
    min-height: 54px;
  }

  .pool-submit {
    min-height: 58px;
  }

  .pool-result {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: min(56svh, 500px);
    padding: 12px;
  }

  .pool-temperature strong {
    font-size: clamp(4.6rem, 24vw, 7rem);
  }

  .pool-scene {
    inset: 126px 12px 76px 92px;
    border-radius: 22px;
  }

  .pool-result p {
    right: 12px;
    bottom: 12px;
    left: 96px;
    padding: 10px 12px;
  }
}

@media (max-width: 430px) {
  .pool-card__top {
    gap: 8px;
  }

  .pool-form {
    gap: 8px;
  }

  .pool-result {
    min-height: 380px;
  }

  .pool-temperature > span {
    font-size: 0.68rem;
  }

  .pool-scene {
    inset: 120px 10px 80px 76px;
  }

  .pool-result p {
    left: 78px;
  }

  .pool-reveal__panel {
    min-height: calc(100svh - 24px);
    border-radius: 28px;
  }

  .pool-reveal__thermo {
    width: min(82vw, 315px);
    min-height: min(56svh, 500px);
  }

  .pool-reveal__scale {
    left: calc(50% + 70px);
    top: 22px;
    bottom: 58px;
  }

  .pool-reveal__scale li::before {
    width: 24px;
  }

  .pool-reveal__actions button {
    min-height: 54px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pool-bubbles span,
  .pool-scene,
  .pool-reveal,
  .pool-reveal::before,
  .pool-reveal::after,
  .pool-reveal__fx span,
  .pool-reveal__ice,
  .pool-reveal__ice b,
  .pool-reveal__ice em,
  .pool-reveal__copy strong,
  .pool-reveal__copy span,
  .pool-reveal__copy p {
    animation: none !important;
    transition: none !important;
  }
}

/* Reveal 010: machine de verdict, remplace le thermometre. */
.pool-reveal__machine {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  width: min(86vw, 440px);
  min-height: min(58svh, 560px);
  margin: 0 auto;
  perspective: 900px;
}

.pool-reveal__choice {
  position: absolute;
  inset: 5% 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 38px;
  padding: 24px;
  opacity: 0.32;
  transform: translateY(28px) scale(0.86) rotateX(8deg);
  filter: blur(2px) saturate(0.82);
  transition: opacity 180ms ease, transform 220ms var(--pop), filter 180ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.pool-reveal__choice::before,
.pool-reveal__choice::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pool-reveal__choice::before {
  inset: -18%;
  opacity: 0.56;
  animation: poolChoiceDrift 5s ease-in-out infinite;
}

.pool-reveal__choice::after {
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.34) 47%, transparent 58%);
  transform: translateX(-120%);
}

.pool-reveal__choice i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(106px, 31vw, 170px);
  height: clamp(106px, 31vw, 170px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: clamp(4.4rem, 17vw, 8rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.pool-reveal__choice strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(3.8rem, 17vw, 7.8rem);
  font-weight: 950;
  line-height: 0.78;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 10px 0 rgba(0, 0, 0, 0.16), 0 24px 54px rgba(0, 0, 0, 0.42);
}

.pool-reveal__choice--pool {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.5), transparent 22%),
    linear-gradient(145deg, rgba(242, 13, 27, 0.96), rgba(255, 138, 0, 0.94) 55%, rgba(255, 194, 71, 0.9));
}

.pool-reveal__choice--pool::before {
  background:
    radial-gradient(circle at 22% 68%, rgba(255, 255, 255, 0.5) 0 8%, transparent 9%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.42) 0 6%, transparent 7%),
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(255, 255, 255, 0.16) 22px 30px);
}

.pool-reveal__choice--pool i {
  color: #f20d1b;
}

.pool-reveal__choice--ice {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.68), transparent 24%),
    linear-gradient(145deg, rgba(0, 162, 255, 0.96), rgba(46, 85, 211, 0.98) 62%, rgba(13, 18, 69, 0.96));
}

.pool-reveal__choice--ice::before {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.62) 0 7%, transparent 8%),
    radial-gradient(circle at 80% 72%, rgba(217, 251, 255, 0.46) 0 9%, transparent 10%),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(217, 251, 255, 0.18) 20px 28px);
}

.pool-reveal__choice--ice i {
  color: #2e55d3;
}

.pool-reveal__selector {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(92%, 420px);
  height: min(38%, 190px);
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.46), inset 0 0 28px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  animation: poolSelectorPulse 1.1s ease-in-out infinite;
}

.pool-reveal.is-pool .pool-reveal__choice--pool,
.pool-reveal.is-ice .pool-reveal__choice--ice {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  filter: blur(0) saturate(1.16);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.pool-reveal.is-pool .pool-reveal__choice--ice {
  opacity: 0.18;
  transform: translateY(-42px) scale(0.72) rotateX(-12deg);
}

.pool-reveal.is-ice .pool-reveal__choice--pool {
  opacity: 0.18;
  transform: translateY(42px) scale(0.72) rotateX(12deg);
}

.pool-reveal.final-pool .pool-reveal__choice--pool,
.pool-reveal.final-ice .pool-reveal__choice--ice {
  animation: poolFinalPop 720ms var(--pop) both;
}

.pool-reveal.final-pool .pool-reveal__choice--pool::after,
.pool-reveal.final-ice .pool-reveal__choice--ice::after {
  animation: poolChoiceShine 760ms ease-out 1;
}

.pool-reveal__thermo,
.pool-reveal__scale,
.pool-reveal__ice {
  display: none;
}

@keyframes poolChoiceDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(16px, -12px, 0) rotate(4deg); }
}

@keyframes poolSelectorPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes poolFinalPop {
  0% { transform: scale(0.94); }
  48% { transform: scale(1.08) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes poolChoiceShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@media (max-width: 430px) {
  .pool-reveal__machine {
    width: min(90vw, 390px);
    min-height: min(56svh, 510px);
  }

  .pool-reveal__selector {
    height: min(35%, 160px);
  }
}

/* Reveal 012: tirage central visible sur Safari. */
.pool-reveal {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 194, 71, 0.5), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(44, 210, 255, 0.48), transparent 28%),
    radial-gradient(circle at 50% 86%, rgba(242, 13, 27, 0.6), transparent 36%),
    linear-gradient(145deg, #07060b 0%, #171022 48%, #050306 100%);
}

.pool-reveal.final-pool {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 210, 92, 0.68), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(24, 197, 214, 0.52), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(242, 13, 27, 0.68), transparent 36%),
    linear-gradient(145deg, #130910 0%, #341612 48%, #0d0805 100%);
}

.pool-reveal.final-ice {
  background:
    radial-gradient(circle at 16% 18%, rgba(218, 251, 255, 0.68), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(67, 191, 255, 0.58), transparent 30%),
    radial-gradient(circle at 52% 92%, rgba(46, 85, 211, 0.56), transparent 36%),
    linear-gradient(145deg, #040713 0%, #091b38 48%, #02040b 100%);
}

.pool-reveal__panel {
  grid-template-rows: auto minmax(310px, 1fr) auto auto;
  min-height: min(760px, calc(100svh - 28px));
  gap: 12px;
}

.pool-reveal__machine {
  isolation: isolate;
  width: min(88vw, 440px);
  min-height: min(48svh, 430px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04)),
    rgba(4, 4, 8, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 22px 60px rgba(255, 255, 255, 0.07),
    0 30px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.pool-reveal__machine--tick .pool-reveal__reel-item {
  animation: poolCardTick 360ms var(--pop) both;
}

.pool-reveal__glow {
  position: absolute;
  z-index: 0;
  inset: -18%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.34), transparent 16%),
    conic-gradient(from 18deg, rgba(255, 255, 255, 0.12), transparent 20%, rgba(242, 13, 27, 0.24), transparent 48%, rgba(24, 197, 214, 0.24), transparent 72%, rgba(255, 194, 71, 0.22), transparent);
  filter: blur(10px);
  opacity: 0.82;
  animation: poolRevealSweep 9s linear infinite;
}

.pool-reveal__reel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 18px;
}

.pool-reveal.is-spinning .pool-reveal__reel {
  transition: none;
}

.pool-reveal__reel-item {
  display: grid;
  place-items: center;
  gap: 18px;
  width: min(100%, 360px);
  min-height: min(34svh, 250px);
  border-radius: 34px;
  padding: 22px;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 28px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transform: translateZ(0);
}

.pool-reveal__reel-item i {
  display: grid;
  place-items: center;
  width: clamp(86px, 24vw, 128px);
  height: clamp(86px, 24vw, 128px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  color: #f20d1b;
  font-size: clamp(3.2rem, 13vw, 5.8rem);
}

.pool-reveal__reel-item strong {
  min-width: 0;
  font-size: clamp(3.25rem, 15vw, 6.4rem);
  font-weight: 950;
  line-height: 0.78;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.pool-reveal__reel-item--pool {
  background: linear-gradient(135deg, #f20d1b, #ff7b00);
}

.pool-reveal__reel-item--warm {
  background: linear-gradient(135deg, #ffb000, #ff5a1f);
}

.pool-reveal__reel-item--ice {
  background: linear-gradient(135deg, #1fc8ff, #2857dd);
}

.pool-reveal__selector {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: calc(100% - 28px);
  height: min(38svh, 282px);
  border: 5px solid rgba(255, 255, 255, 0.96);
  border-radius: 38px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.08),
    0 0 38px rgba(255, 255, 255, 0.54),
    inset 0 0 28px rgba(255, 255, 255, 0.22);
}

.pool-reveal__selector span {
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pool-reveal.final-pool .pool-reveal__selector {
  border-color: #fff6b6;
  box-shadow:
    0 0 0 999px rgba(255, 97, 0, 0.1),
    0 0 56px rgba(255, 194, 71, 0.74),
    inset 0 0 30px rgba(255, 242, 167, 0.32);
}

.pool-reveal.final-ice .pool-reveal__selector {
  border-color: #d9fbff;
  box-shadow:
    0 0 0 999px rgba(18, 104, 206, 0.16),
    0 0 58px rgba(92, 221, 255, 0.72),
    inset 0 0 30px rgba(217, 251, 255, 0.32);
}

.pool-reveal__copy {
  min-height: 120px;
  align-content: center;
}

.pool-reveal.show-verdict .pool-reveal__copy span {
  animation: poolVerdictPunch 980ms var(--pop) both;
}

.pool-reveal__actions {
  position: relative;
  z-index: 5;
}

@keyframes poolVerdictPunch {
  0% { opacity: 0; transform: translateY(24px) scale(0.78) rotate(-4deg); filter: blur(10px); }
  48% { opacity: 1; transform: translateY(-4px) scale(1.12) rotate(1.5deg); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); filter: blur(0); }
}

@keyframes poolCardTick {
  0% { opacity: 0; transform: translateY(16px) scale(0.86) rotate(-1.5deg); filter: blur(8px); }
  58% { opacity: 1; transform: translateY(-3px) scale(1.04) rotate(0.8deg); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); filter: blur(0); }
}

@media (max-width: 430px) {
  .pool-reveal {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .pool-reveal__panel {
    min-height: calc(100svh - 20px);
    padding: 14px;
    gap: 9px;
  }

  .pool-reveal__machine {
    min-height: min(45svh, 382px);
  }

  .pool-reveal__reel {
    padding: 12px;
  }

  .pool-reveal__reel-item {
    min-height: min(32svh, 230px);
    border-radius: 28px;
  }

  .pool-reveal__reel-item i {
    width: clamp(78px, 23vw, 104px);
    height: clamp(78px, 23vw, 104px);
    border-radius: 28px;
  }

  .pool-reveal__selector {
    height: min(36svh, 260px);
  }

  .pool-reveal__copy {
    min-height: 98px;
  }
}

/* Reveal 013: chute de glaçon depuis le ciel. */
.pool-reveal {
  padding: 0;
  background: #071322;
}

.pool-reveal::before,
.pool-reveal::after {
  z-index: 1;
  opacity: 0.42;
}

.pool-reveal__fx {
  z-index: 3;
}

.pool-reveal__panel {
  position: relative;
  width: 100%;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.pool-reveal__close {
  z-index: 8;
}

.pool-reveal__kicker {
  position: relative;
  z-index: 7;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.pool-reveal__machine {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  margin: 0;
  border-radius: 0;
  background: #77c9ff;
  box-shadow: none;
  perspective: none;
}

.pool-reveal__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.pool-reveal__scene--sky {
  opacity: 1;
  transform: scale(1);
}

.pool-reveal.is-spinning .pool-reveal__scene--sky {
  animation: poolSkyDive 5.2s cubic-bezier(0.14, 0.76, 0.16, 1) both;
}

.pool-reveal.final-pool .pool-reveal__scene--sky,
.pool-reveal.final-ice .pool-reveal__scene--sky {
  opacity: 0;
}

.pool-reveal.final-pool .pool-reveal__scene--hot,
.pool-reveal.final-ice .pool-reveal__scene--cold {
  opacity: 1;
  transform: scale(1);
}

.pool-reveal__iceberg {
  position: absolute;
  z-index: 4;
  top: -42vh;
  left: 50%;
  width: clamp(154px, 42vw, 280px);
  aspect-ratio: 1;
  transform: translate3d(-50%, 0, 0) rotate(-10deg) scale(0.55);
  filter:
    drop-shadow(0 30px 48px rgba(0, 68, 140, 0.36))
    drop-shadow(0 0 42px rgba(210, 250, 255, 0.72));
  opacity: 0;
}

.pool-reveal__iceberg span {
  position: absolute;
  inset: 6%;
  display: block;
  border-radius: 30% 22% 34% 24%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(198, 246, 255, 0.76) 38%, rgba(66, 196, 255, 0.58) 72%, rgba(15, 98, 220, 0.52)),
    rgba(216, 250, 255, 0.9);
  clip-path: polygon(18% 8%, 76% 2%, 98% 36%, 76% 96%, 20% 88%, 0 44%);
  box-shadow:
    inset 22px 20px 30px rgba(255, 255, 255, 0.74),
    inset -26px -22px 36px rgba(3, 69, 150, 0.28);
}

.pool-reveal__iceberg span:nth-child(2) {
  inset: 23% 14% auto auto;
  width: 38%;
  height: 20%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  clip-path: none;
  transform: rotate(-24deg);
}

.pool-reveal__iceberg span:nth-child(3) {
  inset: auto auto 18% 15%;
  width: 42%;
  height: 15%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  clip-path: none;
  transform: rotate(28deg);
}

.pool-reveal.is-spinning .pool-reveal__iceberg {
  opacity: 1;
  animation: poolIceDrop 5s cubic-bezier(0.08, 0.72, 0.12, 1) both;
}

.pool-reveal.final-pool .pool-reveal__iceberg {
  animation: poolIceMeltFinal 900ms ease-out both;
}

.pool-reveal.final-ice .pool-reveal__iceberg {
  animation: poolIceCrashFinal 780ms var(--pop) both;
}

.pool-reveal__impact {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18%;
  width: min(80vw, 520px);
  height: 170px;
  transform: translateX(-50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}

.pool-reveal__impact span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 999px 999px 46% 46%;
  background: rgba(235, 254, 255, 0.88);
  transform-origin: 50% 100%;
  filter: blur(0.4px);
}

.pool-reveal__impact span:nth-child(1) { transform: translateX(-50%) rotate(-36deg); }
.pool-reveal__impact span:nth-child(2) { transform: translateX(-50%) rotate(-12deg); }
.pool-reveal__impact span:nth-child(3) { transform: translateX(-50%) rotate(15deg); }
.pool-reveal__impact span:nth-child(4) { transform: translateX(-50%) rotate(42deg); }

.pool-reveal.is-impact .pool-reveal__impact {
  animation: poolSplash 900ms ease-out both;
}

.pool-reveal.final-pool .pool-reveal__impact span {
  background: rgba(255, 246, 178, 0.82);
}

.pool-reveal.final-ice .pool-reveal__impact span {
  background: rgba(208, 248, 255, 0.92);
}

.pool-reveal__copy {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: calc(110px + env(safe-area-inset-bottom));
  left: 16px;
  min-height: 0;
  border-radius: 34px;
  padding: 16px 14px 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(1.28);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  pointer-events: none;
  transition: opacity 260ms ease, transform 560ms var(--pop);
}

.pool-reveal.show-verdict .pool-reveal__copy {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pool-reveal__copy span {
  color: #111;
  font-size: clamp(3.2rem, 16vw, 6.6rem);
  text-shadow: none;
}

.pool-reveal[data-state="perfect"] .pool-reveal__copy span,
.pool-reveal[data-state="good"] .pool-reveal__copy span {
  color: #f20d1b;
}

.pool-reveal[data-state="chilly"] .pool-reveal__copy span,
.pool-reveal[data-state="frozen"] .pool-reveal__copy span {
  color: #1268ce;
}

.pool-reveal__actions {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 16px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 260ms ease 160ms, transform 520ms var(--pop) 160ms;
}

.pool-reveal.show-verdict .pool-reveal__actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pool-reveal__actions button {
  box-shadow: none;
}

@keyframes poolSkyDive {
  0% { transform: scale(1) translateY(0); filter: saturate(1.02); }
  58% { transform: scale(1.16) translateY(-3.5%); filter: saturate(1.12) blur(0); }
  82% { transform: scale(1.32) translateY(-7%); filter: saturate(1.2) blur(1px); }
  100% { transform: scale(1.42) translateY(-10%); filter: saturate(1.22) blur(2px); }
}

@keyframes poolIceDrop {
  0% { transform: translate3d(-50%, -16vh, 0) rotate(-18deg) scale(0.22); opacity: 0; }
  10% { opacity: 1; }
  36% { transform: translate3d(-50%, 12vh, 0) rotate(32deg) scale(0.52); }
  62% { transform: translate3d(-50%, 38vh, 0) rotate(-28deg) scale(0.88); }
  82% { transform: translate3d(-50%, 58vh, 0) rotate(16deg) scale(1.12); }
  100% { transform: translate3d(-50%, 69vh, 0) rotate(-7deg) scale(1.22); opacity: 1; }
}

@keyframes poolIceMeltFinal {
  0% { transform: translate3d(-50%, 69vh, 0) rotate(-7deg) scale(1.22); opacity: 1; filter: drop-shadow(0 0 42px rgba(210, 250, 255, 0.72)); }
  42% { transform: translate3d(-50%, 70vh, 0) rotate(5deg) scale(1.05, 0.72); opacity: 0.72; filter: drop-shadow(0 0 70px rgba(255, 210, 92, 0.72)); }
  100% { transform: translate3d(-50%, 76vh, 0) rotate(0deg) scale(1.5, 0.08); opacity: 0; filter: blur(12px); }
}

@keyframes poolIceCrashFinal {
  0% { transform: translate3d(-50%, 69vh, 0) rotate(-7deg) scale(1.22); opacity: 1; }
  52% { transform: translate3d(-50%, 70vh, 0) rotate(8deg) scale(1.34, 0.86); opacity: 1; }
  100% { transform: translate3d(-50%, 66vh, 0) rotate(-3deg) scale(0.98); opacity: 0.18; filter: blur(2px); }
}

@keyframes poolSplash {
  0% { opacity: 0; transform: translateX(-50%) scale(0.12); }
  24% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.54) translateY(-34px); }
}

@media (max-width: 430px) {
  .pool-reveal__panel {
    min-height: 100svh;
    border-radius: 0;
  }

  .pool-reveal__machine {
    min-height: 100%;
  }

  .pool-reveal__copy {
    bottom: calc(104px + env(safe-area-inset-bottom));
    padding: 14px 12px 12px;
  }

  .pool-reveal__actions {
    gap: 8px;
  }
}
