@font-face {
  font-family: Fraunces;
  src: url('./assets/fraunces.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./assets/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color-scheme: dark;
  --ink: #edf1de;
  --muted: #bdc9bb;
  --quiet: #91a593;
  --paper: #eee6d0;
  --paper-ink: #263b32;
  --bg: #10251f;
  --panel: #18382e;
  --panel-soft: #1c3a30;
  --line: #45604b;
  --accent: #e9ca87;
  --accent-ink: #26352a;
  --serif: Fraunces, Georgia, serif;
  --world: url('./assets/moonlit-world.webp');
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
a {
  color: inherit;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  min-height: 44px;
}
a {
  text-underline-offset: 4px;
}
p {
  line-height: 1.65;
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 30px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 23px;
}
small {
  font-size: 12px;
}
.icon {
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.19em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.loading {
  padding: 40px;
}
.study-bar {
  padding: 14px 30px 12px;
  background: #f0eee5;
  color: #26382d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #d2d5c7;
}
.study-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.study-caption strong {
  font-size: 10px;
  letter-spacing: 0.16em;
}
.study-caption > span {
  font-size: 11px;
  color: #667163;
}
.directions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.directions button {
  background: transparent;
  color: #60715f;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: nowrap;
}
.directions button span {
  font-family: var(--serif);
  margin-inline-end: 8px;
  font-size: 18px;
}
.directions button.active {
  color: #23382c;
  border-color: #9eae96;
  background: #fffdf6;
}
.experience {
  max-width: 1600px;
  margin: auto;
  position: relative;
  isolation: isolate;
}
.experience:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--world) top center/100% auto no-repeat;
  opacity: 0.13;
  pointer-events: none;
}
.game-header {
  margin: 0 38px;
  padding: 25px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
}
.brand b {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.brand small {
  display: block;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.35em;
  margin-top: 5px;
  color: var(--muted);
}
.brand > .icon {
  color: var(--accent);
}
.game-header nav {
  display: flex;
  gap: 26px;
}
.game-header nav button {
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 7px;
  border-bottom: 1px solid transparent;
  min-width: 70px;
}
.game-header nav button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.wallet {
  display: flex;
  align-items: center;
  gap: 24px;
}
.wallet-value {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  white-space: nowrap;
}
.wallet-value strong {
  font-weight: 500;
  font-size: 16px;
}
.wallet-value small {
  color: var(--muted);
  font-size: 11px;
}
.avatar {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
}
.avatar .plant-art {
  width: 100%;
  height: 100%;
}
.avatar.gilded {
  border: 3px double var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
main {
  padding: 27px 38px 0;
}
.battle-heading,
.shop-heading,
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}
.battle-heading .eyebrow {
  margin-bottom: 7px;
}
.match-score {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-inline-end: 14px;
}
.match-score > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-score small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.match-score strong {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
  color: var(--accent);
}
.match-score .icon {
  color: var(--accent);
}
.battle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px;
}
.garden-and-hand {
  min-width: 0;
}
.garden-board {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #7a8c6155;
  border-radius: 120px 120px 13px 13px;
  background: var(--world) center center/cover no-repeat;
  min-height: 420px;
  box-shadow:
    inset 0 -50px 65px #071b1855,
    0 16px 36px #05171044;
}
.garden-board:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0b231b4f, #0b231b14 45%, #071d1ab8);
}
.garden-board.glasshouse-equipped {
  background-image: url('./assets/conservatory-world.webp');
}
.groves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 28px 16px 10px;
}
.grove {
  min-width: 0;
  padding: 0 4px;
}
.grove-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #fff5d8;
  min-height: 48px;
  text-shadow: 0 2px 6px #000;
}
.grove-title .icon {
  color: #efd99b;
}
.grove-title h2 {
  font-size: 22px;
}
.grove-title small {
  flex-basis: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.garden-side {
  position: relative;
  padding-top: 7px;
}
.plant-places {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
  height: 132px;
}
.garden-unit {
  height: 119px;
  position: relative;
  padding: 0;
  background: none;
  min-width: 0;
  border-radius: 40%;
  color: #f6edd8;
  isolation: isolate;
}
.garden-unit:after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 7%;
  right: 7%;
  height: 15px;
  background: #040b0b66;
  filter: blur(4px);
  border-radius: 50%;
  z-index: -1;
}
.garden-unit.selected {
  background: radial-gradient(ellipse at 50% 70%, #e6c97855, transparent 67%);
}
.garden-unit.selected .unit-power {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.plant-art {
  display: block;
  aspect-ratio: 1;
  background-image: url('./assets/botanical-atlas.webp');
  background-size: 300% 200%;
  background-position: var(--sx) var(--sy);
  background-repeat: no-repeat;
}
.paid-art {
  background-image: url('./assets/collection-atlas.webp');
}
.garden-unit .plant-art {
  width: 112%;
  position: absolute;
  left: -6%;
  bottom: 25px;
  filter: drop-shadow(0 4px 6px #020a0870);
  transform-origin: 50% 85%;
}
.garden-unit .age-mature {
  transform: scale(1.07);
}
.garden-unit .age-sprout {
  transform: scale(0.83);
}
.unit-power {
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 13px;
  left: calc(50% - 12px);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #34452f;
  background: #efe6c8;
  border: 1px solid #baae86;
  font-family: var(--serif);
  font-size: 17px;
}
.unit-age {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  color: #f7f2dc;
  font-size: 9px;
  text-shadow: 0 1px 4px #000;
}
.empty-place {
  height: 42px;
  width: 75%;
  justify-self: center;
  margin-bottom: 21px;
  border: 1px dashed #d8e3be60;
  border-radius: 50%;
  background: #17332818;
  box-shadow: inset 0 0 8px #142e1940;
  display: grid;
  place-items: center;
  color: #c6d2b283;
}
.plant-place {
  min-height: 44px;
}
.plant-place.available {
  color: #f4d894;
  border-color: #f4d894;
  background: #efdaa51c;
}
.side-caption {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #f1eed7b8;
  display: block;
  text-align: center;
  text-shadow: 0 1px 4px #000;
}
.rival-side .side-caption {
  margin: 6px 0 -5px;
}
.own-side .side-caption {
  margin: 6px 0 0;
}
.control-line {
  margin: 12px 3px 0;
  padding: 8px 3px;
  border-top: 1px solid #e5dba46b;
  border-bottom: 1px solid #e5dba444;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  color: #f6edce;
  text-shadow: 0 1px 4px #000;
}
.control-line > span {
  font-size: 8px;
  white-space: nowrap;
}
.control-line b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  vertical-align: middle;
}
.control-line .control-name {
  font-size: 8px;
  white-space: normal;
  text-align: center;
}
.garden-caption {
  color: var(--muted);
  font-size: 11px;
  padding: 11px 5px;
}
.planned-unit {
  height: 117px;
  position: relative;
  border: 1px dashed var(--accent);
  border-radius: 40% 40% 0 0;
  background: #efd69726;
}
.planned-unit .plant-art {
  height: 89px;
  width: 100%;
}
.planned-unit small {
  display: block;
  text-align: center;
  font-size: 9px;
  color: var(--accent);
}
.harvesting {
  opacity: 0.45;
}
.harvest-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 49px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 8px;
  z-index: 2;
}
.plant-inspector {
  padding: 20px 18px 18px;
  background: var(--paper);
  color: var(--paper-ink);
  align-self: start;
  position: relative;
  border: 1px solid #d8ccad;
  border-radius: 4px 4px 40px 4px;
  box-shadow: 0 8px 30px #061a1426;
}
.plant-inspector:after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 10px;
  border: 1px solid #969f7b55;
  pointer-events: none;
  border-radius: 2px 2px 31px 2px;
}
.plant-inspector .eyebrow {
  color: #6d765c;
  font-size: 8px;
}
.inspector-art {
  width: 100%;
  margin: -3px 0 -7px;
  filter: drop-shadow(0 5px 7px #3d553022);
}
.family-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 9px;
  color: #67775c;
}
.plant-inspector h2 {
  text-align: center;
  margin: 10px 0 6px;
  font-size: 30px;
}
.plant-latin {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  color: #7e806d;
}
.ability {
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  padding: 18px 0 15px;
}
.plant-stats {
  margin: 0 0 17px;
  padding: 13px 0;
  border-top: 1px solid #79826955;
  border-bottom: 1px solid #79826955;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  text-align: center;
}
.plant-stats dt {
  font-size: 9px;
  color: #6c765e;
}
.plant-stats dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
}
.primary,
.secondary,
.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  min-height: 44px;
  line-height: 1.3;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.primary:hover:not(:disabled) {
  filter: brightness(1.09);
}
.secondary {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}
.secondary:hover:not(:disabled) {
  border-color: var(--accent);
}
.plant-inspector .primary,
.plant-inspector .secondary {
  width: 100%;
  font-size: 11px;
  position: relative;
  z-index: 1;
  border-color: #6c795f;
}
.plant-inspector .primary {
  background: #2c4a3a;
  border-color: #2c4a3a;
  color: #f5edda;
}
.hint {
  font-size: 10px;
  line-height: 1.6;
  color: #6b765e;
  margin-top: 13px;
}
.hand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 13px 2px 18px;
}
.hand-heading h2 {
  font-size: 25px;
}
.hand-heading > span {
  color: var(--muted);
  font-size: 10px;
}
.hand-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 45px;
}
.botanical-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #eee6d0;
  color: #294638;
  padding: 9px 10px 11px;
  border: 1px solid #c9b99a;
  border-radius: 8px;
  box-shadow: 0 7px 16px #05150d5c;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  min-width: 0;
  isolation: isolate;
}
.botanical-card:after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #9ca17f66;
  border-radius: 4px;
  pointer-events: none;
  z-index: -1;
}
.botanical-card:hover {
  transform: translateY(-5px);
}
.botanical-card.selected {
  transform: translateY(-10px);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.card-cost {
  position: absolute;
  top: 11px;
  left: 10px;
  display: flex;
  gap: 2px;
  align-items: center;
  color: #667659;
  font-size: 12px;
}
.card-art {
  width: 87%;
  max-width: 123px;
  margin: 4px auto -4px;
}
.card-family {
  position: absolute;
  right: 10px;
  top: 11px;
  color: #647355;
}
.card-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}
.card-rule {
  font-size: 9px;
  line-height: 1.45;
  min-height: 28px;
  max-width: 135px;
  padding: 7px 0;
  color: #63715a;
  text-align: center;
}
.card-power {
  font-family: var(--serif);
  font-size: 21px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.card-power small {
  font-family: 'DM Sans';
  font-size: 8px;
  color: #6c785f;
}
.planned-label {
  position: absolute;
  inset: 0;
  background: #233c2a99;
  color: #fff8df;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.is-planned {
  transform: none;
}
.plan-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 22px 8px 10px;
}
.energy-meter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
}
.energy-meter > span {
  color: var(--muted);
  font-size: 10px;
}
.text-button {
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 4px;
  font-size: 11px;
}
.game-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 38px 0;
  border-top: 1px solid var(--line);
  padding: 19px 0 24px;
  color: var(--quiet);
  font-size: 10px;
}
.game-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.direction-note {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 35px 38px 50px;
  max-width: 1600px;
  margin: auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.direction-note > div:first-child {
  max-width: 600px;
}
.direction-note h2 {
  font-size: 29px;
  margin: 8px 0;
}
.direction-note p {
  font-size: 12px;
  color: var(--muted);
}
.study-links {
  max-width: 400px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-content: start;
}
.study-links a {
  font-size: 12px;
  color: var(--accent);
}
.study-links .text-button {
  font-size: 11px;
  padding: 0;
  min-height: 25px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #f3ecd8;
  color: #2a4534;
  max-width: calc(100% - 30px);
  width: max-content;
  border-radius: 6px;
  box-shadow: 0 4px 22px #0004;
  font-size: 12px;
  padding: 10px 17px;
  pointer-events: none;
}
.toast:empty {
  display: none;
}
/* Shop: collections are the primary offer; cosmetic goods follow. */
.shop-heading,
.collection-heading {
  margin: 14px 0 31px;
}
.shop-heading .eyebrow,
.collection-heading .eyebrow {
  margin-bottom: 12px;
}
.shop-heading h1,
.collection-heading h1 {
  font-size: clamp(34px, 4.5vw, 59px);
}
.shop-heading p:not(.eyebrow),
.collection-heading p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 600px;
}
.shop-promise {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
}
.shop-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px 90px 8px 8px;
  overflow: hidden;
  min-height: 325px;
  position: relative;
  isolation: isolate;
}
.shop-feature:before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--world) center/cover;
  opacity: 0.23;
  z-index: -1;
}
.feature-copy {
  padding: 37px 36px;
  position: relative;
  z-index: 2;
}
.feature-copy h2 {
  font-size: 44px;
  max-width: 430px;
  line-height: 1.05;
  margin: 13px 0 16px;
}
.feature-copy > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 440px;
}
.feature-facts {
  display: flex;
  gap: 24px;
  margin: 23px 0;
}
.feature-facts span {
  font-size: 10px;
  color: var(--muted);
}
.feature-facts b {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 3px;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-actions .primary,
.product-actions .secondary {
  font-size: 11px;
  padding: 11px 14px;
  flex-grow: 1;
}
.feature-copy .product-actions {
  justify-content: start;
}
.feature-copy .product-actions > * {
  flex-grow: 0;
}
.product-art {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  isolation: isolate;
}
.set-art {
  background: radial-gradient(ellipse at center bottom, #9eaa7530, transparent 65%);
  height: 225px;
}
.set-moon {
  background: radial-gradient(ellipse at center bottom, #a7c2c13d, transparent 67%);
}
.set-lantern {
  background: radial-gradient(ellipse at center bottom, #bd914c4d, transparent 67%);
}
.set-plant {
  position: absolute;
  bottom: 15px;
  width: 63%;
  height: auto;
  filter: drop-shadow(0 12px 10px #081b1233);
}
.set-plant:first-child {
  left: 0;
  transform: rotate(-7deg);
}
.set-plant:nth-child(2) {
  right: -2%;
  transform: rotate(5deg);
}
.set-seal {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 51px;
  height: 60px;
  padding: 9px 0;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50% 50% 3px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--bg);
  font-family: var(--serif);
  font-size: 24px;
}
.set-seal small {
  font-family: 'DM Sans';
  font-size: 6px;
  letter-spacing: 0.13em;
  margin-top: 3px;
}
.bundle-art {
  min-height: 270px;
}
.bundle-plant {
  position: absolute;
  bottom: 15px;
  width: 52%;
  filter: drop-shadow(0 10px 9px #07180f4d);
}
.bundle-plant.one {
  left: -1%;
  bottom: 1%;
  transform: rotate(-11deg);
  z-index: 2;
}
.bundle-plant.two {
  left: 27%;
  bottom: 12%;
  z-index: 1;
}
.bundle-plant.three {
  right: -9%;
  bottom: -3%;
  width: 66%;
  z-index: 0;
}
.feature-art {
  min-height: 350px;
  background: none;
}
.feature-art .set-seal {
  right: 25px;
  top: 30px;
  width: 70px;
  height: 84px;
  font-size: 34px;
  background: var(--panel);
}
.feature-art .set-seal small {
  font-size: 8px;
}
.shop-tools,
.catalogue-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 31px 0 22px;
}
.shop-tools > small {
  color: var(--quiet);
  font-size: 10px;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filters button {
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
}
.filters button.active {
  color: var(--accent);
  border-color: var(--line);
  background: var(--panel);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.shop-product {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--panel-soft);
}
.product-image-button {
  padding: 0;
  width: 100%;
  background: transparent;
  color: inherit;
  display: block;
}
.product-image-button:hover .plant-art {
  filter: drop-shadow(0 10px 12px #d8d69b22);
}
.product-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 11px;
}
.product-copy .eyebrow {
  font-size: 8px;
}
.product-copy h2 {
  font-size: 29px;
}
.product-copy > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.collection-fact {
  color: var(--accent);
  font-size: 10px;
  padding: 3px 0 8px;
}
.product-copy .product-actions {
  padding-top: 8px;
}
.product-copy > small:not(.collection-fact) {
  color: var(--muted);
  font-size: 10px;
}
.owned-label {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--accent);
  font-size: 11px;
}
.back-product {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #a3ad7330, transparent 70%);
  height: 225px;
}
.cardback {
  width: 112px;
  height: 159px;
  border: 3px solid #ded7bd;
  border-radius: 9px;
  outline: 1px solid #a39e7b;
  outline-offset: 3px;
  background: #e4dfc6;
  box-shadow: 8px 10px 22px #061b134d;
  transform: rotate(-8deg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #788265;
}
.cardback:after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.cardback > .plant-art {
  position: absolute;
  width: 120%;
  top: 10px;
  left: -10%;
}
.cardback > .icon {
  position: absolute;
  top: 15px;
  left: 13px;
}
.back-wordmark {
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  letter-spacing: 0.17em;
  font-family: var(--serif);
  font-size: 8px;
  text-align: center;
}
.star-back {
  background: #193c4a;
  color: #d6c28c;
  border-color: #acaa92;
}
.constellation {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: #d9cc8d;
}
.star-back > .icon {
  position: absolute;
  top: 20px;
  left: 20px;
  transform: rotate(15deg);
}
.garden-product {
  height: 225px;
  background: url('./assets/conservatory-world.webp') center/cover;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 15px;
}
.garden-product > span {
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #fff2d8;
  background: #3e342dba;
  padding: 10px 15px;
}
.frame-product {
  height: 225px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #b29c542a, transparent 65%);
}
.ornate-frame {
  width: 136px;
  height: 136px;
  border: 5px double #c5ab6b;
  border-radius: 50%;
  outline: 1px solid #b99b57;
  outline-offset: 7px;
  box-shadow: 0 0 0 13px #bda66420;
  background: #263e35;
  position: relative;
}
.ornate-frame .plant-art {
  position: absolute;
  inset: -5px;
  width: calc(100% + 10px);
}
.shop-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin: 42px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.shop-principles .icon {
  color: var(--accent);
  margin-bottom: 14px;
}
.shop-principles h3 {
  font-size: 24px;
}
.shop-principles p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
/* Herbarium: a specimen-led catalogue rather than a dashboard. */
.collection-count {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 170px;
  flex-shrink: 0;
  border-inline-start: 1px solid var(--line);
}
.collection-count strong {
  font-family: var(--serif);
  font-size: 45px;
  font-weight: 400;
  color: var(--accent);
}
.collection-count > span {
  font-size: 12px;
  color: var(--muted);
}
.collection-count small {
  flex-basis: 100%;
  text-align: center;
  color: var(--quiet);
}
.catalogue-tools input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 0;
  min-height: 44px;
  width: 220px;
  max-width: 100%;
  font-size: 12px;
}
.catalogue-tools input::placeholder {
  color: var(--muted);
}
.herbarium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.specimen-card {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 22px 25px 0;
  border: 1px solid #c7bb9c;
  border-radius: 2px 2px 45px 2px;
  transition: transform 0.2s;
}
.specimen-card:hover {
  transform: translateY(-4px);
}
.specimen-card:after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid #909b7455;
  border-radius: 1px 1px 35px 1px;
  pointer-events: none;
}
.specimen-number {
  align-self: start;
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #7f836a;
}
.specimen-art {
  width: 82%;
  max-width: 235px;
  margin: -10px 0 -1px;
}
.specimen-card > strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  margin: 13px 0 7px;
}
.specimen-latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #7a8069;
}
.specimen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid #86917155;
  width: 100%;
  padding: 18px 0 21px;
  margin-top: 24px;
  color: #6a775b;
  font-size: 10px;
}
.collection-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 0;
  margin-top: 35px;
  border-top: 1px solid var(--line);
}
.collection-invitation h2 {
  font-size: 33px;
  margin: 10px 0;
}
.collection-invitation p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  max-width: 660px;
}
.collection-invitation .secondary {
  white-space: nowrap;
}
.owned-sets {
  border-top: 1px solid var(--line);
  padding: 25px 0;
}
.owned-sets article {
  margin-top: 20px;
  padding: 18px;
  background: var(--panel);
}
.owned-sets article p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.empty-state {
  padding: 60px 20px;
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
}
/* Native dialogs provide focus trapping, Escape and a genuine modal boundary. */
.study-dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  width: 680px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 30px);
  padding: 33px;
  box-shadow: 0 24px 90px #0008;
  overflow: auto;
}
.study-dialog::backdrop {
  background: #03120ec4;
  backdrop-filter: blur(5px);
}
.study-dialog h2 {
  font-size: 36px;
  padding-inline-end: 28px;
  line-height: 1.13;
  margin-bottom: 15px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--muted);
}
.dialog-lead {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 19px;
}
.dialog-kicker {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin: 10px 0;
}
.study-dialog > p:not(.dialog-lead):not(.dialog-kicker) {
  font-size: 12px;
  margin: 14px 0;
  color: var(--muted);
}
.detail-product-art {
  height: 250px;
  background-color: var(--panel);
  margin: 20px 0;
}
.detail-product-art .set-plant {
  height: 100%;
  width: 50%;
  background-size: 300% 200%;
  aspect-ratio: 1;
}
.checkout-art {
  height: 190px;
  max-width: 340px;
  margin: auto;
}
.checkout-art .set-plant {
  width: 55%;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.checkout-total strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--accent);
}
.purchase-includes {
  list-style: none;
  padding: 0;
  margin: 19px 0;
  display: grid;
  gap: 10px;
  font-size: 12px;
}
.purchase-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.purchase-includes .icon {
  color: var(--accent);
}
.purchase-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.study-dialog > .primary {
  margin-top: 15px;
  width: 100%;
}
.study-dialog > .text-button {
  width: 100%;
  margin-top: 8px;
}
.card-roster {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.card-roster h3 {
  font-size: 24px;
  line-height: 1.25;
}
.card-roster > p {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 18px;
}
.roster-card {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.roster-card summary {
  cursor: pointer;
  min-height: 50px;
  padding: 13px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.roster-card summary small {
  font-size: 9px;
  color: var(--quiet);
  white-space: nowrap;
}
.roster-card p {
  font-size: 12px;
  color: var(--muted);
  padding: 0 8px 16px;
  line-height: 1.8;
}
.resolution-list > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  justify-content: space-between;
}
.resolution-list strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}
.resolution-list span {
  font-size: 12px;
  color: var(--muted);
}
.resolution-list span:last-child {
  flex-basis: 100%;
  text-align: end;
  color: var(--accent);
}
.specimen-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.detail-art {
  width: 100%;
}
.specimen-detail p {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}
/* Direction 02 changes composition into a flat, spacious field journal. */
body[data-theme='herbarium'] {
  color-scheme: light;
  --ink: #304539;
  --muted: #5d6b57;
  --quiet: #69775f;
  --paper: #f5eedb;
  --paper-ink: #304539;
  --bg: #eae5d5;
  --panel: #f1ecd9;
  --panel-soft: #f4efde;
  --line: #b6b49a;
  --accent: #596f4d;
  --accent-ink: #fff9e8;
  --world: url('./assets/herbarium-world.webp');
}
.experience:has(.shop-heading):before {
  opacity: 0.09;
}
body[data-theme='herbarium'] .brand {
  color: #354b38;
}
body[data-theme='herbarium'] .experience:before {
  opacity: 0.22;
  background-size: 100% auto;
}
body[data-theme='herbarium'] .game-header {
  margin: 0 52px;
}
body[data-theme='herbarium'] main {
  padding-inline-start: 52px;
  padding-inline-end: 52px;
}
body[data-theme='herbarium'] .garden-board {
  border-radius: 3px;
  background-size: cover;
  box-shadow: 0 7px 22px #5c543224;
}
body[data-theme='herbarium'] .garden-board:before {
  background: #f7eed77d;
}
body[data-theme='herbarium'] .groves {
  padding: 22px 15px 12px;
  gap: 0;
}
body[data-theme='herbarium'] .grove {
  padding: 0 10px;
  border-inline-end: 1px solid #9aa18066;
}
body[data-theme='herbarium'] .grove:last-child {
  border-inline-end: 0;
}
body[data-theme='herbarium'] .grove-title {
  color: #475f42;
  text-shadow: none;
}
body[data-theme='herbarium'] .grove-title .icon {
  color: #8b8b5d;
}
body[data-theme='herbarium'] .side-caption,
body[data-theme='herbarium'] .unit-age {
  color: #5a6c4c;
  text-shadow: none;
}
body[data-theme='herbarium'] .control-line {
  color: #485e40;
  text-shadow: none;
  border-color: #8b977270;
}
body[data-theme='herbarium'] .empty-place {
  border-color: #8d9e6d80;
  background: #f6f1dd44;
  box-shadow: none;
}
body[data-theme='herbarium'] .garden-unit:after {
  background: #54673d20;
}
body[data-theme='herbarium'] .plant-inspector {
  background: #ece6d1;
  box-shadow: none;
  border-radius: 0;
}
body[data-theme='herbarium'] .botanical-card {
  box-shadow: 0 6px 13px #5f5c2b24;
  border-radius: 0;
  transform: none;
}
body[data-theme='herbarium'] .botanical-card.selected {
  transform: translateY(-7px);
}
body[data-theme='herbarium'] .hand-cards {
  padding: 0 16px;
  gap: 18px;
}
body[data-theme='herbarium'] .shop-feature {
  border-radius: 0;
  grid-template-columns: 1fr 1fr;
}
body[data-theme='herbarium'] .shop-feature:before {
  opacity: 0.2;
}
body[data-theme='herbarium'] .shop-product,
body[data-theme='herbarium'] .specimen-card {
  border-radius: 0;
  box-shadow: 0 5px 16px #756b2d12;
}
body[data-theme='herbarium'] .specimen-card:after {
  border-radius: 0;
}
body[data-theme='herbarium'] .set-art,
body[data-theme='herbarium'] .bundle-art {
  background-color: #ebe6d5;
}
body[data-theme='herbarium'] .feature-art {
  background-color: transparent;
}
body[data-theme='herbarium'] .herbarium-grid {
  gap: 30px;
}
body[data-theme='herbarium'] .study-dialog::backdrop {
  background: #4a503670;
}
body[data-theme='herbarium'] .study-dialog {
  box-shadow: 0 20px 90px #3b482b55;
}
body[data-theme='herbarium'] .specimen-art {
  width: 75%;
}
/* Direction 03 is warmer, fuller and object-like: ceramic beds and clay cards. */
body[data-theme='conservatory'] {
  color-scheme: light;
  --ink: #3b493b;
  --muted: #666d58;
  --quiet: #74785e;
  --paper: #fff0d8;
  --paper-ink: #3c4d3a;
  --bg: #e7d9bc;
  --panel: #f1e5cd;
  --panel-soft: #f8ebd3;
  --line: #b9aa86;
  --accent: #805a39;
  --accent-ink: #fff1d5;
  --world: url('./assets/conservatory-world.webp');
}
body[data-theme='conservatory'] .brand {
  color: #4c5e43;
}
body[data-theme='conservatory'] .game-header {
  border-bottom: 2px solid #b6a67e;
}
body[data-theme='conservatory'] .garden-board {
  border-radius: 38px 38px 18px 18px;
  border: 5px solid #b7956680;
  box-shadow:
    0 9px 0 #aa8b6359,
    0 17px 30px #705c3238;
  background-position: center 43%;
}
body[data-theme='conservatory'] .garden-board:before {
  background: linear-gradient(#64462c22, #4d3e2725);
}
body[data-theme='conservatory'] .grove-title {
  background: #f4e1b8e8;
  color: #5a5135;
  border-radius: 20px 20px 4px 4px;
  text-shadow: none;
  padding: 8px 3px;
  box-shadow: 0 3px 0 #9a865250;
}
body[data-theme='conservatory'] .grove-title h2 {
  font-size: 21px;
}
body[data-theme='conservatory'] .grove-title .icon {
  color: #896f3c;
}
body[data-theme='conservatory'] .control-line {
  background: #f6e4bded;
  border-radius: 12px;
  border: 1px solid #ad94645c;
  color: #665437;
  text-shadow: none;
  padding: 7px 5px;
}
body[data-theme='conservatory'] .garden-unit .plant-art {
  filter: drop-shadow(2px 7px 3px #624a2a55);
}
body[data-theme='conservatory'] .plant-inspector {
  border-radius: 24px;
  background: #f6e7ca;
  border: 2px solid #bbac81;
  box-shadow: 0 5px 0 #aa8b6344;
}
body[data-theme='conservatory'] .plant-inspector:after {
  border-radius: 17px;
}
body[data-theme='conservatory'] .botanical-card {
  border-radius: 15px;
  border: 2px solid #c0ad83;
  box-shadow:
    0 5px 0 #b19a7077,
    0 10px 17px #5d512529;
}
body[data-theme='conservatory'] .botanical-card:after {
  border-radius: 9px;
}
body[data-theme='conservatory'] .primary {
  border-radius: 14px;
  background: #516747;
  border-color: #516747;
  color: #fff3da;
  box-shadow: 0 3px 0 #3e5037;
}
body[data-theme='conservatory'] .secondary {
  border-radius: 13px;
  background: #f5e8ce;
}
body[data-theme='conservatory'] .shop-feature {
  border-radius: 30px;
  box-shadow: 0 6px 0 #b2a07b45;
}
body[data-theme='conservatory'] .shop-feature:before {
  opacity: 0.2;
}
body[data-theme='conservatory'] .shop-product {
  border-radius: 22px;
  border: 2px solid #c1b08c;
  box-shadow: 0 4px 0 #b2a07b40;
}
body[data-theme='conservatory'] .specimen-card {
  border-radius: 24px;
  border: 2px solid #b8aa84;
  box-shadow: 0 6px 0 #b5a07844;
}
body[data-theme='conservatory'] .specimen-card:after {
  border-radius: 16px;
}
body[data-theme='conservatory'] .shop-grid {
  gap: 24px;
}
body[data-theme='conservatory'] .study-dialog {
  border-radius: 22px;
}
body[data-theme='conservatory'] .study-dialog::backdrop {
  background: #463e2cb0;
}
body[data-theme='conservatory'] .roster-card summary small {
  color: #687153;
}
@media (min-width: 1500px) {
  .garden-board {
    min-height: 470px;
  }
  .plant-places {
    height: 149px;
  }
  .garden-unit {
    height: 137px;
  }
  .groves {
    padding-top: 36px;
  }
  .hand-cards {
    padding: 0 70px;
  }
  .card-art {
    max-width: 135px;
  }
  .battle-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .plant-inspector {
    padding: 24px;
  }
}
@media (max-width: 1100px) {
  .study-bar {
    display: block;
    padding: 13px 24px;
  }
  .directions {
    margin-top: 12px;
    justify-content: space-between;
  }
  .directions button {
    flex: 1;
    text-align: start;
  }
  .study-caption {
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
  }
  .game-header {
    margin: 0 24px;
  }
  .game-header nav {
    gap: 10px;
  }
  main {
    padding-inline-start: 24px;
    padding-inline-end: 24px;
  }
  .battle-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 18px;
  }
  .grove-title h2 {
    font-size: 18px;
  }
  .grove-title > .icon {
    display: none;
  }
  .groves {
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    gap: 3px;
  }
  .plant-places {
    height: 123px;
  }
  .garden-unit {
    height: 112px;
  }
  .garden-board {
    min-height: 405px;
  }
  .control-name {
    display: none !important;
  }
  .hand-cards {
    padding: 0;
    gap: 9px;
  }
  .card-name {
    font-size: 15px;
  }
  .card-rule {
    font-size: 8px;
  }
  .card-art {
    width: 95%;
  }
  .plant-inspector {
    padding: 17px 13px;
  }
  .plant-inspector h2 {
    font-size: 27px;
  }
  .plant-stats {
    gap: 4px;
  }
  .plant-stats dt {
    font-size: 8px;
  }
  .game-footer {
    margin-inline-start: 24px;
    margin-inline-end: 24px;
  }
  .direction-note {
    padding-inline-start: 24px;
    padding-inline-end: 24px;
  }
  .shop-grid {
    gap: 16px;
  }
  .product-copy {
    padding: 18px;
  }
  .product-copy h2 {
    font-size: 26px;
  }
  .feature-copy {
    padding: 29px;
  }
  .feature-copy h2 {
    font-size: 38px;
  }
  .shop-heading .shop-promise {
    display: none;
  }
  .feature-art {
    min-height: 330px;
  }
  .herbarium-grid {
    gap: 14px;
  }
  .specimen-card {
    padding: 20px 18px 0;
  }
  .specimen-card > strong {
    font-size: 26px;
  }
  body[data-theme='herbarium'] main {
    padding-inline-start: 28px;
    padding-inline-end: 28px;
  }
  body[data-theme='herbarium'] .game-header {
    margin-inline-start: 28px;
    margin-inline-end: 28px;
  }
  body[data-theme='herbarium'] .hand-cards {
    padding: 0;
    gap: 9px;
  }
}
@media (max-width: 800px) {
  .study-caption {
    display: block;
  }
  .study-caption > span {
    display: block;
    margin-top: 6px;
    font-size: 10px;
  }
  .directions {
    gap: 4px;
  }
  .directions button {
    font-size: 10px;
    padding: 6px;
  }
  .directions button span {
    font-size: 16px;
    margin-inline-end: 4px;
  }
  .game-header {
    padding: 20px 0 14px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .brand b {
    font-size: 23px;
  }
  .wallet {
    margin-inline-start: auto;
  }
  .game-header nav {
    order: 3;
    justify-content: center;
    width: 100%;
    gap: 36px;
  }
  .game-header nav button {
    padding: 8px 13px;
  }
  .battle-heading {
    margin-bottom: 18px;
    align-items: end;
  }
  .battle-heading h1 {
    font-size: 37px;
  }
  .match-score {
    gap: 15px;
    padding: 0;
  }
  .match-score > span {
    display: block;
    text-align: center;
  }
  .match-score small {
    display: block;
    font-size: 8px;
    margin-bottom: 3px;
  }
  .match-score strong {
    font-size: 29px;
  }
  .match-score > .icon {
    width: 18px;
  }
  .battle-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .plant-inspector {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 5px 15px;
    border-radius: 4px;
    padding: 20px;
    align-items: center;
  }
  .plant-inspector .eyebrow {
    grid-column: 2/4;
  }
  .inspector-art {
    grid-column: 1;
    grid-row: 1/6;
    width: 100px;
  }
  .plant-inspector h2 {
    text-align: start;
    font-size: 26px;
    margin: 2px 0;
    grid-column: 2/4;
  }
  .plant-inspector .family-label {
    display: none;
  }
  .plant-latin {
    text-align: start;
    grid-column: 2/4;
  }
  .ability {
    grid-column: 2/4;
    padding: 4px 0;
    text-align: start;
  }
  .plant-stats {
    grid-column: 1/3;
    margin: 10px 0 0;
    padding: 10px;
    gap: 14px;
    justify-content: space-around;
  }
  .plant-inspector > .primary,
  .plant-inspector > .secondary {
    grid-column: 3;
    grid-row: 5/7;
    font-size: 10px;
  }
  .plant-inspector > .hint {
    grid-column: 1/4;
    font-size: 10px;
  }
  .garden-board {
    min-height: 426px;
  }
  .groves {
    padding: 25px 13px 12px;
  }
  .grove-title h2 {
    font-size: 20px;
  }
  .grove-title > .icon {
    display: inline-flex;
  }
  .plant-places {
    height: 130px;
  }
  .garden-unit {
    height: 120px;
  }
  .control-name {
    display: inline !important;
    font-size: 7px !important;
  }
  .hand-cards {
    padding: 0 25px;
    gap: 14px;
  }
  .card-art {
    width: 90%;
  }
  .card-name {
    font-size: 18px;
  }
  .card-rule {
    font-size: 9px;
  }
  .card-power small {
    font-size: 9px;
  }
  .shop-heading h1,
  .collection-heading h1 {
    font-size: 43px;
  }
  .shop-feature {
    grid-template-columns: 1.2fr 1fr;
    min-height: 330px;
  }
  .feature-copy {
    padding: 26px;
  }
  .feature-copy h2 {
    font-size: 33px;
  }
  .feature-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .feature-facts {
    gap: 17px;
  }
  .feature-art {
    min-height: 330px;
  }
  .feature-art .bundle-plant {
    width: 80%;
  }
  .feature-art .bundle-plant.one {
    left: -14%;
  }
  .feature-art .bundle-plant.two {
    left: 8%;
  }
  .feature-art .bundle-plant.three {
    right: -20%;
    width: 98%;
  }
  .feature-art .set-seal {
    right: 15px;
    top: 15px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-tools {
    display: block;
  }
  .shop-tools > small {
    display: block;
    margin: 10px 12px;
  }
  .shop-principles {
    gap: 20px;
  }
  .shop-principles h3 {
    font-size: 22px;
  }
  .shop-principles p {
    font-size: 11px;
  }
  .herbarium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-count {
    width: 125px;
  }
  .collection-heading {
    gap: 20px;
  }
  .collection-count strong {
    font-size: 35px;
  }
  .collection-invitation {
    display: block;
  }
  .collection-invitation .secondary {
    margin-top: 20px;
  }
  .direction-note {
    gap: 30px;
  }
  .direction-note > div {
    flex: 1;
  }
  .product-art {
    min-height: 180px;
  }
  .set-art {
    height: 210px;
  }
  body[data-theme='herbarium'] .hand-cards {
    padding: 0 20px;
  }
  body[data-theme='herbarium'] .herbarium-grid {
    gap: 20px;
  }
  body[data-theme='conservatory'] .plant-inspector {
    border-radius: 20px;
  }
}
@media (max-width: 520px) {
  .study-bar {
    padding: 12px 15px;
  }
  .study-caption strong {
    font-size: 9px;
  }
  .study-caption > span {
    font-size: 9px;
    line-height: 1.5;
    max-width: 320px;
  }
  .directions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .directions button {
    font-size: 9px;
    white-space: normal;
    line-height: 1.3;
    display: flex;
    align-items: center;
    text-align: start;
    padding: 6px 5px;
  }
  .directions button span {
    font-size: 16px;
    margin-inline-end: 5px;
  }
  .game-header {
    margin: 0 17px;
    padding-top: 19px;
  }
  .brand {
    gap: 8px;
  }
  .brand b {
    font-size: 22px;
    letter-spacing: 0.09em;
  }
  .brand small {
    font-size: 6px;
  }
  .brand > .icon svg {
    width: 26px;
  }
  .wallet {
    gap: 11px;
  }
  .wallet-value {
    gap: 4px;
  }
  .wallet-value svg {
    width: 16px;
  }
  .wallet-value strong {
    font-size: 13px;
  }
  .wallet-value small {
    font-size: 9px;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  .game-header nav {
    gap: 25px;
  }
  .game-header nav button {
    font-size: 12px;
    min-width: 65px;
    padding: 7px 8px;
  }
  main {
    padding: 22px 14px 0;
  }
  .battle-heading {
    gap: 8px;
    margin-bottom: 19px;
  }
  .battle-heading h1 {
    font-size: 30px;
    letter-spacing: -0.04em;
    max-width: 210px;
  }
  .battle-heading .eyebrow {
    font-size: 8px;
  }
  .match-score {
    gap: 8px;
  }
  .match-score strong {
    font-size: 24px;
  }
  .match-score > .icon svg {
    width: 15px;
  }
  .groves {
    padding: 23px 5px 10px;
    gap: 0;
  }
  .grove {
    padding: 0 2px;
  }
  .grove-title {
    gap: 3px;
    min-height: 47px;
  }
  .grove-title h2 {
    font-size: 15px;
    line-height: 1.2;
  }
  .grove-title > .icon {
    display: none;
  }
  .grove-title small {
    font-size: 8px;
  }
  .garden-board {
    border-radius: 60px 60px 9px 9px;
    min-height: 358px;
    background-size: auto 100%;
    background-position: center;
  }
  .plant-places {
    gap: 0;
    height: 107px;
  }
  .garden-unit {
    height: 102px;
  }
  .garden-unit .plant-art {
    width: 136%;
    left: -18%;
    bottom: 24px;
  }
  .unit-power {
    width: 20px;
    height: 20px;
    left: calc(50% - 10px);
    font-size: 14px;
    bottom: 11px;
  }
  .unit-age {
    font-size: 7px;
    bottom: -3px;
  }
  .empty-place {
    width: 88%;
    height: 27px;
    margin-bottom: 19px;
    min-height: 27px;
  }
  .plant-place {
    min-height: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 50%;
    border: 0;
    background: radial-gradient(ellipse, #15332744, transparent 68%);
  }
  .plant-place .icon {
    border: 1px dashed #d3dfb370;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
  }
  .plant-place svg {
    width: 12px;
    height: 12px;
  }
  .plant-place.available .icon {
    border-color: #efd89a;
    color: #efd89a;
  }
  .control-line {
    gap: 0;
    padding: 7px 1px;
    margin-top: 9px;
  }
  .control-line > span {
    font-size: 6px;
  }
  .control-line b {
    font-size: 17px;
  }
  .control-name {
    display: none !important;
  }
  .side-caption {
    font-size: 6px;
    letter-spacing: 0.16em;
  }
  .garden-caption {
    font-size: 10px;
    padding: 12px 4px;
    line-height: 1.6;
  }
  .hand-heading {
    margin: 14px 2px 16px;
    display: block;
  }
  .hand-heading h2 {
    font-size: 25px;
  }
  .hand-heading > span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
  }
  .hand-cards {
    padding: 0 3px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 13px;
  }
  .botanical-card {
    padding: 10px 12px 12px;
  }
  .card-art {
    width: 85%;
    max-width: 120px;
  }
  .card-name {
    font-size: 18px;
  }
  .card-rule {
    font-size: 10px;
    min-height: 36px;
    max-width: 145px;
  }
  .card-power small {
    font-size: 9px;
  }
  .card-family {
    top: 12px;
  }
  .card-cost {
    font-size: 13px;
  }
  .plan-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 20px 4px 4px;
  }
  .plan-actions > .primary {
    grid-column: 1/3;
    font-size: 13px;
  }
  .energy-meter {
    font-size: 13px;
  }
  .energy-meter > span {
    font-size: 10px;
  }
  .plant-inspector {
    padding: 17px;
    grid-template-columns: 80px 1fr 1fr;
    gap: 3px 11px;
  }
  .inspector-art {
    width: 80px;
  }
  .plant-inspector h2 {
    font-size: 25px;
  }
  .plant-inspector > .primary,
  .plant-inspector > .secondary {
    grid-column: 1/4;
    grid-row: auto;
    margin-top: 12px;
    font-size: 12px;
  }
  .plant-inspector > .hint {
    grid-column: 1/4;
  }
  .plant-stats {
    grid-column: 1/4;
    margin-top: 14px;
  }
  .plant-stats dt {
    font-size: 10px;
  }
  .plant-stats dd {
    font-size: 24px;
  }
  .plant-inspector .eyebrow {
    font-size: 7px;
  }
  .ability {
    font-size: 11px;
  }
  .game-footer {
    margin: 25px 17px 0;
    padding: 18px 0;
    display: block;
    font-size: 9px;
  }
  .game-footer > span + span {
    margin-top: 9px;
  }
  .direction-note {
    display: block;
    padding: 26px 18px 45px;
  }
  .direction-note h2 {
    font-size: 29px;
  }
  .direction-note p {
    font-size: 11px;
  }
  .study-links {
    margin-top: 18px;
  }
  .study-links > p {
    font-size: 10px;
  }
  .toast {
    font-size: 11px;
    padding: 10px 12px;
  }
  .shop-heading,
  .collection-heading {
    display: block;
    margin: 5px 2px 25px;
  }
  .shop-heading h1,
  .collection-heading h1 {
    font-size: 39px;
  }
  .shop-heading p:not(.eyebrow),
  .collection-heading p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 13px;
  }
  .shop-feature {
    display: flex;
    flex-direction: column-reverse;
    border-radius: 5px 50px 5px 5px;
    min-height: 0;
  }
  .feature-art {
    min-height: 230px;
    height: 230px;
    max-width: 100%;
  }
  .feature-art .bundle-plant.one {
    width: 51%;
    left: 0;
    bottom: -20%;
  }
  .feature-art .bundle-plant.two {
    width: 51%;
    left: 25%;
    bottom: 1%;
  }
  .feature-art .bundle-plant.three {
    width: 65%;
    right: -6%;
    bottom: -15%;
  }
  .feature-art .set-seal {
    width: 58px;
    height: 68px;
    font-size: 29px;
    top: 20px;
    right: 20px;
  }
  .feature-copy {
    padding: 23px 22px 25px;
  }
  .feature-copy h2 {
    font-size: 37px;
    max-width: 300px;
    margin-top: 12px;
  }
  .feature-copy .eyebrow {
    font-size: 8px;
  }
  .feature-facts {
    margin: 20px 0;
    gap: 27px;
  }
  .feature-facts span {
    font-size: 9px;
  }
  .feature-facts b {
    font-size: 26px;
  }
  .feature-copy .product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .feature-copy .product-actions .primary,
  .feature-copy .product-actions .secondary {
    font-size: 11px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-tools {
    margin-top: 23px;
  }
  .filters {
    gap: 3px;
  }
  .filters button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .shop-tools > small {
    font-size: 9px;
  }
  .shop-product {
    display: grid;
    grid-template-columns: 1fr;
  }
  .product-art.set-art {
    height: 245px;
    min-height: 245px;
  }
  .set-plant {
    width: 60%;
    bottom: 5px;
  }
  .product-copy {
    padding: 22px;
    gap: 11px;
  }
  .product-copy h2 {
    font-size: 32px;
  }
  .product-copy > p:not(.eyebrow) {
    font-size: 13px;
  }
  .product-copy .eyebrow {
    font-size: 9px;
  }
  .product-copy .product-actions .primary,
  .product-copy .product-actions .secondary {
    font-size: 12px;
  }
  .collection-fact {
    font-size: 11px;
  }
  .back-product,
  .garden-product,
  .frame-product {
    height: 225px;
  }
  .shop-principles {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
    padding-top: 26px;
  }
  .shop-principles > div {
    position: relative;
    padding-inline-start: 42px;
  }
  .shop-principles .icon {
    position: absolute;
    left: 0;
    top: 2px;
  }
  .shop-principles h3 {
    font-size: 25px;
  }
  .shop-principles p {
    font-size: 12px;
    margin-top: 8px;
  }
  .collection-count {
    width: auto;
    border-inline-start: 0;
    justify-content: start;
    margin-top: 18px;
    gap: 5px;
  }
  .collection-count strong {
    font-size: 36px;
  }
  .collection-count small {
    flex-basis: auto;
    margin-inline-start: 10px;
  }
  .catalogue-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 19px;
  }
  .catalogue-tools input {
    width: 100%;
    font-size: 12px;
  }
  .herbarium-grid {
    gap: 13px;
  }
  .specimen-card {
    padding: 14px 12px 0;
    border-radius: 2px 2px 27px 2px;
  }
  .specimen-card:after {
    inset: 6px;
    border-radius: 1px 1px 20px 1px;
  }
  .specimen-number {
    font-size: 6px;
  }
  .specimen-art {
    width: 100%;
    margin: 0 0 -5px;
  }
  .specimen-card > .family-label {
    font-size: 7px;
    margin-top: 7px;
  }
  .specimen-card > strong {
    font-size: 21px;
    line-height: 1.1;
    margin: 10px 0 6px;
  }
  .specimen-latin {
    font-size: 11px;
  }
  .specimen-foot {
    padding: 12px 0 15px;
    font-size: 8px;
    margin-top: 17px;
    gap: 5px;
  }
  .specimen-foot .icon svg {
    width: 13px;
  }
  .collection-invitation h2 {
    font-size: 32px;
  }
  .collection-invitation p:not(.eyebrow) {
    font-size: 12px;
  }
  .study-dialog {
    padding: 27px 20px;
  }
  .study-dialog h2 {
    font-size: 31px;
    margin-top: 9px;
  }
  .dialog-kicker {
    font-size: 8px;
  }
  .dialog-lead {
    font-size: 12px;
  }
  .roster-card summary {
    display: block;
    min-height: 58px;
    padding: 13px 0;
  }
  .roster-card summary small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
  }
  .roster-card p {
    font-size: 11px;
  }
  .detail-product-art {
    height: 205px;
  }
  .detail-product-art .set-plant {
    height: auto;
    aspect-ratio: 1;
    bottom: 0;
    width: 58%;
  }
  .specimen-detail {
    grid-template-columns: 1fr;
  }
  .detail-art {
    width: 65%;
    margin: auto;
  }
  .specimen-detail p {
    font-size: 12px;
  }
  .specimen-detail .primary {
    width: 100%;
  }
  .resolution-list span {
    font-size: 11px;
  }
  .purchase-includes {
    font-size: 11px;
  }
  .checkout-total strong {
    font-size: 29px;
  }
  body[data-theme='herbarium'] main {
    padding-inline-start: 16px;
    padding-inline-end: 16px;
  }
  body[data-theme='herbarium'] .game-header {
    margin-inline-start: 19px;
    margin-inline-end: 19px;
  }
  body[data-theme='herbarium'] .groves {
    padding: 23px 5px 10px;
  }
  body[data-theme='herbarium'] .grove {
    padding: 0 3px;
  }
  body[data-theme='herbarium'] .hand-cards {
    grid-template-columns: 1fr 1fr;
    padding: 0 3px;
    gap: 13px;
  }
  body[data-theme='herbarium'] .herbarium-grid {
    gap: 13px;
  }
  body[data-theme='conservatory'] .grove-title h2 {
    font-size: 14px;
  }
  body[data-theme='conservatory'] .grove-title {
    padding: 7px 1px;
    border-radius: 14px 14px 3px 3px;
  }
  body[data-theme='conservatory'] .garden-board {
    border-width: 3px;
    border-radius: 30px 30px 12px 12px;
  }
  body[data-theme='conservatory'] .control-line {
    padding: 6px 3px;
    border-radius: 8px;
  }
  .game-header,
  .battle-heading,
  .shop-heading,
  .collection-heading,
  .plan-actions,
  .product-copy,
  .feature-copy,
  .shop-feature,
  .direction-note,
  .study-dialog {
    min-width: 0;
  }
}
.mobile-grove-tabs {
  display: none;
}
.sample-hand {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.sample-hand article {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.sample-hand h3 {
  font-size: 24px;
}
.sample-hand small {
  display: block;
  margin: 10px 0;
  color: var(--accent);
}
.sample-hand p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.study-dialog .plant-inspector {
  display: block;
  border: 0;
  box-shadow: none;
  padding: 20px;
  background: var(--paper);
  max-width: 300px;
  margin: auto;
}
.study-dialog .plant-inspector .inspector-art {
  width: 160px;
  margin: auto;
}
.study-dialog .plant-inspector h2,
.study-dialog .plant-inspector .plant-latin,
.study-dialog .plant-inspector .ability {
  text-align: center;
}
.study-dialog .plant-inspector .plant-stats {
  display: flex;
}
@media (max-width: 520px) {
  .mobile-grove-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 12px;
    scroll-margin-top: 15px;
  }
  .mobile-grove-tabs button {
    background: var(--panel);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 11px;
    padding: 10px 4px;
    min-height: 64px;
  }
  .mobile-grove-tabs small {
    display: block;
    font-size: 9px;
    margin-top: 6px;
    white-space: nowrap;
  }
  .mobile-grove-tabs button.active {
    color: var(--accent);
    border-color: var(--accent);
  }
  .groves {
    display: block;
    padding: 26px 20px 16px;
  }
  .grove {
    display: none;
    padding: 0;
  }
  .grove.active-grove {
    display: block;
  }
  .grove-title {
    min-height: 48px;
    gap: 8px;
  }
  .grove-title h2 {
    font-size: 25px;
  }
  .grove-title > .icon {
    display: inline-flex;
  }
  .grove-title small {
    font-size: 10px;
  }
  .plant-places {
    height: 135px;
    gap: 8px;
  }
  .garden-unit {
    height: 128px;
    min-width: 44px;
  }
  .garden-unit .plant-art {
    width: 115%;
    left: -7.5%;
    bottom: 27px;
  }
  .unit-power {
    width: 25px;
    height: 25px;
    left: calc(50% - 12.5px);
    font-size: 19px;
    bottom: 13px;
  }
  .unit-age {
    font-size: 9px;
    bottom: -2px;
  }
  .empty-place {
    height: 44px;
    min-height: 44px;
    width: 100%;
    min-width: 44px;
    margin-bottom: 15px;
  }
  .plant-place .icon {
    width: 35px;
    height: 35px;
  }
  .plant-place svg {
    width: 18px;
    height: 18px;
  }
  .side-caption {
    font-size: 8px;
  }
  .control-line {
    padding: 9px 5px;
    margin-top: 12px;
  }
  .control-line > span {
    font-size: 9px;
  }
  .control-line b {
    font-size: 24px;
  }
  .control-name {
    display: inline !important;
    font-size: 8px !important;
  }
  .garden-board {
    min-height: 410px;
    background-size: auto 100%;
    background-position: center;
  }
  .garden-board[data-active='left'] {
    background-position: left center;
  }
  .garden-board[data-active='right'] {
    background-position: right center;
  }
  .battle-layout > .plant-inspector {
    display: none;
  }
  .planned-unit {
    height: 124px;
  }
  .planned-unit .plant-art {
    height: 98px;
  }
  .planned-unit small {
    font-size: 10px;
  }
  body[data-theme='herbarium'] .groves {
    padding: 26px 20px 16px;
  }
  body[data-theme='herbarium'] .grove {
    padding: 0;
    border: 0;
  }
  body[data-theme='conservatory'] .grove-title h2 {
    font-size: 24px;
  }
  body[data-theme='conservatory'] .grove-title {
    padding: 8px;
  }
  .sample-hand {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.hand-heading {
  position: relative;
}
.equipped-deck {
  width: 42px;
  flex-shrink: 0;
}
.equipped-deck .product-art {
  height: 58px;
  width: 42px;
  min-height: 0;
  background: transparent;
  overflow: visible;
}
.equipped-deck .cardback {
  width: 36px;
  height: 51px;
  transform: rotate(7deg);
  border-radius: 4px;
  padding: 3px;
  inset: auto;
  position: relative;
}
.equipped-deck .cardback > .icon {
  display: none;
}
.equipped-deck .plant-art {
  width: 30px;
  height: 30px;
}
.equipped-deck .back-wordmark {
  display: none;
}
.equipped-deck .constellation {
  font-size: 20px;
}
.harvest-action .primary,
.harvest-action .secondary {
  width: 100%;
  margin: 0 0 12px;
}
.study-dialog .plant-inspector {
  width: 100%;
  max-width: 340px;
  margin: auto;
}
.study-dialog .plant-inspector .inspector-art {
  max-height: 200px;
}
.card-roster summary small {
  line-height: 1.5;
}
body {
  color: var(--ink);
}
body[data-theme='herbarium'] .experience:before {
  opacity: 0.14;
}
body[data-theme='herbarium'] .garden-board {
  box-shadow: 0 2px 8px #382f201a;
}
.plant-inspector .harvest-action {
  grid-column: 1/-1;
}
.study-dialog .plant-inspector .family-label {
  display: flex;
  font-size: 11px;
}
.study-dialog .plant-inspector .eyebrow {
  font-size: 10px;
}
.study-dialog .plant-inspector .ability,
.study-dialog .plant-inspector .hint {
  font-size: 13px;
}
.study-dialog .plant-inspector .primary,
.study-dialog .plant-inspector .secondary {
  font-size: 13px;
}
.study-dialog .plant-inspector h2 {
  text-align: center;
}
