/* --- ¿Cuánto me conocés?: carta de amor en un scrapbook — sobres, lacre, estampillas, matasellos, corazones --- */
.conocer { max-width: 1120px; margin: 0 auto; }

/* ---- cabecera: título + corazones por pregunta ---- */
.cn-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 22px; }
.cn-logo {
  margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--bubble); transform: rotate(-2deg);
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 var(--ink);
}
.cn-track { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; max-width: 560px; }
.cn-track svg { width: 24px; height: 24px; display: block; fill: var(--sheet); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; transition: transform .3s var(--ease-pop); }
.cn-track .hit svg { fill: var(--tomato); }
.cn-track .part svg { fill: var(--sun); }
.cn-track .miss svg { fill: var(--paper-2); stroke-dasharray: 3 2; }
.cn-track .skip { opacity: .3; }
.cn-track .now svg { fill: var(--bubble); animation: cn-beat 1.1s ease-in-out infinite; }
.cn-track .cn-count-lbl { font-family: var(--pixel); font-size: 1.05rem; margin-left: 10px; white-space: nowrap; }
@keyframes cn-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

.cn-setup .cn-head { visibility: hidden; }
.cn-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; align-items: start; }

/* ---- la carta ---- */
.cn-letter {
  position: relative; max-width: 740px; margin: 0 auto; border: var(--stroke); border-radius: var(--r); box-shadow: var(--shadow-lg);
  background:
    linear-gradient(90deg, transparent 44px, #ff8fc766 44px, #ff8fc766 46px, transparent 46px),
    repeating-linear-gradient(180deg, transparent 0 33px, #3b6cff1c 33px 34px),
    var(--sheet);
  overflow: visible;
}
.cn-letter.fresh { animation: cn-letter-in .6s var(--ease-pop) both; }
.cn-letter.fresh .cn-seal { animation: cn-seal .55s .35s var(--ease-pop) both; }
.cn-letter.fresh .cn-letter-body > * { animation: cn-fade .4s calc(.3s + var(--n, 0) * 70ms) both; }
.cn-letter-body > :nth-child(2) { --n: 1; } .cn-letter-body > :nth-child(3) { --n: 2; } .cn-letter-body > :nth-child(4) { --n: 3; }
@keyframes cn-letter-in { from { opacity: 0; transform: translateY(46px) rotate(-3deg) scale(.94); } }
@keyframes cn-seal { from { transform: translateX(-50%) scale(0) rotate(-90deg); } }
@keyframes cn-fade { from { opacity: 0; transform: translateY(10px); } }

.cn-flap { position: absolute; top: 0; left: 0; width: 100%; height: 66px; display: block; overflow: visible; }
.cn-flap-in { fill: color-mix(in srgb, var(--bubble) 45%, var(--sheet)); }
.cn-flap-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cn-letter > .cn-flap { border-radius: calc(var(--r) - 3px) calc(var(--r) - 3px) 0 0; }
.cn-seal {
  position: absolute; top: 38px; left: 50%; transform: translateX(-50%); width: 54px; height: 54px; border-radius: 50%;
  background: var(--tomato); border: var(--stroke); box-shadow: 3px 3px 0 var(--ink), inset 0 0 0 5px #ffffff38;
  display: grid; place-items: center; z-index: 2;
}
.cn-seal svg { width: 26px; height: 26px; fill: #fff; stroke: var(--ink); stroke-width: 1.5; }

/* estampilla con la categoría (borde perforado) */
.cn-stamp-cat {
  position: absolute; top: -14px; right: 18px; z-index: 3; padding: 6px; transform: rotate(4deg);
  background: radial-gradient(circle, transparent 3.6px, var(--sheet) 4px) -6px -6px / 12px 12px;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.cn-stamp-cat > span { display: block; padding: 8px 12px; background: var(--sun); border: 2px solid var(--ink); font-weight: 800; font-size: .9rem; white-space: nowrap; }
/* matasellos con el número de pregunta */
.cn-postmark {
  position: absolute; top: 10px; left: 14px; z-index: 3; width: 66px; height: 66px; border-radius: 50%; transform: rotate(-14deg);
  border: 3px double var(--ink-soft); color: var(--ink-soft); display: grid; place-content: center; text-align: center; line-height: 1;
  font-family: var(--pixel); background: #fffdf7cc;
}
.cn-postmark b { font-size: 1.5rem; font-weight: 400; }
.cn-postmark small { font-size: .8rem; }

.cn-letter-body { position: relative; padding: 96px 44px 34px 62px; }
.cn-about {
  display: inline-block; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 12px;
  background: color-mix(in srgb, var(--c) 30%, var(--sheet)); border: 2px solid var(--ink); border-radius: 6px; transform: rotate(-2deg);
}
.cn-q { font-size: clamp(1.6rem, 2.8vw, 2.15rem); line-height: 1.15; margin: 14px 0 8px; text-wrap: balance; }
.cn-hint { color: var(--ink-soft); font-weight: 700; margin: 0 0 20px; }

/* ---- intro ---- */
.cn-intro .cn-letter-body { padding: 100px 44px 36px; }
.cn-hello { font-size: clamp(2.2rem, 4.4vw, 3rem); color: var(--tomato); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.cn-intro .cn-hint { max-width: 460px; margin: 6px auto 0; }
.cn-counts { display: flex; justify-content: center; gap: 18px; }
.cn-count { flex-direction: column; gap: 0; width: 104px; padding: 10px 8px; background: var(--sheet); transform: rotate(var(--tilt, -1.5deg)); }
.cn-count:nth-child(2) { --tilt: 1.5deg; } .cn-count:nth-child(3) { --tilt: -1deg; }
.cn-count b { font-family: var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.cn-count small { font-weight: 700; color: var(--ink-soft); }
.cn-count.sel { background: var(--bubble); --tilt: -4deg; outline: 3px solid var(--ink); outline-offset: 4px; }
.cn-count.sel small { color: var(--ink); }
.cn-intro .big { max-width: 420px; }
.cn-intro .cn-wait { margin-top: 22px; }

/* ---- opciones ---- */
.cn-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cn-opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; justify-content: flex-start;
  font: inherit; font-weight: 800; font-size: 1.06rem; color: var(--ink); line-height: 1.2; min-height: 66px;
  background: color-mix(in srgb, var(--c) 20%, var(--sheet)); border: var(--stroke); border-radius: var(--r-sm); box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg)); transition: transform .18s var(--ease-pop), box-shadow .18s, background .15s, opacity .2s;
}
.cn-opt:nth-child(1) { --tilt: -1deg; } .cn-opt:nth-child(2) { --tilt: .8deg; } .cn-opt:nth-child(3) { --tilt: .6deg; } .cn-opt:nth-child(4) { --tilt: -.8deg; }
@media (hover: hover) { button.cn-opt:hover:not(:disabled) { transform: rotate(0) translateY(-3px); box-shadow: 6px 7px 0 var(--ink); background: color-mix(in srgb, var(--c) 38%, var(--sheet)); } }
button.cn-opt:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.cn-key {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); display: grid; place-items: center;
  font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
.cn-opt-txt { overflow-wrap: anywhere; }
.cn-opts.done .cn-opt:not(.picked) { opacity: .4; filter: saturate(.5); }
.cn-opt.picked { background: color-mix(in srgb, var(--c) 45%, var(--sheet)); transform: rotate(-2deg) scale(1.03); box-shadow: var(--shadow-lg); animation: cn-pick .45s var(--ease-pop); }
.cn-opt.picked::after {
  content: '💌'; position: absolute; top: -14px; right: -10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sheet); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transform: rotate(12deg); font-size: 1.1rem;
}
@keyframes cn-pick { 0% { transform: scale(.9); } 60% { transform: rotate(-3deg) scale(1.07); } }
.cn-opt.shown { transform: none; box-shadow: none; min-height: 0; background: color-mix(in srgb, var(--c) 30%, var(--sheet)); }
.cn-keys { display: block; text-align: right; margin-top: 12px; font-size: .82rem; font-weight: 600; }

/* ---- respuesta libre ---- */
.cn-write input { font-size: 1.12rem; }
.cn-written { font-weight: 800; font-size: 1.3rem; font-style: italic; overflow-wrap: anywhere; }
.cn-sealed { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; border: 2.5px dashed var(--ink-soft); border-radius: var(--r-sm); background: #fffdf7b3; }
.cn-sealed small, .cn-answer-card small, .cn-back small { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--ink-soft); }
.cn-wax { background: var(--tomato); color: #fff; font-weight: 800; padding: 4px 14px; border: 2.5px solid var(--ink); border-radius: 999px; transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--ink); }

.cn-wait { margin: 18px 0 0; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; min-height: 1.4em; }
.cn-wait:empty { display: none; }
.cn-intro .cn-wait { justify-content: center; }
.cn-dots { display: inline-flex; gap: 4px; }
.cn-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--bubble); border: 1.5px solid var(--ink); animation: cn-dot 1s ease-in-out infinite; }
.cn-dots i:nth-child(2) { animation-delay: .15s; } .cn-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cn-dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* ---- juicio (respuesta libre) ---- */
.cn-answer-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; margin-bottom: 6px; background: color-mix(in srgb, var(--bubble) 22%, var(--sheet)); border: var(--stroke); border-radius: var(--r-sm); box-shadow: var(--shadow); transform: rotate(-1deg); }
.cn-judge { display: flex; gap: 8px; flex: none; }
.cn-judge button { padding: 7px 12px; font-size: .9rem; }

