/* Propuesta visual: aventura naturalista. Capa sobre los estilos estructurales. */
:root {
  --ink: #123f48; --muted: #466970; --paper: #edf9f4; --paper-2: #ffffff;
  --line: #c5e3dc; --river: #008b88; --river-deep: #075457;
  --leaf: #339867; --ochre: #795208; --gold: #e3a316; --sun: #ffd35a;
}
body { background: radial-gradient(ellipse at 50% 20%, #307b79, transparent 65%), #103e49; }
.phone { background: linear-gradient(150deg, #e8faf2, #d8f1ed); border: 0; box-shadow: 0 24px 90px #001f3270; }
.top { flex-wrap: wrap; gap: 8px; padding: 14px 18px 12px; background: #104f54; color: white; }
.brand { font-family: inherit; font-weight: 900; letter-spacing: -.045em; font-size: 1.3rem; }
.brand::before { content: '✦'; color: var(--sun); margin-right: 7px; }
.where { color: #d0eeea; font-size: .65rem; }
.top .me { margin-left: auto; }
h1 { font-size: clamp(1.55rem, 6vw, 1.9rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 16px; }
h2, .card h2, .specimen h2, .sheet h2, .map-card h2, .species-tile h2, .album-h { font-family: inherit; font-weight: 900; letter-spacing: -.025em; }
.content { padding: 18px 18px 24px; min-height: 0; }
.kicker { font-size: .68rem; font-weight: 900; letter-spacing: .11em; margin-bottom: 8px; }
.dock { padding: 12px 18px 20px; background: #effaf5f5; border-top: 1px solid #c5e3dc; flex-shrink: 0; }
.primary { padding: 12px 18px; color: #193c40; background: linear-gradient(#ffe48a, #ffc943); border: 2px solid #fff0b3; box-shadow: 0 5px 0 #b87e17, 0 8px 12px #84611818; font-weight: 900; }
.primary:active { box-shadow: 0 1px 0 #b87e17; }
.secondary, .equal { padding: 10px 14px; background: white; border: 2px solid #afd3ce; box-shadow: 0 4px 0 #95bfb9; color: #14565a; }
.secondary:active, .equal:active { box-shadow: 0 1px 0 #95bfb9; }
.demo-nav { background: #104f54; padding: 0 18px 14px; gap: 8px; }
.demo-nav .secondary { border: 1px solid #4a8988; background: #21656a; color: #e4f9ee; box-shadow: none; border-radius: 12px; font-size: .85rem; }
.demo-nav [aria-current="page"] { background: #d9f6e7; color: #164b50; border-color: #d9f6e7; }
.fab { background: #d9f6e7; color: #164b50; min-height: 40px; box-shadow: 0 3px 0 #08373d; }
.card, .specimen, .sheet, .species-tile { border: 2px solid #d1e8e1; border-radius: 22px; box-shadow: 0 5px 0 #bfdcd480; margin-bottom: 14px; }
.card { padding: 18px; }
.badge { background: #d5f4e5; border: 1px solid #a4d9c2; color: #155f4d; padding: 6px 12px; font-weight: 900; }
.stage { min-height: 0; border: 3px solid white; border-radius: 24px; box-shadow: 0 7px 0 #abd8cd; margin: 14px 0 22px; background: #bfeae3; }
.stage svg { min-height: 210px; }
button.stage.tappable { border: 3px solid white; }
.stage.tappable::after { background: #104f54; color: white; width: max-content; max-width: 90%; text-align: center; padding: 8px 12px; }
.hit { border: 2px solid white; background: #ffffff30; box-shadow: 0 0 0 4px #144b5930; }
.hit.reveal { border-color: #ffd35a; background: #ffd35a60; }
.portrait { background: radial-gradient(ellipse at 50% 30%, #f0fff3, #98ded1); border-radius: 16px; padding: 12px 4px; }
.portrait svg { height: 100px; }
.species-tile { overflow: hidden; padding: 12px 10px; }
.species-tile > svg { height: 96px; background: radial-gradient(ellipse, #c8f1dc, #effbf4); border-radius: 14px; }
.species-tile h2 { font-size: 1.1rem; margin: 10px 0 4px; }
.specimen[aria-pressed="true"], .community[aria-pressed="true"] { border-color: #087d75; background: #e1f9ed; box-shadow: 0 0 0 2px #087d75; }
.choice { border-radius: 12px; min-height: 44px; font-weight: 800; }
.choice[aria-pressed="true"] { background: #d6f4e4; border-color: #177568; }
.swatch { width: 44px; height: 44px; }
.community { text-align: left; padding: 14px 16px; border: 2px solid #c5e3dc; border-radius: 16px; font-weight: 800; cursor: pointer; min-height: 54px; }
.community::before { content: '◇'; color: #096c65; margin-right: 8px; }
.community[aria-pressed="true"]::before { content: '◆'; }
.stamp { border-radius: 12px; padding: 9px 14px; background: #fff0b5; border-color: #e8b644; color: #624207; }
.medal { background: #fff1b9; color: #624207; }
.stars { color: #856008; }
.trait-note, .hint:not(:empty) { background: #fff5cc; border-radius: 14px; padding: 12px; color: #634c16; }
.board { border: 3px solid white; box-shadow: 0 5px 0 #bfdcd4; border-radius: 24px; }
.arena { border: 3px solid white; border-radius: 24px; }
.world { background: #91d59a; }
.pname { background: #fffef5; box-shadow: 0 3px 0 #195d4940; padding: 5px 10px; font-weight: 900; }
.pin { width: 58px; height: 58px; border: 3px solid #fff7d4; background: linear-gradient(#ffe991, #ffc749); box-shadow: 0 5px 0 #b78726; }
.pin::after { content: '⌕'; color: #205653; font-size: 2rem; font-weight: 900; }
.place:last-of-type .pin::after { content: '⚑'; }
.map-card { border: 2px solid white; background: #f4fff7f5; box-shadow: 0 8px 24px #104f5420; padding: 10px 14px; }
.map-card p { margin: 4px 0; font-size: .82rem; }
.map-card .secondary { min-height: 38px; padding: 6px; }
.route-list { bottom: 190px; }
.list-item { border-color: #96c9bc; box-shadow: 0 3px 0 #75b5a4; }
.phone[data-screen="welcome"] { background: #dff4e8; }
.phone[data-screen="welcome"] .content { background: linear-gradient(#dff4e800 0, #dff4e8 350px), url('paisaje.svg') center top / 100% auto no-repeat; }
.phone[data-screen="welcome"] h1 { max-width: 310px; font-size: 2.25rem; color: #123f48; }
.welcome-intro { font-size: .92rem; max-width: 330px; padding: 12px 14px; background: #f4fff3e8; border-radius: 16px; }
.preview { height: 175px; position: relative; }
.preview::before { content: ''; position: absolute; width: 120px; height: 30px; bottom: 5px; background: #15574840; border-radius: 50%; }
.preview svg { position: relative; height: 165px; width: 122px; filter: drop-shadow(0 4px 0 #ffffffa0); }
.customize { background: #fffffff0; border: 2px solid white; border-radius: 20px; padding: 14px; margin-top: 12px; }
.customize summary { font-weight: 900; cursor: pointer; min-height: 30px; }
.customize[open] summary { margin-bottom: 12px; }
.phone[data-screen="album"] .content, .phone[data-screen="puyeCard"] .content, .phone[data-screen="chinookCard"] .content { background: repeating-linear-gradient(transparent 0 27px, #decfaa35 27px 28px), #fff8e8; }
.phone[data-screen="done"] .content { background: linear-gradient(#edf9f4e8, #edf9f4), url('paisaje.svg') center / cover; }
.summary-grid article { border: 2px solid white; border-radius: 20px; box-shadow: 0 5px 0 #c8e1d8; }
button:focus-visible, summary:focus-visible { outline: 3px solid #1163a6; outline-offset: 3px; }
@media (max-height: 650px) { .top { padding: 8px 14px; } .demo-nav { padding-bottom: 8px; } .map-card .demo-note { display: none; } .route-list { bottom: 150px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Mapa: selección de puntos y controles compactos. */
.phone[data-screen="map"] .map-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #104f54; color: white; flex-shrink: 0; }
.map-header h1 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -.02em; }
.map-header p { margin: 0; color: #d0eeea; font-size: .7rem; }
.map-library { border: 1px solid #74aaa2; border-radius: 12px; background: #21656a; color: white; padding: 8px 10px; min-height: 44px; cursor: pointer; font-size: .8rem; }
.map-library strong { margin-left: 5px; color: #ffe28a; }
.map-layout { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.phone[data-screen="map"] .world { min-height: 180px; }
.phone[data-screen="map"] .demo-nav { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); flex-shrink: 0; margin: 0; }
.phone[data-screen="map"] .demo-nav button { min-height: 44px; }
.map-view { position: absolute; z-index: 5; top: 10px; right: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 2px solid white; background: #f5fff5; color: #174e50; font-weight: 800; box-shadow: 0 3px 8px #13473425; cursor: pointer; }
.map-prompt { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); margin: 0; padding: 8px 14px; border-radius: 20px; background: #f5fff5ef; font-size: .8rem; font-weight: 800; text-align: center; pointer-events: none; }
.point-card { flex-shrink: 0; background: #f6fff7; padding: 8px 16px 14px; border-top: 2px solid white; box-shadow: 0 -5px 15px #16494315; }
.point-heading { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.point-heading .kicker { margin: 0; font-size: .64rem; }
.point-close { width: 44px; height: 44px; background: none; border: 0; font-size: 1.65rem; color: #386765; cursor: pointer; flex-shrink: 0; }
.point-card h2 { font-size: 1.1rem; margin: 0 0 10px; }
.point-card .primary { min-height: 44px; padding: 8px 22px; font-size: .9rem; }
.phone[data-screen="map"] .pin { width: 48px; height: 48px; animation: none; }
.phone[data-screen="map"] .pin::after { content: none; }
.pin b { font-size: 1.7rem; color: #205653; }
.phone[data-screen="map"] .discovered .pin { background: #e8fff0; border-color: #ffffff; box-shadow: 0 4px 0 #3b8c69; }
.phone[data-screen="map"] .case .pin { background: #164f60; border-color: #d1f6f0; box-shadow: 0 4px 0 #0c3949; }
.phone[data-screen="map"] .case .pin b { color: #fff0b5; }
.phone[data-screen="map"] .pin[aria-pressed="true"] { outline: 3px solid #14515c; outline-offset: 5px; }
.phone[data-screen="map"] .route-list { inset: 64px 12px 14px; }
.route-list .list-item span, .route-list .list-item small { display: block; margin-top: 3px; }
.route-list .list-item span { color: #326760; font-size: .75rem; font-weight: 800; }
.route-list .list-item small { font-size: .8rem; }
.route-list .list-item[aria-pressed="true"] { border-color: #155c5c; background: #e4f8e9; }
@media (max-height: 650px) { .point-card { padding: 2px 14px 10px; } .point-card h2 { font-size: 1rem; } .phone[data-screen="map"] .map-header { padding: 8px 14px; } }

/* Lugares permanentes; ilustraciones disponibles al llegar. */
.destination-pin { width: 44px; height: 44px; border: 2px solid #ffffffe0; border-radius: 50%; background: #f7fff0ca; color: #26594e; box-shadow: 0 3px 0 #427f5f55; cursor: pointer; }
.destination-pin b { font-size: 1.7rem; line-height: 1; }
.case .destination-pin { background: #164f60; color: #fff0b5; }
.encounter-sprite { position: relative; width: 86px; height: 70px; padding: 4px; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(ellipse at 50% 75%, #fff5a6bf 0 35%, #fffbd64d 36% 55%, transparent 56%); animation: encounter-arrive .4s ease-out; }
.encounter-sprite svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 0 #ffffff) drop-shadow(0 5px 4px #164f5460); }
.encounter-mark { position: absolute; right: 0; top: -2px; min-width: 24px; height: 24px; border-radius: 50%; background: #fff1ac; border: 2px solid white; font-weight: 900; color: #375340; }
.creature-place { z-index: 4; }
.list-creature svg { width: 90px; height: 54px; }
@keyframes encounter-arrive { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .encounter-sprite { animation: none; } }

.capture-water { position: relative; overflow: hidden; border: 3px solid white; border-radius: 24px; background: #83d9d2; box-shadow: 0 5px 0 #91cabe; }
.capture-water > svg { width: 100%; display: block; min-height: 185px; }
.capture-ring { position: absolute; width: 55px; height: 55px; border: 4px solid #ffe26e; box-shadow: 0 0 0 5px #fff9d060; border-radius: 50%; left: 70%; top: 50%; transform: translate(-50%, -50%); }
.aim-track { height: 20px; position: relative; background: #c1ded5; border-radius: 20px; margin: 22px 12px 14px; }
.aim-zone { position: absolute; left: 60%; width: 20%; height: 100%; background: #ffd35a; border: 2px solid #9b7317; border-radius: 10px; }
.aim-pointer { position: absolute; top: -5px; transform: translateX(-50%); font-size: 1.4rem; color: #123f48; }
.aim-label { display: flex; gap: 6px; align-items: center; font-weight: 800; }
.aim-label output { margin-left: auto; }
#capture-aim { width: 100%; min-height: 44px; accent-color: #087d75; cursor: pointer; }
.capture-portrait { background: radial-gradient(ellipse, #fff2a6, #b9e9cf 70%); border-radius: 24px; border: 3px solid white; margin-bottom: 16px; }
.capture-portrait svg { display: block; width: 100%; height: 150px; }
.capture-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.capture-stats div { text-align: center; background: white; padding: 12px 6px; border: 1px solid #c5e3dc; border-radius: 16px; }
.capture-stats span { display: block; font-size: .8rem; }
.capture-stats strong { display: block; font-size: 1.6rem; color: #14565a; }

.decline-encounter { display: inline-block; margin: 8px 0 0 8px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #14565a; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.decline-encounter:hover { background: #dcefe5; }

.album-grid { align-content: start; }
.album-grid .species-tile { margin-bottom: 0; }
.species-tile .collection-power { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #fff1b9; color: #624207; font-size: .8rem; }

/* Un único acceso a navegación; el mapa conserva toda su altura. */
.game-menu { position: relative; z-index: 20; flex-shrink: 0; color: #123f48; }
.game-menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #74aaa2; border-radius: 12px; background: #21656a; color: white; font-size: .85rem; font-weight: 800; cursor: pointer; list-style: none; }
.game-menu > summary::-webkit-details-marker { display: none; }
.game-menu > summary span { font-size: 1.15rem; }
.game-menu[open] > summary { background: #d9f6e7; color: #164b50; }
.game-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(245px, calc(100vw - 32px)); padding: 8px; display: grid; gap: 4px; border: 2px solid white; border-radius: 16px; background: #f4fff7; box-shadow: 0 10px 28px #103e4940; }
.game-menu-panel button { border: 0; border-radius: 10px; background: transparent; padding: 12px; min-height: 48px; color: #14565a; text-align: left; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.game-menu-panel button span { display: block; font-size: .7rem; font-weight: 400; margin-top: 2px; }
.game-menu-panel button:hover, .game-menu-panel [aria-current="page"] { background: #dcefe5; }

.supply-pin { width: 58px; height: 62px; padding: 0; background: transparent; border: 0; cursor: pointer; filter: drop-shadow(0 3px 0 #ffffffb0); }
.supply-pin svg { display: block; width: 100%; height: 100%; }
.supply-hero { display: grid; place-items: center; margin-bottom: 16px; padding: 16px; border-radius: 24px; background: radial-gradient(ellipse, #fff1b9, #d1eee0); }
.supply-hero svg { width: 140px; height: 112px; }
.phone[data-screen="survey"] .choices { flex-wrap: wrap; }
.phone[data-screen="survey"] .choice { flex-basis: 110px; }
