@font-face {
  font-family: "Inter Tight";
  font-weight: 400;
  src: url("../fonts/InterTight-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-weight: 500;
  src: url("../fonts/InterTight-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-weight: 600;
  src: url("../fonts/InterTight-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-weight: 700;
  src: url("../fonts/InterTight-700.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --surface: #101010;
  --surface-2: #161616;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text: #ffffff;
  --text-soft: #e8e4df;
  --muted: #b3afac;
  --disabled: #828282;
  --cream: #faf7f3;
  --turquoise: #2ad2c9;
  --pink: #e93cac;
  --pink-soft: #f184cb;
  --blue: #15b3e4;
  --green: #26d07c;
  --orange: #fe5000;
  --cta: linear-gradient(90deg, #2ad2c9 0%, #15b3e4 48%, #e93cac 100%);
  --radius-field: 14px;
  --radius-card: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  touch-action: manipulation;
  overflow: hidden;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#app {
  height: 100dvh;
  max-height: 100dvh;
  max-width: 1180px;
  margin: 0 auto;
  padding:
    calc(20px + var(--safe-top))
    clamp(36px, 6.5vw, 72px)
    0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.screen.active {
  display: flex;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-brand {
  display: block;
  width: min(148px, 36vw);
  height: auto;
  opacity: 0.95;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.icon-btn {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text);
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover {
  background: #1c1c1c;
  border-color: var(--turquoise);
  color: var(--turquoise);
}
.icon-btn .ico {
  width: 28px;
  height: 28px;
  display: block;
}
.icon-btn-lg {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}
.icon-btn-lg .ico {
  width: 40px;
  height: 40px;
}
.screen-join .topbar-mode {
  justify-content: flex-end;
  min-height: 72px;
}
.screen-join .topbar-actions {
  gap: 16px;
}
.icon-btn[data-audio-mute] .ico-sound-off { display: none; }
.icon-btn[data-audio-mute][aria-pressed="true"] .ico-sound-on { display: none; }
.icon-btn[data-audio-mute][aria-pressed="true"] .ico-sound-off { display: block; }
.icon-btn[data-audio-mute][aria-pressed="true"] {
  color: var(--muted);
  border-color: var(--border);
}

.status-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.status-copy small {
  color: var(--disabled);
  font-size: 13px;
  font-weight: 500;
}

.status-copy strong {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kicker {
  margin: 0;
  color: var(--turquoise);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker.pink { color: var(--pink); }

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.45;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grow { flex: 1; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: clamp(96px, 11vh, 112px);
  padding: 0 22px;
  border-radius: var(--radius-field);
  background: #101010;
  border: 5px solid var(--border-strong);
  outline: none;
  font-size: clamp(24px, 3.2vw, 28px);
  font-weight: 500;
  color: var(--text-soft);
}

.field input:focus {
  border-color: transparent;
  box-shadow: none;
  background:
    linear-gradient(#101010, #101010) padding-box,
    var(--cta) border-box;
  border: 5px solid transparent;
}

.email-compose {
  display: flex;
  align-items: stretch;
  min-height: clamp(96px, 11vh, 112px);
  border-radius: var(--radius-field);
  border: 5px solid var(--border-strong);
  background: #101010;
  overflow: hidden;
}
.email-compose:focus-within {
  border-color: transparent;
  box-shadow: none;
  background:
    linear-gradient(#101010, #101010) padding-box,
    var(--cta) border-box;
  border: 5px solid transparent;
}
.email-compose input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: clamp(96px, 11vh, 112px);
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.email-compose input:focus {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.email-domain {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 16px 0 6px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  user-select: none;
}

.field .hint {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
}

.field .hint.error { color: var(--orange); }
.field .hint.ok { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 84px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: clamp(24px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--cta);
  color: #000;
}

.btn-ghost {
  background: var(--surface-2);
  border: 1.4px solid var(--border-strong);
  color: var(--text-soft);
  border-radius: 16px;
}

.btn-block { width: 100%; }

.brand-campaign {
  display: block;
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
  margin-top: auto;
  align-self: center;
}
.brand-campaign.sm {
  width: min(100%, 280px);
}
.brand-credicorp {
  display: block;
  width: min(180px, 46vw);
  height: auto;
}

.campaign-hero {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 12px 8px;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(42, 210, 201, 0.14), transparent 55%),
    radial-gradient(70% 80% at 80% 20%, rgba(233, 60, 172, 0.12), transparent 50%);
  border-radius: 24px;
}
.campaign-hero img {
  width: min(100%, 480px);
  height: auto;
}
.campaign-line {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: transparent;
  background: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.campaign-line.soft {
  color: var(--muted);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: 500;
}

.app-brand-bar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 0 calc(28px + var(--safe-bottom));
  transform: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 35%, #000 100%);
  z-index: 12;
}
.app-brand-bar small {
  color: var(--disabled);
  font-size: clamp(14px, 2vw, 17px);
}
.app-brand-bar .brand-credicorp {
  width: min(178px, 46vw);
}

.footer-brand {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-brand small {
  color: var(--disabled);
  font-size: clamp(14px, 1.9vw, 16px);
}

.flow-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 4px;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 600;
}

.flow-node .bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #121212;
  border: 1.6px solid var(--turquoise);
  color: var(--text);
}

.flow-node:nth-child(3) .bubble {
  border-color: var(--pink-soft);
}

.connection-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.connection-status .dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--disabled);
  flex: 0 0 auto;
}

.connection-status.ok .dot { background: var(--green); }
.connection-status.error .dot { background: var(--orange); }
.connection-status strong { display: block; font-size: clamp(20px, 2.8vw, 24px); }
.connection-status.ok strong { color: var(--green); }
.connection-status.error strong { color: var(--orange); }
.connection-status p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
}

.screen-join {
  position: relative;
  z-index: 0;
  gap: 12px;
  overflow: visible;
  overflow-x: visible;
  overflow-y: auto;
}
/* Luz difusa full-bleed: fixed en app real; absolute en preview/specs. */
#app:has(.screen-join.active)::before,
.preview-app:has(.screen-join.active)::before {
  content: "";
  position: fixed;
  z-index: 0;
  left: 50%;
  top: 36%;
  width: min(1600px, 140vw);
  height: min(1200px, 120vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 62% 52% at 50% 38%, rgba(42, 210, 201, 0.4) 0%, rgba(42, 210, 201, 0) 72%),
    radial-gradient(ellipse 52% 44% at 58% 62%, rgba(233, 60, 172, 0.32) 0%, rgba(233, 60, 172, 0) 74%),
    radial-gradient(ellipse 48% 40% at 40% 58%, rgba(21, 179, 228, 0.3) 0%, rgba(21, 179, 228, 0) 76%),
    radial-gradient(ellipse 78% 64% at 50% 48%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 78%);
  filter: blur(72px);
  pointer-events: none;
}
.preview-app:has(.screen-join.active)::before {
  position: absolute;
  width: 140%;
  height: 110%;
  top: 40%;
}
#app:has(.screen-join.active.is-rooms)::before,
.preview-app:has(.screen-join.active.is-rooms)::before {
  opacity: 0.45;
}
@media (prefers-reduced-motion: reduce) {
  #app:has(.screen-join.active)::before,
  .preview-app:has(.screen-join.active)::before {
    filter: blur(48px);
    opacity: 0.85;
  }
}
.screen-join .topbar-mode,
.screen-join .form-body,
.screen-join .form-actions {
  position: relative;
  z-index: 1;
}
.screen-join .form-body {
  justify-content: flex-start;
  gap: clamp(16px, 2.4vh, 28px);
  padding: 0;
  width: min(100%, 780px);
  margin-inline: auto;
}
.screen-join .join-step[data-join-step="1"] {
  gap: clamp(28px, 4vh, 44px);
  align-items: stretch;
}
.screen-join .join-step[data-join-step="1"] .campaign-hero {
  margin-bottom: clamp(4px, 1vh, 12px);
}
.screen-join .join-step[data-join-step="1"] .form-intro {
  margin-top: 0;
  padding-top: clamp(4px, 0.8vh, 10px);
}
.screen-join .join-step[data-join-step="2"] {
  gap: clamp(20px, 3vh, 32px);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.screen-join.is-rooms .form-body {
  justify-content: center;
  align-items: center;
}
.screen-join .join-step[data-join-step="2"] .form-shield {
  padding: clamp(8px, 1.5vh, 16px) 0 clamp(4px, 0.8vh, 10px);
}
.screen-join .join-step[data-join-step="2"] .form-shield img {
  width: clamp(64px, 11vw, 92px);
}
.screen-join .join-step[data-join-step="2"] .form-intro {
  text-align: center;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(8px, 1.5vh, 16px);
}
.screen-join .join-step[data-join-step="2"] .room-list {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  margin-top: clamp(12px, 2.2vh, 24px);
}
.screen-join .campaign-hero {
  position: relative;
  width: min(100%, 420px);
  max-height: min(28vh, 260px);
  margin: 0 auto;
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
  isolation: auto;
}
.screen-join .campaign-hero img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: min(28vh, 260px);
  margin-inline: auto;
  object-fit: contain;
}
.screen-join .campaign-hero .glitch-base {
  position: relative;
  z-index: 1;
}
.screen-join .campaign-hero .glitch-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}
.screen-join.active .campaign-hero.is-glitch {
  animation: mode-enter-logo 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.screen-join.active .campaign-hero.is-glitch .glitch-base {
  animation: campaign-glitch-base 5.5s steps(1, end) infinite;
}
.screen-join.active .campaign-hero.is-glitch .glitch-cyan {
  mix-blend-mode: screen;
  filter: sepia(1) saturate(12) hue-rotate(130deg) brightness(1.25) contrast(1.2);
  animation: campaign-glitch-cyan 5.5s steps(1, end) infinite;
}
.screen-join.active .campaign-hero.is-glitch .glitch-pink {
  mix-blend-mode: screen;
  filter: sepia(1) saturate(14) hue-rotate(295deg) brightness(1.2) contrast(1.15);
  animation: campaign-glitch-pink 5.5s steps(1, end) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .screen-join.active .campaign-hero.is-glitch,
  .screen-join.active .campaign-hero.is-glitch .glitch-base,
  .screen-join.active .campaign-hero.is-glitch .glitch-cyan,
  .screen-join.active .campaign-hero.is-glitch .glitch-pink {
    animation: none !important;
  }
  .screen-join .campaign-hero .glitch-layer {
    display: none;
  }
}
@keyframes campaign-glitch-base {
  0%, 5%, 12%, 17%, 22%, 28%, 36%, 100% {
    transform: translate(0, 0) skewX(0deg);
    filter: none;
  }
  6% {
    transform: translate(-10px, 2px) skewX(-2deg);
    filter: contrast(1.45) saturate(1.5) brightness(1.1);
  }
  7% {
    transform: translate(14px, -4px) skewX(3deg);
    filter: contrast(1.6) hue-rotate(-12deg);
  }
  8% {
    transform: translate(-6px, 3px) skewX(-1deg);
  }
  9% {
    transform: translate(8px, -2px);
  }
  13% {
    transform: translate(12px, 1px) skewX(2deg);
    filter: contrast(1.5) saturate(1.4);
  }
  14% {
    transform: translate(-16px, -3px) skewX(-3deg);
  }
  15% {
    transform: translate(5px, 4px);
  }
  18% {
    transform: translate(-8px, -2px) skewX(1deg);
    filter: contrast(1.7) brightness(1.15);
  }
  19% {
    transform: translate(18px, 3px) skewX(-2deg);
  }
  20% {
    transform: translate(-4px, 0);
  }
  24% {
    transform: translate(9px, -5px) skewX(2deg);
    filter: contrast(1.55) saturate(1.6);
  }
  25% {
    transform: translate(-14px, 2px) skewX(-2deg);
  }
  26% {
    transform: translate(3px, 1px);
  }
  32% {
    transform: translate(-11px, 3px) skewX(-2deg);
    filter: contrast(1.65) hue-rotate(10deg);
  }
  33% {
    transform: translate(15px, -2px) skewX(3deg);
  }
  34% {
    transform: translate(-7px, 1px);
  }
  35% {
    transform: translate(4px, -3px);
  }
}
@keyframes campaign-glitch-cyan {
  0%, 5%, 12%, 17%, 22%, 28%, 36%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 0);
    clip-path: inset(0 0 100% 0);
  }
  6% {
    opacity: 1;
    visibility: visible;
    transform: translate(16px, -4px);
    clip-path: inset(6% 0 70% 0);
  }
  7% {
    opacity: 0.95;
    visibility: visible;
    transform: translate(-18px, 5px);
    clip-path: inset(28% 0 40% 0);
  }
  8% {
    opacity: 0.9;
    visibility: visible;
    transform: translate(12px, 2px);
    clip-path: inset(55% 0 18% 0);
  }
  9% {
    opacity: 0.75;
    visibility: visible;
    transform: translate(-10px, -3px);
    clip-path: inset(78% 0 4% 0);
  }
  13% {
    opacity: 1;
    visibility: visible;
    transform: translate(-20px, 3px);
    clip-path: inset(10% 0 55% 0);
  }
  14% {
    opacity: 0.9;
    visibility: visible;
    transform: translate(22px, -6px);
    clip-path: inset(45% 0 20% 0);
  }
  15% {
    opacity: 0.7;
    visibility: visible;
    transform: translate(-8px, 4px);
    clip-path: inset(72% 0 6% 0);
  }
  18% {
    opacity: 1;
    visibility: visible;
    transform: translate(14px, 2px);
    clip-path: inset(2% 0 62% 0);
  }
  19% {
    opacity: 0.95;
    visibility: visible;
    transform: translate(-24px, -3px);
    clip-path: inset(35% 0 30% 0);
  }
  20% {
    opacity: 0.8;
    visibility: visible;
    transform: translate(18px, 5px);
    clip-path: inset(68% 0 8% 0);
  }
  24% {
    opacity: 1;
    visibility: visible;
    transform: translate(-15px, -2px);
    clip-path: inset(18% 0 48% 0);
  }
  25% {
    opacity: 0.9;
    visibility: visible;
    transform: translate(20px, 4px);
    clip-path: inset(52% 0 12% 0);
  }
  26% {
    opacity: 0.65;
    visibility: visible;
    transform: translate(-12px, 0);
    clip-path: inset(80% 0 2% 0);
  }
  32% {
    opacity: 1;
    visibility: visible;
    transform: translate(19px, -5px);
    clip-path: inset(8% 0 58% 0);
  }
  33% {
    opacity: 0.95;
    visibility: visible;
    transform: translate(-21px, 3px);
    clip-path: inset(40% 0 25% 0);
  }
  34% {
    opacity: 0.85;
    visibility: visible;
    transform: translate(11px, -2px);
    clip-path: inset(64% 0 10% 0);
  }
  35% {
    opacity: 0.7;
    visibility: visible;
    transform: translate(-9px, 4px);
    clip-path: inset(84% 0 0 0);
  }
}
@keyframes campaign-glitch-pink {
  0%, 5%, 12%, 17%, 22%, 28%, 36%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 0);
    clip-path: inset(0 0 100% 0);
  }
  6% {
    opacity: 1;
    visibility: visible;
    transform: translate(-18px, 4px);
    clip-path: inset(4% 0 66% 0);
  }
  7% {
    opacity: 0.95;
    visibility: visible;
    transform: translate(20px, -5px);
    clip-path: inset(32% 0 34% 0);
  }
  8% {
    opacity: 0.85;
    visibility: visible;
    transform: translate(-14px, 2px);
    clip-path: inset(58% 0 14% 0);
  }
  9% {
    opacity: 0.7;
    visibility: visible;
    transform: translate(10px, 3px);
    clip-path: inset(76% 0 2% 0);
  }
  13% {
    opacity: 1;
    visibility: visible;
    transform: translate(21px, -3px);
    clip-path: inset(14% 0 50% 0);
  }
  14% {
    opacity: 0.9;
    visibility: visible;
    transform: translate(-23px, 6px);
    clip-path: inset(48% 0 16% 0);
  }
  15% {
    opacity: 0.7;
    visibility: visible;
    transform: translate(9px, -4px);
    clip-path: inset(74% 0 4% 0);
  }
  18% {
    opacity: 1;
    visibility: visible;
    transform: translate(-16px, -2px);
    clip-path: inset(0 0 60% 0);
  }
  19% {
    opacity: 0.95;
    visibility: visible;
    transform: translate(25px, 4px);
    clip-path: inset(38% 0 28% 0);
  }
  20% {
    opacity: 0.8;
    visibility: visible;
    transform: translate(-17px, -4px);
    clip-path: inset(70% 0 6% 0);
  }
  24% {
    opacity: 1;
    visibility: visible;
    transform: translate(16px, 3px);
    clip-path: inset(20% 0 44% 0);
  }
  25% {
    opacity: 0.9;
    visibility: visible;
    transform: translate(-22px, -4px);
    clip-path: inset(54% 0 10% 0);
  }
  26% {
    opacity: 0.65;
    visibility: visible;
    transform: translate(13px, 1px);
    clip-path: inset(82% 0 0 0);
  }
  32% {
    opacity: 1;
    visibility: visible;
    transform: translate(-20px, 5px);
    clip-path: inset(6% 0 56% 0);
  }
  33% {
    opacity: 0.95;
    visibility: visible;
    transform: translate(22px, -3px);
    clip-path: inset(42% 0 22% 0);
  }
  34% {
    opacity: 0.85;
    visibility: visible;
    transform: translate(-12px, 2px);
    clip-path: inset(66% 0 8% 0);
  }
  35% {
    opacity: 0.7;
    visibility: visible;
    transform: translate(8px, -4px);
    clip-path: inset(86% 0 0 0);
  }
}
.mode-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vw, 22px);
  width: min(100%, 720px);
  margin: clamp(72px, 14vh, 140px) auto 0;
  align-items: stretch;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
}
.mode-actions h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5.2vw, 48px);
}

