:root{
  --bg1:#f7e9ee;
  --bg2:#f3e7f3;
  --bg3:#e9f1ff;

  --ink:#453b46;
  --muted:rgba(69,59,70,.70);

  --card:#ffffffcc;
  --cardSolid:#fff;
  --stroke:rgba(214,168,186,.45);

  --shadow: 0 18px 45px rgba(36, 23, 33, .12);
  --shadow2: 0 10px 25px rgba(36, 23, 33, .10);

  --radius: 22px;

  --love:#ff7ea1;
  --drama:#9fb0ff;
  --self:#bde7a8;

  --pill:#ffffffc7;

  --dangerBg: rgba(255, 92, 110, .12);
  --dangerBorder: rgba(255, 92, 110, .35);
  --dangerInk: rgba(160, 35, 55, .92);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  overflow-x:hidden;
}

/* decor */
.bgDecor{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(800px 420px at 15% 20%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(700px 380px at 85% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(520px 260px at 70% 80%, rgba(255,255,255,.45), transparent 60%);
}
.bgDecor::before,
.bgDecor::after{
  content:"";
  position:absolute;
  inset:-20%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,126,161,.18) 0 8px, transparent 9px),
    radial-gradient(circle at 30% 60%, rgba(159,176,255,.18) 0 8px, transparent 9px),
    radial-gradient(circle at 70% 40%, rgba(255,126,161,.14) 0 7px, transparent 8px),
    radial-gradient(circle at 80% 65%, rgba(189,231,168,.18) 0 7px, transparent 8px),
    radial-gradient(circle at 55% 25%, rgba(255,126,161,.12) 0 6px, transparent 7px),
    radial-gradient(circle at 45% 75%, rgba(159,176,255,.12) 0 6px, transparent 7px);
  opacity:.55;
  filter: blur(.2px);
  transform: rotate(-2deg);
}
.bgDecor::after{
  opacity:.35;
  transform: rotate(2deg) scale(1.03);
}

.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
  padding: 18px 16px 28px;
}

/* Header */
.topBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 2px 10px;
  flex-wrap: wrap;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(214,168,186,.45);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(8px);
}
.logoIcon{ font-size:18px; }
.logoText{
  font-weight: 900;
  letter-spacing:.2px;
}

