:root {
  --forest: #173d25;
  --forest-2: #245b32;
  --leaf: #4d8d35;
  --leaf-light: #83bd45;
  --cream: #f7f2df;
  --paper: #fffdf5;
  --brown: #6b4528;
  --ink: #263329;
  --muted: #68766b;
  --sun: #ffc73a;
  --orange: #e67829;
  --line: #dce3ce;
  --shadow: 0 18px 45px rgba(33, 55, 31, 0.14);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: #eef3e8; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 12%, rgba(137, 190, 74, .12), transparent 24rem),
    linear-gradient(#f4f7ed, #edf2e7);
  overscroll-behavior-y: contain;
}
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 61, 37, .97);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 5px 22px rgba(17, 42, 25, .18);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; text-decoration: none; letter-spacing: .04em; }
.brand { font-size: 20px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; position: relative; display: block; background: #fff5b8; border: 2px solid #8bb543; border-radius: 50% 45% 52% 44%; transform: rotate(-4deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 100% 0 100% 0; transform-origin: bottom right; }
.brand-mark::before { width: 12px; height: 19px; left: 5px; top: 5px; background: #72ad3f; transform: rotate(-37deg); }
.brand-mark::after { width: 11px; height: 17px; right: 5px; top: 8px; background: #3e843b; transform: scaleX(-1) rotate(-34deg); }
.desktop-nav { justify-self: end; display: flex; align-items: center; gap: 4px; }
.desktop-nav a { padding: 8px 13px; border-radius: 8px; color: rgba(255,255,255,.76); text-decoration: none; font-size: 14px; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .desktop-nav a.active { color: #fff; background: rgba(255,255,255,.1); outline: none; }
.header-action { min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 8px; background: var(--sun); color: #49320d; font-size: 14px; font-weight: 900; text-decoration: none; box-shadow: inset 0 -3px rgba(146, 86, 7, .16); }
.mobile-menu { display: none; justify-self: end; position: relative; }

main { padding: 34px 20px 70px; }
.intro { width: min(1180px, 100%); margin: 0 auto 20px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.intro h1, .section-heading h2, .quick-guide h2 { margin: 3px 0 5px; color: var(--forest); font-size: clamp(27px, 3vw, 42px); line-height: 1.18; letter-spacing: -.04em; }
.intro p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--leaf) !important; font-size: 12px; font-weight: 900; letter-spacing: .17em; }
.intro-badges { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.intro-badges span { padding: 5px 10px; border: 1px solid #cedcbd; border-radius: 999px; background: rgba(255,255,255,.68); color: #557047; font-size: 12px; font-weight: 700; white-space: nowrap; }

.game-shell { width: min(1180px, 100%); margin: 0 auto; overflow: hidden; background: var(--paper); border: 1px solid #cad8ba; border-radius: 18px; box-shadow: var(--shadow); }
.game-toolbar { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 10px 16px; background: linear-gradient(110deg, #285b32, #173d25); color: #fff; }
.resource-pill { min-width: 132px; min-height: 50px; display: grid; grid-template-columns: auto auto; grid-template-rows: 1fr 1fr; column-gap: 9px; align-items: center; padding: 5px 14px 5px 8px; border: 1px solid rgba(255,236,143,.55); border-radius: 12px; background: rgba(8,28,15,.35); }
.sun-icon { grid-row: 1 / 3; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: #7d5100; background: radial-gradient(circle, #fff8ad 12%, #ffc62e 58%, #e9a217 60%, #ffc62e 66%); font-size: 23px; animation: sunPulse 3s ease-in-out infinite; }
@keyframes sunPulse { 50% { transform: rotate(12deg) scale(1.05); } }
.resource-pill strong { align-self: end; font: 900 22px/1 ui-monospace, Consolas, monospace; color: #fff5b0; }
.resource-pill small { align-self: start; color: rgba(255,255,255,.64); font-size: 11px; }
.game-stats { justify-self: center; display: flex; align-items: center; gap: 26px; }
.game-stats span { color: rgba(255,255,255,.65); font-size: 12px; text-align: center; }
.game-stats strong { display: block; color: #fff; font: 800 17px/1.3 ui-monospace, Consolas, monospace; }
.toolbar-actions { display: flex; gap: 7px; }
.icon-btn, .secondary-btn { min-height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-weight: 800; }
.icon-btn { width: 39px; font-size: 19px; }
.secondary-btn { padding: 0 13px; font-size: 13px; }
.icon-btn:hover, .secondary-btn:hover { background: rgba(255,255,255,.17); }

.difficulty-bar { min-height: 43px; display: flex; align-items: center; gap: 7px; padding: 6px 16px; background: #edf1df; border-bottom: 1px solid #cbd6b9; }
.difficulty-bar > span { margin-right: 2px; color: #607156; font-size: 12px; font-weight: 800; }
.difficulty-bar button { padding: 3px 11px; border: 1px solid #c5d1b2; border-radius: 999px; background: #f9fbf2; color: #58704c; cursor: pointer; font-size: 12px; font-weight: 800; }
.difficulty-bar button.active { border-color: var(--leaf); background: var(--leaf); color: #fff; }
.difficulty-bar button:disabled { opacity: .5; cursor: not-allowed; }
#statusText { margin: 0 0 0 auto; color: #66735f; font-size: 12px; }

.plant-deck { display: flex; align-items: stretch; gap: 9px; padding: 12px 16px; overflow-x: auto; background: #604226; border-bottom: 4px solid #452e1c; scrollbar-width: thin; }
.plant-card, .shovel-card { flex: 0 0 auto; height: 82px; position: relative; overflow: hidden; border: 2px solid #a99367; border-radius: 9px; background: linear-gradient(#f8edbd, #dfca8a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.32), 0 2px 0 rgba(0,0,0,.25); color: #382d1d; cursor: pointer; }
.plant-card { width: 104px; display: grid; grid-template-columns: 1fr; grid-template-rows: 20px 1fr 20px; padding: 2px 5px; }
.plant-card.selected { border-color: #fff79b; box-shadow: 0 0 0 3px #ffc42f, 0 3px 0 rgba(0,0,0,.3); transform: translateY(-2px); }
.plant-card.disabled { filter: saturate(.35) brightness(.75); }
.plant-card.cooling { cursor: wait; }
.card-cost { position: relative; z-index: 2; justify-self: end; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.56); font: 900 12px/18px ui-monospace, Consolas, monospace; }
.card-cost b { color: #dd9500; }
.card-art { position: relative; z-index: 2; place-self: center; filter: drop-shadow(0 2px 1px rgba(0,0,0,.18)); }
.sunflower-art { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle, #6b421d 0 25%, #a96422 27% 34%, transparent 36%), repeating-conic-gradient(#ffd348 0 20deg, #e6a422 21deg 40deg); box-shadow: 0 1px 0 #a56c18; }
.sunflower-art::before { content: ""; position: absolute; z-index: -1; left: 14px; top: 27px; width: 5px; height: 14px; border-radius: 4px; background: #4f8733; }
.sunflower-art::after { content: ""; position: absolute; z-index: -1; left: 6px; top: 31px; width: 13px; height: 7px; border-radius: 100% 0 100% 0; background: #609b38; transform: rotate(12deg); }
.peashooter-art, .snowpea-art { width: 34px; height: 27px; display: grid; place-items: center; border-radius: 52% 48% 48% 52%; background: #69a93c; color: #1f5f29; font-size: 14px; box-shadow: -7px 16px 0 -3px #559633, 10px 1px 0 -6px #153f20; }
.snowpea-art { background: #87d7d1; color: #287b7b; box-shadow: -7px 16px 0 -3px #5ca89d, 10px 1px 0 -6px #286568; }
.wallnut-art, .nut-icon { width: 34px; height: 40px; display: grid; place-items: center; border-radius: 47% 47% 42% 42%; background: #aa6b35; border: 2px solid #71451f; color: #4b2e19; font-size: 11px; font-weight: 900; }
.card-name { position: relative; z-index: 2; align-self: center; text-align: center; font-size: 12px; font-weight: 900; }
.cooldown-mask { position: absolute; z-index: 3; inset: 0; top: 100%; background: rgba(32,43,29,.62); pointer-events: none; }
.shovel-card { width: 66px; display: grid; place-items: center; align-content: center; gap: 1px; margin-left: auto; background: linear-gradient(#dbe2d4, #aebaa9); }
.shovel-card span { font-size: 29px; line-height: 1; transform: rotate(28deg); color: #566258; }
.shovel-card small { font-weight: 900; }
.shovel-card.selected { border-color: #fff; box-shadow: 0 0 0 3px #ef6b42; }

.board-wrap { padding: 14px; background: #9e7b4c; }
.lawn { width: 100%; aspect-ratio: 9 / 5; min-height: 330px; position: relative; overflow: hidden; isolation: isolate; border: 5px solid #47341e; border-radius: 12px; background-color: #75a849; background-image:
  linear-gradient(90deg, rgba(255,255,255,.055) 50%, transparent 50%),
  linear-gradient(rgba(255,255,255,.07) 50%, rgba(43,87,34,.045) 50%);
  background-size: 22.2222% 40%, 100% 40%;
  box-shadow: inset 0 0 30px rgba(34,67,26,.35);
  touch-action: manipulation;
}
.lawn::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(11.111% - 1px), rgba(53,95,36,.15) calc(11.111% - 1px) 11.111%), repeating-linear-gradient(0deg, transparent 0 calc(20% - 1px), rgba(53,95,36,.16) calc(20% - 1px) 20%); }
.lawn::after { content: ""; position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 3.2%; background: repeating-linear-gradient(0deg, #9b8453 0 18%, #8e7849 18% 20%); box-shadow: 3px 0 7px rgba(49,38,21,.35); }
.cell-layer, .plant-layer, .projectile-layer, .zombie-layer, .sun-layer, .mower-layer { position: absolute; inset: 0; }
.cell-layer { z-index: 1; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(5, 1fr); }
.lawn-cell { border: 0; background: transparent; cursor: pointer; }
.lawn-cell:hover { background: rgba(255,247,129,.16); outline: 2px solid rgba(255,244,120,.45); outline-offset: -3px; }
.lawn.placing .lawn-cell { cursor: crosshair; }
.plant-layer { z-index: 3; pointer-events: none; }
.projectile-layer { z-index: 4; pointer-events: none; }
.zombie-layer { z-index: 5; pointer-events: none; }
.sun-layer { z-index: 7; pointer-events: none; }
.mower-layer { z-index: 2; pointer-events: none; }

.entity { position: absolute; transform: translate(-50%, -50%); }
.plant { width: 9.4%; height: 17%; display: grid; place-items: center; }
.plant .sprite { position: relative; z-index: 2; display: grid; place-items: center; transform-origin: bottom; animation: plantBob 1.8s ease-in-out infinite; }
@keyframes plantBob { 50% { transform: rotate(2deg) translateY(-3%); } }
.plant .shadow { position: absolute; left: 13%; right: 13%; bottom: 3%; height: 16%; border-radius: 50%; background: rgba(30,61,23,.28); }
.plant .hp-bar, .zombie .hp-bar { position: absolute; z-index: 8; left: 13%; right: 13%; bottom: -5%; height: 4px; overflow: hidden; border-radius: 3px; background: rgba(39,30,20,.42); opacity: 0; transition: opacity .2s; }
.plant.damaged .hp-bar, .zombie.damaged .hp-bar { opacity: 1; }
.hp-bar i { display: block; height: 100%; background: #d8f55d; }
.plant-sunflower .sprite { width: 64%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #67411f 0 25%, #a96624 27% 35%, transparent 37%), repeating-conic-gradient(#ffd44a 0 20deg, #e7a327 21deg 40deg); filter: drop-shadow(0 2px 1px rgba(67,57,24,.25)); }
.plant-sunflower .sprite::before { content: ""; position: absolute; z-index: -1; left: 45%; top: 82%; width: 12%; height: 82%; border-radius: 5px; background: #477f31; }
.plant-sunflower .sprite::after { content: ""; position: absolute; z-index: -1; left: 13%; top: 105%; width: 49%; height: 29%; border-radius: 100% 0 100% 0; background: #5b9939; transform: rotate(7deg); box-shadow: 24px 9px 0 -4px #4e8c35; }
.plant-peashooter .sprite, .plant-snowpea .sprite { width: 62%; aspect-ratio: 1.1; margin-top: -13%; border: max(1px, .14vw) solid #357329; border-radius: 55% 46% 48% 52%; background: radial-gradient(circle at 35% 32%, #b3dc67 0 10%, #72ad3d 12% 58%, #4b8a31 60%); box-shadow: -8px 12px 0 -4px #245e28; }
.plant-snowpea .sprite { border-color: #347b77; background: radial-gradient(circle at 35% 32%, #d8ffff 0 10%, #8edbd3 12% 58%, #54aaa4 60%); }
.plant-peashooter .sprite::before, .plant-snowpea .sprite::before { content: ""; position: absolute; right: -30%; top: 30%; width: 42%; height: 32%; border-radius: 25% 55% 55% 25%; background: #407e2c; border: inherit; }
.plant-snowpea .sprite::before { background: #4a9e99; }
.plant-peashooter .sprite::after, .plant-snowpea .sprite::after { content: ""; position: absolute; left: 46%; top: 90%; width: 13%; height: 64%; background: #3f8130; box-shadow: -12px 16px 0 -4px #549536, 12px 18px 0 -4px #549536; }
.plant-snowpea .sprite::after { background: #4d9791; box-shadow: -12px 16px 0 -4px #65aea7, 12px 18px 0 -4px #65aea7; }
.plant-wallnut .sprite { width: 66%; height: 88%; border: max(1px, .17vw) solid #68411f; border-radius: 48% 47% 42% 43%; background: radial-gradient(circle at 38% 31%, #d99a53 0 8%, #ae6d35 10% 68%, #895029 70%); }
.plant-wallnut .sprite::before { content: "•  •"; position: absolute; top: 26%; left: 0; right: 0; color: #49301e; text-align: center; font-weight: 900; letter-spacing: .2em; }
.plant-wallnut .sprite::after { content: "⌒"; position: absolute; top: 37%; left: 0; right: 0; text-align: center; color: #4c311d; font-weight: 900; }

.projectile { width: 1.7%; aspect-ratio: 1; z-index: 4; border-radius: 50%; background: #62ad35; border: 1px solid #347424; box-shadow: 0 0 6px rgba(54,116,36,.5); }
.projectile.snow { background: #9ce8e5; border-color: #488f94; box-shadow: 0 0 8px #d8ffff; }
.projectile::after { content: ""; position: absolute; right: 85%; top: 34%; width: 140%; height: 25%; border-radius: 50%; background: rgba(238,255,194,.65); filter: blur(1px); }

.zombie { width: 8.3%; height: 18%; }
.zombie .shadow { position: absolute; left: 5%; right: 2%; bottom: 0; height: 15%; border-radius: 50%; background: rgba(28,49,23,.3); }
.zombie .sprite { position: absolute; left: 15%; bottom: 4%; width: 70%; height: 94%; animation: zombieWalk .55s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes zombieWalk { to { transform: rotate(-3deg) translateY(-3%); } }
.zombie .head { position: absolute; z-index: 3; top: 1%; left: 17%; width: 55%; height: 45%; border: max(1px, .13vw) solid #394934; border-radius: 48% 47% 42% 52%; background: #76946a; box-shadow: inset -5px -5px rgba(40,65,36,.16); }
.zombie .head::before { content: "•  ◉"; position: absolute; top: 22%; left: 10%; right: 0; color: #263427; font-size: clamp(7px, 1.05vw, 14px); font-weight: 900; letter-spacing: .06em; }
.zombie .head::after { content: "≋"; position: absolute; left: 26%; bottom: 3%; color: #27352a; font-size: clamp(8px, 1.05vw, 14px); }
.zombie .body { position: absolute; z-index: 2; left: 25%; top: 39%; width: 46%; height: 48%; border: max(1px, .13vw) solid #4a4941; background: linear-gradient(90deg, #6b493d 0 20%, #655a4f 21% 48%, #8a8172 49%); transform: skew(-3deg); }
.zombie .body::before, .zombie .body::after { content: ""; position: absolute; top: 6%; width: 18%; height: 80%; border-radius: 8px; background: #788c6b; transform-origin: top; }
.zombie .body::before { left: -23%; transform: rotate(18deg); }
.zombie .body::after { right: -23%; transform: rotate(-14deg); }
.zombie .legs { position: absolute; left: 29%; bottom: 0; width: 45%; height: 25%; border-left: clamp(4px, .7vw, 9px) solid #44423e; border-right: clamp(4px, .7vw, 9px) solid #44423e; }
.zombie-cone .head::after { content: ""; left: -4%; top: -65%; bottom: auto; width: 102%; height: 82%; background: #e67824; border: 2px solid #9c4914; clip-path: polygon(50% 0, 94% 100%, 7% 100%); }
.zombie-bucket .head::after { content: ""; left: -10%; top: -42%; bottom: auto; width: 110%; height: 70%; background: linear-gradient(90deg,#858b87,#c6cbc7 45%,#747b78); border: 2px solid #5d625f; border-radius: 3px 3px 6px 6px; transform: rotate(-5deg); }
.zombie-flag .body::after { width: 5%; height: 125%; right: -58%; top: -45%; background: #65401f; transform: rotate(2deg); box-shadow: 10px 2px 0 8px #e4dfbd; }
.zombie.slowed { filter: hue-rotate(115deg) saturate(.75); }
.zombie.eating .sprite { animation-duration: .22s; }
.zombie .hp-bar { left: 5%; right: 5%; bottom: -7%; }
.zombie .hp-bar i { background: #ffcb4d; }

.mower { position: absolute; z-index: 2; left: 2.4%; width: 5%; height: 12%; display: grid; place-items: center; transform: translate(-50%, -50%); color: #e33529; font-size: clamp(12px, 2.2vw, 27px); text-shadow: 0 2px #5a241e; transition: left 1.1s linear; }
.mower::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 3%; height: 24%; border-radius: 3px; background: #3e3e35; z-index: -1; }
.mower.active { left: 110%; }
.mower.used { display: none; }

.sun-token { position: absolute; width: clamp(34px, 5.2%, 58px); aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; color: #855500; background: radial-gradient(circle, #fffbd0 0 10%, #ffe56a 11% 44%, #ffc52d 46% 64%, transparent 65%), conic-gradient(from 0deg, #ffca31, transparent 5%, transparent 8%, #ffca31 12%, transparent 16%, transparent 21%, #ffca31 25%, transparent 29%, transparent 34%, #ffca31 38%, transparent 42%, transparent 47%, #ffca31 51%, transparent 55%, transparent 60%, #ffca31 64%, transparent 68%, transparent 73%, #ffca31 77%, transparent 81%, transparent 86%, #ffca31 90%, transparent 94%); filter: drop-shadow(0 2px 3px rgba(103,66,8,.35)); font-size: clamp(15px, 2vw, 24px); font-weight: 900; animation: sunFloat 1.4s ease-in-out infinite alternate; }
@keyframes sunFloat { to { margin-top: -7px; transform: translate(-50%, -50%) rotate(10deg); } }
.sun-token:hover { scale: 1.1; }

.game-overlay { position: absolute; z-index: 20; inset: 0; display: grid; place-content: center; justify-items: center; padding: 20px; background: rgba(16,45,25,.82); color: #fff; text-align: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; backdrop-filter: blur(2px); }
.game-overlay.visible { opacity: 1; visibility: visible; }
.overlay-leaf { width: clamp(44px, 6vw, 70px); height: clamp(44px, 6vw, 70px); position: relative; margin-bottom: 2px; }
.overlay-leaf::before, .overlay-leaf::after { content: ""; position: absolute; width: 55%; height: 82%; top: 3%; border-radius: 100% 0 100% 0; background: #8dca53; transform-origin: bottom right; }
.overlay-leaf::before { left: 2%; transform: rotate(-40deg); }
.overlay-leaf::after { right: 2%; background: #54a446; transform: scaleX(-1) rotate(-40deg); }
.game-overlay h2 { margin: 3px 0 5px; font-size: clamp(24px, 4vw, 42px); line-height: 1.2; }
.game-overlay p { margin: 0 0 16px; color: rgba(255,255,255,.75); font-size: clamp(12px, 1.5vw, 16px); }
.game-overlay button { min-height: 44px; padding: 0 25px; border: 2px solid #ffe589; border-radius: 9px; background: linear-gradient(#ffd95c,#f0ad25); color: #4c3208; cursor: pointer; font-weight: 900; box-shadow: 0 4px 0 #a56513; }
.game-overlay button:active { transform: translateY(3px); box-shadow: 0 1px 0 #a56513; }

.game-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 17px; background: #f8f6e9; color: #6f715e; font-size: 12px; }
.game-help p { margin: 0; }
.game-help a { flex: 0 0 auto; color: #477a32; font-weight: 800; text-decoration: none; }
.client-banner { width: min(1080px, calc(100% - 40px)); min-height: 76px; margin: 22px auto 0; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid #ecd59a; border-radius: 13px; background: #fff9e8; box-shadow: 0 8px 25px rgba(105,76,24,.08); color: #5b4725; }
.client-banner.hidden { display: none; }
.client-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 10px; background: #f2d572; font-size: 23px; }
.client-banner div:nth-child(2) { display: grid; }
.client-banner span { color: #887653; font-size: 12px; }
.client-banner > a { min-height: 39px; display: inline-flex; align-items: center; padding: 0 17px; border-radius: 8px; background: #d58b27; color: #fff; text-decoration: none; font-weight: 900; }
.client-banner > button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #8d7b58; cursor: pointer; font-size: 21px; }

.feature-section, .quick-guide { width: min(1180px, 100%); margin: 72px auto 0; }
.section-heading { max-width: 660px; margin-bottom: 25px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); }
.section-heading h2, .quick-guide h2 { font-size: clamp(25px, 3vw, 36px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-grid article { min-height: 236px; position: relative; overflow: hidden; padding: 23px; border: 1px solid #d8dfca; border-radius: 15px; background: rgba(255,253,245,.8); box-shadow: 0 8px 24px rgba(49,74,42,.06); }
.feature-grid article::after { content: ""; position: absolute; right: -42px; bottom: -54px; width: 120px; height: 120px; border-radius: 50%; background: rgba(119,172,67,.08); }
.feature-no { position: absolute; right: 17px; top: 13px; color: #c9d5be; font: 900 28px/1 ui-monospace, Consolas, monospace; }
.feature-icon { height: 68px; display: flex; align-items: center; margin-bottom: 12px; font-size: 49px; }
.sunflower-feature { width: 58px; height: 58px; position: relative; border-radius: 50%; background: radial-gradient(circle, #70441f 0 25%, #a86723 27% 35%, transparent 37%), repeating-conic-gradient(#ffd34a 0 20deg, #e4a024 21deg 40deg); }
.sunflower-feature::before { content: ""; position: absolute; z-index: -1; left: 46%; top: 80%; width: 8px; height: 27px; border-radius: 5px; background: #508a35; }
.feature-icon.pea-dot, .feature-icon.ice-dot { width: 56px; height: 49px; justify-content: center; margin: 8px 0 23px; border-radius: 50%; background: #6baa3d; color: #285b2a; font-size: 22px; box-shadow: 19px 6px 0 -12px #316d2b; }
.feature-icon.ice-dot { background: #83d4d0; color: #2f7e7e; box-shadow: 19px 6px 0 -12px #3f8e8b; }
.feature-grid h3 { margin: 0 0 6px; color: var(--forest); font-size: 18px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.quick-guide { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: center; padding: 38px; border-radius: 18px; background: var(--forest); color: #fff; box-shadow: var(--shadow); }
.quick-guide h2 { color: #fff; }
.quick-guide ol { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.quick-guide li { display: flex; align-items: center; gap: 14px; }
.quick-guide li > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #ffe276; font-weight: 900; }
.quick-guide strong { font-size: 15px; }
.quick-guide li p { margin: 1px 0 0; color: rgba(255,255,255,.62); font-size: 12px; }

.site-footer { padding: 35px max(24px, calc((100vw - 1180px) / 2)); background: #112c1b; color: rgba(255,255,255,.66); font-size: 12px; }
.footer-inner, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner { padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand { color: #fff; font-size: 17px; }
.footer-leaf { width: 14px; height: 18px; display: inline-block; border-radius: 100% 0 100% 0; background: #79b84a; transform: rotate(-25deg); box-shadow: 7px 3px 0 -1px #3f873d; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-inner a, .footer-bottom a { text-decoration: none; }
.footer-inner nav a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { padding-top: 19px; }
.footer-bottom p { margin: 0; }

/* Content pages */
.content-hero { width: min(920px, 100%); margin: 12px auto 25px; text-align: center; }
.content-hero h1 { margin: 4px 0 8px; color: var(--forest); font-size: clamp(31px, 5vw, 50px); letter-spacing: -.04em; }
.content-hero p { max-width: 660px; margin: 0 auto; color: var(--muted); }
.content-layout { width: min(1000px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 24px; align-items: start; }
.article-card, .side-card { border: 1px solid #d8dfca; border-radius: 15px; background: var(--paper); box-shadow: 0 10px 28px rgba(41,67,35,.07); }
.article-card { padding: clamp(22px, 4vw, 42px); }
.article-card h2 { margin: 35px 0 10px; color: var(--forest); font-size: 23px; }
.article-card h2:first-child { margin-top: 0; }
.article-card h3 { margin: 22px 0 7px; color: #35562f; }
.article-card p, .article-card li { color: #5d6b5e; }
.article-card ul, .article-card ol { padding-left: 1.35em; }
.article-card li + li { margin-top: 8px; }
.article-card a { color: #467f31; font-weight: 800; }
.tip-box { margin: 20px 0; padding: 15px 17px; border-left: 4px solid var(--leaf-light); border-radius: 0 9px 9px 0; background: #f0f5e8; }
.side-card { position: sticky; top: 88px; padding: 18px; }
.side-card strong { display: block; margin-bottom: 9px; color: var(--forest); }
.side-card a { display: block; padding: 8px 0; border-bottom: 1px solid #edf0e8; color: #61705f; text-decoration: none; font-size: 13px; }
.side-card a:last-child { border-bottom: 0; }
.side-card a:hover { color: var(--leaf); }
.cta-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 8px; background: var(--leaf); color: #fff !important; text-decoration: none; }
.game-card-grid { width: min(1000px,100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.game-card { min-height: 146px; display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid #d7dfc9; border-radius: 14px; background: var(--paper); text-decoration: none; box-shadow: 0 8px 24px rgba(44,69,38,.06); transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(44,69,38,.12); }
.game-card-icon { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: #e9f1dd; color: #487137; font-size: 25px; font-weight: 900; }
.game-card strong { display: block; color: var(--forest); }
.game-card small { color: var(--muted); }
.sitemap-list { columns: 2; gap: 35px; padding-left: 0 !important; list-style: none; }
.sitemap-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid #e7ebdf; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .desktop-nav { display: none; }
  .header-action { justify-self: end; }
  .mobile-menu { display: block; }
  .mobile-menu summary { width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border-radius: 8px; cursor: pointer; list-style: none; background: rgba(255,255,255,.09); }
  .mobile-menu summary::-webkit-details-marker { display:none; }
  .mobile-menu summary span { width: 19px; height: 2px; display:block; border-radius: 2px; background:#fff; }
  .mobile-menu nav { width: 190px; position: absolute; top: 49px; right: 0; display: grid; overflow: hidden; padding: 6px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 12px 35px rgba(0,0,0,.2); }
  .mobile-menu nav a { padding: 9px 11px; border-radius: 6px; text-decoration: none; }
  .mobile-menu nav a:hover { background: #edf3e7; }
  main { padding: 26px 12px 55px; }
  .intro { align-items: start; flex-direction: column; }
  .intro-badges { justify-content: flex-start; }
  .game-toolbar { grid-template-columns: auto 1fr auto; gap: 10px; }
  .game-stats { gap: 13px; }
  .game-stats span:nth-child(3) { display: none; }
  .secondary-btn { width: 38px; overflow: hidden; padding: 0; font-size: 0; }
  .secondary-btn::first-letter { font-size: 0; }
  #pauseBtn::after { content: "Ⅱ"; font-size: 15px; }
  #restartBtn::after { content: "↻"; font-size: 21px; }
  .difficulty-bar { flex-wrap: wrap; }
  #statusText { width: 100%; margin-left: 0; }
  .lawn { min-height: 0; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .quick-guide { grid-template-columns: 1fr; gap: 22px; }
  .content-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .game-card-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .site-header { height: 58px; gap: 9px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 29px; height: 29px; font-size: 17px; }
  .header-action { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .mobile-menu summary { width: 35px; height: 35px; }
  main { padding: 20px 8px 45px; }
  .intro { margin-bottom: 14px; padding: 0 5px; }
  .intro h1 { font-size: 27px; }
  .intro > div:first-child > p:last-child { font-size: 13px; }
  .intro-badges { display: none; }
  .game-shell { border-radius: 12px; }
  .game-toolbar { min-height: 60px; padding: 7px 8px; }
  .resource-pill { min-width: 99px; min-height: 44px; padding: 4px 7px; column-gap: 5px; }
  .sun-icon { width: 33px; height: 33px; font-size: 19px; }
  .resource-pill strong { font-size: 17px; }
  .game-stats { gap: 8px; }
  .game-stats span { font-size: 10px; }
  .game-stats strong { font-size: 13px; }
  .toolbar-actions { gap: 4px; }
  .icon-btn, .secondary-btn { width: 32px; min-height: 33px; }
  .difficulty-bar { padding: 6px 8px; }
  .plant-deck { gap: 7px; padding: 9px 8px; }
  .plant-card { width: 88px; height: 72px; grid-template-rows: 18px 1fr 17px; }
  .plant-card .card-art { transform: scale(.85); }
  .plant-card.selected .card-art { transform: scale(.85); }
  .shovel-card { width: 55px; height: 72px; }
  .board-wrap { padding: 5px; }
  .lawn { border-width: 3px; border-radius: 7px; }
  .game-help { padding: 9px 10px; }
  .game-help p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .game-help a { display: none; }
  .client-banner { width: calc(100% - 12px); grid-template-columns: auto 1fr auto; gap: 9px; padding: 10px; }
  .client-banner span, .client-banner > button { display: none; }
  .client-banner > a { padding: 0 11px; font-size: 12px; }
  .feature-section, .quick-guide { margin-top: 50px; }
  .section-heading { padding: 0 6px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 190px; }
  .quick-guide { padding: 26px 20px; border-radius: 14px; }
  .footer-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { justify-content: flex-start; gap: 11px 15px; }
  .footer-bottom { gap: 5px; }
  .article-card { padding: 21px 18px; }
  .game-card-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 110px; }
  .sitemap-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
