@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap');

:root { color-scheme: dark; font-family: Manrope, system-ui, sans-serif; color: #f6f5e9; background: #101922; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; min-width: 320px; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #ffe58e; outline-offset: 4px; }
.map-screen { background: #101922; }
.map-shell { max-width: 1600px; margin: auto; padding: 0 clamp(20px, 5vw, 82px); }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #ffffff1c; }
.header-brands, .hud-brands { display: flex; align-items: center; gap: 8px; }
.header-brands img, .hud-brands img { display: block; object-fit: contain; padding: 5px 8px; border-radius: 7px; background: #f5f0e4; }
.header-brands img { width: 112px; height: 49px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px Unbounded, sans-serif; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #132323; background: #edca71; border-radius: 9px; font: 800 27px Manrope, sans-serif; }
.header-note, .eyebrow { color: #d1aa66; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.header-note { color: #829391; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 610px; gap: 36px; align-items: stretch; padding: 78px 0 76px; }
.hero-copy { position: relative; z-index: 2; align-self: center; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 28px 0 23px; font: 800 clamp(45px, 5.4vw, 87px)/1.07 Unbounded, sans-serif; letter-spacing: -.075em; }
.hero h1 em { color: #f1c86d; font-style: normal; }
.hero-copy > p { max-width: 540px; color: #b7c3be; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 57px; padding: 0 24px; border: 0; border-radius: 10px; background: #ecc66d; color: #1a251f; font-size: 14px; font-weight: 800; box-shadow: 0 6px 0 #a97d3e; transition: transform .15s, box-shadow .15s; }
.primary-button:hover { transform: translateY(3px); box-shadow: 0 3px 0 #a97d3e; }
.primary-button span { font-size: 23px; line-height: 1; }
.hero-progress { display: flex; align-items: center; gap: 12px; max-width: 400px; margin-top: 48px; color: #8ea09a; font-size: 13px; }
.hero-progress strong { color: #f1c86d; font: 700 18px Unbounded, sans-serif; white-space: nowrap; }
.progress-track { display: block; flex: 1; height: 6px; margin-left: 10px; border-radius: 99px; background: #33423f; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: 99px; background: #edca71; }
.hero-art { position: relative; isolation: isolate; align-self: stretch; overflow: hidden; border: 1px solid #53665e; border-radius: 23px; background: radial-gradient(circle at 75% 20%, #546b6a 0, #304a50 28%, #1c343c 70%); box-shadow: inset 0 0 0 8px #15282b, 0 24px 70px #070e13aa; }
.hero-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px); background-size: 24px 24px; }
.hero-moon { position: absolute; top: 50px; right: 70px; width: 120px; height: 120px; border-radius: 50%; background: #f4d688; box-shadow: 0 0 80px #f8da9570, inset -18px -12px 0 #e4b971; }
.hero-hill { position: absolute; left: -12%; width: 130%; border-radius: 50% 50% 0 0; }
.hill-back { height: 200px; bottom: 58px; background: #284d46; transform: rotate(-5deg); }
.hill-front { height: 170px; bottom: -5px; background: #1c3935; transform: rotate(6deg); }
.hero-ground { position: absolute; bottom: 0; width: 100%; height: 42px; background: repeating-linear-gradient(90deg, #285046 0 22px, #32604d 22px 44px); border-top: 9px solid #4b7557; }
.hero-goblin, .hero-ghost, .hero-bat { position: absolute; z-index: 2; image-rendering: pixelated; background-repeat: no-repeat; filter: drop-shadow(0 15px 0 #0c1d1a90); }
.hero-goblin { width: 168px; height: 168px; left: 17%; bottom: 46px; background-image: url('./assets/generated/characters/enemies/goblin.png'); background-size: 400% 100%; }
.hero-ghost { width: 128px; height: 128px; right: 8%; bottom: 120px; background-image: url('./assets/generated/characters/enemies/ghost.png'); background-size: 800% 100%; animation: float 2.5s ease-in-out infinite alternate; }
.hero-bat { width: 70px; height: 70px; left: 23%; top: 95px; background-image: url('./assets/generated/characters/enemies/bat.png'); background-size: 600% 100%; animation: float 2s ease-in-out infinite alternate-reverse; }
.art-spark { position: absolute; z-index: 2; color: #f1d68d; font-size: 34px; }.spark-one { top: 95px; right: 34%; }.spark-two { bottom: 170px; left: 52%; font-size: 18px; }
@keyframes float { to { transform: translateY(-15px); } }
.levels-section { padding: 22px 0 90px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 27px; }
.section-head h2, .legend-section h2 { margin: 12px 0 0; font: 700 clamp(25px, 2.5vw, 38px)/1.25 Unbounded, sans-serif; letter-spacing: -.05em; }
.section-head p { max-width: 300px; margin: 0 0 5px; color: #92a39e; line-height: 1.6; font-size: 13px; }
.level-list { display: grid; gap: 14px; }
.level-card { display: grid; grid-template-columns: 80px 98px 1fr 58px; align-items: center; gap: 24px; min-height: 145px; padding: 20px 24px; border: 1px solid #486054; border-radius: 14px; background: #1e302d; box-shadow: 0 7px 0 #0a1315; }
.level-card.level-ruins { background: #2b302f; border-color: #565c55; }.level-card.level-cave { background: #252c38; border-color: #4b5363; }
.level-card.locked { opacity: .58; }
.level-number { color: #738e7b; font: 700 32px Unbounded, sans-serif; }
.level-icon { width: 82px; height: 82px; display: grid; place-items: center; border: 3px solid #6a8a68; border-radius: 15px; background: #365542; }
.level-ruins .level-icon { background: #52544b; border-color: #99936d; }.level-cave .level-icon { background: #394258; border-color: #7286a0; }
.level-icon img { width: 66px; height: 66px; image-rendering: pixelated; }
.level-top { display: flex; gap: 20px; color: #c5a969; font-weight: 800; letter-spacing: .13em; font-size: 10px; }
.level-status { color: #acd3a2; }.locked .level-status { color: #9da8a0; }
.level-description h3 { margin: 8px 0 5px; font: 700 clamp(18px, 2vw, 27px) Unbounded, sans-serif; letter-spacing: -.04em; }
.level-description p { margin: 0; color: #9daf9f; font-size: 13px; }
.level-action { width: 48px; height: 48px; border: 1px solid #9ab78c; border-radius: 10px; background: #577655; color: #fff9e5; font-size: 27px; }
.level-action:hover:not(:disabled) { background: #719764; }.level-action:disabled { background: #39433f; color: #94a09a; cursor: default; border-color: #58635d; }
.legend-section { padding: 40px 0 100px; border-top: 1px solid #ffffff21; }
.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.legend-grid > div { min-height: 170px; padding: 25px; border: 1px solid #ffffff1c; border-radius: 13px; background: #1b292c; }
.legend-icon { display: flex; align-items: center; justify-content: center; float: left; width: 50px; height: 50px; margin-right: 18px; border-radius: 9px; background: #315146; color: #f1d384; font: 700 25px Unbounded, sans-serif; }
.legend-icon.negative { background: #603e48; color: #f9a99e; font-size: 16px; }
.legend-grid strong { display: block; padding-top: 3px; font: 700 17px Unbounded, sans-serif; }
.legend-grid p { clear: both; padding-top: 14px; margin-bottom: 0; color: #a5b5af; font-size: 13px; line-height: 1.65; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 35px; border-top: 1px solid #ffffff1c; color: #80908e; font-size: 12px; }.site-footer span:first-child { color: #ecd179; font-weight: 800; letter-spacing: .13em; }

.playing { background: #172821; overflow-x: hidden; }
.game-hud { position: fixed; z-index: 20; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 25px; height: 76px; padding: 0 clamp(14px, 3vw, 38px); border: 1px solid #8b9d62; border-radius: 12px; background: #14251fea; box-shadow: 0 10px 28px #07130f7a; backdrop-filter: blur(10px); }
.hud-back { flex: 0 0 auto; padding: 11px 14px; border: 1px solid #6a846c; border-radius: 8px; background: #294236; color: #f4f0d8; font-size: 14px; font-weight: 700; }
.hud-back:hover { background: #385b48; }
.hud-fullscreen { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #7e947e; border-radius: 8px; background: #304b3e; color: #f8eed0; font-size: 27px; line-height: 1; }.hud-fullscreen:hover { background: #416551; }
.hud-brands img { width: 78px; height: 35px; padding: 3px 5px; }
.hud-stage { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }.hud-stage small, .hud-stats small { color: #d7b96b; font-size: 10px; font-weight: 800; letter-spacing: .13em; }.hud-stage strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 clamp(13px, 1.6vw, 18px) Unbounded, sans-serif; }
.hud-stats { display: flex; gap: clamp(15px, 3vw, 42px); }.hud-stats > div { display: flex; flex-direction: column; align-items: end; gap: 2px; }.hud-stats strong { font: 700 23px Unbounded, sans-serif; }.hud-stats strong span { color: #a2b5a5; font-size: 12px; }.hud-stats #score[data-kind=negative] { color: #ff9a8b; }.hud-stats #score[data-kind=positive] { color: #f4d88d; }
.score-pop { animation: score-pop .35s ease-out; }@keyframes score-pop { 50% { transform: scale(1.25); } }
.world { position: relative; width: 100%; min-height: 300vh; overflow: hidden; isolation: isolate; background: #405c3b; }
.world.theme-ruins { background: #5c6259; }.world.theme-cave { background: #555e67; }
#map-canvas, .map-shade, .targets-layer, .covers-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
#map-canvas { image-rendering: pixelated; }.map-shade { z-index: 1; pointer-events: none; background: linear-gradient(#10241c12, #142e2310 33%, #0e211718 75%, #0a171a36); }
.theme-ruins .map-shade { background: #36332116; }.theme-cave .map-shade { background: #18253330; }
.targets-layer { z-index: 3; pointer-events: none; }
.monster { position: absolute; left: 0; top: 0; display: block; width: var(--size); height: var(--size); padding: 0; border: 0; background: transparent; pointer-events: auto; will-change: transform; }
.monster:hover { z-index: 2; }.monster:disabled { cursor: default; }.monster.concealed { visibility: hidden; pointer-events: none; }
.monster-sprite { position: absolute; inset: 0; display: block; width: var(--size); height: var(--size); background-repeat: no-repeat; background-size: var(--sheet-width) var(--size); image-rendering: pixelated; filter: drop-shadow(0 3px 1px #07120ca8); animation: sprite-cycle var(--duration) steps(var(--steps)) var(--iteration) forwards; }
.monster:hover .monster-sprite { filter: drop-shadow(0 3px 1px #07120ca8); }.monster.decoy .monster-sprite { filter: drop-shadow(0 3px 1px #220c10a8); }.monster.struck .monster-sprite { filter: brightness(1.8) drop-shadow(0 0 10px #fff1a0); }
.monster.healed .monster-sprite { filter: brightness(1.5) sepia(1) hue-rotate(60deg) drop-shadow(0 0 8px #96ffbb); }
@keyframes sprite-cycle { to { background-position-x: var(--sheet-shift); } }
.armor-pips { position: absolute; left: 50%; bottom: -7px; display: flex; gap: 3px; transform: translateX(-50%); padding: 3px; background: #1b2829c7; border-radius: 3px; }.armor-pips i { display: block; width: 5px; height: 5px; background: #d8c588; box-shadow: 1px 1px 0 #735f43; }.armor-pips i.spent { background: #53645c; box-shadow: none; }
.covers-layer { z-index: 4; pointer-events: none; }.cover, .decoration { position: absolute; background-repeat: no-repeat; background-position: center bottom; background-size: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 2px #0b180fb8); }.cover { pointer-events: auto; }.decoration { pointer-events: none; }.scene-bush { background-image: url('./assets/cover/bush.svg'); }.scene-barrel { background-image: url('./assets/cover/barrel.svg'); }.scene-tree { background-image: url('./assets/generated/terrain/tree.png'); }.scene-rock { background-image: url('./assets/generated/objects/rock_idle.png'); background-size: 800% 100%; background-position: left bottom; }.scene-chest { background-image: url('./assets/generated/items/misc/chest.png'); background-size: 800% 100%; background-position: left bottom; }.scene-ruins { background-image: url('./assets/generated/buildings/ruins.png'); }.scene-crystal { background-image: url('./assets/generated/buildings/crystal_cave_idle.png'); background-size: 800% 100%; background-position: left bottom; }.scene-table { background-image: url('./assets/decor/table.svg'); }.scene-shelf { background-image: url('./assets/decor/shelf.svg'); }.scene-camp { background-image: url('./assets/decor/camp.svg'); }.scene-altar { background-image: url('./assets/decor/altar.svg'); }.scene-torch { background-image: url('./assets/decor/torch.svg'); }.scene-stump { background-image: url('./assets/decor/stump.svg'); }.scene-mushroom { background-image: url('./assets/decor/mushroom.svg'); }
.magic-drops-layer, .magic-effects-layer, .cast-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.magic-drops-layer { z-index: 5; }.magic-drop { position: absolute; display: grid; place-items: center; width: 39px; height: 39px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #ffe6a3; border-radius: 9px; background: #333d5d; color: #fff5cf; box-shadow: 0 0 0 5px #644a7c80, 0 0 24px #f5dc86a8; pointer-events: auto; animation: magic-bob 1.8s ease-in-out infinite alternate; }.magic-drop span { font-size: 23px; line-height: 1; }@keyframes magic-bob { to { transform: translate(-50%, -62%); } }
.magic-effects-layer { z-index: 6; }.magic-effect { position: absolute; pointer-events: none; image-rendering: pixelated; }.effect-fire { border: 4px solid #ffde74; background: repeating-linear-gradient(90deg, #ff6136cc 0 13px, #ffc044dd 13px 26px); box-shadow: 0 0 18px #f56731; animation: fire-flicker .24s ease-in-out infinite alternate; }@keyframes fire-flicker { to { filter: brightness(1.4); transform: scaleY(1.15); } }.effect-freeze { border: 3px solid #b5f4ff; background: #62c7e055; box-shadow: inset 0 0 23px #c7f5ff99, 0 0 18px #5ddbed8c; }.effect-barrier { border: 4px dashed #e8d28f; background: #d8c17b33; box-shadow: inset 0 0 28px #f5d99388, 0 0 15px #eecb74a8; }.effect-meteor-zone { border: 2px dashed #ffc17caa; background: #dc6d3e27; }.effect-meteor-impact { border: 5px solid #ffe6ae; border-radius: 50%; background: #ff7549bb; box-shadow: 0 0 22px #ffb457; animation: meteor-burst .45s ease-out forwards; }@keyframes meteor-burst { to { transform: scale(1.5); opacity: 0; } }.monster.frozen .monster-sprite { filter: brightness(1.7) sepia(.5) hue-rotate(145deg) drop-shadow(0 0 8px #b5f4ff); animation-play-state: paused; }
.cast-layer { z-index: 7; }.cast-layer.active { pointer-events: auto; cursor: crosshair; touch-action: none; }.cast-preview { display: none; position: absolute; pointer-events: none; border: 3px dashed #e9e4a2; background: #e4e0a133; }.cast-preview.visible { display: block; }.cast-preview.freeze { border-color: #a5edff; background: #65bfe144; }.cast-preview.meteor { border-color: #ffb582; background: #d4623f44; }.cast-preview.barrier { border-color: #e8d28f; background: #dfc98444; }
.magic-bar { position: fixed; z-index: 19; right: 16px; bottom: 14px; width: min(480px, calc(100vw - 32px)); padding: 10px 12px 8px; border: 1px solid #b5a26c; border-radius: 11px; background: #14251fee; box-shadow: 0 8px 26px #0816109c; backdrop-filter: blur(8px); }.magic-title { display: block; margin-bottom: 7px; color: #e5ca83; font-size: 10px; font-weight: 800; letter-spacing: .15em; }.magic-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }.magic-slot { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 39px; padding: 4px; border: 1px solid #889d78; border-radius: 6px; background: #2c483a; color: #f4edcc; }.magic-slot > span { font-size: 19px; }.magic-slot small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }.magic-slot b { color: #f1d785; font-size: 11px; }.magic-slot:disabled { opacity: .42; cursor: default; }.magic-slot.selected { outline: 2px solid #f5dc93; background: #536740; }.magic-bar p { margin: 7px 0 0; color: #b6c5b6; font-size: 10px; line-height: 1.3; }
.spell-intro-card { text-align: center; }.spell-intro-card > p { color: #cbd7c9; line-height: 1.65; }.spell-intro-card .primary-button { margin-top: 12px; }.spell-intro-icon { margin: 15px auto 0; font-size: 54px; }
.victory-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: #071510df; backdrop-filter: blur(8px); }.victory-card { width: min(520px, 100%); padding: clamp(25px, 5vw, 48px); border: 2px solid #d8bd78; border-radius: 18px; background: #20372e; text-align: center; box-shadow: 0 12px 0 #0f201c; }.victory-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 15px; background: #eac66f; color: #1e3229; font-size: 49px; }.victory-card h1 { margin: 14px 0; font: 800 clamp(28px, 4vw, 42px)/1.2 Unbounded, sans-serif; letter-spacing: -.06em; }.victory-card p { color: #b8c8b9; line-height: 1.6; }.victory-score { display: flex; justify-content: space-between; align-items: center; margin: 25px 0; padding: 16px 20px; border: 1px solid #758f6a; border-radius: 9px; background: #172b24; }.victory-score span { color: #d6b66f; font-size: 11px; font-weight: 800; letter-spacing: .16em; }.victory-score strong { color: #f5df9c; font: 700 28px Unbounded, sans-serif; }.victory-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }.secondary-button { min-height: 57px; padding: 0 23px; border: 1px solid #758f74; border-radius: 10px; background: #304c3c; color: #f1eedb; font-weight: 800; }.secondary-button:hover { background: #42664c; }
.intro-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: #071510e8; backdrop-filter: blur(7px); }
.intro-card { width: min(660px, 100%); max-height: min(90vh, 780px); overflow: auto; padding: clamp(22px, 4vw, 38px); border: 2px solid #d8bd78; border-radius: 16px; background: #20372e; box-shadow: 0 12px 0 #0f201c; }
.intro-card h1 { margin: 12px 0 20px; font: 800 clamp(25px, 4vw, 35px)/1.15 Unbounded, sans-serif; letter-spacing: -.05em; }
.intro-list { display: grid; gap: 10px; margin-bottom: 24px; }
.intro-monster { display: flex; align-items: center; gap: 17px; min-height: 86px; padding: 10px 16px; border: 1px solid #6f896e; border-radius: 10px; background: #172b24; }
.intro-sprite { flex: 0 0 64px; width: 64px; height: 64px; background-repeat: no-repeat; background-position: left top; background-size: calc(var(--frames) * 64px) 64px; image-rendering: pixelated; }
.intro-monster strong { display: block; color: #f2dc9b; font: 700 16px Unbounded, sans-serif; }
.intro-monster p { margin: 6px 0 0; color: #c4d1c3; font-size: 13px; line-height: 1.5; }

@media (max-width: 800px) { .site-header { height: 74px; }.header-note { display: none; }.header-brands img { width: 77px; height: 38px; padding: 3px; }.hero { grid-template-columns: 1fr; padding-top: 58px; }.hero-art { min-height: 360px; }.section-head { display: block; }.section-head p { margin-top: 15px; }.legend-grid { grid-template-columns: 1fr; }.legend-grid > div { min-height: 130px; }.level-card { grid-template-columns: 54px 72px 1fr 44px; gap: 11px; padding: 14px; }.level-number { font-size: 20px; }.level-icon { width: 68px; height: 68px; }.level-icon img { width: 55px; height: 55px; }.level-action { width: 42px; height: 42px; }.level-top { display: block; }.level-status { display: block; margin-top: 4px; }.hud-brands img { width: 53px; height: 31px; } }
@media (max-width: 520px) { .map-shell { padding: 0 16px; }.brand { font-size: 13px; }.header-brands { gap: 4px; }.header-brands img { width: 65px; height: 34px; }.hero { padding: 50px 0; }.hero h1 { font-size: clamp(39px, 10.5vw, 55px); }.hero-art { min-height: 320px; }.hero-goblin { width: 120px; height: 120px; }.hero-ghost { width: 100px; height: 100px; }.hero-bat { width: 55px; height: 55px; }.hero-moon { right: 36px; width: 86px; height: 86px; }.level-card { grid-template-columns: 60px 1fr 42px; min-height: 122px; }.level-number { display: none; }.level-icon { width: 60px; height: 60px; }.level-icon img { width: 50px; height: 50px; }.level-description h3 { font-size: 16px; }.level-description p { display: none; }.level-top { font-size: 9px; }.site-footer { flex-direction: column; }.game-hud { top: 8px; left: 8px; right: 8px; height: 62px; gap: 8px; padding: 0 8px; }.hud-back { padding: 8px 10px; }.hud-back span { display: none; }.hud-stage strong { font-size: 11px; }.hud-stage small, .hud-stats small { font-size: 8px; }.hud-stats { gap: 9px; }.hud-stats strong { font-size: 16px; }.hud-stats strong span { font-size: 9px; }.hud-fullscreen { width: 34px; height: 34px; font-size: 20px; }.hud-brands { position: fixed; left: 8px; bottom: 8px; gap: 4px; }.hud-brands img { width: 48px; height: 27px; } }
@media (max-width: 520px) { .magic-bar { left: 8px; right: 8px; bottom: 8px; width: auto; }.magic-slot small { display: none; }.magic-bar p { display: none; }.hud-brands { bottom: 85px; } }
@media (prefers-reduced-motion: reduce) { .hero-ghost, .hero-bat, .monster-sprite { animation: none; } .primary-button { transition: none; } }

/* The title screen is a piece of the game world, not a marketing page. */
.map-screen { min-height: 100vh; background: #111813; background-image: radial-gradient(circle at 50% 0, #25392b 0, transparent 58%); }
.map-screen .map-shell { max-width: 1220px; padding: 0 clamp(16px, 3vw, 42px); }
.map-screen .site-header { height: 92px; border-color: #596445; }
.map-screen .brand { color: #e8d9a9; font-size: 17px; letter-spacing: .04em; text-shadow: 2px 2px #0a100b; }
.map-screen .brand-mark { width: 29px; height: 29px; border-radius: 0; background: #c6a661; color: #1a2117; font-size: 22px; box-shadow: 3px 3px #695b35; }
.map-screen .header-brands { gap: 20px; }
.map-screen .header-brands img { width: 170px; height: 68px; padding: 0; border-radius: 0; background: none; filter: drop-shadow(1px 1px 0 #e8dfbd) drop-shadow(-1px -1px 0 #e8dfbd); }
.map-screen .header-brands img:first-child { width: 142px; height: 79px; }
.title-main { padding-top: 26px; }
.title-heading { text-align: center; }
.title-heading .eyebrow { color: #b9c18d; font-size: 10px; letter-spacing: .26em; }
.title-heading h1 { margin: 4px 0 2px; color: #f2dda2; font: 800 clamp(35px, 5vw, 66px)/1.05 Unbounded, sans-serif; letter-spacing: -.05em; text-transform: uppercase; text-shadow: 4px 4px #493925, 7px 7px #0a130e; }
.title-heading p { margin: 0 0 20px; color: #c6c6a9; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.title-stage { position: relative; height: clamp(330px, 35vw, 440px); overflow: hidden; border: 5px solid #8c8259; outline: 5px solid #1d2b20; background: #385637; box-shadow: 0 10px 0 #0a100c, 0 22px 38px #050a07a8; image-rendering: pixelated; }
.title-stage::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(ellipse at center, transparent 32%, #07110ac4 100%); }
.title-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(9, 1fr); filter: saturate(.72) brightness(.79); }
.title-tile.floor { background: #506d42 url('./assets/generated/terrain/grass.png') center / 32px 32px repeat; }
.title-tile.wall { background: #3a4841 url('./assets/generated/terrain/stone.png') center / 32px 32px repeat; box-shadow: inset 0 0 0 2px #1a2923, inset 0 -7px #111f1a; }
.title-object, .title-enemy { position: absolute; display: block; background-repeat: no-repeat; background-position: left top; image-rendering: pixelated; filter: drop-shadow(5px 8px 0 #09150ca8); }
.title-tree { width: 105px; height: 105px; background-image: url('./assets/generated/terrain/tree.png'); background-size: 100% 100%; }
.title-tree.one { top: 7%; left: 28%; }.title-tree.two { bottom: 4%; right: 11%; }
.title-ruin { top: 10%; right: 15%; width: 96px; height: 96px; background: url('./assets/generated/buildings/ruins.png') left top / 100% 100% no-repeat; }
.title-bush { bottom: 8%; left: 12%; width: 95px; height: 74px; background: url('./assets/cover/bush.svg') center / contain no-repeat; }
.title-enemy { z-index: 2; width: 85px; height: 85px; background-size: 800% 100%; }
.title-slime { top: 24%; left: 13%; background-image: url('./assets/generated/characters/enemies/slime.png'); }
.title-bat { top: 14%; left: 53%; width: 80px; height: 80px; background-image: url('./assets/generated/characters/enemies/bat.png'); background-size: 600% 100%; }
.title-goblin { bottom: 12%; left: 55%; width: 118px; height: 118px; background-image: url('./assets/generated/characters/enemies/goblin.png'); background-size: 400% 100%; }
.title-red { top: 22%; right: 7%; width: 76px; height: 76px; background-image: url('./assets/generated/characters/enemies/slime_red.png'); }
.title-scene-caption { position: absolute; z-index: 6; bottom: 12px; left: 17px; padding: 5px 8px; background: #13251dd9; color: #ecd69c; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.title-console { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 91px; margin: 12px 0 26px; padding: 12px 18px; border: 2px solid #615d42; background: #1b2a20; box-shadow: 0 5px 0 #0a120c; }
.title-console-copy { display: flex; flex-direction: column; gap: 5px; }.title-console-copy strong { color: #f2dda2; font: 700 clamp(14px, 1.6vw, 18px) Unbounded, sans-serif; }.title-console-copy span { color: #aeb89a; font-size: 12px; }
.title-console .primary-button { flex: 0 0 auto; min-height: 54px; border: 2px solid #f5da91; border-radius: 0; background: #e5bd68; box-shadow: 4px 4px #6a4d2b; font: 800 14px Unbounded, sans-serif; }
.title-console .primary-button:hover { box-shadow: 2px 2px #6a4d2b; }
.title-console .primary-button span { font-size: 15px; }
.map-screen .levels-section { padding: 0 0 18px; }
.map-screen .section-head { display: flex; align-items: baseline; justify-content: flex-start; gap: 16px; margin: 0 0 10px; }
.map-screen .section-head h2 { margin: 0; color: #e9ddbd; font: 700 19px Unbounded, sans-serif; }
.map-screen .level-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.map-screen .level-card { grid-template-columns: 33px 46px minmax(0, 1fr) 32px; gap: 6px; min-height: 75px; padding: 8px; border: 2px solid #596349; border-radius: 0; background: #26372a; box-shadow: 0 4px #0d170f; }
.map-screen .level-card.level-ruins { background: #33392f; }.map-screen .level-card.level-cave { background: #303844; }
.map-screen .level-number { color: #d7c78f; font: 700 13px Unbounded, sans-serif; }
.map-screen .level-icon { width: 43px; height: 43px; border: 1px solid #82876c; border-radius: 0; background: #3b5440; }.map-screen .level-icon img { width: 39px; height: 39px; }
.map-screen .level-top { display: flex; flex-direction: column; gap: 2px; font-size: 8px; letter-spacing: .05em; }.map-screen .level-status { margin: 0; }
.map-screen .level-description { min-width: 0; }.map-screen .level-description h3 { overflow: hidden; margin: 3px 0 0; color: #f0e5c5; font: 700 11px Unbounded, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.map-screen .level-action { width: 29px; height: 32px; border-radius: 0; font-size: 13px; }
.title-instructions { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 22px; border-top: 1px solid #5a664a; color: #bac5ac; font-size: 12px; }.title-instructions b { color: #e5bd68; font: 700 11px Unbounded, sans-serif; }
.map-screen .site-footer { padding: 14px 0 22px; border-color: #596445; }

@media (max-width: 800px) { .map-screen .level-list { grid-template-columns: 1fr; }.map-screen .level-card { grid-template-columns: 48px minmax(0, 1fr) 35px; }.map-screen .level-number { display: none; }.title-instructions { flex-wrap: wrap; }.title-stage { height: 350px; } }
@media (max-width: 520px) { .map-screen .site-header { height: 75px; justify-content: center; }.map-screen .brand { display: none; }.map-screen .header-brands { gap: 18px; }.map-screen .header-brands img { width: 145px; height: 53px; }.map-screen .header-brands img:first-child { width: 110px; height: 65px; }.title-heading h1 { font-size: clamp(30px, 8.3vw, 44px); }.title-heading p { font-size: 12px; }.title-stage { height: 310px; }.title-enemy { transform: scale(.75); }.title-goblin { transform: scale(.68); }.title-console { align-items: stretch; flex-direction: column; }.title-console .primary-button { justify-content: center; }.title-instructions { flex-direction: column; gap: 8px; } }

.points-float { position: absolute; z-index: 9; transform: translate(-50%, -80%); pointer-events: none; white-space: nowrap; font: 800 24px Unbounded, sans-serif; text-shadow: 2px 2px 0 #102017, -2px -2px 0 #102017, 0 3px 8px #08140c; animation: points-rise 1.1s ease-out forwards; }
.points-float.positive { color: #ffe28d; }.points-float.negative { color: #ff898c; }
@keyframes points-rise { 0% { opacity: 0; transform: translate(-50%, -45%) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -110%) scale(1.2); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -210%) scale(1); } }
.monster.decoy-death .monster-sprite { filter: saturate(1.8) brightness(1.3) drop-shadow(0 0 10px #ff445b); animation: sprite-cycle var(--duration) steps(var(--steps)) 1 forwards, decoy-vanish var(--duration) ease-in forwards; }
.monster.decoy-death::after { content: ''; position: absolute; inset: 15%; border: 3px solid #ff6979; background: #9b2c5055; box-shadow: 0 0 17px #ff355999; pointer-events: none; animation: decoy-smoke .48s steps(4) forwards; }
@keyframes decoy-vanish { 0% { opacity: 1; transform: scale(1); } 45% { opacity: 1; transform: scale(1.18) rotate(-8deg); } 75% { opacity: .75; transform: scale(.68) rotate(9deg); } 100% { opacity: 0; transform: scale(.12) rotate(-12deg); } }
@keyframes decoy-smoke { to { opacity: 0; transform: scale(2.2) rotate(15deg); } }
.magic-drop.expiring { animation: drop-blink .45s steps(2) infinite; }
@keyframes drop-blink { 50% { opacity: .17; } }
@media (prefers-reduced-motion: reduce) { .points-float { animation-duration: .1s; }.monster.decoy-death .monster-sprite, .monster.decoy-death::after, .magic-drop.expiring { animation: none; } }
