/* Portada de EBIM Play */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px; padding: clamp(28px, 6vw, 70px) 0 clamp(24px, 4vw, 48px); }
.hero h1 { font-size: clamp(42px, 7.2vw, 84px); font-weight: 900; letter-spacing: -.055em; line-height: .98; margin-top: 14px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), #e8ffb0 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 50ch; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.hero-chips li { background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 700; }

/* Marca animada: el anillo de formas del logo (de círculo a cuadrado) */
.hero-mark { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; animation: spin 50s linear infinite; }
.ring i { --r: 0deg; position: absolute; left: 50%; top: 50%; width: 25%; height: 25%; margin: -12.5%; background: var(--green); transform: rotate(var(--r)) translateY(-135%) rotate(18deg); box-shadow: 0 12px 34px #00000055; animation: breathe 5s ease-in-out infinite; }
.ring i:nth-child(1) { --r: 0deg; border-radius: 50%; background: var(--mint); }
.ring i:nth-child(2) { --r: 60deg; border-radius: 42%; animation-delay: -.8s; }
.ring i:nth-child(3) { --r: 120deg; border-radius: 32%; animation-delay: -1.6s; background: #6fc08f; }
.ring i:nth-child(4) { --r: 180deg; border-radius: 22%; animation-delay: -2.4s; }
.ring i:nth-child(5) { --r: 240deg; border-radius: 13%; animation-delay: -3.2s; background: #4a9a72; }
.ring i:nth-child(6) { --r: 300deg; border-radius: 4%; animation-delay: -4s; background: var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { scale: .86; } }
.ring-core { font-size: clamp(64px, 12vw, 110px); line-height: 1; filter: drop-shadow(0 16px 30px #00000088); animation: bob 4s ease-in-out infinite; }
.orbit { position: absolute; font-size: clamp(26px, 4.4vw, 40px); line-height: 1; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 34%; background: #0c2a28; border: 1px solid #ffffff2b; box-shadow: 0 12px 28px #00000077; animation: bob 5s ease-in-out infinite; }
.o1 { left: 2%; top: 12%; } .o2 { right: 0; top: 6%; animation-delay: -1s; } .o3 { right: -4%; top: 50%; animation-delay: -2s; }
.o4 { right: 12%; bottom: 0; animation-delay: -3s; } .o5 { left: 10%; bottom: 2%; animation-delay: -1.5s; } .o6 { left: -4%; top: 48%; animation-delay: -2.5s; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 26px 0 18px; scroll-margin-top: 90px; }
section[id] { scroll-margin-top: 80px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; letter-spacing: -.045em; }
.section-head p { color: var(--muted); font-size: 15px; }

/* Tarjetas de juegos */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.game-card { --c: var(--mint); --ink: #0b2415; position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; border-radius: 26px; overflow: hidden; background: #0c2a28; border: 1px solid #ffffff17; box-shadow: 0 20px 50px #00000045; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s, border-color .2s; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-6px) rotate(-.4deg); border-color: var(--c); box-shadow: 0 30px 60px #00000066, 0 0 0 1px var(--c), 0 0 50px color-mix(in srgb, var(--c) 25%, transparent); }
.card-art { position: relative; height: 172px; display: grid; place-items: center; place-content: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 95%, #fff), color-mix(in srgb, var(--c) 62%, #055658)); }
.card-art::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; bottom: -70px; border-radius: 30%; background: #ffffff33; transform: rotate(24deg); }
.card-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 20px; }
.tag { justify-self: start; color: var(--c); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.game-card h3 { font-size: 27px; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.game-card p { color: var(--muted); font-size: 15px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.leader { min-width: 0; font-size: 13.5px; font-weight: 700; color: #d5e3df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { flex: none; background: var(--c); color: var(--ink); font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 12px; transition: transform .15s; }
.game-card:hover .go { transform: translateX(3px); }

/* Mini escenas de cada tarjeta */
.art-pulso { grid-template-columns: repeat(3, 40px); gap: 7px; }
.art-pulso i { width: 40px; height: 40px; border-radius: 26%; background: #06343155; }
.art-pulso i.p { background: #f7f6f3; border-radius: 50%; box-shadow: 0 0 0 0 #ffffffaa; animation: ping 1.3s ease-out infinite; }
.art-pulso i.g { background: #ffd76a; transform: rotate(45deg) scale(.8); border-radius: 30%; animation: blink 2.6s steps(1) infinite; }
.art-pulso i.r { background: #ff6f64; border-radius: 12%; animation: blink 2.6s -1.3s steps(1) infinite; }
@keyframes ping { to { box-shadow: 0 0 0 18px #ffffff00; } }
@keyframes blink { 50% { opacity: .15; } }
.art-trivia { grid-template-columns: 62px 62px; gap: 8px; }
.art-trivia b { position: absolute; z-index: 1; font-size: 110px; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 8px 0 #1d114755; animation: bob 3s ease-in-out infinite; }
.art-trivia i { width: 62px; height: 40px; border-radius: 12px; background: #1d11472e; border: 2px solid #ffffff55; }
.art-trivia i:nth-of-type(3) { background: #aeea94; border-color: #fff; }
.art-palabra { grid-auto-flow: column; gap: 6px; }
.art-palabra i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-style: normal; font-weight: 900; font-size: 24px; color: #0b2415; animation: hop 2.4s ease-in-out infinite; }
.art-palabra i:nth-child(2) { animation-delay: .1s; } .art-palabra i:nth-child(3) { animation-delay: .2s; } .art-palabra i:nth-child(4) { animation-delay: .3s; } .art-palabra i:nth-child(5) { animation-delay: .4s; }
.art-palabra .m2 { background: #aeea94; } .art-palabra .m1 { background: #fff; } .art-palabra .m0 { background: #3b2d0e; color: #ffe9a8; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-12px); } }
.art-memoria { grid-auto-flow: column; gap: 9px; }
.art-memoria i { display: grid; place-items: center; width: 52px; height: 68px; border-radius: 12px; background: linear-gradient(140deg, #0a6a66, #055658); border: 2px solid #ffffff66; font-style: normal; font-size: 30px; box-shadow: 0 6px 0 #3a121055; }
.art-memoria i:nth-child(1) { transform: rotate(-8deg); } .art-memoria i:nth-child(3) { transform: rotate(5deg); }
.art-memoria i.open { background: #f7f6f3; animation: hop 2.6s ease-in-out infinite; }
.art-memoria i.open:last-child { animation-delay: .25s; }
.art-teclas { grid-auto-flow: column; gap: 8px; }
.art-teclas i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #f7f6f3; color: #062a3a; font-style: normal; font-weight: 900; font-size: 22px; box-shadow: 0 7px 0 #062a3a66; }
.art-teclas i.hit { animation: press 1.1s ease-in-out infinite; background: #062a3a; color: #7fd6ff; }
@keyframes press { 50% { transform: translateY(6px); box-shadow: 0 1px 0 #062a3a66; } }
.art-historia { background: linear-gradient(180deg, #3b2a6b, #c0527a 62%, #ff9a8b); }
.art-historia b { position: relative; z-index: 1; font-size: 84px; line-height: 1; filter: drop-shadow(0 12px 14px #00000066); animation: launch 3.4s ease-in-out infinite; }
.art-historia i { position: absolute; bottom: -80px; width: 70%; height: 130px; border-radius: 50%; background: #2a1b52; left: -12%; }
.art-historia i:last-of-type { left: 42%; bottom: -92px; background: #1c1140; }
@keyframes launch { 0%, 100% { transform: translate(-8px, 8px); } 50% { transform: translate(8px, -10px); } }

/* Rankings */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 40px; }
.board { padding: 20px; min-width: 0; }
.board h3 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; margin-bottom: 12px; }
.podium:empty { display: none; }
.step { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.step .avatar { width: 54px; height: 54px; font-size: 24px; box-shadow: 0 10px 22px #00000066; }
.step .name { font-weight: 800; font-size: 14.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step .block { width: 100%; display: grid; place-content: center; gap: 2px; border-radius: 16px 16px 6px 6px; font-weight: 900; color: #0a1f1c; transform-origin: bottom; animation: grow .7s cubic-bezier(.3, 1.3, .5, 1) both; }
.step .block span { font-size: 30px; line-height: 1; }
.step .block small { font-size: 13px; font-weight: 800; }
.step.p1 .block { height: 128px; background: linear-gradient(180deg, #ffe89a, var(--gold)); }
.step.p1 .avatar { width: 66px; height: 66px; font-size: 30px; outline: 3px solid var(--gold); }
.step.p2 .block { height: 96px; background: linear-gradient(180deg, #eef3f1, #b9c9c5); animation-delay: .1s; }
.step.p3 .block { height: 74px; background: linear-gradient(180deg, #ffc9a8, #e09a6e); animation-delay: .2s; }
@keyframes grow { from { transform: scaleY(0); } }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.tab { flex: none; border: 1px solid #ffffff22; background: #ffffff0a; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--c, var(--mint)); border-color: transparent; color: #0a1f1c; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-mark { width: min(72%, 300px); order: -1; }
  .boards { grid-template-columns: 1fr; }
}
