:root {
  color-scheme: light;
  --ink: #274331;
  --deep: #1c3528;
  --green: #39623d;
  --cream: #fff5da;
  --paper: #fff9e6;
  --gold: #ffd36d;
  --earth: #72451e;
  --shadow: #23341f55;
  --game-backdrop: rgb(0 0 0 / 55%);
  --muted: #5d694d;
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --top: max(clamp(0.375rem, 1.5dvh, 0.75rem), env(safe-area-inset-top, 0px));
  --bottom: max(clamp(0.5rem, 1.8dvh, 1rem), env(safe-area-inset-bottom, 0px));
  --edge: clamp(0.5rem, 2.8vw, 1rem);
  --gap: clamp(0.3rem, 1.6vw, 0.6rem);
  --text-micro: clamp(0.625rem, 2.6vw, 0.75rem);
  --text-small: clamp(0.6875rem, 3vw, 0.8125rem);
  --text-label: clamp(0.75rem, 3.2vw, 0.875rem);
  --text-body: clamp(0.8125rem, 3.55vw, 1rem);
  --text-action: clamp(0.9375rem, 4.1vw, 1.125rem);
  --text-subheading: clamp(1.125rem, 5.2vw, 1.5rem);
  --text-heading: clamp(1.25rem, 5.8vw, 1.75rem);
  --touch: clamp(2.75rem, 10.8vw, 3.125rem);
  --icon: clamp(1.125rem, 5.3vw, 1.5rem);
  --art-small: clamp(1.25rem, 5.8vw, 1.625rem);
  --star-small: clamp(0.6875rem, 3vw, 0.875rem);
  --goal-icon: clamp(1.8rem, 8vw, 2.5rem);
  --avatar: clamp(2.125rem, 9.8vw, 2.75rem);
  --portrait: clamp(4.2rem, min(20vw, 16dvh), 6rem);
  --node-size: clamp(var(--touch), 13.5vw, 3.75rem);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body, .game-shell, .game-shell *, .entry-screen, .entry-screen * { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .game-shell::-webkit-scrollbar, .game-shell ::-webkit-scrollbar,
.entry-screen::-webkit-scrollbar, .entry-screen ::-webkit-scrollbar { display: none; }

[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: #223e30; color: var(--ink); }
.entry-screen {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto;
  padding: max(14px, var(--top)) max(14px, var(--safe-right)) max(14px, var(--bottom)) max(14px, var(--safe-left));
  background: #000;
}
.entry-screen:has(#loading-card:not([hidden])) {
  background:
    url("assets/garden-ui/boot-garden.webp?v=soft-morning") center 58% / cover no-repeat,
    url("assets/garden-ui/conservatory.webp?v=wide-lobby") center / cover no-repeat,
    #ccd59a;
}
.studio-intro { width: min(78vw, 37rem); animation: studio-appear .35s ease-out both; }
@keyframes studio-appear { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.entry-loading {
  width: min(78%, 350px);
  margin-block-start: 24dvh;
}
.entry-loading-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0 2px 7px;
  color: #fff8df;
  text-shadow: 0 1px #372b17, 0 0 5px #2d2219, 0 2px 6px #342513d9;
  font-weight: 750;
  font-size: clamp(13px, 3.5vw, 16px);
}
.entry-loading-status output { flex: none; font-variant-numeric: tabular-nums; }
#loading-progress {
  display: block;
  width: 100%;
  height: 10px;
  appearance: none;
  overflow: hidden;
  border: 1px solid #ffe5b6ed;
  border-radius: 999px;
  background: #423d2cab;
  box-shadow: 0 1px 5px #4d3e1e7d;
  color: #ffe68d;
}
#loading-progress::-webkit-progress-bar { background: #423d2cab; }
#loading-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(#fff4be, #dfaa59);
  box-shadow: inset 0 1px #fff9df;
}
#loading-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(#fff4be, #dfaa59);
}
.entry-error {
  position: fixed;
  inset: auto 0 max(11dvh, env(safe-area-inset-bottom)) 0;
  width: min(88%, 360px);
  max-height: 62dvh;
  margin: 0 auto;
  padding: 16px 18px 13px;
  border: 1px solid #ffffffbb;
  border-radius: 13px;
  background: #fafbf2f7;
  box-shadow: 0 8px 32px #26321d54;
  color: #243629;
  overflow: auto;
}
.entry-error::backdrop { background: #252f244d; }
.entry-error h2 { margin: 0; font-size: 17px; font-weight: 750; }
.entry-error p { margin: 7px 0 13px; color: #405143; font-size: 13px; line-height: 1.55; }
.entry-error button {
  display: block;
  min-height: 39px;
  margin-inline-start: auto;
  padding: 4px 14px;
  border: 1px solid #3b6148;
  border-radius: 7px;
  background: #3f654a;
  color: #fffef7;
  font-size: 13px;
  font-weight: 700;
}
.entry-error button:focus-visible { outline: 2px solid #4d7355; outline-offset: 3px; }
@media (max-height: 640px) {
  .entry-error { bottom: max(var(--bottom), 4.5dvh); }
}
:root { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus { outline: none; }
img { display: block; width: 100%; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: var(--icon); height: var(--icon); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.game-shell {
  --game-shell-width: 33.75rem;
  --post-page-width: var(--game-shell-width);
  position: relative; isolation: isolate; margin-inline: auto; width: min(100%, var(--game-shell-width)); height: 100vh; height: 100dvh;
  padding-inline: var(--safe-left) var(--safe-right); display: flex; flex-direction: column; overflow: hidden;
  background: #c3d371; box-shadow: 0 0 85px #112d2288;
}
.landscape { position: absolute; z-index: -1; inset: 0; background: #c4d776 url("assets/lobby.webp") center / cover no-repeat; }
.game-shell[data-view="guide"] .landscape,
.game-shell[data-view="bag"] .landscape,
.game-shell[data-view="profile"] .landscape { opacity: .62; }
.game-shell[data-skin="grove"] .landscape { filter: hue-rotate(14deg) saturate(.79); }
.game-shell[data-skin="berry"] .landscape { filter: hue-rotate(-18deg) saturate(.85); }
.game-shell[data-skin="orchard"] .landscape { filter: hue-rotate(-25deg) saturate(1.04); }
.resource-chip {
  --resource-icon: clamp(1.25rem, 5.6vw, 1.75rem);
  display: grid; grid-template-columns: var(--resource-icon) minmax(0, 1fr);
  align-items: center; width: clamp(3.5rem, 19vw, 5.25rem); min-height: clamp(1.75rem, 8vw, 2.2rem);
  padding: 2px 3px; border: 1px solid #e5ca83; border-radius: 999px;
  background: linear-gradient(#63784a, #345037); color: #fff8df;
  box-shadow: inset 0 1px #fff8db42, 0 2px #36532e99;
}
.resource-chip .resource-icon {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 2px 2px #32402573);
}
.resource-chip strong {
  min-width: 0; text-align: center; font-size: clamp(.61rem, 3.35vw, .94rem);
  font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap;
}
.resource-chip-with-add {
  grid-template-columns: var(--resource-icon) minmax(0, 1fr) auto;
  width: clamp(4.8rem, 22vw, 6.25rem); padding-inline-end: 5px;
}
.resource-chip .resource-add {
  width: clamp(.7rem, 3.15vw, .9rem); height: auto; aspect-ratio: 1;
  padding: 1px; border-radius: 50%; color: #5e3d24; background: #ffe2a0; stroke-width: 2.7;
}
.resource-chip-with-add:disabled { opacity: .72; }
.resource-chip-with-add:disabled .resource-add { visibility: hidden; }
[data-lobby="meadow"] { --lobby-art: url("assets/garden-ui/conservatory.webp?v=wide-lobby"); --lobby-wardrobe-focus: 50%; }
[data-lobby="orchard"] { --lobby-art: url("assets/lobby-orchard.webp?v=wide-lobby"); }
[data-lobby="rain"] { --lobby-art: url("assets/lobby-rain.webp?v=wide-lobby"); }
[data-lobby="winter"] { --lobby-art: url("assets/lobby-winter.webp?v=wide-lobby"); }
[data-lobby="wind-post-dusk"] { --lobby-art: url("assets/lobby-wind-post-dusk.webp?v=wide-lobby"); }
[data-lobby="wind-post-night"] { --lobby-art: url("assets/lobby-wind-post-night.webp?v=wide-lobby"); }
[data-lobby]:not([data-lobby="meadow"]) {
  --lobby-wardrobe-focus: 28%;
}
.screen { position: relative; flex: 1; min-width: 0; min-height: 0; }
#home-weather { z-index: 0; }
.lobby-lighting-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[data-lobby-lit] :is(.character-body, .mascot-shadow) { visibility: hidden; }
.wind-post-entry[data-ready="true"]::after {
  content: ""; position: absolute; top: 1px; right: 4px; width: 9px; height: 9px;
  background: #ec583d; border: 2px solid #fff3cb; border-radius: 50%;
}

@font-face {
  font-family: "Wind Post Title";
  src: url("assets/wind-post-title.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@media (min-aspect-ratio: 5/4) and (min-width: 34rem) {
  .game-shell { --post-page-width: 65rem; }
}
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 124/100) {
  .game-shell { --post-page-width: 48rem; }
}
.wind-post-letter {
  min-height: 125px; padding: 13px; border: 1px solid #cfb18a; border-radius: 10px;
  background: #fff4d7; color: #544535;
}
.wind-post-letter h3, #wind-post-rewards h3 { margin: 0 0 6px; font-size: var(--text-action); }
.wind-post-letter p { margin: 7px 0; line-height: 1.65; }
.wind-post-letter img { width: 27%; max-width: 95px; float: right; margin: 0 0 5px 6px; }
.wind-post-rank-list, .wind-post-rewards { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.wind-post-rank-list li, .wind-post-rewards li {
  display: grid; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid #d6bf96; border-radius: 9px;
  background: #fff9e8; font-size: var(--text-label);
}
.wind-post-rank-list li { grid-template-columns: 2rem minmax(0, 1fr) auto; }
.wind-post-rank-list li[data-own="true"], .wind-post-rewards li[data-state="claimed"] { background: #e6eedc; border-color: #a9ba9b; }
.wind-post-rank-list li > strong, .wind-post-step { color: #805629; text-align: center; }
.wind-post-rewards li { grid-template-columns: 4.125rem 2.25rem minmax(0, 1fr) auto; }
.wind-post-rewards li[data-special="true"] { border-color: #bf8a42; background: #fff1c8; }
.wind-post-rewards li[data-state="ready"] { background: #ffe5ab; border-color: #ae7736; }
.wind-post-step { font-variant-numeric: tabular-nums; font-weight: 900; white-space: nowrap; }
.wind-post-loot { position: relative; width: 2.25rem; height: 2.25rem; }
.wind-post-loot > img { width: 100%; height: 100%; object-fit: contain; }
.wind-post-loot-name small { display: block; color: #62573d; line-height: 1.3; }
.wind-post-rewards button { font-size: var(--text-small); min-width: 3.05rem; padding: 2px 5px; }
.wind-post-rewards button:disabled { opacity: 1; box-shadow: none; color: #5d674f; }
#wind-post-meter { display: block; width: 100%; height: 10px; margin: 4px 0 10px; accent-color: #4b7f6a; }
#wind-post-rewards h3 { margin-top: 12px; }

.home-mascot { position: relative; flex: 1; min-height: 85px; width: 100%; display: grid; place-items: center; }
.mascot-figure {
  position: relative; width: min(68%, 18.125rem, 36dvh); aspect-ratio: 339 / 416;
  margin-top: min(17dvh, 140px);
}
#mascot {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: 42%; background: none;
}
.lobby-character { position: relative; display: block; width: 100%; height: 100%; }
.character-body { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.character-accessory {
  position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom; pointer-events: none;
}
.character-accessory[data-wear-art="padded"] {
  /* The exported canvas has 25% extra room, with the character centered at the bottom. */
  inset: auto auto 0 -12.5%; width: 125%; height: 125%;
}
.character-accessory[data-wear-art="pin"] {
  inset: var(--pin-y) auto auto var(--pin-x); width: 16%; height: 16%;
  transform: translate(-50%, -50%); object-position: center;
}
.lobby-character[data-companion="companion-post-hedgehog"]:has([data-accessory="post-hedgehog-apron"]:not([hidden]))::before,
.lobby-character[data-companion="companion-post-hedgehog"]:has([data-accessory="post-hedgehog-apron"]:not([hidden]))::after {
  content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background: url("assets/companion-post-hedgehog.webp") center bottom / contain no-repeat;
}
.lobby-character[data-companion="companion-post-hedgehog"]::before {
  clip-path: polygon(23% 57%, 32% 53%, 35% 55%, 36% 60%, 39% 62%, 44% 64%, 46% 67%, 44% 70%, 39% 72%, 34% 71%, 28% 69%, 23% 65%, 21% 61%);
}
.lobby-character[data-companion="companion-post-hedgehog"]::after {
  clip-path: polygon(77% 57%, 68% 53%, 65% 55%, 64% 60%, 61% 62%, 56% 64%, 54% 67%, 56% 70%, 61% 72%, 66% 71%, 72% 69%, 77% 65%, 79% 61%);
}
#mascot .lobby-character {
  transform-origin: 50% 91%; filter: drop-shadow(0 11px 9px #4a3a1f55);
  animation: mascot-idle 3.2s ease-in-out infinite;
}
.mascot-figure[data-reaction] #mascot .lobby-character { animation: var(--mascot-reaction) .74s cubic-bezier(.25,.73,.34,1) both; }
[data-reaction="hop"] { --mascot-reaction: mascot-hop; --reaction-color: #ffeb8a; }
[data-reaction="tilt"] { --mascot-reaction: mascot-tilt; --reaction-color: #f8ffd0; }
[data-reaction="hide"] { --mascot-reaction: mascot-hide; --reaction-color: #d69966; }
[data-reaction="love"] { --mascot-reaction: mascot-love; --reaction-color: #ff92a5; }
[data-reaction="cheer"] { --mascot-reaction: mascot-cheer; --reaction-color: #ffd968; }
[data-reaction="post-nod"] { --mascot-reaction: mascot-post-nod; --reaction-color: #ffdf90; }
[data-reaction="post-listen"] { --mascot-reaction: mascot-post-listen; --reaction-color: #f4e5b9; }
[data-reaction="post-warm"] { --mascot-reaction: mascot-post-warm; --reaction-color: #ffd17a; }
.mascot-shadow {
  position: absolute; left: 50%; bottom: -1%; width: 90%; height: 22px; border-radius: 50%;
  background: #61713963; filter: blur(5px); transform: translateX(-50%);
}
.mascot-sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mascot-sparks i {
  position: absolute; opacity: 0; color: var(--reaction-color); font: 900 25px/1 sans-serif;
  text-shadow: 0 1px 3px #754b316c;
}
.mascot-sparks i:nth-child(1) { left: 10%; top: 38%; --spark-x: -23px; --spark-y: -34px; }
.mascot-sparks i:nth-child(2) { right: 8%; top: 41%; --spark-x: 22px; --spark-y: -39px; }
.mascot-sparks i:nth-child(3) { left: 24%; top: 18%; --spark-x: -16px; --spark-y: -38px; }
.mascot-sparks i:nth-child(4) { right: 23%; top: 19%; --spark-x: 25px; --spark-y: -29px; }
.mascot-figure[data-reaction] .mascot-sparks i { animation: mascot-spark .81s ease-out both; }
.mascot-figure[data-reaction="hide"] .mascot-sparks i { top: 86%; }

@keyframes mascot-idle { 0%, 100% { transform: translateY(2%) scale(1.03,.98) rotate(-2deg); } 50% { transform: translateY(-2%) scale(.99,1.02) rotate(2deg); } }
@keyframes mascot-hop { 0%, 100% { transform: none; } 16% { transform: translateY(3%) scale(1.07,.92); } 52% { transform: translateY(-16%) rotate(-7deg); } 77% { transform: translateY(1%) scale(1.06,.95); } }
@keyframes mascot-tilt { 0%, 100% { transform: none; } 31% { transform: rotate(-11deg); } 68% { transform: rotate(8deg); } }
@keyframes mascot-hide { 0%, 100% { transform: none; opacity: 1; } 32%, 47% { transform: translateY(20%) scale(.91,.68); opacity: .22; } 72% { transform: translateY(-7%) scale(1.04,1.06); } }
@keyframes mascot-love { 0%, 100% { transform: none; } 29% { transform: scale(1.10) rotate(4deg); } 49% { transform: scale(.98); } 70% { transform: scale(1.08) rotate(-3deg); } }
@keyframes mascot-cheer { 0%, 100% { transform: none; } 26% { transform: translateY(-9%) rotate(-6deg); } 52% { transform: translateY(-13%) rotate(6deg); } 77% { transform: translateY(1%) scale(1.05,.95); } }
@keyframes mascot-post-nod { 0%, 100% { transform: none; } 34% { transform: translateY(4%) rotate(-3deg) scale(1.025,.93); } 65% { transform: translateY(-1%) scale(.99,1.02); } }
@keyframes mascot-post-listen { 0%, 100% { transform: none; } 35%, 58% { transform: rotate(9deg) translateX(3%); } }
@keyframes mascot-post-warm { 0%, 100% { transform: none; } 45%, 66% { transform: translateY(-4%) scale(1.06) rotate(-4deg); filter: drop-shadow(0 0 10px #ffd078d4); } }
@keyframes mascot-spark { 0% { opacity: 0; transform: scale(.3); } 21% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--spark-x),var(--spark-y)) scale(1.13) rotate(17deg); } }

.game-button {
  min-height: var(--touch); display: inline-flex; align-items: center; justify-content: center; gap: var(--gap); padding: 0.4em 0.75em; font-size: var(--text-action);
  color: #fff7dd; background: linear-gradient(#57854b, #3e683d); border: 1.5px solid #24452b; border-radius: 13px;
  box-shadow: inset 0 1px 0 #ffffff40, 0 3px 0 #24452b; font-weight: 900;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.game-button-gold { color: #5e3818; background: linear-gradient(#ffe08b, #f4bb51); border-color: #a66c2c; box-shadow: inset 0 1px 0 #fff8c6, 0 3px 0 #965e2a; }
.game-button-alt { color: #476044; background: #faf0d1; border-color: #ccb47c; box-shadow: 0 3px 0 #b69a68; }
.game-button:active, .square-button:active { transform: translateY(2px); box-shadow: none; }
.game-button:disabled { filter: grayscale(.65); opacity: .64; }

.adventure-flag {
  flex: none; width: clamp(1.5rem, 6.4vw, 2rem); height: clamp(1.5rem, 6.4vw, 2rem);
  object-fit: contain; filter: drop-shadow(0 1px 1px #7142269c);
}

.square-button {
  display: grid; place-items: center; min-width: var(--touch); min-height: var(--touch); padding: 5px; border: 1px solid #c0a56c;
  border-radius: 11px; color: #46623b; background: #fff4d6; box-shadow: 0 3px 0 #9172408f;
}
.screen-heading { flex: none; display: grid; grid-template-columns: var(--touch) minmax(0, 1fr) var(--touch); align-items: center; gap: var(--gap); padding: var(--top) var(--edge) var(--gap); }
.screen-heading > .square-button { align-self: start; inline-size: var(--touch); block-size: var(--touch); }
.screen-heading > .square-button:focus-visible { outline: 2px solid #4f7045; outline-offset: 2px; }
.screen-heading h2 { margin: 0; text-align: center; font-weight: 1000; font-size: var(--text-heading); text-shadow: 0 2px #fff8dc; }
[data-skin="meadow"] { --map-art: url("assets/map-meadow.webp"); --map-ink: #416039; --map-foliage: #94b458; }
[data-skin="grove"] { --map-art: url("assets/map-grove.webp"); --map-ink: #435a36; --map-foliage: #91a659; }
[data-skin="berry"] { --map-art: url("assets/map-berry.webp"); --map-ink: #695052; --map-foliage: #be8d8e; }
[data-skin="orchard"] { --map-art: url("assets/map-orchard.webp"); --map-ink: #755035; --map-foliage: #d5a45d; }
.chapter-emblem { flex: none; width: var(--art-small); height: var(--art-small); object-fit: contain; filter: drop-shadow(0 2px 1px #35271961); }
.star-rating { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.star-rating i { display: grid; place-items: center; color: #816747; }
.star-rating .icon { width: var(--star-small); height: var(--star-small); fill: #d7c5a0; stroke-width: 1.9; }
.star-rating .earned { color: #995b24; }
.star-rating .earned .icon { fill: #ffd05e; }
.achievement-plate {
  position: relative; display: grid; width: min(100%, 25rem); aspect-ratio: 9 / 2;
  place-items: center; margin-inline: auto; isolation: isolate; container-type: inline-size;
  --plate-background: linear-gradient(110deg, #94763b, #63512b 52%, #87703b);
  --plate-edge: #d0a35f;
}
.achievement-plate > img {
  grid-area: 1 / 1; width: 100%; height: auto;
  filter: drop-shadow(0 1px 1px #38271850);
}
.achievement-plate::before {
  content: ""; position: absolute; z-index: -1; inset: 25% 2.2% 19%; border-radius: 999px;
  border: 1px solid var(--plate-edge); background: var(--plate-background);
  box-shadow: inset 0 1px #fffcf442, inset 0 -1px #2113264d, 0 1px 2px #24193c47;
}
.achievement-plate > span {
  grid-area: 1 / 1; z-index: 1; white-space: nowrap;
  font: 800 min(6.5cqi, 1.25rem)/1.12 "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: .055em; text-align: center; translate: 0 16%;
  color: var(--plate-ink, #fff9ec); text-shadow: var(--plate-text-shadow, 0 1px 2px #201323c9);
}
.achievement-plate[data-long-title] > span { font-size: min(6cqi, 1.25rem); }
.achievement-plate[data-achievement="first-sprout"] {
  --plate-edge: #c6a16a;
  --plate-background:
    repeating-radial-gradient(ellipse at 9% 153%, transparent 0 15%, #ffd58b36 15.4% 15.8%, transparent 16.3% 22%),
    radial-gradient(ellipse at 3% -2%, #b48c4a, transparent 58%),
    linear-gradient(105deg, #795531, #554e31 60%, #7a743d);
}
.achievement-plate[data-achievement="sunny-gardener"] {
  --plate-edge: #c1ce93;
  --plate-background:
    repeating-conic-gradient(from -84deg at 7% 109%, #ffefaa30 0 4deg, transparent 4.6deg 16deg, #ffefaa12 17deg 23deg),
    radial-gradient(ellipse at 2% 17%, #d5ac58, transparent 62%),
    linear-gradient(100deg, #80733e, #466a46 75%, #6b8752);
}
.achievement-plate[data-achievement="bloom-keeper"] {
  --plate-edge: #d6989f;
  --plate-background:
    radial-gradient(ellipse at 7% 133%, #f3ac9d9c 0 14%, #ffccbe42 14.6% 16%, transparent 16.8%),
    radial-gradient(ellipse at 92% -48%, #d993b296 0 24%, transparent 24.7%),
    radial-gradient(ellipse at 81% 155%, #e7939f8f 0 26%, transparent 26.7%),
    radial-gradient(ellipse at 34% -70%, #9d4572, transparent 66%), #69304f;
}
.achievement-plate[data-achievement="stardew-guide"] {
  --plate-edge: #9fb5e6;
  --plate-background:
    radial-gradient(ellipse at 26% 133%, transparent 0 45%, #c2d3ff68 45.5% 46%, transparent 46.8% 56%, #b9c9ff44 56.6% 57.2%, transparent 57.8%),
    radial-gradient(circle at 29% 26%, #f8f2dd 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 69%, #bbe3fa 0 1px, transparent 1.7px),
    radial-gradient(circle at 88% 21%, #f8f2dd 0 1px, transparent 1.6px),
    radial-gradient(ellipse at 90% 18%, #5959a0, transparent 59%), linear-gradient(110deg, #304f91, #262952 56%, #374171);
}
.achievement-plate[data-achievement="post-novice-title"] {
  --plate-edge: #dcaa8f;
  --plate-background:
    radial-gradient(ellipse at 89% 9%, transparent 0 17%, #fdd7a561 17.4% 18.3%, transparent 18.9% 24%, #fdd7a533 24.5% 25%, transparent 25.6%),
    radial-gradient(ellipse at 10% 81%, #b84e45, transparent 49%),
    radial-gradient(ellipse at 89% 11%, #a96953, transparent 52%), #7c3b42;
}
.achievement-plate[data-achievement="post-all-letters-title"] {
  --plate-edge: #91c7bc;
  --plate-background:
    radial-gradient(ellipse at 18% 50%, #e6b86555, transparent 50%),
    repeating-radial-gradient(ellipse at 93% 110%, transparent 0 16%, #b4ece745 16.4% 17.2%, transparent 17.8% 24%),
    linear-gradient(112deg, #42645d, #1b4b59 52%, #286f72);
}
.achievement-plate[data-achievement="post-rank-gold-title"] {
  --plate-edge: #f0ce82;
  --plate-ink: #4e3016;
  --plate-text-shadow: 0 1px #fff3cb96;
  --plate-background:
    repeating-conic-gradient(from -45deg at 13% 45%, #fff5bf67 0 5deg, transparent 6deg 18deg, #ffecad28 18deg 27deg),
    radial-gradient(ellipse at 54% 18%, #fff0b7, #e4b367 61%, #a97238);
}
.achievement-plate[data-achievement="post-rank-silver-title"] {
  --plate-edge: #b1cbe9;
  --plate-background:
    repeating-linear-gradient(117deg, transparent 0 21px, #dbeaff29 22px, transparent 23px 39px),
    radial-gradient(ellipse at 75% -29%, #97a9d2, transparent 74%),
    linear-gradient(180deg, #526c92, #354970 67%, #465c83);
}
.achievement-plate[data-achievement="post-rank-bronze-title"] {
  --plate-edge: #d09b74;
  --plate-background:
    repeating-radial-gradient(ellipse at 102% 157%, transparent 0 16%, #f5c18638 16.5% 17.2%, transparent 17.8% 26%),
    radial-gradient(ellipse at 10% 50%, #ad6b50, transparent 57%),
    linear-gradient(85deg, #8f4f3b, #653f41 65%, #82583e);
}
.achievement-plate[data-achievement="bond-mole"] {
  --plate-background:
    radial-gradient(ellipse at 12% 150%, transparent 0 35%, #d8b66b58 35.5% 36.3%, transparent 37% 48%, #e6c77a42 48.7% 49.2%, transparent 50%),
    linear-gradient(96deg, #956735, #63512d 56%, #6b7541);
}
.achievement-plate[data-achievement="bond-rabbit"] {
  --plate-edge: #edaa8b;
  --plate-background:
    radial-gradient(ellipse at 35% -72%, #fac4a5ab, transparent 61%),
    radial-gradient(ellipse at 97% 148%, #d88a85, transparent 58%),
    linear-gradient(180deg, #a94d61, #7d354b 76%, #a45462);
}
.achievement-plate[data-achievement="bond-owl"] {
  --plate-edge: #a6a4d8;
  --plate-background:
    radial-gradient(ellipse at 13% 0%, #aa96e78a, transparent 65%),
    radial-gradient(ellipse at 79% 135%, transparent 0 51%, #c8c5ff45 51.5% 52%, transparent 52.5%),
    radial-gradient(circle at 87% 28%, #f0e5ff 0 1px, transparent 1.7px),
    linear-gradient(105deg, #484788, #33396e 65%, #6164a7);
}
.achievement-plate[data-achievement="bond-kitten"] {
  --plate-edge: #d9a8b4;
  --plate-background:
    radial-gradient(ellipse at 8% -62%, #ffc6a89c, transparent 56%),
    radial-gradient(ellipse at 102% 143%, #b77ba27d, transparent 63%),
    linear-gradient(100deg, #975b74, #693b64 48%, #6a537e);
}
.achievement-plate[data-achievement="bond-fox"] {
  --plate-edge: #d29769;
  --plate-background: linear-gradient(110deg, #a45d3a, #703725 58%, #955734);
}
.achievement-plate[data-achievement="bond-duck"] {
  --plate-edge: #9bcbbc;
  --plate-background: linear-gradient(110deg, #4f8782, #285d64 58%, #4c858a);
}
.achievement-plate[data-achievement="bond-panda"] {
  --plate-edge: #ccaa67;
  --plate-background: linear-gradient(110deg, #7d7747, #464f33 58%, #776041);
}
.achievement-plate[data-achievement="bond-fawn"] {
  --plate-edge: #e4a974;
  --plate-background:
    radial-gradient(ellipse at 83% 110%, #d4985785, transparent 58%),
    radial-gradient(circle at 77% 27%, #ffe6b574 0 1px, transparent 2px),
    radial-gradient(circle at 83% 38%, #ffe6b574 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 24% 57%, #ffe6b563 0 1.5px, transparent 2.5px),
    linear-gradient(120deg, #9b694e, #75442f 65%, #9d5e3d);
}
.achievement-plate[data-achievement="bond-stoat"] {
  --plate-edge: #adcadd;
  --plate-background:
    radial-gradient(ellipse at 21% 20%, #d1f4ff80, transparent 50%),
    linear-gradient(151deg, transparent 0 63%, #e4f9ff35 63.5% 64.5%, transparent 65%),
    linear-gradient(28deg, transparent 0 42%, #d3eafa2b 42.5% 43%, transparent 44%),
    linear-gradient(95deg, #557ea0, #38567c 61%, #7499b5);
}
.achievement-plate[data-achievement="bond-douyou"] {
  --plate-edge: #8cd1cf;
  --plate-background:
    radial-gradient(ellipse at 12% 143%, transparent 0 58%, #a3e5e958 58.7% 59.5%, transparent 60%),
    radial-gradient(ellipse at 88% -76%, transparent 0 55%, #a3e5e93b 55.7% 56.5%, transparent 57%),
    linear-gradient(115deg, #47898e, #24586d 51%, #296b72);
}
.achievement-plate[data-achievement="bond-hedgehog"] {
  --plate-edge: #dcab81;
  --plate-background:
    radial-gradient(ellipse at 12% 82%, #e3aa68a3, transparent 63%),
    radial-gradient(ellipse at 88% 41%, #e4a1717d, transparent 44%),
    radial-gradient(ellipse at 47% -50%, #8d4c57, transparent 70%), #653d42;
}
.achievement-plate[data-achievement="bond-sparrow"] {
  --plate-edge: #94cbaf;
  --plate-background:
    repeating-radial-gradient(ellipse at 95% 0%, transparent 0 21%, #c3f2d43b 21.3% 22%, transparent 22.7% 33%),
    radial-gradient(ellipse at 15% 120%, #6db29c, transparent 61%),
    linear-gradient(95deg, #357c79, #215a63 68%, #568b72);
}
.achievement-choices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.achievement-choice:disabled .achievement-plate { filter: grayscale(1); }
.achievement-choice:disabled .achievement-plate > img { opacity: .72; }
.game-toast {
  position: fixed; z-index: 30; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: min(calc(100vw - var(--safe-left) - var(--safe-right) - 2 * var(--edge)), 22rem);
  margin: 0; padding: .65em 1.15em; border: 1px solid #e5ca86; border-radius: 14px;
  background: #294f35; color: #fff5d5; box-shadow: 0 5px 16px #1a2d24a0, inset 0 1px #fff4d04d;
  font-size: var(--text-body); font-weight: 900; line-height: 1.45; text-align: center; overflow-wrap: anywhere;
  pointer-events: none; transition: opacity .15s ease-out;
}
.game-toast[data-kind="error"] { background: #783e2e; border-color: #edbd88; }
.game-toast:empty { opacity: 0; }
@media (max-height: 540px) {
  .profile-panels { gap: var(--gap); }
}
@media (orientation: landscape) and (max-height: 540px) {
  .profile-sheet { padding: clamp(.6rem, 3dvh, 1rem); }
}
.currency-earned img { display: inline-block; width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: middle; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(3.45rem, (100% - 3 * var(--gap)) / 4)), 1fr)); gap: var(--gap); }
.inventory-tile {
  position: relative; display: grid; aspect-ratio: 1; min-width: 0;
  border: 1px solid #d5b77d; border-radius: 9px; background: #fffae7; box-shadow: inset 0 0 0 2px #fffdf0;
}
.inventory-tile {
  grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: 2px;
  padding: 4px 2px 3px; color: #425b39;
}
.inventory-tile img { width: 77%; height: 100%; min-height: 0; object-fit: contain; }
.inventory-tile > .icon { align-self: center; color: #92754e; }
.inventory-name { max-width: 100%; font-size: var(--text-small); font-weight: 950; line-height: 1.15; overflow-wrap: anywhere; }
.inventory-badge {
  position: absolute; z-index: 1; top: 2px; right: 2px; padding: 1px 3px;
  color: #fff7e1; background: #567449; border-radius: 4px; font-size: var(--text-micro); font-weight: 900;
}
.inventory-tile[data-locked="true"] { background: #f0e9d6; }
.inventory-tile[data-locked="true"] img { filter: grayscale(1); opacity: .6; }
.inventory-tile[data-locked="true"] .inventory-badge { background: #7b6c55; }
.inventory-tile[aria-pressed="true"] { border-color: #849f53; background: #ebf1ce; box-shadow: inset 0 0 0 2px #a4b66b; }
.item-portrait {
  width: var(--portrait); height: var(--portrait); display: grid; place-items: center; margin: 0 auto 8px;
  border: 1px solid #dcc085; border-radius: 13px; background: linear-gradient(#fff6d7, #f4e6b8);
}
.item-portrait img { width: 82%; height: 82%; object-fit: contain; }
.wallpaper-preview {
  width: auto; height: auto; max-width: 100%; max-height: min(50dvh, 23rem);
  margin: 0 auto 10px; border: 1px solid #d5b77d; border-radius: 11px;
  box-shadow: 0 2px 5px #654c2d30; object-fit: contain;
}
.wallpaper-preview + .dialog-note { font-size: var(--text-label); }
.star-conditions { margin-top: var(--gap); color: #594829; font-size: var(--text-small); }
.star-conditions header {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .55em; margin-bottom: 3px; padding-inline: 3px;
}
.star-conditions header strong { font-weight: 950; }
.star-conditions header span { color: var(--muted); }
.star-conditions ol {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none;
}
.star-conditions li {
  display: grid; justify-items: center; align-content: center; gap: 1px; padding: 3px 1px;
  border: 1px solid #c9aa71; border-radius: 8px; background: linear-gradient(#fff8df, #f8e9be);
  text-align: center; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.star-conditions li > strong { display: inline-flex; align-items: center; gap: 2px; font-weight: 950; }
.star-conditions li img { width: var(--star-small); height: var(--star-small); }
.star-conditions li b { white-space: nowrap; }
.star-conditions li small { display: block; margin-top: 2px; font-size: var(--text-micro); }
.star-conditions li:last-child { border-color: #bf8b3d; background: linear-gradient(#fff3c6, #f7db91); }
.star-conditions li.star-unavailable { color: #635e50; border-color: #bfb79e; background: #f1ead7; }
.star-unavailable img { filter: grayscale(1); opacity: .65; }
.stage { position: relative; isolation: isolate; overflow: hidden; }
.stage[data-weather="winter"] .burrow-art { filter: drop-shadow(0 3px 3px #56779c72); }
.stage[data-weather="rain"] .burrow-art { filter: saturate(.85) drop-shadow(0 3px 3px #425d46a8); }
.letter-ready .target-badge { background: #ffe4a3; color: #693c23; box-shadow: 0 0 9px #ffdd84, 0 2px #80512a; }
.letter-ready .target-badge img, .post-letter .icon { width: 100%; height: 100%; }
.post-letter { display: grid; place-items: center; padding: 3px; border-radius: 4px; background: #ffe4a3; color: #693c23; }
.post-delivery {
  position: absolute; z-index: 4; top: 4%; left: 30%; width: 43%; height: 74%;
  object-fit: contain; pointer-events: none; animation: post-delivery .62s ease-in-out both;
}
@keyframes post-delivery {
  0% { opacity: 0; transform: translate(-110%, -45%) scale(.75) rotate(-15deg); }
  35% { opacity: 1; transform: translate(0, 12%) scale(1) rotate(5deg); }
  100% { opacity: 0; transform: translate(115%, -55%) scale(.8) rotate(-13deg); }
}
.weather-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.burrows { --burrow-base: 8%; position: absolute; z-index: 1; inset: 11% 4% 7%; display: grid; grid-template: repeat(var(--rows), minmax(0, 1fr)) / repeat(var(--cols), minmax(0, 1fr)); }
.burrows[data-rows="2"] { --burrow-base: 20%; }
.burrow { position: relative; isolation: isolate; min-height: 0; padding: 0; border: 0; border-radius: 16px; background: transparent; user-select: none; touch-action: none; }
.burrow-art { position: absolute; width: 88%; height: auto; left: 6%; bottom: var(--burrow-base); pointer-events: none; }
.mole-window { position: absolute; display: grid; justify-items: center; align-items: end; overflow: hidden; clip-path: ellipse(75% 100% at 50% 0%); inset: 0 12% calc(var(--burrow-base) + 8cqw); pointer-events: none; }
.burrow { container-type: inline-size; }
.mole-rig { position: relative; width: min(100%, 5.5rem); height: 100%; max-height: 6.75rem; transform: translateY(110%); transition: transform 130ms ease-in; transform-origin: bottom center; }
.mole { width: 100%; height: auto; filter: drop-shadow(0 2px 2px #48270e44); }
.mole-rig .mole { height: 100%; object-fit: contain; object-position: center bottom; }
.garden-prop { position: absolute; width: 42%; height: 42%; bottom: 6%; right: 4%; object-fit: contain; filter: drop-shadow(0 2px 2px #65451c8c); }
[data-target="parasol"] .garden-prop { bottom: auto; top: 0; right: 10%; width: 72%; }
.carried-seed { position: absolute; bottom: 6%; left: 2%; width: 39%; height: 42%; object-fit: contain; filter: drop-shadow(0 2px 2px #62341d90); }
.burrow:not([data-target="seed"]) .carried-seed { display: none; }
.is-up .mole-rig { transform: translateY(0); transition: transform 145ms cubic-bezier(.22,.82,.41,1.14); }
.is-hit .mole-rig { animation: bonk .25s ease-in both; }
.helmet { position: absolute; width: 103%; height: 42%; object-fit: contain; left: -1%; top: -7%; display: none; }
.is-armored .helmet { display: block; }
.target-badge {
  display: none; position: absolute; z-index: 1; right: -1%; bottom: calc(var(--burrow-base) - 2px);
  width: clamp(18px, 27cqw, 2rem); aspect-ratio: 1; padding: 2px;
  border: 1px solid #8d5d30; border-radius: 6px; background: linear-gradient(145deg, #fff0bf, #dfad67);
  box-shadow: inset 0 1px #fff8dc, 0 2px 0 #80512a, 0 3px 3px #54361f51;
  pointer-events: none; transform-origin: center bottom; rotate: 6deg;
}
.target-badge::after {
  content: ""; position: absolute; left: calc(50% - 2px); bottom: -6px; width: 4px; height: 5px;
  border-radius: 0 0 2px 2px; background: #86572e; box-shadow: 0 1px 2px #4d321b73;
}
.is-up.has-badge .target-badge { display: block; animation: sign-up .16s ease-out both; }
@keyframes sign-up { from { opacity: 0; transform: translateY(3px) scale(.85); } to { opacity: 1; transform: none; } }
.target-badge .marker-art, .mini-target-badge .marker-art {
  width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px #4f331d88);
}
.is-up[data-target="armor"]:not(.is-armored) .target-badge { filter: saturate(.45) opacity(.67); rotate: 12deg; }
[data-target="frost"] .target-badge { background: linear-gradient(145deg, #f3fdff, #a3d3e6); border-color: #628fa7; }
[data-target="frost"][data-thawed="true"] .target-badge { background: linear-gradient(145deg, #fffcdd, #c4ddaa); }
[data-target="gold"] .mole { filter: sepia(.85) saturate(2.2) brightness(1.24) drop-shadow(0 0 5px #ffeb8b); }
[data-target="clock"] .mole { filter: drop-shadow(0 0 6px #baf4e0); }
.is-stirring .burrow-art { transform-origin: center 90%; animation: rim-lift 180ms ease-out both; }
.is-stirring::after {
  content: ""; position: absolute; left: 21%; bottom: var(--burrow-base); margin-bottom: 6%; width: 58%; aspect-ratio: 4;
  border-radius: 52% 55% 43% 40% / 85% 85% 26% 26%; background: radial-gradient(ellipse at 41% 25%, #d69450, #af6c35 46%, #76421f 82%);
  box-shadow: inset 0 -2px 3px #582b1d82, 0 2px 3px #341b10a3; transform-origin: center bottom; pointer-events: none; animation: earth-rise 180ms ease-out both;
}
.stage[data-phase="paused"] .is-stirring .burrow-art,
.stage[data-phase="paused"] .is-stirring::after { animation-play-state: paused; }
.effect { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hit-mallet { position: absolute; width: min(55%, 65px); height: auto; left: 54%; top: -13%; transform-origin: 80% 76%; animation: swing .34s ease-out both; }
.points { position: absolute; z-index: 1; left: 50%; top: 24%; color: #fff9d4; text-shadow: 0 2px 3px #422c1b, 0 0 3px #4c2b16; font-size: var(--text-action); font-weight: 1000; animation: float-up .63s ease-out both; }
.points.bad { color: #ffe0b7; }
.effect-loot {
  position: absolute; width: clamp(1rem, 33cqw, 2.3rem); aspect-ratio: 1; left: 50%; top: 39%;
  object-fit: contain; filter: drop-shadow(0 2px 2px #45301c85); animation: loot-hop .62s ease-out both;
}
@keyframes loot-hop {
  0% { opacity: 0; transform: translate(-50%, 20%) scale(.45) rotate(-24deg); }
  35% { opacity: 1; transform: translate(-65%, -95%) scale(1.08) rotate(-12deg); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-95%, -165%) scale(.75) rotate(14deg); }
}
.spark { position: absolute; top: 49%; left: 50%; color: #fff0a3; font-size: var(--text-action); text-shadow: 0 1px 2px #905b22; animation: scatter .44s ease-out both; }
.effect[data-impact] { --impact-ink: #f9c775; --impact-edge: #fff4b8; --impact-shade: #9b672b; }
.effect[data-impact="daisy"] { --impact-ink: #fff5c2; --impact-edge: #fdfbe2; --impact-shade: #b69249; }
.effect[data-impact="acorn"] { --impact-ink: #ffc267; --impact-edge: #ffd794; --impact-shade: #93481e; }
.effect[data-impact="postbell"] { --impact-ink: #ffe4aa; --impact-edge: #fff4cc; --impact-shade: #31706a; }
.effect[data-impact="starlight"] { --impact-ink: #b4ffef; --impact-edge: #fff5ad; --impact-shade: #158487; }
.effect[data-impact="double-star"] { --impact-ink: #ffcb73; --impact-edge: #fff4bf; --impact-shade: #896bc0; }
.effect[data-impact] .spark { color: var(--impact-ink); text-shadow: 0 1px 2px var(--impact-shade); animation-delay: 55ms; }
.effect[data-impact="double-star"] img.spark {
  width: clamp(.58rem, 20cqw, 1.1rem); height: auto; opacity: 0;
  filter: drop-shadow(0 1px 2px #754b2c); animation-delay: 85ms;
}
.hammer-impact {
  position: absolute; inset: 32% 11% 19%; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--impact-edge); box-shadow: inset 0 0 8px var(--impact-ink), 0 0 9px var(--impact-shade);
  background: radial-gradient(ellipse, var(--impact-edge), transparent 62%);
  animation: hammer-wave .43s 55ms cubic-bezier(.13,.65,.32,1) both;
}
[data-impact="acorn"] .hammer-impact { border-style: dashed; border-width: 3px; }
[data-impact="daisy"] .hammer-impact { border-style: dotted; transform-origin: 50% 58%; }
[data-impact="postbell"] .hammer-impact { border-style: double; border-width: 4px; }
[data-impact="double-star"] .hammer-impact { border-style: double; border-width: 4px; }
[data-impact="starlight"] .hammer-impact::after {
  content: ""; position: absolute; inset: 12%; rotate: -14deg; border: 2px solid var(--impact-ink); border-radius: 50%;
}
@keyframes hammer-wave {
  0% { opacity: 0; transform: scale(.28) rotate(-13deg); }
  24% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.14) rotate(6deg); }
}
.burrow.is-splash::before { content: ""; position: absolute; inset: 10% 3% 4%; border: 3px solid #fff6ad; border-radius: 50%; pointer-events: none; animation: bloom-burst .38s ease-out both; }
@keyframes rim-lift { 0% { transform: scale(1); } 75% { transform: scale(.99,1.12); } 100% { transform: scale(1,1.07); } }
@keyframes earth-rise { 0% { opacity: 0; transform: scale(.84,.22); } 75% { opacity: 1; transform: scale(1,1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bonk { 0% { transform: translateY(0); } 34% { transform: translateY(12%) scale(1.08,.84); } 100% { transform: translateY(110%); } }
@keyframes swing { 0% { opacity: 0; transform: translate(12%,-25%) rotate(44deg); } 16% { opacity: 1; } 44% { transform: translate(-29%,5%) rotate(-37deg); } 100% { opacity: 0; transform: translate(2%,-10%) rotate(5deg); } }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%,0) scale(.78); } 18% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); } 65% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-160%) scale(.92); } }
@keyframes scatter { from { opacity: 1; transform: translate(-50%,-50%) scale(.65); } to { opacity: 0; transform: translate(var(--x),var(--y)) rotate(var(--spark-angle, 100deg)) scale(1.1); } }
@keyframes bloom-burst { from { opacity: 1; transform: scale(.45); } to { opacity: 0; transform: scale(1.07); } }
.countdown { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; color: #fff3c9; text-shadow: 0 3px 0 #735227, 0 5px 12px #263b2966; }
.round-finale {
  position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none;
  overflow: hidden; background: var(--game-backdrop);
  animation: finale-wash .22s ease-out both;
}
.finale-light {
  position: absolute; width: min(70vmin, 23rem); aspect-ratio: 1;
  background: radial-gradient(ellipse, #ffe9a59e, #ffd56f32 38%, transparent 69%);
  animation: finale-rays 1.21s ease-out both;
}
.round-finale[data-outcome="timeout"] .finale-light { display: none; }
.finale-banner {
  position: relative; display: grid; justify-items: center; align-content: center; width: min(90%, 17rem);
  animation: finale-arrive .54s cubic-bezier(.19,.75,.28,1) .12s both;
}
.finale-banner img {
  height: clamp(4.3rem, 21dvh, 9.5rem); width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 7px 7px #43361181);
}
.finale-banner strong {
  position: relative; margin-top: -.36em; text-align: center; white-space: nowrap;
  font-size: clamp(1.2rem, min(7vw, 7dvh), 2.25rem); font-weight: 800; letter-spacing: .05em;
}
.round-finale[data-outcome="timeout"] .finale-banner img { height: clamp(3.2rem, 13dvh, 6rem); }
.finale-pending {
  position: absolute; top: 100%; margin-top: 10px; padding: .25em .7em; border-radius: 1em;
  background: #234732dc; color: #fff6d7; font-size: var(--text-small); font-weight: 850;
  animation: finale-wash .2s ease-out 1.5s both;
}
.is-finale-blooming::after {
  content: ""; position: absolute; z-index: 2; left: 29%; bottom: calc(var(--burrow-base) + 7%); width: 42%; height: 78%;
  pointer-events: none; background: url("assets/marker-bloom.webp") center bottom / contain no-repeat;
  filter: drop-shadow(0 0 8px #fff3ab); transform-origin: center bottom;
  animation: finale-bloom .78s cubic-bezier(.18,.74,.24,1) calc(.11s + var(--bloom-delay)) both;
}
@keyframes finale-bloom {
  0% { opacity: 0; transform: translateY(18%) scale(.3) rotate(-14deg); }
  42% { opacity: 1; transform: translateY(-23%) scale(1.12) rotate(6deg); }
  100% { opacity: 0; transform: translateY(-45%) scale(.92) rotate(15deg); }
}
@keyframes finale-wash { from { opacity: 0; } to { opacity: 1; } }
@keyframes finale-rays { 0% { opacity: 0; scale: .36; } 40% { opacity: .9; } 100% { opacity: .24; scale: 1.17; } }
@keyframes finale-arrive {
  0% { opacity: 0; transform: translateY(22px) scale(.66); }
  66% { opacity: 1; transform: translateY(-6px) scale(1.07); }
  100% { opacity: 1; transform: none; }
}
.pickup-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pickup-flight { position: absolute; width: clamp(1.45rem, 6vw, 2rem); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 2px 2px #4a361e9c); }
.game-dialog {
  position: fixed; inset: var(--top) var(--safe-right) var(--bottom) var(--safe-left);
  width: min(calc(100% - var(--safe-left) - var(--safe-right) - 2 * var(--edge)), var(--dialog-width, 26rem));
  max-height: min(calc(100vh - var(--top) - var(--bottom)), 45rem);
  max-height: min(calc(100dvh - var(--top) - var(--bottom)), 45rem);
  padding: clamp(0.5rem, 2dvh, 1.125rem) var(--edge) var(--gap); overflow: hidden;
  border: 2px solid #d6ad69; border-radius: 22px; color: var(--ink); background: linear-gradient(155deg, #fffdf0, #ffefd0); box-shadow: inset 0 0 0 2px #fff9e5, 0 6px 0 #77562c, 0 18px 45px #22362183;
}
.game-dialog[open] { display: flex; flex-direction: column; }
.reward-reveal {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0 max(var(--edge), var(--safe-right)) max(19px, var(--bottom)) max(var(--edge), var(--safe-left));
  border: 0; overflow: hidden; color: #4b3026; background: transparent; cursor: pointer;
}
.reward-reveal[open] { display: flex; flex-direction: column; }
.reward-reveal::backdrop { background: #231a16aa; }
.reward-reveal-scroll {
  flex: 1; min-height: 0; display: flex; overflow: auto; overscroll-behavior: contain;
  overflow-x: hidden;
  padding: max(24px, var(--top)) clamp(6px, 2vw, 18px) 13px;
}
.reward-reveal-content {
  position: relative; isolation: isolate; width: min(100%, 42rem); margin: auto; text-align: center;
}
.reward-reveal-light {
  position: absolute; z-index: -1; top: min(55%, 8.5rem); left: 50%;
  width: min(120vw, 43rem); aspect-ratio: 1.28; translate: -50% -50%;
  pointer-events: none;
  background: radial-gradient(ellipse, #ffe5a42c, #edaa3c20 32%, transparent 68%);
}
.reward-reveal-light::before, .reward-reveal-light::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
}
.reward-reveal-light::before {
  background: repeating-conic-gradient(from 8deg, transparent 0deg 15deg, #ffde84c4 23deg, #ffe7a060 30deg, transparent 39deg);
  mask-image: radial-gradient(ellipse, #000 3%, #000c 24%, transparent 72%);
}
.reward-reveal-light::after {
  background:
    radial-gradient(circle, #fff9d2 12%, #ffd677 27%, transparent 65%) 18% 53% / 13px 13px no-repeat,
    radial-gradient(circle, #fff9d2 18%, #ffc562 35%, transparent 70%) 77% 27% / 10px 10px no-repeat,
    radial-gradient(circle, #fff9d2 12%, #ffe7a3 27%, transparent 67%) 86% 58% / 15px 15px no-repeat,
    radial-gradient(circle, #fff9d2 10%, #ffd67b 27%, transparent 64%) 30% 22% / 7px 7px no-repeat,
    radial-gradient(circle, #fff9d2 10%, #ffc362 27%, transparent 68%) 72% 79% / 9px 9px no-repeat;
}
.reward-reveal-content h2 {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  margin: 0 0 clamp(16px, 4dvh, 36px);
  color: #fff1d8; font: 700 clamp(1.5rem, 7vw, 2.9rem)/1.1 "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  letter-spacing: .12em; text-shadow: 0 2px 5px #21130bc9;
}
.reward-reveal-content h2::before, .reward-reveal-content h2::after {
  content: ""; width: clamp(1.3rem, 10vw, 5rem); height: 7px; flex-shrink: 1;
  background:
    linear-gradient(90deg, transparent, #e9c68c) left center / calc(100% - 7px) 1px no-repeat,
    linear-gradient(45deg, transparent 15%, #e9c68c 16% 84%, transparent 85%) right center / 5px 5px no-repeat;
}
.reward-reveal-content h2::after { transform: scaleX(-1); }
.reward-reveal-items {
  --reward-tile-size: clamp(4.5rem, 24vw, 7.3rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(7px, 2vw, 15px);
  margin: 0; padding: 0; list-style: none;
}
.reward-reveal-tile {
  width: min(100%, var(--reward-tile-size)); min-width: 0; padding: 5px;
  border: 1px solid #bd8b606e; border-top-color: #fffbef; border-radius: 7px 15px;
  background: linear-gradient(153deg, #fff8ea, #f2dec4);
  box-shadow: inset 0 0 0 1px #fff8e7, 0 3px 7px #67402924;
}
.reward-reveal-art {
  position: relative; display: block; width: 100%; aspect-ratio: 1;
  border: 1px solid #ad805242; border-radius: 5px 11px;
  background: radial-gradient(ellipse at 50% 37%, #fff7dc 9%, #f5e3c8 69%, #e8c9a7);
}
.reward-reveal-art > img {
  position: absolute; inset: 8% 9% auto; width: 82%; height: 76%; object-fit: contain;
  filter: drop-shadow(0 3px 2px #74502e42);
}
.reward-reveal-art > .achievement-plate {
  position: absolute; top: 46%; left: 3%; width: 94%; translate: 0 -50%;
}
.mail-reward-art > .achievement-plate {
  position: absolute; inset: 41% 4% auto; width: 92%;
}
.reward-reveal-quantity {
  position: absolute; inset: auto 2px 2px auto; padding: 1px 5px;
  border: 1px solid #fff0d3; border-radius: 4px 7px; background: #694633; color: #fff6e6;
  font-size: var(--text-small); line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.reward-reveal-hint {
  align-self: center; flex: none; margin: 5px 0 9px; color: #fff3dc;
  font-size: var(--text-label); font-weight: 650; text-shadow: 0 1px 3px #201611c9;
}
.reward-reveal[data-companion-unlock] {
  cursor: default;
  background: radial-gradient(ellipse at 50% 43%, #8e572536, transparent 70%);
}
.reward-reveal[data-companion-unlock]::backdrop { background: rgb(0 0 0 / 76%); }
.reward-reveal[data-companion-unlock] h2 {
  margin-bottom: clamp(.75rem, 1.7dvh, 1.1rem);
  color: #ffe7b9; font-size: clamp(.95rem, 4.4vmin, 1.4rem); line-height: 1.35;
  letter-spacing: .23em; text-shadow: 0 2px 5px #190d08;
}
.reward-reveal[data-companion-unlock] h2::before,
.reward-reveal[data-companion-unlock] h2::after { width: clamp(1.6rem, 11vw, 3.6rem); }
.reward-reveal[data-companion-unlock] .reward-reveal-light {
  top: 43%; width: min(130vw, 43rem); aspect-ratio: .99;
  background: radial-gradient(ellipse, #e8a85144, #a6653630 43%, transparent 70%);
}
.reward-reveal[data-companion-unlock] .reward-reveal-light::before {
  background: repeating-conic-gradient(from 7deg, transparent 0deg 19deg, #ffd681a0 33deg, transparent 49deg 60deg);
  mask-image: radial-gradient(ellipse, #000d 10%, #0008 43%, transparent 73%);
}
.companion-reveal {
  display: grid; grid-template-areas: "stage" "action"; justify-items: center;
  gap: clamp(1rem, 2.5dvh, 1.5rem);
}
.companion-reveal-stage {
  --pavilion-footing: 19.5%;
  position: relative; isolation: isolate; grid-area: stage;
  width: min(100%, 29rem, 73dvh, calc(100dvh - 10rem));
}
.companion-reveal-stage::before {
  content: ""; position: absolute; z-index: -1; inset: -5% -6% 7%;
  background: radial-gradient(ellipse at 50% 57%, #ffedbfb0, #d3995a63 35%, #ae723327 53%, transparent 71%);
  pointer-events: none;
}
.companion-reveal-stage::after {
  content: ""; position: absolute; z-index: 1; left: 50%; bottom: var(--pavilion-footing);
  width: 47%; height: 7%; translate: -50% 50%;
  background: radial-gradient(ellipse, #63401d82, #754b362d 40%, transparent 72%);
  pointer-events: none;
}
.companion-reveal-pavilion {
  display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 15px #0f0907a3);
}
.companion-reveal-pavilion-light,
.companion-reveal-nameplate::after {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(109deg, transparent 38%, #ffda7b40 44%, #fff3bbd9 49%, #ffdd8a72 52%, transparent 59%) 100% 0 / 240% 100%;
}
.companion-reveal-pavilion-light {
  -webkit-mask: url("assets/garden-ui/companion-reveal-pavilion.webp") center / contain no-repeat;
  mask: url("assets/garden-ui/companion-reveal-pavilion.webp") center / contain no-repeat;
}
.companion-reveal-footlight {
  position: absolute; z-index: 1; left: 50%; bottom: var(--pavilion-footing);
  width: 75%; height: 10%; translate: -50% 50%; border: 1px solid #fff1b7;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse, transparent 32%, #ffcf703c 76%, #ffde7366);
  box-shadow: 0 0 16px #ffd489ab, inset 0 0 12px #fff4b57c;
}
.companion-reveal-portrait {
  position: absolute; z-index: 2; display: block; left: 50%; bottom: var(--pavilion-footing);
  width: 78%; height: 68%; translate: -50% 0; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 4px 6px #31211372);
}
.companion-reveal-glints {
  position: absolute; z-index: 3; inset: 2% -3% 12%; pointer-events: none; opacity: .78;
  background:
    radial-gradient(circle, #fff8de 12%, #f6c978bd 25%, transparent 69%) 12% 27% / 9px 9px no-repeat,
    radial-gradient(circle, #ffecc0 14%, #efb5608f 30%, transparent 70%) 20% 57% / 6px 6px no-repeat,
    radial-gradient(circle, #fff3d0 14%, #ffc269a0 26%, transparent 71%) 68% 18% / 7px 7px no-repeat,
    radial-gradient(circle, #ffeec2 14%, #f6c974a0 30%, transparent 72%) 89% 38% / 9px 9px no-repeat,
    radial-gradient(circle, #fff9e1 14%, #e9b354ab 28%, transparent 69%) 79% 68% / 6px 6px no-repeat,
    radial-gradient(circle, #fff5ce 12%, #f4c880a1 25%, transparent 71%) 9% 78% / 8px 8px no-repeat;
}
.companion-reveal-glints::before, .companion-reveal-glints::after {
  content: ""; position: absolute; width: clamp(13px, 5vw, 25px); aspect-ratio: 1; opacity: 0;
  background: radial-gradient(circle, #fffceb 12%, #ffe89f 58%, #f7bb63);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}
.companion-reveal-glints::before { left: 18%; top: 49%; }
.companion-reveal-glints::after { right: 17%; top: 32%; }
.companion-reveal-nameplate {
  position: relative; grid-area: stage; align-self: end; z-index: 1; display: grid; place-items: center;
  width: min(100%, clamp(10rem, 57vw, 17rem)); translate: 0 13%;
  filter: drop-shadow(0 4px 7px #1a0f08b0);
}
.companion-reveal-nameplate::after {
  content: "";
  -webkit-mask: url("assets/garden-ui/companion-reveal-nameplate.webp") center / contain no-repeat;
  mask: url("assets/garden-ui/companion-reveal-nameplate.webp") center / contain no-repeat;
}
.companion-reveal-nameplate > img, .companion-reveal-name { grid-area: 1 / 1; }
.companion-reveal-nameplate > img { display: block; width: 100%; height: auto; }
.companion-reveal-name {
  z-index: 1; padding-inline: .14em 0; white-space: nowrap;
  color: #fff4d2;
  font: 700 clamp(1.62rem, 7.8vmin, 2.45rem)/1.11 "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  letter-spacing: .14em; text-shadow: 0 2px 0 #533622, 0 3px 7px #0a1413;
}
.companion-reveal-continue {
  grid-area: action; min-width: min(11rem, 100%); min-height: var(--touch); padding: .45rem 1.8rem;
  border: 1px solid #eac98b; border-radius: 999px;
  background: radial-gradient(ellipse at 49% 0%, #fff9dfb8, transparent 51%), linear-gradient(#efd9a4, #d7a15a);
  box-shadow: inset 0 0 0 2px #764c2f6e, inset 0 0 0 3px #fce4ab, 0 3px 0 #57341b, 0 6px 18px #0f0805a6;
  color: #492b18; font: inherit; font-size: var(--text-action); font-weight: 750; line-height: 1.2;
  letter-spacing: .08em; text-shadow: 0 1px #fff0cb9c; cursor: pointer;
}
.companion-reveal-continue:focus-visible { outline: 2px solid #fff3ce; outline-offset: 4px; }
.companion-reveal-continue:active { translate: 0 2px; }
@media (orientation: landscape) and (max-height: 32rem) {
  .reward-reveal[data-companion-unlock] .reward-reveal-content {
    display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr auto 1fr;
    grid-template-areas: "stage intro" "stage name" "stage action";
    justify-items: center; align-items: center; gap: .85rem 1rem;
  }
  .reward-reveal[data-companion-unlock] h2 { grid-area: intro; align-self: end; margin: 0; }
  .reward-reveal[data-companion-unlock] .reward-reveal-light { left: 28%; }
  .companion-reveal { display: contents; }
  .companion-reveal-stage { width: min(100%, 79dvh); }
  .companion-reveal-nameplate { grid-area: name; width: min(100%, 15rem); translate: none; }
  .companion-reveal-continue { align-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .reward-reveal-content { animation: reward-reveal-in .23s ease-out both; }
  .reward-reveal-tile { animation: reward-reveal-in .24s ease-out calc(36ms * var(--reward-order)) both; }
  .reward-reveal[data-companion-unlock] .reward-reveal-content { animation: none; }
  .reward-reveal[data-companion-unlock] h2 { animation: reward-reveal-in .36s .09s ease-out both; }
  .companion-reveal-stage {
    transform-origin: 50% calc(100% - var(--pavilion-footing));
    animation: companion-pavilion-in .55s cubic-bezier(.21,.65,.34,1) both;
  }
  .companion-reveal-pavilion-light { animation: companion-light-sweep .96s .11s ease-out both; }
  .companion-reveal-footlight { animation: companion-floor-pulse .82s .20s ease-out both; }
  .companion-reveal-portrait {
    transform-origin: 50% 97%;
    animation: companion-portrait-in .56s .14s cubic-bezier(.24,.56,.32,1) both;
  }
  .companion-reveal-nameplate { animation: reward-reveal-in .38s .36s ease-out both; }
  .companion-reveal-nameplate::after { animation: companion-light-sweep .68s .45s ease-out both; }
  .companion-reveal-continue { animation: reward-reveal-in .3s .48s ease-out both; }
  .companion-reveal-glints { animation: companion-reveal-glimmer 3s ease-in-out infinite alternate; }
  .companion-reveal-glints::before { animation: companion-spark .72s .28s ease-out both; }
  .companion-reveal-glints::after { animation: companion-spark .7s .48s ease-out both; }
  .reward-reveal[open] .reward-reveal-light::before { animation: reward-rays 1.3s ease-out both; }
  .reward-reveal[open] .reward-reveal-light::after { animation: reward-glints 1.3s .08s ease-out both; }
  .reward-reveal[open][data-companion-unlock] .reward-reveal-light::before { animation: companion-sunburst 1.38s ease-out both; }
  .reward-reveal[open][data-companion-unlock] .reward-reveal-light::after { animation-delay: .19s; }
  @keyframes companion-pavilion-in {
    0% { opacity: 0; transform: translateY(9px) scale(.92); }
    72% { opacity: 1; transform: scale(1.012); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes companion-portrait-in {
    0% { opacity: 0; transform: translateY(8px) scale(.92); }
    68% { opacity: 1; transform: translateY(-3px) scale(1.025); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes companion-light-sweep {
    0% { opacity: 0; background-position: 100% 0; }
    25%, 62% { opacity: 1; }
    100% { opacity: 0; background-position: 0% 0; }
  }
  @keyframes companion-floor-pulse {
    0% { opacity: 0; transform: scale(.36); }
    31% { opacity: .84; }
    100% { opacity: 0; transform: scale(1.07); }
  }
  @keyframes companion-spark {
    0% { opacity: 0; transform: translateY(10px) rotate(-12deg) scale(.25); }
    38% { opacity: 1; transform: translateY(0) rotate(5deg) scale(1); }
    100% { opacity: 0; transform: translateY(-14px) rotate(24deg) scale(.36); }
  }
  @keyframes companion-sunburst {
    0% { opacity: .12; transform: scale(.6) rotate(-12deg); }
    27% { opacity: .92; }
    60% { opacity: .5; }
    100% { opacity: 0; transform: scale(1.17) rotate(8deg); }
  }
  @keyframes companion-reveal-glimmer {
    from { opacity: .45; transform: translateY(2px); }
    to { opacity: .93; transform: translateY(-6px); }
  }
  @keyframes reward-rays {
    0% { opacity: .34; transform: scale(.48) rotate(-10deg); }
    19%, 39% { opacity: .95; }
    68% { opacity: .52; }
    100% { opacity: 0; transform: scale(1.16) rotate(7deg); }
  }
  @keyframes reward-glints {
    0% { opacity: 0; transform: scale(.79); }
    31% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.13); }
  }
  @keyframes reward-reveal-in {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.dialog-scroll {
  min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 0 3px 3px; scroll-padding-block: var(--gap);
}
.game-dialog::backdrop { background: #1d3527a8; }
.dialog-close {
  position: absolute; top: 7px; right: 7px; z-index: 3; display: grid; place-items: center;
  width: var(--touch); height: var(--touch); padding: 2px; border: 0; border-radius: 50%; background: transparent;
  transition: transform .13s, filter .13s;
}
.dialog-close img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px #52331d85); }
.dialog-close:hover { filter: brightness(1.08); transform: rotate(5deg); }
.dialog-close:active { transform: translateY(2px) scale(.93); }
.dialog-emblem { display: grid; place-items: center; width: var(--touch); height: var(--touch); margin: 0 auto; color: #996426; background: linear-gradient(#ffecb3, #f5d685); border: 1px solid #dabb73; border-radius: 13px; box-shadow: inset 0 1px #fff4ce; }
.dialog-emblem .icon { width: var(--art-small); height: var(--art-small); }
.dialog-emblem.has-target-art { background: #f4e5b5; border-color: #cfb479; }
.dialog-emblem.has-target-art .marker-art { width: 77%; height: 77%; object-fit: contain; filter: drop-shadow(0 2px 2px #53351d48); }
.game-dialog h2 { margin: 8px 0 10px; padding-inline: 0.5em; text-align: center; font-size: var(--text-heading); font-weight: 1000; }
.dialog-body { font-size: var(--text-body); line-height: 1.55; color: #4f5e44; overflow-wrap: anywhere; }
.dialog-body p { margin: 7px 0; }
.dialog-actions { flex: none; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--gap); margin-top: var(--gap); padding-bottom: 3px; }
.dialog-actions .game-button { flex: 1 1 auto; min-width: min(100%, 5.3rem); font-size: var(--text-body); }
.dialog-pages:not(:empty) { flex: none; padding: 2px 3px; margin-top: var(--gap); }
.dialog-note { padding: 7px 9px; border-radius: 9px; background: #eaeed0; font-weight: 800; }
.energy-dialog .dialog-emblem.has-target-art {
  width: clamp(2.4rem, 11dvh, 3.75rem); height: auto; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff2ba, #e8cf83); border-color: #d2b06a;
}
.energy-dialog .dialog-emblem.has-target-art .marker-art { width: 86%; height: 86%; }
.energy-dialog h2 { margin-block: 5px 8px; }
.energy-summary {
  display: grid; gap: 5px; padding: .55rem .75rem; border: 1px solid #cbbb80; border-radius: 13px;
  background: linear-gradient(115deg, #456849, #2a4934); color: #fff7dc; box-shadow: inset 0 1px #ffecb54d;
}
.energy-summary > div, .energy-potions-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.energy-summary strong, .energy-summary p { font-variant-numeric: tabular-nums; }
.energy-summary strong b { font-size: var(--text-subheading); line-height: 1; color: #ffdc8d; }
.energy-summary p { margin: 0; color: #ebefce; font-size: var(--text-small); }
.energy-summary progress {
  display: block; appearance: none; width: 100%; height: .42rem; overflow: hidden; border: 0; border-radius: 10px; background: #263c2c;
}
.energy-summary progress::-webkit-progress-bar { background: #263c2c; }
.energy-summary progress::-webkit-progress-value { background: linear-gradient(#bddd7c, #8db352); border-radius: 10px; }
.energy-summary progress::-moz-progress-bar { background: linear-gradient(#bddd7c, #8db352); border-radius: 10px; }
.energy-potions-heading { margin: .55rem 0 .25rem; }
.energy-potions-heading h3 { margin: 0; color: var(--ink); font-size: var(--text-body); }
.energy-potions-heading > span { font-size: var(--text-small); }
.energy-potions { display: grid; gap: var(--gap); min-width: 0; margin: 0; padding: 0; border: 0; }
.energy-potion { position: relative; display: block; }
.energy-potion input { position: absolute; opacity: 0; }
.energy-potion-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--gap);
  padding: .3rem .5rem; border: 1px solid #d4bc83; border-radius: 11px;
  background: #fffaf0; cursor: pointer;
}
.energy-potion input:checked + .energy-potion-card { background: #edf2d5; border-color: #779751; box-shadow: inset 0 0 0 1px #9bb06f; }
.energy-potion-card img { width: clamp(2rem, 10vw, 3rem); aspect-ratio: 1; object-fit: contain; }
.energy-potion-copy { display: grid; line-height: 1.25; }
.energy-potion-copy strong { color: var(--ink); }
.energy-potion-copy small, .energy-potion-stock { font-size: var(--text-small); }
.energy-potion-stock {
  padding: .2em .4em; border-radius: 6px; background: #f2e3bb; color: #694a23; font-weight: 850; font-variant-numeric: tabular-nums;
}
.dialog-body .energy-empty {
  padding: .5em .7em; border-radius: 8px; background: #f1e8cc; text-align: center; font-size: var(--text-label);
}
.dialog-body .energy-preview { margin: .35em 0; color: #5c5432; text-align: center; font-size: var(--text-small); font-weight: 850; }
.energy-preview:empty { display: none; }
.energy-rules { text-align: center; font-size: var(--text-small); }
.energy-rules summary { color: #526545; cursor: pointer; }
.energy-rules p { text-align: start; }
.energy-confirm { text-align: center; }
.energy-confirm dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: .65rem 0; }
.energy-confirm dl > div { padding: .35rem .2rem; border-radius: 10px; background: #e7efce; color: #345637; }
.energy-confirm dl > div + div { background: #f6e3c4; color: #7b4528; }
.energy-confirm dd { margin: 0; font-size: var(--text-subheading); font-weight: 950; font-variant-numeric: tabular-nums; }
.level-detail-name { margin: 0 0 5px; color: var(--ink); font-size: var(--text-label); }
.level-facts { margin-top: 10px; color: #586349; font-size: var(--text-small); }
.level-record {
  display: flex; align-items: center; gap: var(--gap); margin-top: 8px; padding: 5px 7px;
  border: 1px solid #afbd82; border-radius: 10px; background: linear-gradient(110deg, #f3f4d8, #e7eecf);
}
.level-record h3 { margin: 0; color: #365539; font-size: var(--text-small); white-space: nowrap; }
.level-record dl { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.level-record dl > div { padding-inline: 3px; border-inline-start: 1px solid #9caf796e; text-align: center; }
.level-record dt, .level-record dd small { font-size: var(--text-micro); line-height: 1.2; }
.level-record dd { margin: 0; color: #30482e; font-weight: 950; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.level-objectives { margin-top: 11px; }
.level-objectives header { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 4px; }
.level-objectives h3 { margin: 0; color: var(--ink); font-size: var(--text-body); font-weight: 950; }
.level-objectives header > span { display: flex; align-items: center; gap: 3px; color: #6d542c; font-size: var(--text-small); font-weight: 850; white-space: nowrap; }
.level-objectives header .icon { width: 14px; height: 14px; }
.mission-grid {
  display: grid; grid-template-columns: repeat(min(var(--mission-count), 3), minmax(0, 1fr));
  gap: 8px; padding: 7px 5px; border: 1px solid #dfc891; border-radius: 12px; background: #f8eccc;
}
.mission {
  display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; color: #3f5135; text-align: center;
}
.mission-art {
  display: grid; place-items: center; width: 38px; height: 37px;
}
.mission-art > .marker-art { width: 34px; height: 34px; object-fit: contain; }
.mission strong { color: #30482e; font-size: var(--text-subheading); line-height: 1; font-weight: 950; white-space: nowrap; }
.mission strong small { font-size: var(--text-small); font-weight: 850; }
.mission-name { font-size: var(--text-label); font-weight: 850; }
.mini-target {
  position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 31px; border-radius: 9px;
}
.mini-target .mole { width: 26px; height: 28px; object-fit: contain; }
.mini-helmet { position: absolute; width: 24px; height: 11px; left: 3px; top: 0; object-fit: contain; }
.mini-target-badge {
  position: absolute; bottom: 0; right: 0; width: 14px; height: 14px; transform: rotate(7deg);
}
.target-rules { margin: 5px 0 0; padding: 0 7px; border-bottom: 1px solid #e5d0a0; }
.level-details[open] { border-bottom: 0; }
.level-details-content {
  padding: 9px 8px; border: 1px solid #c8cfa7; border-radius: 10px; background: #eef0dc;
}
.level-details .star-conditions li { font-weight: 500; }
.level-details .star-conditions li b { color: #674514; font-weight: 950; }
.level-details .star-conditions li:last-child b { color: #793a15; }
@media (max-width: 420px) {
  .level-details .star-conditions ol { grid-template-columns: 1fr; }
  .level-details .star-conditions li {
    grid-template-columns: 3.1rem minmax(0, 1fr); align-items: center; justify-items: start;
    gap: 6px; min-height: 32px; padding: 5px 7px; text-align: start;
  }
  .level-details .star-conditions li > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
  .level-details .star-conditions li small { margin-top: 0; font-size: inherit; }
}
.level-reward-list {
  display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 4px 0 0; padding: 0;
  list-style: none; font-size: var(--text-small);
}
.level-reward-list li { display: flex; align-items: center; gap: 4px; }
.level-reward-list img { width: 15px; height: 15px; object-fit: contain; }
.level-reward-list strong { color: #345534; font-weight: 950; font-variant-numeric: tabular-nums; }
.target-rules summary {
  display: flex; align-items: center; min-height: var(--touch); gap: 3px; list-style: none; cursor: pointer;
  color: #51472d; font-size: var(--text-small); font-weight: 900;
}
.target-rules summary::-webkit-details-marker { display: none; }
.target-rules summary::after { content: ""; width: 6px; height: 6px; margin-left: auto; margin-right: 2px; flex: none; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-2px); }
.target-rules[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.level-target-list { display: grid; gap: 7px; margin: 10px 0 7px; padding: 8px 0 0; border-top: 1px solid #cbd2ac; list-style: none; }
.level-target-list li { display: flex; align-items: start; gap: 6px; font-size: var(--text-small); line-height: 1.42; }
.level-target-name { display: block; color: #2e4b33; font-weight: 950; }
.level-rule-key { color: #365a37; font-weight: 900; }
.level-rule-note strong { color: #7a4729; font-weight: 900; }
.target-rules p { margin: 4px 0 7px; color: #4f5e44; font-size: var(--text-small); }
.level-dialog .level-energy-note { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px 0 0; font-size: var(--text-small); font-weight: 850; }
.level-energy-note .icon { width: 15px; height: 15px; fill: #f4aa8f; stroke: #a55d4c; }
.guide-filters button[aria-pressed="true"] {
  color: #fff5d7; background: #4f7447; border-color: #36593a; box-shadow: 0 2px #36593a;
}
.carved-stars { --star-size: var(--art-small); gap: 3px; }
.carved-stars i { position: relative; width: var(--star-size); height: var(--star-size); }
.carved-stars i::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, #876033, #bf9658 74%, #d9b981);
  clip-path: polygon(50% 3%, 62% 32%, 97% 37%, 72% 61%, 80% 95%, 50% 79%, 20% 95%, 28% 61%, 3% 37%, 38% 32%);
}
.carved-stars i img {
  position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 1px #84532083);
}
.result-stars {
  display: grid; place-items: center; width: fit-content; margin: 0 auto 9px; padding: 4px 13px;
  border: 1px solid #d1aa67; border-radius: 18px; background: linear-gradient(#f4dfaa, #fff4d7);
  box-shadow: inset 0 2px 3px #ae774832, 0 1px #fffcf2;
}
.result-stars .star-rating { --star-size: clamp(1.8rem, min(13vw, 11dvh), 3.5rem); gap: var(--gap); }
.result-stars .carved-stars i::before { background: linear-gradient(157deg, #7f542f, #ad7a43 42%, #d8b47b); }
.result-stars .carved-stars i { filter: drop-shadow(0 1px 0 #fff6d9); }
.result-stars .carved-stars i:nth-child(2) { --star-delay: 460ms; }
.result-stars .carved-stars i:nth-child(3) { --star-delay: 780ms; }
.dialog-body .result-star-detail {
  display: grid; gap: 2px; margin: 0 0 8px; padding: 5px var(--gap); border-radius: 8px;
  background: #f7e9c4; color: #674b27; text-align: center; line-height: 1.4; font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}
.is-revealing .earned img { animation: star-stamp 360ms cubic-bezier(.2,.76,.37,1) var(--star-delay, 140ms) both; }
.is-revealing .earned::after {
  content: "✦"; position: absolute; top: 5%; right: 0; color: #fff6b8; font-size: var(--text-subheading); line-height: 1;
  opacity: 0; text-shadow: 0 0 4px #fffddf; pointer-events: none;
  animation: star-glint 500ms ease-out calc(var(--star-delay, 140ms) + 110ms) both;
}
@keyframes star-stamp { 0% { opacity: 0; transform: translateY(-24%) scale(1.67) rotate(-23deg); } 30% { opacity: 1; } 62% { transform: scale(.89) rotate(3deg); } 82% { transform: scale(1.09) rotate(-2deg); } 100% { transform: none; } }
@keyframes star-glint { 0% { opacity: 0; transform: scale(.25); } 26% { opacity: 1; } 100% { opacity: 0; transform: translate(12px,-13px) scale(1.25); } }
.result-scorecard { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 5px; }
.result-stat {
  display: grid; place-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 55px; padding: 5px 2px;
  text-align: center; background: #fffbeb; border: 1px solid #d8bd86; border-radius: 10px; box-shadow: inset 0 -2px #eadcb557;
}
.result-stat:first-child { background: #f9e6b0; border-color: #d2a457; }
.result-stat strong { color: #3e5436; font-size: var(--text-subheading); line-height: 1; font-weight: 1000; overflow-wrap: anywhere; }
.result-stat:first-child strong { color: #734a26; }
.result-stat strong small { font-size: var(--text-micro); font-weight: 800; }
.result-stat > span { color: #586849; font-size: var(--text-small); font-weight: 850; }
.result-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.875rem), 1fr)); gap: 5px; margin-top: 7px; }
.result-goal { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 7px; background: #f5e8c9; font-size: var(--text-small); font-weight: 850; }
.result-goal.done { color: #45633d; background: #e8edcc; }
.result-goal .icon { width: 13px; height: 13px; }
.result-goal strong { margin-left: auto; white-space: nowrap; }
.dialog-body .result-energy { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 7px 0 0; font-size: var(--text-small); font-weight: 850; }
.result-energy .icon { width: 15px; height: 15px; fill: #f5a383; stroke: #9c5746; }
.dialog-body .result-xp { margin: 7px 0 0; display: flex; justify-content: center; align-items: center; gap: .4em; font-weight: 900; color: #6c4c24; }
.result-xp .icon { width: var(--star-small); height: var(--star-small); fill: #ffd46e; stroke: #9b692f; }
.tutorial-art {
  position: relative; min-height: clamp(5.5rem, 15dvh, 7.1rem); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 5px 19px; border: 1px solid #c5ad71; border-radius: 13px; overflow: hidden;
  background: #aac76a url("assets/map-meadow.webp") center 52% / cover no-repeat;
}
.tutorial-art > .mini-target { width: clamp(3.5rem, 18vw, 4.75rem); height: clamp(3.5rem, 18vw, 4.75rem); filter: drop-shadow(0 4px 3px #48382158); }
.tutorial-art .mole { width: 100%; height: 100%; }
.tutorial-art .mini-helmet { width: 84%; height: 29%; left: 6%; top: 0; }
.tutorial-art .mini-target-badge { width: 25px; height: 25px; }
.frost-steps { width: min(100%, 22rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.frost-steps[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frost-steps > div { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.frost-steps .mini-target { width: min(78%, 4.75rem); height: auto; aspect-ratio: 1; }
.frost-steps .mole { width: 100%; height: 100%; object-fit: contain; }
.frost-steps .mini-target-badge { display: none; }
.frost-steps > div > span:last-child { align-self: end; text-align: center; padding: 1px 4px; border-radius: 6px; background: #fff5dc; font-size: var(--text-small); font-weight: 850; }
.tutorial-burrow { width: 104px; height: 55px; object-fit: contain; }
.dialog-body .tutorial-rule { margin: 8px 0; padding: 7px 9px; border-radius: 8px; background: #eceecf; font-weight: 800; }
.tutorial-pages { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-small); font-weight: 900; }
.tutorial-pages button:disabled { opacity: .42; }
.chest-dialog .dialog-actions:empty { display: none; }
.chest-list, .chest-rewards { display: grid; margin: 0; padding: 0; list-style: none; }
.chest-list { gap: 6px; }
.chest-tier {
  display: grid; grid-template-columns: clamp(2.65rem, 11vw, 3.35rem) minmax(0, 1fr) auto;
  align-items: center; gap: 6px; min-width: 0; padding: 5px 7px;
  border: 1px solid #ddcba5; border-radius: 11px; background: #fffae9;
}
.chest-tier[data-status="ready"] { border-color: #ca974f; background: #fff3cf; }
.chest-tier[data-status="claimed"] { border-color: #cdd1ae; background: #f0f2e0; }
.chest-threshold {
  display: grid; justify-items: center; gap: 2px; text-align: center; line-height: 1.18;
  color: #6d502d; font-size: var(--text-small); font-weight: 950; font-variant-numeric: tabular-nums;
}
.chest-threshold img { width: 17px; height: 17px; object-fit: contain; }
.chest-rewards { gap: 3px; }
.chest-reward {
  display: grid; grid-template-columns: clamp(1.9rem, 8.5vw, 2.35rem) minmax(0, 1fr);
  align-items: center; gap: 5px;
}
.chest-reward > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.chest-reward strong { font-size: var(--text-small); line-height: 1.25; font-weight: 850; color: #4f5c3d; }
.chest-reward-achievement { grid-template-columns: minmax(0, 1fr); }
.chest-reward-achievement .achievement-plate { width: min(100%, 12.5rem); margin-inline: 0; }
.chest-tier button { min-height: 44px; min-width: 3rem; margin-bottom: 3px; padding: 3px 7px; font-size: var(--text-small); }
.chest-status { max-width: 4.25rem; text-align: center; line-height: 1.2; color: #6c5a3d; font-size: var(--text-small); font-weight: 700; }
.chest-tier[data-status="claimed"] .chest-status { color: #4e663d; }
.checkin-dialog {
  --checkin-edge: clamp(4px, 1.15vw, 8px);
  --checkin-width: min(calc(100% - var(--safe-left) - var(--safe-right) - 2 * var(--checkin-edge)), 31rem);
  --checkin-join: clamp(26px, 8.5vw, 37px);
  --checkin-inset: 12%;
  --checkin-close-size: 44px;
  --checkin-close-area: calc(var(--checkin-close-size) + clamp(8px, 1.5dvh, 12px));
  position: fixed;
  isolation: isolate;
  width: var(--checkin-width);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #46392c;
  overflow-x: hidden;
  overflow-y: auto;
}
.checkin-dialog[open] { display: block; }
.checkin-content {
  position: relative;
  isolation: isolate;
  padding-bottom: calc(var(--checkin-close-area) + clamp(15px, 2.7dvh, 22px));
}
.checkin-content::before {
  position: absolute;
  z-index: -1;
  inset: 0 4.5% var(--checkin-close-area);
  margin-top: calc(33.26923% - var(--checkin-join));
  background: url("assets/garden-ui/launch-glass-wall.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 11px #1b2115b3);
  content: "";
  pointer-events: none;
}
.checkin-dialog::backdrop,
.daily-sign-in-dialog::backdrop,
.activity-notice::backdrop,
.reward-reveal[data-sign-in-reward]:not([data-companion-unlock])::backdrop { background: var(--game-backdrop); }
.game-shell:has(.reward-reveal[open][data-sign-in-reward]) .checkin-dialog::backdrop { background: transparent; }
.checkin-dialog .dialog-scroll { padding: 0; overflow: visible; }
.checkin-dialog .dialog-emblem.has-target-art {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 173;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.checkin-topper {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.checkin-dialog .dialog-scroll > h2 {
  margin: clamp(14px, 4.2vw, 22px) 0 4px;
  padding: 0 5px;
  color: #55422b;
  font: 850 clamp(23px, 7.1vw, 36px)/1.17 "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: .12em;
  text-shadow: 0 1px #fffdf1, 0 2px 5px #cda97545;
}
.checkin-dialog .dialog-close {
  inset: auto auto 0 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: var(--checkin-close-size);
  height: var(--checkin-close-size);
  padding: 0;
  border: 1px solid #f8ebbd;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6ecce, #a3b282);
  color: #425136;
  box-shadow: inset 0 0 0 1px #f6f3d888, 0 2px 5px #49482b59;
}
.checkin-dialog .dialog-close .collection-close-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.checkin-dialog .dialog-close .icon { width: 19px; height: 19px; }
.checkin-dialog .dialog-body {
  padding: 0 var(--checkin-inset) 2px;
  color: #51412f;
}
.checkin-dialog .checkin-progress {
  margin: 0 0 6px;
  color: #526444;
  font-size: var(--text-small);
  text-align: center;
  font-weight: 750;
  line-height: 1.3;
}
.checkin-tickets,
.checkin-finale {
  display: grid;
  gap: clamp(4px, 1.7vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkin-tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkin-ticket {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 3px;
  border: 1px solid #bda87998;
  border-top-color: #fffaf0;
  border-radius: 7px 13px;
  background: radial-gradient(ellipse at 50% 45%, #fffff0, #efe5c9 90%);
  box-shadow: inset 0 0 0 1px #fff7db9c, 0 2px 3px #71512b28;
  color: #523d28;
  font-size: clamp(10px, 2.85vw, 13px);
  line-height: 1.18;
  text-align: center;
}
.ticket-day {
  color: #6e5736;
  font-size: clamp(9px, 2.7vw, 12px);
  font-weight: 850;
}
.checkin-ticket-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(30px, min(11.2vw, 5.7dvh), 47px);
}
.checkin-ticket-art > img {
  position: absolute;
  inset: 0;
  width: 92%;
  height: 100%;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #5b411e4f);
}
.checkin-ticket-art > .portrait-composition {
  width: auto;
  height: 93%;
  filter: drop-shadow(0 2px 2px #5b411e3e);
}
.checkin-ticket-art b {
  position: absolute;
  right: 2px;
  bottom: 0;
  padding: 1px 4px;
  border-radius: 4px 6px;
  background: #75563b;
  color: #fff7dc;
  font-size: clamp(9px, 2.65vw, 11px);
  white-space: nowrap;
}
.checkin-ticket > strong,
.checkin-finale-items strong { min-width: 0; color: #523e2b; overflow-wrap: anywhere; }
.checkin-ticket > strong { align-self: start; }
.checkin-ticket-state {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 17px;
  aspect-ratio: 1;
  border: 1px solid #fff7e1;
  border-radius: 50%;
  background: #887350;
  color: #fff4d7;
}
.checkin-ticket-state .icon { width: 11px; height: 11px; }
.checkin-ticket[data-status="claimed"] .checkin-ticket-state { background: #6b8654; color: #fffbde; }
.checkin-ticket[data-status="claimed"] .checkin-ticket-art { opacity: .77; }
.checkin-ticket[data-status="ready"] {
  border-color: #c99b49;
  background: radial-gradient(ellipse at 50% 39%, #ffffee 18%, #f3dfaa 97%);
}
.checkin-ticket[data-next="true"] {
  border-color: #e8b766;
  box-shadow: inset 0 0 0 1px #fffcda, 0 0 9px #ffca61ac, 0 2px 5px #8c5d2860;
}
.checkin-finale {
  margin-top: clamp(5px, 1.15dvh, 9px);
  padding: 3px;
  border: 1px solid #bc9955;
  border-top-color: #ffeab3;
  border-radius: 9px 17px;
  background: linear-gradient(147deg, #fbe8ab, #ebc479);
  box-shadow: inset 0 0 0 1px #fff8cb, 0 2px 4px #8762313b;
}
.checkin-finale .checkin-ticket {
  grid-template-rows: auto auto;
  gap: 3px;
  padding: 4px clamp(5px, 1.5vw, 9px);
  border-radius: 7px 13px;
  background: radial-gradient(ellipse at 48% 12%, #fff6d8, #f5d998 91%);
}
.checkin-finale-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkin-finale-items > li {
  display: grid;
  grid-template-columns: minmax(26px, 44%) minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding-inline: 4px;
  text-align: start;
}
.checkin-finale-items > li + li { border-inline-start: 1px solid #c9a15e72; padding-inline-start: 8px; }
.checkin-finale-items .checkin-ticket-art { height: clamp(33px, min(14vw, 6.7dvh), 54px); }
.checkin-finale .checkin-ticket[data-next="true"] {
  box-shadow: inset 0 0 0 1px #fffbda, 0 0 7px #ffda68;
}
.checkin-dialog .dialog-actions {
  position: relative;
  margin: 0;
  padding: 5px var(--checkin-inset) 0;
}
.checkin-dialog .dialog-actions .game-button {
  display: grid;
  place-items: center;
  flex: 0 1 15.5rem;
  min-height: clamp(46px, 13.5vw, 64px);
  padding: 5px 25px 0;
  border: 0;
  border-radius: 12px;
  background: url("assets/garden-ui/launch-glass-claim.webp") center / 100% 100% no-repeat;
  color: #fff9e0;
  box-shadow: none;
  font-weight: 850;
  line-height: 1.15;
  text-shadow: 0 1px 3px #112516;
}
.checkin-dialog button:focus-visible { outline: 2px solid #ad8050; outline-offset: 2px; }
@media (max-height: 650px) {
  .checkin-dialog {
    --checkin-close-area: calc(var(--checkin-close-size) + 8px);
  }
  .checkin-dialog .dialog-scroll > h2 { margin-block-start: 14px; }
  .checkin-ticket-art { height: clamp(26px, min(10.5vw, 5.5dvh), 43px); }
}
@media (orientation: landscape) and (max-height: 440px) {
  .checkin-dialog { --checkin-width: min(23rem, calc(100% - 2 * var(--edge))); }
  .checkin-dialog .dialog-actions .game-button { min-height: 43px; }
}
@media (max-width: 430px) {
  .mascot-figure { transform: translateX(17px); }
}
@media (max-height: 570px) {
  .mascot-figure { margin-top: min(8dvh, 47px); }

}
/* Wide foldables can have more vertical space than a phone held sideways. */
@media (orientation: landscape) and (max-height: 540px),
       (min-width: 34rem) and (max-width: 64rem) and (min-aspect-ratio: 5/4),
       (min-width: 34rem) and (any-pointer: coarse) and (min-aspect-ratio: 5/4) {
  :root {
    --edge: clamp(0.5rem, 2.8dvh, 1rem);
    --gap: clamp(0.3rem, 1.6dvh, 0.6rem);
    --text-body: clamp(0.8125rem, 3.7dvh, 1rem);
    --text-action: clamp(0.9375rem, 4.3dvh, 1.125rem);
    --text-subheading: clamp(1.125rem, 5.4dvh, 1.5rem);
    --text-heading: clamp(1.25rem, 6dvh, 1.75rem);
    --touch: 2.75rem;
  }
  .game-shell { --game-shell-width: 56rem; }
}
@media (min-width: 34rem) and (max-width: 64rem) and (min-aspect-ratio: 2/3),
       (min-width: 34rem) and (any-pointer: coarse) and (min-aspect-ratio: 2/3) {
  :root { --dialog-width: 29rem; }
  .game-shell { --game-shell-width: 56rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #mascot .lobby-character, .mascot-figure[data-reaction] #mascot .lobby-character, .node-here,
  .is-stirring .burrow-art, .is-stirring::after, .is-revealing .earned img, .is-revealing .earned::after { animation: none; }
  .mascot-figure[data-reaction] .mascot-greeting { animation: none; opacity: 1; }
  .points { animation: none; transform: translate(-50%,-50%); }
  .effect-loot { animation: none; transform: translate(-50%,-50%); }
  .round-finale, .finale-banner, .finale-light { animation: none; }
}
