/* screens.css — 战斗外所有屏幕的专属样式（Meta）。全局主题见 style.css，这里只用它的变量并给兜底。 */

:root {
  --s-paper: var(--paper, #efe4cc);
  --s-paper-2: var(--paper-2, #e3d3b0);
  --s-paper-3: var(--paper-3, #d6c29a);
  --s-paper-hi: var(--paper-hi, #f7eedb);
  --s-ink: var(--ink, #3a2a1c);
  --s-ink-soft: var(--ink-2, #6b4e36);
  --s-red: var(--raptor, var(--accent, #c8553d));
  --s-green: var(--armor, #6b8f4e);
  --s-blue: var(--wing, #4f7fa6);
  --s-amber: var(--amber, #d99a2b);
  --s-line: var(--line, 3px);
  --s-radius: var(--radius, 10px);
  --s-serif: var(--serif, "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif);
  --s-display: var(--font-display, var(--s-serif));
  --s-shadow: 4px 4px 0 var(--s-ink);
}

/* ---------- 屏幕外壳 ---------- */
body { margin: 0; }
#app { min-height: 100vh; }
.screen { position: relative; min-height: 100vh; background: var(--s-paper); font-family: var(--s-serif); color: var(--s-ink); }
.screen-enter { animation: scr-in .38s ease-out both; }
@keyframes scr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.paper-bg {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.35), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(120,80,40,.10), transparent 45%),
    var(--s-paper);
}
.screen-body { max-width: 1240px; margin: 0 auto; padding: 18px 28px 40px; }
.scr-h { font-family: var(--s-display); font-size: clamp(26px, 3vw, 38px); text-align: center; margin: 18px 0 6px; letter-spacing: .08em; }
.scr-sub { text-align: center; color: var(--s-ink-soft); margin: 0 0 18px; font-size: 16px; }
.section-title { font-size: 18px; margin: 10px 0; letter-spacing: .06em; border-bottom: 2px dashed var(--s-ink-soft); padding-bottom: 4px; }
.muted { color: var(--s-ink-soft); }
.empty-note { color: var(--s-ink-soft); text-align: center; padding: 20px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.btn-row.center { justify-content: center; }

/* 按钮主题在 style.css，这里只补尺寸 */
.btn.big { font-size: 19px; padding: 12px 28px; }

.crash-panel { max-width: 560px; margin: 12vh auto; padding: 28px; background: var(--s-paper); border: var(--s-line) solid var(--s-ink); border-radius: var(--s-radius); box-shadow: var(--s-shadow); }
.crash-panel pre { white-space: pre-wrap; font-size: 12px; color: var(--s-ink-soft); background: var(--s-paper-2); padding: 8px; }

/* ---------- 通用组件 ---------- */
.toast-wrap { position: fixed; right: 18px; top: 70px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; max-width: min(420px, 90vw); }
.toast {
  font-family: var(--s-serif); padding: 9px 18px; background: var(--s-paper); color: var(--s-ink);
  border: var(--s-line) solid var(--s-ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--s-ink);
  animation: eg-toast-in .25s ease-out both; transition: opacity .4s, transform .4s; font-weight: 700;
}
.toast-wrap .toast { position: static; left: auto; top: auto; transform: none; border-radius: 4px; background: var(--s-ink); color: var(--s-paper); border: 2px solid var(--gold, #d9a441); animation: eg-toast-in .25s ease-out both; }
.toast-wrap .toast.out { opacity: 0; transform: translateY(-8px); }
.toast-wrap .toast-good { border-color: #9cc068; }
.toast-wrap .toast-bad { border-color: #e0785a; background: #5a2418; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes eg-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

.eg-tip {
  position: fixed; z-index: 9500; max-width: 280px; pointer-events: none; opacity: 0; transition: opacity .12s;
  font: 14px/1.5 var(--s-serif); color: #fdf6e6; background: var(--s-ink); padding: 7px 11px; border-radius: 7px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.25);
}
.eg-tip.on { opacity: 1; }
.kw { font-weight: 700; color: var(--s-red); border-bottom: 1.5px dotted currentColor; cursor: help; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 8000; display: flex; align-items: center; justify-content: center;
  background: rgba(40, 28, 18, .55); animation: eg-fade .18s ease-out; padding: 20px;
}
.modal-backdrop.out { opacity: 0; transition: opacity .18s; pointer-events: none; }
@keyframes eg-fade { from { opacity: 0; } }
.modal-backdrop > .modal {
  position: relative; max-width: 620px; width: 100%; max-height: 88vh; overflow: auto;
  background: var(--s-paper); border: var(--s-line) solid var(--s-ink); border-radius: calc(var(--s-radius) + 4px);
  box-shadow: 6px 6px 0 var(--s-ink); padding: 22px 26px; animation: modal-in .22s cubic-bezier(.2,1.4,.5,1) both;
}
.modal-backdrop > .modal.modal-wide { max-width: 1040px; }
@keyframes modal-in { from { transform: scale(.92) translateY(10px); opacity: 0; } }
.modal-title { margin: 0 0 12px; font-family: var(--s-display); font-size: 24px; letter-spacing: .06em; padding-right: 30px; }
.modal-close { position: absolute; top: 10px; right: 12px; border: none; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--s-ink); }
.modal-buttons { justify-content: flex-end; }
.pick-sub { color: var(--s-ink-soft); margin: 0 0 12px; }

.card-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.card-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; align-items: flex-end; }
.card.chosen { transform: translateY(-14px) scale(1.04); outline: 4px solid var(--s-amber); outline-offset: 3px; }
.card.faded { opacity: .3; filter: grayscale(.7); pointer-events: none; transform: scale(.94); transition: all .3s; }

.compare-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.compare-arrow { font-size: 34px; font-weight: 900; display: flex; flex-direction: column; align-items: center; color: var(--s-ink); }
.compare-arrow span { font-size: 13px; letter-spacing: .1em; color: var(--s-ink-soft); }
.compare-row .card-after { filter: drop-shadow(0 0 12px rgba(240,170,40,.7)); }
.compare-row .card:hover, .evo-rewrites .card:hover { transform: none; }

/* 诅咒卡兜底（style.css 未覆盖时） */
.card.lineage-curse, .card.type-curse { background-color: #4a3b3f; color: #efe2d6; border-color: #1f1416; }
.card.lineage-curse .card-text, .card.type-curse .card-text { color: #e8d6cc; }
.card.lineage-curse .kw, .card.type-curse .kw { color: #f0a08a; }

/* ---------- HUD（主题在 style.css，这里只补布局） ---------- */
.hud { position: sticky; top: 0; z-index: 50; }
.hud-portrait { width: 50px; height: 40px; flex: none; background: var(--s-paper-hi); border-radius: 50%; border: 2px solid var(--s-paper-3); overflow: hidden; }
.hud-portrait svg { width: 100%; height: 100%; }
.hud .bar.hp, .hud .bar.xp { width: 120px; height: 16px; }
.hud .bar .fill { transition: width .8s cubic-bezier(.3,.9,.4,1); }
.hud .bar .txt { font-size: 11px; }
.hud .meat .val { font-size: 1.15em; }
.hud .meat.starving .val { color: #ff8a6a; animation: hud-pulse 1s infinite; }
@keyframes hud-pulse { 50% { opacity: .45; } }
.hud .era .label { letter-spacing: .12em; }
.hud .hud-btn b { margin-left: 3px; }
.hud .hud-dna.has { border-color: var(--gold, #d9a441); color: var(--gold, #d9a441); box-shadow: 0 0 10px rgba(240,170,40,.45); }

/* DNA 小片 */
.dna-list { display: flex; flex-direction: column; gap: 10px; }
.dna-chip {
  display: flex; gap: 10px; align-items: center; text-align: left; width: 100%;
  font-family: var(--s-serif); color: var(--s-ink); padding: 8px 12px;
  background: linear-gradient(135deg, #f8e3b2, #f0cf88); border: 2.5px solid var(--s-ink); border-radius: 10px;
  box-shadow: 2px 2px 0 var(--s-ink);
}
button.dna-chip { cursor: pointer; }
button.dna-chip:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--s-ink), 0 0 14px rgba(240,170,40,.6); }
.dna-chip.selected { outline: 4px solid var(--dna, var(--s-amber)); outline-offset: 2px; box-shadow: 0 0 18px rgba(240,170,40,.9); }
.dna-icon { width: 44px; height: 44px; flex: none; }
.dna-icon svg { width: 100%; height: 100%; }
.dna-info { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; }
.dna-info b { font-size: 15px; }
.dna-prefix { color: var(--dna, var(--s-ink-soft)); font-weight: 700; filter: brightness(.7); }

/* ---------- title ---------- */
.screen.screen-title { overflow-x: hidden; display: flex; flex-direction: column; justify-content: center; }
.screen.screen-title > * { width: 100%; }
.title-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: clamp(18px, 4vh, 48px) 40px 10px;
}
.title-kicker { display: inline-block; font-size: 14px; letter-spacing: .2em; padding: 3px 12px; border: 2px solid var(--s-ink); border-radius: 999px; background: var(--s-paper-2); }
.game-title { margin: 14px 0 10px; line-height: 1; }
.gt-cn { display: block; font-family: var(--s-display); font-size: clamp(64px, 9vw, 128px); font-weight: 900; letter-spacing: .12em; color: var(--s-ink); text-shadow: 5px 5px 0 var(--s-red); }
.gt-en { display: block; margin-top: 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 2vw, 28px); letter-spacing: .55em; color: var(--s-ink-soft); }
.title-pitch { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.75; max-width: 34em; margin: 0 0 6px; }
.title-pitch b { color: var(--s-red); }
.title-btns { margin-top: 20px; }

.title-scene {
  position: relative; aspect-ratio: 5 / 3.4; max-height: 46vh; width: 100%;
  border: var(--s-line) solid var(--s-ink); border-radius: 14px; overflow: hidden;
  background: linear-gradient(#f6d79a, #f2c47c 55%, #e7b06a); box-shadow: var(--s-shadow);
}
.scene-sun { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; left: 62%; top: 10%; background: #fbe9b6; border: var(--s-line) solid var(--s-ink); }
.scene-ground { position: absolute; left: -5%; right: -5%; bottom: 0; height: 26%; background: #9b7a4c; border-top: var(--s-line) solid var(--s-ink); border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.scene-dino { position: absolute; left: 6%; bottom: 14%; width: 58%; animation: idle-bob 3.2s ease-in-out infinite; transform-origin: bottom center; }
.scene-egg { position: absolute; right: 12%; bottom: 14%; width: 17%; animation: egg-wobble 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.scene-meteor { position: absolute; right: 4%; top: 4%; width: 13%; opacity: .9; animation: meteor-drift 9s ease-in-out infinite; }
.scene-dino svg, .scene-egg svg, .scene-meteor svg { width: 100%; height: auto; display: block; }
.scene-caption { position: absolute; left: 10px; bottom: 6px; font-size: 12px; color: #f8ecd0; letter-spacing: .1em; }
@keyframes idle-bob { 50% { transform: translateY(-4px) scaleY(1.015); } }
@keyframes egg-wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 84% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }
@keyframes meteor-drift { 50% { transform: translate(-6px, 4px); } }

.field-guide {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  max-width: 1280px; margin: 0 auto; padding: 18px 40px 8px;
}
.guide-card {
  position: relative; background: #f7eedb; border: 2.5px solid var(--s-ink); border-radius: 10px;
  padding: 26px 12px 12px; box-shadow: 3px 3px 0 var(--s-ink); text-align: center;
  animation: guide-in .5s ease-out both;
}
.guide-card:nth-child(1) { animation-delay: .1s; } .guide-card:nth-child(2) { animation-delay: .18s; }
.guide-card:nth-child(3) { animation-delay: .26s; } .guide-card:nth-child(4) { animation-delay: .34s; }
.guide-card:nth-child(5) { animation-delay: .42s; } .guide-card:nth-child(6) { animation-delay: .5s; }
@keyframes guide-in { from { opacity: 0; transform: translateY(14px); } }
.guide-card:hover { transform: translateY(-3px) rotate(-.6deg); }
.guide-no { position: absolute; top: -1px; left: -1px; font: 700 11px Georgia, serif; letter-spacing: .1em; padding: 3px 8px; background: var(--s-ink); color: var(--s-paper); border-radius: 8px 0 8px 0; }
.guide-art { height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.guide-art svg { max-height: 84px; max-width: 100%; }
.guide-art .mini-art { width: 110px; height: 76px; border: 2px solid var(--s-ink); border-radius: 6px; }
.guide-art .mini-art[viewBox="0 0 80 80"] { border: none; width: 76px; }
.guide-card h3 { margin: 4px 0 4px; font-size: 16px; letter-spacing: .06em; }
.guide-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--s-ink-soft); text-align: left; }
.evo-pair { display: flex; align-items: flex-end; gap: 2px; font-weight: 900; }
.evo-pair svg:first-child { width: 48px; } .evo-pair svg:last-child { width: 100px; }
.amber-glow { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #ffe7a6 0%, #f0b444 55%, transparent 72%); animation: amber-pulse 2.4s ease-in-out infinite; font-size: 34px; }
.amber-glow svg { width: 70%; height: 70%; }
.amber-glow.big { width: 150px; height: 150px; margin: 10px auto; }
@keyframes amber-pulse { 50% { filter: brightness(1.15); box-shadow: 0 0 26px rgba(240,170,40,.6); } }
.mini-card-wrap { transform: scale(.52); transform-origin: center; height: 84px; display: flex; align-items: center; }
.meteor-feather { position: relative; width: 110px; height: 84px; }
.meteor-feather > svg:first-child { width: 78px; height: 78px; }
.meteor-feather .feather-svg { position: absolute; right: 2px; bottom: 0; width: 24px; height: 48px; transform: rotate(18deg); animation: feather-sway 3s ease-in-out infinite; }
@keyframes feather-sway { 50% { transform: rotate(-6deg) translateY(-3px); } }
.title-foot { text-align: center; color: var(--s-ink-soft); font-size: 13px; padding: 10px 0 24px; letter-spacing: .1em; }

.dev-panel {
  position: fixed; right: 14px; bottom: 14px; z-index: 7000; width: 270px; padding: 10px 12px;
  background: rgba(30, 24, 18, .92); color: #f1e6cf; border: 2px dashed #f0c060; border-radius: 10px; font: 13px var(--s-serif);
}
.dev-panel { width: auto; }
.dev-panel.open { width: 270px; }
.dev-panel h4 { margin: 0; color: #f0c060; letter-spacing: .1em; cursor: pointer; user-select: none; }
.dev-panel.open h4 { margin-bottom: 8px; }
.dev-panel:not(.open) .dev-row { display: none; }
.dev-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dev-btn { font: 12px var(--s-serif); padding: 4px 8px; border-radius: 6px; border: 1.5px solid #f0c060; background: transparent; color: #f1e6cf; cursor: pointer; }
.dev-btn:hover, .dev-btn.on { background: #f0c060; color: #2a1e14; }

/* ---------- hatch ---------- */
.screen-hatch { display: flex; flex-direction: column; align-items: center; padding: 20px 20px 40px; }
.egg-row { display: flex; gap: clamp(20px, 5vw, 80px); justify-content: center; margin: 20px 0 10px; }
.egg-pick {
  background: none; border: none; cursor: pointer; font-family: var(--s-serif); color: var(--s-ink);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-radius: 16px;
}
.egg-svg { width: clamp(120px, 14vw, 190px); transition: transform .25s; filter: drop-shadow(4px 6px 0 rgba(58,42,28,.25)); transform-origin: 50% 90%; }
.egg-svg svg { width: 100%; height: auto; display: block; }
.egg-pick:hover .egg-svg, .egg-pick:focus .egg-svg { transform: translateY(-8px); animation: egg-wobble 1.4s ease-in-out infinite; }
.egg-pick:hover .egg-svg { filter: drop-shadow(0 0 18px var(--lin)) drop-shadow(4px 6px 0 rgba(58,42,28,.25)); }
.egg-label { font-size: 20px; font-weight: 900; letter-spacing: .1em; padding: 2px 14px; border-bottom: 4px solid var(--lin); }
.egg-info {
  min-height: 130px; max-width: 620px; width: 100%; text-align: center; padding: 14px 22px;
  background: #f7eedb; border: 2.5px solid var(--s-ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--s-ink);
  border-top: 8px solid var(--lin, var(--s-ink));
}
.egg-info h3 { margin: 4px 0; font-size: 22px; }
.egg-stats { font-size: 14px; color: var(--s-ink-soft); }
.egg-info p { line-height: 1.7; margin: 8px 0 0; }

.screen-hatch.hatching { justify-content: flex-start; }
.hatch-stage { position: relative; width: min(360px, 70vw); height: min(300px, 40vh); display: flex; align-items: flex-end; justify-content: center; margin-top: 3vh; }
.hatch-egg { width: 52%; transform-origin: 50% 92%; }
.hatch-egg svg { width: 100%; height: auto; display: block; }
.hatch-egg.wobble { animation: hatch-wobble .5s ease-in-out 2; }
.hatch-egg.wobble-2 { animation-duration: .35s; animation-iteration-count: 3; }
.hatch-egg.wobble-3 { animation-duration: .22s; animation-iteration-count: 5; }
@keyframes hatch-wobble { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.hatch-egg.burst { animation: egg-burst .38s ease-in forwards; }
@keyframes egg-burst { to { transform: scale(1.25); opacity: 0; filter: brightness(2); } }
.hatch-flash { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255,250,220,.95), rgba(255,220,140,.4) 40%, transparent 65%); animation: flash 1s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } to { opacity: 0; transform: scale(1.2); } }
.hatch-baby { width: 74%; animation: baby-pop .7s cubic-bezier(.2,1.6,.4,1) both; transform-origin: bottom center; z-index: 1; }
.hatch-baby svg { width: 100%; height: auto; display: block; }
@keyframes baby-pop { from { transform: scale(.2) translateY(30px); opacity: 0; } }
.hatch-shells { position: absolute; bottom: -6px; width: 40%; opacity: .55; clip-path: inset(55% 0 0 0); }
.hatch-shells svg { width: 100%; height: auto; display: block; }
.hatch-caption { font-size: 24px; margin: 14px 0 6px; letter-spacing: .1em; min-height: 34px; }
.hatch-caption b { color: var(--lin); font-size: 30px; }
.hatch-panel { max-width: 1100px; width: 100%; text-align: center; animation: scr-in .6s .3s ease-out both; }
.hatch-desc { max-width: 640px; margin: 4px auto 14px; line-height: 1.7; }
.hatch-panel h4 { margin: 6px 0 12px; letter-spacing: .1em; }
.small-grid { gap: 10px; }

/* ---------- map ---------- */
.screen-map { display: flex; flex-direction: column; height: 100vh; min-height: 0; background: var(--s-paper); }
.map-body { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 980px; padding: 10px 20px 14px; }
.map-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.map-era { display: flex; align-items: baseline; gap: 10px; }
.map-era b { font-family: var(--s-display); font-size: 30px; letter-spacing: .12em; }
.map-era-no { font: 700 13px Georgia, serif; letter-spacing: .15em; color: var(--s-ink-soft); }
.map-hunger { font-size: 14px; padding: 4px 12px; border: 2px dashed var(--s-ink-soft); border-radius: 999px; }
.map-hunger.starving { border-color: var(--s-red); color: var(--s-red); }
.map-hunger b { margin-left: 6px; animation: hud-pulse 1s infinite; }
.map-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--s-ink-soft); margin-left: auto; }
.map-legend span { display: inline-flex; align-items: center; gap: 3px; cursor: help; }
.map-legend svg { width: 18px; height: 18px; }
.map-scroll {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth;
  border: var(--s-line) solid var(--s-ink); border-radius: 14px; box-shadow: var(--s-shadow);
  background: var(--s-paper-2);
}
.map-backdrop { position: sticky; top: 0; height: 0; z-index: 0; }
.map-backdrop > svg { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; max-height: 2000px; opacity: .55; pointer-events: none; }
.era-1 .map-scroll { background: #ecd3a6; }
.era-2 .map-scroll { background: #cfdcb4; }
.era-3 .map-scroll { background: #e2bf9c; }
.map-canvas { position: relative; z-index: 1; width: 100%; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-line.walked { stroke-width: 4.5; }
.map-line.open { stroke-width: 3.5; }
.map-node {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0;
  background: none; border: none; box-shadow: none; border-radius: 50%;
}
.map-node:hover, .map-node:active { background: none; box-shadow: none; }
.map-node svg { width: 100%; height: 100%; }
.map-node.available { z-index: 2; }
.map-node.available::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--s-red); opacity: .8; animation: node-ring 1.4s ease-out infinite; pointer-events: none; }
@keyframes node-ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.map-node.boss { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.map-node.locked { cursor: default; }
.node-label { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 15px; letter-spacing: .2em; white-space: nowrap; background: var(--s-ink); color: var(--s-paper); padding: 0 8px; border-radius: 4px; }
.map-start { position: absolute; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--s-ink-soft); letter-spacing: .15em; }

.era-transition {
  position: fixed; inset: 0; z-index: 8500; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(30,22,16,.86), rgba(20,14,10,.97));
  animation: et-bg 2.6s ease-in-out both; transition: opacity .7s;
}
.era-transition.out { opacity: 0; }
.et-inner { text-align: center; color: #f3e6c8; font-family: var(--s-display); }
.et-no { font: 700 16px Georgia, serif; letter-spacing: .6em; opacity: 0; animation: et-up .8s .2s ease-out forwards; }
.et-name { font-size: clamp(64px, 11vw, 150px); font-weight: 900; letter-spacing: .3em; margin: 6px 0 0 .3em; opacity: 0; animation: et-name 1.6s .35s ease-out forwards; }
.et-sub { font-size: 18px; letter-spacing: .3em; opacity: 0; animation: et-up .8s 1.1s ease-out forwards; color: #d9c49a; }
.era-transition.era-1 .et-name { text-shadow: 0 0 40px rgba(232,150,70,.6); }
.era-transition.era-2 .et-name { text-shadow: 0 0 40px rgba(120,180,90,.6); }
.era-transition.era-3 .et-name { text-shadow: 0 0 40px rgba(230,90,50,.7); }
@keyframes et-name { from { opacity: 0; letter-spacing: .8em; filter: blur(8px); } to { opacity: 1; letter-spacing: .3em; filter: none; } }
@keyframes et-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- reward ---------- */
.reward-body { text-align: center; }
.loot-panel { display: inline-flex; flex-direction: column; gap: 10px; min-width: min(520px, 92vw); padding: 16px 22px; margin: 6px auto 18px; background: #f7eedb; border: 2.5px solid var(--s-ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--s-ink); text-align: left; }
.loot-row { display: flex; align-items: center; gap: 12px; font-size: 18px; animation: loot-in .4s ease-out both; }
.loot-row:nth-child(2) { animation-delay: .2s; } .loot-row:nth-child(3) { animation-delay: .4s; }
@keyframes loot-in { from { opacity: 0; transform: translateX(-14px); } }
.loot-ico { width: 30px; text-align: center; font-size: 22px; }
.loot-row .count { margin-left: auto; font-size: 22px; }
.loot-xp .bar.big { flex: 1; height: 18px; }
.loot-xp .bar .fill { transition: width .8s cubic-bezier(.3,.9,.4,1); }
.loot-xp.leveled .bar { box-shadow: 0 0 14px rgba(240,170,40,.9); }
.lvup-badge { font-weight: 900; color: #fff8e6; background: var(--s-red); padding: 2px 10px; border-radius: 6px; animation: baby-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.loot-dna { position: relative; animation: dna-drop .7s cubic-bezier(.2,1.4,.5,1) both; }
@keyframes dna-drop { from { opacity: 0; transform: translateY(-30px) scale(.8); } }
.amber-flash { position: absolute; inset: -12px; border-radius: 16px; background: radial-gradient(circle, rgba(255,215,120,.9), transparent 70%); animation: flash 1.2s .6s ease-out both; pointer-events: none; }
.loot-era { font-size: 16px; color: var(--s-ink-soft); }
.reward-pick { margin-top: 6px; }
.reward-pick .section-title { display: inline-block; border: none; }

/* ---------- evolve ---------- */
.evolve-layout { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 26px; align-items: start; }
.evolve-preview { position: sticky; top: 80px; text-align: center; padding: 16px; background: radial-gradient(circle at 50% 60%, #fff3d4, #ecd8ae); border: var(--s-line) solid var(--s-ink); border-radius: 14px; box-shadow: var(--s-shadow); }
.evolve-dino { width: 100%; aspect-ratio: 1.2; display: grid; place-items: center; }
.evolve-dino svg { width: 100%; height: 100%; }
.evolve-dino.morph { animation: morph .35s ease-out; }
@keyframes morph { from { transform: scale(.94); filter: brightness(1.4); } }
.evolve-dino.evolve-burst { animation: evo-burst 1.2s ease-out; }
@keyframes evo-burst { 0% { filter: brightness(3) saturate(0); transform: scale(.85); } 40% { filter: brightness(1.8); transform: scale(1.1); } 100% { filter: none; transform: none; } }
.evolve-cap { font-weight: 700; margin-top: 8px; letter-spacing: .08em; }
.evolve-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.evo-card {
  position: relative; cursor: pointer; padding: 18px 18px 14px; background: #f7eedb;
  border: var(--s-line) solid var(--s-ink); border-radius: 14px; box-shadow: var(--s-shadow);
  border-top: 10px solid var(--lin, var(--s-ink)); transition: transform .15s, box-shadow .15s;
}
.evo-card:hover, .evo-card:focus { transform: translateY(-4px); box-shadow: 6px 8px 0 var(--s-ink); outline: none; }
.evo-card.selected { outline: 5px solid var(--s-amber); outline-offset: 3px; }
.evo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.evo-head h3 { margin: 0; font-family: var(--s-display); font-size: 28px; letter-spacing: .1em; }
.evo-hp { font-size: 13px; padding: 2px 8px; border: 2px solid var(--s-ink); border-radius: 999px; white-space: nowrap; }
.evo-desc { font-size: 16px; line-height: 1.65; margin: 10px 0; }
.evo-passive { font-size: 13px; color: var(--s-ink-soft); margin: 0 0 8px; }
.evo-feather { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--s-ink-soft); font-style: italic; opacity: .75; margin: 6px 0; }
.evo-feather svg { width: 16px; height: 32px; animation: feather-sway 4s ease-in-out infinite; }
.evo-card.has-feather::after { content: ''; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; background: radial-gradient(circle at 92% 88%, rgba(255,250,230,.6), transparent 30%); animation: amber-pulse 4s ease-in-out infinite; }
.evo-rewrites { border-top: 2px dashed var(--s-ink-soft); padding-top: 8px; }
.evo-rewrites h4 { margin: 4px 0 8px; font-size: 14px; color: var(--s-ink-soft); }
.evo-rewrites { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.evo-rewrites h4, .evo-rewrites > p { flex-basis: 100%; }
.evo-rewrites .compare-row { gap: 4px; flex-wrap: nowrap; }
.evo-rewrites .card { zoom: .7; margin: 6px; }
.evo-rewrites .compare-arrow { font-size: 22px; }
.evolving .evo-card:not(.selected) { opacity: .25; transition: opacity .4s; }

/* ---------- node screens (nest / amber / camp / event) ---------- */
.node-body { text-align: center; }
.node-scene { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 170px; margin-bottom: 12px; }
.nest-icon { width: 120px; } .nest-dino { width: 200px; animation: idle-bob 3.6s ease-in-out infinite; transform-origin: bottom; }
.nest-icon svg, .nest-dino svg { width: 100%; height: auto; display: block; }
.action-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.action-card {
  width: 220px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; cursor: pointer;
  font-family: var(--s-serif); color: var(--s-ink); background: #f7eedb;
  border: var(--s-line) solid var(--s-ink); border-radius: 14px; box-shadow: var(--s-shadow); transition: transform .15s;
}
.action-card:hover:not(:disabled) { transform: translateY(-5px) rotate(-.8deg); }
.action-card:disabled { opacity: .45; cursor: not-allowed; }
.ac-ico { font-size: 40px; }
.action-card b { font-size: 26px; letter-spacing: .2em; }
.ac-cost { font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--s-paper-2); border: 2px solid var(--s-ink); }
.action-card.poor .ac-cost { color: var(--s-red); }
.ac-text { font-size: 14px; line-height: 1.5; color: var(--s-ink-soft); }
.companion-pick .card-row { gap: 30px; }
.companion-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stage-path { font-size: 13px; color: var(--s-ink-soft); }

.amber-empty { max-width: 560px; margin: 0 auto; line-height: 1.8; }
.amber-layout { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 24px; text-align: left; align-items: start; }
.amber-left { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 6px; }
.amber-bag { display: flex; flex-direction: column; gap: 10px; }
.amber-deck .card-grid { justify-content: flex-start; }
.amber-preview { margin-top: 10px; padding: 14px; min-height: 60px; background: rgba(247,238,219,.96); border: 2.5px solid var(--s-ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--s-ink); }
.amber-preview .btn-row { margin-top: 8px; }
.amber-preview .compare-row { gap: 8px; }
.amber-preview .compare-row .card { zoom: .82; }
.amber-preview.spliced { animation: spliced 1s ease-out; }
@keyframes spliced { 30% { box-shadow: 0 0 40px 10px rgba(240,170,40,.9); background: #fbe2a4; } }

.camp-shelf { margin: 10px 0 20px; }
.shop-cell { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shop-cell.sold .card { opacity: .3; }
.price-tag { font-weight: 900; font-size: 18px; padding: 3px 16px; background: var(--s-paper); border: 2.5px solid var(--s-ink); border-radius: 6px; transform: rotate(-3deg); box-shadow: 2px 2px 0 var(--s-ink); }
.price-tag.poor { color: var(--s-red); }
.camp-remove { display: flex; gap: 12px; align-items: center; justify-content: center; }

.event-page { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 26px; text-align: left; align-items: start; max-width: 1100px; margin: 20px auto 0; }
.event-art { position: relative; aspect-ratio: 4 / 3; border: var(--s-line) solid var(--s-ink); border-radius: 12px; overflow: hidden; box-shadow: var(--s-shadow); background: var(--s-paper-2); }
.event-art > svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-art-icon { position: absolute; right: 10px; bottom: 10px; width: 48px; height: 48px; background: var(--s-paper); border: 2.5px solid var(--s-ink); border-radius: 50%; padding: 6px; }
.event-art-icon svg { width: 100%; height: 100%; }
.event-text h2 { margin: 0 0 10px; font-family: var(--s-display); font-size: 30px; letter-spacing: .08em; }
.event-text > p { font-size: 17px; line-height: 1.85; margin: 0 0 14px; }
.event-choices { display: flex; flex-direction: column; gap: 10px; }
.event-choice {
  text-align: left; cursor: pointer; font-family: var(--s-serif); color: var(--s-ink); padding: 11px 16px;
  background: #f7eedb; border: 2.5px solid var(--s-ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--s-ink);
  display: flex; flex-direction: column; gap: 2px; transition: transform .12s;
}
.event-choice b { font-size: 17px; }
.event-choice span { font-size: 14px; color: var(--s-ink-soft); }
.event-choice:hover:not(:disabled) { transform: translateX(4px); }
.event-choice:disabled { opacity: .4; cursor: default; }
.event-choice.chosen { opacity: 1; background: #f6deb0; }
.event-outcome { margin-top: 14px; }
.event-outcome p { margin: 4px 0; animation: loot-in .35s ease-out both; }
.event-log { font-weight: 700; }

/* ---------- ending ---------- */
.screen-ending { min-height: 100vh; overflow-x: hidden; background: #1d1611; color: #f3e6c8; }
.ending-stage { position: fixed; inset: 0; overflow: hidden; }
.ending-story { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding: 12vh 24px 0; text-align: center; transition: opacity 1s; }
.ending-story.dim .e-line { opacity: .25 !important; }
.e-line { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.8; margin: 0 0 8px; opacity: 0; transform: translateY(8px); transition: opacity 1.4s, transform 1.4s; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.e-line.in { opacity: 1; transform: none; }
.ending-title { font-family: var(--s-display); font-size: clamp(40px, 6vw, 84px); letter-spacing: .14em; margin: 26px 0 10px; opacity: 0; transform: scale(.96); transition: opacity 2s, transform 2.4s; text-shadow: 0 4px 24px rgba(0,0,0,.7); }
.ending-title.in { opacity: 1; transform: none; }
.e-coda, .e-hint { opacity: 0; transition: opacity 2s; font-size: 18px; letter-spacing: .12em; }
.e-coda.in, .e-hint.in { opacity: .9; }
.e-hint { font-style: italic; color: #cbb68e; font-size: 15px; }
.ending-skip { position: fixed; right: 18px; bottom: 16px; z-index: 10; background: none; border: 1.5px solid rgba(243,230,200,.5); color: #f3e6c8; padding: 5px 12px; border-radius: 999px; font: 13px var(--s-serif); cursor: pointer; opacity: .7; }

.ending-results {
  position: relative; z-index: 4; max-width: 1080px; margin: 30px auto 40px; padding: 20px 24px;
  display: grid; grid-template-columns: 260px 1fr; gap: 10px 26px; color: var(--s-ink);
  background: var(--s-paper); border: var(--s-line) solid var(--s-ink); border-radius: 14px; box-shadow: 6px 6px 0 #000;
  opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1s;
}
.ending-results.in { opacity: 1; transform: none; }
.er-portrait { grid-row: span 2; text-align: center; }
.er-dino svg { width: 100%; height: auto; }
.er-name { font-weight: 900; letter-spacing: .08em; }
.er-traits { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.trait { font-size: 12px; padding: 2px 8px; border: 2px solid var(--s-ink); border-radius: 999px; background: var(--s-paper-2); }
.trait.feather { background: #fff8e4; box-shadow: 0 0 8px rgba(240,200,120,.8); }
.er-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.er-stats div { background: #f7eedb; border: 2px solid var(--s-ink); border-radius: 8px; padding: 6px 10px; }
.er-stats dt { font-size: 12px; color: var(--s-ink-soft); }
.er-stats dd { margin: 0; font-size: 20px; font-weight: 900; }
.er-deck h4 { margin: 4px 0 8px; }
.tiny-grid { gap: 6px; justify-content: flex-start; max-height: 300px; overflow-y: auto; padding: 8px 4px; }
.tiny-grid .card { zoom: .72; }
.ending-results > .btn-row { grid-column: 1 / -1; }

/* 统治延续 */
.ending-victory { background: #1b1830; }
.v-sky { position: absolute; inset: 0; background: linear-gradient(#141128, #3a2b52 55%, #8a4a3a); }
.v-meteor { position: absolute; left: 50%; top: 14%; width: 220px; transform: translateX(-50%); animation: v-meteor 1.6s ease-in forwards; z-index: 1; }
.v-meteor svg { width: 100%; height: auto; }
@keyframes v-meteor { 0% { transform: translateX(-50%) scale(.9); } 70% { transform: translateX(-50%) scale(1.08); filter: brightness(1.6); } 100% { transform: translateX(-50%) scale(1.4); opacity: 0; filter: brightness(4); } }
.v-shards { position: absolute; left: 50%; top: calc(14% + 110px); z-index: 1; }
.v-shards i { position: absolute; width: 10px; height: 26px; margin: -13px -5px; background: linear-gradient(#fff2b0, #ff8a3d); border-radius: 50%; opacity: 0; animation: shard 2.4s calc(1.4s + var(--d)) cubic-bezier(.1,.7,.3,1) forwards; transform: rotate(var(--a)); }
@keyframes shard { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-46vh); } }
.v-stars i { position: absolute; top: -5%; left: var(--x); width: 3px; height: 70px; background: linear-gradient(transparent, #ffe6a0); opacity: 0; transform: rotate(18deg); animation: fall var(--t) var(--dl) linear infinite; }
@keyframes fall { 0% { opacity: 0; transform: rotate(18deg) translateY(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: rotate(18deg) translateY(110vh); } }
.v-mountain { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38vh; z-index: 2; }
.v-dino { position: absolute; left: 57.5%; bottom: calc(38vh * .84 - 2px); width: 170px; transform: translateX(-50%); z-index: 2; filter: brightness(.35) sepia(.4); opacity: 0; transition: opacity 2s 1.8s; }
.ending-stage.play .v-dino { opacity: 1; }
.v-dino svg { width: 100%; height: auto; display: block; }

/* 羽毛结局 */
.ending-feather { background: #2a221c; }
.f-sky { position: absolute; inset: 0; background: linear-gradient(#3b302a, #5a4436 60%, #6c4a34); transition: background 4s; }
.f-dust { position: absolute; inset: -10%; background:
  radial-gradient(ellipse at 30% 40%, rgba(120,100,85,.6), transparent 50%),
  radial-gradient(ellipse at 70% 60%, rgba(110,90,75,.55), transparent 55%),
  radial-gradient(ellipse at 50% 20%, rgba(140,120,100,.5), transparent 60%);
  animation: dust-drift 18s ease-in-out infinite alternate; transition: opacity 5s; }
@keyframes dust-drift { to { transform: translate(-3%, 2%) scale(1.06); } }
.f-sun { position: absolute; left: 50%; top: 70%; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%; background: radial-gradient(circle, #fff3c8, #ffcf7a 55%, rgba(255,190,110,0) 72%); opacity: 0; transition: opacity 4s, top 6s ease-out; }
.f-ground { position: absolute; left: 0; bottom: 0; width: 100%; height: 26vh; z-index: 1; }
.f-branch { position: absolute; right: 10%; bottom: 14vh; width: 300px; z-index: 2; }
.f-bird { position: absolute; right: calc(10% + 106px); bottom: calc(14vh + 140px); width: 90px; z-index: 3; opacity: 0; transition: opacity 2s 6s; }
.ending-stage.play .f-bird { opacity: 1; }
.f-bird svg { width: 100%; height: auto; display: block; overflow: visible; }
.bird-wing { transform-origin: 52px 50px; }
.ending-stage.play:not(.flight) .bird-wing { animation: wing-shake .5s 9s ease-in-out 3; }
@keyframes wing-shake { 50% { transform: rotate(-10deg); } }
.ending-stage.flight .f-bird { transition: none; animation: fly-away 7s cubic-bezier(.45,.05,.4,1) forwards; }
.ending-stage.flight .bird-wing { animation: flap .32s ease-in-out infinite; }
.ending-stage.flight .bird-legs { opacity: 0; transition: opacity .4s; }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-.75) translateY(-4px); } }
@keyframes fly-away {
  0% { transform: translate(0, 0) rotate(0); }
  12% { transform: translate(-6vw, -8vh) rotate(-12deg); }
  40% { transform: translate(-28vw, -30vh) rotate(-6deg) scale(.9); }
  70% { transform: translate(-40vw, -52vh) rotate(-14deg) scale(.7); }
  100% { transform: translate(-46vw, -78vh) rotate(-10deg) scale(.45); }
}
.ending-stage.flight .f-dust { opacity: .15; }
.ending-stage.flight .f-sky { background: linear-gradient(#6b8fb3, #e7b78a 62%, #f2cf9a); }
.ending-stage.flight .f-sun { opacity: 1; top: 48%; }
.ending-stage.final .f-bird { animation: none; opacity: 0; }
.ending-stage.final .f-sky { background: linear-gradient(#7aa2c4, #edc28f 62%, #f5d7a3); }
.ending-stage.final .f-sun { opacity: 1; top: 48%; }
.ending-stage.final .f-dust { opacity: .1; }
.f-feathers i { position: absolute; top: -8%; left: var(--x); width: 18px; opacity: 0; z-index: 2; }
.ending-stage.flight .f-feathers i, .ending-stage.final .f-feathers i { animation: feather-fall 9s var(--dl) ease-in-out infinite; }
.f-feathers svg { width: 100%; height: auto; }
@keyframes feather-fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: .9; } 50% { transform: translate(40px, 50vh) rotate(160deg); } 100% { opacity: 0; transform: translate(-20px, 105vh) rotate(320deg); } }
.ending-feather .ending-title { color: #fff6dc; white-space: nowrap; font-size: clamp(26px, 5.2vw, 76px); letter-spacing: .1em; }
.ending-feather .ending-story { padding-top: 9vh; }

/* 灭绝 / 倒下：化石剖面 */
.ending-extinct, .ending-dead { background: #2b231d; }
.strata { position: absolute; inset: 0; display: flex; flex-direction: column; }
.stratum { flex: 1; border-bottom: 3px solid rgba(0,0,0,.25); }
.stratum.s0 { background: #3a3027; flex: 1.4; } .stratum.s1 { background: #4a3c2f; } .stratum.s2 { background: #5c4a38; }
.stratum.s3 { background: #6e5842; flex: 1.3; } .stratum.s4 { background: #7c644b; } .stratum.s5 { background: #8a7055; } .stratum.s6 { background: #6a5442; }
.strata::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.18) 1.5px, transparent 2px); background-size: 22px 18px; mix-blend-mode: multiply; }
.kpg-line { position: absolute; left: 0; right: 0; top: 56%; height: 6px; background: #1b1411; z-index: 1; }
.kpg-line span { position: absolute; right: 18px; top: 8px; font-size: 12px; letter-spacing: .2em; color: #d8c49f; opacity: .8; }
.fossil { position: absolute; left: 50%; top: 61%; width: min(380px, 50vw); transform: translateX(-50%) rotate(-4deg); z-index: 1; filter: grayscale(1) sepia(.5) brightness(1.55) contrast(.7); opacity: 0; mix-blend-mode: screen; transition: opacity 4s 1s; }
.ending-stage.play .fossil { opacity: .55; }
.fossil svg { width: 100%; height: auto; }
.x-meteor { position: absolute; left: 50%; top: -10%; width: 160px; margin-left: -80px; z-index: 2; animation: x-meteor 2.4s ease-in forwards; }
.x-meteor svg { width: 100%; height: auto; }
@keyframes x-meteor { 0% { transform: translateY(0) scale(.6); } 90% { opacity: 1; } 100% { transform: translateY(60vh) scale(1.6); opacity: 0; filter: brightness(3); } }
.ending-extinct .ending-story, .ending-dead .ending-story { padding-top: 8vh; }

/* ---------- 牌组弹窗 ---------- */
.deck-summary { color: var(--s-ink-soft); margin: 0 0 12px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (min-width: 1700px) {
  .screen-body { max-width: 1520px; }
  .title-hero, .field-guide { max-width: 1560px; }
  .map-body { max-width: 1180px; }
  .guide-card p { font-size: 14px; }
}
@media (max-height: 800px) and (min-width: 900px) {
  .title-hero { padding-top: 14px; }
  .gt-cn { font-size: clamp(56px, 7.4vw, 104px); }
  .title-scene { max-height: 40vh; }
  .guide-art { height: 64px; } .guide-art svg { max-height: 64px; }
  .guide-card { padding-top: 22px; }
  .guide-card p { font-size: 12.5px; }
  .field-guide { padding-top: 12px; }
}
@media (max-width: 1100px) {
  .field-guide { grid-template-columns: repeat(3, 1fr); }
  .evolve-options { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .title-hero { grid-template-columns: 1fr; padding: 16px; }
  .title-scene { max-height: none; }
  .field-guide { grid-template-columns: repeat(2, 1fr); padding: 12px 16px; }
  .screen-body { padding: 12px 12px 30px; }
  .hud { gap: 8px; padding: 6px 10px; font-size: 13px; }
  .hud .bar.hp, .hud .bar.xp { width: 72px; }
  .hud-era, .hud-portrait { display: none; }
  .egg-row { gap: 6px; }
  .evolve-layout, .amber-layout, .event-page, .ending-results { grid-template-columns: 1fr; }
  .evolve-preview { position: static; }
  .er-portrait { grid-row: auto; }
  .er-stats { grid-template-columns: repeat(2, 1fr); }
  .map-legend { display: none; }
  .map-node { width: 44px; height: 44px; }
  .dev-panel { width: auto; left: 10px; }
  .f-branch { right: 0; width: 200px; }
  .f-bird { right: 70px; bottom: calc(14vh + 90px); width: 64px; }
}

/* 化石结局：结果面板让出剖面 */
.ending-extinct .ending-results, .ending-dead .ending-results { margin-top: 38vh; }

/* style.css 给所有 button 加了盖章阴影与悬停位移；这些自定义按钮不需要 */
.egg-pick, .egg-pick:hover, .egg-pick:active,
.modal-close, .modal-close:hover,
.ending-skip, .ending-skip:hover,
.dev-btn, .dev-btn:hover { box-shadow: none; transform: none; letter-spacing: normal; }
.egg-pick:hover, .egg-pick:active, .modal-close:hover { background: none; }
.ending-skip:hover { background: rgba(243,230,200,.12); }
.modal-close { padding: 0 4px; z-index: 2; }
.event-choice, .action-card, .dna-chip { letter-spacing: normal; }
