* { box-sizing: border-box; }
:root { color-scheme: light; --accent: #FF8A3D; }
html, body { margin: 0; width: 100%; min-height: 100%; background: #203f29; color: #fff0cd; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
body { min-height: 100svh; }
.game { position: relative; width: 100%; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; background: #203f29; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; pointer-events: none; }
.cat-touch { position: absolute; left: 22%; top: 37%; width: 56%; height: 31%; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; border-radius: 48%; }
.cat-touch:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.touch-hint { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: #fff5da; background: #3d2a16bd; border: 1px solid #d9b47883; border-radius: 20px; padding: 7px 15px; }
.pet-feedback { position: absolute; top: 35%; left: 10%; width: 80%; text-align: center; pointer-events: none; font-size: 17px; font-weight: 700; color: #fff5d9; text-shadow: 0 2px 4px #342710; }
.pet-feedback:not(:empty) { padding: 10px; border-radius: 16px; background: #3d2a16bb; }
.growth { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 6%; width: 88%; padding: 16px 18px 12px; border: 2px solid #b78043; border-radius: 15px; background: linear-gradient(110deg, #674021f5, #825430f5 50%, #59371ff5); box-shadow: inset 0 0 0 2px #e9bd713b, 0 4px 12px #182e2350; }
.growth-heading, .growth-details { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.growth-heading { font-size: 16px; }
#percent { color: #ffd193; font-size: 14px; font-variant-numeric: tabular-nums; }
.growth-track { height: 10px; margin: 12px 0 10px; background: #392713; border-radius: 8px; overflow: hidden; }
#growth-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.growth-details { font-size: 12px; color: #f1d9af; }
.growth p { margin: 10px 0 0; font-size: 11px; color: #dcbf94; text-align: center; }
.grown-cat { display: none; position: absolute; inset: 0; background: url('images/gen/gptimg_1795629794_look.png') center / cover no-repeat; clip-path: ellipse(19% 11% at 50% 51%); transform: scale(1.12); transform-origin: 50% 55%; pointer-events: none; }
.game.is-grown .grown-cat { display: block; }
@media (min-width: 600px) { .game { max-width: 500px; margin: 0 auto; } }
@media (max-height: 650px) { .growth { padding: 11px 15px 9px; } .growth p { margin-top: 7px; } }

/* 沿用丛林实景，仅补充打怪与养成操作区。 */
[hidden] { display: none !important; }
button { font: inherit; touch-action: manipulation; }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible { outline: 3px solid #ffe0a2; outline-offset: 3px; }
.game { min-height: 760px; }
.cat-touch { top: 30%; height: 27%; }
.pet-feedback { top: 27%; z-index: 3; }
.growth { bottom: max(14px, env(safe-area-inset-bottom)); padding: 14px 16px 12px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 9px; background: #ff8a3d; color: #301d0e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.life { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; min-height: 26px; }
.feeding { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 14px; }
.feeding button { min-height: 46px; border: 1px solid #ffbd7a; border-radius: 12px; background: var(--accent); color: #321d0c; padding: 10px 17px; font-weight: 700; }
.feeding .mp-icon { vertical-align: middle; }
.guarantee { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #cda05e; border-radius: 10px; color: #ffe1ae; background: #402c19; }
.battle { position: absolute; top: 7%; right: 6%; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.monster, .drop { display: flex; gap: 5px; flex-direction: column; align-items: center; border: 1px solid #d9b478; border-radius: 15px; color: #fff1ce; background: #3d2a16e8; padding: 12px 15px; min-width: 138px; min-height: 48px; cursor: pointer; }
.monster .mp-icon { color: #e1c875; font-size: 36px; }
.monster strong { font-size: 15px; }
.monster span { font-size: 11px; color: #f2d3a5; }
.drop { flex-direction: row; background: #764322f5; font-size: 13px; }
#growth-fill { transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { #growth-fill { transition: none; } }
