/* Fútbol Arcade — sala de juegos con estética de estadio nocturno */
:root {
  --bg: #07130d;
  --bg2: #0c1f15;
  --pitch: #0f3a24;
  --pitch2: #145232;
  --line: rgba(255, 255, 255, .09);
  --card: #10261a;
  --card2: #163322;
  --text: #eef7f0;
  --muted: #9fb8a8;
  --neon: #c6ff3d;
  --neon-d: #9bd61a;
  --gold: #ffd23f;
  --green: #22c55e;
  --orange: #f59e0b;
  --gray: #4b5a52;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.55;
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(198, 255, 61, .13), transparent 70%),
    repeating-linear-gradient(90deg, var(--bg) 0 90px, #08170f 90px 180px);
  background-color: var(--bg);
  min-height: 100vh;
}
a { color: var(--neon); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(7, 19, 13, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .5px; color: var(--text); text-decoration: none; font-size: 1.15rem; text-transform: uppercase; }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--neon); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--card); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 34px 0 10px; text-align: center; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; font: 700 .78rem var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--neon); border: 1px solid rgba(198, 255, 61, .35); padding: 5px 12px; border-radius: 999px; background: rgba(198, 255, 61, .06); }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.05; margin: 16px 0 10px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; font-style: italic; }
.hero h1 span { color: var(--neon); text-shadow: 0 0 24px rgba(198, 255, 61, .45); }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- game selector ---------- */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 14px; }
@media (max-width: 980px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .games { grid-template-columns: 1fr; } }
.game-card {
  position: relative; text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card2), var(--card)); color: var(--text); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.game-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,.025) 34px 68px); pointer-events: none; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), 0 18px 40px rgba(198, 255, 61, .12); outline: none; }
.game-card .num { font: 800 .75rem var(--mono); color: var(--bg); background: var(--neon); border-radius: 6px; padding: 2px 8px; align-self: flex-start; letter-spacing: 1px; }
.game-card .icon { font-size: 2.2rem; line-height: 1; margin-top: 4px; }
.game-card h2 { margin: 0; font-size: 1.22rem; line-height: 1.2; font-weight: 850; }
.game-card p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.game-card .play { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--neon); text-transform: uppercase; font-size: .85rem; letter-spacing: 1px; }
.fun-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 6px auto 0; max-width: 760px; }
.fun-note strong { color: var(--gold); }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.badges span { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: rgba(255,255,255,.03); }

