/* xSwim, la portada (lo común está en site.css; el reloj de la piscina, en pace.css). Color con significado:
     el agua, el azul claro de la piscina de los reels; los azulejos, los de la pared de la sala de la tarjeta */

/* ---------- Pekín: la sección va sobre los azulejos de la pared de la piscina, que se pierden hacia los bordes ---------- */
.predict { isolation: isolate; }
.predict::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 72% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 75% at 72% 50%, #000 20%, transparent 75%); }
.predict .strip { align-items: center; }

/* ---------- la newsletter ---------- */
.weekly h2 { font-size: clamp(34px, 4.6vw, 64px); }
.weekly .mailrow { margin: 0; }

/* el correo del último lunes, tal cual: una hoja blanca algo girada, como si acabara de llegar */
.wk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .wk-grid { grid-template-columns: minmax(0, 1fr); } }
.wk-letter { background: var(--panel); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 40px 80px -46px rgba(11, 34, 51, .55);
  transform: rotate(-1.4deg); transition: transform .6s var(--spring); }
.wk-letter:hover { transform: rotate(0); }
.wk-letter header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); font: 600 13px var(--f-body); color: var(--muted); }
.wk-letter header { flex-wrap: wrap; gap: 6px 10px; }
.wk-letter .logo { font-size: 22px; }
.wk-letter h3 { margin: 22px 0 0; font: 800 26px/1.1 var(--f-head); letter-spacing: -0.02em; }
.wk-sub { margin: 6px 0 14px; color: var(--text); font-size: 15px; }
.wk-top3 { list-style: none; margin: 0; padding: 0; }
.wk-top3 a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'av who res' 'av ev res'; column-gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; border-top: 1px solid var(--soft); }
.wk-top3 li:first-child a { border-top: 0; }
.wk-top3 .av { grid-area: av; }
.wk-top3 .who { grid-area: who; min-width: 0; }
.wk-top3 .who b { display: block; font-weight: 700; color: var(--ink); }
.wk-top3 .who small, .wk-top3 .ev { font-size: 13px; color: var(--muted); }
.wk-top3 .ev { grid-area: ev; }
.wk-top3 .res { grid-area: res; text-align: right; }
.wk-top3 .tm { display: block; font: 900 34px/1 var(--f-num); color: var(--ink); }
.wk-top3 .res small { font-size: 12px; color: var(--muted); }
.wk-top3 a:hover b { color: var(--fast); }
@media (max-width: 600px) {
  .wk-top3 a { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: 'av who' 'av ev' 'av res'; }
  .wk-top3 .res { text-align: left; margin-top: 6px; display: flex; align-items: baseline; gap: 10px; }
}
.wk-num { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wk-num .num { font-size: 56px; line-height: 1; color: var(--ink); }
.wk-num p { margin: 0; color: var(--text); font-size: 15px; }
.wk-post { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 16px; text-decoration: none; }
.wk-post img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.wk-post small { display: block; font-size: 12px; color: var(--muted); }
.wk-post b { font-weight: 700; color: var(--ink); line-height: 1.3; }
.wk-post:hover b { color: var(--fast); }

@media (prefers-reduced-motion: reduce) { .wk-letter { transform: none; transition: none; } }

/* ---------- el juego de Pekín: qué es, el reloj y una final para probarlo ---------- */
.try { margin-top: clamp(50px, 6vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); grid-template-areas: 'head head' 'pick pod' 'pick out'; gap: 22px clamp(30px, 4vw, 60px); align-items: start; }
@media (max-width: 900px) { .try { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'pick' 'pod' 'out'; } }
.try-head { grid-area: head; }
.try-head h3 { margin: 0; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--f-head); letter-spacing: -0.02em; }
.try-head p { margin: 8px 0 0; color: var(--text); }
/* los ocho de la final, en orden de apellido; el que eliges lleva su puesto en una medalla */
.try-pick { grid-area: pick; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .try-pick { gap: 8px; } }
@media (max-width: 359px) {
  .hero-e .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-e h1, .wk-letter { overflow-wrap: anywhere; }
  .try-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.try-pick button { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border: 0; border-radius: 16px; background: var(--panel); cursor: pointer; transition: transform .3s var(--spring), box-shadow .2s; }
.try-pick button:hover { transform: translateY(-3px); }
.try-pick button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--ink); }
.try-pick .av { width: clamp(48px, 5vw, 64px) !important; height: clamp(48px, 5vw, 64px) !important; }
.try-pick b { font-weight: 700; color: var(--ink); font-size: clamp(12px, 3.3vw, 15px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-pick small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.try-pick .fl img { width: 16px; height: 16px; }
.try-pick button[data-place]:not([data-place=""])::after { content: attr(data-place); position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 16px var(--f-num); color: var(--ink); background: var(--gold); }
.try-pick button[data-place="2"]::after { background: var(--silver); }
.try-pick button[data-place="3"]::after { background: var(--bronze); }
.try.done .try-pick button { cursor: default; }
.try.done .try-pick button:hover { transform: none; }
/* el podio: cada uno cae en su escalón; el oro, en el amarillo de los récords y la marca */
.try-pod { grid-area: pod; display: flex; align-items: flex-end; gap: 8px; min-height: 270px; }
.try-pod .st { flex: 1; display: flex; flex-direction: column; align-items: center; }
.try-pod .who { min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; position: relative; }
.try-pod .who .av { width: 64px !important; height: 64px !important; }
.try-pod .who b { font-size: 14px; color: var(--ink); }
.try-pod .st.drop .who { animation: drop .55s var(--spring); }
@keyframes drop { from { transform: translateY(-46px); opacity: 0; } }
.try-pod .blk { width: 100%; margin-top: 8px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--panel); display: grid; place-items: center; font: 900 44px/1 var(--f-num); color: var(--ink); }
.try-pod .st1 .blk { height: 130px; background: var(--rope); }
.try-pod .st2 .blk { height: 92px; }
.try-pod .st3 .blk { height: 66px; }
.try-pod .pt { position: absolute; top: -8px; right: -18px; font: 900 22px/1 var(--f-num); font-style: normal; padding: 5px 7px 3px; border-radius: 6px; background: var(--soft); color: var(--ink); animation: drop .5s var(--spring) both; }
.try-pod .pt.p3 { background: var(--rope); }
.try-pod .pt.p0 { background: transparent; color: var(--muted); }
.try-pod .st2 .pt { animation-delay: .15s; }
.try-pod .st3 .pt { animation-delay: .3s; }
/* lo que pasó de verdad y tus puntos */
.try-out { grid-area: out; }
.try-out .score { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.try-out .score .num { font-size: 72px; line-height: 1; color: var(--ink); }
.try-out .of { color: var(--text); font-size: 17px; }
.try-out .real { list-style: none; margin: 12px 0 0; padding: 0; }
.try-out .real li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.try-out .md { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--f-num); color: var(--ink); background: var(--gold); }
.try-out .md.m2 { background: var(--silver); }
.try-out .md.m3 { background: var(--bronze); }
.try-out .real .tm { font: 900 24px var(--f-num); color: var(--ink); }
.try-out .go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .try-pod .st.drop .who, .try-pod .pt { animation: none; } }
@media (forced-colors: active) {
  .try-pick button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
