:root {
  --ink: #173a32;
  --ink-soft: #47665d;
  --cream: #f7f3e8;
  --paper: #fffdf7;
  --sage: #82ad84;
  --sage-light: #c7d8ad;
  --coral: #e97861;
  --gold: #e4b85f;
  --lilac: #9b83bd;
  --sky: #72a9b0;
  --thorn: #4d4354;
  --line: rgba(23, 58, 50, .13);
  --shadow: 0 20px 60px rgba(45, 66, 54, .12);
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-ui); overflow-x: hidden; }
button { color: inherit; font: inherit; }
button:focus-visible { outline: 3px solid rgba(233, 120, 97, .48); outline-offset: 3px; }

.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .5; }
.ambient-one { width: 420px; height: 420px; left: -180px; top: 20%; background: radial-gradient(circle, rgba(199,216,173,.45), transparent 67%); }
.ambient-two { width: 500px; height: 500px; right: -220px; bottom: -160px; background: radial-gradient(circle, rgba(228,184,95,.2), transparent 67%); }

.screen { display: none; min-height: 100vh; position: relative; }
.screen.active { display: block; animation: screen-in .35s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(5px); } }

.top-nav { width: min(1180px, calc(100% - 40px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-button, .text-button, .icon-button, .bare-button { border: 0; background: transparent; cursor: pointer; }
.brand-button { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 19px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.text-button { font-size: 13px; font-weight: 700; letter-spacing: .03em; padding: 10px; }
.count-pill { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; margin-left: 5px; background: var(--sage-light); border-radius: 20px; font-size: 11px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; }

.hero { width: min(1180px, calc(100% - 40px)); min-height: 610px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.hero-copy { padding: 54px 0; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: var(--coral); }
.hero h1, .garden-intro h1 { margin: 0; font-family: var(--font-display); font-size: clamp(54px, 6.2vw, 88px); line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: var(--coral); font-weight: 600; }
.hero-description { max-width: 580px; margin: 28px 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; }
.primary-button, .secondary-button { min-height: 54px; border-radius: 28px; padding: 0 24px; border: 1px solid var(--ink); font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.primary-button { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px rgba(23,58,50,.2); }
.primary-button span { margin-left: 20px; }
.secondary-button { background: rgba(255,253,247,.6); }
.button-icon { margin-right: 8px; color: var(--coral); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.micro-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.dot.sage { background: var(--sage); }.dot.coral { background: var(--coral); }.dot.gold { background: var(--gold); }

.hero-garden { position: relative; height: 480px; overflow: hidden; border-radius: 48% 48% 24px 24px; background: #e6e8cf; box-shadow: var(--shadow); }
.sun-disc { position: absolute; width: 130px; height: 130px; border-radius: 50%; top: 42px; right: 48px; background: #f2c974; box-shadow: 0 0 0 20px rgba(242,201,116,.13); }
.hill { position: absolute; border-radius: 50% 50% 0 0; bottom: -20%; }
.hill-back { left: -15%; width: 130%; height: 64%; background: #9fbc91; transform: rotate(-3deg); }
.hill-front { left: -8%; width: 122%; height: 43%; bottom: -8%; background: #5f876e; transform: rotate(5deg); }
.flower-display { position: absolute; inset: 0; }
.decor-flower { position: absolute; bottom: 15%; transform-origin: bottom; animation: sway 3.5s ease-in-out infinite alternate; }
.decor-flower .stem { width: 5px; height: var(--h); margin: auto; background: #356451; border-radius: 6px; }
.decor-flower .head { width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); box-shadow: calc(var(--s) * .45) 0 var(--c), calc(var(--s) * -.45) 0 var(--c), 0 calc(var(--s) * .45) var(--c), 0 calc(var(--s) * -.45) var(--c); position: relative; }
.decor-flower .head::after { content: ""; position: absolute; width: 42%; height: 42%; background: #f5d576; border-radius: 50%; inset: 29%; }
@keyframes sway { to { transform: rotate(3deg); } }
.hero-card { position: absolute; left: 26px; bottom: 25px; display: grid; padding: 18px 21px; width: 190px; background: rgba(255,253,247,.88); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.6); border-radius: 16px; box-shadow: 0 10px 35px rgba(23,58,50,.13); }
.hero-card-label { color: var(--coral); font-size: 9px; letter-spacing: .13em; font-weight: 700; }
.hero-card strong { font-family: var(--font-display); font-size: 23px; margin: 4px 0 2px; }
.hero-card > span:last-child { color: var(--ink-soft); font-size: 10px; }

.how-strip { width: min(1180px, calc(100% - 40px)); margin: 0 auto 32px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-around; background: rgba(255,253,247,.7); border: 1px solid var(--line); border-radius: 18px; }
.how-item { display: flex; align-items: center; gap: 13px; }
.how-item div { display: grid; }.how-item small { color: var(--ink-soft); }
.how-number { font-family: var(--font-display); color: var(--coral); font-size: 23px; }.how-arrow { color: #9fb3a4; }

/* Game */
.game-screen { padding-bottom: 24px; background: linear-gradient(180deg, #eef0dc, var(--cream) 38%); }
.game-header { width: min(1280px, calc(100% - 32px)); height: 76px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.back-button { justify-self: start; }
.game-left-actions { justify-self:start; display:flex; align-items:center; gap:8px; }
.run-identity { display: grid; text-align: center; }.run-identity span { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--coral); }.run-identity strong { font-size: 12px; margin-top: 3px; }
.header-stats { display: flex; justify-content: flex-end; gap: 24px; }.stat { display: grid; text-align: right; }.stat span { color: var(--ink-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }.stat strong { font-family: var(--font-display); font-size: 21px; }
.game-layout { width: min(1280px, calc(100% - 32px)); margin: 24px auto 0; display: grid; grid-template-columns: 230px minmax(420px, 580px) 230px; justify-content: center; align-items: start; gap: 24px; }
.panel { background: rgba(255,253,247,.72); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 10px 40px rgba(48,70,57,.06); }
.season-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.season-icon { width: 41px; height: 41px; display: grid; place-items: center; background: #e1e7c8; border-radius: 50%; font-size: 19px; }.season-heading small { color: var(--coral); font-weight: 700; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }.season-heading h2 { margin: 2px 0 0; font-family: var(--font-display); font-size: 18px; }
.progress-block { margin-top: 17px; }.progress-copy { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 10px; color: var(--ink-soft); }.progress-copy strong { color: var(--ink); }.meter { height: 7px; border-radius: 10px; background: #e4e5d8; overflow: hidden; }.meter-fill { height: 100%; width: 0; border-radius: inherit; transition: width .35s ease; }.health-fill { background: var(--sage); }.season-fill { background: var(--coral); }
.blight-clock { display: flex; align-items: center; gap: 12px; margin: 21px 0; padding: 13px; background: #eee8ed; border-radius: 14px; }.blight-orbit { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 2px dotted var(--lilac); border-radius: 50%; font-family: var(--font-display); font-size: 18px; }.blight-clock p { margin: 0; display: grid; font-size: 11px; }.blight-clock span { color: var(--ink-soft); font-size: 9px; margin-top: 2px; }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }.section-label small, .bare-button { color: var(--ink-soft); font-size: 9px; }.bare-button { padding: 0; text-decoration: underline; }
.charms-list { display: grid; gap: 8px; }.empty-copy { color: var(--ink-soft); margin: 0; font-size: 10px; line-height: 1.5; }.charm-chip { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: #edf0df; font-size: 9px; }.charm-chip span { font-size: 16px; }

.board-column { position: relative; display: grid; justify-items: center; }
.board { --cell: min(8.6vw, 66px); display: grid; grid-template-columns: repeat(7, var(--cell)); grid-template-rows: repeat(7, var(--cell)); gap: 5px; padding: 10px; background: #d9ddc7; border: 1px solid rgba(23,58,50,.15); border-radius: 24px; box-shadow: 0 24px 55px rgba(44,63,50,.13), inset 0 1px rgba(255,255,255,.7); touch-action: manipulation; }
.cell { position: relative; border: 0; padding: 0; border-radius: 12px; background: rgba(255,253,247,.72); cursor: pointer; overflow: hidden; transition: transform .13s, background .13s; }
.cell:hover { background: #fff; }.cell.preview-valid { background: rgba(130,173,132,.22); }.cell.preview-invalid { background: rgba(233,120,97,.17); }
.tile { position: absolute; inset: 5px; display: grid; place-items: center; border-radius: 50% 50% 44% 50%; transform: rotate(45deg); box-shadow: inset -4px -5px 0 rgba(0,0,0,.07), 0 3px 5px rgba(33,54,42,.12); animation: pop-in .2s cubic-bezier(.2,1.4,.5,1) both; }
.tile::after { content: ""; width: 28%; height: 28%; background: rgba(255,255,255,.38); border-radius: 50%; transform: translate(-35%, -35%); }
.tile-mark { position: absolute; z-index: 1; color: rgba(23,58,50,.5); font: 700 13px/1 var(--font-ui); transform: rotate(-45deg); }
.tile[data-color="leaf"] { background: var(--sage); }.tile[data-color="sun"] { background: var(--gold); }.tile[data-color="berry"] { background: var(--coral); }.tile[data-color="dew"] { background: var(--sky); }.tile[data-color="lilac"] { background: var(--lilac); }
.tile.thorn { inset: 6px; border-radius: 25% 55% 25% 55%; background: var(--thorn); box-shadow: inset -5px -5px rgba(0,0,0,.14); }.tile.thorn::after { content: "✦"; width: auto; height: auto; color: #c8b9cf; background: none; transform: rotate(-45deg); font-size: 16px; }
.tile.thorn .tile-mark { display: none; }
.cell.preview-valid::after { content:""; position:absolute; inset:9px; border-radius:50% 50% 44% 50%; background:var(--preview-color); opacity:.42; transform:rotate(45deg); box-shadow:inset -3px -4px rgba(0,0,0,.07); }
.cell.preview-bloom { box-shadow:0 0 0 3px var(--gold), 0 0 18px rgba(228,184,95,.7); z-index:2; animation:forecast-pulse .8s ease-in-out infinite alternate; }
.cell.preview-thorn { box-shadow:0 0 0 3px var(--lilac); }
.cell.guide-target { box-shadow:0 0 0 3px var(--coral), 0 0 20px rgba(233,120,97,.42); animation:guide-pulse 1.1s ease-in-out infinite alternate; }
@keyframes forecast-pulse { to { transform:scale(1.035); } }
@keyframes guide-pulse { to { box-shadow:0 0 0 4px var(--coral),0 0 28px rgba(233,120,97,.7); } }
.cell.blooming .tile { animation: bloom-out .55s ease both; }.cell.thorn-cleared .tile { animation: thorn-out .4s ease both; }
@keyframes pop-in { from { transform: rotate(45deg) scale(.25); opacity: 0; } }
@keyframes bloom-out { 40% { transform: rotate(75deg) scale(1.22); filter: brightness(1.18); } to { transform: rotate(110deg) scale(0); opacity: 0; } }
@keyframes thorn-out { to { transform: rotate(90deg) scale(0); opacity: 0; } }
.board-hint { margin: 12px 0 0; color: var(--ink-soft); text-align: center; font-size: 10px; }
.combo-banner { position: absolute; top: 42%; z-index: 10; pointer-events: none; font-family: var(--font-display); font-size: 36px; color: var(--paper); text-shadow: 0 3px 16px var(--ink); opacity: 0; }.combo-banner.show { animation: combo .9s ease both; }
@keyframes combo { 20% { opacity: 1; transform: scale(1.12); } 75% { opacity: 1; } to { opacity: 0; transform: translateY(-30px); } }

.piece-tray { display: grid; gap: 10px; }.piece-button { min-height: 88px; display: flex; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 15px; padding: 12px; cursor: pointer; transition: border .15s, transform .15s, box-shadow .15s; }.piece-button:hover { transform: translateY(-2px); }.piece-button.selected { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(233,120,97,.14); }.piece-button.unplaceable { opacity: .42; }.piece-preview { --mini: 13px; display: grid; grid-template-columns: repeat(var(--w), var(--mini)); grid-template-rows: repeat(var(--h), var(--mini)); gap: 3px; min-width: 54px; justify-content: center; }.mini-tile { grid-column: calc(var(--x) + 1); grid-row: calc(var(--y) + 1); width: var(--mini); height: var(--mini); display:grid; place-items:center; border-radius: 50% 50% 40% 50%; transform: rotate(45deg); background: var(--piece-color); box-shadow: inset -2px -2px rgba(0,0,0,.08); }.mini-tile b { color:rgba(23,58,50,.45); font-size:7px; line-height:1; transform:rotate(-45deg); }.piece-copy { display: grid; text-align: left; }.piece-copy strong { font-size: 11px; }.piece-copy small { color: var(--ink-soft); font-size: 9px; margin-top: 2px; }
.compost-button { width: 100%; margin: 14px 0; display: flex; align-items: center; gap: 10px; border: 1px dashed #a9af9f; border-radius: 13px; background: transparent; padding: 10px; cursor: pointer; }.compost-button:disabled { opacity: .4; cursor: default; }.compost-button > span { font-size: 20px; }.compost-button div { display: grid; text-align: left; }.compost-button strong { font-size: 10px; }.compost-button small { color: var(--ink-soft); font-size: 8px; }
.next-blight { display: flex; gap: 11px; padding-top: 15px; border-top: 1px solid var(--line); }.thorn-preview { color: var(--lilac); font-size: 22px; }.next-blight small { color: var(--lilac); font-weight: 700; font-size: 8px; letter-spacing: .1em; }.next-blight p { margin: 3px 0 0; font-size: 9px; color: var(--ink-soft); line-height: 1.45; }

/* Garden */
.garden-screen { background: linear-gradient(#eef0dc, #f7f3e8 55%); padding-bottom: 40px; }.garden-intro { width: min(900px, calc(100% - 40px)); margin: 62px auto 32px; text-align: center; }.garden-intro h1 { font-size: clamp(52px, 7vw, 82px); }.garden-intro > p:last-child { max-width: 560px; margin: 20px auto; color: var(--ink-soft); line-height: 1.6; }.sanctuary { width: min(1080px, calc(100% - 40px)); min-height: 410px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 80px 80px 24px 24px; background: linear-gradient(#dfe8d0 0 53%, #719176 54%); box-shadow: var(--shadow); }.sanctuary::after { content: ""; position: absolute; inset: 54% 0 0; background: repeating-linear-gradient(8deg, transparent 0 34px, rgba(255,255,255,.05) 35px 37px); }.garden-flower { position: absolute; bottom: 9%; z-index: 1; display: grid; justify-items: center; transform-origin: bottom; }.garden-flower:hover { z-index: 3; filter: brightness(1.05); }.garden-flower .stem { width: 5px; height: var(--height); border-radius: 5px; background: #315c49; }.garden-flower .head { width: var(--size); height: var(--size); margin-bottom: -4px; border-radius: 50%; background: var(--color); box-shadow: calc(var(--size)*.42) 0 var(--color), calc(var(--size)*-.42) 0 var(--color), 0 calc(var(--size)*.42) var(--color), 0 calc(var(--size)*-.42) var(--color); }.garden-flower::after { content: attr(data-label); position: absolute; bottom: -23px; width: max-content; max-width: 120px; opacity: 0; padding: 4px 7px; border-radius: 6px; background: var(--ink); color: white; font-size: 8px; transition: opacity .15s; }.garden-flower:hover::after { opacity: 1; }.garden-empty { display: none; text-align: center; margin: 50px auto; }.garden-empty.show { display: block; }.garden-empty > span { font-size: 42px; color: var(--sage); }.garden-empty h2 { font-family: var(--font-display); margin: 10px 0 4px; }.garden-empty p { color: var(--ink-soft); margin: 0 0 18px; }

.garden-intro > p:last-of-type { max-width:560px; margin:20px auto; color:var(--ink-soft); line-height:1.6; }
.garden-stats { display:none; justify-content:center; gap:1px; margin:25px auto 0; }
.garden-stats.show { display:flex; }
.garden-stats div { min-width:140px; display:grid; padding:12px 20px; background:rgba(255,253,247,.65); border:1px solid var(--line); }
.garden-stats div:first-child { border-radius:14px 0 0 14px; }.garden-stats div:last-child { border-radius:0 14px 14px 0; }
.garden-stats strong { font-family:var(--font-display); font-size:21px; }.garden-stats span { color:var(--ink-soft); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.garden-flower { border:0; padding:0; background:transparent; cursor:pointer; }
.garden-flower .stem { position:relative; }
.garden-flower .head { position:relative; display:grid; place-items:center; }
.garden-flower .head i { color:rgba(23,58,50,.48); font-style:normal; font-weight:700; }
.garden-flower.rare .head { outline:3px solid #f5d576; outline-offset:4px; }.garden-flower.lush .head { filter:saturate(1.18); }
.memory-leaf { position:absolute; width:16px; height:9px; border-radius:100% 0 100% 0; background:#4e7b5e; }
.leaf-1 { top:30%; left:-13px; transform:rotate(18deg); }.leaf-2 { top:52%; right:-13px; transform:scaleX(-1) rotate(18deg); }.leaf-3 { top:70%; left:-13px; transform:rotate(18deg); }
.memory-bloom { width:64px; height:64px; display:grid; place-items:center; margin:24px auto 30px; border-radius:50%; background:var(--memory-color); color:rgba(23,58,50,.5); font-size:23px; font-weight:700; box-shadow:28px 0 var(--memory-color),-28px 0 var(--memory-color),0 28px var(--memory-color),0 -28px var(--memory-color); }

/* Modals */
.modal-layer { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(23,58,50,.42); backdrop-filter: blur(8px); }.modal-layer.open { display: flex; animation: fade .2s ease; }.modal { width: min(620px, 100%); max-height: 90vh; overflow: auto; padding: 28px; background: var(--paper); border-radius: 24px; box-shadow: 0 30px 90px rgba(20,35,29,.26); text-align: center; }.modal .eyebrow { margin-bottom: 10px; }.modal h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 38px; }.modal > p { color: var(--ink-soft); margin: 0 auto 22px; line-height: 1.55; max-width: 450px; }.charm-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.charm-choice { border: 1px solid var(--line); border-radius: 16px; background: #f6f4e9; padding: 20px 13px; cursor: pointer; }.charm-choice:hover { border-color: var(--coral); transform: translateY(-2px); }.charm-choice .charm-icon { font-size: 27px; }.charm-choice strong { display: block; margin: 8px 0 4px; }.charm-choice small { color: var(--ink-soft); line-height: 1.4; }.result-score { font-family: var(--font-display); font-size: 64px; line-height: 1; }.result-stats { display: flex; justify-content: center; gap: 34px; margin: 18px 0 24px; }.result-stats div { display: grid; }.result-stats strong { font-size: 20px; }.result-stats span { font-size: 9px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }.modal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }.how-list { text-align: left; display: grid; gap: 13px; margin: 20px 0; }.how-list div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }.how-list span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-light); font-weight: 700; font-size: 11px; }.how-list p { margin: 0; font-size: 12px; line-height: 1.5; }.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translate(-50%, 20px); padding: 10px 16px; color: white; background: var(--ink); border-radius: 22px; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%,0); }

/* Home progress strip */
.home-progress { display: none; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.home-progress.show { display: flex; }
.home-progress span { padding: 6px 12px; border-radius: 20px; background: rgba(255,253,247,.7); border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.home-progress b { color: var(--coral); }

/* Heat / combo multiplier gauge */
.heat-gauge { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 7px 14px; border-radius: 22px; background: rgba(255,253,247,.8); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s, background .3s; }
.heat-mult { font-family: var(--font-display); font-size: 18px; min-width: 44px; }
.heat-bar { width: 110px; height: 6px; border-radius: 6px; background: #e4e5d8; overflow: hidden; }
.heat-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sage), var(--gold)); transition: width .3s ease; }
.heat-label { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-soft); }
.heat-gauge.hot { border-color: rgba(228,184,95,.6); box-shadow: 0 0 18px rgba(228,184,95,.28); }
.heat-gauge.hot .heat-fill { background: linear-gradient(90deg, var(--gold), var(--coral)); }
.heat-gauge.blazing { border-color: rgba(233,120,97,.7); box-shadow: 0 0 26px rgba(233,120,97,.42); animation: heat-throb 1.1s ease-in-out infinite alternate; }
.heat-gauge.blazing .heat-mult { color: var(--coral); }
@keyframes heat-throb { to { box-shadow: 0 0 34px rgba(233,120,97,.6); } }

/* Bloom particles + floating score */
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: visible; }
.petal { position: absolute; width: 9px; height: 9px; border-radius: 50% 50% 44% 50%; transform: translate(-50%,-50%) rotate(45deg); opacity: .95; animation: petal-fly var(--d,640ms) cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes petal-fly { to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r,60deg)) scale(.3); opacity: 0; } }
.score-pop { position: absolute; transform: translate(-50%,-50%); font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); text-shadow: 0 2px 10px rgba(255,253,247,.9); animation: score-rise 1s ease-out forwards; white-space: nowrap; }
.score-pop.big { font-size: 30px; color: var(--coral); }
.score-pop span { font-size: .7em; color: var(--gold); margin-left: 3px; }
@keyframes score-rise { 15% { transform: translate(-50%,-50%) scale(1.15); } to { transform: translate(-50%,-160%) scale(1); opacity: 0; } }

.rare-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 10px; background: var(--lilac); color: var(--paper); font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.charm-choice.rare { border-color: var(--lilac); background: linear-gradient(#f6f2f8, #f6f4e9); }

/* Zen mode: no blight, no pressure */
.game-screen.zen .blight-clock, .game-screen.zen .next-blight { display: none; }

/* Run modifiers */
.mutator-section { margin-top: 22px; }
.mutator-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.mutator-label small { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .7; }
.mutator-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.mutator-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,253,247,.7); font-size: 11px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: transform .15s, border-color .15s, background .15s, color .15s; }
.mutator-chip span { font-size: 14px; }
.mutator-chip:hover { transform: translateY(-1px); }
.mutator-chip.on { border-color: var(--coral); background: var(--ink); color: var(--paper); }
.run-mutators { display: none; font-size: 13px; margin-top: 3px; }
.run-mutators.show { display: block; }

/* Achievements */
.achievements-section { width: min(1080px, calc(100% - 40px)); margin: 46px auto 0; }
.achievements-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.achievements-head h2 { font-family: var(--font-display); font-size: 24px; margin: 0; }
.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,253,247,.72); transition: transform .15s; }
.badge.earned { border-color: rgba(228,184,95,.55); box-shadow: 0 6px 20px rgba(228,184,95,.16); }
.badge.locked { opacity: .55; filter: grayscale(.5); }
.badge:hover { transform: translateY(-2px); }
.badge-icon { font-size: 30px; line-height: 1; }
.badge strong { font-size: 12px; }
.badge small { font-size: 9px; color: var(--ink-soft); line-height: 1.4; }

@media (max-width: 1000px) {
  .game-layout { grid-template-columns: minmax(400px, 570px) 220px; }.run-panel { grid-column: 1 / 3; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; align-items: center; }.run-panel .season-heading { border: 0; padding: 0; }.run-panel .progress-block { margin: 0; }.run-panel .blight-clock { margin: 0; }.charms-block { display: none; }
}
@media (max-width: 760px) {
  .garden-stats div { min-width:0; flex:1; padding:10px 5px; }.garden-stats strong { font-size:17px; }.board-hint { min-height:16px; }
  .top-nav { height: 68px; }.hero { min-height: auto; grid-template-columns: 1fr; gap: 8px; }.hero-copy { padding: 45px 0 22px; }.hero h1 { font-size: clamp(48px, 14vw, 68px); }.hero-garden { height: 300px; border-radius: 32px; }.how-strip { overflow-x: auto; justify-content: flex-start; gap: 20px; }.how-arrow { display: none; }.how-item { min-width: 150px; }.micro-proof { margin-bottom: 5px; }
  .game-header { height: 62px; }.game-layout { width: min(100% - 16px, 590px); margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }.run-panel { order: 0; width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; padding: 12px; border-radius: 15px; }.run-panel .progress-block:nth-of-type(2), .run-panel .blight-clock, .charms-block { display: none; }.season-heading { border: 0; padding: 0; }.season-icon { width: 33px; height: 33px; }.season-heading h2 { font-size: 15px; }.board-column { order: 1; width: 100%; }.board { --cell: min(calc((100vw - 76px) / 7), 65px); gap: 4px; padding: 8px; border-radius: 18px; }.cell { border-radius: 9px; }.tray-panel { order: 2; width: 100%; padding: 12px; }.piece-tray { grid-template-columns: repeat(3, 1fr); }.piece-button { min-height: 76px; padding: 7px; display: grid; justify-items: center; }.piece-copy { text-align: center; }.piece-copy small { display: none; }.compost-button { margin: 10px 0 0; }.next-blight { display: none; }.board-hint { margin: 7px 0 0; }.header-stats .stat:first-child { display: none; }.header-stats { gap: 0; }.run-identity { transform: scale(.9); }.garden-intro { margin-top: 42px; }.sanctuary { min-height: 480px; border-radius: 38px 38px 18px 18px; }.charm-choices { grid-template-columns: 1fr; }.charm-choice { display: grid; grid-template-columns: 38px 1fr; text-align: left; padding: 13px; }.charm-choice .charm-icon { grid-row: 1/3; }.charm-choice strong { margin: 2px 0; }
}
@media (max-width: 420px) { .hero-actions { display: grid; }.primary-button,.secondary-button { width: 100%; }.hero-description { font-size: 15px; }.piece-preview { --mini: 11px; }.piece-button { min-width: 0; }.brand-button { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* skyygarden local-time theme system */
:root {
  --page-top: #eef0dc;
  --page-bottom: #f7f3e8;
  --glass: rgba(255,253,247,.72);
  --glass-strong: rgba(255,253,247,.9);
  --hero-sky: linear-gradient(155deg,#dbe9dc 0%,#e9e8ca 58%,#f3d59d 100%);
  --celestial: #f2c974;
  --celestial-glow: rgba(242,201,116,.18);
  --hill-back-theme: #9fbc91;
  --hill-front-theme: #5f876e;
  --board-soil: #d9ddc7;
  --cell-soil: rgba(255,253,247,.72);
  --blight-panel: #eee8ed;
  --meter-track: #e4e5d8;
  --sanctuary-sky: #dfe8d0;
  --sanctuary-ground: #719176;
  --star-opacity: 0;
}

:root[data-theme="dawn"] {
  --ink: #243c35; --ink-soft: #64756d; --cream: #f8e9dc; --paper: #fff8ef;
  --sage: #83a78d; --sage-light: #cfdbc2; --coral: #ed806d; --gold: #e8ae62; --lilac: #9e82a9; --sky: #76a4ad; --thorn: #57465d;
  --line: rgba(54,65,61,.14); --shadow: 0 20px 60px rgba(85,63,62,.14);
  --page-top: #f3c4a8; --page-bottom: #f8eee1; --glass: rgba(255,248,239,.76); --glass-strong: rgba(255,250,243,.92);
  --hero-sky: linear-gradient(155deg,#9bb2c3 0%,#e7ae96 47%,#f7d9a8 100%); --celestial:#ffd18a; --celestial-glow:rgba(255,184,118,.3);
  --hill-back-theme:#8eab8d; --hill-front-theme:#527765; --board-soil:#d7d8c2; --cell-soil:rgba(255,250,240,.72);
  --blight-panel:#ede2e8; --meter-track:#e3d9d0; --sanctuary-sky:#e6b9a1; --sanctuary-ground:#6f8e72; --star-opacity:.08;
}

:root[data-theme="day"] {
  --ink: #173a32; --ink-soft: #47665d; --cream: #f7f3e8; --paper: #fffdf7;
  --sage: #82ad84; --sage-light: #c7d8ad; --coral: #e97861; --gold: #e4b85f; --lilac: #9b83bd; --sky: #72a9b0; --thorn: #4d4354;
  --line: rgba(23,58,50,.13); --shadow:0 20px 60px rgba(45,66,54,.12);
}

:root[data-theme="dusk"] {
  --ink: #f5eee8; --ink-soft: #d8c7c2; --cream: #342d40; --paper: #463a4b;
  --sage: #85a989; --sage-light: #68785f; --coral: #f08a73; --gold: #efbd69; --lilac: #b49acb; --sky: #7ea8bd; --thorn: #241e31;
  --line: rgba(255,239,226,.16); --shadow: 0 22px 65px rgba(15,11,25,.26);
  --page-top: #5c4967; --page-bottom: #2d293b; --glass: rgba(64,51,72,.8); --glass-strong: rgba(71,57,78,.94);
  --hero-sky: linear-gradient(155deg,#4b5675 0%,#9c6170 50%,#ef9d72 100%); --celestial:#f3aa65; --celestial-glow:rgba(244,137,95,.28);
  --hill-back-theme:#596c68; --hill-front-theme:#364f4c; --board-soil:#4c4e4b; --cell-soil:rgba(244,239,224,.15);
  --blight-panel:#4d4057; --meter-track:#574e5b; --sanctuary-sky:#76586f; --sanctuary-ground:#435d51; --star-opacity:.34;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --ink: #eff5ee; --ink-soft: #b9ccc7; --cream: #0b1726; --paper: #17283a;
  --sage: #84b999; --sage-light: #536f66; --coral: #f18c7b; --gold: #f1c76d; --lilac: #b69ad6; --sky: #70a9c0; --thorn: #211c30;
  --line: rgba(226,241,235,.15); --shadow: 0 24px 70px rgba(1,7,16,.38);
  --page-top: #142942; --page-bottom: #091421; --glass: rgba(20,38,54,.82); --glass-strong: rgba(24,43,59,.95);
  --hero-sky: linear-gradient(155deg,#0d2440 0%,#1d3d58 53%,#5b5874 100%); --celestial:#f5f1d4; --celestial-glow:rgba(202,225,255,.24);
  --hill-back-theme:#345954; --hill-front-theme:#1d413c; --board-soil:#26384a; --cell-soil:rgba(235,245,238,.12);
  --blight-panel:#302b43; --meter-track:#334555; --sanctuary-sky:#19324d; --sanctuary-ground:#284c45; --star-opacity:.8;
}

html, body, .screen, .panel, .hero-garden, .sun-disc, .hill, .board, .cell, .piece-button, .secondary-button, .how-strip, .garden-screen, .sanctuary, .modal, .theme-button { transition: background .85s ease, background-color .85s ease, color .55s ease, border-color .55s ease, box-shadow .55s ease; }
html { background: var(--page-bottom); }
body, .home-screen { background: linear-gradient(180deg,var(--page-top),var(--page-bottom) 70%); }
.game-screen, .garden-screen { background: linear-gradient(180deg,var(--page-top),var(--page-bottom) 42%); }
.ambient-one { background: radial-gradient(circle,var(--sage-light),transparent 67%); opacity:.24; }
.ambient-two { background: radial-gradient(circle,var(--gold),transparent 67%); opacity:.13; }
.panel, .how-strip, .piece-button, .hero-card, .home-progress span, .heat-gauge, .mutator-chip, .badge { background:var(--glass); }
.modal, .charm-choice { background:var(--glass-strong); }
.secondary-button { background:var(--glass); }
.hero-garden { background:var(--hero-sky); }
.hero-garden::before { content:""; position:absolute; inset:0; z-index:0; opacity:var(--star-opacity); background-image:radial-gradient(circle at 18% 16%,#fff 0 1px,transparent 1.6px),radial-gradient(circle at 73% 20%,#fff 0 1.2px,transparent 1.8px),radial-gradient(circle at 52% 34%,#f5d37a 0 1px,transparent 1.7px),radial-gradient(circle at 88% 42%,#fff 0 1px,transparent 1.5px); background-size:83px 79px,117px 103px,139px 127px,97px 91px; pointer-events:none; transition:opacity .8s ease; }
.sun-disc { z-index:1; background:var(--celestial); box-shadow:0 0 0 20px var(--celestial-glow),0 0 70px var(--celestial-glow); }
.hill-back { z-index:1; background:var(--hill-back-theme); }.hill-front { z-index:1; background:var(--hill-front-theme); }
.flower-display,.hero-card { z-index:2; }
.board { background:var(--board-soil); border-color:var(--line); }.cell { background:var(--cell-soil); }.cell:hover { background:var(--glass-strong); }
.blight-clock { background:var(--blight-panel); }.meter,.heat-bar { background:var(--meter-track); }
.season-icon,.charm-chip { background:color-mix(in srgb,var(--sage) 24%,var(--paper)); }
.sanctuary { background:linear-gradient(var(--sanctuary-sky) 0 53%,var(--sanctuary-ground) 54%); }
.toast { color:var(--paper); }
.charm-choice.rare { background:linear-gradient(color-mix(in srgb,var(--lilac) 18%,var(--paper)),var(--paper)); }

.brand-lockup { display:grid; text-align:left; line-height:1; }.brand-lockup b { font-family:var(--font-display); font-size:19px; }.brand-lockup small { margin-top:4px; font-family:var(--font-ui); font-size:7px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); }
.theme-button { min-height:38px; display:inline-flex; align-items:center; gap:7px; padding:5px 12px 5px 7px; border:1px solid var(--line); border-radius:22px; background:var(--glass); color:var(--ink); cursor:pointer; font-size:9px; font-weight:700; letter-spacing:.04em; }
.theme-button:hover { transform:translateY(-1px); box-shadow:var(--shadow); }
.theme-orb { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:var(--celestial); color:#243329; box-shadow:0 0 14px var(--celestial-glow); font-size:14px; }
:root[data-theme="dawn"] .sun-disc { top:80px; right:56px; }
:root[data-theme="dusk"] .sun-disc { top:100px; right:62px; }
:root[data-theme="night"] .sun-disc { width:106px; height:106px; top:55px; right:58px; }

@media (max-width:760px) {
  .theme-button { width:40px; height:40px; min-height:40px; padding:5px; justify-content:center; }
  .theme-button [data-theme-label] { display:none; }
  .theme-orb { width:28px; height:28px; }
}

@media (prefers-reduced-motion:reduce) {
  html, body, .screen, .panel, .hero-garden, .sun-disc, .hill, .board, .cell { transition:none!important; }
}
