.test-mode-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 38px;
  background: #eae6d6;
  color: #354737;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.test-mode-bar > span:first-child {
  font-weight: 600;
  letter-spacing: 0.13em;
}
.game-header nav {
  gap: 15px;
}
.game-header nav button {
  white-space: nowrap;
}
.wallet-value {
  background: transparent;
  padding: 0;
  min-height: 44px;
}
.profile-button {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 21px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-links .text-button {
  font-size: 12px;
}
.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.game-toolbar .text-button {
  font-size: 12px;
}
.pool-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-inline-start: auto;
  min-height: 44px;
}
.pool-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.connection-note {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-bottom: 25px;
}
.deck-choice {
  padding: 12px 0 40px;
}
.deck-choice > .dialog-lead {
  max-width: 620px;
  margin-bottom: 25px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 25px 0;
}
.deck-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 4px 4px 35px 4px;
  position: relative;
  overflow: hidden;
}
.deck-panel:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('/src/design-lab/assets/moonlit-world.webp') center/cover;
  opacity: 0.11;
}
.deck-panel > * {
  position: relative;
}
.deck-panel .deck-emblem {
  width: 140px;
  height: 140px;
  margin: 0 auto 0;
}
.deck-panel h2 {
  font-size: 29px;
  min-height: 64px;
}
.deck-panel > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.deck-panel > .primary {
  width: 100%;
  margin-top: 8px;
}
.deck-panel .eyebrow {
  font-size: 10px;
}
.deck-choice > .secondary {
  margin-inline-end: 16px;
}
.lesson-panel,
.result-panel {
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 4px 25px 4px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lesson-panel > p:not(.eyebrow) {
  flex: 1;
  min-width: 180px;
}
.result-panel h2 {
  font-size: 34px;
}
.result-panel .eyebrow {
  flex-basis: 100%;
}
.result-panel > p {
  font-size: 13px;
  color: var(--muted);
}
.live-battle-layout {
  display: block;
}
.live-battle-layout .garden-board {
  min-height: 410px;
}
.live-battle-layout .groves {
  padding: 25px 20px 17px;
}
.live-battle-layout .plant-places {
  height: 130px;
}
.live-battle-layout .garden-unit {
  height: 125px;
  min-width: 44px;
}
.live-battle-layout .garden-unit .plant-art {
  bottom: 22px;
  width: 108%;
  left: -4%;
}
.live-battle-layout .unit-power {
  bottom: 11px;
}
.live-battle-layout .unit-age {
  font-size: 10px;
  bottom: -3px;
  background: #10251fbf;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.live-battle-layout .empty-place {
  min-height: 44px;
  margin-bottom: 15px;
}
.live-battle-layout .hand-section {
  margin: 28px 0 0;
}
.live-battle-layout .hand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  max-width: 1050px;
  margin: 0 auto 25px;
  gap: 16px;
  align-items: stretch;
}
.botanical-card {
  min-width: 0;
  min-height: 360px;
  padding: 16px 18px 17px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition-property: box-shadow, outline-color, transform;
  transition-duration: 120ms;
}
.botanical-card .card-art {
  width: 100%;
  max-width: 190px;
  height: auto;
  aspect-ratio: 1;
  margin: 5px auto 0;
  flex-shrink: 0;
}
.botanical-card .card-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.12;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0 8px;
}
.botanical-card .card-rule {
  font-size: 12px;
  line-height: 1.55;
  min-height: 55px;
  display: block;
  flex: 1;
  margin-bottom: 12px;
}
.botanical-card .card-power {
  margin-top: auto;
  position: static;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 25px;
}
.botanical-card .card-power small {
  font-size: 10px;
  letter-spacing: 0;
}
.botanical-card .card-cost {
  top: 12px;
  left: 12px;
  font-size: 14px;
}
.botanical-card .card-family {
  top: 14px;
  right: 13px;
}
.botanical-card.selected {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 8px 25px #0004;
}
.botanical-card:disabled {
  opacity: 0.8;
  cursor: default;
}
.botanical-card:disabled .card-name {
  color: var(--paper-ink);
}
.botanical-card .planned-label {
  bottom: auto;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.plan-actions {
  flex-wrap: wrap;
  gap: 12px;
}
.deck-back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 54px;
  border: 2px solid var(--accent);
  outline: 1px solid #d2c38a55;
  outline-offset: 3px;
  border-radius: 4px;
  background: #284a3d;
  color: #dfc48a;
  transform: rotate(7deg);
  flex-shrink: 0;
}
.deck-back.starchart {
  background: #1d2947;
  color: #ece3bd;
}
.round-journal {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.round-journal summary {
  min-height: 44px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 24px;
}
.round-journal ol {
  padding-inline-start: 22px;
  max-height: 350px;
  overflow: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.round-journal li {
  margin-bottom: 6px;
}
.replay-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.live-collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.collection-specimen,
.deck-specimen {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  content-visibility: auto;
  contain-intrinsic-size: auto 425px;
}
.live-collection-grid .botanical-card {
  width: 100%;
  flex: 1;
  min-height: 340px;
  padding: 16px 12px;
}
.live-collection-grid .card-name {
  font-size: 23px;
}
.live-collection-grid .card-rule {
  font-size: 11px;
}
.collection-specimen > p {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}
.collection-specimen > .text-button {
  font-size: 11px;
  margin: 0 auto;
}
.locked-specimen .botanical-card {
  background: #d6d4c0;
}
.locked-specimen .card-art {
  opacity: 0.75;
}
.deck-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}
.deck-actions p {
  font-size: 13px;
  color: var(--muted);
}
.copy-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 14px 0;
}
.copy-stepper button {
  min-width: 44px;
  min-height: 44px;
  font-size: 23px;
  padding: 4px;
}
.copy-stepper output {
  min-width: 25px;
  text-align: center;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.live-product-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #345c49, #17392f);
  height: 260px;
}
.live-product-art .set-plant {
  position: absolute;
  width: 59%;
  height: auto;
  aspect-ratio: 1;
  bottom: -4%;
  left: -5%;
}
.live-product-art .plant-1 {
  left: 36%;
  bottom: -2%;
}
.live-product-art .plant-2 {
  left: 64%;
  bottom: 5%;
  width: 47%;
  opacity: 0.88;
}
.live-product-art .set-seal {
  position: absolute;
  top: 18px;
  right: 18px;
}
.live-product-art.feature-art {
  height: 100%;
  min-height: 370px;
  background: none;
}
.live-product-art.feature-art .plant-0 {
  width: 67%;
  left: -8%;
  bottom: -9%;
  z-index: 2;
}
.live-product-art.feature-art .plant-1 {
  width: 67%;
  left: 22%;
  bottom: 2%;
  z-index: 1;
}
.live-product-art.feature-art .plant-2 {
  width: 75%;
  left: 43%;
  bottom: -12%;
  z-index: 0;
  opacity: 1;
}
.live-product-art.detail-product-art {
  height: 270px;
}
.live-product-art.checkout-art {
  height: 220px;
  max-width: 400px;
  margin: 0 auto 20px;
}
.live-product-art.checkout-art .set-seal {
  width: 50px;
  height: 60px;
  font-size: 25px;
}
.live-dialog .dialog-lead {
  margin: 18px 0;
}
.live-dialog .primary,
.live-dialog .secondary {
  margin: 9px 8px 9px 0;
}
.live-dialog > input,
.live-dialog textarea {
  display: block;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 46px;
  padding: 12px;
  margin: 10px 0 18px;
  resize: vertical;
}
.account-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.account-form input {
  min-height: 48px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  width: 100%;
  font-size: 16px;
}
.account-form label {
  font-size: 13px;
  color: var(--muted);
}
.form-feedback,
.dialog-feedback {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.dialog-feedback:empty {
  display: none;
}
.receipt-id {
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
}
.receipt {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.receipt h3 {
  font-size: 25px;
}
.receipt p {
  font-size: 12px;
  margin: 10px 0;
}
.receipt > small {
  display: block;
}
.live-dialog .specimen-detail {
  align-items: start;
}
.live-dialog .specimen-detail .detail-art {
  max-width: 260px;
}
.live-dialog .specimen-detail p {
  margin-bottom: 15px;
}
.botanical-card:active:not(:disabled),
.primary:active:not(:disabled),
.secondary:active:not(:disabled) {
  scale: 0.96;
}
.shop-product .product-copy > p {
  font-size: 13px;
}
.game-footer {
  margin-top: 40px;
}
.toast {
  max-width: min(90vw, 620px);
  text-align: center;
}
.toast:empty {
  display: none;
}
@media (min-width: 1600px) {
  .live-collection-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .live-collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .game-header {
    gap: 15px;
  }
  .game-header nav {
    gap: 4px;
  }
  .game-header nav button {
    min-width: 65px;
    font-size: 12px;
  }
  .wallet {
    gap: 12px;
  }
  .preset-grid {
    gap: 15px;
  }
  .deck-panel {
    padding: 22px;
  }
  .deck-panel h2 {
    font-size: 26px;
  }
  .pool-choice {
    margin-inline-start: 0;
  }
  .botanical-card .card-name {
    font-size: 22px;
  }
}
@media (max-width: 800px) {
  .test-mode-bar {
    padding: 10px 24px;
    font-size: 9px;
  }
  .live-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .deck-panel {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 24px;
  }
  .deck-panel .deck-emblem {
    grid-column: 1;
    grid-row: 1/5;
    width: 110px;
    height: 110px;
    align-self: center;
  }
  .deck-panel .eyebrow,
  .deck-panel h2,
  .deck-panel > p,
  .deck-panel > .primary {
    grid-column: 2;
    min-height: 0;
  }
  .deck-panel h2 {
    font-size: 30px;
  }
  .deck-panel > .primary {
    width: auto;
    justify-self: start;
  }
  .live-battle-layout .groves {
    padding: 22px 8px 17px;
  }
  .live-battle-layout .grove {
    padding: 0 5px;
  }
  .live-battle-layout .grove-title h2 {
    font-size: 22px;
  }
  .live-battle-layout .unit-power {
    font-size: 20px;
  }
  .live-battle-layout .control-line {
    padding: 9px 4px;
  }
  .live-battle-layout .control-line > span {
    font-size: 9px;
  }
  .live-battle-layout .control-line b {
    font-size: 23px;
  }
  .live-battle-layout .control-name {
    display: none;
  }
  .live-battle-layout .hand-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .live-battle-layout .botanical-card {
    padding: 15px 10px;
    min-height: 320px;
  }
  .botanical-card .card-rule {
    font-size: 11px;
  }
  .botanical-card .card-name {
    font-size: 22px;
  }
  .footer-links {
    gap: 16px;
  }
  .shop-heading h1,
  .collection-heading h1 {
    font-size: 43px;
  }
  .live-dialog .specimen-detail {
    grid-template-columns: 1fr;
  }
  .live-dialog .specimen-detail .detail-art {
    width: 180px;
    margin: auto;
  }
  .live-dialog .specimen-detail p {
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  .test-mode-bar {
    display: block;
    padding: 9px 16px;
    line-height: 1.8;
    font-size: 9px;
  }
  .test-mode-bar span {
    display: block;
  }
  .game-header nav {
    width: 100%;
    gap: 3px;
    justify-content: space-between;
  }
  .game-header nav button {
    font-size: 12px;
    min-width: 65px;
    padding: 7px 5px;
  }
  .game-header {
    margin: 0 16px;
  }
  .wallet-value small {
    font-size: 10px;
  }
  .wallet-value strong {
    font-size: 14px;
  }
  .game-header .brand b {
    font-size: 21px;
  }
  .game-header .brand small {
    font-size: 7px;
  }
  .wallet-value > .icon svg {
    width: 15px;
  }
  .wallet {
    gap: 8px;
  }
  .game-header .brand {
    gap: 8px;
  }
  .game-header .brand > .icon svg {
    width: 24px;
  }
  .profile-button {
    width: 32px;
    height: 32px;
  }
  .game-toolbar {
    gap: 4px;
    margin-bottom: 12px;
  }
  .game-toolbar .secondary,
  .game-toolbar .text-button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .pool-choice {
    font-size: 11px;
    flex-basis: 100%;
    padding-top: 4px;
  }
  .connection-note {
    font-size: 11px;
    line-height: 1.7;
  }
  .battle-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .battle-heading h1 {
    font-size: 36px;
    max-width: 220px;
  }
  .battle-heading .eyebrow {
    font-size: 9px;
  }
  .match-score {
    gap: 8px;
    align-self: flex-end;
    flex-shrink: 0;
  }
  .match-score .icon {
    display: none;
  }
  .match-score > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .match-score strong {
    font-size: 31px;
  }
  .match-score small {
    font-size: 9px;
  }
  .preset-grid {
    margin-top: 20px;
  }
  .deck-panel {
    padding: 20px;
    grid-template-columns: 75px 1fr;
    column-gap: 15px;
    row-gap: 10px;
  }
  .deck-panel .deck-emblem {
    width: 80px;
    height: 80px;
    grid-row: 1/3;
    max-width: none;
    margin-inline-start: -5px;
  }
  .deck-panel h2 {
    font-size: 27px;
    line-height: 1.1;
  }
  .deck-panel .eyebrow {
    font-size: 8px;
  }
  .deck-panel > p:not(.eyebrow),
  .deck-panel > .primary {
    grid-column: 1/3;
  }
  .deck-panel > .primary {
    width: 100%;
    font-size: 12px;
  }
  .deck-choice > .dialog-lead {
    font-size: 13px;
  }
  .deck-choice > .secondary {
    margin-bottom: 15px;
    width: 100%;
    margin-inline-end: 0;
  }
  .live-battle-layout .groves {
    display: block;
    padding: 23px 16px 15px;
  }
  .live-battle-layout .grove {
    padding: 0;
    display: none;
  }
  .live-battle-layout .grove.active-grove {
    display: block;
  }
  .live-battle-layout .grove-title h2 {
    font-size: 26px;
  }
  .live-battle-layout .control-name {
    display: inline;
  }
  .live-battle-layout .plant-places {
    height: 135px;
    gap: 6px;
  }
  .live-battle-layout .garden-unit {
    height: 128px;
  }
  .live-battle-layout .garden-unit .plant-art {
    bottom: 27px;
  }
  .live-battle-layout .unit-power {
    font-size: 20px;
    bottom: 14px;
  }
  .live-battle-layout .empty-place {
    height: 44px;
    min-width: 44px;
  }
  .live-battle-layout .unit-age {
    font-size: 10px;
  }
  .live-battle-layout .hand-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: none;
  }
  .live-battle-layout .botanical-card {
    padding: 16px 10px;
    min-height: 340px;
  }
  .live-battle-layout .hand-heading h2 {
    font-size: 30px;
  }
  .live-battle-layout .hand-heading > span:not(.deck-back) {
    font-size: 11px;
  }
  .hand-heading {
    flex-wrap: wrap;
  }
  .hand-heading > h2 {
    flex-basis: 100%;
  }
  .live-battle-layout .plan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .plan-actions .energy-meter {
    font-size: 11px;
  }
  .plan-actions .primary {
    grid-column: 1/3;
    width: 100%;
    font-size: 14px;
  }
  .plan-actions .secondary,
  .plan-actions .text-button {
    font-size: 12px;
    padding: 10px;
  }
  .live-collection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px 12px;
  }
  .live-collection-grid .botanical-card {
    padding: 16px 10px;
    min-height: 345px;
  }
  .live-collection-grid .card-name {
    font-size: 23px;
    min-height: 54px;
  }
  .live-collection-grid .card-rule {
    font-size: 11px;
    min-height: 70px;
  }
  .collection-specimen > p {
    font-size: 10px;
  }
  .live-collection-grid .card-art {
    margin-top: 10px;
  }
  .live-product-art.feature-art {
    height: 250px;
    min-height: 250px;
  }
  .live-product-art.feature-art .plant-0 {
    width: 65%;
    left: -5%;
    bottom: -7%;
  }
  .live-product-art.feature-art .plant-1 {
    width: 62%;
    left: 24%;
    bottom: 1%;
  }
  .live-product-art.feature-art .plant-2 {
    width: 72%;
    left: 44%;
    bottom: -10%;
  }
  .live-product-art {
    height: 245px;
  }
  .live-product-art .set-seal {
    top: 12px;
    right: 12px;
  }
  .live-product-art.checkout-art {
    height: 180px;
  }
  .live-dialog .dialog-lead {
    font-size: 14px;
  }
  .live-dialog > p:not(.dialog-kicker) {
    font-size: 13px;
  }
  .live-dialog .primary,
  .live-dialog .secondary {
    min-height: 46px;
    font-size: 13px;
  }
  .live-dialog .dialog-kicker {
    font-size: 10px;
    line-height: 1.6;
  }
  .live-dialog .purchase-note {
    font-size: 12px;
  }
  .card-roster .roster-card summary small {
    font-size: 11px;
    line-height: 1.6;
  }
  .card-roster .roster-card p {
    font-size: 13px;
  }
  .lesson-panel,
  .result-panel {
    padding: 20px;
    gap: 15px;
  }
  .lesson-panel > p {
    font-size: 13px;
  }
  .result-panel .primary,
  .result-panel .secondary {
    width: 100%;
  }
  .deck-actions {
    gap: 10px;
  }
  .deck-actions .primary,
  .deck-actions .secondary {
    font-size: 12px;
    flex: 1;
  }
  .deck-actions p {
    flex-basis: 100%;
    font-size: 12px;
  }
  .game-footer {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
  .footer-links a,
  .footer-links button {
    font-size: 11px;
  }
  .shop-heading h1,
  .collection-heading h1 {
    font-size: 39px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .botanical-card:active,
  .primary:active,
  .secondary:active {
    scale: 1;
  }
}
.opening-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 650px;
  margin: 15px 0 25px;
}
.reveal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 20px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}
.reveal-strip strong {
  color: var(--accent);
}
@media (max-width: 520px) {
  .reveal-strip {
    display: grid;
    gap: 10px;
    padding: 18px;
    font-size: 12px;
  }
}
@media (min-width: 1101px) {
  .live-battle-layout:not(:has(.opening-note)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 25px;
    align-items: start;
  }
  .live-battle-layout:not(:has(.opening-note)) .hand-section {
    margin: 0;
  }
  .live-battle-layout:not(:has(.opening-note)) .hand-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .live-battle-layout:not(:has(.opening-note)) .botanical-card {
    min-height: 255px;
    padding: 12px 10px;
  }
  .live-battle-layout:not(:has(.opening-note)) .card-art {
    max-width: 92px;
    margin: 3px auto 0;
  }
  .live-battle-layout:not(:has(.opening-note)) .card-name {
    font-size: 20px;
    min-height: 42px;
    margin: 5px 0;
  }
  .live-battle-layout:not(:has(.opening-note)) .card-rule {
    font-size: 11px;
    min-height: 52px;
    margin-bottom: 8px;
  }
  .live-battle-layout:not(:has(.opening-note)) .card-power {
    font-size: 21px;
  }
  .live-battle-layout:not(:has(.opening-note)) .hand-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .live-battle-layout:not(:has(.opening-note)) .hand-heading h2 {
    font-size: 28px;
    flex-basis: 100%;
  }
  .live-battle-layout:not(:has(.opening-note)) .hand-heading > span {
    font-size: 11px;
  }
  .live-battle-layout:not(:has(.opening-note)) .plan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .live-battle-layout:not(:has(.opening-note)) .plan-actions .primary {
    grid-column: 1/3;
    font-size: 13px;
  }
  .live-battle-layout:not(:has(.opening-note)) .plan-actions .secondary,
  .live-battle-layout:not(:has(.opening-note)) .plan-actions .text-button {
    font-size: 11px;
    padding: 8px;
  }
  .live-battle-layout:not(:has(.opening-note)) .energy-meter {
    font-size: 11px;
  }
  .live-battle-layout:not(:has(.opening-note)) .energy-meter strong {
    font-size: 13px;
  }
  .battle-heading h1 {
    font-size: 42px;
  }
  .battle-heading {
    margin-bottom: 18px;
  }
  .reveal-strip {
    padding: 13px 18px;
    margin: 14px 0 22px;
    gap: 8px 20px;
    font-size: 11px;
  }
  .reveal-strip strong {
    font-size: 12px;
  }
}
.collection-specimen,
.deck-specimen {
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.botanical-card .card-name {
  white-space: normal;
  overflow-wrap: anywhere;
}
.hand-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hand-slot > .botanical-card {
  width: 100%;
  flex: 1;
}
.card-info {
  font-size: 11px;
  text-align: center;
  padding: 8px 0;
  min-height: 38px;
}
.hand-slot .card-rule {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex: none;
  min-height: 51px;
  max-height: 56px;
}
.hand-slot .botanical-card .card-name {
  min-height: 43px;
}
.hand-slot .botanical-card {
  min-height: 255px;
}
.hand-section .plan-actions {
  position: sticky;
  bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  z-index: 4;
}
@media (min-width: 1101px) {
  .live-battle-layout:not(:has(.opening-note)) .hand-slot .card-art {
    max-width: 80px;
  }
  .live-battle-layout:not(:has(.opening-note)) .hand-slot .botanical-card {
    min-height: 238px;
  }
  .live-battle-layout:not(:has(.opening-note)) .hand-slot .card-rule {
    font-size: 11px;
    line-height: 1.55;
  }
  .live-battle-layout:not(:has(.opening-note)) .plan-actions .text-button {
    min-height: 44px;
  }
}
@media (max-width: 520px) {
  .hand-slot .botanical-card {
    min-height: 280px;
  }
  .card-info {
    min-height: 44px;
    font-size: 12px;
  }
  .hand-section .plan-actions {
    bottom: 5px;
    padding: 10px;
  }
}
.live-dialog {
  overscroll-behavior: contain;
}
.live-dialog .dialog-close {
  position: sticky;
  top: 0;
  right: auto;
  float: inline-end;
  margin: -8px -7px 2px 8px;
  background: var(--panel);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  z-index: 20;
}
.toast {
  top: 10px;
  bottom: auto;
}
.hand-slot .botanical-card,
.live-collection-grid .botanical-card {
  transform: none;
}
.family-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.family-demo .detail-art {
  width: 150px;
  max-width: 100%;
  margin: auto;
}
.family-demo article {
  text-align: center;
}
.family-demo h3 {
  font-size: 24px;
}
.family-demo p {
  font-size: 12px;
  margin-top: 12px;
}
/* Alpha readiness: persistent announcements, forms, zoom and keyboard support. */
.hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}
.notice-tray {
  position: fixed;
  bottom: 16px;
  left: 50%;
  translate: -50% 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(95vw, 700px);
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 8px;
  box-shadow: 0 8px 30px #0005;
  padding: 0 14px;
}
.notice-tray:has(#notice:empty) {
  display: none;
}
.notice-tray #notice {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.notice-tray button {
  background: none;
  color: inherit;
  text-decoration: underline;
  flex-shrink: 0;
  min-width: 44px;
}
.notice-tray [hidden] {
  display: none;
}
.field-error {
  font-size: 13px;
  color: #ffcfb5;
}
.field-error:empty {
  display: none;
}
.account-form [aria-invalid='true'] {
  border: 2px solid #ffcfb5;
}
.playtest-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin: 24px 0;
}
.playtest-form label {
  display: block;
  font-size: 15px;
  line-height: 1.6;
}
.playtest-form select,
.playtest-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  padding: 12px;
  margin-top: 8px;
}
.playtest-form textarea {
  resize: vertical;
  min-height: 140px;
}
.playtest-form .consent-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}
.consent-choice input {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.playtest-tasks {
  font-size: 15px;
  line-height: 1.8;
  padding-inline-start: 24px;
  max-width: 720px;
  margin: 24px 0;
}
.playtest-status {
  color: var(--accent);
  margin-bottom: 20px;
}
.live-dialog {
  overscroll-behavior: contain;
}
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.profile-button {
  min-width: 44px;
  min-height: 44px;
}
.footer-links {
  flex-wrap: wrap;
}
.hint {
  overflow-wrap: anywhere;
}
.game-toolbar,
.replay-controls,
.deck-actions {
  row-gap: 14px;
}
@media (max-width: 360px) {
  .game-header .brand b {
    font-size: 18px;
  }
  .game-header .brand small {
    display: none;
  }
  .wallet {
    gap: 4px;
  }
  .game-header {
    gap: 6px;
  }
  .test-mode-bar {
    padding-inline: 12px;
  }
  .experience main {
    padding-inline: 12px;
  }
  .live-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .botanical-card .card-name {
    font-size: 20px;
  }
  .notice-tray {
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .botanical-card:active,
  .primary:active,
  .secondary:active {
    scale: 1;
  }
}
@media (forced-colors: active) {
  button,
  a,
  input,
  select,
  textarea,
  summary {
    forced-color-adjust: auto;
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible {
    outline: 3px solid Highlight;
  }
  .botanical-card.selected {
    outline: 3px solid Highlight;
  }
  .notice-tray {
    border: 1px solid CanvasText;
  }
}

/* Duel motion. motion.js adds these classes only for what is new since the last render. */
.motion-ghost-host,
.motion-score-host {
  position: relative;
}
.motion-harvest-ghost {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.motion-score-gain {
  position: absolute;
  top: -6px;
  right: -16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  pointer-events: none;
  opacity: 0;
}
.sound-toggle::before {
  content: none;
}
.sound-toggle.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  text-decoration: none;
}
.sound-icon {
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M17 9a5 5 0 010 6M19 6a9 9 0 010 12'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.sound-toggle[aria-pressed='true'] .sound-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4zM17 9l4 6M21 9l-4 6'/%3E%3C/svg%3E");
}
.sound-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .motion-sprout > .plant-art {
    animation: grove-sprout 520ms cubic-bezier(0.2, 0.8, 0.25, 1) var(--motion-delay, 0ms) both;
  }
  .grove.motion-grove-won {
    border-radius: 22px;
    animation: grove-glow-own 600ms ease-out var(--motion-delay, 0ms) both;
  }
  .grove.motion-grove-rival {
    border-radius: 22px;
    animation: grove-glow-rival 600ms ease-out var(--motion-delay, 0ms) both;
  }
  .motion-harvest-ghost {
    animation: harvest-lift 560ms cubic-bezier(0.3, 0.6, 0.4, 1) var(--motion-delay, 0ms) both;
  }
  .motion-score {
    animation: bloom-pulse 480ms ease-out var(--motion-delay, 0ms) both;
  }
  .motion-score-gain {
    animation: bloom-gain 600ms ease-out var(--motion-delay, 0ms) both;
  }
  .result-panel.motion-result {
    animation: result-ease-in 480ms cubic-bezier(0.2, 0.8, 0.25, 1) var(--motion-delay, 0ms) both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-harvest-ghost,
  .motion-score-gain {
    display: none;
  }
}
/* On narrow screens the score labels sit above the numbers; the pulse alone is enough. */
@media (max-width: 720px) {
  .motion-score-gain {
    display: none;
  }
}
@keyframes grove-sprout {
  from {
    opacity: 0.45;
    scale: 0.55;
    translate: 0 12px;
  }
  65% {
    opacity: 1;
    scale: 1.05;
    translate: 0 -2px;
  }
  to {
    scale: 1;
    translate: 0 0;
  }
}
@keyframes grove-glow-own {
  35% {
    box-shadow:
      inset 0 0 48px #e9ca874d,
      0 0 26px #e9ca8726;
  }
}
@keyframes grove-glow-rival {
  35% {
    box-shadow:
      inset 0 0 48px #b9d2d838,
      0 0 22px #b9d2d81a;
  }
}
@keyframes harvest-lift {
  from {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  to {
    opacity: 0;
    translate: 0 -38px;
    scale: 0.88;
  }
}
@keyframes bloom-pulse {
  35% {
    scale: 1.22;
    text-shadow: 0 0 14px #e9ca8799;
  }
}
@keyframes bloom-gain {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 0;
    translate: 0 -14px;
  }
}
@keyframes result-ease-in {
  from {
    opacity: 0.6;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
