/* ¿Verdad o mito?, con los colores de Laboratorios Nivora (marca inventada). */
:root {
  --night: #0b1530;
  --navy: #16265a;
  --navy-2: #1e3170;
  --blue: #1d4ed8;
  --teal: #2dd4bf;
  --coral: #f97366;
  --green: #22c55e;
  --white: #fff;
  --soft: #c9d3ee;
  --accent: var(--teal);
  --accent-ink: var(--night);
  --accent-shadow: #1a9e8d;
  --bg: var(--night);
  --ink: var(--white);
  --page: #060c1d;
  --line: var(--navy-2);
  --field: #fff;
  --field-ink: var(--night);
  --focus: #fde047;
}
.spacer { flex: 1; }
.screen > .btn-block { min-height: 64px; font-size: 1.5rem; }
.screen { overflow: hidden; }

/* Logo y cabecera */
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 2; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem/1 "Jakarta", sans-serif; letter-spacing: .2em; }
.logo .leaf { width: 26px; height: 26px; }
.logo-sm { font-size: 1.15rem; }
.congress { padding: 6px 12px; border: 1px solid #3a4c86; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.top-right { font-weight: 700; color: var(--soft); }

/* Portada */
.screen-start { text-align: center; position: relative; }
.art { position: relative; height: 230px; margin: 0 -20px; }
.art-blob { position: absolute; right: -90px; top: -40px; width: 300px; height: 300px; border-radius: 50%; background: var(--navy); }
.art-leaf { position: absolute; left: 30px; top: 10px; width: 42px; height: 42px; }
.art-pill { position: absolute; right: 44px; top: 12px; width: 54px; height: 22px; border-radius: 999px; transform: rotate(-30deg);
  background: linear-gradient(90deg, #fff 50%, var(--teal) 50%); }
.art-card { position: absolute; top: 34px; width: 34%; height: 170px; border-radius: 16px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--night); font-family: "Jakarta", sans-serif; }
.art-card b { font-size: 2.6rem; line-height: 1; }
.art-card i { font-style: normal; font-weight: 800; font-size: 1.3rem; }
.art-mito { left: 9%; background: var(--coral); transform: rotate(-14deg); }
.art-verdad { right: 9%; background: var(--green); transform: rotate(14deg); }
.art-q { left: 33%; width: 34%; top: 22px; height: 180px; background: #fff; color: var(--blue); font-size: 5.5rem; font-weight: 800; box-shadow: 0 8px 0 var(--blue); }
.art-dot { position: absolute; border-radius: 50%; }
.art-dot-1 { left: 22%; bottom: 0; width: 12px; height: 12px; background: var(--teal); }
.art-dot-2 { right: 22%; bottom: -4px; width: 8px; height: 8px; background: #fff; }
.start-title { position: relative; font-size: clamp(2.9rem, 15vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.start-sub { position: relative; font-size: 1.2rem; color: #e3e9fa; }
.record { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-align: left; border-radius: 18px; background: var(--navy); border: 1px solid #2a3c78; }
.record-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); flex: none; }
.record-label { color: var(--soft); }
.record-value { font: 800 2rem/1.1 "Jakarta", sans-serif; }
.start-foot { display: flex; gap: 10px; align-items: center; text-align: left; color: var(--soft); font-size: .92rem; }
.start-foot svg { flex: none; }

/* Marcador */
.hud { display: flex; justify-content: space-between; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px; border-radius: 999px; background: var(--navy); border: 1px solid #2a3c78; white-space: nowrap; }
.chip strong { font: 800 1.6rem/1 "Jakarta", sans-serif; font-variant-numeric: tabular-nums; }
.chip-icon { color: var(--teal); font-size: 1.1rem; font-weight: 800; }
.chip-time.is-low strong { color: var(--coral); }
.paused { font-size: .85rem; color: var(--soft); }
.chip-score { font-size: 1.05rem; }
.ok-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--night); font-weight: 800; font-size: .9rem; }
.bar { height: 8px; border-radius: 999px; background: var(--navy); overflow: hidden; margin-top: -6px; }
.bar span { display: block; height: 100%; width: 100%; background: var(--teal); border-radius: 999px; transition: width .1s linear; }
.count { color: var(--soft); font-size: .92rem; margin-top: -8px; }

/* La mesa: la tarjeta con los lados Mito y Verdad */
.table { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; margin-top: 8px; }
.side { position: absolute; top: 50%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translateY(-50%); font: 800 .9rem/1.1 "Jakarta", sans-serif; pointer-events: none; }
.side-mito { left: -14px; color: var(--coral); }
.side-verdad { right: -16px; color: var(--green); }
.side-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--night); font-size: 1.3rem; }
.side-mito .side-dot { background: var(--coral); }
.side-verdad .side-dot { background: var(--green); }
.side-arrow { font-size: 1.2rem; }
.table.is-fail .side { visibility: hidden; }
.stack { position: relative; margin: 0 34px; perspective: 1200px; }
.stack-back { position: absolute; inset: 14px -6px -10px 8px; border-radius: 24px; background: var(--blue); transform: rotate(-2deg); }
.stack-back-2 { inset: 22px 6px -18px -6px; background: var(--navy); transform: rotate(-5deg); }

.card { --drag: 0; position: relative; z-index: 2; transform: rotate(3deg); transition: transform .25s ease; touch-action: pan-y; user-select: none; cursor: grab; }
.card.is-dragging { transition: none; cursor: grabbing; }
.card.is-out { transition: transform .26s ease-in, opacity .26s ease-in; opacity: 0; }
.card.is-in { animation: card-in .22s ease; }
@keyframes card-in { from { opacity: 0; transform: rotate(3deg) scale(.92); } }
.card.is-flipped { transform: none; cursor: default; }
.card-inner { display: grid; transition: transform .45s ease; transform-style: preserve-3d; }
.card.is-flipped .card-inner { transform: rotateY(180deg); }
.card-face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; min-height: 400px; padding: 22px 22px 24px; border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px rgb(0 0 0 / .35); }
.card-front { background: #fff; color: var(--night); }
.card-back { background: var(--coral); color: var(--night); transform: rotateY(180deg); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tag { padding: 6px 14px; border-radius: 999px; background: #e3eafd; color: var(--blue); font-weight: 800; font-size: .85rem; }
.card-text { flex: 1; display: flex; align-items: center; font-size: clamp(1.8rem, 8.6vw, 2.3rem); font-weight: 800; line-height: 1.12; }
.card-text.is-long { font-size: clamp(1.45rem, 6.8vw, 1.8rem); }
.card-hint { color: #4b5675; font-size: .9rem; }
.stamp { position: absolute; top: 74px; padding: 6px 14px; border: 3px solid; border-radius: 12px; font: 800 1.3rem/1 "Jakarta", sans-serif; background: #fff; opacity: 0; pointer-events: none; }
.stamp-mito { right: 18px; color: #c2382b; transform: rotate(10deg); opacity: calc(var(--drag) * -1); }
.stamp-verdad { left: 18px; color: #15803d; transform: rotate(-10deg); opacity: var(--drag); }
.fail-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 800; }
.flip-icon { font-size: 1.8rem; font-weight: 800; }
.fail-title { font-size: clamp(2.3rem, 11vw, 2.8rem); font-weight: 800; outline: none; }
.fail-quote { padding: 12px 16px; border-radius: 16px; background: #fcd9d4; }
.fail-quote p { font-size: .85rem; font-weight: 700; color: #6b2a23; }
.fail-quote s { font: 800 1.05rem/1.3 "Jakarta", sans-serif; text-decoration-thickness: 2px; }
.fail-why { font: 700 1.3rem/1.3 "Jakarta", sans-serif; }

/* Botones de respuesta */
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answers[hidden] { display: none; }
.btn-mito, .btn-verdad { min-height: 68px; padding: 14px 10px; border-radius: 20px; font-size: clamp(1.25rem, 6vw, 1.5rem); white-space: nowrap; color: var(--night); }
.btn-mito { background: var(--coral); box-shadow: 0 5px 0 #c9483c; }
.btn-verdad { background: var(--green); box-shadow: 0 5px 0 #15803d; }

/* Resultado */
.score { display: flex; gap: 14px; align-items: center; }
.ring { position: relative; flex: none; width: 108px; height: 108px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: var(--navy-2); }
.ring-fg { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s ease; }
.ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring strong { font: 800 2.6rem/1 "Jakarta", sans-serif; }
.ring span { font-weight: 700; color: var(--soft); }
.score-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.score-title { font-size: 2.2rem; font-weight: 800; outline: none; }
.streak { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--teal); color: var(--night); font-weight: 800; font-size: .86rem; line-height: 1.25; }
.on-screen { display: flex; gap: 8px; align-items: center; color: var(--soft); font-size: .9rem; }
.on-screen svg { flex: none; }
.hardest { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--navy); border: 1px solid #2a3c78; }
.hardest-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hardest-head p { color: var(--soft); font-weight: 700; font-size: .92rem; }
.pill { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--coral); color: var(--night); font-weight: 800; font-size: .85rem; }
.pill.pill-verdad { background: var(--green); }
.hardest-text { font: 800 1.2rem/1.3 "Jakarta", sans-serif; }
.split { display: flex; gap: 3px; border-radius: 10px; overflow: hidden; font-weight: 800; font-size: .85rem; color: var(--night); }
.split span { min-width: max-content; padding: 8px 10px; white-space: nowrap; }
.split-v { background: var(--green); }
.split-m { background: var(--coral); }
.raffle { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.raffle[hidden] { display: none; }
.raffle-title { font-size: 1.7rem; font-weight: 800; }
.raffle-sub { color: var(--soft); margin-top: -10px; }
.field input { border-color: transparent; }
.field input:focus { border-color: var(--teal); outline: none; }
.check u { color: var(--teal); }
.done { padding: 18px; border-radius: 18px; background: var(--navy); border: 2px solid var(--teal); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.done-title { font: 800 1.35rem/1.2 "Jakarta", sans-serif; color: var(--teal); }
.again { align-self: center; color: #fff; }

@media (max-width: 370px) {
  .congress { font-size: .7rem; padding: 5px 9px; }
  .logo { font-size: 1.15rem; letter-spacing: .14em; }
  .chip { padding: 6px 12px; }
  .chip strong { font-size: 1.35rem; }
  .ring { width: 100px; height: 100px; }
  .score-title { font-size: 1.9rem; }
}
