:root {
  --bg: #fff8e8;
  --paper: #fffdf7;
  --ink: #24313a;
  --muted: #65717a;
  --blue: #2f80ed;
  --green: #4ecb8f;
  --purple: #9b8cff;
  --pink: #ff8fab;
  --gold: #f4b942;
  font-family: ui-rounded, "Avenir Next", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(255,209,102,.38), transparent 28%),
    radial-gradient(circle at 82% 9%, rgba(155,140,255,.28), transparent 28%),
    linear-gradient(180deg, #ecfbff, #fff8e8);
}
button, input { font: inherit; }
.game-header { width: min(1120px, calc(100% - 28px)); margin: 16px auto 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.home-link, .soft-button { border: 0; text-decoration: none; border-radius: 999px; padding: 12px 16px; color: #17456e; background: rgba(255,255,255,.78); font-weight: 950; box-shadow: 0 10px 25px rgba(36,49,58,.08); cursor: pointer; }
.game-shell { width: min(1120px, calc(100% - 28px)); margin: 22px auto 40px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: stretch; }
.stage { position: relative; min-height: calc(100dvh - 118px); border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #bcefff, #eafff7 65%, #b7efc5); box-shadow: 0 22px 60px rgba(47,128,237,.18); border: 5px solid rgba(255,255,255,.72); }
.panel { background: rgba(255,253,247,.9); border: 4px solid rgba(255,255,255,.72); border-radius: 34px; padding: 24px; box-shadow: 0 22px 60px rgba(47,128,237,.16); }
.kicker { display: inline-flex; margin: 0 0 12px; padding: 8px 13px; border-radius: 999px; background: #fff; color: #1559b7; font-weight: 950; }
h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: .92; letter-spacing: -.055em; margin: 0 0 12px; }
p { color: var(--muted); line-height: 1.5; font-size: 1.02rem; }
.score-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.score-pill { border-radius: 20px; background: #f2f8ff; padding: 12px; font-weight: 950; color: #17456e; }
.message { min-height: 58px; margin: 14px 0; padding: 14px; border-radius: 20px; background: #f2f8ff; color: #35526d; font-weight: 850; }
.actions, .choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
button.choice, .main-button { border: 0; border-radius: 18px; padding: 14px 12px; background: #fff; color: #17456e; font-weight: 950; box-shadow: 0 8px 18px rgba(36,49,58,.08); cursor: pointer; }
.main-button { width: 100%; background: var(--blue); color: #fff; margin-top: 14px; }
button.choice:hover, .main-button:hover, .soft-button:hover { transform: translateY(-1px); }
button.choice.selected { background: #fff4ca; outline: 4px solid rgba(255,209,102,.45); }
.big-character { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(470px, 82%); aspect-ratio: 1; }
.float-card { position: absolute; border-radius: 28px; background: rgba(255,253,247,.86); border: 4px solid rgba(255,255,255,.7); box-shadow: 0 18px 40px rgba(36,49,58,.12); padding: 12px 16px; font-weight: 950; }
.cloud { position: absolute; width: 170px; height: 64px; border-radius: 999px; background: rgba(255,255,255,.72); }
.cloud:before, .cloud:after { content:""; position:absolute; border-radius:50%; background:inherit; }
.cloud:before { width:70px; height:70px; left:24px; top:-28px; }
.cloud:after { width:88px; height:88px; right:18px; top:-40px; }
.cloud.one { left: 48px; top: 76px; }
.cloud.two { right: 42px; top: 150px; transform: scale(.82); }
@media (max-width: 880px) { .game-shell { grid-template-columns: 1fr; } .stage { min-height: 460px; } .panel { order: -1; } }
@media (prefers-reduced-motion: no-preference) { .big-character { animation: gentle-bob 3s ease-in-out infinite; } @keyframes gentle-bob { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 10px)); } } }

.ocean-stage{background:linear-gradient(180deg,#7fe4ff,#2f80ed 58%,#1559b7)}.bubble{position:absolute;border-radius:50%;background:rgba(255,255,255,.35);border:3px solid rgba(255,255,255,.45)}.b1{width:70px;height:70px;left:80px;top:90px}.b2{width:42px;height:42px;right:130px;top:120px}.b3{width:96px;height:96px;right:70px;bottom:85px}.mermaid{position:absolute;left:48%;top:50%;width:230px;height:260px;transform:translate(-50%,-50%);transition:left .25s ease, top .25s ease}.hair{position:absolute;left:61px;top:6px;width:112px;height:128px;border-radius:60% 60% 44% 44%;background:#b655d9}.head{position:absolute;left:76px;top:36px;width:84px;height:78px;border-radius:50%;background:#ffd6b6;border:5px solid rgba(36,49,58,.14);z-index:2}.eye{position:absolute;top:30px;width:10px;height:14px;border-radius:50%;background:#20313b}.eye.left{left:24px}.eye.right{right:24px}.smile{position:absolute;left:25px;top:49px;width:36px;height:14px;border-bottom:4px solid #20313b;border-radius:0 0 999px 999px}.body{position:absolute;left:82px;top:107px;width:72px;height:84px;border-radius:28px;background:#ff8fab;z-index:2}.tail{position:absolute;left:58px;top:168px;width:126px;height:64px;border-radius:60% 20% 60% 20%;background:#4ecb8f;transform:rotate(-14deg);border:5px solid #2f9f73}.fin{position:absolute;left:138px;top:210px;width:82px;height:64px;background:#8ee8bd;clip-path:polygon(0 50%,100% 0,78% 50%,100% 100%);transform:rotate(-14deg)}.treasure,.jelly{position:absolute;font-size:3rem;filter:drop-shadow(0 10px 16px rgba(0,0,0,.18));transition:left .35s ease,top .35s ease,transform .25s ease}.jelly{font-size:3.4rem}.treasure.found{animation:treasure-pop .55s ease}.mermaid.bump{animation:bump .35s ease}@keyframes treasure-pop{50%{transform:scale(1.6);opacity:.6}100%{transform:scale(.2);opacity:0}}@keyframes bump{50%{transform:translate(-50%,-50%) rotate(8deg) scale(.96)}}
