:root {
  --ocean: #16b3d0;
  --ocean-deep: #087ea8;
  --ocean-dark: #075675;
  --sky: #6fd9ef;
  --sand: #ffd878;
  --yellow: #ffc94b;
  --yellow-dark: #f0a92e;
  --green: #56b96c;
  --green-dark: #238657;
  --coral: #ff6f61;
  --navy: #123b57;
  --ink: #18394d;
  --muted: #718894;
  --paper: #f7fbf9;
  --white: #fff;
  --line: rgba(11, 83, 108, .12);
  --shadow: 0 16px 40px rgba(5, 89, 120, .17);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #e8f6f4; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(255,217,120,.25), transparent 22rem),
    linear-gradient(180deg, #effbf9, #f9fbf5 42%, #e9f7f5);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: none;
}
button { font: inherit; touch-action: manipulation; }
button:focus-visible { outline: 3px solid rgba(255,174,46,.65); outline-offset: 3px; }
[hidden] { display: none !important; }

.app { width: min(100%, 720px); min-height: 100dvh; margin: 0 auto; padding: calc(9px + var(--safe-top)) 14px calc(22px + var(--safe-bottom)); }
.topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.logo { border: 0; background: transparent; padding: 2px 0; display: flex; align-items: center; gap: 9px; color: var(--ink); text-align: left; cursor: pointer; }
.logo > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-size: 16px; letter-spacing: .08em; font-weight: 950; }
.logo small { margin-top: 4px; color: #1b92aa; font-size: 7px; letter-spacing: .17em; font-weight: 900; }
.logo-sun { width: 34px; height: 34px; position: relative; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,201,75,.18); }
.logo-sun::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 10px; border-radius: 50%; background: #39a868; box-shadow: 0 6px 0 #087fa3; }
.logo-sun::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -1px; height: 5px; border-radius: 50%; background: #22bad1; }
.wallet { display: flex; align-items: center; gap: 6px; }
.wallet > span { min-height: 35px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(11,84,108,.1); border-radius: 999px; background: rgba(255,255,255,.82); box-shadow: 0 4px 15px rgba(25,98,119,.08); font-size: 12px; }
.coin { width: 16px; height: 16px; display: inline-block; border: 2px solid #d38b21; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff2a8 0 17%, #ffd051 19% 65%, #e29325 67%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.32); }
.shell { color: #ff7a62; font-style: normal; }

.screen { animation: screen-in .28s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } }

.hero-card { min-height: 430px; position: relative; overflow: hidden; border-radius: 27px; color: #fff; background: linear-gradient(180deg, #6fddf1 0%, #35bed9 39%, #0a9abe 40%, #087da8 100%); box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; left: -15%; right: -15%; top: 42%; height: 58%; background: repeating-radial-gradient(ellipse at 50% -10%, transparent 0 18px, rgba(255,255,255,.09) 19px 21px, transparent 22px 42px); opacity: .65; }
.cloud { position: absolute; z-index: 1; width: 65px; height: 18px; border-radius: 20px; background: rgba(255,255,255,.65); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 12px; width: 29px; height: 29px; }
.cloud::after { right: 8px; width: 22px; height: 22px; }
.cloud-a { top: 47px; right: 32px; animation: cloud-float 6s ease-in-out infinite; }
.cloud-b { top: 94px; left: -13px; transform: scale(.7); opacity: .7; animation: cloud-float 7s ease-in-out infinite reverse; }
@keyframes cloud-float { 50% { transform: translateX(12px); } }
.hero-map { position: absolute; z-index: 2; left: -2%; right: -2%; top: 76px; width: 104%; height: 330px; overflow: visible; }
.hero-bridge { fill: none; stroke: #a66b35; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 4 6; filter: drop-shadow(0 4px 0 rgba(8,83,100,.22)); }
.hero-island ellipse { fill: #f1bd58; }
.hero-island > path { fill: #56b96c; }
.hero-island circle { fill: #36a25e; }
.hero-island rect { fill: #fff2c0; stroke: #dc8f36; stroke-width: 3; }
.hero-island path:last-child { fill: #309e5a; }
.island-three rect { fill: #fff; stroke: #e35f55; }
.island-three path { fill: #ef665d; }
.boat { fill: #fff7d3; stroke: #126f8f; stroke-width: 4; animation: boat-rock 2.6s ease-in-out infinite; transform-origin: center; }
.boat path:last-child { fill: var(--yellow); }
@keyframes boat-rock { 50% { transform: translate(86px,180px) rotate(3deg); } }
.hero-copy { position: relative; z-index: 4; padding: 23px 20px; text-shadow: 0 2px 8px rgba(5,91,113,.2); }
.hero-copy span { color: #fff5ba; font-size: 8px; font-weight: 950; letter-spacing: .17em; }
.hero-copy h1 { margin: 7px 0 0; max-width: 390px; font-size: clamp(25px, 7vw, 35px); line-height: 1.03; letter-spacing: -.035em; font-weight: 950; }
.hero-progress { position: absolute; z-index: 5; left: 15px; right: 15px; bottom: 14px; min-height: 61px; padding: 11px 12px 11px 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.26); border-radius: 17px; background: rgba(5,94,123,.68); backdrop-filter: blur(10px); }
.hero-progress > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.hero-progress b { font-size: 14px; }
.hero-progress small { color: #bdebf2; font-size: 9px; }
.progress-ring { width: 41px; height: 41px; display: grid; place-items: center; border: 4px solid rgba(255,255,255,.22); border-top-color: var(--yellow); border-radius: 50%; font-size: 9px; font-weight: 900; }

.play-button { width: 100%; min-height: 76px; margin-top: 12px; padding: 10px 13px; display: grid; grid-template-columns: 47px 1fr 25px; align-items: center; gap: 11px; border: 0; border-radius: 20px; color: #4e3911; background: linear-gradient(135deg, #ffd65b, #ffb937); box-shadow: 0 10px 22px rgba(230,151,29,.27), inset 0 1px 0 rgba(255,255,255,.58); text-align: left; cursor: pointer; }
.play-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ff735f; box-shadow: 0 5px 12px rgba(193,73,52,.25); font-size: 17px; padding-left: 3px; }
.play-button > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.play-button b { font-size: 18px; letter-spacing: .03em; font-weight: 950; }
.play-button small { color: rgba(78,57,17,.65); font-size: 10px; font-weight: 750; }
.play-button > i { font-style: normal; font-size: 30px; }
.play-button:active { transform: translateY(2px); box-shadow: 0 5px 13px rgba(230,151,29,.23); }

.home-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-tile { min-height: 145px; position: relative; overflow: hidden; padding: 13px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: #fff; box-shadow: 0 7px 22px rgba(22,104,124,.09); text-align: left; cursor: pointer; }
.home-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 84px; background: var(--tile-bg); }
.home-tile b, .home-tile small { position: relative; z-index: 2; }
.home-tile b { font-size: 14px; font-weight: 900; }
.home-tile small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.tile-city { --tile-bg: linear-gradient(145deg, #cff4cf, #70d49a); }
.tile-daily { --tile-bg: linear-gradient(145deg, #ffe9a3, #ffc960); }
.tile-art { position: absolute; z-index: 1; left: 14px; top: 11px; width: 80px; height: 65px; }
.city-art { border-bottom: 10px solid #e3ab4c; }
.city-art i { position: absolute; bottom: 0; width: 22px; border-radius: 5px 5px 0 0; background: #fff0bd; border: 3px solid #279265; }
.city-art i::before { content: ""; position: absolute; left: -5px; right: -5px; top: -11px; border-left: 13px solid transparent; border-right: 13px solid transparent; border-bottom: 12px solid #ff735f; }
.city-art i:nth-child(1) { left: 3px; height: 32px; }
.city-art i:nth-child(2) { left: 31px; height: 45px; }
.city-art i:nth-child(3) { left: 59px; height: 27px; }
.daily-art { top: 7px; display: grid; place-items: center; color: #ff8163; font-size: 57px; text-shadow: 0 3px 0 rgba(255,255,255,.6); }
.alert-dot { position: absolute; z-index: 5; right: 11px; top: 11px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--coral); }
.map-button { width: 100%; min-height: 46px; margin-top: 10px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 15px; color: #587483; background: rgba(255,255,255,.72); cursor: pointer; font-size: 11px; font-weight: 800; }
.map-button span { color: var(--ocean-deep); font-size: 18px; }
.map-button b { margin-left: auto; color: var(--ink); }

.game-header, .page-header { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; margin: 5px 0 10px; }
.game-header > div, .page-header > div:nth-child(2) { text-align: center; }
.game-header span, .page-header > div:nth-child(2) > span { color: #1191ae; font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.game-header h1, .page-header h1 { margin: 2px 0 0; font-size: 20px; line-height: 1.1; font-weight: 950; }
.round-button { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.86); box-shadow: 0 4px 13px rgba(20,100,120,.08); cursor: pointer; font-size: 25px; }
.game-header .round-button:last-child { font-size: 16px; font-weight: 900; }

.coach { width: 100%; min-height: 50px; padding: 7px 8px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,180,44,.3); border-radius: 15px; color: #75521c; background: #fff8d9; text-align: left; cursor: pointer; font-size: 10px; line-height: 1.35; }
.captain { flex: 0 0 auto; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ff8067; font-size: 17px; }
.coach i { margin-left: auto; color: #b49c72; font-style: normal; font-size: 17px; }
.rules-mini { margin: 9px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rules-mini span { min-width: 0; min-height: 34px; padding: 5px 3px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; color: #55737f; background: rgba(255,255,255,.76); white-space: nowrap; font-size: 8px; font-weight: 750; }
.rules-mini b { color: #ff7762; font-size: 14px; }

.ocean-board-wrap { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; border: 5px solid #fff; border-radius: 25px; background: linear-gradient(145deg, #43cde1, #139ec1 60%, #0b87b1); box-shadow: 0 12px 34px rgba(2,105,137,.22), inset 0 0 0 1px rgba(4,100,126,.15); }
.ocean-board-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 18%, rgba(255,255,255,.2), transparent 28%), repeating-radial-gradient(ellipse at 10% 0%, transparent 0 34px, rgba(255,255,255,.08) 35px 38px, transparent 39px 70px); }
.wave-lines { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(ellipse at center, transparent 62%, rgba(255,255,255,.12) 64%, transparent 67%); background-size: 120px 38px; animation: water-move 12s linear infinite; }
@keyframes water-move { to { background-position: 120px 0; } }
.ocean-board { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible; user-select: none; touch-action: manipulation; }
.bridge-shadow { stroke: rgba(5,85,98,.28); stroke-width: 24; stroke-linecap: round; transform: translateY(7px); }
.bridge-plank { stroke: #9e6234; stroke-width: 19; stroke-linecap: round; }
.bridge-rope { stroke: #ffe28c; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 7 13; }
.bridge-group { filter: drop-shadow(0 3px 1px rgba(7,74,90,.2)); animation: bridge-in .2s ease both; }
@keyframes bridge-in { from { opacity: 0; stroke-dashoffset: 25; } }
.possible-line { stroke: rgba(255,255,255,.72); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 4 18; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.reef-rock { fill: #ef7167; stroke: #b94755; stroke-width: 4; }
.reef-coral { fill: none; stroke: #ffd384; stroke-width: 7; stroke-linecap: round; }
.island-hit { fill: transparent; cursor: pointer; }
.island-sand { fill: #ffd778; stroke: #e5a648; stroke-width: 6; filter: drop-shadow(0 10px 7px rgba(5,81,100,.27)); }
.island-land { fill: #63c875; stroke: #329759; stroke-width: 5; }
.island-number-bg { fill: #fff; stroke: rgba(15,94,111,.16); stroke-width: 5; }
.island-number { fill: var(--ink); font-size: 43px; font-weight: 950; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.island-palm { fill: none; stroke: #147b52; stroke-width: 7; stroke-linecap: round; pointer-events: none; }
.island-group { cursor: pointer; transform-origin: center; }
.island-group.is-selected .island-sand { stroke: #fff; stroke-width: 12; filter: drop-shadow(0 0 13px rgba(255,243,156,.95)); animation: select-pulse 1.15s ease-in-out infinite; }
@keyframes select-pulse { 50% { stroke-width: 18; } }
.island-group.is-done .island-number-bg { fill: #e9ffb8; stroke: #3ba85f; }
.island-group.is-done .island-number { fill: #238657; }
.island-group.is-over .island-number-bg { fill: #ffe0dc; stroke: #ef5f58; }
.island-group.is-over .island-number { fill: #d84d4d; }
.island-group:active { filter: brightness(1.06); }
.board-loading { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #fff; background: rgba(11,143,178,.85); font-size: 11px; font-weight: 850; }
.board-loading i { width: 32px; height: 32px; border: 4px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.game-status { min-height: 40px; padding: 8px 5px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #58727f; text-align: center; font-size: 9px; line-height: 1.35; }
.status-light { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-dark); box-shadow: 0 0 0 4px rgba(255,190,55,.17); }
.game-status.is-good { color: #27815a; }
.game-status.is-good .status-light { background: #4dbb6d; box-shadow: 0 0 0 4px rgba(77,187,109,.15); }
.game-status.is-error { color: #d95751; }
.game-status.is-error .status-light { background: #ec665d; box-shadow: 0 0 0 4px rgba(236,102,93,.15); }
.game-controls { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 7px; }
.game-controls button { min-height: 50px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 14px; color: #5d7783; background: rgba(255,255,255,.86); cursor: pointer; }
.game-controls button span { font-size: 19px; line-height: 1; }
.game-controls button b { font-size: 8px; }
.game-controls button:disabled { opacity: .4; cursor: default; }
.game-controls .hint-control { color: #745213; border-color: rgba(236,173,44,.28); background: #fff4bf; }

.page-header { margin-top: 9px; }
.page-back { font-size: 25px; }
.rank-badge, .streak-badge { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ff846b, #f45b58); box-shadow: 0 5px 14px rgba(214,73,64,.22); font-size: 13px; font-weight: 950; }
.island-panorama { height: 340px; position: relative; overflow: hidden; border-radius: 25px; background: linear-gradient(#79dff1 0 46%, #20b4d0 47%, #0786b0); box-shadow: var(--shadow); }
.island-panorama::before { content: ""; position: absolute; inset: 48% 0 0; background: repeating-radial-gradient(ellipse at 0 0, transparent 0 23px, rgba(255,255,255,.1) 24px 26px, transparent 27px 49px); }
.panorama-sun { position: absolute; right: 35px; top: 28px; width: 78px; height: 78px; border-radius: 50%; background: #ffdb68; box-shadow: 0 0 0 15px rgba(255,223,111,.15); }
.panorama-cloud { position: absolute; width: 64px; height: 18px; border-radius: 20px; background: rgba(255,255,255,.72); }
.panorama-cloud::before { content: ""; position: absolute; left: 14px; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: inherit; }
.panorama-cloud.one { top: 55px; left: 28px; }
.panorama-cloud.two { top: 120px; right: -15px; transform: scale(.75); }
.big-island { position: absolute; left: 50%; top: 132px; width: 270px; height: 102px; transform: translateX(-50%); border-radius: 50%; background: #efb856; box-shadow: 0 13px 0 #c7873e, 0 19px 20px rgba(4,78,99,.27); }
.big-island::before { content: ""; position: absolute; inset: -18px 17px 20px; border-radius: 50%; background: #56bb6d; box-shadow: inset 0 -7px 0 #349852; }
.small-island { position: absolute; top: 208px; width: 80px; height: 33px; border-radius: 50%; background: #eab458; box-shadow: 0 8px 0 #c17c3c; }
.small-island::before { content: ""; position: absolute; inset: -8px 9px 8px; border-radius: 50%; background: #50b66a; }
.small-island.left { left: -12px; }.small-island.right { right: -16px; top: 185px; }
.island-buildings { position: absolute; z-index: 3; left: 50%; bottom: 61px; width: 210px; height: 100px; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; gap: 7px; }
.town-building { width: var(--w); height: var(--h); position: relative; border: 3px solid #21795f; border-radius: 4px 4px 0 0; background: var(--color); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); animation: building-pop .45s cubic-bezier(.2,.9,.2,1.25) both; animation-delay: var(--delay); }
.town-building::before { content: ""; position: absolute; left: -6px; right: -6px; top: -15px; border-left: calc(var(--w) / 2) solid transparent; border-right: calc(var(--w) / 2) solid transparent; border-bottom: 16px solid var(--roof); }
.town-building::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 8px; height: 13px; transform: translateX(-50%); border-radius: 4px 4px 0 0; background: #27785f; }
@keyframes building-pop { from { transform: translateY(30px) scale(.6); opacity: 0; } }
.palm { position: absolute; z-index: 3; bottom: 64px; width: 7px; height: 52px; border-radius: 8px; background: #7d5a31; transform: rotate(7deg); }
.palm::before { content: ""; position: absolute; left: -19px; top: -9px; width: 44px; height: 25px; background: #278f58; clip-path: polygon(50% 42%, 0 0, 37% 49%, 12% 100%, 50% 57%, 88% 100%, 63% 49%, 100% 0); }
.palm-a { left: 48px; }.palm-b { right: 48px; height: 43px; transform: rotate(-6deg); }
.panorama-boat { position: absolute; left: 13%; top: 236px; font-size: 29px; animation: sail 7s ease-in-out infinite; }
@keyframes sail { 50% { transform: translateX(48px) rotate(3deg); } }
.panorama-label { position: absolute; z-index: 5; left: 13px; right: 13px; bottom: 12px; min-height: 68px; padding: 11px 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 17px; color: #fff; background: rgba(4,84,111,.76); backdrop-filter: blur(10px); }
.panorama-label small { grid-column: 1; color: #aeeaf3; font-size: 7px; font-weight: 950; letter-spacing: .14em; }
.panorama-label b { grid-column: 1; font-size: 15px; }.panorama-label span { grid-row: 1 / 3; grid-column: 2; color: #ffe477; font-weight: 900; }.panorama-label i { font-style: normal; color: #fff; }
.next-rank-card { margin-top: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 19px rgba(22,104,124,.07); }
.next-rank-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; }.next-rank-card span { color: var(--muted); }.next-rank-card > div:last-child { height: 8px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e3efec; }.next-rank-card i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #32ba82, #8bd26a); transition: width .4s ease; }
.section-title { margin: 20px 2px 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }.section-title span { color: #0c94b2; font-size: 8px; font-weight: 950; letter-spacing: .15em; }.section-title h2 { margin: 3px 0 0; font-size: 19px; }.section-title small { color: var(--muted); font-size: 8px; }
.upgrade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.upgrade-card { min-height: 174px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(22,104,124,.08); }
.upgrade-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--icon-bg); font-size: 24px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); }
.upgrade-card h3 { margin: 9px 0 3px; font-size: 14px; }.upgrade-card p { min-height: 31px; margin: 0 0 8px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.upgrade-level { display: flex; gap: 3px; margin-bottom: 8px; }.upgrade-level i { width: 15px; height: 5px; border-radius: 99px; background: #dfeae7; }.upgrade-level i.on { background: #49ba72; }
.upgrade-button { width: 100%; min-height: 34px; padding: 3px; border: 0; border-radius: 10px; color: #fff; background: #139db9; font-size: 8px; font-weight: 950; cursor: pointer; }.upgrade-button:disabled { color: #8ea0a7; background: #e5eeec; cursor: default; }.upgrade-button.max { color: #2b7855; background: #dff4d9; }

.daily-card { min-height: 500px; position: relative; overflow: hidden; padding: 26px 19px 18px; display: flex; flex-direction: column; align-items: flex-start; border-radius: 25px; color: #fff; background: linear-gradient(155deg, #3cc8dd, #0d91b7 58%, #086d96); box-shadow: var(--shadow); }
.daily-card::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 10% 20%, transparent 0 34px, rgba(255,255,255,.08) 35px 37px, transparent 38px 72px); }
.daily-map { position: absolute; right: -30px; top: -15px; width: 260px; height: 240px; opacity: .88; transform: rotate(8deg); }
.daily-map i { position: absolute; width: 71px; height: 42px; border: 9px solid #ffd170; border-radius: 50%; background: #58c870; box-shadow: 0 7px 0 #cb8b43; }
.daily-map i:nth-child(1) { left: 20px; top: 70px; }.daily-map i:nth-child(2) { right: 20px; top: 24px; }.daily-map i:nth-child(3) { right: 40px; bottom: 25px; }
.daily-map span { position: absolute; height: 10px; border-radius: 99px; background: #a46837; transform-origin: left; }.daily-map span:nth-of-type(1) { width: 110px; left: 75px; top: 87px; transform: rotate(-22deg); }.daily-map span:nth-of-type(2) { width: 94px; left: 88px; top: 104px; transform: rotate(30deg); }
.daily-date { position: relative; color: #fff1a9; font-size: 8px; font-weight: 950; letter-spacing: .16em; }.daily-card h2 { position: relative; margin: 180px 0 9px; font-size: 31px; line-height: 1.04; }.daily-card p { position: relative; max-width: 400px; margin: 0; color: #d3f4f7; font-size: 10px; line-height: 1.5; }
.daily-prize { position: relative; width: 100%; margin-top: auto; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.19); border-bottom: 1px solid rgba(255,255,255,.19); }.daily-prize > span { display: flex; flex-direction: column; gap: 4px; }.daily-prize > span + span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.19); }.daily-prize small { color: #bceaf1; font-size: 7px; font-weight: 900; letter-spacing: .13em; }.daily-prize b { display: flex; align-items: center; gap: 5px; font-size: 14px; }.daily-prize .coin { width: 15px; height: 15px; }
.yellow-button, .white-button { width: 100%; min-height: 50px; border-radius: 14px; font-size: 10px; font-weight: 950; letter-spacing: .03em; cursor: pointer; }.yellow-button { position: relative; margin-top: 13px; border: 0; color: #5b420f; background: linear-gradient(135deg, #ffdc63, #ffbd3c); box-shadow: 0 8px 18px rgba(170,102,17,.2); }.yellow-button:disabled { color: #71909d; background: #cce3e3; box-shadow: none; cursor: default; }.white-button { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.week-card { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }.week-card > div:first-child span { color: #0c94b2; font-size: 8px; font-weight: 950; letter-spacing: .14em; }.week-card h2 { margin: 3px 0 12px; font-size: 17px; }.week-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }.day { text-align: center; }.day i { width: 100%; aspect-ratio: 1; max-width: 36px; margin: auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #7f969f; background: #ecf5f2; font-style: normal; font-size: 10px; }.day b { display: block; margin-top: 4px; color: #90a1a7; font-size: 7px; }.day.done i { color: #fff; border-color: #44b96e; background: #44b96e; }.day.today i { box-shadow: 0 0 0 3px rgba(255,193,59,.34); border-color: #f5b932; }

.backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(5,52,72,.6); backdrop-filter: blur(6px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 51; left: 50%; bottom: 0; width: min(100%,720px); max-height: min(88dvh,820px); padding: 9px 16px calc(19px + var(--safe-bottom)); overflow-y: auto; transform: translateX(-50%); border-radius: 25px 25px 0 0; background: #fafffd; box-shadow: 0 -22px 60px rgba(3,54,74,.28); animation: sheet-up .28s cubic-bezier(.2,.85,.25,1) both; }
@keyframes sheet-up { from { transform: translate(-50%,100%); } }
.sheet-handle { width: 43px; height: 5px; margin: 0 auto 13px; border-radius: 99px; background: #d9e8e5; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }.sheet-head span { color: #0b9ab7; font-size: 8px; font-weight: 950; letter-spacing: .15em; }.sheet-head h2 { margin: 3px 0 0; font-size: 22px; }.sheet-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; cursor: pointer; font-size: 21px; }
.rule-list { display: grid; gap: 8px; }.rule-list > div { min-height: 70px; padding: 10px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 15px; background: #f1faf7; }.rule-list i { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ff7762; font-style: normal; font-weight: 950; }.rule-list span { display: flex; flex-direction: column; gap: 3px; }.rule-list b { font-size: 12px; }.rule-list small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.tap-demo { margin: 10px 0 12px; padding: 13px; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; border-radius: 15px; background: #dff6f7; }.demo-island { width: 52px; height: 40px; display: grid; place-items: center; border: 6px solid #ffd36d; border-radius: 50%; color: #fff; background: #57be6d; font-size: 15px; font-weight: 950; }.tap-demo > i { height: 8px; border-radius: 99px; background: repeating-linear-gradient(90deg,#9a6336 0 7px,#ffd87d 7px 11px); }.tap-demo p { grid-column: 1/-1; margin: 3px 0 0; color: #577481; font-size: 9px; text-align: center; }
.chapter-tabs { display: flex; gap: 6px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }.chapter-tab { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: #68818c; background: #edf6f3; cursor: pointer; font-size: 9px; font-weight: 850; }.chapter-tab.active { color: #fff; border-color: #109fbd; background: #109fbd; }
.level-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; padding: 5px 0 8px; }.level-button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #eef8f5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }.level-button b { font-size: 14px; }.level-button span { min-height: 9px; color: #ffae32; font-size: 7px; letter-spacing: -1px; }.level-button.current { color: #fff; border-color: #0c8eae; background: #11a6c2; box-shadow: 0 0 0 3px rgba(255,201,75,.65); }.level-button:disabled { color: #a8b9bc; background: #edf1ef; cursor: default; }.level-button:disabled::after { content: "•"; }

.win-sheet { text-align: center; overflow: hidden; }.confetti i { position: absolute; top: -15px; width: 9px; height: 21px; border-radius: 4px; background: var(--c); transform: rotate(var(--r)); animation: confetti 1.4s ease-out infinite; animation-delay: var(--d); }.confetti i:nth-child(1){left:9%;--c:#ff6f61;--r:18deg;--d:.1s}.confetti i:nth-child(2){left:24%;--c:#ffd25a;--r:-16deg;--d:.35s}.confetti i:nth-child(3){left:42%;--c:#50bf72;--r:32deg;--d:.05s}.confetti i:nth-child(4){left:61%;--c:#30bdd2;--r:-23deg;--d:.25s}.confetti i:nth-child(5){left:79%;--c:#ac76d6;--r:14deg;--d:.4s}.confetti i:nth-child(6){left:91%;--c:#ff9460;--r:-31deg;--d:.18s}@keyframes confetti{to{transform:translateY(245px) rotate(280deg);opacity:0}}
.win-island { width: 112px; height: 60px; position: relative; margin: 5px auto 12px; border: 12px solid #ffd16b; border-radius: 50%; background: #59bf70; box-shadow: 0 9px 0 #c9853e, 0 13px 20px rgba(8,84,103,.18); }.win-island span { position: absolute; left: 48%; top: -35px; color: #ff675c; font-size: 42px; text-shadow: 0 3px 0 #fff; }.win-kicker { color: #0a9ab8; font-size: 8px; font-weight: 950; letter-spacing: .17em; }.win-sheet h2 { margin: 5px 0; font-size: 26px; }.win-stars { color: #ffc13d; font-size: 24px; letter-spacing: 5px; text-shadow: 0 2px 0 #e39b24; }.win-stars .empty { color: #dce7e4; text-shadow: none; }.win-stats { margin: 15px 0 10px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 15px; background: #eff9f6; }.win-stats div { min-height: 65px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }.win-stats div+div { border-left: 1px solid var(--line); }.win-stats small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .12em; }.win-stats b { display: flex; align-items: center; gap: 5px; font-size: 16px; }.win-sheet p { margin: 0 0 10px; color: var(--muted); font-size: 10px; }.win-sheet .white-button { margin-top: 7px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(20px + var(--safe-bottom)); max-width: calc(100% - 28px); transform: translateX(-50%); padding: 11px 15px; border-radius: 99px; color: #fff; background: rgba(12,64,84,.95); box-shadow: 0 9px 25px rgba(5,58,78,.25); font-size: 9px; text-align: center; animation: toast .22s ease both; }.toast.error { background: rgba(201,67,65,.96); }@keyframes toast{from{opacity:0;transform:translate(-50%,9px)}}

@media (min-width: 620px) {
  .app { padding-left: 24px; padding-right: 24px; }
  .hero-card { min-height: 470px; }.hero-map { height: 385px; top: 73px; }.hero-copy h1 { font-size: 39px; }
  .ocean-board-wrap { width: min(67vh, 590px); margin: 0 auto; }.game-status,.game-controls,.coach,.rules-mini { width: min(67vh,590px); margin-left:auto;margin-right:auto; }
  .upgrade-grid { grid-template-columns: repeat(4,1fr); }.level-grid { grid-template-columns: repeat(10,1fr); }
}
@media (max-width: 360px) {
  .app { padding-left: 9px; padding-right: 9px; }.logo b { font-size: 14px; }.wallet > span { padding: 0 7px; }.hero-card { min-height: 400px; }.hero-map { top: 70px; height: 305px; }.hero-copy h1 { font-size: 24px; }.home-tile { min-height: 136px; }.rules-mini span { font-size: 7px; }.upgrade-card { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; } }
