:root {
  color-scheme: light;
  --ink: #2c2844;
  --muted: #625975;
  --plum: #754d82;
  --paper: #fffdf9;
  --line: #e6dce9;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font: 15px/1.55 var(--body); background: radial-gradient(ellipse at 4% 9%,#ffe5db 0,transparent 30%),radial-gradient(ellipse at 94% 22%,#ece2fa 0,transparent 40%),#faf6fa; }
a { color: #643b79; }
a:hover { color: #48265c; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #774bab; outline-offset: 4px; }
.icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.15em; }
.frame { width: min(1152px,calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 12px; top: 8px; transform: translateY(-150%); background: white; padding: 10px 16px; border-radius: 10px; }
.skip:focus { transform: none; }
.site-head { background: #fffaf6d9; border-bottom: 1px solid #e9dce7; }
.head-inner { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head-inner nav { display: flex; gap: clamp(10px,3vw,28px); font-size: 13px; font-weight: 650; }
.head-inner a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 0; font: bold 23px/1 var(--display); color: var(--ink); }
.brand > span:last-child { color: #a34c77; }
.brand-mark { display: grid; place-items: center; margin-right: 8px; width: 28px; height: 28px; border-radius: 10px; background: #f3d7e7; color: #8d477a; }
.brand-mark svg { width: 15px; height: 15px; }
.crumbs { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.intro { margin: 22px 0 23px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #7b426b; font-size: 11px; font-weight: 800; letter-spacing: .16em; margin: 0; }
.eyebrow .icon { width: 16px; height: 16px; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 clamp(41px,6vw,77px)/1.02 var(--display); letter-spacing: -.055em; margin: 5px 0 7px; }
h1 em { color: var(--plum); font-weight: 500; }
.intro > p:last-child { color: var(--muted); font-size: clamp(14px,2vw,17px); }
.game-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.42fr); align-items: start; gap: 16px; }
.play-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 10px 28px #3925510b; }
.play-card { padding: 9px; min-width: 0; }
.side { display: grid; gap: 12px; }
.panel { padding: 16px 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel h2 { font: bold 23px/1.18 var(--display); letter-spacing: -.025em; }
.panel-tag { flex: none; color: #745785; background: #f1eaf8; padding: 3px 6px; border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: .045em; }
.side-note, .save-status { margin-top: 10px; color: var(--muted); font-size: 11px; }
.reward-card { display: flex; gap: 8px; align-items: center; background: #f5eaf5; border: 1px solid #e8d7eb; border-radius: 10px; padding: 7px 9px; color: #603c70; }
.reward-card .icon { width: 23px; height: 23px; }
.reward-card div { display: grid; }
.reward-card b { font-size: 12px; }
.reward-card span { color: #695472; font-size: 11px; }
.reward-card a { font-size: 12px; font-weight: 750; width: fit-content; }
.shop { margin: 17px 0 35px; padding: clamp(15px,2.6vw,27px); }
.shop h2, .guide h2 { margin: 4px 0 5px; font: bold clamp(26px,4vw,38px)/1.13 var(--display); letter-spacing: -.028em; }
.shop > p:not(.eyebrow), .guide-note { color: var(--muted); font-size: 14px; }
.shop-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.shop-item { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 3px; padding: 9px 5px 8px; background: #faf5fd; border: 1px solid #e8dced; border-radius: 13px; text-align: center; }
.shop-item[aria-pressed="true"] { background: #edf7ef; border-color: #bedac9; }
.shop-item:hover { border-color: #8b659c; }
.shop-item svg { width: 51px; height: 51px; }
.shop-item b { font-size: 12px; line-height: 1.25; }
.shop-item span { margin-top: auto; font-size: 11px; color: #694a79; }
.shop-item[aria-pressed="true"] span { color: #3d674e; }
.shop-feedback { margin: 9px 0 0; color: #514766; font-size: 13px; font-weight: 640; }
.guide { margin: 0 0 35px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin: 14px 0 13px; }
.guide-grid .panel { border-radius: 17px; }
.guide h3 { font-size: 15px; color: #8b5e8d; margin-bottom: 7px; }
.guide h3 span { color: var(--ink); margin-left: 4px; }
.guide-grid p { font-size: 13px; color: var(--muted); }
.more { display: flex; flex-wrap: wrap; gap: 8px 19px; margin-top: 14px; font-weight: 720; font-size: 13px; }
.site-foot { border-top: 1px solid var(--line); background: #fffaf6; color: var(--muted); font-size: 12px; padding: 16px 0; }
.site-foot span { padding: 0 4px; }
.notice { margin: 8px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.pond-hud { display: flex; align-items: center; gap: 7px; padding: 3px 2px 8px; color: #443559; font-size: 13px; font-weight: 750; }
.hud-pond { margin-right: auto; padding-inline: 6px; }
.hud-counter { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 9px; background: #f5ebf8; border: 1px solid #e9deed; padding: 4px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-counter .icon, .bank .icon { width: 17px; height: 17px; }
.pond { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: #285c6a; }
#water { display: block; width: 100%; aspect-ratio: 720/456; min-height: 240px; touch-action: none; background: url('assets/pond.svg') center/100% 100%; }
#water:focus-visible { outline-offset: -4px; outline-color: #ffe9b4; }
.streak { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: #fce6a8; border-radius: 100px; padding: 3px 11px; color: #563c3e; font-size: 12px; font-weight: 850; pointer-events: none; white-space: nowrap; }
.veil { position: absolute; inset: 0; display: grid; place-items: center; background: #122e4970; padding: 12px; }
.overlay { width: min(100%, 350px); padding: clamp(13px,3vw,25px); text-align: center; background: #fffaf2f7; color: var(--ink); border: 1px solid #f4e8e0; border-radius: 20px; box-shadow: 0 12px 30px #11233955; }
.overlay > span { color: #7b426b; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.overlay h2 { font: bold clamp(27px,5vw,43px)/1.09 var(--display); margin: 3px 0 5px; letter-spacing: -.03em; }
.overlay p { color: var(--muted); font-size: 13px; }
.overlay-buttons { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.primary, .secondary, .dash, .small-btn { border: 1px solid transparent; border-radius: 10px; min-height: 43px; padding: 7px 13px; font-size: 13px; font-weight: 760; }
.primary, .dash { color: #fff; background: #754682; border-color: #754682; }
.primary:hover, .dash:hover:not(:disabled) { background: #60356d; }
.secondary, .small-btn { background: #f5eef7; border-color: #e8ddec; color: #68417d; }
.small-btn { min-width: 42px; padding-inline: 7px; white-space: nowrap; }
.small-btn[aria-pressed="true"] { background: #e7f5ee; color: #2a625c; }
.control-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 1px 3px; }
.objective { color: #50415f; font-size: 13px; font-weight: 690; }
.control-buttons { display: flex; align-items: center; gap: 5px; flex: none; }
.control-buttons button:disabled { opacity: .5; }
.dash { min-width: 85px; }
.control-note { display: flex; flex-wrap: wrap; gap: 0 13px; color: var(--muted); font-size: 11px; margin: 4px 2px 1px; }
.control-note b { color: var(--ink); }
.stage-list { display: grid; gap: 6px; }
.stage { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; min-height: 56px; text-align: left; border: 1px solid #e8ddec; border-radius: 12px; padding: 7px 9px; background: #faf6fb; color: var(--ink); }
.stage[aria-current="true"] { background: #f2e6f5; border-color: #a775ac; }
.stage:disabled { opacity: .63; }
.stage-num { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #e8d9ee; color: #653e79; font-size: 12px; font-weight: 800; }
.stage b, .stage small { display: block; line-height: 1.25; }
.stage small { color: #695b77; margin-top: 3px; font-size: 11px; }
.stage-score { font-size: 12px; color: #804c55; white-space: nowrap; }
.bank { display: inline-flex; align-items: center; gap: 4px; color: #623d71; font-size: 14px; }
.stash > p:not(.side-note) { font-size: 13px; color: var(--muted); margin: 0 0 9px; }
@media (max-width: 860px) {
  .game-grid { grid-template-columns: minmax(0,1fr); }
  .side { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
}
@media (max-width: 610px) {
  .frame { width: calc(100% - 24px); }
  .head-inner { min-height: 49px; }
  .head-inner nav { font-size: 12px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 24px; height: 24px; margin-right: 5px; }
  .crumbs { margin-top: 10px; }
  .intro { margin: 11px 0 12px; }
  h1 { font-size: clamp(34px,8vw,49px); }
  .side, .guide-grid { grid-template-columns: 1fr; }
  .play-card { padding: 6px; border-radius: 19px; }
  .control-bar { align-items: start; }
  .objective { font-size: 12px; min-height: 43px; display: flex; align-items: center; }
  .control-buttons { gap: 3px; }
  .dash { min-width: 66px; padding-inline: 6px; }
  .small-btn { min-width: 33px; padding-inline: 5px; }
  .control-note { font-size: 10px; }
  .shop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.pond-decor { position: absolute; inset: 0; pointer-events: none; opacity: .65; }
.pond-decor svg { position: absolute; width: clamp(22px,8%,58px); transform: translate(-50%,-50%); }

/* Keep the illustration visible behind the title and entry control. */
.start-cover { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.veil[data-cover] { align-items: end; justify-items: start; padding: clamp(13px,3vw,27px); background: #13384b; }
.veil[data-cover] .start-cover { display: block; }
.veil[data-cover]::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg,#10243cf7 1%,#10243c9c 27%,#10243c00 70%); }
.veil[data-cover] .overlay { position: relative; z-index: 2; width: min(100%, 340px); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
.veil[data-cover] .overlay > span { color: #ffe3a5; }
.veil[data-cover] .overlay h2 { color: #fff9ef; }
.veil[data-cover] .overlay p { color: #fff5f1; text-shadow: 0 1px 3px #10243c; }
.veil[data-cover] .overlay-buttons { justify-content: flex-start; }
.overlay .primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding-inline: 15px; border-color: #bd98ce; box-shadow: 0 2px 0 #452b52; }
.overlay-play-mark { width: 10px; height: 12px; flex: none; background: #ffe0a2; clip-path: polygon(0 0,100% 50%,0 100%); }
@media (max-width: 610px) {
  .veil[data-cover] .overlay h2 { font-size: 27px; }
  .veil[data-cover] .overlay p { max-width: 240px; font-size: 11px; line-height: 1.35; }
  .veil[data-cover] .overlay-buttons { margin-top: 8px; }
  .veil[data-cover]::before { background: linear-gradient(0deg,#10243cff 1%,#10243c9c 32%,#10243c00 75%); }
}