/* ---------- stage ---------- */
#stage { display: none; padding: 22px 0 6px; }
body.playing #stage { display: block; }
body.playing #selector { display: none; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.stage-title { display: flex; align-items: center; gap: 10px; }
.stage-title h2 { margin: 0; font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 900; text-transform: uppercase; font-style: italic; }
.btn { border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 12px; padding: 10px 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-neon { background: var(--neon); color: #0b1a10; border-color: var(--neon); }
.btn-neon:hover { background: #d6ff6e; border-color: #d6ff6e; }
.btn-gold { background: var(--gold); color: #1b1400; border-color: var(--gold); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: .88rem; border-radius: 10px; }
.levels { display: flex; gap: 6px; background: var(--bg2); padding: 5px; border-radius: 14px; border: 1px solid var(--line); flex-wrap: wrap; }
.levels button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 800; font-size: .88rem; }
.levels button[aria-pressed="true"] { background: var(--neon); color: #0b1a10; }
.levels button[data-l="extremo"][aria-pressed="true"] { background: var(--red); color: #fff; }
.levels button[data-l="dificil"][aria-pressed="true"] { background: var(--orange); color: #1b1000; }
.stage-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.board {
  border-radius: 22px; border: 1px solid rgba(198, 255, 61, .18);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 50%,
    radial-gradient(circle at 50% 50%, transparent 0 70px, rgba(255,255,255,.05) 71px 73px, transparent 74px),
    linear-gradient(180deg, var(--pitch2), var(--pitch));
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(0,0,0,.12);
  padding: clamp(14px, 3vw, 28px); min-height: 420px; position: relative;
}
.scorebar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.chip { font: 700 .82rem var(--mono); background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: 6px 12px; border-radius: 10px; color: var(--text); letter-spacing: .5px; }
.chip b { color: var(--neon); }
.center { text-align: center; }
.muted { color: var(--muted); }
.msg { min-height: 26px; text-align: center; font-weight: 700; margin: 8px 0; }
.msg.ok { color: var(--neon); } .msg.bad { color: #ff8a8a; } .msg.warn { color: var(--gold); }

/* ---------- juego 1: wordle ---------- */
.w-grid { display: grid; gap: 6px; justify-content: center; margin: 6px auto 14px; }
.w-row { display: grid; gap: 6px; grid-auto-flow: column; justify-content: center; }
.w-cell { width: clamp(30px, 8.4vw, 54px); height: clamp(34px, 8.4vw, 54px); border: 2px solid rgba(255,255,255,.22); border-radius: 8px; display: grid; place-items: center; font: 900 clamp(1rem, 4vw, 1.6rem) var(--font); text-transform: uppercase; background: rgba(0,0,0,.25); transition: transform .2s; }
.w-cell.filled { border-color: rgba(255,255,255,.6); transform: scale(1.04); }
.w-cell.g { background: var(--green); border-color: var(--green); color: #04160a; }
.w-cell.o { background: var(--orange); border-color: var(--orange); color: #1d1000; }
.w-cell.x { background: var(--gray); border-color: var(--gray); color: #e5ece8; }
.w-row.flip .w-cell { animation: flip .45s ease both; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.w-row.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
.kb { display: grid; gap: 6px; max-width: 560px; margin: 0 auto; }
.kb-row { display: flex; gap: 5px; justify-content: center; }
.kb button { flex: 1; min-width: 0; height: 50px; border: 0; border-radius: 8px; background: #d8e3dc; color: #0b1a10; font-weight: 800; font-size: .95rem; padding: 0; }
.kb button.wide { flex: 1.6; font-size: .78rem; }
.kb button.g { background: var(--green); color: #04160a; }
.kb button.o { background: var(--orange); color: #1d1000; }
.kb button.x { background: var(--gray); color: #cfd8d3; }
.hints { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 4px 0 12px; }
.hint-pill { background: rgba(255, 210, 63, .12); border: 1px solid rgba(255, 210, 63, .45); color: var(--gold); padding: 5px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; }

/* ---------- result card (shared) ---------- */
.result { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 10px auto; max-width: 680px; }
@media (max-width: 560px) { .result { grid-template-columns: 1fr; text-align: center; } .result .ph { margin: 0 auto; } }
.result .ph { width: 180px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: #0a0f0c; border: 3px solid var(--line); }
.result .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.result.win .ph { border-color: var(--green); } .result.lose .ph { border-color: var(--red); }
.verdict { font-weight: 900; font-size: 1.9rem; font-style: italic; text-transform: uppercase; letter-spacing: -.5px; line-height: 1; }
.win .verdict { color: var(--neon); } .lose .verdict { color: #ff6b6b; }
.result h3 { margin: 8px 0 4px; font-size: 1.45rem; }
.result .meta { color: var(--muted); font-size: .92rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 560px) { .actions { justify-content: center; } }
.silhouette { width: 100%; height: 100%; display: grid; place-items: center; font-size: 4rem; background: linear-gradient(180deg, #1b3326, #0b1710); }

/* ---------- juego 2: foto ---------- */
.f-wrap { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px; align-items: start; max-width: 860px; margin: 0 auto; }
@media (max-width: 680px) { .f-wrap { grid-template-columns: 1fr; } }
.f-photo { aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.25), var(--shadow); background: #0a0f0c; position: relative; max-width: 300px; width: 100%; margin: 0 auto; }
.f-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.f-photo .tag { position: absolute; left: 10px; top: 10px; font: 800 .72rem var(--mono); background: var(--neon); color: #0b1a10; padding: 3px 8px; border-radius: 6px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex: 1 1 200px; min-width: 0; font-size: 1.1rem; padding: 13px 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.25); background: rgba(0,0,0,.4); color: var(--text); }
.field input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(198,255,61,.2); }
.spell { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.spell .big { font-size: 1.6rem; font-weight: 900; }
.accent-keys { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.accent-keys button { border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--text); border-radius: 8px; min-width: 34px; height: 34px; font-weight: 700; }
.progress { height: 8px; background: rgba(0,0,0,.35); border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--gold)); width: 0; transition: width .3s; }

/* ---------- juego 3: contrarreloj ---------- */
.crest { width: 110px; height: 126px; margin: 0 auto 10px; position: relative; }
.crest svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.club-name { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900; text-transform: uppercase; font-style: italic; margin: 0; text-align: center; }
.timer { font: 900 clamp(2.4rem, 9vw, 4rem) var(--mono); text-align: center; color: var(--neon); text-shadow: 0 0 22px rgba(198,255,61,.5); letter-spacing: 2px; }
.timer.low { color: var(--red); text-shadow: 0 0 22px rgba(239,68,68,.6); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.found { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.found span { background: rgba(34,197,94,.18); border: 1px solid rgba(34,197,94,.55); padding: 4px 10px; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.found.missing span { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--muted); font-weight: 600; }
.club-pick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
.club-pick button { border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); padding: 7px 12px; border-radius: 10px; font-weight: 700; font-size: .88rem; }
.club-pick button[aria-pressed="true"] { border-color: var(--neon); color: var(--neon); }
.rank { display: inline-block; font: 900 1.1rem var(--mono); padding: 6px 14px; border-radius: 10px; background: var(--gold); color: #1b1400; letter-spacing: 1px; text-transform: uppercase; }
.goal-box { max-width: 560px; margin: 0 auto; text-align: center; }

/* ---------- juego 4: trayectoria ---------- */
.career { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 12px auto 18px; max-width: 820px; counter-reset: c; }
.career .club { background: #fff; color: #0b1a10; font-weight: 800; padding: 8px 12px; border-radius: 10px; font-size: .95rem; position: relative; counter-increment: c; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.career .club::before { content: counter(c); font: 800 .65rem var(--mono); position: absolute; top: -8px; left: -6px; background: var(--neon); color: #0b1a10; border-radius: 99px; width: 18px; height: 18px; display: grid; place-items: center; }
.career .club.hidden { background: rgba(0,0,0,.4); color: var(--muted); border: 1px dashed rgba(255,255,255,.3); box-shadow: none; }
.career .arrow { color: var(--neon); font-weight: 900; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 640px; margin: 0 auto; }
@media (max-width: 520px) { .options { grid-template-columns: 1fr; } }
.options button { border: 2px solid rgba(255,255,255,.2); background: rgba(0,0,0,.35); color: var(--text); border-radius: 14px; padding: 14px; font-weight: 800; font-size: 1.02rem; }
.options button:hover:not(:disabled) { border-color: var(--neon); }
.options button.right { background: var(--green); border-color: var(--green); color: #04160a; }
.options button.wrong { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- ads ---------- */
.ad-slot { border: 2px dashed rgba(255,255,255,.22); border-radius: 14px; display: grid; place-items: center; color: rgba(255,255,255,.45); font: 800 .85rem var(--mono); letter-spacing: 3px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px); margin: 22px auto; text-align: center; }
.ad-leaderboard { min-height: 100px; max-width: 970px; }
.ad-incontent { min-height: 250px; max-width: 336px; }
.ad-slot small { display: block; font-weight: 500; letter-spacing: 1px; margin-top: 4px; font-size: .7rem; }
.ad-popup { border: 0; padding: 0; background: transparent; max-width: 92vw; }
.ad-popup::backdrop { background: rgba(0,0,0,.7); }
.ad-popup .box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; width: min(380px, 92vw); position: relative; color: var(--text); }
.ad-popup .ad-slot { min-height: 250px; margin: 10px 0; }
.x-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0,0,0,.5); color: var(--text); font-size: 1.1rem; line-height: 1; }
.ad-toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); transform: translateY(140%); transition: transform .4s ease; }
.ad-toast.show { transform: none; }
.ad-toast .ad-slot { min-height: 70px; margin: 6px 0 0; font-size: .72rem; }
.ad-toast .lbl { font-size: .72rem; color: var(--muted); }
@media (max-width: 520px) {
  .ad-toast { width: 170px; right: 10px; bottom: auto; top: 70px; padding: 6px 8px; transform: translateX(130%); }
  .ad-toast .ad-slot { min-height: 46px; }
  .stage-bar { gap: 8px; margin-bottom: 10px; }
  .stage-tools { width: 100%; flex-wrap: nowrap; }
  .levels { flex: 1; flex-wrap: nowrap; padding: 4px; gap: 2px; }
  .levels button { flex: 1; padding: 7px 2px; font-size: .78rem; }
  #rules-btn .t { display: none; }
  #rules-btn { padding: 8px 10px; }
  .board { padding: 12px 8px; border-radius: 16px; }
  .scorebar { margin-bottom: 10px; gap: 6px; }
  .chip { padding: 4px 8px; font-size: .74rem; }
  .w-grid { margin-bottom: 8px; }
  .msg { margin: 4px 0; font-size: .92rem; }
  .kb button { height: 46px; font-size: .9rem; }
  .kb button.wide { font-size: .7rem; }
  .kb-row { gap: 4px; }
  .f-wrap { gap: 12px; }
  .f-photo { max-width: 190px; border-width: 3px; }
  .progress { margin: 4px 0 10px; }
}

/* ---------- rules dialog ---------- */
dialog.rules { border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); width: min(560px, 92vw); padding: 22px 22px 18px; }
dialog.rules::backdrop { background: rgba(0,0,0,.65); }
dialog.rules h3 { margin: 0 0 8px; font-size: 1.35rem; }
dialog.rules ul { padding-left: 20px; margin: 8px 0; }
dialog.rules li { margin: 5px 0; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.legend span { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.legend i { width: 22px; height: 22px; border-radius: 5px; display: inline-block; }

/* ---------- content ---------- */
.content { padding: 10px 0 30px; }
.content section { margin: 34px 0; }
.content h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 12px; font-weight: 900; }
.content h3 { margin: 18px 0 6px; color: var(--neon); }
.content p, .content li { color: #cfe0d5; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; background: var(--neon); color: #0b1a10; margin-bottom: 6px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 8px 0; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 8px 0 2px; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); background: #fff; color: #0b1a10; font-weight: 800; padding: 10px 16px; border-radius: 10px; z-index: 80; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
.noscript { background: var(--gold); color: #1b1400; padding: 10px; text-align: center; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .w-row.flip .w-cell, .w-row.shake, .timer.low { animation: none; } }

/* =========================================================
   DETALLES DE FÚTBOL — ilustraciones
   ========================================================= */
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex: none; }
svg.shirt text { font: 900 30px var(--font); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
svg.shirt text.dark { fill: #0b1a10; stroke: rgba(255,255,255,.4); }
.kicker .ico { width: 1.2em; height: 1.2em; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero: tendedero de camisetas + escena */
.hero { position: relative; padding-top: 118px; padding-bottom: 26px; overflow: hidden; }
.clothesline { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: min(980px, 100%); height: 110px; pointer-events: none; }
.clothesline .rope { position: absolute; top: 6px; left: 0; width: 100%; height: 60px; }
.clothesline .shirts { position: absolute; inset: 0; display: flex; justify-content: space-around; padding: 0 4%; }
.clothesline .shirt { width: 62px; height: 62px; transform-origin: 50% 0; animation: sway 4s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.clothesline .s1 { margin-top: 12px; } .clothesline .s2 { margin-top: 24px; animation-delay: -.6s; } .clothesline .s3 { margin-top: 32px; animation-delay: -1.2s; }
.clothesline .s4 { margin-top: 35px; width: 74px; height: 74px; animation-delay: -1.8s; } .clothesline .s5 { margin-top: 32px; animation-delay: -2.4s; }
.clothesline .s6 { margin-top: 24px; animation-delay: -3s; } .clothesline .s7 { margin-top: 12px; animation-delay: -3.6s; }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.hero-scene { position: absolute; inset: 0; pointer-events: none; }
.hero-scene .pl { color: rgba(198, 255, 61, .9); }
.hs-left { position: absolute; left: 0; bottom: 0; width: 140px; height: 110px; }
.hs-left .pl { width: 92px; height: 92px; position: absolute; left: 0; bottom: 0; }
.hs-left .b-kick { width: 26px; height: 26px; position: absolute; left: 82px; bottom: 30px; animation: shot 2.6s ease-in-out infinite; }
@keyframes shot { 0%, 15% { transform: translate(0,0) rotate(0); } 60% { transform: translate(46px,-46px) rotate(360deg); } 61%, 100% { transform: translate(0,0); opacity: 1; } }
.hs-right { position: absolute; right: 0; bottom: 0; width: 140px; height: 100px; }
.hs-right .goal { width: 136px; height: 95px; position: absolute; right: 0; bottom: 0; }
.hs-right .keeper { width: 76px; height: 76px; position: absolute; right: 30px; bottom: 12px; color: #ffd23f; animation: dive 2.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes dive { 0%, 40% { transform: rotate(0); } 70% { transform: rotate(-14deg) translateX(-8px); } 100% { transform: rotate(0); } }
.hero-scene .float { position: absolute; animation: floaty 5s ease-in-out infinite; opacity: .9; }
.hero-scene .f1 { width: 40px; height: 40px; left: 14%; top: 140px; }
.hero-scene .f2 { width: 26px; height: 26px; right: 17%; top: 150px; animation-delay: -2s; }
.hero-scene .f3 { width: 58px; height: 58px; left: 22%; bottom: 8px; animation-delay: -1s; }
.hero-scene .f4 { width: 46px; height: 46px; right: 24%; bottom: 14px; color: var(--gold); animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(10deg); } }
.hero h1, .hero p, .hero .kicker { position: relative; z-index: 1; }
@media (max-width: 1100px) { .hs-left, .hs-right, .hero-scene .f3, .hero-scene .f4 { display: none; } }
@media (max-width: 600px) {
  .hero { padding-top: 92px; }
  .clothesline { height: 90px; }
  .clothesline .shirt { width: 40px; height: 40px; }
  .clothesline .s4 { width: 48px; height: 48px; }
  .clothesline .s1, .clothesline .s7 { display: none; }
  .hero-scene .f1 { top: auto; bottom: 4px; left: 4%; width: 28px; height: 28px; }
  .hero-scene .f2 { top: auto; bottom: 10px; right: 4%; }
}

/* título "Elige tu juego" */
.pick-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 0; }
.pick-title h2 { margin: 0; font-size: clamp(1.3rem, 3.6vw, 1.8rem); font-weight: 900; text-transform: uppercase; font-style: italic; }
.pick-title .ico { width: 34px; height: 34px; }
.pick-title .ico:last-child { transform: scaleX(-1); }

/* tarjetas de juego con ilustración */
.games { margin-top: 18px; }
.game-card { padding-top: 0; }
.card-art {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 128px; margin: 0 -18px 6px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 2px, transparent 2px) 50% 0 / 50% 100% no-repeat,
    radial-gradient(circle at 50% 50%, transparent 0 28px, rgba(255,255,255,.18) 29px 31px, transparent 32px),
    repeating-linear-gradient(90deg, #17663d 0 26px, #145a36 26px 52px);
  border-bottom: 3px solid rgba(255,255,255,.18); overflow: hidden;
}
.card-art .ball.mini { position: absolute; width: 26px; height: 26px; right: 12px; bottom: 10px; transition: transform .5s; }
.game-card:hover .card-art .ball.mini { transform: translateX(-30px) rotate(-300deg); }
.card-art .shirt { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.card-art .shirt.big { width: 92px; height: 92px; }
.card-art .shirt.mid { width: 74px; height: 74px; }
.card-art .shirt.sm { width: 52px; height: 52px; }
.art-1 .tiles { display: grid; grid-template-columns: repeat(5, 22px); gap: 3px; }
.art-1 .tiles i { font: 900 .78rem var(--font); font-style: normal; height: 24px; display: grid; place-items: center; border-radius: 4px; color: #0b1a10; }
.tiles i.g { background: var(--green); } .tiles i.o { background: var(--orange); } .tiles i.x { background: var(--gray); color: #e5ece8; }
.cromo { position: absolute; width: 70px; height: 92px; border-radius: 8px; background: #fff; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,.35); overflow: hidden; }
.cromo.back { transform: rotate(-10deg) translateX(-30px); background: #e2e8f0; display: grid; place-items: center; }
.cromo.back svg { width: 60px; height: 60px; }
.cromo.front { transform: rotate(7deg) translateX(26px); background: linear-gradient(180deg, #c6ff3d, #7cc21a); }
.cromo.front .sil { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: 50px; height: 56px;
  background: radial-gradient(circle at 50% 30%, #0b1a10 0 13px, transparent 14px), radial-gradient(ellipse at 50% 110%, #0b1a10 0 26px, transparent 27px); }
.cromo.front b { position: absolute; top: 2px; right: 6px; font: 900 1.4rem var(--font); color: #0b1a10; }
.cromo.front em { position: absolute; bottom: 0; left: 0; right: 0; background: #0b1a10; color: #fff; font: 800 .55rem var(--mono); font-style: normal; text-align: center; padding: 2px 0; }
.art-3 .watch { width: 82px; height: 82px; animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { transform: rotate(4deg); } }
.art-4 { gap: 4px; }
.art-4 .arr { color: var(--neon); font-weight: 900; font-size: 1.4rem; }
.art-4 .pl.run { width: 46px; height: 46px; color: #ffd23f; position: absolute; left: 8px; bottom: 6px; }
.game-card .play .ico { transition: transform .4s; }
.game-card:hover .play .ico { transform: translateX(6px) rotate(360deg); }

/* fila de jugadores en acción */
.team-strip { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 3vw, 34px); margin: 26px auto 4px; max-width: 760px; height: 92px; position: relative; border-bottom: 3px solid rgba(255,255,255,.18); }
.team-strip .pl { width: 74px; height: 74px; color: rgba(255,255,255,.85); }
.team-strip .pl:nth-of-type(2) { color: var(--neon); } .team-strip .pl:nth-of-type(4) { color: var(--gold); }
.team-strip .ball { width: 24px; height: 24px; }
.team-strip .b-head { position: relative; top: -58px; margin-left: -34px; animation: bounce 1.2s ease-in-out infinite; }
.team-strip .b-roll { animation: roll 3s linear infinite; }
@keyframes bounce { 50% { transform: translateY(-16px); } }
@keyframes roll { 0% { transform: translateX(-10px) rotate(0); } 100% { transform: translateX(40px) rotate(360deg); } }
.team-strip .goal { width: 110px; height: 78px; }
@media (max-width: 520px) { .team-strip .pl { width: 50px; height: 50px; } .team-strip .goal { width: 70px; height: 50px; } .team-strip { height: 70px; } .team-strip .b-head { top: -40px; margin-left: -24px; } }
.fun-note .ico { width: 1.3em; height: 1.3em; }
.badges span { display: inline-flex; align-items: center; gap: 6px; }

/* álbum de cromos */
.album { margin: 30px 0 6px; }
.album-title { text-align: center; font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 900; margin: 0 0 14px; }
.album-title .ico { width: 1.4em; height: 1.4em; }
.cromos-track { display: flex; gap: 14px; overflow-x: auto; padding: 10px 6px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cromo-card { flex: none; width: 124px; margin: 0; background: linear-gradient(180deg, #fff, #e9f5e9); border-radius: 12px; padding: 6px 6px 0; box-shadow: 0 8px 18px rgba(0,0,0,.35); scroll-snap-align: start; transform: rotate(-2deg); transition: transform .2s; }
.cromo-card:nth-child(even) { transform: rotate(2deg); }
.cromo-card:hover { transform: rotate(0) translateY(-6px) scale(1.04); }
.cromo-card img { width: 112px; height: 140px; object-fit: cover; object-position: 50% 15%; border-radius: 8px; background: #0a0f0c; }
.cromo-card figcaption { text-align: center; color: #0b1a10; font: 900 .78rem var(--font); text-transform: uppercase; padding: 6px 0 7px; letter-spacing: .3px; }

/* zona de juego */
.title-ball { width: 30px; height: 30px; animation: spin 8s linear infinite; flex: none; }
.board-wrap { position: relative; }
.corner-flag { position: absolute; top: -24px; width: 22px; height: 38px; z-index: 2; pointer-events: none; }
.corner-flag.l { left: -4px; } .corner-flag.r { right: -4px; transform: scaleX(-1); }
.board::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 34%; height: 46px; border: 2px solid rgba(255,255,255,.08); border-bottom: 0; pointer-events: none; }
.board > * { position: relative; z-index: 1; }
.rules-whistle { width: 44px; height: 44px; display: block; margin-bottom: 4px; }
.ad-popup strong .ico { width: 1.3em; height: 1.3em; }

/* contenido */
.h-deco { display: flex; align-items: center; gap: 10px; }
.h-deco .ico { width: 1.15em; height: 1.15em; }
.content h3 { display: flex; align-items: center; gap: 8px; }
.content h3 .ico { width: 1.25em; height: 1.25em; }
.step { position: relative; overflow: hidden; }
.step-art { position: absolute; right: -8px; top: -6px; width: 84px; height: 84px; opacity: .22; transform: rotate(12deg); }
.pitch-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0; }
.pitch-divider span { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
.pitch-divider svg { width: 30px; height: 30px; animation: spin 10s linear infinite; }
details summary { list-style: none; display: flex; align-items: center; gap: 10px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: ""; width: 20px; height: 20px; flex: none; background: url("../img/deco/ball.svg") center / contain no-repeat; transition: transform .4s; }
details[open] summary::before { transform: rotate(180deg); }

/* pie: campo con jugadores */
.footer-pitch { margin-top: 20px; background: repeating-linear-gradient(90deg, #13502f 0 60px, #11482a 60px 120px); border-top: 3px solid rgba(255,255,255,.25); }
.footer-pitch .wrap { position: relative; height: 110px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 5vw, 70px); }
.footer-pitch .wrap::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.25); }
.footer-pitch .goal { width: 100px; height: 70px; position: absolute; bottom: 6px; }
.footer-pitch .gl { left: 0; } .footer-pitch .gr { right: 0; }
.footer-pitch .pl { width: 70px; height: 70px; color: #fff; margin-bottom: 8px; }
.footer-pitch .p2 { color: var(--neon); } .footer-pitch .p3 { color: var(--gold); }
.footer-pitch .fb { width: 22px; height: 22px; margin-bottom: 10px; animation: roll 2.4s ease-in-out infinite alternate; }
@media (max-width: 600px) { .footer-pitch .goal { width: 60px; height: 42px; } .footer-pitch .pl { width: 46px; height: 46px; } .footer-pitch .wrap { height: 80px; } }

/* juego 1: aviso de apellido / nombre conocido */
.card-key { display: block; background: rgba(255, 210, 63, .14); border: 1px solid rgba(255, 210, 63, .55); border-radius: 10px; padding: 8px 10px; font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.3; }
.card-key b { color: var(--gold); }
.card-key small { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.w-key { max-width: 560px; margin: 0 auto 12px; text-align: center; background: rgba(0,0,0,.35); border: 2px solid var(--gold); border-radius: 14px; padding: 10px 14px; }
.w-key-main { display: block; font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 900; }
.w-key-main b { color: var(--gold); letter-spacing: .5px; }
.w-key-sub { display: block; color: #d7e6dc; font-size: .9rem; margin-top: 2px; }
.rule-key { background: rgba(255, 210, 63, .12); border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 8px; font-size: 1.05rem; }
.rule-key small { color: var(--muted); font-size: .85rem; }

/* juego 4: opciones con foto y escudos */
.options.with-ph button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 12px 8px 8px; }
.op-ph { flex: none; width: 58px; height: 72px; border-radius: 10px; overflow: hidden; background: #0a0f0c; border: 2px solid rgba(255,255,255,.25); }
.op-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.op-ph .silhouette { font-size: 2rem; }
.op-n { line-height: 1.2; }
.options button.right .op-ph { border-color: #04160a; } .options button.wrong .op-ph { border-color: #fff; }
@media (max-width: 520px) {
  .options.with-ph { grid-template-columns: 1fr 1fr; gap: 8px; }
  .options.with-ph button { flex-direction: column; text-align: center; gap: 6px; padding: 8px 6px; font-size: .9rem; }
  .op-ph { width: 64px; height: 80px; }
}
.career .club { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; }
.shield { width: 26px; height: 30px; flex: none; }
.shield path { fill: #0f3a24; stroke: #c6ff3d; stroke-width: 2.5; }
.shield path.half { fill: #145232; stroke: none; }
.shield text { fill: #fff; font-family: var(--font); font-weight: 900; text-anchor: middle; }
.career .club.hidden .shield path { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.35); }
.career .club.hidden .shield path.half { fill: rgba(255,255,255,.04); }

/* páginas legales */
.logo { white-space: nowrap; }
.legal { max-width: 860px; }
.legal h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 900; margin: 28px 0 4px; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 8px; color: var(--neon); }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--card2); width: 30%; white-space: nowrap; }
.legal-table td { background: var(--card); color: #cfe0d5; }
.legal-table code { color: var(--gold); font-size: .85rem; }
@media (max-width: 560px) { .legal-table th { white-space: normal; } .legal-table th, .legal-table td { padding: 7px 8px; font-size: .85rem; } }

/* resultados */
.trophy-big { width: 86px; height: 86px; display: block; margin: 0 auto 6px; color: var(--gold); filter: drop-shadow(0 0 18px rgba(255,210,63,.45)); animation: floaty 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .clothesline .shirt, .hero-scene .float, .hs-left .b-kick, .hs-right .keeper, .kicker .ico, .art-3 .watch,
  .team-strip .ball, .title-ball, .pitch-divider svg, .footer-pitch .fb, .trophy-big { animation: none; }
}
