@font-face { font-family: 'Bungee'; src: url('/fonts/Bungee-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Variable.ttf') format('truetype'); font-display: swap; }
:root { color-scheme: dark; --pink: #d636aa; --purple: #6f0df8; --blue: #00acfe; --white: #fefefe; --ink: #070313; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #070313; font-family: Inter, Arial, sans-serif; color: white; }
button { font: inherit; }
.app-shell { position: relative; width: min(100%, 620px); min-height: 100vh; margin: auto; overflow: hidden; background: #140024; box-shadow: 0 0 36px #000; }
.app-shell::before { content: ''; position: absolute; z-index: 0; top: 248px; right: -18px; bottom: -20px; left: -18px; pointer-events: none; background: url('/assets/background.png') center / 100% 100% no-repeat; }
.hero { position: relative; z-index: 1; min-height: 286px; padding: 22px 26px 28px; background: #070313 center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('/assets/img_header_epic_player.png') center / cover no-repeat; opacity: .8; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, #140024 100%); }
.brand, .menu-button, .hero-content { position: relative; z-index: 1; }
.brand { width: 48px; height: auto; }
.menu-button { position: absolute; right: 25px; top: 25px; display: grid; gap: 6px; width: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; height: 6px; border-radius: 8px; background: white; box-shadow: 0 0 5px #9e87ff; }
.hero-content { margin-top: 37px; text-align: center; }
.eyebrow { display: none; }
h1 { margin: 0; overflow-wrap: anywhere; font-family: Bungee, sans-serif; font-size: clamp(1.1rem, 5.8vw, 2.5rem); letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; text-shadow: 0 2px 0 #2b1457; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; font-size: 1.06rem; }
.countdown img { width: 32px; height: 32px; }
.progress-card { position: relative; z-index: 2; margin: -21px 20px 27px; padding: 24px 28px 32px; border-radius: 30px; background: linear-gradient(115deg, #5d109b, #3c087f); box-shadow: 0 5px 10px #0009; }
.progress-summary { display: flex; justify-content: space-between; gap: 14px; font-size: clamp(.77rem, 2.7vw, 1rem); }
.progress-summary p { display: flex; align-items: center; gap: 5px; margin: 0; white-space: nowrap; }
.progress-summary p:last-child { display: block; text-align: right; }
.progress-summary img { width: 25px; height: 25px; }
.progress-track { height: 24px; margin-top: 20px; overflow: hidden; border-radius: 8px; background: #151515; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ca35b9, #ed36d3); box-shadow: 0 0 13px #ff6feb; transition: width 2s cubic-bezier(.16, 1, .3, 1); }
.battle-pass { position: relative; z-index: 1; padding: 8px 18px 14px; }
.column-titles { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin-bottom: 21px; }
.column-title { width: 100%; padding: 7px 6px; font-size: clamp(.85rem, 4.4vw, 1.35rem); font-weight: 800; text-align: center; background: url('/assets/casilla_mision.png') center / 100% 100% no-repeat; }
.reward-title { background-image: url('/assets/casilla_rescompensa.png'); }
.timeline { position: absolute; z-index: 0; top: -47px; bottom: -68px; left: 50%; width: 14px; overflow: hidden; transform: translateX(-50%); background: linear-gradient(180deg, #073351 0%, #250d52 52%, #461035 100%); }
.timeline::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: var(--progress, 0%); background: linear-gradient(180deg, var(--blue) 0%, var(--purple) 52%, var(--pink) 100%); box-shadow: 0 0 9px color-mix(in srgb, var(--blue) 70%, transparent); transition: height 1.6s cubic-bezier(.16, 1, .3, 1); }
.timeline::before { content: ''; position: absolute; z-index: 1; top: var(--progress, 0%); left: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 999px; background: radial-gradient(circle, var(--white) 0%, color-mix(in srgb, var(--blue) 88%, var(--white)) 28%, transparent 70%); filter: blur(3px); transition: top 1.6s cubic-bezier(.16, 1, .3, 1); }
.levels { position: relative; z-index: 1; display: grid; gap: 21px; }
.level { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 132px; }
.mission-card, .reward-card { position: relative; display: grid; place-items: center; min-height: 128px; overflow: visible; }
.mission-card img, .reward-card > img:first-child { display: block; width: 100%; height: auto; }
.badge { position: relative; display: grid; place-items: center; width: 86px; height: 86px; }
.badge img { width: 78px; height: auto; filter: drop-shadow(0 2px 4px #000); }
.badge .player-shade { position: absolute; z-index: 1; width: 86%; height: 86%; filter: none; }
.reward-card .lock { position: absolute; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 5px #000); }
.level.unlocked, .level.current { opacity: 0; transform: translateY(12px) scale(.98); animation: level-reveal .65s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay) forwards; }
.level.current .badge img { width: 88px; filter: drop-shadow(0 0 7px #fff) drop-shadow(0 0 18px #12dfff); }
@keyframes level-reveal { to { opacity: 1; transform: translateY(0) scale(1); } }
footer { position: relative; z-index: 2; padding: 13px 0 27px; color: #eee; font-size: 1.2rem; font-weight: 300; text-align: center; }
.side-menu { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(82vw, 360px); padding: 40px 30px; transform: translateX(105%); transition: transform .25s ease; background: linear-gradient(145deg, #160047, #05010e); box-shadow: -10px 0 30px #0008; }
.side-menu.is-open { transform: translateX(0); }
.side-menu img { width: 70px; }.side-menu p { margin: 44px 0 12px; font-family: Bungee, sans-serif; font-size: 1.25rem; line-height: 1.5; }.side-menu span { color: #c7c0dd; line-height: 1.5; }
.close-menu { position: absolute; top: 18px; right: 22px; border: 0; background: transparent; color: white; font-size: 2.3rem; cursor: pointer; }.menu-overlay { position: fixed; z-index: 10; inset: 0; background: #0009; }
@media (max-width: 390px) { .progress-card { margin-left: 12px; margin-right: 12px; padding-left: 17px; padding-right: 17px; }.battle-pass { padding-left: 11px; padding-right: 11px; }.column-titles { gap: 28px; }.level { grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr); gap: 4px; }.badge { width: 70px; height: 70px; }.badge img { width: 66px; }.level.current .badge img { width: 74px; }.mission-card, .reward-card { min-height: 111px; } }
