* { box-sizing: border-box; }
:root {
  --orange: #FF8A3D;
  --orange-deep: #E86416;
  --orange-light: #FFC15A;
  --cream: #FFF6E4;
  --cream-deep: #F2DFB8;
  --ink: #3D2712;
  --ink-soft: #7A5A36;
  --wood: #8A4A22;
  --wood-dark: #54280F;
  --leaf: #4E9B31;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  background: #1B2C13 radial-gradient(circle at 50% 20%, #2D4A20 0%, #14210D 70%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button { font-family: inherit; -webkit-tap-highlight-color: transparent; cursor: pointer; }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid #FFE19B; outline-offset: 2px; }

#game {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  height: 100%;
  display: block;
  touch-action: manipulation;
  z-index: 1;
}

.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---------------- 顶部 HUD ---------------- */
.hud {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  padding: calc(var(--safe-t) + 8px) 12px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  transition: opacity .25s ease;
}
.hud > * { pointer-events: auto; }
.sun-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFCF2 0%, #FFE7B8 58%, #FFD48C 100%);
  border: 2px solid #B96B2C;
  box-shadow: 0 3px 0 #8E4B1B, 0 7px 16px rgba(60, 35, 10, .28), inset 0 1px 0 #fff;
  flex: 0 0 auto;
}
.sun-chip.pop { animation: sunPop .28s ease; }
@keyframes sunPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.sun-orb {
  position: relative;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFFBD1 0%, #FFE36A 32%, #FFC02E 65%, #FF9418 100%);
  box-shadow: 0 0 10px rgba(255, 199, 60, .9), inset -2px -2px 0 rgba(210, 100, 0, .22);
  flex: 0 0 auto;
}
.sun-orb::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 210, 90, .55);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sun-num {
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  color: #5C3312;
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.wave-chip {
  flex: 1 1 auto;
  max-width: 150px;
  min-width: 0;
  margin: 0 auto;
  padding: 5px 10px 7px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(52, 35, 17, .9), rgba(34, 22, 10, .92));
  border: 1px solid rgba(255, 207, 130, .42);
  box-shadow: 0 3px 10px rgba(30, 18, 6, .3), inset 0 1px 0 rgba(255, 228, 170, .16);
  color: #FFF0D2;
}
.wave-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.wave-total { font-size: 9px; opacity: .7; font-weight: 600; }
.wave-track {
  height: 4px;
  margin-top: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}
.wave-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFD15A, #FF8A3D 70%, #FF6420);
  box-shadow: 0 0 6px rgba(255, 170, 60, .7);
  transition: width .18s linear;
}
.hud-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.life-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(52, 35, 17, .9), rgba(34, 22, 10, .94));
  border: 1px solid rgba(255, 207, 130, .36);
  color: #FFE7C2;
  font-weight: 900;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.life-chip .mp-icon { width: 17px; height: 17px; color: #FF6D57; }
.life-chip.low .mp-icon { animation: heartBeat .8s ease infinite; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 207, 130, .42);
  background: linear-gradient(180deg, rgba(52, 35, 17, .9), rgba(34, 22, 10, .94));
  color: #FFE7C2;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(30, 18, 6, .3), inset 0 1px 0 rgba(255, 228, 170, .14);
  transition: transform .1s ease;
}
.icon-btn .mp-icon { width: 20px; height: 20px; }
.icon-btn:active { transform: translateY(2px) scale(.97); }

