/* D'Sara Pool — the public pool page. A sunny sky, a pool you can splash, pool-toy price cards. */
:root {
  --sky1: #7dd3fc; --sky2: #bae6fd; --sky3: #f0f9ff;
  --sea1: #0ea5e9; --sea2: #0284c7; --sea3: #075985; --deep: #0c4a6e;
  --sun: #fbbf24; --sun2: #f59e0b; --pink: #fb7185; --green: #34d399; --yellow: #fde047;
  --ink: #0c4a6e; --ink2: #155e75; --muted: #4b7a8c;
  --card: #ffffff; --bg: #f0fbff;
  --r: 26px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fun: 'Fredoka', 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-lang="ms"] .en, html[data-lang="en"] .ms { display: none; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.grow { flex: 1; min-width: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--fun); text-decoration: none; border: 0; cursor: pointer;
  padding: 16px 26px; border-radius: 999px; color: #fff; transition: transform .15s, box-shadow .15s; position: relative; }
.btn .emo { font-size: 22px; }
.btn:active { transform: translateY(3px) scale(.98); }
.btn-sun { background: linear-gradient(180deg, #fcd34d, #f59e0b); color: #78350f; box-shadow: 0 6px 0 #b45309, 0 12px 24px rgba(180,83,9,.25); }
.btn-sun:active { box-shadow: 0 2px 0 #b45309; }
.btn-sea { background: linear-gradient(180deg, #22d3ee, #0891b2); box-shadow: 0 6px 0 #0e7490, 0 12px 24px rgba(8,145,178,.3); }
.btn-sea:active { box-shadow: 0 2px 0 #0e7490; }
.btn.big { padding: 18px 28px; font-size: 19px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ── Scene: sky ──────────────────────────────────────────────────────── */
.scene { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 45%, var(--sky3) 62%); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; top: 34px; right: 8%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff7c2, var(--sun) 55%, var(--sun2)); box-shadow: 0 0 60px 20px rgba(251,191,36,.45); animation: sunPulse 5s ease-in-out infinite; }
.sun i { position: absolute; inset: -26px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(251,191,36,.55) 0 8deg, transparent 8deg 30deg); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 70%, transparent 72%);
  mask: radial-gradient(circle, transparent 58%, #000 60%, #000 70%, transparent 72%); animation: spin 30s linear infinite; }
.cloud { position: absolute; background: #fff; border-radius: 100px; opacity: .95; filter: drop-shadow(0 8px 10px rgba(14,116,144,.12)); }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 150px; height: 46px; top: 90px; left: -160px; animation: drift 48s linear infinite; }
.c1::before { width: 70px; height: 70px; top: -36px; left: 24px; } .c1::after { width: 50px; height: 50px; top: -22px; left: 80px; }
.c2 { width: 110px; height: 36px; top: 180px; left: -120px; animation: drift 62s linear infinite -20s; transform: scale(.8); }
.c2::before { width: 54px; height: 54px; top: -28px; left: 16px; } .c2::after { width: 40px; height: 40px; top: -18px; left: 58px; }
.c3 { width: 190px; height: 54px; top: 40px; left: -200px; animation: drift 80s linear infinite -50s; opacity: .8; }
.c3::before { width: 86px; height: 86px; top: -46px; left: 30px; } .c3::after { width: 64px; height: 64px; top: -30px; left: 104px; }
.gull { position: absolute; width: 34px; fill: none; stroke: #0c4a6e; stroke-width: 2.4; stroke-linecap: round; opacity: .55; }
.g1 { top: 150px; left: 20%; animation: fly 9s ease-in-out infinite; }
.g2 { top: 120px; left: 26%; width: 24px; animation: fly 9s ease-in-out infinite -2s; }

/* ── Top nav ─────────────────────────────────────────────────────────── */
.topnav { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 16px max(16px, env(safe-area-inset-left)); max-width: 1200px; width: 100%; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 22px var(--fun); text-decoration: none; color: var(--deep); }
.logo b { font-weight: 700; }
.logo-ring { width: 34px; height: 34px; border-radius: 50%; border: 8px solid var(--pink); position: relative; box-shadow: 0 3px 0 rgba(0,0,0,.08); animation: bob 3s ease-in-out infinite; }
.logo-ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 8px solid transparent; border-top-color: #fff; border-bottom-color: #fff; }
.lang { font: 700 14px var(--fun); background: rgba(255,255,255,.75); color: var(--deep); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; box-shadow: 0 3px 0 rgba(12,74,110,.15); }

/* ── Hero text ───────────────────────────────────────────────────────── */
.hero { position: relative; z-index: 3; text-align: center; padding: 4vh 16px 0; max-width: 820px; margin: 0 auto; }
.status { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 15px var(--fun); box-shadow: 0 4px 0 rgba(12,74,110,.12); }
.status .dot { width: 11px; height: 11px; border-radius: 50%; background: #94a3b8; }
.status.is-open .dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 1.8s infinite; }
.status.is-closed .dot { background: #f43f5e; }
.title { font: 700 clamp(56px, 13vw, 128px)/1 var(--fun); margin: 18px 0 10px; color: #fff; letter-spacing: 1px;
  text-shadow: 0 4px 0 var(--sea2), 0 8px 0 var(--sea3), 0 14px 24px rgba(7,89,133,.35); -webkit-text-stroke: 2px var(--sea2); }
.bounce { display: inline-block; animation: hop 2.6s ease-in-out infinite; animation-delay: calc(var(--d) * .09s); }
.lead { font-size: clamp(17px, 2.4vw, 21px); font-weight: 700; color: var(--ink2); margin: 0 auto 24px; max-width: 560px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── The pool ────────────────────────────────────────────────────────── */
.pool { position: relative; margin-top: auto; height: max(300px, 40vh); z-index: 2; cursor: pointer; }
.wave { position: absolute; left: 0; width: 200%; height: 70px; }
.wave path { fill: var(--sea1); }
.w1 { top: -40px; animation: waveX 9s linear infinite; opacity: .55; }
.w2 { top: -28px; animation: waveX 6s linear infinite reverse; }
/* The water slide stands on the pool's edge; its chute ends in the water. Kept below the hero text. */
.slide { position: absolute; left: 1%; bottom: calc(100% - 64px); width: clamp(130px, 22vw, 270px); z-index: 1; pointer-events: none; filter: drop-shadow(0 10px 8px rgba(7,89,133,.25)); }
.slide svg { display: block; width: 100%; height: auto; overflow: visible; }
.slide .flow { animation: flow .6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.water { position: absolute; inset: 30px 0 0; background: linear-gradient(180deg, var(--sea1), var(--sea2) 55%, var(--sea3)); overflow: hidden; }
.caustics { position: absolute; inset: -50%; opacity: .25;
  background: radial-gradient(ellipse 60px 30px at 20% 30%, #fff 0 30%, transparent 70%), radial-gradient(ellipse 80px 26px at 70% 60%, #fff 0 30%, transparent 70%),
              radial-gradient(ellipse 50px 22px at 45% 80%, #fff 0 30%, transparent 70%), radial-gradient(ellipse 70px 30px at 85% 20%, #fff 0 30%, transparent 70%);
  background-size: 300px 220px; animation: shimmer 12s linear infinite; }
.lane { position: absolute; left: 0; right: 0; top: 55%; height: 10px; background: repeating-linear-gradient(90deg, #fff 0 22px, #ef4444 22px 44px); opacity: .7; border-radius: 6px; }
.float { position: absolute; filter: drop-shadow(0 10px 6px rgba(7,89,133,.35)); }
.duck { width: 120px; left: 12%; top: 8%; animation: bob 3.2s ease-in-out infinite, swim 22s ease-in-out infinite; }
.ring { width: 96px; right: 16%; top: 22%; animation: bob 2.8s ease-in-out infinite -1s, spin 24s linear infinite; }
.ball { width: 64px; left: 52%; top: 64%; animation: bob 2.4s ease-in-out infinite -.5s; }
.bubbles i { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 60%); border: 1px solid rgba(255,255,255,.5);
  animation: rise var(--t) ease-in infinite; animation-delay: var(--d); }
.tap-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #e0f2fe; font: 600 15px var(--fun); margin: 0; animation: fadeHint 3s ease-in-out infinite; }
#splash { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ── Sections ────────────────────────────────────────────────────────── */
main { position: relative; z-index: 2; background: linear-gradient(180deg, var(--sea3), var(--deep) 120px, var(--bg) 120px); }
.sec { max-width: 1100px; margin: 0 auto; padding: 56px 16px; }
#prices { padding-top: 24px; }
.h2 { font: 700 clamp(30px, 5vw, 44px)/1.1 var(--fun); text-align: center; margin: 0 0 8px; color: var(--deep); }
.h2.left { text-align: left; }
#prices .h2, #prices > .sub { color: #fff; }
.sub { text-align: center; margin: 0 0 28px; font-weight: 700; color: var(--muted); }

.toys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .toys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .toys { gap: 12px; } .toy-price { font-size: 44px; } .toy-price.free { font-size: 30px; } }
.toy { position: relative; border-radius: var(--r); padding: 22px 20px 20px; text-align: center; color: #fff; overflow: hidden;
  box-shadow: 0 8px 0 rgba(0,0,0,.12), 0 18px 30px rgba(12,74,110,.18); transition: transform .2s; animation: floatCard 5s ease-in-out infinite; }
.toy:nth-child(2) { animation-delay: -1.2s; } .toy:nth-child(3) { animation-delay: -2.4s; } .toy:nth-child(4) { animation-delay: -3.6s; }
.toy:hover { transform: translateY(-6px) rotate(-1deg); }
.toy::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 26px solid rgba(255,255,255,.18); top: -70px; right: -60px; }
.t-blue { background: linear-gradient(160deg, #38bdf8, #0284c7); }
.t-pink { background: linear-gradient(160deg, #fb7185, #e11d48); }
.t-yellow { background: linear-gradient(160deg, #fde047, #f59e0b); color: #713f12; }
.t-green { background: linear-gradient(160deg, #4ade80, #059669); }
.toy-emo { font-size: 46px; line-height: 1; }
.toy-name { font: 600 20px var(--fun); margin-top: 8px; }
.toy-price { font: 700 52px/1 var(--fun); margin: 10px 0 4px; }
.toy-price small { font-size: 22px; margin-right: 2px; vertical-align: 18px; }
.toy-price.free { font-size: 38px; padding: 7px 0; letter-spacing: 1px; }
.toy-note { font-weight: 800; font-size: 14px; opacity: .9; }

.hours-card { margin: 26px auto 0; max-width: 560px; display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--r); padding: 18px 22px;
  box-shadow: 0 6px 0 #bae6fd, 0 14px 30px rgba(12,74,110,.12); text-align: center; }
.hc-sun, .hc-moon { font-size: 40px; } .hc-sun { animation: spin 18s linear infinite; }
.hc-label { font-weight: 800; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.hc-time { font: 700 30px var(--fun); color: var(--deep); }
.hc-note { font-weight: 700; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.step { position: relative; background: #fff; border-radius: var(--r); padding: 26px 22px 22px; text-align: center; box-shadow: 0 6px 0 #bae6fd, 0 14px 30px rgba(12,74,110,.1); }
.step-n { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: #78350f;
  font: 700 20px/38px var(--fun); box-shadow: 0 4px 0 #b45309; }
.step-emo { font-size: 44px; margin: 6px 0 4px; }
.step b { font: 600 20px var(--fun); }
.step p { margin: 8px 0 0; color: var(--muted); font-weight: 700; line-height: 1.5; }

.stay-card { display: flex; gap: 26px; align-items: center; background: linear-gradient(135deg, #ecfeff, #fff 60%); border: 3px dashed #67e8f9; border-radius: 34px; padding: 30px; }
.stay-art { font-size: 96px; animation: bob 4s ease-in-out infinite; }
.stay-card p { font-size: 17px; font-weight: 700; color: var(--ink2); margin: 6px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 700; color: var(--ink2); line-height: 1.45; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font: 700 14px/24px var(--fun); text-align: center; }

/* ── Buy form ────────────────────────────────────────────────────────── */
.notice { max-width: 620px; margin: 16px auto 0; text-align: center; background: #fff7ed; border: 2px solid #fed7aa; color: #9a3412; padding: 18px; border-radius: 20px; font-weight: 700; }
.buy { max-width: 760px; margin: 22px auto 0; background: #fff; border-radius: 34px; padding: 26px; box-shadow: 0 8px 0 #bae6fd, 0 20px 40px rgba(12,74,110,.14); }
.buy-step + .buy-step { margin-top: 26px; }
.bs-title { display: flex; align-items: center; gap: 10px; font: 600 21px var(--fun); margin-bottom: 12px; }
.bs-title .n { width: 32px; height: 32px; border-radius: 50%; background: var(--sea1); color: #fff; font: 700 17px/32px var(--fun); text-align: center; }
.dates { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.date input, .gw input { position: absolute; opacity: 0; pointer-events: none; }
.date > span { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 10px 6px; border-radius: 18px; border: 3px solid #e0f2fe; cursor: pointer;
  background: #f8fdff; scroll-snap-align: start; transition: all .15s; }
.date b { font: 700 26px/1.1 var(--fun); }
.date small { font-weight: 800; font-size: 12px; color: var(--muted); }
.date input:checked + span { border-color: var(--sea1); background: var(--sea1); color: #fff; transform: translateY(-3px); box-shadow: 0 5px 0 var(--sea2); }
.date input:checked + span small { color: #e0f2fe; }
.date input:focus-visible + span, .gw input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.counters { display: grid; gap: 10px; }
.counter { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: #f0f9ff; }
.ct-emo { font-size: 32px; }
.counter b { display: block; font: 600 18px var(--fun); }
.counter small { font-weight: 800; color: var(--muted); }
.pm { width: 46px; height: 46px; border-radius: 50%; border: 0; font: 700 26px/1 var(--fun); cursor: pointer; background: #fff; color: var(--sea2); box-shadow: 0 4px 0 #bae6fd; }
.pm[data-d="1"] { background: var(--sea1); color: #fff; box-shadow: 0 4px 0 var(--sea2); }
.pm:active { transform: translateY(3px); box-shadow: none; }
.counter output { min-width: 34px; text-align: center; font: 700 26px var(--fun); }
.counter output.pop { animation: pop .3s; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; color: var(--muted); }
.fields .wide { grid-column: 1 / -1; }
.fields input { font: 700 17px var(--font); color: var(--ink); padding: 14px 16px; border-radius: 16px; border: 3px solid #e0f2fe; background: #f8fdff; outline: none; }
.fields input:focus { border-color: var(--sea1); background: #fff; }
.gws { display: flex; flex-wrap: wrap; gap: 10px; }
.gw span { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 3px solid #e0f2fe; font: 600 16px var(--fun); cursor: pointer; background: #f8fdff; }
.gw input:checked + span { border-color: var(--sea1); background: #e0f2fe; color: var(--sea3); }
.total-bar { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 16px 18px; border-radius: 24px; background: linear-gradient(135deg, #e0f2fe, #ecfeff); flex-wrap: wrap; }
.total-bar small { font-weight: 800; color: var(--muted); }
.total { font: 700 40px/1 var(--fun); color: var(--deep); }
.form-err { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: #fff1f2; color: #be123c; font-weight: 800; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; text-align: center; }

/* ── Photos & rules ──────────────────────────────────────────────────── */
.polaroids { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 10px 0; }
.pol { margin: 0; background: #fff; padding: 12px 12px 14px; border-radius: 8px; box-shadow: 0 16px 30px rgba(12,74,110,.18); width: min(300px, 88vw); transition: transform .25s; }
.pol img { aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; background: #e0f2fe; }
.pol figcaption { font: 600 18px var(--fun); text-align: center; margin-top: 10px; }
.p1 { transform: rotate(-4deg); } .p2 { transform: rotate(3deg) translateY(14px); } .p3 { transform: rotate(-2deg); }
.pol:hover { transform: rotate(0) scale(1.04); z-index: 1; }
.rules { list-style: none; padding: 0; margin: 22px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rules li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 14px 18px; font-weight: 800; color: var(--ink2); box-shadow: 0 4px 0 #e0f2fe; }
.rules li span { font-size: 28px; }

.foot { position: relative; background: var(--deep); color: #bae6fd; margin-top: 40px; }
.foot-wave { position: absolute; top: -40px; left: 0; width: 100%; height: 42px; }
.foot-wave path { fill: var(--deep); }
.foot-in { max-width: 1100px; margin: 0 auto; padding: 22px 16px 34px; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; font-weight: 700; }
.foot-in b { color: #fff; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: #bae6fd; text-decoration: none; }
.foot-links a:hover { color: #fff; }

/* ── Motion ──────────────────────────────────────────────────────────── */
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }
@keyframes fly { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, -14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sunPulse { 50% { box-shadow: 0 0 80px 30px rgba(251,191,36,.55); } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
/* The duck faces right: swims right, turns round, swims back. */
@keyframes swim { 0% { left: 8%; scale: 1 1; } 48% { left: 68%; scale: 1 1; } 52% { left: 68%; scale: -1 1; } 96% { left: 8%; scale: -1 1; } 100% { left: 8%; scale: 1 1; } }
@keyframes waveX { to { transform: translateX(-50%); } }
@keyframes shimmer { to { transform: translate(300px, 220px); } }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-50vh) translateX(20px) scale(1.1); opacity: 0; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes floatCard { 50% { translate: 0 -6px; } }
@keyframes fadeHint { 50% { opacity: .45; } }
@keyframes pop { 50% { transform: scale(1.4); color: var(--sea1); } }

@media (max-width: 640px) {
  .sun { width: 78px; height: 78px; top: 70px; right: 6%; }
  .stay-card { flex-direction: column; text-align: center; padding: 24px 18px; }
  .stay-card .h2.left { text-align: center; } .ticks { text-align: left; }
  .stay-art { font-size: 72px; }
  .fields { grid-template-columns: 1fr; }
  .buy { padding: 20px 16px; border-radius: 28px; }
  .duck { width: 90px; } .ring { width: 72px; } .ball { width: 50px; }
  .slide { width: 104px; bottom: calc(100% - 52px); }
  .logo { font-size: 18px; } .logo-ring { width: 28px; height: 28px; border-width: 7px; }
  .total-bar .btn { width: 100%; justify-content: center; }
  .btn { padding: 15px 22px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
