/* ════════════════════════════════════════════════════════════════════════════
   TheWaveRadar — Radar Deck (SOLO MÓVIL)
   Capa de presentación tipo stories para la Home. Desktop/tablet NO la usan:
   todo va dentro de @media (max-width:768px). Si el deck se renderiza en pantallas
   grandes (no debería), queda oculto para no romper nada.
   ════════════════════════════════════════════════════════════════════════════ */

/* Por defecto (desktop/tablet) el deck no se muestra: el gate está en app.js,
   esto es solo un cinturón de seguridad. */
.tw-deck { display: none; }

@media (max-width: 768px) {
  .tw-deck {
    display: block;
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* el deck ocupa toda la ventana; neutraliza paddings del layout app */
    margin: 0 -16px;            /* compensa el padding lateral del contenedor app */
    background: #0b0f1a;
  }
  /* ocultar barras de scroll para sensación full-bleed */
  .tw-deck::-webkit-scrollbar { width: 0; height: 0; }
  .tw-deck { scrollbar-width: none; }

  .dk-slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
    position: relative;
    background:
      radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--dk-accent) 22%, transparent) 0%, transparent 55%),
      linear-gradient(180deg, #0e1424 0%, #0b0f1a 100%);
    border-bottom: 1px solid rgba(255,255,255,.04);
  }

  .dk-slide-inner {
    width: 100%;
    max-width: 460px;
    animation: dkIn .5s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes dkIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .dk-slide-inner { animation: none; } }

  .dk-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--dk-accent); margin-bottom: 10px;
  }
  .dk-title {
    font-size: 30px; line-height: 1.12; font-weight: 800;
    color: #f5f7fb; margin: 0 0 18px; letter-spacing: -.01em;
  }

  .dk-primary { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
  .dk-score { font-size: 56px; font-weight: 800; color: #fff; line-height: 1; }
  .dk-score-max { font-size: 20px; color: #64748b; font-weight: 700; }
  .dk-primary-sub { font-size: 14px; color: #94a3b8; margin-bottom: 16px; }
  .dk-badge {
    display: inline-block; color: #06210f; font-weight: 800; font-size: 16px;
    padding: 8px 16px; border-radius: 999px;
  }

  .dk-metrics { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
  .dk-metric {
    flex: 1; min-width: 92px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px;
  }
  .dk-metric-v { font-size: 19px; font-weight: 700; }
  .dk-metric-l { font-size: 11px; color: #94a3b8; margin-top: 3px; }

  .dk-visual { margin: 16px 0; }
  .dk-visual svg { width: 100%; height: auto; }

  .dk-news-list { display: flex; flex-direction: column; gap: 12px; }
  .dk-news { display: flex; align-items: flex-start; gap: 10px; }
  .dk-news-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
  .dk-news-t { font-size: 15px; color: #dbe1ea; line-height: 1.4; }

  .dk-read {
    display: flex; gap: 10px; align-items: flex-start;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 13px 15px; margin: 18px 0;
  }
  .dk-read-ic { font-size: 15px; line-height: 1.4; }
  .dk-read p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #c6cedb; }

  .dk-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--dk-accent); color: #fff; font-weight: 700; font-size: 15px;
    padding: 13px 20px; border-radius: 999px; text-decoration: none;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--dk-accent) 40%, transparent);
  }
  .dk-cta span { transition: transform .2s; }
  .dk-cta:active span { transform: translateX(3px); }

  .dk-explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
  .dk-explore-grid a {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 18px 14px; color: #e8eaf0; text-decoration: none;
    font-weight: 600; font-size: 15px; text-align: center;
  }

  /* opciones Polymarket */
  .dk-poly-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
  .dk-poly-row { display: flex; justify-content: space-between; font-size: 14px; color: #dbe1ea; margin-bottom: 5px; font-weight: 600; }
  .dk-poly-bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
  .dk-poly-fill { height: 100%; background: linear-gradient(90deg,#8b5cf6,#a78bfa); border-radius: 5px; }

  /* puntos de progreso (lado derecho) */
  .dk-progress {
    position: fixed; right: 8px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 7px; z-index: 20; pointer-events: none;
  }
  .dk-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); transition: all .25s; }
  .dk-dot.is-on { background: #fff; height: 16px; border-radius: 4px; }
}
