/* ==========================================================================
   Sentido Figurado · game landing page (sfp-* classes)
   Light, playful "sticker" look taken from the box: white paper, pastel shapes,
   ink outlines with a solid offset shadow, Outfit type. Loaded after styles.css.
   ========================================================================== */

.sfp {
  --ink: #1e2433;
  --ink-soft: #4a5163;
  --paper: #ffffff;
  --blue: #0e67af;
  --red: #f03e3e;
  --yellow: #ffc21a;
  --green: #10b9a0;
  --line: #e6e8ec;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sticker: 3px solid var(--ink);
  --lift: 4px 5px 0 var(--ink);

  background: var(--paper) url("../juegos/sentido-figurado/img/fondo.svg") repeat 0 0 / 640px 640px;
  color: var(--ink);
  font-family: var(--font);
}

.sfp a { color: inherit; }

.sfp :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Header ------------------------------------------------------------- */

.sfp-header {
  border-bottom: 0;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.sfp-brand img {
  display: block;
  width: clamp(7.5rem, 26vw, 10rem);
  height: auto;
}

.sfp-nav { gap: clamp(0.5rem, 2vw, 1.5rem); flex-wrap: wrap; }

.sfp-nav__link {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-bottom: 3px solid transparent;
}

.sfp-nav__link:hover { border-bottom-color: var(--yellow); }

.sfp-kori {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.sfp-kori__cat { width: 1.2rem; height: 1.2rem; }

@media (max-width: 40rem) {
  .sfp-header { justify-content: center; }
  .sfp-nav { justify-content: center; }
  .sfp-nav__link { font-size: 0.85rem; }
}

/* --- Shared pieces ------------------------------------------------------ */

.sfp-section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.sfp-h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.sfp-lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.55;
}

.sfp-note {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 5px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  background: #fff7dc;
  font-size: 0.98rem;
}

.sfp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: var(--sticker);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--lift);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sfp-button svg { width: 1.2rem; height: 1.2rem; }
.sfp-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.sfp-button:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.sfp .sfp-button--blue { background: var(--blue); color: #fff; }
.sfp-button--yellow { background: var(--yellow); }

/* --- Hero --------------------------------------------------------------- */

.sfp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 6vw, 4rem);
}

.sfp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sfp-soon {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.12em;
}

.sfp-hero__title { margin: 0.6rem 0 0; }

.sfp-hero__title img {
  display: block;
  width: min(100%, 30rem);
  height: auto;
  margin-left: -0.6rem;
}

.sfp-tagline { margin: 0.4rem 0 0; }

.sfp-tagline span {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  transform: rotate(-2.5deg);
}

.sfp-hero__lead {
  max-width: 32rem;
  margin: 1.4rem 0 0;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.sfp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.sfp-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.95rem;
}

.sfp-facts strong { font-weight: 900; }

.sfp-shape { width: 1.5rem; height: 1.5rem; flex: none; }
.sfp-shape--tri { background: var(--blue); clip-path: polygon(50% 6%, 98% 92%, 2% 92%); border-radius: 3px; }
.sfp-shape--sq  { background: var(--yellow); border-radius: 5px; transform: scale(0.85); }
.sfp-shape--ci  { background: var(--red); border-radius: 50%; transform: scale(0.9); }
.sfp-shape--card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 4px; width: 1.1rem; height: 1.5rem; }

.sfp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

@media (max-width: 52rem) {
  .sfp-hero { grid-template-columns: 1fr; text-align: center; }
  .sfp-hero__title img { margin-inline: auto; }
  .sfp-hero__lead { margin-inline: auto; }
  .sfp-facts, .sfp-hero__actions { justify-content: center; }
  .sfp-hero__art { order: -1; }
}

/* --- 3D box (same die as PINTO: 758 x 1058 x 266 at the print scale) ---- */

.sfp {
  --bw: clamp(10rem, 40vw, 16rem);
  --bh: calc(var(--bw) * 1.3953);
  --bd: calc(var(--bw) * 0.3504);
}

.sfp-hero__art { display: grid; justify-items: center; gap: 0.5rem; }

.box-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--bw) * 1.7);
  height: calc(var(--bh) * 1.32);
  perspective: calc(var(--bw) * 5);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.box-stage.is-dragging { cursor: grabbing; }

.box3d {
  --ry: -24deg;
  --rx: -13deg;
  --bob: 0px;
  position: relative;
  width: var(--bw);
  height: var(--bh);
  transform-style: preserve-3d;
  transform: translateY(var(--bob)) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}