.mode-card {
  --mode-glow: rgba(42, 210, 201, 0.45);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 20px);
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  padding: clamp(18px, 3vw, 28px);
  text-align: center;
  border-radius: 24px;
  background:
    linear-gradient(#0c0c0c, #0c0c0c) padding-box,
    var(--cta) border-box;
  border: 2px solid transparent;
  overflow: visible;
}
.mode-card::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    var(--mode-glow) 0%,
    rgba(42, 210, 201, 0.18) 32%,
    transparent 68%
  );
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}
.mode-card.join {
  --mode-glow: rgba(233, 60, 172, 0.48);
}
.mode-card.join::before {
  background: radial-gradient(
    circle at center,
    var(--mode-glow) 0%,
    rgba(233, 60, 172, 0.2) 32%,
    transparent 68%
  );
}
.screen-join.active .mode-card {
  animation: mode-enter-card 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.screen-join.active .mode-card:nth-child(1) {
  animation-delay: 0.18s;
}
.screen-join.active .mode-card:nth-child(2) {
  animation-delay: 0.3s;
}
@keyframes mode-enter-logo {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes mode-enter-card {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.mode-card .icon {
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: #141414;
  border: 1.6px solid var(--turquoise);
  overflow: hidden;
  flex: 0 0 auto;
}
.mode-card .icon img {
  width: 64%;
  height: 64%;
  object-fit: contain;
}

.mode-card.join .icon {
  border-color: var(--pink);
}

.mode-card .copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.mode-card .copy small {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--turquoise);
}

.mode-card.join .copy small { color: var(--pink); }

.mode-card .copy strong {
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.mode-card .copy span {
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.3;
}

.screen-form {
  gap: 20px;
}
.screen-form .form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(28px, 4.5vh, 48px);
  min-height: 0;
  padding: clamp(12px, 2.5vh, 28px) 0;
}
.screen-form .form-shield {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 5vh, 48px) 0 clamp(10px, 1.8vh, 18px);
}
.screen-form .form-shield::before {
  content: "";
  position: absolute;
  inset: -8% 10% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(42, 210, 201, 0.42) 0%,
    rgba(42, 210, 201, 0.16) 34%,
    transparent 70%
  );
  filter: blur(20px);
  opacity: 0.95;
  pointer-events: none;
}
.screen-form .form-shield img {
  width: clamp(70px, 12.8vw, 102px);
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
#screen-create .form-body {
  justify-content: flex-start;
  gap: clamp(14px, 2.2vh, 22px);
  padding-top: clamp(20px, 4vh, 40px);
}
#screen-create .form-fields {
  margin-top: clamp(18px, 3.5vh, 36px);
}
#screen-create .form-intro,
.screen-join .join-step .form-intro {
  text-align: center;
  align-items: center;
}
#screen-create .form-intro .lead,
.screen-join .join-step .form-intro .lead {
  text-align: center;
}
#screen-create .form-intro .kicker {
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: 0.12em;
}
.screen-form .form-intro {
  gap: 10px;
  margin: 0;
}
.screen-form .form-intro h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 48px);
  letter-spacing: -0.03em;
}
.screen-form .form-intro .lead {
  max-width: 40rem;
}
.screen-form .form-fields {
  gap: clamp(20px, 2.8vh, 28px);
  margin: 0;
}
.screen-form .form-fields .field {
  gap: 12px;
}
.screen-form .form-fields .field label {
  font-size: clamp(18px, 2.5vw, 22px);
  letter-spacing: 0.1em;
}
.screen-form .form-preview {
  display: grid;
  gap: 16px;
  margin: 0;
}
.screen-form .form-preview .preview-label {
  margin: 0;
}
.screen-form .room-list {
  margin: 0;
  gap: clamp(12px, 1.8vw, 18px);
}
.screen-form .form-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: clamp(20px, 3.5vh, 36px);
}
.screen-join .form-actions .btn {
  min-height: clamp(96px, 12vh, 120px);
  font-size: clamp(30px, 4.2vw, 40px);
  letter-spacing: -0.02em;
  border-radius: 999px;
}
.screen-join .form-actions:not(:has(.btn:not(.hidden))) {
  display: none;
}
.screen-join .form-actions .btn.btn-ghost {
  min-height: clamp(72px, 9vh, 92px);
  font-size: clamp(24px, 3.2vw, 32px);
}
.join-step {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.5vh, 36px);
  min-height: 0;
}
.join-step .form-intro .lead strong {
  color: var(--turquoise);
}

.mode-card .chev {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
}

.chip.ok {
  background: #10281c;
  border-color: transparent;
  color: var(--green);
}

.chip.pink {
  background: #1a1020;
  border-color: transparent;
  color: var(--pink-soft);
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.preview-card .badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1.6px solid var(--turquoise);
  background: #141414;
  overflow: hidden;
  flex: 0 0 auto;
}
.preview-card .badge img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.preview-card strong {
  display: block;
  font-size: clamp(24px, 3.2vw, 28px);
}

.preview-card span {
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
}

.preview-label {
  margin: 0 0 8px;
  color: var(--disabled);
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.room-list {
  --room-gap: clamp(14px, 2vw, 20px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--room-gap);
  align-items: stretch;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}
.room-list-empty {
  grid-column: 1 / -1;
}
/* 1 sola o la 3.ª: mitad de fila, centrada */
.room-list > .room-card:only-child,
.room-list > .room-card:nth-child(3) {
  grid-column: 1 / -1;
  width: calc((100% - var(--room-gap)) / 2);
  max-width: 100%;
  justify-self: center;
}

.room-card {
  --room-a: #2ad2c9;
  --room-b: #15b3e4;
  --room-ink: #041416;
  --room-soft: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(10px, 1.5vh, 14px);
  width: 100%;
  min-height: 0;
  padding: clamp(12px, 1.8vh, 16px);
  text-align: left;
  border-radius: 22px;
  background:
    linear-gradient(155deg, var(--room-a) 0%, var(--room-b) 100%);
  border: 1.6px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
}
.room-card.tone-0 {
  --room-a: #2ad2c9;
  --room-b: #0f8f9a;
  --room-ink: #04201f;
}
.room-card.tone-1 {
  --room-a: #e93cac;
  --room-b: #9b1f78;
  --room-ink: #2a0520;
}
.room-card.tone-2 {
  --room-a: #fe6a1a;
  --room-b: #c43a00;
  --room-ink: #2a1005;
}
.room-card-swatch {
  display: grid;
  place-items: center;
  min-height: clamp(72px, 10vh, 96px);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.room-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -18%;
  top: -30%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 68%);
  pointer-events: none;
}
.room-card > * {
  position: relative;
  z-index: 1;
}

