:root {
  --paper: #efece3;
  --paper-light: #f6f3eb;
  --ink: #292c27;
  --muted: #77796c;
  --line: #d5d2c6;
  --red: #a4483b;
  --jade: #687b68;
  --serif:
    "STKaiti", "KaiTi", "Kaiti SC", "Noto Serif CJK SC", "Songti SC", serif;
  --body: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 300px;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 20% 25%, #faf7ed88, transparent 58%),
    var(--paper);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:not(.target) {
  min-height: 44px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.32' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.site-header {
  height: 102px;
  max-width: 1320px;
  margin: auto;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 4px;
  padding: 0;
}
.brand small {
  display: block;
  font-size: 10px;
  font-family: var(--body);
  letter-spacing: 5px;
  margin-top: 8px;
  color: var(--muted);
}
.brand-seal {
  background: var(--red);
  border: 1px solid #8e382e;
  outline: 1px solid var(--red);
  outline-offset: 2px;
  color: #f1e9d7;
  font-size: 16px;
  line-height: 1.17;
  letter-spacing: 1px;
  padding: 4px 7px;
  transform: rotate(-3deg);
}
nav {
  display: flex;
  gap: 39px;
  height: 100%;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  letter-spacing: 2px;
  position: relative;
  height: 100%;
  padding: 0 4px;
}
.nav-link.active {
  color: var(--red);
}
.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 17px;
}
.ink-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.ink-balance > span:first-child {
  font-size: 22px;
  color: var(--red);
}
.ink-balance b {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}
.icon-button {
  display: grid;
  place-items: center;
  min-width: 40px;
  padding: 8px;
}
.icon-button[aria-pressed="true"] {
  color: var(--red);
}
.screen {
  max-width: 1212px;
  margin: auto;
}
.hero {
  height: 493px;
  position: relative;
  isolation: isolate;
}
.hero-landscape {
  position: absolute;
  z-index: -2;
  inset: -1px -54px 0 auto;
  width: 93%;
  height: 100%;
  object-fit: cover;
  object-position: right 52%;
  mix-blend-mode: multiply;
  opacity: 0.78;
  mask-image:
    linear-gradient(90deg, transparent, black 34%, black 90%, transparent),
    linear-gradient(0deg, transparent, black 13%, black 90%, transparent);
  mask-composite: intersect;
}
.hero-canvas {
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  opacity: 0.92;
}
.hero-copy {
  position: relative;
  padding: 47px 0 0 24px;
  width: 53%;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2.7px;
  color: var(--muted);
  font-weight: 400;
}
.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-copy > .eyebrow > span {
  width: 24px;
  height: 1px;
  background: var(--red);
}
.hero h1 {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  letter-spacing: 8px;
  line-height: 1.2;
  margin: 19px 0 18px;
}
.hero h1 > span {
  color: #3d5144;
}
.title-seal {
  position: absolute;
  right: -35px;
  bottom: 9px;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.6;
  font-style: normal;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px;
  transform: rotate(3deg);
}
.hero-description {
  font-size: 14px;
  line-height: 1.95;
  color: #727466;
  letter-spacing: 1.5px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
}
.brush-button {
  background: var(--red);
  color: #fff5e6;
  padding: 15px 25px;
  min-width: 184px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 3px;
  clip-path: polygon(1% 6%, 98% 0, 100% 94%, 3% 100%, 0 53%);
  box-shadow: inset 0 0 0 4px #ffffff08;
  transition:
    background 0.2s,
    transform 0.2s;
}
.brush-button:hover {
  background: #873f32;
  transform: translateY(-2px);
}
.brush-button > span {
  margin-left: 18px;
  letter-spacing: 0;
}
.text-button {
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 0;
  color: #62695c;
}
.text-button > span {
  margin-left: 12px;
}
.text-button:hover {
  color: var(--red);
}
.hero-note {
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #818475;
  margin-top: 16px;
}
.tiny-flower {
  color: var(--red);
  margin-right: 7px;
  font-size: 16px;
}
.vertical-poem {
  position: absolute;
  right: 28px;
  top: 42px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 8px;
  color: #797e71;
  display: flex;
  gap: 20px;
}
.vertical-poem span {
  padding-top: 32px;
}
.art-caption {
  position: absolute;
  right: 11%;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #707569;
}
.art-caption > i {
  width: 27px;
  height: 1px;
  background: #9c9f90;
}
.art-caption b {
  font-size: 15px;
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
}
.art-caption small {
  border-left: 1px solid #c7cabd;
  padding-left: 11px;
}
.mode-section {
  display: flex;
  gap: 35px;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 23px 24px;
  background: #f8f5ec42;
}
.section-label {
  flex: 0 0 145px;
  font-size: 14px;
  letter-spacing: 1px;
}
.section-label small {
  font-family: Georgia, serif;
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #949587;
  margin-top: 10px;
}
.mode-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  flex: 1;
}
.mode-option {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 21px;
  position: relative;
}
.mode-option.selected {
  color: var(--red);
}
.mode-symbol {
  font-family: var(--serif);
  font-size: 31px;
  color: #858b7a;
}
.selected .mode-symbol {
  color: var(--red);
}
.mode-option h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 2px;
}
.mode-option h3 small {
  font-family: var(--body);
  font-size: 10px;
  margin-left: 9px;
  letter-spacing: 0;
  color: var(--muted);
}
.mode-option p {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.mode-radio {
  position: absolute;
  right: 0;
  top: 9px;
  border: 1px solid #b3b8a8;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.selected .mode-radio {
  border-color: var(--red);
  box-shadow: inset 0 0 0 3px var(--paper);
  background: var(--red);
}
.garden-strip {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.strip-flower {
  width: 65px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #626f5b;
  opacity: 0.77;
}
.garden-strip h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 8px 0;
}
.garden-strip p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
}
.garden-strip .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.garden-strip > .text-button {
  margin-left: 15px;
  white-space: nowrap;
}
.strip-stats {
  display: flex;
  margin-left: auto;
  gap: 43px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.strip-stats span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.strip-stats b {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #5e6655;
  font-size: 25px;
  letter-spacing: 0;
}
.muted {
  color: #c1c2b5;
  margin: 0 5px;
}
.site-footer {
  max-width: 1212px;
  margin: 0 auto;
  padding: 19px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a8d7f;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.site-footer i {
  font-style: normal;
  margin: 0 7px;
}
.site-footer .text-button {
  font-size: 10px;
  min-height: 24px;
  padding: 0;
}
.site-footer p {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 3px;
}
.play-screen {
  padding: 20px 24px 28px;
}
.game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  padding-bottom: 14px;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  gap: 48px;
}
.game-frame {
  border: 1px solid #c9cebe;
  background: radial-gradient(ellipse at 50% 40%, #fbf9f080, #e1e5d945);
  box-shadow: 0 12px 50px #5a65500b;
  min-width: 0;
}
.game-hud {
  height: 88px;
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.game-hud small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  display: block;
}
.game-hud strong {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  display: block;
  margin-top: 4px;
}
.combo-count {
  text-align: center;
}
.combo-count strong {
  font-size: 36px;
  color: var(--red);
  margin: 0 0 2px;
}
.time-count {
  text-align: right;
}
.time-count strong {
  font-size: 27px;
}
.time-count em {
  font-style: normal;
  font-family: var(--body);
  font-size: 11px;
  margin-left: 5px;
}
.time-line {
  height: 2px;
  background: #d7dbcf;
}
.time-line span {
  display: block;
  background: #8a9a7e;
  height: 100%;
  width: 100%;
  transition: width 0.15s linear;
}
.game-board {
  position: relative;
  width: 100%;
  height: min(54vh, 460px);
  min-height: 300px;
  overflow: hidden;
  touch-action: none;
  background-image:
    linear-gradient(#f2f0e895, #f2f0e86b), url("./assets/landscape.webp");
  background-size: cover;
  background-position: center;
}
.game-board > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}
.targets,
.effects {
  position: absolute;
  inset: 0;
}
.effects {
  pointer-events: none;
  overflow: hidden;
}
.target {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  touch-action: none;
  filter: drop-shadow(0 4px 6px #34392c15);
  transition: opacity 0.15s;
  animation: target-appear 0.22s ease-out;
  background: none;
  min-height: 0;
  outline-offset: 0;
}
.target svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke-width: 0;
}
.target:focus-visible {
  outline: 2px solid var(--red);
}
.target.hazard svg {
  opacity: 0.86;
}
.target::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed #737e6140;
  transform: rotate(-25deg);
  pointer-events: none;
}
.target.gold::after {
  border-color: #b5974e80;
}
.target.hazard::after {
  border-color: #6c716350;
}
.target.expiring {
  opacity: 0.48;
}
.target:hover:not(.hazard) {
  filter: drop-shadow(0 0 6px #b7844a45);
}
.game-bottom {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #c9cebe;
  font-size: 10px;
  color: var(--muted);
}
#stage-label {
  color: var(--jade);
}
.bloom-track {
  display: flex;
  align-items: center;
  color: #8b9380;
  gap: 5px;
}
.bloom-track span {
  border: 1px solid #bbc4af;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-family: Georgia, serif;
  font-size: 10px;
}
.bloom-track span.reached {
  background: #a65955;
  color: #fff0dc;
  border-color: #a65955;
}
.bloom-track i {
  width: 18px;
  height: 1px;
  background: #c6ccbb;
}
.board-inscription {
  position: absolute;
  bottom: 22px;
  left: 20px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 5px;
  color: #8f998250;
  pointer-events: none;
}
.game-aside {
  padding-top: 30px;
}
.side-number {
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--red);
}
.game-aside h2 {
  font-family: var(--serif);
  font-size: 47px;
  font-weight: 400;
  letter-spacing: 7px;
  line-height: 1.5;
  margin: 19px 0 18px;
}
.game-aside > p {
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
  letter-spacing: 1px;
}
.side-rule {
  height: 1px;
  background: var(--line);
  width: 45px;
  margin: 28px 0;
}
.target-key {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  margin: 18px 0;
}
.target-key > span:first-child {
  font-size: 27px;
  width: 24px;
  text-align: center;
}
.key-bud {
  color: #6b775e;
}
.key-gold {
  color: #ac9150;
}
.key-hazard {
  color: #363e34;
}
.target-key small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.game-aside > .quiet-note {
  font-size: 10px;
  margin-top: 28px;
  color: #8c9482;
  line-height: 2;
}
.stage-announcement {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 37px;
  letter-spacing: 7px;
  white-space: nowrap;
  color: #a4483b;
  text-shadow:
    0 1px 15px #fff,
    0 0 35px #fff;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}
.stage-announcement.show {
  animation: stage-reveal 1.7s both;
}
.hit-effect {
  position: absolute;
  font-family: var(--serif);
  font-size: 22px;
  white-space: nowrap;
  color: var(--red);
  animation: score-rise 0.7s ease-out forwards;
  transform: translate(-50%, -50%);
}
.petal {
  position: absolute;
  width: 7px;
  height: 11px;
  border-radius: 70% 20% 60% 40%;
  background: #b96d70;
  animation: petal-fly 0.8s ease-out forwards;
  transform: translate(-50%, -50%);
}
.inner-screen {
  padding: 46px 24px 40px;
  min-height: 670px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}
.page-heading h1 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 6px;
  margin: 14px 0;
}
.page-heading p:last-child {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
}
.small-seal {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0;
  border: 1px solid var(--red);
  padding: 4px;
  color: var(--red);
  vertical-align: middle;
  margin-left: 18px;
  display: inline-block;
  transform: rotate(4deg);
}
.plant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.plant-card {
  border: 1px solid var(--line);
  background: #f8f5ec60;
  position: relative;
  padding: 20px 20px 18px;
}
.plant-card.equipped {
  border-color: #9ba58c;
}
.plant-preview {
  height: 190px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.plant-preview canvas {
  width: 100%;
  height: 100%;
}
.plant-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plant-card h2 small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.plant-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 9px;
  min-height: 40px;
}
.plant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.plant-actions button {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #bcc4b1;
}
.plant-actions button[data-cultivate] {
  background: #6f7c61;
  color: var(--paper-light);
  border-color: #6f7c61;
}
.plant-card.locked .plant-preview {
  filter: grayscale(1);
  opacity: 0.6;
}
.plant-card .equipped-label {
  position: absolute;
  right: 13px;
  top: 14px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--jade);
  writing-mode: vertical-rl;
  z-index: 1;
}
.garden-progress {
  margin-top: 36px;
  border-block: 1px solid var(--line);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  align-items: center;
  gap: 30px;
}
.garden-progress h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  margin: 9px 0;
}
.garden-progress p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
}
.progress-line {
  height: 3px;
  background: #d7dbcd;
  position: relative;
}
.progress-line > span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--jade);
}
.garden-progress > small {
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: 12px;
}
.storage-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 22px;
  letter-spacing: 1px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.collection-item {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 0 0 0 22px;
}
.collection-item canvas {
  height: 200px;
  width: 100%;
  display: block;
}
.collection-item h2 {
  font-size: 30px;
  font-family: var(--serif);
  font-weight: 400;
  margin: 16px 0;
  letter-spacing: 5px;
}
.collection-item .poem {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  color: #56604d;
}
.collection-item .plant-lore {
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
  margin: 15px 0;
}
.collection-state {
  font-size: 10px;
  color: var(--red);
  letter-spacing: 2px;
}
.achievement-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding-top: 32px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.achievement {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.6;
}
.achievement.unlocked {
  opacity: 1;
}
.achievement .medallion {
  width: 42px;
  height: 42px;
  border: 1px solid #9aab8d;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--jade);
}
.achievement h3 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
}
.achievement p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
dialog {
  border: 1px solid #bfc5b3;
  padding: 44px 44px 34px;
  background: var(--paper-light);
  color: var(--ink);
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 30px 100px #242f3040;
  overflow: auto;
}
dialog::backdrop {
  background: #27332a55;
  backdrop-filter: blur(5px);
}
.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 25px;
  color: var(--muted);
}
dialog h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 35px;
  letter-spacing: 4px;
  margin: 10px 0 18px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.modal-actions .brush-button {
  font-size: 18px;
  min-width: 160px;
}
.help-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.help-list li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  display: flex;
  gap: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.help-list b {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}