/* ---------------- 底部种子栏 ---------------- */
.seedbar {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  padding: 7px 8px calc(6px + var(--safe-b));
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #9B5628 0%, #7A3D18 32%, #5D2B10 100%);
  border-top: 3px solid #D08A44;
  box-shadow: 0 -8px 24px rgba(30, 15, 5, .48), inset 0 1px 0 rgba(255, 208, 150, .5);
  transition: opacity .25s ease;
}
.seedbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 1px;
  background: rgba(255, 224, 180, .25);
}
.seed-cards {
  display: grid;
  grid-template-columns: repeat(var(--slot-cols, 4), minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.seed-card {
  position: relative;
  height: 74px;
  min-width: 0;
  padding: 3px 2px 2px;
  border: 2px solid #B97A38;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFFCEB 0%, #F8E7C0 62%, #EBCF98 100%);
  box-shadow: 0 3px 0 #5E2F10, inset 0 1px 0 #fff, inset 0 -2px 0 rgba(160, 100, 40, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  color: #45280F;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  touch-action: manipulation;
}
.seed-card .thumb {
  display: block;
  width: 100%;
  height: 39px;
  flex: 0 0 39px;
  pointer-events: none;
}
.seed-card .pname {
  font-size: 9px;
  line-height: 11px;
  height: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  pointer-events: none;
}
.seed-card .pcost {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 13px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  color: #7A4315;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.seed-card .pcost i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFACB, #FFD23F 55%, #FF9A17);
  box-shadow: 0 0 4px rgba(255, 190, 40, .8);
}
.seed-card.selected {
  transform: translateY(-4px);
  border-color: #FFD15A;
  box-shadow: 0 0 0 2px #FF8A3D, 0 4px 0 #5E2F10, 0 0 18px rgba(255, 180, 70, .85), inset 0 1px 0 #fff;
  background: linear-gradient(180deg, #FFFEF4 0%, #FFEDC0 62%, #FFDA96 100%);
}
.seed-card.poor { filter: saturate(.35) brightness(.86); }
.seed-card:active { transform: translateY(2px); box-shadow: 0 1px 0 #5E2F10, inset 0 1px 0 #fff; }
.seed-card .cooldown-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: rgba(38, 24, 10, .58);
  border-radius: 0 0 8px 8px;
  pointer-events: none;
  transition: height .12s linear;
}
.seed-card .cd-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 2px;
  font-size: 17px;
  font-weight: 900;
  color: #FFF6D9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  pointer-events: none;
  opacity: 0;
}
.seed-card .cd-text.on { opacity: 1; }
.seed-card.ad-slot-card {
  justify-content: center;
  gap: 2px;
  border-style: dashed;
  border-color: #FFD9A0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #FF9A4D 0%, #F4741D 58%, #DA5710 100%);
  color: #FFF8E7;
  box-shadow: 0 3px 0 #8E360A, inset 0 1px 0 rgba(255, 255, 255, .38);
}
.seed-card.ad-slot-card .mp-icon { width: 20px; height: 20px; color: #FFF4D6; }
.seed-card.ad-slot-card b { font-size: 10px; line-height: 1.05; font-weight: 900; letter-spacing: -.01em; }
.seed-card.ad-slot-card span { font-size: 9px; line-height: 1.05; font-weight: 800; opacity: .92; }
.seed-card.ad-slot-card:active { transform: translateY(2px); box-shadow: 0 1px 0 #8E360A, inset 0 1px 0 rgba(255, 255, 255, .3); }
.seed-card.ad-slot-card.off { filter: grayscale(1); opacity: .55; }

.tool-btn .tool-count {
  position: absolute;
  right: -5px;
  bottom: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid #FFE0A6;
  border-radius: 999px;
  background: linear-gradient(180deg, #6B3A18, #45230B);
  color: #FFE9B8;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.tool-btn.empty { filter: grayscale(.85) brightness(.82); }
.tool-btn.empty .tool-count { background: #6E5541; color: #E4D3BC; }

.mini-ad-btn {
  flex: 0 0 auto;
  min-width: 50px;
  height: 38px;
  padding: 0 5px;
  border: 2px solid #D85714;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFB451 0%, #FF8A3D 52%, #F06A16 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 3px 0 #9E3B08, 0 5px 10px rgba(120, 45, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .1s ease, box-shadow .1s ease, filter .12s ease;
}
.mini-ad-btn .mp-icon { width: 13px; height: 13px; flex: 0 0 auto; color: #FFF6DE; }
.mini-ad-btn em { display: flex; flex-direction: column; align-items: flex-start; font-style: normal; line-height: 1.05; }
.mini-ad-btn b { font-size: 8px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.mini-ad-btn span { font-size: 8px; font-weight: 800; opacity: .94; white-space: nowrap; }
.mini-ad-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #9E3B08, inset 0 1px 0 rgba(255, 255, 255, .5); }
.mini-ad-btn.off, .mini-ad-btn:disabled { filter: grayscale(1); opacity: .55; }
.mini-ad-btn.is-hidden { display: none !important; }

.tool-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 520px;
  margin: 6px auto 0;
}
.tool-btn {
  position: relative;
  height: 38px;
  min-width: 52px;
  padding: 0 6px;
  border-radius: 11px;
  border: 2px solid #B97A38;
  background: linear-gradient(180deg, #FFF8E3 0%, #F1D9AD 100%);
  box-shadow: 0 3px 0 #5E2F10, inset 0 1px 0 #fff;
  color: #4A2A10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .1s ease, box-shadow .1s ease;
}
.tool-btn .mp-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.tool-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #5E2F10, inset 0 1px 0 #fff; }
.tool-btn.active {
  border-color: #FFD15A;
  background: linear-gradient(180deg, #FFE7A9, #FFC15A);
  box-shadow: 0 0 0 2px #FF8A3D, 0 3px 0 #5E2F10, 0 0 14px rgba(255, 170, 60, .8);
}
.tool-btn.cooling { filter: saturate(.55) brightness(.9); }
.tool-btn .skill-cd {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 99px;
  border: 1px solid #FFC46A;
  background: #3E2410;
  color: #FFE7B0;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
}
.tool-btn .skill-cd.on { display: flex; }
.next-btn {
  flex: 1 1 auto;
  min-width: 84px;
  height: 38px;
  padding: 2px 8px;
  border-radius: 11px;
  border: 2px solid #D85714;
  background: linear-gradient(180deg, #FFB451 0%, #FF8A3D 52%, #F06A16 100%);
  box-shadow: 0 3px 0 #9E3B08, 0 7px 14px rgba(120, 45, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.08;
  transition: transform .1s ease, box-shadow .1s ease;
}
.next-btn .next-main {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(140, 50, 0, .55);
}
.next-btn .next-sub {
  margin-top: 1px;
  font-size: 8px;
  font-weight: 700;
  opacity: .92;
  text-shadow: 0 1px 0 rgba(140, 50, 0, .4);
  white-space: nowrap;
}
.next-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #9E3B08, inset 0 1px 0 rgba(255, 255, 255, .5); }
.next-btn:disabled { filter: saturate(.45) brightness(.9); opacity: .78; }

/* ---------------- 浮动提示 ---------------- */
.banner {
  position: fixed;
  z-index: 36;
  left: 50%;
  top: calc(var(--safe-t) + 58px);
  min-width: 178px;
  max-width: calc(100% - 48px);
  padding: 8px 18px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255, 194, 94, .55);
  background: linear-gradient(180deg, rgba(48, 32, 15, .94), rgba(30, 20, 9, .95));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 226, 170, .2);
  color: #FFF2D6;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px) scale(.96);
  transition: opacity .22s ease, transform .22s ease;
}
.banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner-title { font-size: 14px; font-weight: 900; letter-spacing: .01em; }
.banner-sub { margin-top: 2px; font-size: 10px; opacity: .82; font-weight: 600; }

.toast {
  position: fixed;
  z-index: 42;
  left: 50%;
  bottom: calc(var(--safe-b) + 202px);
  max-width: 82%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 20, 9, .92);
  border: 1px solid rgba(255, 200, 120, .28);
  color: #FFF3D8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.coach {
  position: fixed;
  z-index: 32;
  left: 50%;
  bottom: calc(var(--safe-b) + 153px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 36px);
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  border: 1.5px solid #C38745;
  background: linear-gradient(180deg, rgba(255, 250, 235, .97), rgba(250, 232, 196, .97));
  box-shadow: 0 6px 16px rgba(40, 22, 6, .28), inset 0 1px 0 #fff;
  color: #5A3415;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  transition: opacity .2s ease;
}
.coach .mp-icon { width: 16px; height: 16px; color: #E17A22; flex: 0 0 auto; }
.coach p { margin: 0; }

/* ---------------- 弹层 ---------------- */
.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-t) + 18px) 18px calc(var(--safe-b) + 18px);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 170, 80, .16), transparent 58%),
    rgba(14, 26, 8, .58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity .25s ease;
}
.start-overlay {
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(12, 24, 8, .02) 0%, rgba(12, 24, 8, .12) 38%, rgba(12, 24, 8, .7) 76%, rgba(10, 20, 6, .86) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.start-card {
  width: min(100%, 390px);
  padding: 0 4px 4px;
  color: #FFF5DE;
  text-align: center;
  animation: rise .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 220, 160, .42);
  border-radius: 999px;
  background: rgba(255, 240, 200, .13);
  color: #FFD899;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.title-badge .mp-icon { width: 15px; height: 15px; }
.game-title {
  margin: 11px 0 7px;
  font-size: clamp(36px, 11vw, 47px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 900;
  color: #FFF8E9;
  text-shadow: 0 3px 0 #A94A10, 0 7px 0 rgba(100, 40, 5, .35), 0 12px 26px rgba(0, 0, 0, .5);
}
.game-title b { color: #FFC15A; }
.game-sub {
  max-width: 292px;
  margin: 0 auto 10px;
  color: #F1E3C4;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 600;
}
.level-banner {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0 auto 2px;
  padding: 5px 13px 6px;
  border: 1px solid rgba(255, 216, 150, .42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(52, 35, 17, .78), rgba(31, 22, 10, .8));
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 233, 186, .2);
  color: #FFE2B0;
}
.level-banner span { font-size: 9px; font-weight: 800; letter-spacing: .08em; opacity: .82; }
.level-banner b {
  color: #FFD15A;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(110, 40, 0, .45);
}
.level-banner em { font-style: normal; color: #FFE9C4; font-size: 10px; font-weight: 800; }
.level-banner.clear b { color: #B7F07A; }
.start-progress-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.level-progress {
  margin: 0;
  color: rgba(255, 221, 166, .78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}
.codex-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 27px;
  padding: 0 9px 0 7px;
  border: 1px solid rgba(255, 211, 142, .42);
  border-radius: 999px;
  background: rgba(22, 36, 13, .62);
  color: #FFE3B0;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 238, 197, .14);
  transition: transform .1s ease, background .12s ease;
}
.codex-link .mp-icon { width: 14px; height: 14px; color: #FFC15A; }
.codex-link b {
  margin-left: 1px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 190, 95, .2);
  color: #FFD593;
  font-size: 9px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.codex-link:active { transform: translateY(2px); background: rgba(52, 35, 17, .72); }
.feature-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 15px;
}
.feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(22, 36, 13, .55);
  color: #F4E8CC;
  font-size: 10px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.feature-row .mp-icon { width: 14px; height: 14px; color: #FFC15A; }
.primary-btn {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFB451 0%, #FF8A3D 48%, #F36B18 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 5px 0 #A83E08, 0 12px 24px rgba(120, 45, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .1s ease, box-shadow .1s ease;
}
.primary-btn .mp-icon { width: 24px; height: 24px; }
.primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #A83E08, 0 6px 12px rgba(120, 45, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.how-line {
  margin: 11px 0 0;
  color: rgba(240, 225, 195, .76);
  font-size: 10px;
  font-weight: 600;
}
.best-line {
  margin: 8px 0 0;
  color: #FFD08A;
  font-size: 11px;
  font-weight: 800;
}
.end-card .best-line {
  margin-top: 15px;
  color: #A9763E;
}

.modal-card {
  width: min(100%, 350px);
  padding: 22px 18px 20px;
  border: 2px solid #D89A4A;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFDF4 0%, #FCEFD2 58%, #F8E3B7 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 #fff;
  text-align: center;
  animation: pop .3s cubic-bezier(.2, .9, .25, 1.15);
}
@keyframes pop {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon {
  width: 60px;
  height: 60px;
  margin: -46px auto 8px;
  border: 3px solid #FFF6DE;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFB451, #F06A16);
  box-shadow: 0 7px 16px rgba(180, 90, 20, .36), inset 0 1px 0 rgba(255, 255, 255, .5);
  display: grid;
  place-items: center;
}
.modal-icon .mp-icon { width: 30px; height: 30px; color: #fff; }
.modal-card h2 {
  margin: 8px 0 6px;
  color: #5A3314;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.modal-card > p {
  margin: 0 auto 14px;
  max-width: 280px;
  color: #87633B;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.stat-row {
  display: flex;
  gap: 6px;
  margin: 4px 0 15px;
}
.stat-row div {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(190, 135, 65, .3);
}
.stat-row b {
  display: block;
  color: #C45A12;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.stat-row span { display: block; margin-top: 2px; color: #8A6A45; font-size: 9px; font-weight: 700; }
.ghost-btn {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 2px solid #C68B48;
  border-radius: 13px;
  background: transparent;
  color: #7A4A1E;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .12s ease, transform .1s ease;
}
.ghost-btn .mp-icon { width: 17px; height: 17px; color: #B76A21; }
.ghost-btn:active { background: rgba(198, 139, 72, .14); transform: translateY(2px); }


/* ---------------- 开局选卡 ---------------- */
.lineup-overlay {
  z-index: 56;
  align-items: stretch;
  padding: calc(var(--safe-t) + 12px) 14px calc(var(--safe-b) + 12px);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 170, 80, .18), transparent 58%),
    linear-gradient(180deg, rgba(10, 20, 6, .78), rgba(8, 16, 5, .9));
}
.lineup-card {
  width: min(100%, 430px);
  max-height: 100%;
  margin: auto;
  padding: 14px;
  border: 2px solid #D2964E;
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 183, 92, .14), transparent 58%),
    linear-gradient(180deg, #3A2A16 0%, #23180C 70%, #180F07 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 227, 176, .28);
  color: #FFF2D7;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: pop .3s cubic-bezier(.2, .9, .25, 1.15);
}
.lineup-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 210, 145, .18);
}
.lineup-back { width: 36px; height: 36px; flex: 0 0 36px; color: #FFE5BB; background: rgba(255, 233, 190, .1); border-color: rgba(255, 214, 154, .32); }
.lineup-head-copy { flex: 1 1 auto; min-width: 0; }
.lineup-head h2 {
  margin: 0;
  color: #FFE2A8;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
}
.lineup-head p {
  margin: 2px 0 0;
  color: rgba(255, 227, 187, .7);
  font-size: 10px;
  font-weight: 700;
}
.lineup-count {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 211, 142, .4);
  border-radius: 999px;
  background: rgba(255, 190, 95, .14);
  color: #FFD79A;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lineup-enemy {
  flex: 0 0 auto;
  margin: 9px 0 0;
  padding: 5px 9px;
  border: 1px solid rgba(255, 196, 120, .22);
  border-radius: 9px;
  background: rgba(255, 173, 84, .08);
  color: #FFD8A0;
  font-size: 9px;
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
}
.lineup-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 11px 2px 11px;
  -webkit-overflow-scrolling: touch;
}
.lineup-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 76px;
  padding: 7px 7px 7px 5px;
  border: 2px solid #B97A38;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFCEB 0%, #F5E3BC 62%, #E8CEA0 100%);
  box-shadow: 0 3px 0 #5A2C0E, inset 0 1px 0 #fff;
  color: #45280F;
  text-align: left;
  transition: transform .1s ease, box-shadow .1s ease, border-color .1s ease;
}
.lineup-item .lineup-thumb {
  width: 48px;
  height: 42px;
  flex: 0 0 48px;
  pointer-events: none;
}
.lineup-item .lineup-copy { min-width: 0; flex: 1 1 auto; }
.lineup-item .lineup-name {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup-item .lineup-role {
  display: block;
  margin-top: 2px;
  color: #946B3D;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup-item .lineup-cost {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
  color: #7A4315;
  font-size: 10px;
  font-weight: 900;
}
.lineup-item .lineup-cost i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFACB, #FFD23F 55%, #FF9A17);
  box-shadow: 0 0 4px rgba(255, 190, 40, .8);
}
.lineup-item.selected {
  border-color: #FFD15A;
  background: linear-gradient(180deg, #FFFBDF 0%, #FFE9AE 62%, #FFD383 100%);
  box-shadow: 0 0 0 2px #FF8A3D, 0 3px 0 #5A2C0E, 0 0 18px rgba(255, 180, 70, .55), inset 0 1px 0 #fff;
}
.lineup-item:active { transform: translateY(2px); box-shadow: 0 1px 0 #5A2C0E, inset 0 1px 0 #fff; }
.lineup-item .lineup-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFB451, #F06A16);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(110, 35, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.lineup-item .lineup-check .mp-icon { width: 13px; height: 13px; }
.lineup-item.selected .lineup-check { display: flex; }
.lineup-tip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 9px;
  color: rgba(255, 223, 178, .62);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}
.lineup-tip .mp-icon { width: 12px; height: 12px; color: #E7A85E; }
.lineup-card .primary-btn { flex: 0 0 auto; height: 48px; font-size: 16px; }
.primary-btn:disabled { filter: grayscale(.7) brightness(.82); opacity: .55; transform: none; box-shadow: 0 3px 0 #A83E08, inset 0 1px 0 rgba(255, 255, 255, .4); }

/* ---------------- 植物图鉴 ---------------- */
.codex-overlay {
  z-index: 57;
  align-items: stretch;
  padding: calc(var(--safe-t) + 12px) 14px calc(var(--safe-b) + 12px);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 177, 85, .16), transparent 58%),
    linear-gradient(180deg, rgba(10, 20, 6, .86), rgba(7, 14, 4, .95));
}
.codex-panel {
  width: min(100%, 470px);
  max-height: 100%;
  margin: auto;
  padding: 14px;
  border: 2px solid #D2964E;
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 183, 92, .12), transparent 58%),
    linear-gradient(180deg, #392816 0%, #22170C 70%, #170F07 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 227, 176, .26);
  color: #FFF2D7;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: pop .3s cubic-bezier(.2, .9, .25, 1.15);
}
.codex-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 210, 145, .18);
}
.codex-head .icon-btn { width: 36px; height: 36px; flex: 0 0 36px; color: #FFE5BB; background: rgba(255, 233, 190, .1); border-color: rgba(255, 214, 154, .32); }
.codex-head-copy { flex: 1 1 auto; min-width: 0; }
.codex-head h2 { margin: 0; color: #FFE2A8; font-size: 20px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; }
.codex-head p { margin: 2px 0 0; color: rgba(255, 227, 187, .7); font-size: 10px; font-weight: 700; }
.codex-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FFB451, #F06A16);
  box-shadow: 0 4px 10px rgba(120, 45, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.codex-badge .mp-icon { width: 20px; height: 20px; color: #fff; }
.codex-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 11px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.codex-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 2px solid rgba(185, 122, 56, .75);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 252, 235, .96), rgba(240, 222, 187, .95));
  box-shadow: inset 0 1px 0 #fff;
  color: #45280F;
}
.codex-card.collected { border-color: #E3A044; box-shadow: 0 0 0 1px rgba(255, 168, 76, .35), inset 0 1px 0 #fff; }
.codex-thumb-wrap {
  width: 66px;
  height: 56px;
  flex: 0 0 66px;
  border-radius: 11px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #E8F5C8, #BFD89A);
  border: 1px solid rgba(133, 87, 36, .28);
  display: grid;
  place-items: center;
}
.codex-thumb { width: 62px; height: 50px; display: block; }
.codex-card:not(.collected) .codex-thumb { filter: grayscale(1) brightness(.58); opacity: .8; }
.codex-body { flex: 1 1 auto; min-width: 0; }
.codex-row { display: flex; align-items: center; gap: 6px; }
.codex-row b { font-size: 13px; font-weight: 900; color: #4A2A10; }
.codex-state {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(88, 126, 48, .14);
  color: #64842F;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .02em;
}
.codex-card:not(.collected) .codex-state { background: rgba(120, 100, 76, .12); color: #8D7A62; }
.codex-role { margin: 3px 0 0; color: #A36424; font-size: 9px; font-weight: 800; }
.codex-desc { margin: 3px 0 0; color: #7E5E3C; font-size: 10px; line-height: 1.35; font-weight: 600; }
.codex-card:not(.collected) .codex-desc { color: #9A8B75; }
.codex-cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: #8A5A26;
  font-size: 9px;
  font-weight: 800;
}
.codex-cost::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFACB, #FFD23F 55%, #FF9A17);
  box-shadow: 0 0 4px rgba(255, 190, 40, .7);
}

/* ---------------- 广告入口与广告弹层 ---------------- */
.sun-ad-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 30px;
  padding: 0 7px 0 6px;
  border: 1.5px solid #FFE0A6;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF8A3D 0%, #E95014 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(110, 35, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .1s ease;
}
.sun-ad-badge .mp-icon { width: 12px; height: 12px; flex: 0 0 auto; }
.sun-ad-badge:active { transform: scale(.94); }
.sun-ad-badge.off { filter: grayscale(1); opacity: .55; }
.sun-ad-badge.is-hidden { display: none !important; }

.tool-btn .ad-badge {
  position: absolute;
  left: -6px;
  top: -7px;
  min-width: 21px;
  height: 17px;
  padding: 0 3px;
  border-radius: 999px;
  border: 1px solid #FFD9A0;
  background: linear-gradient(180deg, #FF7A45, #E5381B);
  color: #fff;
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .03em;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(80, 20, 0, .4);
  pointer-events: none;
}
.tool-btn .ad-badge.on { display: flex; }
.tool-btn .ad-badge.off { background: #8A7259; opacity: .55; }

.ad-offer-overlay { z-index: 60; }
.ad-play-overlay {
  z-index: 70;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 170, 80, .12), transparent 58%),
    rgba(10, 18, 6, .74);
}
.ad-card { width: min(100%, 360px); }
.ad-card .modal-icon { background: linear-gradient(180deg, #FFB451, #F06A16); }
.ad-reward-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 2px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px dashed #E2A052;
  background: linear-gradient(180deg, #FFF8E4, #FFEFC8);
  color: #B24E0C;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}
.ad-reward-box .mp-icon { width: 18px; height: 18px; color: #E86A18; flex: 0 0 auto; }
.ad-card .ad-left {
  margin: 9px auto 13px;
  color: #9A7446;
  font-size: 11px;
  font-weight: 700;
}
.ad-play-card {
  width: min(100%, 360px);
  padding: 15px 15px 13px;
  border-color: #E0A455;
}
.ad-play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ad-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  background: #4A2A10;
  color: #FFD79A;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.ad-counter {
  color: #B24E0C;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.ad-video {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px 14px 14px;
  text-align: center;
  color: #FFF3D8;
  background: radial-gradient(120% 100% at 50% 0%, #3E5B2A, #18260F 72%);
  border: 1px solid rgba(255, 210, 120, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ad-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 46%, transparent 62%);
  transform: translateX(-100%);
  animation: adShine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes adShine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
.ad-video-art {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FFC15A, #F06A16);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.ad-video-art .mp-icon { width: 32px; height: 32px; color: #fff; }
.ad-video b { display: block; font-size: 16px; font-weight: 900; color: #FFF6E2; }
.ad-video small { display: block; margin-top: 3px; font-size: 10px; color: rgba(255, 238, 205, .7); font-weight: 600; }
.ad-progress {
  height: 6px;
  width: 88%;
  margin: 13px auto 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}
.ad-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFD15A, #FF8A3D);
  box-shadow: 0 0 8px rgba(255, 180, 60, .7);
  transition: width .1s linear;
}
.ad-play-tip { margin: 10px 0 0; color: #9A7446; font-size: 10px; font-weight: 600; text-align: center; }
.ad-video.loading .ad-progress { visibility: hidden; }
.ad-video.loading .ad-video-art .mp-icon { animation: adPulse 1.1s ease-in-out infinite; }
@keyframes adPulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.12); opacity: 1; }
}

@media (max-width: 360px) {
  .hud { padding-left: 8px; padding-right: 8px; gap: 5px; }
  .sun-ad-badge { font-size: 8px; padding: 0 5px 0 4px; gap: 1px; }
  .sun-ad-badge .mp-icon { width: 10px; height: 10px; }
  .wave-total { display: none; }
  .ad-play-card { padding-left: 12px; padding-right: 12px; }
  .ad-video { padding-left: 10px; padding-right: 10px; }
  .sun-chip { padding-right: 9px; gap: 4px; }
  .sun-num { font-size: 15px; min-width: 24px; }
  .life-chip { padding: 0 7px; font-size: 13px; }
  .icon-btn { width: 35px; height: 35px; }
  .wave-chip { padding-left: 7px; padding-right: 7px; }
  .seed-card { height: 68px; }
  .seed-card .thumb { height: 35px; flex-basis: 35px; }
  .seed-card .pname { font-size: 8px; }
  .seed-card .pcost { font-size: 10px; }
  .tool-btn { min-width: 46px; font-size: 9px; gap: 2px; padding: 0 4px; }
  .tool-btn .mp-icon { width: 15px; height: 15px; }
  .mini-ad-btn { min-width: 45px; padding: 0 3px; }
  .mini-ad-btn .mp-icon { width: 11px; height: 11px; }
  .mini-ad-btn b, .mini-ad-btn span { font-size: 7px; }
  .next-btn { min-width: 74px; }
  .next-btn .next-main { font-size: 11px; }
  .next-btn .next-sub { font-size: 7px; }
  .game-title { font-size: 36px; }
  .start-progress-row { gap: 5px; }
  .codex-link { height: 25px; padding: 0 7px 0 6px; font-size: 9px; }
  .lineup-list { grid-template-columns: 1fr; }
  .lineup-item { min-height: 66px; padding: 6px; }
  .lineup-item .lineup-thumb { width: 52px; height: 44px; flex-basis: 52px; }
  .lineup-head h2 { font-size: 17px; }
  .lineup-card { padding: 11px; }
  .codex-card { padding: 7px; gap: 7px; }
  .codex-thumb-wrap { width: 58px; height: 50px; flex-basis: 58px; }
  .codex-thumb { width: 56px; height: 46px; }
  .codex-head h2 { font-size: 18px; }
  .codex-panel { padding: 11px; }
}

@media (max-height: 640px) {
  .ad-video { padding-top: 12px; padding-bottom: 10px; }
  .ad-video-art { width: 48px; height: 48px; margin-bottom: 6px; }
  .ad-video-art .mp-icon { width: 26px; height: 26px; }
  .ad-play-card { padding-top: 10px; padding-bottom: 10px; }
  .seed-card { height: 64px; }
  .seed-card .thumb { height: 32px; flex-basis: 32px; }
  .tool-btn { height: 34px; }
  .next-btn { height: 34px; }
  .coach { bottom: calc(var(--safe-b) + 134px); }
  .toast { bottom: calc(var(--safe-b) + 182px); }
  .game-sub { margin-bottom: 10px; }
  .level-banner { padding-top: 3px; padding-bottom: 4px; }
  .start-progress-row { margin-bottom: 8px; }
  .feature-row { margin-bottom: 11px; }
  .lineup-card, .codex-panel { padding: 10px; }
  .lineup-list { padding-top: 8px; padding-bottom: 8px; }
  .lineup-item { min-height: 62px; }
  .lineup-head h2 { font-size: 17px; }
  .codex-card { padding: 7px; }
  .primary-btn { height: 48px; }
  .start-card { padding-bottom: 0; }
  .game-title { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