.room-card.selected {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.room-card.full {
  opacity: 0.48;
  filter: grayscale(0.25);
}

.room-card .shield {
  width: clamp(52px, 7vw, 68px);
  height: clamp(52px, 7vw, 68px);
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  flex: 0 0 auto;
  margin: 0;
}
.room-card .shield img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: brightness(1.15);
}

.room-card .room-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.room-card .room-card-count {
  color: #fff;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.room-card .room-card-names {
  color: var(--room-soft);
  font-size: clamp(13px, 1.7vw, 15px);
  line-height: 1.35;
  margin: 0;
  width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-card .pill {
  display: inline-flex;
  margin-top: 0;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: clamp(48px, 6vh, 58px);
  padding: 0 18px;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 800;
  border-radius: 999px;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.room-card .pill.enter {
  background: #fff;
  color: var(--room-ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.room-card .pill.full {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  box-shadow: none;
}
.mode-actions.mode-actions-single {
  display: block;
  grid-template-columns: none;
  /* Mismo ancho que el logo campaña del inicio */
  width: min(100%, 634px);
  margin: clamp(40px, 7vh, 72px) auto 0;
  padding-bottom: clamp(12px, 3vh, 28px);
}
.btn-empezar {
  width: 100%;
  min-height: clamp(96px, 12vh, 120px);
  font-size: clamp(30px, 4.2vw, 40px);
  letter-spacing: -0.02em;
  border-radius: 999px;
}

.pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-soft);
}

.pill.enter {
  background: #10281c;
  color: var(--green);
}

.pill.full {
  background: #24140c;
  color: var(--orange);
}

.screen-lobby {
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}
.lobby-body {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lobby-body > .lobby-hero,
.lobby-body > .lobby-roster,
.lobby-body > .lobby-actions {
  flex: 0 0 auto;
}
.lobby-actions {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}
.lobby-actions .btn {
  min-height: clamp(96px, 12vh, 120px);
  font-size: clamp(30px, 4.2vw, 40px);
  letter-spacing: -0.02em;
  border-radius: 999px;
}
.lobby-actions .note {
  color: var(--text-soft);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lobby-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.4vw, 16px);
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 3vw, 28px);
  border-radius: 28px;
  background:
    radial-gradient(110% 140% at 50% 0%, rgba(42, 210, 201, 0.38), transparent 58%),
    radial-gradient(90% 110% at 85% 20%, rgba(233, 60, 172, 0.28), transparent 55%),
    #0a0a0a;
  border: 1px solid rgba(42, 210, 201, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 40px rgba(42, 210, 201, 0.12),
    0 0 64px rgba(233, 60, 172, 0.1);
  position: relative;
  overflow: hidden;
}
.lobby-hero::before {
  content: "";
  position: absolute;
  inset: -20% 18% auto;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(42, 210, 201, 0.4) 0%,
    rgba(42, 210, 201, 0.14) 36%,
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}
.lobby-shield {
  position: relative;
  z-index: 1;
  width: clamp(78px, 14vw, 104px);
  height: clamp(78px, 14vw, 104px);
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: #141414;
  border: 1.6px solid var(--turquoise);
  flex: 0 0 auto;
}
.lobby-shield img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}
.lobby-team-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lobby-team-copy .kicker {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lobby-team-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 100%;
}
.lobby-status {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(42, 210, 201, 0.1);
  border: 1px solid rgba(42, 210, 201, 0.35);
  color: var(--text-soft);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 600;
  line-height: 1.25;
}
.lobby-status.is-ready {
  background: rgba(42, 210, 201, 0.16);
  border-color: rgba(42, 210, 201, 0.55);
  color: #fff;
}
.lobby-slots {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  width: 100%;
  margin-top: 4px;
}
.lobby-slot {
  position: relative;
  width: clamp(40px, 6.4vw, 50px);
  height: clamp(38px, 6vw, 46px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.lobby-slot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}
.lobby-slot:not(.empty)::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: 0;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    rgba(42, 210, 201, 0.55),
    rgba(21, 179, 228, 0.4),
    rgba(233, 60, 172, 0.5),
    rgba(42, 210, 201, 0.55)
  );
  background-size: 220% 220%;
  filter: blur(8px);
  opacity: 0.9;
  animation: lobby-seat-gradient 3.6s linear infinite;
  pointer-events: none;
}
.lobby-slot.empty {
  opacity: 0.72;
  filter: none;
}
.lobby-slot.empty img {
  filter:
    brightness(1.45)
    drop-shadow(0 0 0.5px rgba(42, 210, 201, 0.55));
}
.lobby-count-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 600;
}