.help-list span > small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.setting-row input[type="checkbox"] {
  accent-color: var(--jade);
  width: 20px;
  height: 20px;
}
.setting-row input[type="range"] {
  width: 130px;
  accent-color: var(--jade);
}
.setting-caption {
  margin-top: 16px !important;
  font-size: 11px !important;
}
.result-content {
  text-align: center;
}
.result-seal {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--red);
  outline: 1px solid var(--red);
  outline-offset: 3px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 29px;
  transform: rotate(-5deg);
  margin: 8px 0 10px;
}
.result-content .result-score {
  font-family: Georgia, serif;
  font-size: 58px;
  color: var(--ink);
  line-height: 1.4;
}
.result-content .result-caption {
  font-size: 10px;
  letter-spacing: 3px;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
  border-block: 1px solid var(--line);
  padding: 16px 0;
}
.result-stats span {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.result-stats b {
  font-size: 23px;
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--ink);
}
.result-reward {
  font-size: 14px !important;
  color: var(--red) !important;
}
.toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #303b2f;
  color: #f5f0e5;
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 1px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.new-best {
  color: var(--red);
  font-size: 11px;
  letter-spacing: 2px;
  display: block;
  margin-top: 4px;
}
.countdown {
  font-family: var(--serif);
  font-size: 80px;
  text-align: center;
}
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
.reduced-motion .stage-announcement.show {
  animation: none !important;
  opacity: 1;
}
@keyframes target-appear {
  from {
    scale: 0.5;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}
@keyframes score-rise {
  to {
    translate: 0 -45px;
    opacity: 0;
  }
}
@keyframes petal-fly {
  to {
    translate: var(--dx) var(--dy);
    rotate: var(--turn);
    opacity: 0;
  }
}
@keyframes stage-reveal {
  0% {
    opacity: 0;
    filter: blur(5px);
  }
  20%,
  70% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    translate: 0 -10px;
  }
}
@media (min-width: 1500px) {
  .site-header {
    max-width: 1440px;
  }
  .screen,
  .site-footer {
    max-width: 1300px;
  }
  .hero {
    height: 550px;
  }
  .hero-copy {
    padding-top: 65px;
  }
  .hero h1 {
    font-size: 86px;
  }
  .mode-section {
    padding-block: 27px;
  }
  .garden-strip {
    padding-block: 34px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding-inline: 32px;
  }
  .screen,
  .site-footer {
    margin-inline: 32px;
  }
  .hero {
    height: 460px;
  }
  .hero-copy {
    padding-left: 0;
    padding-top: 43px;
  }
  .hero h1 {
    font-size: 66px;
  }
  .hero-landscape {
    right: -32px;
  }
  .mode-section {
    gap: 20px;
    padding-inline: 0;
  }
  .section-label {
    flex-basis: 115px;
    font-size: 12px;
  }
  .section-label small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .mode-options {
    gap: 13px;
  }
  .mode-option {
    padding-left: 14px;
    gap: 8px;
  }
  .mode-option h3 {
    font-size: 19px;
  }
  .mode-option h3 small {
    display: block;
    margin: 4px 0 0;
  }
  .mode-option p {
    font-size: 10px;
  }
  .garden-strip {
    padding-inline: 0;
  }
  .strip-stats {
    gap: 15px;
  }
  .strip-stats span {
    flex-direction: column;
    gap: 4px;
  }
  .play-screen {
    padding-inline: 0;
  }
  .play-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 190px;
  }
  .game-aside h2 {
    font-size: 40px;
  }
  .inner-screen {
    padding-inline: 0;
  }
  .plant-grid,
  .collection-grid {
    gap: 14px;
  }
  .plant-card {
    padding-inline: 12px;
  }
  .plant-preview {
    height: 170px;
  }
  .plant-actions button {
    font-size: 10px;
    padding-inline: 7px;
  }
  .site-footer {
    padding-inline: 0;
  }
  .brand {
    font-size: 22px;
  }
  .header-tools {
    gap: 10px;
  }
  nav {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 80px;
    padding: 0 22px;
  }
  .brand {
    font-size: 20px;
    letter-spacing: 2px;
    gap: 11px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 4px;
    margin-top: 5px;
  }
  .brand-seal {
    font-size: 13px;
    padding: 4px 6px;
  }
  .header-tools {
    gap: 4px;
  }
  .ink-balance {
    gap: 5px;
    font-size: 10px;
  }
  .ink-balance b {
    font-size: 18px;
  }
  .ink-label {
    display: none;
  }
  nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #f4f1e7f5;
    z-index: 30;
    justify-content: center;
    gap: 65px;
    border-top: 1px solid var(--line);
  }
  .nav-link {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .nav-link.active:after {
    bottom: 8px;
  }
  .screen,
  .site-footer {
    margin-inline: 22px;
  }
  .hero {
    height: 573px;
  }
  .hero-copy {
    width: 100%;
    padding-top: 32px;
    z-index: 2;
    pointer-events: none;
  }
  .hero-copy button {
    pointer-events: auto;
  }
  .hero-copy > .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .hero h1 {
    font-size: 63px;
    line-height: 1.18;
    letter-spacing: 7px;
    margin-top: 21px;
    margin-bottom: 16px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.95;
    letter-spacing: 1px;
  }
  .hero-landscape {
    width: calc(100% + 44px);
    right: -22px;
    top: 118px;
    height: 405px;
    opacity: 0.65;
    mask-image: linear-gradient(
      0deg,
      transparent,
      black 20%,
      black 74%,
      transparent
    );
    object-position: 64% center;
  }
  .hero-canvas {
    top: 185px;
    right: -12px;
    height: 350px;
    width: 84%;
    opacity: 0.86;
  }
  .hero-actions {
    margin-top: 167px;
    gap: 25px;
  }
  .hero-note {
    font-size: 9px;
    letter-spacing: 0.4px;
    margin-top: 10px;
  }
  .brush-button {
    min-width: 176px;
    font-size: 19px;
    padding: 15px 22px;
  }
  .hero .vertical-poem {
    top: 40px;
    right: 1px;
    font-size: 12px;
    letter-spacing: 6px;
  }
  .hero .vertical-poem span {
    padding-top: 23px;
  }
  .hero .art-caption {
    right: 4px;
    bottom: 124px;
    font-size: 9px;
    gap: 7px;
    letter-spacing: 1px;
  }
  .art-caption b {
    font-size: 13px;
  }
  .art-caption small {
    display: none;
  }
  .title-seal {
    right: -28px;
    font-size: 9px;
    padding: 2px;
    bottom: 10px;
  }
  .mode-section {
    display: block;
    padding: 19px 0 21px;
  }
  .section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 17px;
  }
  .section-label small {
    margin: 0;
    font-size: 7px;
  }
  .mode-options {
    gap: 0;
  }
  .mode-option {
    padding: 0 10px 0 14px;
    gap: 9px;
  }
  .mode-option:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .mode-symbol {
    font-size: 25px;
  }
  .mode-option h3 {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .mode-option h3 small {
    font-size: 9px;
    margin-top: 4px;
  }
  .mode-option p {
    display: none;
  }
  .mode-radio {
    right: 10px;
    top: 0;
    width: 9px;
    height: 9px;
  }
  .garden-strip {
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
  }
  .strip-flower {
    width: 43px;
    font-size: 34px;
  }
  .garden-strip h2 {
    font-size: 18px;
    letter-spacing: 0.3px;
  }
  .garden-strip p:not(.eyebrow) {
    font-size: 9px;
    line-height: 1.7;
    max-width: 230px;
  }
  .garden-strip > .text-button {
    margin-left: auto;
    font-size: 11px;
  }
  .strip-stats {
    display: none;
  }
  .garden-strip .eyebrow {
    font-size: 9px;
  }
  .site-footer {
    padding: 16px 0 92px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .site-footer p {
    display: none;
  }
  .site-footer .text-button {
    font-size: 9px;
  }
  .play-screen {
    padding-top: 10px;
    padding-bottom: 75px;
    margin-inline: 12px;
  }
  .playing .site-header {
    height: 66px;
  }
  .playing .site-footer,
  .playing nav {
    display: none;
  }
  .game-topline {
    font-size: 10px;
    padding-bottom: 8px;
    letter-spacing: 1px;
  }
  .game-topline .text-button {
    font-size: 11px;
  }
  .play-layout {
    display: block;
  }
  .game-aside {
    display: none;
  }
  .game-hud {
    height: 75px;
    padding: 11px 18px;
  }
  .game-hud strong {
    font-size: 28px;
  }
  .combo-count strong {
    font-size: 31px;
  }
  .game-hud small {
    font-size: 9px;
  }
  .time-count strong {
    font-size: 24px;
  }
  .game-board {
    height: calc(100dvh - 265px);
    min-height: 285px;
    max-height: none;
  }
  .game-bottom {
    padding: 13px 10px;
    font-size: 9px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .bloom-track {
    gap: 3px;
  }
  .bloom-track i {
    width: 12px;
  }
  .bloom-track span {
    width: 21px;
    height: 21px;
    font-size: 9px;
  }
  #next-stage {
    font-size: 8px;
  }
  .stage-announcement {
    font-size: 28px;
    letter-spacing: 4px;
  }
  .inner-screen {
    padding-top: 30px;
    min-height: 65vh;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 37px;
    letter-spacing: 4px;
    margin: 15px 0;
  }
  .page-heading .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .page-heading p:last-child {
    font-size: 11px;
    line-height: 1.8;
  }
  .page-heading > .text-button {
    font-size: 10px;
    white-space: nowrap;
    margin-top: 37px;
  }
  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .plant-preview {
    height: 150px;
  }
  .plant-card {
    padding: 14px 12px;
  }
  .plant-card h2 {
    font-size: 24px;
    letter-spacing: 3px;
  }
  .plant-card h2 small {
    font-size: 9px;
  }
  .plant-card p {
    font-size: 10px;
    min-height: 42px;
  }
  .plant-actions {
    gap: 4px;
  }
  .plant-actions button {
    font-size: 10px;
    padding: 7px 6px;
  }
  .plant-card .equipped-label {
    font-size: 9px;
    right: 7px;
    top: 9px;
  }
  .garden-progress {
    grid-template-columns: 1fr 85px;
    gap: 15px;
    padding: 22px 0;
  }
  .garden-progress > div:first-child {
    grid-column: 1/-1;
  }
  .garden-progress h2 {
    font-size: 24px;
  }
  .garden-progress > small {
    font-size: 10px;
  }
  .storage-note {
    font-size: 9px;
    line-height: 1.9;
  }
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 18px;
  }
  .collection-item {
    padding-left: 12px;
  }
  .collection-item canvas {
    height: 165px;
  }
  .collection-item h2 {
    font-size: 28px;
  }
  .collection-item .poem {
    font-size: 14px;
  }
  .collection-item .plant-lore {
    font-size: 10px;
  }
  .achievement-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .achievement h3 {
    font-size: 13px;
  }
  .achievement p {
    font-size: 10px;
  }
  dialog {
    padding: 36px 26px 26px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .modal-actions {
    gap: 20px;
  }
  .modal-actions .brush-button {
    font-size: 17px;
    min-width: 146px;
    padding: 14px;
  }
  .toast {
    bottom: 80px;
    font-size: 12px;
    min-width: 220px;
  }
  .site-header .icon-button {
    min-width: 33px;
    padding: 6px;
  }
  .site-header button svg {
    width: 19px;
    height: 19px;
  }
}
@media (max-width: 370px) {
  .site-header {
    padding-inline: 16px;
  }
  .screen,
  .site-footer {
    margin-inline: 16px;
  }
  .brand {
    font-size: 18px;
  }
  .header-tools {
    gap: 0;
  }
  .hero h1 {
    font-size: 55px;
    letter-spacing: 5px;
  }
  .hero {
    height: 554px;
  }
  .hero-copy > .eyebrow {
    font-size: 9px;
  }
  .hero .vertical-poem {
    font-size: 10px;
    right: -2px;
  }
  .hero-actions {
    margin-top: 172px;
    gap: 18px;
  }
  .hero .art-caption {
    bottom: 119px;
  }
  .hero-note {
    font-size: 8px;
  }
  .hero-actions .text-button {
    font-size: 11px;
  }
  .brush-button {
    min-width: 159px;
    font-size: 18px;
  }
  .mode-option {
    padding-left: 10px;
    gap: 7px;
  }
  .mode-symbol {
    font-size: 23px;
  }
  .mode-option h3 {
    font-size: 18px;
  }
  .mode-radio {
    right: 5px;
  }
  .garden-strip > .text-button {
    margin-left: 54px;
    margin-top: -9px;
    padding: 0;
    min-height: 28px;
  }
  .garden-strip p:not(.eyebrow) {
    max-width: 216px;
  }
  .play-screen {
    margin-inline: 8px;
  }
  .game-topline {
    font-size: 9px;
  }
  .game-bottom {
    font-size: 8px;
    padding-inline: 8px;
  }
  .bloom-track i {
    width: 8px;
  }
  .bloom-track span {
    width: 18px;
    height: 18px;
  }
  #next-stage {
    font-size: 7px;
  }
  .plant-grid {
    gap: 10px;
  }
  .plant-card {
    padding-inline: 9px;
  }
  .plant-actions {
    flex-wrap: wrap;
  }
  .plant-actions button {
    flex: 1;
  }
  .plant-preview {
    height: 130px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading > .text-button {
    font-size: 9px;
  }
  .small-seal {
    margin-left: 10px;
  }
  .stage-announcement {
    font-size: 25px;
  }
  .setting-row input[type="range"] {
    width: 95px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  .hero .art-caption {
    display: none;
  }
  .hero-canvas {
    opacity: 0.58;
  }
  .play-screen {
    padding-bottom: 10px;
  }
}
.game-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#f2f0e820, #f2f0e809),
    url("./assets/landscape-color.webp") center/cover;
  opacity: var(--color-wash, 0);
  transition: opacity 2.4s ease;
  pointer-events: none;
}
.game-board.other-plant {
  background-position: left bottom;
  background-size: 200% 100%;
}
.home-screen.other-plant .hero-landscape {
  opacity: 0.35;
  mask-image: linear-gradient(90deg, transparent, black 35%, transparent 78%);
}
.playing .site-footer {
  display: none;
}
.hero {
  overflow: hidden;
}
/* Keep active targets readable over fully colored branches. */
.target {
  background: radial-gradient(
    circle,
    #f8f3e7ee 0%,
    #f8f3e7bb 45%,
    #f8f3e700 73%
  );
}
@media (min-width: 761px) {
  .art-caption {
    right: 30%;
    bottom: 20px;
  }
}
