/* Original raster scenery beneath the transparent character layer. */
.game-stage{isolation:isolate;background:#cbded1}
.scenery-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;pointer-events:none;user-select:none}
#world{position:relative;background:transparent}
#combat-effects{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
#monster-windup{position:absolute;left:58.4%;top:76.7%;width:13.5%;height:4%;border:2px solid #f4b983;border-radius:50%;background:radial-gradient(ellipse,#ffd99966,transparent 70%);box-shadow:0 0 12px #f8d7a6;opacity:0;pointer-events:none;z-index:1}
.monster-strike{--tone:#8ae8eb;position:absolute;inset:0;animation:strike-life .48s ease-out forwards;pointer-events:none}
.monster-strike[data-kind=bat]{--tone:#c6a7ef}
.monster-strike[data-kind=sprout]{--tone:#a1d57d}
.monster-strike[data-kind=rock]{--tone:#dfbc85}
.monster-strike[data-kind=wisp]{--tone:#ffba75}
.monster-strike.boss{--tone:#a2defa}
.monster-strike .trail{position:absolute;left:36%;top:68%;width:29%;height:1.2%;border-radius:80% 30%;background:linear-gradient(90deg,#fff9e8,var(--tone),transparent);box-shadow:0 0 8px var(--tone);transform-origin:left center;animation:spell-trail .28s ease-out forwards}
.monster-strike[data-kind=bat] .trail{height:3%;transform:rotate(-9deg);clip-path:polygon(0 50%,100% 0,68% 42%,100% 75%)}
.monster-strike[data-kind=rock] .trail{height:2%;top:76%;clip-path:polygon(0 50%,20% 10%,35% 60%,55% 0,72% 70%,100% 40%,75% 100%,30% 85%)}
.monster-strike[data-kind=sprout] .trail{height:2%;border-radius:90% 5% 90% 5%}
.monster-strike[data-kind=wisp] .trail{height:2.5%;background:linear-gradient(90deg,#fffbdc,#ffc15e,#eb836c88,transparent);filter:drop-shadow(0 0 6px #fbd8a1)}
.monster-strike .impact{position:absolute;left:34.8%;top:69%;width:8%;aspect-ratio:1;border:3px solid var(--tone);border-radius:50%;background:radial-gradient(circle,#fffbeacc 0,transparent 36%);box-shadow:0 0 12px var(--tone),inset 0 0 9px #fff8e3;animation:impact-ring .35s ease-out forwards}
.monster-strike.boss .impact{width:11%;border-width:4px}
.monster-strike .spark{position:absolute;left:34.8%;top:69%;width:3.5%;height:.55%;border-radius:50%;background:#fff8dc;box-shadow:0 0 5px var(--tone);transform-origin:left center;animation:impact-spark .32s ease-out forwards}
.monster-strike.miss .impact,.monster-strike.miss .spark{display:none}
.monster-strike.miss .trail{opacity:.3;top:62%}
.zone-card,.battle-log,.loot-toast{z-index:3}
@keyframes strike-life{0%,70%{opacity:1}100%{opacity:0}}
@keyframes spell-trail{from{opacity:.95;scale:1 1}to{opacity:0;scale:.25 .3}}
@keyframes impact-ring{from{opacity:1;transform:translate(-50%,-50%) scale(.2)}to{opacity:0;transform:translate(-50%,-50%) scale(1.2)}}
@keyframes impact-spark{from{opacity:1;transform:rotate(calc(var(--ray)*90deg + 35deg)) translateX(6px) scaleX(.4)}to{opacity:0;transform:rotate(calc(var(--ray)*90deg + 35deg)) translateX(38px) scaleX(.8)}}
@media(prefers-reduced-motion:reduce){.monster-strike{animation-duration:.12s}.monster-strike .trail{display:none}.monster-strike .impact,.monster-strike .spark{animation-duration:.1s}}

/* One compact classic RPG interface; original homepage typography is unchanged. */
.world-brand strong{font:700 21px Georgia,serif;letter-spacing:.5px;font-style:normal}
.hero-status b,.dock b,.stat-head strong,.equip-card strong,.item-card strong,.skill-card strong,.monster-card strong{font-family:system-ui,sans-serif;font-size:11px;letter-spacing:.3px}
.monster-portrait{width:112px;height:112px;image-rendering:pixelated;margin:-12px auto -18px;background-image:url('assets/sprites/monsters-v2.png');background-size:448px 672px;background-position:0 calc(var(--monster-row) * -112px)}
.monster-strike .trail,.monster-strike .spark{box-shadow:none}
.monster-strike .impact{box-shadow:none;border-width:2px}
.panel small,.welcome small{font:11px/1.45 system-ui,sans-serif}
.world-brand small,.zone-card small{font:600 9px/1.4 system-ui,sans-serif;letter-spacing:.7px}