.lobby-roster {
  display: grid;
  gap: 14px;
}
.lobby-roster-label {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.seats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.seat {
  width: clamp(64px, 9vw, 84px);
  height: clamp(64px, 9vw, 84px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: #000;
  background: var(--cta);
  box-shadow: 0 0 0 0 rgba(42, 210, 201, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.seat.host {
  box-shadow: 0 0 0 3px rgba(233, 60, 172, 0.45);
}
.seat.mine {
  transform: scale(1.06);
}
.seat.empty {
  background: transparent;
  border: 1.6px dashed var(--border-strong);
  color: var(--disabled);
  animation: seat-pulse 1.8s ease-in-out infinite;
}
.seat.empty span {
  font-size: 22px;
  font-weight: 500;
  opacity: 0.7;
}
@keyframes seat-pulse {
  0%, 100% { border-color: #3a3a3a; }
  50% { border-color: rgba(42, 210, 201, 0.55); }
}

.player-list {
  --player-gap: clamp(12px, 1.8vw, 16px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--player-gap);
}

.player-row,
.player-empty {
  --player-card-w: calc((100% - (2 * var(--player-gap))) / 3);
  flex: 0 0 var(--player-card-w);
  width: var(--player-card-w);
  max-width: var(--player-card-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: clamp(112px, 13.5vw, 148px);
  padding: clamp(12px, 1.6vw, 18px) clamp(8px, 1.2vw, 12px);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}
.player-row {
  border: 1.5px solid rgba(42, 210, 201, 0.42);
  background: #121212;
}
.player-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    rgba(42, 210, 201, 0.2) 0%,
    rgba(21, 179, 228, 0.1) 28%,
    rgba(233, 60, 172, 0.18) 55%,
    rgba(42, 210, 201, 0.16) 78%,
    rgba(21, 179, 228, 0.12) 100%
  );
  background-size: 240% 100%;
  animation: lobby-seat-gradient 4.5s ease-in-out infinite;
  pointer-events: none;
}
.player-row > * {
  position: relative;
  z-index: 1;
}
.player-row.mine {
  border-color: rgba(42, 210, 201, 0.7);
  box-shadow: 0 0 0 1px rgba(42, 210, 201, 0.18);
}
.player-row.host {
  border-color: rgba(233, 60, 172, 0.55);
  box-shadow: 0 0 0 1px rgba(233, 60, 172, 0.16);
}

.player-empty {
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  color: var(--disabled);
}

@keyframes lobby-seat-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.avatar {
  width: clamp(52px, 7vw, 64px);
  height: clamp(52px, 7vw, 64px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 700;
  color: #000;
  background: var(--blue);
  flex: 0 0 auto;
}
.avatar.host {
  background: var(--cta);
}
.avatar.wait {
  background: transparent;
  border: 1.4px dashed var(--border-strong);
  color: var(--disabled);
}
.avatar.heart {
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
}
.avatar.heart img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
}
.avatar.heart.host {
  background: transparent;
}
.avatar.heart.wait {
  border: none;
  opacity: 0.55;
  filter: brightness(1.35);
}
.avatar.heart.wait img {
  width: 88%;
  height: 88%;
}

.player-row .copy,
.player-empty .copy {
  min-width: 0;
  width: 100%;
  flex: 0 1 auto;
}
.player-row .copy strong,
.player-empty .copy strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.player-role,
.player-you {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: normal;
}
.player-role {
  color: var(--pink);
}
.player-role::before,
.player-you::before {
  content: none;
}
.player-you {
  color: var(--turquoise);
}
.player-tag {
  flex: 0 0 auto;
  font-size: clamp(12px, 1.7vw, 14px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink);
  border: 1px solid rgba(233, 60, 172, 0.45);
  border-radius: 999px;
  padding: 6px 12px;
}

.note {
  margin: 0;
  text-align: center;
  color: var(--disabled);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.4;
}

.toast {
  --toast-glow: rgba(42, 210, 201, 0.45);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.92);
  width: min(720px, calc(100% - 48px), calc(100vw - 48px));
  max-width: min(720px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: clamp(28px, 4.5vh, 40px) clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background:
    linear-gradient(#141414, #101010) padding-box,
    linear-gradient(135deg, rgba(42, 210, 201, 0.85), rgba(21, 179, 228, 0.55), rgba(233, 60, 172, 0.45)) border-box;
  border: 2px solid transparent;
  color: var(--text);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 48px var(--toast-glow),
    0 0 96px rgba(42, 210, 201, 0.18);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.toast.error {
  --toast-glow: rgba(254, 80, 0, 0.55);
  background:
    linear-gradient(#1a0c0c, #120808) padding-box,
    linear-gradient(135deg, rgba(254, 80, 0, 0.95), rgba(255, 45, 85, 0.7), rgba(233, 60, 172, 0.55)) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 56px var(--toast-glow),
    0 0 110px rgba(254, 80, 0, 0.28);
}

.hidden { display: none !important; }

/* —— Countdown 3-2-1 —— */
.screen-countdown {
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 28%, rgba(42, 210, 201, 0.16), transparent 60%),
    radial-gradient(55% 45% at 82% 72%, rgba(233, 60, 172, 0.12), transparent 55%);
}
.countdown-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.8vh, 28px);
  padding: clamp(20px, 3vh, 32px) clamp(16px, 3vw, 28px);
  width: min(100%, 760px);
}
.countdown-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 14px);
  min-width: 0;
  width: 100%;
  margin-bottom: clamp(10px, 2.2vh, 22px);
}
.countdown-shield {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: clamp(78px, 14vw, 104px);
  height: clamp(78px, 14vw, 104px);
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: #141414;
  border: 1.6px solid var(--turquoise);
  flex: 0 0 auto;
  box-shadow:
    0 0 28px rgba(42, 210, 201, 0.22),
    0 0 48px rgba(233, 60, 172, 0.12);
}
.countdown-shield::before {
  content: "";
  position: absolute;
  inset: -28% -34%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(42, 210, 201, 0.42) 0%,
    rgba(42, 210, 201, 0.14) 36%,
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
}
.countdown-shield img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}
.countdown-identity .kicker {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.countdown-label {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  max-width: 100%;
}
.countdown-num {
  position: relative;
  isolation: isolate;
  width: clamp(240px, 40vw, 340px);
  height: clamp(240px, 40vw, 340px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 42% 32%, rgba(42, 210, 201, 0.18), transparent 55%),
    radial-gradient(circle at 68% 72%, rgba(233, 60, 172, 0.15), transparent 52%),
    radial-gradient(circle at 50% 50%, #0e0e14 0%, #08080a 100%) padding-box,
    var(--cta) border-box;
  border: 6px solid transparent;
  box-shadow:
    0 0 44px rgba(42, 210, 201, 0.22),
    0 0 76px rgba(233, 60, 172, 0.14),
    inset 0 0 32px rgba(42, 210, 201, 0.06);
}
.countdown-num::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(42, 210, 201, 0.32) 0%,
    rgba(21, 179, 228, 0.18) 34%,
    rgba(233, 60, 172, 0.22) 62%,
    transparent 76%
  );
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
  animation: countdown-halo 3s ease-in-out infinite;
}
@keyframes countdown-halo {
  0%, 100% { transform: scale(0.97); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.88; }
}
.countdown-num span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  font-size: clamp(140px, 26vw, 200px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: center;
  /* Compensa métricas ópticas del “1” en Inter Tight */
  transform: translateY(0.02em);
}
.countdown-num.pop {
  animation: countdown-pop 0.5s ease;
}
@keyframes countdown-pop {
  0% { transform: scale(0.7); opacity: 0.3; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.countdown-pips {
  display: flex;
  gap: 12px;
  align-items: center;
}
.countdown-pips i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1.5px solid #3a3a3a;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.countdown-pips i.on {
  background: var(--turquoise);
  border-color: var(--turquoise);
}
.countdown-pips i.current {
  transform: scale(1.35);
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(233, 60, 172, 0.45);
}
.countdown-hint {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* —— Juego —— */
.screen-game {
  gap: clamp(22px, 3.6vh, 36px);
  padding-top: clamp(12px, 2.4vh, 28px);
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.game-main {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(4px, 1vh, 10px);
  margin-bottom: clamp(8px, 1.5vh, 16px);
}
.game-footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: clamp(20px, 3.2vh, 36px);
  padding-bottom: clamp(18px, 3.5vh, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.game-footer .game-question {
  margin-bottom: 2px;
}
.game-actions-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(12px, 2vw, 16px);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.game-actions-row .game-timer {
  margin-inline: 0;
  align-self: center;
  width: clamp(88px, 12vw, 112px);
  height: clamp(88px, 12vw, 112px);
}
.game-actions-row .answer-grid {
  min-width: 0;
}

.game-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(14px, 2.4vw, 20px);
  padding: clamp(14px, 2.2vh, 20px) clamp(16px, 2.6vw, 22px);
  border-radius: 22px;
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(42, 210, 201, 0.22), transparent 58%),
    radial-gradient(90% 110% at 100% 0%, rgba(233, 60, 172, 0.14), transparent 55%),
    #0c0c0c;
  border: 1px solid rgba(42, 210, 201, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.game-top-shield {
  position: relative;
  z-index: 1;
  isolation: isolate;
  flex: 0 0 auto;
  width: clamp(72px, 12vw, 92px);
  height: clamp(72px, 12vw, 92px);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #141414;
  border: 1.6px solid var(--turquoise);
  box-shadow:
    0 0 22px rgba(42, 210, 201, 0.24),
    0 0 36px rgba(233, 60, 172, 0.12);
}
.game-top-shield::before {
  content: "";
  position: absolute;
  inset: -22% -28%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(42, 210, 201, 0.36) 0%,
    rgba(42, 210, 201, 0.12) 40%,
    transparent 72%
  );
  filter: blur(12px);
  pointer-events: none;
}
.game-top-shield img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}
.game-top-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-team-kicker {
  margin: 0;
  color: var(--turquoise);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-progress {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  width: 100%;
  min-width: 0;
}
.game-case-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(40px, 5.5vh, 48px);
  padding: 0 clamp(16px, 2.4vw, 22px);
  border-radius: 999px;
  background: rgba(42, 210, 201, 0.12);
  border: 1.5px solid rgba(42, 210, 201, 0.4);
  color: var(--turquoise);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.ticks { display: flex; flex-wrap: wrap; gap: 5px; }
.ticks i {
  width: 12px;
  height: 6px;
  border-radius: 99px;
  background: #2a2a2a;
  display: block;
}
.ticks i.on { background: var(--turquoise); }
.ticks i.done { background: var(--turquoise); }
.ticks i.current {
  background: var(--pink);
  box-shadow: 0 0 8px rgba(233, 60, 172, 0.4);
}

.game-timer {
  --pct: 100;
  width: clamp(88px, 12vw, 112px);
  height: clamp(88px, 12vw, 112px);
  min-width: 0;
  border-radius: 50%;
  border: none;
  background:
    radial-gradient(circle at center, #0a0a0a 0 62%, transparent 63%),
    conic-gradient(
      from -90deg,
      #2ad2c9 0 calc(var(--pct) * 1%),
      #15b3e4 calc(var(--pct) * 1%),
      #1c1c1c 0
    );
  display: grid;
  place-items: center;
  padding: 0;
  gap: 0;
  margin-inline: 0;
  position: relative;
  flex: 0 0 auto;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.game-timer .timer-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 1;
}
.game-timer strong {
  font-size: clamp(28px, 4.2vw, 36px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.game-timer small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timer-track {
  display: none;
}
.game-timer.low {
  background:
    radial-gradient(circle at center, #120303 0 62%, transparent 63%),
    conic-gradient(
      from -90deg,
      #fe5000 0 calc(var(--pct) * 1%),
      #ff2d55 calc(var(--pct) * 1%),
      #2a1010 0
    );
  box-shadow: 0 0 0 1px rgba(254, 80, 0, 0.35), 0 0 28px rgba(254, 80, 0, 0.35);
  animation: timer-oscillate 0.45s ease-in-out infinite;
}
.game-timer.low strong,
.game-timer.low small {
  color: #ff6a4d;
}
@keyframes timer-oscillate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.06) rotate(-1.2deg); }
  75% { transform: scale(1.06) rotate(1.2deg); }
}

.game-health {
  border-radius: 22px;
  padding: 14px 16px 16px;
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(38, 208, 124, 0.16), transparent 55%),
    #0c0c0c;
  border: 1.5px solid rgba(38, 208, 124, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.game-health.warn {
  border-color: rgba(240, 180, 41, 0.45);
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(240, 180, 41, 0.16), transparent 55%),
    #0c0c0c;
}
.game-health.critical {
  border-color: rgba(254, 80, 0, 0.5);
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(254, 80, 0, 0.18), transparent 55%),
    #0c0c0c;
}
.health-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.game-health small {
  color: var(--disabled);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.game-health strong {
  font-size: clamp(34px, 5.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.game-health.ok strong { color: var(--green); }
.game-health.warn strong { color: var(--orange); }
.game-health.critical strong { color: var(--orange); }
.health-bar {
  height: 22px;
  border-radius: 99px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}
.health-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(90deg, #1ec97a, #26d07c 40%, #7dffb2);
  box-shadow: 0 0 18px rgba(38, 208, 124, 0.45);
  transition: width 0.45s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.game-health.warn .health-bar span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(90deg, #d63a00, #fe5000 50%, #ff8a4a);
  box-shadow: 0 0 18px rgba(254, 80, 0, 0.4);
}
.game-health.critical .health-bar span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(90deg, #d63a00, #fe5000 50%, #ff8a4a);
  box-shadow: 0 0 18px rgba(254, 80, 0, 0.45);
}

.game-case-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.canal-chip {
  align-self: flex-start;
  min-height: clamp(36px, 5vh, 44px);
  padding: 0 clamp(14px, 2.2vw, 18px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: clamp(15px, 2.1vw, 18px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #10241f;
  color: var(--turquoise);
  border: 1px solid rgba(42, 210, 201, 0.35);
}
.canal-chip[data-canal="teams"] {
  background: #101828;
  color: #7eb6ff;
  border-color: rgba(126, 182, 255, 0.35);
}
.canal-chip[data-canal="whatsapp"] {
  background: #102018;
  color: #4ad295;
  border-color: rgba(74, 210, 149, 0.35);
}
.game-title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.game-question {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 4.2vw, 36px);
  font-weight: 700;
  color: var(--text-soft);
  flex: 0 0 auto;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.case-stage {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 24px;
  -webkit-overflow-scrolling: touch;
  margin-bottom: clamp(4px, 1vh, 10px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.case-stage > .case-mail,
.case-stage > .mock-teams,
.case-stage > .mock-wa {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
}

.case-mail {
  --outlook-blue: #0078d4;
  --outlook-blue-deep: #0f6cbd;
  --outlook-text: #242424;
  --outlook-muted: #616161;
  --outlook-border: #e1dfdd;
  --outlook-surface: #faf9f8;
  background: #ffffff;
  color: var(--outlook-text);
  border-radius: 8px;
  padding: 0;
  border: 1px solid var(--outlook-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.case-mail .mail-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px 10px;
  background: var(--outlook-blue);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: #fff;
}
.case-mail .mail-tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
.case-mail .mail-tb-btn svg {
  color: #fff;
  flex: 0 0 auto;
}
.case-mail .mail-tb-spacer {
  flex: 1 1 auto;
}
.case-mail .mail-tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.case-mail .mail-tb-brand svg rect {
  fill: #fff;
}
.case-mail .mail-tb-brand svg path {
  fill: var(--outlook-blue);
}
.case-mail .mail-reading {
  padding: 14px 16px 18px;
}
/* compat: cabecera antigua */
.case-mail .mail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.case-mail .mail-icon {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  border-radius: 8px;
  background: #deecf9;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.case-mail .mail-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  display: block;
}
.case-mail .mail-head strong { font-size: clamp(16px, 2.4vw, 20px); color: var(--outlook-text); }
.mail-banners {
  display: grid;
  gap: 6px;
  margin: 4px 0 12px;
}
.mail-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #111;
  font-size: clamp(12px, 1.7vw, 14px);
  line-height: 1.35;
  font-weight: 600;
}
.mail-banner strong {
  font-weight: 800;
}
.mail-banner-ico {
  flex: 0 0 auto;
  margin-top: 1px;
  display: grid;
  place-items: center;
  line-height: 0;
}
.mail-banner-links {
  background: #e6007a;
  color: #fff;
}
.mail-banner-external {
  background: #00b3c7;
  color: #111;
}
/* compat: por si queda alguna vista vieja */
.mail-external-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fff4ce;
  border: 1px solid #f0d78c;
  color: #6c5700;
  font-size: clamp(13px, 1.9vw, 15px);
  line-height: 1.35;
}
.case-mail .meta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: clamp(15px, 2.1vw, 17px);
  max-width: 100%;
  min-width: 0;
}
.case-mail .meta-row .label {
  color: var(--outlook-muted);
  min-width: 56px;
  padding-top: 6px;
  font-size: clamp(13px, 1.8vw, 14px);
  font-weight: 400;
  flex: 0 0 auto;
}
.case-mail .mail-from {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}
.case-mail .mail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--outlook-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
}
.case-mail .mail-from-addr,
.case-mail .pill-from {
  display: inline;
  min-width: 0;
  color: var(--outlook-text);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 16px);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}
.case-mail .pill-from {
  /* compat si queda markup viejo */
  background: transparent;
  padding: 0;
  border-radius: 0;
  min-height: 0;
  color: var(--outlook-text);
}
.case-mail .subject-inline {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-top: 4px;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700;
  color: var(--outlook-text);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.case-mail .body {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.55;
  color: var(--outlook-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--outlook-border);
}
.case-mail .link {
  margin-top: 12px;
  max-width: 100%;
  color: var(--outlook-blue-deep);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 16px);
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.case-mail .link a,
.case-mail .link .mock-link {
  color: inherit;
}

/* —— Mock Microsoft Teams —— */
.mock-teams {
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  color: #242424;
  border: 1px solid #d8d8d8;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* Barra de título de ventana Teams (nombre centrado + min / max / cerrar) */
.teams-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
  padding: 0;
  background: #464775;
  color: #fff;
  flex: 0 0 auto;
}
.teams-titlebar-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 120px);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  text-align: center;
}
.teams-win {
  display: flex;
  align-items: stretch;
  height: 32px;
  flex: 0 0 auto;
}
.teams-win-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 100%;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.9;
}
.teams-win-btn svg {
  display: block;
}
.teams-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  min-width: 0;
  max-width: 100%;
}
.teams-header-corp {
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 10px 12px 0;
  gap: 12px;
}
.teams-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-top: 2px;
}
.teams-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #6264a7;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}
.teams-avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
  margin-top: 2px;
}
.teams-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-sizing: border-box;
}
.teams-presence.busy {
  background: #c4314b;
}
.teams-presence.available {
  background: #6bb700;
}
.teams-who {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.teams-who-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.teams-who-row strong,
.teams-who strong {
  font-size: clamp(15px, 2.2vw, 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.teams-who span {
  font-size: clamp(12px, 1.7vw, 14px);
  color: #616161;
  overflow-wrap: anywhere;
}
.teams-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  color: #616161;
}
.teams-h-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: #616161;
}
.teams-tabs {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 6px;
  border-bottom: 1px solid #ebebeb;
  overflow: hidden;
}
.teams-tabs span {
  position: relative;
  padding: 0 2px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #616161;
  white-space: nowrap;
  overflow-wrap: normal;
}
.teams-tabs span.is-active {
  color: #5b5fc7;
}
.teams-tabs span.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #5b5fc7;
  border-radius: 2px 2px 0 0;
}
.teams-composer {
  flex: 0 0 auto;
  padding: 8px 12px 12px;
  background: #f5f5f5;
  border-top: 1px solid #e6e6e6;
}
.teams-composer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px 6px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d1d1d1;
}
.teams-composer-ph {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #8a8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teams-composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  color: #616161;
}
.teams-tool {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.teams-tool-send {
  color: #5b5fc7;
}
.mock-teams.is-corp .teams-thread {
  flex: 1 1 auto;
  min-height: 0;
}
.teams-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 4px;
  font-size: clamp(12px, 1.7vw, 14px);
  font-weight: 700;
  white-space: nowrap;
  flex: 0 1 auto;
}
.teams-tag.external {
  background: #fff4ce;
  color: #835c00;
  border: 1px solid #f0d78c;
}
.teams-tag.corp {
  background: #e7f5ee;
  color: #0f7a4b;
  border: 1px solid #b7e0c9;
}

/* Gate / interstitial de chat externo (como el print de Teams) */
.teams-gate {
  margin: 14px 12px 0;
  padding: 22px 18px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e1dfdd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.teams-gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 45%),
    linear-gradient(160deg, #f3f2f1 0%, #e8e6f5 55%, #ddd9f5 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 6px 14px rgba(98, 100, 167, 0.18);
}
.teams-gate-bang {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffb900 0%, #f7630c 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 0 #8764b8;
}
.teams-gate-title {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.35;
  font-weight: 700;
  color: #242424;
  overflow-wrap: anywhere;
}
.teams-gate-warn {
  margin: 16px 0 0;
  padding: 12px 12px 10px;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  text-align: left;
  color: #424242;
}
.teams-gate-warn-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  color: #616161;
}
.teams-gate-warn-head strong {
  font-size: clamp(13px, 1.9vw, 14px);
  color: #242424;
  font-weight: 650;
}
.teams-gate-warn p {
  margin: 0 0 8px;
  font-size: clamp(12px, 1.7vw, 13px);
  line-height: 1.4;
  color: #616161;
}
.teams-gate-preview {
  margin-bottom: 0 !important;
}
.teams-gate-preview span {
  color: #5b5fc7;
  font-weight: 600;
}
.teams-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.teams-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #d1d1d1;
  background: #fff;
  color: #242424;
  font-size: 14px;
  font-weight: 600;
}