/* ---- revelación: la carta se da vuelta ---- */
.cn-flip { perspective: 1000px; width: min(100%, 440px); height: 156px; margin: 4px auto 6px; }
.cn-flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .85s var(--ease-pop); }
.cn-flip.open .cn-flip-in { transform: rotateY(180deg); }
.cn-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: var(--stroke); border-radius: var(--r);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; text-align: center;
}
/* dorso: sobre cerrado con lacre */
.cn-front {
  background:
    linear-gradient(to top right, transparent calc(50% - 1.5px), var(--ink) calc(50% - 1.5px), var(--ink) calc(50% + 1.5px), transparent calc(50% + 1.5px)) left bottom / 50% 60% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1.5px), var(--ink) calc(50% - 1.5px), var(--ink) calc(50% + 1.5px), transparent calc(50% + 1.5px)) right bottom / 50% 60% no-repeat,
    color-mix(in srgb, var(--bubble) 55%, var(--sheet));
}
.cn-front-heart { width: 70px; height: 70px; fill: var(--tomato); stroke: var(--ink); stroke-width: 1.6; filter: drop-shadow(2px 2px 0 var(--ink)); animation: cn-beat 1.3s ease-in-out infinite; }
.cn-front b { position: absolute; font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.cn-back { transform: rotateY(180deg); background: repeating-linear-gradient(180deg, transparent 0 27px, #3b6cff1c 27px 28px), var(--sheet); }
.cn-back .cn-opt.shown { width: 100%; }

.cn-msg { font-family: var(--display); font-size: 1.55rem; text-align: center; margin: 18px 0 4px; transition: opacity .3s, transform .4s var(--ease-pop); }
.cn-msg.yay { color: var(--tomato); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.cn-msg.wait { opacity: 0; transform: scale(.7); }

.cn-guesses { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cn-guesses li {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--sheet); border: 2.5px solid var(--ink);
  border-radius: var(--r-sm); box-shadow: 3px 3px 0 var(--ink);
}
.cn-guesses li.hit { background: color-mix(in srgb, var(--mint) 24%, var(--sheet)); }
.cn-mini {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); display: grid; place-items: center;
  font-family: var(--display); color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
.cn-g { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-g small { font-weight: 700; color: var(--ink-soft); }
.cn-g .cn-written { font-size: 1.1rem; }
.cn-pick { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.cn-pick b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: .8rem; color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.cn-verdict { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 5px 12px; border: 2.5px solid var(--ink); border-radius: 999px; transform: rotate(-3deg); }
.cn-verdict.yes { background: var(--mint); animation: cn-stamp .5s .9s var(--ease-pop) both; }
.cn-verdict.no { background: var(--paper-2); color: var(--ink-soft); border-color: var(--ink-soft); }
.cn-answer-card ~ .cn-guesses .cn-verdict.yes { animation-delay: 0s; }
.cn-vh { width: 18px; height: 18px; fill: var(--tomato); stroke: var(--ink); stroke-width: 2; }
@keyframes cn-stamp { 0% { transform: scale(2.2) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-3deg); } }
.cn-next { display: flex; margin: 24px auto 0; font-family: var(--display); font-weight: 400; font-size: 1.2rem; padding: 12px 26px; }

/* ---- jugadores: estampillas ---- */
.cn-side h3 { margin: 6px 0 14px 4px; }
.cn-stamps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cn-stamp {
  position: relative; padding: 7px; transform: rotate(var(--tilt, -1.2deg)); transition: transform .3s var(--ease-pop), opacity .3s;
  background: radial-gradient(circle, transparent 4px, var(--sheet) 4.5px) -6px -6px / 12px 12px;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.cn-stamp:nth-child(even) { --tilt: 1.4deg; }
.cn-stamp.sub { --tilt: -2.5deg; transform: rotate(var(--tilt)) scale(1.04); }
.cn-stamp-in { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: color-mix(in srgb, var(--c) 22%, var(--sheet)); border: 2.5px solid var(--ink); }
.cn-ini {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); display: grid; place-items: center;
  font-family: var(--display); font-size: 1.25rem; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
.cn-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cn-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-who small { color: var(--ink-soft); font-weight: 600; }
.cn-who .cn-state { font-weight: 700; }
.cn-stamp.sealed .cn-state { color: #13945c; }
.cn-score { margin-left: auto; position: relative; display: grid; place-items: center; width: 44px; height: 42px; flex: none; }
.cn-score svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--tomato); stroke: var(--ink); stroke-width: 1.6; }
.cn-score b { position: relative; font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; margin-top: -2px; }
.cn-tape {
  position: absolute; top: -12px; right: 10px; z-index: 1; padding: 2px 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  background: #ffe28ae6; border-left: 2px dashed #0003; border-right: 2px dashed #0003; transform: rotate(4deg);
}
.cn-stamp.gone { opacity: .45; filter: grayscale(1) drop-shadow(3px 3px 0 var(--ink)); }

/* ---- corazones ---- */
.cn-fx { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
.cn-burst { position: absolute; width: 0; height: 0; }
.cn-burst i { position: absolute; left: 0; top: 0; animation: cn-burst 1.4s cubic-bezier(.15, .7, .3, 1) var(--d) both; }
.cn-burst svg { width: 30px; height: 30px; display: block; fill: var(--c); stroke: var(--ink); stroke-width: 1.8; }
@keyframes cn-burst {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0); }
  35% { transform: translate(calc(-50% + var(--dx) * .8), calc(-50% + var(--dy) * .8)) scale(var(--s)) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 90px)) scale(calc(var(--s) * .5)) rotate(var(--r)); opacity: 0; }
}
.cn-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.cn-rain i { position: absolute; top: -50px; animation: cn-fall var(--t) linear var(--d) both; }
.cn-rain svg { width: calc(30px * var(--s)); height: calc(30px * var(--s)); display: block; fill: var(--c); stroke: var(--ink); stroke-width: 1.8; }
@keyframes cn-fall {
  0% { transform: translate(0, 0) rotate(-20deg); }
  50% { transform: translate(var(--sway), 55vh) rotate(20deg); }
  100% { transform: translate(0, 115vh) rotate(-10deg); }
}

/* ---- final: medidor de compatibilidad ---- */
.conocer .over .card.cn-final { max-width: 520px; position: relative; z-index: 2; }
.cn-final h3 { margin-top: 4px; }
.cn-meter { position: relative; width: min(240px, 70vw); margin: 0 auto 8px; }
.cn-meter svg { width: 100%; display: block; overflow: visible; filter: drop-shadow(5px 5px 0 var(--ink)); }
.cn-meter-bg { fill: var(--paper-2); }
.cn-wave { fill: var(--tomato); animation: cn-wave 1.4s linear infinite; }
.cn-meter-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.cn-shine { fill: #fff; opacity: .5; }
@keyframes cn-wave { to { transform: translateX(50px); } }
.cn-pct {
  position: absolute; left: 0; right: 0; top: 36%; text-align: center; font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1;
  color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); font-variant-numeric: tabular-nums;
}
.cn-meter.done .cn-pct { animation: cn-pop .5s var(--ease-pop); }
@keyframes cn-pop { 50% { transform: scale(1.25) rotate(-4deg); } }
.cn-tier { font-size: 1.55rem; margin: 10px 0 6px; text-wrap: balance; }
.cn-final-list { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cn-final-list li { display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 6px 8px 6px 6px; background: var(--sheet); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.cn-final-list .cn-score { width: 36px; height: 34px; margin-left: 2px; }
.cn-final .row { justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cn-main { grid-template-columns: 1fr; }
  .cn-side { order: -1; }
  .cn-stamps { flex-direction: row; flex-wrap: wrap; }
  .cn-stamp { flex: 1 1 200px; }
  .cn-letter-body { padding: 96px 22px 28px 30px; }
  .cn-letter { background: repeating-linear-gradient(180deg, transparent 0 33px, #3b6cff1c 33px 34px), var(--sheet); }
}
@media (max-width: 560px) {
  .cn-opts { grid-template-columns: 1fr; }
  .cn-write { flex-direction: column; }
}

/* ---- tablet / táctil ---- */
@media (hover: none), (pointer: coarse) {
  .cn-keys { display: none; } /* no hay teclado físico: el aviso de "Teclas 1–4" sobra */
}
.cn-write input { font-size: max(1.1rem, 16px); }
@media (pointer: coarse) {
  .cn-write input, .cn-write button { min-height: 50px; }
}