/* AdSense slot reserved space */
.adWrap{
  display:flex;
  justify-content:center;
  align-items:center;
  width: 100%;
}
.adSlot{
  width: 320px;
  height: 100px;
  border-radius: 16px;
  border: 1px dashed rgba(214,168,186,.55);
  background: rgba(255,255,255,.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

/* Layout */
.layout{
  width: min(1050px, 100%);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items:start;
}

.gameArea{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top: 6px;
}

.titleWrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  margin-top: 6px;
}

/* ✅ Título en UNA SOLA LÍNEA */
.title{
  margin:0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: .2px;
  color: #d46b8c;
  text-shadow: 0 10px 25px rgba(212,107,140,.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titleHeart{
  font-size: 22px;
  transform: translateY(2px);
  opacity:.9;
}

.pillRow{ margin: 10px 0 14px; }
.pill{
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(214,168,186,.55);
  box-shadow: var(--shadow2);
  font-weight: 900;
  color: rgba(69,59,70,.78);
}

.card{
  width: min(680px, 100%);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(214,168,186,.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px 18px 14px;
}

.situationBox{
  border-radius: 18px;
  border: 1px dashed rgba(214,168,186,.55);
  background: rgba(255,255,255,.65);
  padding: 20px 16px;
  text-align:center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.situationText{
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.25;
  font-weight: 900;
  color: rgba(69,59,70,.86);
}

.options{
  display:grid;
  gap: 12px;
  margin-top: 16px;
}

/* Botones tipo pill */
.optionBtn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px 46px 14px 18px;
  border-radius: 999px;
  border: 2px solid rgba(214,168,186,.45);
  background: rgba(255,255,255,.65);
  box-shadow: 0 10px 18px rgba(36,23,33,.08);
  cursor:pointer;
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align:center;
  position: relative;
}
.optionBtn:hover{ filter: brightness(1.02); }
.optionBtn:active{ transform: scale(.992); }
.optionBtn:disabled{ opacity:.78; cursor:not-allowed; }

.optionText{
  font-weight: 950;
  font-size: 18px;
  color: rgba(69,59,70,.84);
}

/* colores visuales */
.optPink{
  background: linear-gradient(180deg, rgba(255,126,161,.20), rgba(255,255,255,.65));
}
.optBlue{
  background: linear-gradient(180deg, rgba(159,176,255,.20), rgba(255,255,255,.65));
}
.optGreen{
  background: linear-gradient(180deg, rgba(189,231,168,.22), rgba(255,255,255,.65));
}

/* ✅ Selección del jugador: SOLO CHECK */
.optionBtn.isSelected{
  opacity: 1 !important;
  border-color: rgba(69,59,70,.55);
  box-shadow: 0 14px 28px rgba(36,23,33,.12);
  transform: none;
}
.optionBtn.isSelected::after{
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 14px;
  font-weight: 950;
  color: rgba(69,59,70,.92);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(214,168,186,.75);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(36,23,33,.10);
}

.optionBtn.isNotSelected{
  opacity: .55 !important;
}

.feedbackArea{
  margin-top: 16px;
  min-height: 56px;
}

.feedbackBox{
  border-radius: 16px;
  border: 1px solid rgba(214,168,186,.45);
  background: rgba(255,255,255,.70);
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.feedbackTitle{
  font-weight: 950;
  margin-bottom: 6px;
  color: rgba(69,59,70,.86);
}
.feedbackText{
  color: rgba(69,59,70,.78);
  line-height: 1.25;
}

.cardFootnote{
  margin-top: 10px;
  text-align:center;
  font-size: 12px;
  color: rgba(69,59,70,.62);
}

/* Panel lateral PC */
.sidePanel{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top: 120px;
}

.panelCard{
  width: 100%;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(214,168,186,.55);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
}

.panelTitle{
  font-weight: 950;
  font-size: 18px;
  margin-bottom: 10px;
  color: rgba(69,59,70,.86);
}

.statRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top: 10px;
  font-weight: 900;
  color: rgba(69,59,70,.80);
}

.statLabel{ display:flex; gap:8px; align-items:center; }
.statPct{ font-weight: 950; }

.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(69,59,70,.10);
  overflow:hidden;
  margin-top: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.bar i{
  display:block;
  height:100%;
  width:0%;
  border-radius: 999px;
  transition: width .35s ease;
}
.bar.love i{ background: rgba(255,126,161,.95); }
.bar.drama i{ background: rgba(159,176,255,.95); }
.bar.self i{ background: rgba(189,231,168,.95); }

.panelBtn{
  width:100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid rgba(214,168,186,.55);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow2);
  cursor:pointer;
  font-weight: 950;
  color: rgba(69,59,70,.84);
}
.panelBtn:hover{ filter: brightness(1.02); }
.panelBtn:active{ transform: scale(.996); }

.miniInfo{
  margin-top: 10px;
  text-align:center;
  font-size: 12px;
  color: rgba(69,59,70,.65);
}

/* Modal */
.hidden{ display:none !important; }

.modalOverlay{
  position:fixed;
  inset:0;
  background: rgba(20, 12, 18, .55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  z-index: 9999;
}

.modalCard{
  width: min(560px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(214,168,186,.60);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow:hidden;
  transform: translateY(6px);
  animation: modalIn .18s ease-out forwards;
}
@keyframes modalIn{ to{ transform: translateY(0); } }

.modalHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(214,168,186,.45);
}

.modalTitle{
  font-weight: 950;
  color: rgba(69,59,70,.88);
}

.modalClose{
  border:none;
  background: transparent;
  cursor:pointer;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 12px;
}
.modalClose:hover{ background: rgba(69,59,70,.06); }

.modalBody{ padding: 12px 14px; }

.modalFooter{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(214,168,186,.45);
  flex-wrap: wrap;
}
.footerSpacer{ flex: 1 1 auto; }

.btnSoft, .btnDark, .btnDangerSoft{
  border:none;
  cursor:pointer;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 950;
}
.btnSoft{ background: rgba(69,59,70,.08); color: rgba(69,59,70,.85); }
.btnDark{ background: rgba(69,59,70,.92); color: #fff; }
.btnDangerSoft{
  background: var(--dangerBg);
  color: var(--dangerInk);
  border: 1px solid var(--dangerBorder);
}
.btnDangerSoft:hover{ filter: brightness(1.02); }

.progressGrid{ display:grid; gap: 10px; }
.pRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight: 900;
  color: rgba(69,59,70,.82);
}
.pKey{ opacity:.80; font-weight: 900; }
.pVal{ font-weight: 950; }

.pBars{
  margin-top: 6px;
  border-radius: 16px;
  border: 1px solid rgba(214,168,186,.45);
  background: rgba(255,255,255,.75);
  padding: 10px 12px;
}
.pBars .bar{ margin-bottom: 10px; }
.pBars .bar:last-child{ margin-bottom: 0; }

.note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(69,59,70,.66);
}

.warnBox{
  border-radius: 16px;
  border: 1px solid rgba(255,92,110,.30);
  background: rgba(255,92,110,.10);
  padding: 12px 12px;
}
.warnTitle{
  font-weight: 950;
  margin-bottom: 6px;
  color: rgba(160,35,55,.92);
}
.warnList{
  margin: 0;
  padding-left: 18px;
  color: rgba(69,59,70,.84);
}
.warnHint{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(69,59,70,.70);
}

.confirmRow{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Desktop: el ad slot no es necesario */
@media (min-width: 921px){
  .adWrap{ display:none; }
}

/* ✅ Móvil: NO mostrar KPI del panel; SOLO el botón "Ver progreso" */
@media (max-width: 920px){
  .page{
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom) + 8px);
  }

  .layout{ grid-template-columns: 1fr; gap: 8px; }

  .topBar{
    justify-content:center;
    padding: 2px 0 4px;
    gap: 6px;
  }

  .logo{ padding: 6px 11px; }

  .adWrap{ margin-top: 2px; }

  .titleWrap{ margin-top: 2px; gap: 6px; }
  .title{
    font-size: 23px;
    letter-spacing: .05px;
    text-shadow: 0 8px 18px rgba(212,107,140,.16);
  }
  .titleHeart{ font-size: 16px; }

  .pillRow{ margin: 6px 0 7px; }
  .pill{ padding: 7px 12px; }

  .card{ padding: 11px 12px 9px; }

  .situationBox{ padding: 11px 12px; }
  .situationText{
    font-size: 17.2px;
    line-height: 1.18;
  }

  .options{
    gap: 8px;
    margin-top: 9px;
  }

  .optionBtn{
    padding: 10px 42px 10px 14px;
  }
  .optionText{ font-size: 15.2px; }

  .feedbackArea{
    margin-top: 9px;
    min-height: 42px;
  }
  .feedbackBox{ padding: 9px 12px; }
  .feedbackTitle{ margin-bottom: 4px; }

  .cardFootnote{ margin-top: 6px; }

  .sidePanel{
    display:flex;
    padding-top: 6px;
  }

  .sidePanel .panelTitle,
  .sidePanel .statRow,
  .sidePanel .bar,
  .sidePanel .miniInfo{
    display:none !important;
  }

  .panelCard{
    padding: 9px 10px;
    margin-bottom: calc(env(safe-area-inset-bottom) + 10px);
  }

  .panelBtn{
    margin-top: 0;
    padding: 12px 14px;
  }

  .modalBody{ padding: 10px 12px; }
  .modalFooter{ padding: 10px 12px; gap: 8px; }
  .pBars{ padding: 9px 10px; }
}


/* ===============================
   CTA a Palabra del Día (progreso)
================================ */

.ctaBox{
  margin-top: 14px;
  padding: 12px;
  background: #fff7cc;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
}

.ctaMsg{
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 8px;
  color: rgba(0,0,0,0.75);
}

.ctaLink{
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: #6aaa64;
}

.ctaLink:hover{
  text-decoration: underline;
}