.teams-thread {
  padding: 16px 14px 20px;
  background:
    linear-gradient(180deg, #f0f0f0 0%, #f7f7f7 100%);
  flex: 0 0 auto;
}
.teams-thread.is-preview {
  padding-top: 10px;
}
.teams-preview-label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.teams-day {
  text-align: center;
  font-size: clamp(14px, 2vw, 16px);
  color: #616161;
  margin-bottom: 14px;
}
.teams-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.teams-msg-body {
  min-width: 0;
  flex: 1;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 4px 8px 8px 8px;
  padding: 10px 12px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.teams-msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.teams-msg-meta strong {
  font-size: clamp(15px, 2.1vw, 17px);
  color: #242424;
}
.teams-msg-meta time {
  font-size: clamp(12px, 1.7vw, 14px);
  color: #8a8a8a;
  margin-left: auto;
}
.teams-msg-text {
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  color: #242424;
}
.teams-link-wrap {
  margin-top: 10px;
  max-width: 100%;
  min-width: 0;
}
.mock-link {
  color: #5b5fc7;
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-all;
  pointer-events: none;
  max-width: 100%;
  display: inline-block;
}

/* —— Mock WhatsApp (vista mobile / contacto externo) —— */
.mock-wa {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #d1d7db;
  background: #efeae2;
  color: #111b21;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #008069;
  color: #fff;
}
.wa-back {
  font-size: 28px;
  line-height: 1;
  color: #fff;
  width: 18px;
  opacity: 0.95;
}
.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe5e7;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}
.wa-avatar:not(.wa-avatar-empty) {
  background: #6b7c85;
}
.wa-avatar-empty {
  color: #8696a0;
  background: #dfe5e7;
}
.wa-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wa-who strong {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.wa-who span {
  font-size: clamp(12px, 1.7vw, 13px);
  color: rgba(255, 255, 255, 0.85);
}
.wa-thread {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 10px 14px;
  background-color: #efeae2;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.035) 1.1px, transparent 1.1px);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa-encrypt {
  align-self: center;
  max-width: 100%;
  margin: 2px 4px 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffeecd;
  color: #54656f;
  font-size: clamp(11px, 1.55vw, 12.5px);
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.wa-unknown-card {
  align-self: center;
  width: min(100%, 340px);
  margin: 2px 0 4px;
  padding: 18px 16px 14px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 3px rgba(11, 20, 26, 0.12);
}
.wa-unknown-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e9edef;
  color: #8696a0;
  display: grid;
  place-items: center;
}
.wa-unknown-phone {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 700;
  color: #111b21;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.wa-unknown-alias {
  margin: 4px 0 0;
  font-size: clamp(13px, 1.9vw, 15px);
  color: #667781;
}
.wa-unknown-meta {
  margin: 10px 0 0;
  font-size: clamp(11px, 1.6vw, 12.5px);
  line-height: 1.35;
  color: #8696a0;
}
.wa-unknown-security {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(12px, 1.7vw, 13.5px);
  font-weight: 600;
  color: #027a5a;
}
.wa-unknown-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.wa-unknown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d1d7db;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}
.wa-unknown-btn.block { color: #e75a5a; }
.wa-unknown-btn.add { color: #027a5a; }
.wa-day {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}
.wa-day span {
  background: #ffffff;
  color: #54656f;
  font-size: clamp(11px, 1.5vw, 12px);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.wa-bubble {
  position: relative;
  align-self: flex-start;
  max-width: min(88%, 100%);
  min-width: 0;
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 12px 22px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  box-sizing: border-box;
}
.wa-bubble p {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  color: #111b21;
}
.wa-bubble time {
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: clamp(11px, 1.5vw, 12px);
  color: #667781;
}
.wa-link-card {
  margin-top: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f0f2f5;
  border-left: 3px solid #00a884;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.wa-link-card .mock-link { color: #027eb5; }
.wa-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  background: #f0f2f5;
}
.wa-input {
  flex: 1;
  min-height: 40px;
  border-radius: 24px;
  background: #fff;
  color: #667781;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid #e9edef;
}
.wa-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00a884;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}
.answer-card {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: clamp(18px, 2.6vh, 28px) clamp(12px, 2vw, 18px);
  border-radius: 18px;
  background: #101010;
  border: 2px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: auto;
  min-height: clamp(88px, 12vh, 112px);
  height: 100%;
  width: 100%;
  min-width: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.answer-card::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  border-radius: 28px;
  filter: blur(22px);
  opacity: 0.8;
  pointer-events: none;
}
.answer-card:active:not(:disabled) { transform: scale(0.98); }
.answer-card.accept {
  border-color: rgba(42, 210, 201, 0.7);
  background:
    radial-gradient(circle at 28% 30%, rgba(42, 210, 201, 0.2), transparent 58%),
    linear-gradient(160deg, rgba(42, 210, 201, 0.12), transparent 55%),
    #101010;
  box-shadow:
    0 0 28px rgba(42, 210, 201, 0.16),
    inset 0 0 24px rgba(42, 210, 201, 0.05);
}
.answer-card.accept::before {
  background: radial-gradient(
    circle at 40% 45%,
    rgba(42, 210, 201, 0.38) 0%,
    rgba(21, 179, 228, 0.18) 45%,
    transparent 72%
  );
}
.answer-card.reject {
  border-color: rgba(233, 60, 172, 0.7);
  background:
    radial-gradient(circle at 28% 30%, rgba(233, 60, 172, 0.2), transparent 58%),
    linear-gradient(160deg, rgba(233, 60, 172, 0.12), transparent 55%),
    #101010;
  box-shadow:
    0 0 28px rgba(233, 60, 172, 0.16),
    inset 0 0 24px rgba(233, 60, 172, 0.05);
}
.answer-card.reject::before {
  background: radial-gradient(
    circle at 40% 45%,
    rgba(233, 60, 172, 0.36) 0%,
    rgba(241, 132, 203, 0.16) 45%,
    transparent 72%
  );
}
.answer-glyph {
  position: static;
  flex: 0 0 auto;
  width: clamp(42px, 6.5vw, 52px);
  height: clamp(42px, 6.5vw, 52px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 9px;
  background: #141414;
  border: 1.6px solid var(--turquoise);
  overflow: hidden;
  box-sizing: border-box;
}
.answer-glyph img {
  width: 64%;
  height: 64%;
  object-fit: contain;
}
.answer-card.accept .answer-glyph {
  background: #141414;
  border-color: var(--turquoise);
}
.answer-card.reject .answer-glyph {
  background: #141414;
  border-color: var(--pink);
}
.answer-card strong {
  font-size: clamp(26px, 3.8vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.answer-card:disabled { opacity: 0.4; }

.wait-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: #161616;
  color: var(--text-soft);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 600;
}
.wait-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  animation: wait-blink 1.1s ease-in-out infinite;
}
@keyframes wait-blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.screen-feedback {
  position: relative;
  z-index: 0;
  justify-content: center;
  align-items: center;
  overflow: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  isolation: isolate;
}
.feedback-breach {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #02040a;
}
.screen-feedback:has(.feedback-panel.bad) .feedback-breach {
  display: block;
}
.screen-feedback:has(.feedback-panel.bad) {
  background: #02040a;
}
.feedback-breach-binary {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding: 0.6vh 0;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(12px, 1.55vw, 16px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--pink);
  text-shadow:
    0 0 6px rgba(233, 60, 172, 0.9),
    0 0 18px rgba(233, 60, 172, 0.5);
  opacity: 0.48;
  mix-blend-mode: screen;
  animation: feedback-breach-binary 18s linear infinite;
}
.feedback-breach-binary span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.55;
}
.feedback-breach-binary span:nth-child(odd) {
  transform: translateX(-2%);
  opacity: 0.75;
}
.feedback-breach-binary span:nth-child(3n) {
  opacity: 0.35;
  filter: blur(0.4px);
}
.feedback-breach-binary span:nth-child(4n) {
  animation: feedback-breach-flicker 2.8s steps(1, end) infinite;
}
.feedback-breach-bars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.feedback-breach-bars i {
  position: absolute;
  left: var(--x, 8%);
  top: var(--y, 10%);
  width: var(--w, 28%);
  height: var(--h, 10px);
  border-radius: 1px;
  background: var(--c, #2ad2c9);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--c, #2ad2c9) 70%, transparent),
    4px 0 0 color-mix(in srgb, var(--c, #2ad2c9) 35%, transparent);
  opacity: 0;
  animation: feedback-breach-bar 5.2s steps(1, end) infinite;
  animation-delay: var(--d, 0s);
}
.feedback-breach-bars i:nth-child(1)  { --x: 4%;  --y: 8%;  --w: 34%; --h: 14px; --c: #15b3e4; --d: 0s; }
.feedback-breach-bars i:nth-child(2)  { --x: 42%; --y: 10%; --w: 22%; --h: 8px;  --c: #7c5cff; --d: 0.05s; }
.feedback-breach-bars i:nth-child(3)  { --x: 68%; --y: 7%;  --w: 26%; --h: 18px; --c: #e93cac; --d: 0.1s; }
.feedback-breach-bars i:nth-child(4)  { --x: 12%; --y: 22%; --w: 18%; --h: 7px;  --c: #2ad2c9; --d: 1.1s; }
.feedback-breach-bars i:nth-child(5)  { --x: 36%; --y: 24%; --w: 40%; --h: 12px; --c: #15b3e4; --d: 1.15s; }
.feedback-breach-bars i:nth-child(6)  { --x: 78%; --y: 21%; --w: 16%; --h: 9px;  --c: #a78bfa; --d: 1.2s; }
.feedback-breach-bars i:nth-child(7)  { --x: 6%;  --y: 48%; --w: 24%; --h: 16px; --c: #e93cac; --d: 2.2s; }
.feedback-breach-bars i:nth-child(8)  { --x: 34%; --y: 50%; --w: 30%; --h: 8px;  --c: #2ad2c9; --d: 2.25s; }
.feedback-breach-bars i:nth-child(9)  { --x: 66%; --y: 47%; --w: 28%; --h: 20px; --c: #15b3e4; --d: 2.3s; }
.feedback-breach-bars i:nth-child(10) { --x: 18%; --y: 62%; --w: 36%; --h: 10px; --c: #7c5cff; --d: 3.1s; }
.feedback-breach-bars i:nth-child(11) { --x: 58%; --y: 64%; --w: 20%; --h: 7px;  --c: #e93cac; --d: 3.15s; }
.feedback-breach-bars i:nth-child(12) { --x: 80%; --y: 61%; --w: 14%; --h: 14px; --c: #2ad2c9; --d: 3.2s; }
.feedback-breach-bars i:nth-child(13) { --x: 8%;  --y: 78%; --w: 28%; --h: 11px; --c: #15b3e4; --d: 4s; }
.feedback-breach-bars i:nth-child(14) { --x: 40%; --y: 80%; --w: 24%; --h: 18px; --c: #e93cac; --d: 4.05s; }
.feedback-breach-bars i:nth-child(15) { --x: 70%; --y: 76%; --w: 22%; --h: 8px;  --c: #a78bfa; --d: 4.1s; }
.feedback-breach-bars i:nth-child(16) { --x: 22%; --y: 36%; --w: 16%; --h: 6px;  --c: #2ad2c9; --d: 0.55s; }
.feedback-breach-bars i:nth-child(17) { --x: 52%; --y: 38%; --w: 32%; --h: 13px; --c: #15b3e4; --d: 0.6s; }
.feedback-breach-bars i:nth-child(18) { --x: 10%; --y: 90%; --w: 44%; --h: 9px;  --c: #7c5cff; --d: 4.6s; }
.feedback-breach-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 5px
  );
  opacity: 0.45;
  mix-blend-mode: soft-light;
  animation: feedback-breach-scan 7s linear infinite;
}
@keyframes feedback-breach-binary {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6%); }
}
@keyframes feedback-breach-flicker {
  0%, 82%, 100% { opacity: 0.55; }
  84% { opacity: 0.15; }
  86% { opacity: 0.9; }
  88% { opacity: 0.35; }
  90% { opacity: 0.8; }
}
@keyframes feedback-breach-bar {
  0%, 100% {
    opacity: 0;
    transform: translate(0, 0) scaleX(1);
  }
  6% {
    opacity: 0.95;
    transform: translate(10px, 0) scaleX(1.04);
  }
  9% {
    opacity: 0.7;
    transform: translate(-14px, 0) scaleX(0.92);
  }
  12% {
    opacity: 0;
    transform: translate(6px, 0);
  }
  48% {
    opacity: 0;
  }
  52% {
    opacity: 0.85;
    transform: translate(-8px, 0);
  }
  55% {
    opacity: 0.5;
    transform: translate(12px, 0) scaleX(1.08);
  }
  58% {
    opacity: 0;
  }
}
@keyframes feedback-breach-scan {
  0% { background-position: 0 0; }
  100% { background-position: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-breach-binary,
  .feedback-breach-bars i,
  .feedback-breach-scan {
    animation: none !important;
  }
  .feedback-breach-binary { opacity: 0.28; }
  .feedback-breach-bars i {
    opacity: 0.35;
    transform: none;
  }
}

/* Acierto: tramado de escudos + glow “ciberseguro”. */
.feedback-secure {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(42, 210, 201, 0.16), transparent 62%),
    radial-gradient(ellipse 55% 45% at 50% 70%, rgba(38, 208, 124, 0.12), transparent 70%),
    #030806;
}
.screen-feedback:has(.feedback-panel:not(.bad)) .feedback-secure {
  display: block;
}
.screen-feedback:has(.feedback-panel:not(.bad)) {
  background: #030806;
}
.feedback-secure-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(920px, 130%);
  height: min(720px, 95%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(42, 210, 201, 0.28) 0%, rgba(38, 208, 124, 0.12) 38%, transparent 70%);
  filter: blur(36px);
  opacity: 0.9;
  animation: feedback-secure-glow 6.5s ease-in-out infinite;
}
.feedback-secure-grid,
.feedback-secure-grid-alt {
  position: absolute;
  inset: -12%;
  background-image: url("../assets/toolkit/escudo.png");
  background-repeat: repeat;
  background-size: 96px 96px;
  opacity: 0.18;
  filter: brightness(1.15) saturate(0.85);
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 45%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 45%, #000 18%, transparent 78%);
  animation: feedback-secure-drift 32s linear infinite;
}
.feedback-secure-grid-alt {
  background-size: 132px 132px;
  background-position: 66px 66px;
  opacity: 0.11;
  filter: brightness(1.35) saturate(1.05) hue-rotate(-8deg);
  animation-duration: 48s;
  animation-direction: reverse;
}
.feedback-secure-pulse {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(520px, 72vw);
  height: min(520px, 72vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(42, 210, 201, 0.35);
  box-shadow:
    0 0 24px rgba(42, 210, 201, 0.18),
    inset 0 0 24px rgba(38, 208, 124, 0.08);
  opacity: 0;
  animation: feedback-secure-ring 5.8s ease-out infinite;
}
.feedback-secure-pulse-2 {
  animation-delay: 2.9s;
  border-color: rgba(38, 208, 124, 0.3);
}
@keyframes feedback-secure-glow {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -52%) scale(1.06); }
}
@keyframes feedback-secure-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-48px, -48px, 0); }
}
@keyframes feedback-secure-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
  }
  18% {
    opacity: 0.55;
  }
  70% {
    opacity: 0.12;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-secure-glow,
  .feedback-secure-grid,
  .feedback-secure-grid-alt,
  .feedback-secure-pulse {
    animation: none !important;
  }
  .feedback-secure-grid { opacity: 0.14; }
  .feedback-secure-pulse { opacity: 0.22; transform: translate(-50%, -50%) scale(1); }
}
.feedback-panel {
  flex: 0 1 auto;
  /* % del contenedor (tablet/preview), no 96vw del browser — evita corte a la derecha. */
  width: 100%;
  max-width: min(860px, 100%);
  max-height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 40px) clamp(18px, 3.5%, 36px) clamp(22px, 3vh, 28px);
  border-radius: 28px;
  border: 2px solid var(--green);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(38, 208, 124, 0.28), transparent 58%),
    radial-gradient(80% 70% at 50% 110%, rgba(38, 208, 124, 0.12), transparent 60%),
    #070707;
  box-shadow:
    0 0 48px rgba(38, 208, 124, 0.22),
    0 0 96px rgba(38, 208, 124, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vh, 22px);
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-sizing: border-box;
}
.feedback-panel.bad {
  border-color: var(--pink);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(233, 60, 172, 0.3), transparent 58%),
    radial-gradient(80% 70% at 50% 110%, rgba(233, 60, 172, 0.14), transparent 60%),
    #070707;
  box-shadow:
    0 0 48px rgba(233, 60, 172, 0.26),
    0 0 96px rgba(233, 60, 172, 0.14);
}
.feedback-body-wrap {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 18px);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.feedback-copy {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 18px);
  box-sizing: border-box;
}
.feedback-actions {
  flex: 0 0 auto;
  width: min(100%, 440px);
  margin: 0 auto;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}
.feedback-auto {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feedback-auto strong {
  color: var(--turquoise);
  font-variant-numeric: tabular-nums;
}
.feedback-auto.hidden {
  display: none;
}
.feedback-wait-host {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 16px 14px;
  border-radius: 16px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}
.feedback-mark-wrap {
  position: relative;
  width: clamp(96px, 14vw, 120px);
  height: clamp(96px, 14vw, 120px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--green);
  background: rgba(38, 208, 124, 0.1);
  box-shadow: 0 0 32px rgba(38, 208, 124, 0.28);
  isolation: isolate;
  flex: 0 0 auto;
  transform-origin: center center;
}
.feedback-mark-wrap::before {
  content: "";
  position: absolute;
  inset: -34%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(38, 208, 124, 0.42) 0%,
    rgba(38, 208, 124, 0.16) 38%,
    transparent 70%
  );
  filter: blur(16px);
  pointer-events: none;
}

/*
 * Intro en flujo normal (sin absolute):
 * 1) solo icono grande → el card centrado hace que quede al centro
 * 2) icono se achica + aparece chrome/texto debajo → el bloque crece y el icono sube solo
 * Así no hay un segundo “salto” al quitar la clase.
 */
/* Durante el globito: no clipar glow ni overshoot del scale */
#app:has(.feedback-panel.is-entering) {
  overflow: visible;
}
.screen-feedback:has(.feedback-panel.is-entering) {
  overflow: visible;
}
.feedback-panel.is-entering {
  flex: 0 1 auto;
  align-self: center;
  width: 100%;
  max-width: min(860px, 100%);
  height: auto;
  min-height: 0;
  max-height: none;
  justify-content: flex-start;
  overflow: visible;
  /* ~0.9s globito + hold, luego acomodo */
  animation: feedback-panel-chrome 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.feedback-panel.bad.is-entering {
  animation-name: feedback-panel-chrome-bad;
}
.feedback-panel.is-entering .feedback-body-wrap {
  gap: 0;
  overflow: visible;
  animation: feedback-body-gap 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.feedback-panel.is-entering .feedback-mark-wrap {
  position: relative;
  margin-inline: auto;
  overflow: visible;
  animation: feedback-mark-hero 2.2s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
.feedback-panel.is-entering .feedback-mark {
  animation: feedback-mark-icon-hero 2.2s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
.feedback-panel.is-entering .feedback-mark-wrap::before {
  animation: feedback-mark-glow-hero 2.2s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
.feedback-panel.is-entering .feedback-copy {
  overflow: hidden;
  width: 100%;
  animation: feedback-copy-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.45s both;
}
.feedback-panel.is-entering .feedback-actions {
  overflow: hidden;
  width: min(100%, 440px);
  animation: feedback-actions-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.6s both;
}
@keyframes feedback-panel-chrome {
  0%, 62% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
  }
  100% {
    border-color: var(--green);
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(38, 208, 124, 0.28), transparent 58%),
      radial-gradient(80% 70% at 50% 110%, rgba(38, 208, 124, 0.12), transparent 60%),
      #070707;
    box-shadow:
      0 0 48px rgba(38, 208, 124, 0.22),
      0 0 96px rgba(38, 208, 124, 0.12);
    padding-top: clamp(28px, 4vh, 40px);
    padding-bottom: clamp(22px, 3vh, 28px);
    gap: clamp(16px, 2.4vh, 22px);
  }
}
@keyframes feedback-panel-chrome-bad {
  0%, 62% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
  }
  100% {
    border-color: var(--pink);
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(233, 60, 172, 0.3), transparent 58%),
      radial-gradient(80% 70% at 50% 110%, rgba(233, 60, 172, 0.14), transparent 60%),
      #070707;
    box-shadow:
      0 0 48px rgba(233, 60, 172, 0.26),
      0 0 96px rgba(233, 60, 172, 0.14);
    padding-top: clamp(28px, 4vh, 40px);
    padding-bottom: clamp(22px, 3vh, 28px);
    gap: clamp(16px, 2.4vh, 22px);
  }
}
@keyframes feedback-body-gap {
  0%, 68% { gap: 0; }
  100% { gap: clamp(12px, 2vh, 18px); }
}
@keyframes feedback-mark-hero {
  /* Globito: nace chico, pop con overshoot, se queda grande un rato, luego baja */
  0% {
    width: min(68vmin, 420px);
    height: min(68vmin, 420px);
    margin-block: 6vh;
    opacity: 0;
    transform: scale(0.35);
  }
  18% {
    opacity: 1;
    transform: scale(1.12);
  }
  28% {
    transform: scale(0.96);
  }
  36% {
    transform: scale(1.04);
  }
  45% {
    width: min(68vmin, 420px);
    height: min(68vmin, 420px);
    margin-block: 6vh;
    transform: scale(1);
  }
  62% {
    width: min(68vmin, 420px);
    height: min(68vmin, 420px);
    margin-block: 6vh;
    transform: scale(1);
  }
  100% {
    width: clamp(96px, 14vw, 120px);
    height: clamp(96px, 14vw, 120px);
    margin-block: 0;
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes feedback-mark-icon-hero {
  0%, 62% {
    width: 78%;
    height: 78%;
  }
  100% {
    width: 48%;
    height: 48%;
  }
}
@keyframes feedback-mark-glow-hero {
  0% {
    inset: -8%;
    filter: blur(10px);
    opacity: 0.35;
  }
  18% {
    inset: -22%;
    filter: blur(28px);
    opacity: 1;
  }
  45%, 62% {
    inset: -18%;
    filter: blur(24px);
    opacity: 1;
  }
  100% {
    inset: -34%;
    filter: blur(16px);
    opacity: 1;
  }
}
@keyframes feedback-copy-in {
  0% {
    opacity: 0;
    max-height: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    max-height: 560px;
    transform: none;
  }
}
@keyframes feedback-actions-in {
  0% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    max-height: 120px;
    padding-top: 4px;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-panel.is-entering,
  .feedback-panel.is-entering .feedback-body-wrap,
  .feedback-panel.is-entering .feedback-mark-wrap,
  .feedback-panel.is-entering .feedback-mark,
  .feedback-panel.is-entering .feedback-mark-wrap::before,
  .feedback-panel.is-entering .feedback-copy,
  .feedback-panel.is-entering .feedback-actions {
    animation: none !important;
  }
}
.feedback-panel.bad .feedback-mark-wrap {
  border-color: var(--pink);
  background: rgba(233, 60, 172, 0.1);
  box-shadow: 0 0 32px rgba(233, 60, 172, 0.3);
  border-radius: 28px;
}
.feedback-panel.bad .feedback-mark-wrap::before {
  background: radial-gradient(
    circle at center,
    rgba(233, 60, 172, 0.48) 0%,
    rgba(233, 60, 172, 0.18) 38%,
    transparent 70%
  );
}
.feedback-mark {
  width: 48%;
  height: 48%;
  object-fit: contain;
}
.feedback-panel h1 {
  font-size: clamp(42px, 7vw, 58px);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: min(24ch, 100%);
  box-sizing: border-box;
}
.feedback-body {
  margin: 0;
  max-width: min(42rem, 100%);
  width: 100%;
  color: var(--text-soft);
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.5;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.feedback-pill {
  min-height: 52px;
  max-width: 100%;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  background: #10281c;
  color: var(--green);
  border: 1.5px solid var(--green);
  box-sizing: border-box;
}
.feedback-panel.bad .feedback-pill {
  background: rgba(233, 60, 172, 0.12);
  color: var(--pink);
  border-color: var(--pink);
}

.screen-results {
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
}
.results-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.results-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.results-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 2.8vh, 26px);
  width: 100%;
  max-width: min(780px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  padding: clamp(20px, 3vh, 28px) clamp(22px, 4vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(42, 210, 201, 0.12), transparent 55%),
    radial-gradient(70% 60% at 90% 100%, rgba(233, 60, 172, 0.1), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
}
.screen-results .results-body {
  width: 100%;
  padding-inline: clamp(20px, 4.5vw, 48px);
  box-sizing: border-box;
}
.screen-results .results-actions {
  width: 100%;
  max-width: min(780px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 48px);
  box-sizing: border-box;
}
.results-card .kicker {
  font-size: clamp(18px, 2.5vw, 22px);
}
.results-card h1 {
  margin: 0 0 clamp(8px, 1.5vh, 14px);
  font-size: clamp(32px, 4.8vw, 45px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.results-card .results-cases {
  margin: clamp(10px, 2vh, 18px) 0 clamp(14px, 2.4vh, 22px);
}
.results-card .campaign-line {
  margin: clamp(8px, 1.6vh, 14px) 0 0;
  font-size: clamp(22px, 3.2vw, 28px);
  max-width: min(34rem, 100%);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.results-gauge {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 0 0 18px;
}
.results-gauge-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ring-bg,
.ring-ok {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.ring-bg {
  stroke: #2a2a2a;
  stroke-dasharray: 75 25;
}
.ring-ok {
  stroke: var(--turquoise);
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.65s ease;
}
.results-gauge.ok .ring-ok { stroke: var(--green); }
.results-gauge.warn .ring-ok { stroke: var(--orange); }
.results-gauge.critical .ring-ok { stroke: var(--orange); }
.results-gauge.in-sorteo .ring-ok {
  stroke: var(--turquoise);
}
.results-ring-label {
  position: absolute;
  inset: 22% 18% 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.results-ring-label strong {
  font-size: clamp(56px, 11vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #2ad2c9 0%, #15b3e4 42%, #e93cac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.results-cases {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 32rem;
  margin: 0 0 8px;
}
.results-cases-label {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.results-trail {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.2vw, 22px);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.results-pip {
  width: auto;
  display: block;
  flex: 0 0 auto;
  background: none;
  padding: 0;
}
.results-pip-heart {
  position: relative;
  width: clamp(56px, 9.5vw, 72px);
  height: clamp(52px, 8.8vw, 68px);
  display: grid;
  place-items: center;
}
.results-pip-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(1.55);
}
.results-pip-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46%;
  height: 46%;
  display: block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.results-pip.ok .results-pip-mark {
  background-color: #2ecc71;
  -webkit-mask-image: url("../assets/toolkit/check.svg");
  mask-image: url("../assets/toolkit/check.svg");
}
.results-pip.bad .results-pip-mark {
  background-color: #ef4444;
  -webkit-mask-image: url("../assets/toolkit/error.svg");
  mask-image: url("../assets/toolkit/error.svg");
}

/* —— Resultados: frame 1 (corazón hero) —— */
/* Full-bleed: el corazón debe cubrir todo el viewport (sin gutters de #app). */
#app:has(.screen-results.results-frame-1) {
  max-width: none;
  padding: 0;
}
#app:has(.screen-results.results-frame-1) .app-brand-bar:not(.hidden) {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
}
.screen-results.results-frame-1 {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  z-index: 50;
  background: var(--bg);
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow: hidden !important;
}
.screen-results.results-frame-1 .results-body,
.screen-results.results-frame-1 .results-actions {
  display: none !important;
}
.results-hero {
  flex: 1 1 auto;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 44px);
  position: relative;
  overflow: visible;
  padding: 12px clamp(20px, 4vw, 48px) 8px;
}
.results-hero-pulse {
  position: relative;
  width: min(280px, 52vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: results-enter-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.results-hero-aura {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(42, 210, 201, 0.85);
  background: radial-gradient(
    circle,
    rgba(233, 60, 172, 0.18) 0%,
    rgba(42, 210, 201, 0.1) 42%,
    transparent 70%
  );
  box-shadow:
    0 0 0 1px rgba(233, 60, 172, 0.35),
    0 0 28px rgba(42, 210, 201, 0.45);
  pointer-events: none;
  z-index: 0;
  transform-origin: center center;
  /* Ocultas y centradas antes del primer frame / durante el delay. */
  opacity: 0;
  transform: scale(0.7);
  animation: results-heart-aura 1.6s ease-out infinite backwards;
}
.results-hero-aura:nth-child(1) { animation-delay: 0.12s; }
.results-hero-aura:nth-child(2) { animation-delay: 0.67s; }
.results-hero-aura:nth-child(3) { animation-delay: 1.22s; }
.results-hero-pulse img {
  position: relative;
  z-index: 1;
  width: min(240px, 46vw);
  height: auto;
  display: block;
  transform-origin: center center;
  animation: results-heart-oscillate 1.35s ease-in-out infinite;
}
.results-hero-status {
  margin: 0;
  max-width: 100%;
  width: 100%;
  min-height: 1.2em;
  display: block;
  text-align: center;
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text-soft);
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  padding: 0 16px;
  box-sizing: border-box;
  animation: results-enter-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.results-hero-status .text-grad {
  display: inline;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(120deg, #2ad2c9 0%, #15b3e4 42%, #e93cac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.results-hero-status.is-swap {
  animation: results-status-swap 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.screen-results.results-frame-1.is-covering {
  overflow: hidden !important;
}
.screen-results.results-frame-1.is-covering .results-hero-status {
  opacity: 0;
  visibility: hidden;
  /* Mantiene la altura: el corazón no “libera” espacio y el texto no sube. */
  transition: opacity 0.25s ease;
}
.screen-results.results-frame-1.is-covering .results-hero-pulse {
  /* Sigue en el flujo (sin absolute) para no mover el texto; solo escala visual. */
  z-index: 30;
  animation: results-heart-cover-grow 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.screen-results.results-frame-1.is-covering .results-hero-pulse img {
  animation: none;
  opacity: 1;
  transform: none;
}
.screen-results.results-frame-1.is-covering .results-hero-aura {
  animation: none;
  opacity: 0;
}

/* Crossfade: corazón grande → arco */
.screen-results.results-frame-1.is-crossfade .results-hero-pulse {
  animation: none;
  transform: scale(28);
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 30;
}
.screen-results.results-frame-1.is-crossfade .results-hero-pulse img {
  animation: none;
  opacity: 1;
  transform: none;
}
.screen-results.results-frame-1.is-crossfade .results-score-stage {
  opacity: 1;
  transition: opacity 0.55s ease;
}

/* Fase score: media luna + % contando */
.results-score-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}
.screen-results.results-frame-1.is-scoring .results-hero {
  /* Sacarlo del flujo: si solo se oculta, el min-height 70vh empuja el score a la mitad. */
  display: none !important;
}
.screen-results.results-frame-1.is-scoring .results-score-stage,
.screen-results.results-frame-1.is-crossfade .results-score-stage {
  opacity: 1;
  pointer-events: auto;
}
.results-score-stage .results-score-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(780px, 100%);
  max-width: 100%;
  padding: 0;
  text-align: center;
  z-index: 21;
  box-sizing: border-box;
  min-width: 0;
}
.results-score-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
}
/* El panel “tipo cabecera” solo aparece al revelar meta (post-conteo). */
.results-score-stage.is-reveal-meta .results-score-panel {
  gap: clamp(24px, 4vh, 44px);
  /* Padding en % del panel, no vw del browser (evita empujar fuera en tablet). */
  padding: clamp(28px, 4.5vh, 48px) clamp(20px, 4.5%, 40px);
  border-radius: 28px;
  background:
    radial-gradient(110% 140% at 50% 0%, rgba(42, 210, 201, 0.34), transparent 58%),
    radial-gradient(90% 110% at 90% 18%, rgba(233, 60, 172, 0.24), transparent 55%),
    radial-gradient(80% 80% at 10% 90%, rgba(21, 179, 228, 0.12), transparent 50%),
    #0a0a0a;
  border: 1px solid rgba(42, 210, 201, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 40px rgba(42, 210, 201, 0.12),
    0 0 64px rgba(233, 60, 172, 0.1);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  animation: results-enter-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.results-score-stage.is-reveal-meta .results-score-panel > .results-gauge {
  /* Cerca del arco, sin montarse: anula el gap + un poco del vacío inferior del SVG. */
  margin-bottom: calc(-1 * (clamp(24px, 4vh, 44px) + clamp(20px, 3.5vw, 32px))) !important;
}
.results-score-stage.is-reveal-meta .results-score-panel::before {
  content: "";
  position: absolute;
  inset: -18% 16% auto;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(42, 210, 201, 0.36) 0%,
    rgba(42, 210, 201, 0.12) 36%,
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}
.results-score-stage.is-reveal-meta .results-score-panel.is-fail,
.results-score-stage.is-fail.is-reveal-meta .results-score-panel {
  background:
    radial-gradient(110% 140% at 50% 0%, rgba(233, 60, 172, 0.42), transparent 58%),
    radial-gradient(95% 120% at 12% 20%, rgba(254, 80, 0, 0.22), transparent 55%),
    radial-gradient(80% 90% at 90% 85%, rgba(241, 132, 203, 0.18), transparent 52%),
    #0c080a;
  border-color: rgba(233, 60, 172, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 40px rgba(233, 60, 172, 0.2),
    0 0 64px rgba(254, 80, 0, 0.1);
}
.results-score-stage.is-reveal-meta .results-score-panel.is-fail::before,
.results-score-stage.is-fail.is-reveal-meta .results-score-panel::before {
  background: radial-gradient(
    circle at center,
    rgba(233, 60, 172, 0.42) 0%,
    rgba(254, 80, 0, 0.16) 38%,
    transparent 72%
  );
}
.results-score-stage.is-reveal-meta .results-score-panel > * {
  position: relative;
  z-index: 1;
}
.results-score-stage .results-gauge {
  margin: 0;
  width: min(420px, 100%);
}
.results-score-stage .ring-ok {
  transition: none;
}
.results-score-stage.is-tremor .results-gauge {
  animation: results-gauge-tremor 0.12s linear infinite;
}
.results-score-meta {
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  max-height: 0;
  margin: 0 !important;
  overflow: hidden;
  visibility: hidden;
}
.results-score-stage.is-reveal-meta .results-score-meta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  max-height: none;
  margin: 0 !important;
  overflow: visible;
  visibility: visible;
  animation: results-enter-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.results-score-stage.is-reveal-meta .results-score-identity {
  animation-delay: 0.06s;
}
.results-score-stage.is-reveal-meta .results-score-title {
  animation-delay: 0.14s;
}
.results-score-cases {
  width: 100%;
  max-width: 28rem;
  margin: 0;
}
.results-score-stage.is-reveal-meta .results-score-cases {
  animation-delay: 0.28s;
}
.results-score-stage.is-reveal-meta .results-score-cases .results-pip {
  opacity: 0;
  animation: results-enter-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.36s + (var(--i, 0) * 0.08s));
}
.results-score-campaign {
  max-width: min(48rem, 100%);
  width: 100%;
  margin: 0;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}
.results-score-stage.is-reveal-meta .results-score-campaign {
  animation-delay: 0.55s;
}
.results-score-actions {
  width: min(420px, 100%);
  max-width: 100%;
  display: grid;
  gap: 12px;
  box-sizing: border-box;
}
.results-score-stage.is-reveal-meta .results-score-actions {
  animation-delay: 0.68s;
}
.results-score-stage .results-cases-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(18px, 2.6vw, 22px);
}
.results-score-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 14px);
  width: 100%;
  min-width: 0;
}
.results-score-shield {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: clamp(72px, 12vw, 92px);
  height: clamp(72px, 12vw, 92px);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #141414;
  border: 1.6px solid var(--turquoise);
  box-shadow:
    0 0 22px rgba(42, 210, 201, 0.24),
    0 0 36px rgba(233, 60, 172, 0.12);
  flex: 0 0 auto;
}
.results-score-shield::before {
  content: "";
  position: absolute;
  inset: -22% -28%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(42, 210, 201, 0.36) 0%,
    rgba(42, 210, 201, 0.12) 40%,
    transparent 72%
  );
  filter: blur(12px);
  pointer-events: none;
}
.results-score-shield img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}
.results-score-team {
  margin: 0;
  max-width: 100%;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--turquoise);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.results-score-title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}
.results-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}
.results-confetti-piece {
  position: absolute;
  top: -8%;
  left: 0;
  width: var(--size, 24px);
  height: var(--size-h, var(--size, 24px));
  object-fit: contain;
  display: block;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 4px rgba(42, 210, 201, 0.25));
  animation: results-confetti-fall var(--dur, 3.4s) ease-in var(--delay, 0s) forwards;
}
@keyframes results-confetti-fall {
  0% {
    transform:
      translate3d(0, 0, 0)
      rotate(var(--rot0, 0deg))
      skew(var(--skew-x, 0deg), var(--skew-y, 0deg))
      scale(var(--sx, 1), var(--sy, 1));
    opacity: 1;
  }
  45% {
    transform:
      translate3d(calc(var(--x, 0px) * 0.45), 52vh, 0)
      rotate(calc(var(--rot, 120deg) * 0.55))
      skew(var(--skew-x, 0deg), var(--skew-y, 0deg))
      scale(var(--sx, 1), var(--sy, 1));
    opacity: 0.92;
  }
  100% {
    transform:
      translate3d(var(--x, 0px), 115vh, 0)
      rotate(var(--rot, 120deg))
      skew(var(--skew-x, 0deg), var(--skew-y, 0deg))
      scale(calc(var(--sx, 1) * 0.9), calc(var(--sy, 1) * 0.85));
    opacity: 0;
  }
}
@keyframes results-gauge-tremor {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, 2px) rotate(-0.6deg); }
  50% { transform: translate(3px, -2px) rotate(0.7deg); }
  75% { transform: translate(-2px, -1px) rotate(0.35deg); }
  100% { transform: translate(1px, 2px) rotate(-0.3deg); }
}
@keyframes results-heart-oscillate {
  0%, 100% { transform: scale(0.92); opacity: 0.88; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes results-heart-aura {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  55% {
    opacity: 0.35;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}
@keyframes results-enter-up {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: none; }
}
@keyframes results-status-swap {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}
@keyframes results-heart-cover-grow {
  0% { transform: scale(1); }
  /* Escala generosa para cubrir anchos tablet/desktop sin dejar franjas. */
  100% { transform: scale(28); }
}

.sorteo-flag {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 999px;
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 34rem;
}
.sorteo-flag svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.sorteo-flag.in {
  background: transparent;
  border: 2px solid var(--pink);
  color: #fff;
}
.sorteo-flag.in svg {
  color: var(--pink);
}
.sorteo-flag.out {
  background: rgba(254, 80, 0, 0.12);
  border: 1.5px solid rgba(254, 80, 0, 0.45);
  color: #fe5000;
}
/*
 * Vista mobile secundaria (pruebas en celular).
 * Tablet sigue siendo la principal; aquí priorizamos flujo scrollable
 * para que botones/footers no queden pinados sobre el contenido.
 */
@media (max-width: 720px) {
  #app {
    padding:
      calc(12px + var(--safe-top))
      16px
      calc(16px + var(--safe-bottom));
  }

  .topbar { min-height: 48px; gap: 10px; }
  .topbar-brand { width: min(112px, 36vw); }
  .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .icon-btn .ico { width: 20px; height: 20px; }

  .btn {
    min-height: 52px;
    padding: 0 18px;
    font-size: 16px;
    border-radius: 14px;
  }
  .btn-ghost { border-radius: 14px; }

  .field { gap: 8px; }
  .field > span { font-size: 13px; }
  .field input {
    height: 52px;
    font-size: 16px;
    border-radius: 12px;
  }
  .field .hint { font-size: 13px; }
  .lead { font-size: 15px; line-height: 1.4; }

  /* —— Flujo: body crece, acciones van debajo (no flotan) —— */
  .screen-form .form-body,
  .game-main,
  .lobby-body,
  .results-body {
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    min-height: 0;
  }

  .screen-form .form-actions,
  .game-footer,
  .lobby-actions,
  .results-actions,
  .feedback-actions {
    position: static;
    flex: 0 0 auto;
    margin-top: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
    background: transparent;
  }

  .screen-lobby {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .case-stage {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  /* Menú / formularios */
  .campaign-hero img { width: min(100%, 280px); }
  .screen-join .campaign-hero img { width: 100%; max-width: none; }
  .mode-actions {
    gap: 10px;
  }
  .mode-card {
    padding: 14px 12px;
    border-radius: 18px;
    gap: 10px;
  }
  .mode-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .mode-card .copy small { font-size: 13px; }
  .mode-card .copy strong { font-size: 20px; }

  .screen-form { gap: 12px; }
  .screen-form .form-body {
    gap: 18px;
    padding: 8px 0 12px;
  }
  .screen-form .form-intro h1 { font-size: 26px; }
  .screen-form .form-fields { gap: 16px; }
  .screen-form .form-actions { gap: 8px; }

  /* Lobby */
  .lobby-shield { width: 64px; height: 64px; border-radius: 18px; }
  .lobby-team-copy h1 { font-size: 28px; }
  .lobby-status { font-size: 15px; padding: 10px 14px; }
  .lobby-slot { width: 30px; height: 28px; }
  .seat { width: 48px; height: 48px; }

  /* Juego */
  .screen-game { gap: 22px; padding-top: 14px; }
  .game-top { padding: 12px 12px; border-radius: 16px; gap: 12px; }
  .game-top-shield { width: 60px; height: 60px; border-radius: 18px; }
  .game-team-kicker { font-size: 15px; }
  .game-case-badge { min-height: 36px; font-size: 15px; padding: 0 14px; }
  .canal-chip { min-height: 32px; font-size: 13px; padding: 0 12px; }
  .game-title { font-size: 24px; }
  .game-question { font-size: 20px; margin: 0; }
  .game-footer { gap: 12px; padding-top: 14px; }
  .game-actions-row {
    gap: 10px;
  }
  .game-actions-row .game-timer,
  .game-timer {
    width: 72px;
    height: 72px;
  }
  .game-timer .timer-face strong { font-size: 24px; }
  .game-timer small { font-size: 10px; }
  .game-health { padding: 10px 12px; border-radius: 16px; }

  .answer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .answer-card {
    min-height: 72px;
    padding: 14px 10px;
    border-radius: 14px;
    gap: 8px;
  }
  .answer-glyph {
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: 12px;
  }
  .answer-card strong { font-size: 24px; }

  .wait-banner {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  .case-mail { border-radius: 8px; }
  .case-mail .mail-toolbar { min-height: 34px; padding: 2px 8px; }
  .case-mail .mail-tb-btn { font-size: 12px; padding: 0 8px; min-height: 26px; }
  .case-mail .mail-reading { padding: 12px 12px 14px; }
  .mail-banners { gap: 5px; margin-bottom: 10px; }
  .mail-banner { font-size: 11px; padding: 7px 8px; gap: 6px; }
  .mail-external-banner { font-size: 12px; padding: 8px 10px; margin-bottom: 10px; }
  .case-mail .mail-head strong { font-size: 14px; }
  .case-mail .meta-row { font-size: 13px; margin-bottom: 8px; }
  .case-mail .meta-row .label { font-size: 12px; min-width: 44px; padding-top: 4px; }
  .case-mail .mail-avatar { width: 30px; height: 30px; font-size: 11px; }
  .case-mail .mail-from-addr,
  .case-mail .pill-from { font-size: 13px; }
  .case-mail .subject-inline { font-size: 15px; padding-top: 2px; }
  .case-mail .body {
    font-size: 14px;
    line-height: 1.45;
    padding-top: 12px;
  }
  .case-mail .link { font-size: 13px; }
  .teams-who strong,
  .wa-who strong { font-size: 14px; }
  .teams-msg-text,
  .wa-bubble p {
    font-size: 14px;
    line-height: 1.4;
  }
  .teams-gate { margin: 10px 8px 0; padding: 16px 12px 12px; }
  .teams-gate-icon { width: 60px; height: 60px; }
  .teams-gate-title { font-size: 15px; }
  .teams-gate-btn { min-height: 34px; font-size: 13px; }
  .teams-header-corp { padding: 8px 10px 0; gap: 10px; }
  .teams-tabs { gap: 10px; }
  .teams-tabs span { font-size: 12px; padding-bottom: 6px; }
  .teams-composer { padding: 6px 8px 10px; }
  .teams-composer-box { min-height: 36px; padding: 4px 8px 4px 12px; }
  .teams-composer-ph { font-size: 13px; }
  .teams-tool { width: 28px; height: 28px; }
  .teams-h-btn { width: 26px; height: 26px; }
  .wa-encrypt { font-size: 11px; padding: 7px 10px; }
  .wa-unknown-card { padding: 14px 12px 12px; border-radius: 16px; }
  .wa-unknown-avatar { width: 60px; height: 60px; }
  .wa-unknown-phone { font-size: 18px; }
  .wa-unknown-meta { font-size: 11px; }
  .wa-unknown-btn { min-height: 34px; font-size: 12px; }

  /* Feedback / resultados */
  .feedback-panel {
    padding: 20px 16px 16px;
    border-radius: 20px;
  }
  .feedback-panel h1 { font-size: 26px; }
  .feedback-body,
  .results-card .campaign-line {
    font-size: 15px;
  }
  .results-card {
    padding: 16px 12px;
    gap: 12px;
  }
  .results-card h1 { font-size: 21px; }

  .countdown-num {
    width: min(220px, 56vw);
    height: min(220px, 56vw);
  }
  .countdown-num span {
    font-size: clamp(96px, 28vw, 140px);
  }
}