.box3d__face {
  position: absolute;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(30 36 51 / 0.08);
}

.box3d__face img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }

.box3d__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgb(255 255 255 / calc(var(--sheen, 0) * 0.3)) 0%, transparent 45%),
    rgb(30 36 51 / calc(var(--shade, 0) * 0.6));
  pointer-events: none;
}

.box3d__face--front, .box3d__face--back { inset: 0; }
.box3d__face--front  { transform: translateZ(calc(var(--bd) / 2)); }
.box3d__face--back   { transform: rotateY(180deg) translateZ(calc(var(--bd) / 2)); --shade: 0.15; }
.box3d__face--right, .box3d__face--left {
  top: 0;
  left: calc((var(--bw) - var(--bd)) / 2);
  width: var(--bd);
  height: var(--bh);
  --shade: 0.35;
}
.box3d__face--right  { transform: rotateY(90deg) translateZ(calc(var(--bw) / 2)); }
.box3d__face--left   { transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2)); }
.box3d__face--top, .box3d__face--bottom {
  left: 0;
  top: calc((var(--bh) - var(--bd)) / 2);
  width: var(--bw);
  height: var(--bd);
}
.box3d__face--top    { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2)); --shade: 0.05; }
.box3d__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2)); --shade: 0.5; }

.box-shadow {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: calc(var(--bw) * 1.15);
  height: calc(var(--bw) * 0.16);
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(30 36 51 / 0.35), transparent);
  transform: scale(var(--shadow-scale, 1));
  pointer-events: none;
  z-index: -1;
}

.box-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.no-js .box-hint { display: none; }
.no-js .box3d { animation: sfp-spin 14s linear infinite; }

@keyframes sfp-spin {
  from { transform: rotateX(-13deg) rotateY(-24deg); }
  to   { transform: rotateX(-13deg) rotateY(336deg); }
}

/* --- About -------------------------------------------------------------- */

.sfp-about { text-align: center; }
.sfp-about .sfp-h2 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }

.sfp-about__text {
  max-width: 44rem;
  margin: 1.1rem auto 0;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
}

.sfp-about__text strong { color: var(--blue); font-weight: 800; }

.sfp-mark {
  padding: 0 0.25em;
  border-radius: 6px;
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
  color: inherit;
  font-weight: 800;
}

/* --- Steps -------------------------------------------------------------- */

.sfp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.sfp-step {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  border: var(--sticker);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--lift);
}

.sfp-step h3 { margin: 0.9rem 0 0.35rem; font-size: 1.45rem; font-weight: 900; }
.sfp-step p  { margin: 0; color: var(--ink-soft); line-height: 1.5; }

.sfp-step__n {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--c);
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
}

.sfp-step__n--ci { border-radius: 50%; }
.sfp-step__n--sq { border-radius: 10px; }
.sfp-step__n--tri { clip-path: polygon(50% 4%, 100% 96%, 0 96%); color: var(--ink); padding-top: 0.7rem; width: 3.4rem; }
.sfp-step__n--check { border-radius: 50%; position: relative; }
.sfp-step__n--check::before {
  content: "";
  width: 1.1rem;
  height: 0.6rem;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: translateY(-0.12rem) rotate(-45deg);
  border-radius: 2px;
}

@media (max-width: 60rem) { .sfp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .sfp-steps { grid-template-columns: 1fr; } }

/* --- Split layout + card fan ------------------------------------------- */

.sfp-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.sfp-split--rev { grid-template-columns: 0.9fr 1.1fr; }

@media (max-width: 52rem) {
  .sfp-split, .sfp-split--rev { grid-template-columns: 1fr; }
}

.sfp-fan {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 1.5rem 0 2rem;
  list-style: none;
}

.sfp-fan li {
  --r: 0deg;
  width: clamp(6rem, 17vw, 9.5rem);
  margin-inline: clamp(-2.4rem, -4vw, -1.4rem);
  transform: rotate(var(--r)) translateY(var(--y, 0));
  transform-origin: 50% 120%;
  transition: transform 0.25s ease;
}

.sfp-fan li:nth-child(1) { --r: -16deg; --y: 1.2rem; }
.sfp-fan li:nth-child(2) { --r: -8deg; --y: 0.3rem; }
.sfp-fan li:nth-child(3) { --r: 0deg; }
.sfp-fan li:nth-child(4) { --r: 8deg; --y: 0.3rem; }
.sfp-fan li:nth-child(5) { --r: 16deg; --y: 1.2rem; }
.sfp-fan li:hover { transform: rotate(var(--r)) translateY(calc(var(--y, 0) - 1rem)); z-index: 1; }

.sfp-fan img, .sfp-level img, .sfp-verdict__cards img, .sfp-cta__card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7%/5%;
  box-shadow: 0 2px 4px rgb(30 36 51 / 0.12), 0 10px 24px rgb(30 36 51 / 0.16);
}

/* --- Question levels ---------------------------------------------------- */

.sfp-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 13rem));
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.sfp-level h3 { margin: 1rem 0 0; font-size: 1.3rem; font-weight: 900; }
.sfp-level p { margin: 0.15rem 0 0; }
.sfp-level strong { color: var(--c); font-weight: 800; }
.sfp-level:nth-child(1) img { transform: rotate(-3deg); }
.sfp-level:nth-child(3) img { transform: rotate(3deg); }

@media (max-width: 34rem) {
  .sfp-levels { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .sfp-level h3 { font-size: 1.05rem; }
  .sfp-level p { font-size: 0.85rem; }
}

/* --- Verdict ------------------------------------------------------------ */

.sfp-verdict__cards {
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.sfp-verdict__cards img { position: absolute; width: 58%; }
.sfp-verdict__cards img:first-child { left: 0; top: 4%; transform: rotate(-10deg); }
.sfp-verdict__cards img:last-child  { right: 0; top: 0; transform: rotate(7deg); }

.sfp-score {
  width: min(100%, 30rem);
  margin-top: 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--sticker);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
  font-size: 1rem;
}

.sfp-score th, .sfp-score td { padding: 0.7rem 0.9rem; text-align: center; border-top: 2px solid var(--line); }
.sfp-score thead th { border-top: 0; background: var(--ink); color: #fff; font-weight: 800; }
.sfp-score tbody th { text-align: left; font-weight: 600; }
.sfp-score td { font-weight: 900; font-size: 1.1rem; }
.sfp-score .is-plus { color: #0b7f6e; }
.sfp-score .is-minus { color: #b3263f; }

/* --- Box contents ------------------------------------------------------- */

.sfp-contents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.sfp-contents li {
  display: grid;
  gap: 0.2rem;
  padding: 1.3rem;
  border: 2px solid var(--line);
  border-top: 8px solid var(--c);
  border-radius: 18px;
  background: var(--paper);
}

.sfp-contents strong { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.sfp-contents span { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 44rem) { .sfp-contents { grid-template-columns: repeat(2, 1fr); } }

/* --- Closing ------------------------------------------------------------ */

.sfp-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-block: 1rem 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border: var(--sticker);
  border-radius: 28px;
  background: #eaf2fa;
  box-shadow: 6px 7px 0 var(--ink);
}

.sfp-cta__card { width: clamp(8rem, 20vw, 12rem); transform: rotate(-6deg); }
.sfp-cta__copy p { max-width: 30rem; margin: 0.7rem 0 1.4rem; color: var(--ink-soft); font-size: 1.1rem; }
.sfp-seal { display: block; width: 11rem; height: auto; margin-top: 1.5rem; }

@media (max-width: 40rem) {
  .sfp-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sfp-seal { margin-inline: auto; }
}

/* --- Footer ------------------------------------------------------------- */

.sfp-footer { border-top: 2px solid var(--line); color: var(--ink-soft); background: transparent; }
.sfp-footer a { font-weight: 800; text-decoration: none; }
.sfp-footer a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .sfp-button, .sfp-fan li, .sfc-res { transition: none; }
  .no-js .box3d { animation: none; }
}

/* --- Landing: button under the steps ----------------------------------- */
.sfp-steps__cta { margin-top: 1.8rem; }

/* --- Instructions page (instrucciones/) -------------------------------- */
.sfp-rules { max-width: 52rem; margin-inline: auto; width: 100%; padding-bottom: 3rem; }
.sfp-h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 900; line-height: 1; }
.sfp-rules__intro { padding-block: clamp(1.5rem, 5vw, 3rem) 1rem; }
.sfp-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.sfp-toc a { padding: 0.45rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.sfp-toc a:hover { background: var(--yellow); }
.sfp-rules__block { margin-top: 1.5rem; padding: clamp(1.25rem, 4vw, 2rem); border: var(--sticker); border-radius: 22px; background: var(--paper); box-shadow: var(--lift); scroll-margin-top: 1rem; }
.sfp-rules__block .sfp-h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.sfp-list { margin: 1rem 0 0; padding-left: 1.4rem; font-size: 1.05rem; line-height: 1.55; }
.sfp-list li + li { margin-top: 0.5rem; }
.sfp-list li::marker { font-weight: 900; color: var(--blue); }
.sfp-deal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.2rem; }
.sfp-deal div { display: grid; gap: 0.1rem; padding: 1rem; border: 2px solid var(--line); border-top: 6px solid var(--yellow); border-radius: 14px; }
.sfp-deal strong { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.sfp-deal span { color: var(--ink-soft); font-weight: 600; }
.sfp-deal em { margin-top: 0.4rem; font-style: normal; font-weight: 700; }
.sfp-turn { display: grid; gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.sfp-turn li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.sfp-turn h3 { margin: 0.2rem 0 0.25rem; font-size: 1.25rem; font-weight: 900; }
.sfp-turn p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.sfp-turn p strong { color: var(--ink); }
.sfp-anatomy { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: center; margin-top: 1.2rem; }
.sfp-anatomy img { width: 100%; height: auto; border-radius: 7%/5%; box-shadow: 0 6px 16px rgb(30 36 51 / 0.18); transform: rotate(-4deg); }
.sfp-anatomy dl { display: grid; gap: 0.7rem; margin: 0; }
.sfp-anatomy dt { font-weight: 900; }
.sfp-anatomy dd { margin: 0; color: var(--ink-soft); }
.sfp-rules__back { margin: 2.5rem 0 0; text-align: center; }
@media (max-width: 34rem) {
  .sfp-deal { grid-template-columns: 1fr; }
  .sfp-anatomy { grid-template-columns: 1fr; justify-items: center; }
  .sfp-anatomy img { width: 9rem; }
}

/* --- Score counter (contador/, sfc-* classes) --------------------------- */
.sfc { max-width: 40rem; margin-inline: auto; width: 100%; padding-bottom: 3rem; }
.sfc-top { padding-block: clamp(1.25rem, 4vw, 2.5rem) 0.5rem; }
.sfc-top .sfp-h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
.sfc-top h1:focus, .sfc-h2:focus, .sfc-owner:focus { outline: none; }
.sfc-card { margin-top: 1.25rem; padding: clamp(1.1rem, 4vw, 1.75rem); border: var(--sticker); border-radius: 22px; background: var(--paper); box-shadow: var(--lift); }
.sfc-h2 { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.9rem; font-size: 1.5rem; font-weight: 900; }
.sfc-count { color: var(--ink-soft); font-size: 0.95rem; font-weight: 700; }
.sfc-hint { margin: 0.8rem 0 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
.sfc-hint:empty { display: none; }
.sfc-error { margin: 0.6rem 0 0; color: #c62828; font-weight: 700; }
.sfc-error:empty { display: none; }
.sfc-dot { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ink); }

/* setup */
.sfc-names { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.sfc-name { display: flex; align-items: center; gap: 0.7rem; }
.sfc-name input { flex: 1; width: auto; min-width: 0; padding: 0.75rem 0.9rem; border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); background: #fff; }
.sfc-name input[aria-invalid="true"] { border-color: #c62828; box-shadow: 0 0 0 3px rgb(198 40 40 / 0.2); }
.sfc-x { flex: none; width: 2.4rem; height: 2.4rem; border: 2px solid var(--line); border-radius: 50%; background: #fff; font: inherit; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.sfc-x:hover { border-color: var(--red); color: var(--red); }
.sfc-add { margin-top: 0.8rem; padding: 0.6rem 1rem; border: 2px dashed var(--ink-soft); border-radius: 12px; background: transparent; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; width: 100%; }
.sfc-add:hover { border-color: var(--blue); color: var(--blue); }
.sfc-go { margin-top: 1.2rem; cursor: pointer; font-family: inherit; }

/* turn */
.sfc-last { margin: 1.25rem 0 0; padding: 0.75rem 1rem; border-left: 5px solid var(--green); border-radius: 0 12px 12px 0; background: #e6f8f5; line-height: 1.45; }
.sfc-progress { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.sfc-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.3rem 0 0; font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 900; line-height: 1.1; }
.sfc-owner__label { flex-basis: 100%; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }
.sfc-owner .sfc-dot { width: 1.1rem; height: 1.1rem; }
.sfc-step { display: flex; align-items: center; gap: 0.55rem; margin: 1.5rem 0 0.7rem; font-size: 1.05rem; font-weight: 800; }
.sfc-step b { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; }
.sfc-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.sfc-pick { display: grid; gap: 0.15rem; padding: 0.8rem 0.4rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; border-top-width: 7px; }
.sfc-pick strong { font-size: 1.1rem; font-weight: 900; }
.sfc-pick span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.sfc-pick--facil { border-top-color: var(--green); }
.sfc-pick--media { border-top-color: var(--yellow); }
.sfc-pick--dificil { border-top-color: var(--red); }
.sfc-pick.is-on { background: var(--ink); color: #fff; box-shadow: 3px 4px 0 var(--blue); }
.sfc-pick.is-on span { color: #dfe3ea; }
.sfc-pick:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.sfc-votes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.sfc-votes li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.sfc-v__name { flex: 1; min-width: 6rem; font-weight: 800; font-size: 1.05rem; }
.sfc-v__btns { display: flex; gap: 0.45rem; }
.sfc-vote { padding: 0.55rem 0.8rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: inherit; font-weight: 800; font-size: 0.92rem; color: var(--ink); cursor: pointer; }
.sfc-vote--ok.is-on { background: var(--green); color: #fff; border-color: #0b8b78; }
.sfc-vote--no.is-on { background: var(--red); color: #fff; border-color: #b52525; }
.sfc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.sfc-res { padding: 1rem; border: var(--sticker); border-radius: 16px; box-shadow: var(--lift); font: inherit; font-size: 1.2rem; font-weight: 900; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.sfc-res--ok { background: var(--green); color: #fff; }
.sfc-res--no { background: var(--red); color: #fff; }
.sfc-res:active:not(:disabled) { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.sfc-res:disabled { background: #eef0f3; color: #9aa1ad; border-color: #c9ced6; box-shadow: none; cursor: not-allowed; }

/* scoreboard */
.sfc-board ol { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sfc-board li { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.7rem; border-radius: 12px; }
.sfc-board li.is-owner { background: #fff4cc; }
.sfc-b__name { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.sfc-b__name em { margin-left: 0.3rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--yellow); font-style: normal; font-size: 0.75rem; font-weight: 800; }
.sfc-lvs { display: flex; gap: 0.25rem; }
.sfc-lv { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border: 2px dashed #c9ced6; border-radius: 6px; color: #b3b9c3; font-size: 0.72rem; font-weight: 900; }
.sfc-lv.is-on { border-style: solid; color: #fff; }
.sfc-lv--facil.is-on { background: var(--green); border-color: var(--green); }
.sfc-lv--media.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.sfc-lv--dificil.is-on { background: var(--red); border-color: var(--red); }
.sfc-b__pts { min-width: 2.2rem; text-align: right; font-size: 1.4rem; font-weight: 900; }

/* end / tie */
.sfc-end { text-align: center; }
.sfc-end .sfc-h2 { justify-content: center; font-size: clamp(1.8rem, 6vw, 2.4rem); }
.sfc-crown { margin: 0; font-size: 2.6rem; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); line-height: 1; }
.sfc-end .sfp-lead { margin-inline: auto; }
.sfc-rank { display: grid; gap: 0.35rem; margin: 1.3rem 0 0; padding: 0; list-style: none; text-align: left; }
.sfc-rank li { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; }
.sfc-rank li.is-first { border-color: var(--ink); background: #fff4cc; }
.sfc-rank__pos { width: 1.4rem; font-weight: 900; color: var(--ink-soft); }
.sfc-rank__name { flex: 1; font-weight: 800; }
.sfc-end .sfp-button { margin-top: 1.2rem; cursor: pointer; font-family: inherit; }
.sfc-again { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.2rem; }

/* tools */
.sfc-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 1.2rem; }
.sfc-link { padding: 0.4rem 0.2rem; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sfc-link:hover { color: var(--ink); }
.sfc-confirm { margin-top: 0.8rem; padding: 1rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.sfc-confirm p { margin: 0 0 0.8rem; font-weight: 800; }
.sfc-confirm .sfp-button { cursor: pointer; font-family: inherit; }

@media (max-width: 26rem) {
  .sfc-v__btns { width: 100%; }
  .sfc-vote { flex: 1; }
}

/* --- Phone PDF button on the instructions page ------------------------ */
.sfp-pdf { margin-top: 1.4rem; gap: 0.55rem; }
.sfp-pdf svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* --- Counter call-to-action on the landing and instructions pages ------- */
.sfp-counter { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.sfp-counter p { margin: 0; max-width: 30rem; color: var(--ink-soft); line-height: 1.5; }
