/* Siluetas del Mundo: its own look on top of the shared Pop menu and HUD.
   A map table: teal sea, parchment with contour lines and dark cut-out pieces. */
:root {
  --sil-ink: #13234a;
  --sil-deep: #075159;
  --sil-teal: #0f8c88;
  --sil-green: #2f9e3a;
}
body {
  background:
    url("fondo.svg") center / cover no-repeat,
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 78% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 88%, #fff 50%, transparent 51%),
    linear-gradient(160deg, var(--c1), var(--c2));
}

/* ---------- Menu ---------- */
.pop-logo {
  width: 150px;
  height: 140px;
  font-size: 0;
}
.pop-logo svg.sil-logo {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 10px rgba(0, 40, 50, 0.4));
  animation: pop-bob 2.4s ease-in-out infinite;
}
.pop-reto-row .pop-btn.sil-atlasbtn {
  padding-inline: 8px;
  font-size: 19px;
}
.sil-atlasbtn b {
  font-weight: 800;
}
.pop-level small {
  color: #0d6f6c;
}
.sil-rec {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #b07800;
  letter-spacing: 0;
}

/* ---------- Play screen ---------- */
.pop-play {
  background:
    url("fondo.svg") center / cover no-repeat,
    radial-gradient(90% 40% at 15% 8%, rgba(140, 255, 230, 0.25), transparent 70%),
    radial-gradient(80% 35% at 95% 30%, rgba(140, 255, 230, 0.16), transparent 70%),
    linear-gradient(180deg, #0a6670 0%, #0e8582 40%, #11928d 72%, #0c7976 100%);
}
.pop-hud {
  gap: 7px;
  padding: 8px 10px 4px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  min-height: 62px;
}
.pop-icon {
  width: 46px;
  height: 46px;
  color: var(--sil-ink);
  background: linear-gradient(180deg, #ffffff 0%, #effcf9 60%, #d4f0ea 100%);
  box-shadow:
    inset 0 2px 0 #fff,
    0 4px 0 var(--sil-deep),
    0 7px 14px rgba(0, 40, 50, 0.35);
}
.pop-icon:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 #fff,
    0 1px 0 var(--sil-deep);
}
.pop-icon svg {
  width: 24px;
  height: 24px;
}
.pop-hud .pop-icon:last-child {
  color: #fff;
  background: radial-gradient(circle at 50% 30%, #6fe3d6 0%, #17aaa0 55%, #0b7f7a 100%);
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 -4px 0 rgba(0, 60, 60, 0.25),
    0 4px 0 var(--sil-deep),
    0 7px 14px rgba(0, 40, 50, 0.35);
}
.pop-lvl {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
  font-size: 22px;
  text-shadow: 0 2px 0 rgba(0, 40, 50, 0.35);
}
.pop-lvl > span {
  min-width: 0;
  line-height: 1;
  overflow: hidden;
}
.pop-lvl b {
  display: block;
  font-weight: 800;
}
.pop-lvl small {
  max-width: 150px;
  margin-top: 0;
  /* con line-height 1 y overflow hidden se cortaba la tilde de «África» */
  line-height: 1.25;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pop-hud.sil-3 .pop-lvl {
  max-width: 34%;
}
.pop-hud.sil-3 .pop-chips {
  flex: 1 1 0;
  min-width: 0;
}
.sil-trophy {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M12 8H5v5c0 6 4 10 10 11M36 8h7v5c0 6-4 10-10 11' fill='none' stroke='%23f2a400' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M12 5h24v12c0 8-5 14-12 14S12 25 12 17z' fill='%23ffc61a' stroke='%23e08f00' stroke-width='2'/%3E%3Cpath d='M17 8v9c0 4 2 8 5 9' fill='none' stroke='%23fff3a8' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M21 31h6l1 6h-8z' fill='%23f2a400'/%3E%3Crect x='14' y='37' width='20' height='7' rx='2' fill='%23ffc61a' stroke='%23e08f00' stroke-width='2'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 2px 0 rgba(0, 40, 50, 0.35));
}
.sil-trophy.clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='27' r='17' fill='%23fff' stroke='%23ff5a6e' stroke-width='5'/%3E%3Crect x='19' y='3' width='10' height='6' rx='2' fill='%23ff5a6e'/%3E%3Cpath d='M24 16v11l7 5' fill='none' stroke='%231a2350' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.pop-chips {
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.pop-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 2px 11px 2px 7px;
  border-radius: 999px;
  color: var(--sil-ink);
  font-size: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fbf8 100%);
  box-shadow:
    inset 0 -3px 0 #cfeee7,
    0 4px 0 var(--sil-deep),
    0 7px 12px rgba(0, 40, 50, 0.3);
}
.sil-hi {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: center / contain no-repeat;
}
.sil-hi.heart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 28S3 20 3 11a6.5 6.5 0 0 1 13-2 6.5 6.5 0 0 1 13 2c0 9-13 17-13 17z' fill='%23f2243f' stroke='%23b8001f' stroke-width='1.5'/%3E%3Cpath d='M8 9.5a3.5 3.5 0 0 1 4-2.5' fill='none' stroke='%23ffb3bd' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.sil-hi.star {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.4 7 .8-5.2 4.8 1.4 6.9L12 17.3l-6.2 3.4 1.4-6.9L2 9l7-.8z' fill='%23ffc61a' stroke='%23e89400' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M12 4.5l2.1 4.6 4.6.5' fill='none' stroke='%23fff6b0' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.sil-hi.time {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='27' r='17' fill='%23fff' stroke='%23ff5a6e' stroke-width='5'/%3E%3Crect x='19' y='3' width='10' height='6' rx='2' fill='%23ff5a6e'/%3E%3Cpath d='M24 16v11l7 5' fill='none' stroke='%231a2350' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.pop-overlay {
  background: rgba(0, 45, 55, 0.55);
}

/* ---------- Layout of the round ---------- */
.pop-dom.sil {
  justify-content: flex-start;
  gap: 9px;
  padding-top: 4px;
}

/* Progress */
.sil-barrow {
  width: min(560px, 100%);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  text-shadow: 0 2px 0 rgba(0, 40, 50, 0.35);
}
.sil-bar {
  flex: 1;
  height: 16px;
  padding: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #06505a, #0a6670);
  box-shadow:
    inset 0 2px 3px rgba(0, 20, 30, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.35);
}
.sil-bar i {
  display: block;
  height: 100%;
  width: 0;
  min-width: 10px;
  border-radius: 99px;
  background: linear-gradient(180deg, #fff6a0 0%, #ffd83a 45%, #ffb300 100%);
  box-shadow:
    inset 0 -2px 0 rgba(180, 100, 0, 0.35),
    0 0 8px rgba(255, 220, 60, 0.7);
  transition: width 0.35s;
}

/* The stage: parchment map table with the piece in the spotlight */
.sil-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 160px;
  width: min(560px, 100%);
  border-radius: 26px;
  overflow: hidden;
  background:
    url("mapa.svg") center / cover no-repeat,
    radial-gradient(60% 50% at 50% 52%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(120% 95% at 50% 50%, #fff8e6 0%, #f9ebc6 45%, #ecd296 82%, #dcbb76 100%);
  box-shadow:
    0 5px 0 var(--sil-deep),
    0 10px 22px rgba(0, 40, 50, 0.35);
}
.sil-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  touch-action: manipulation;
}
.sil-stage canvas.sil-relief {
  pointer-events: none;
  transition: opacity 0.25s;
}
/* white frame drawn above the stage (a border would shift the canvas maths) */
.sil-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.92),
    inset 0 0 0 4px rgba(120, 80, 20, 0.2),
    inset 0 0 26px rgba(120, 80, 20, 0.28);
  pointer-events: none;
  z-index: 3;
}

/* The question, pinned on top of the stage like a label */
.sil-ask {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 20px);
  padding: 5px 18px 5px 6px;
  border-radius: 999px;
  color: var(--sil-ink);
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf9 100%);
  box-shadow:
    inset 0 -3px 0 rgba(15, 140, 136, 0.15),
    0 4px 0 rgba(7, 81, 89, 0.55),
    0 8px 14px rgba(60, 40, 10, 0.2);
  pointer-events: none;
}
.sil-ask.in {
  animation: sil-drop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.sil-ask b {
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sil-q {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-style: normal;
  font-weight: 800;
  background: radial-gradient(circle at 50% 30%, #5fe0d2 0%, #13a39a 55%, #0b7f7a 100%);
  box-shadow:
    inset 0 0 0 2.5px #fff,
    0 2px 0 rgba(7, 81, 89, 0.5);
}
.sil-ask.big {
  flex-direction: column;
  gap: 0;
  padding: 6px 22px 8px;
  border-radius: 22px;
  text-align: center;
}
.sil-ask.big small {
  font-size: 15px;
  font-weight: 700;
  color: #4a6a78;
}
.sil-ask.big b {
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1;
}

/* Hint badges: continent and flag */
.sil-badges {
  position: absolute;
  top: 62px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.sil-stage.tall .sil-badges {
  top: auto;
  bottom: 50%;
}
.sil-badge {
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  background: var(--bc, #13a39a);
  box-shadow:
    inset 0 0 0 2.5px rgba(255, 255, 255, 0.85),
    0 3px 0 rgba(0, 0, 0, 0.18),
    0 6px 10px rgba(60, 40, 10, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  animation: sil-thump 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.sil-badge.flag {
  margin-left: auto;
  padding: 0;
  background: #fff;
  transform: rotate(4deg);
}
.sil-badge.flag img {
  display: block;
  height: 44px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 3px solid #fff;
  object-fit: cover;
}

/* Answer card over the top of the stage */
.sil-card {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 9px 10px 9px 9px;
  border-radius: 22px;
  color: var(--sil-ink);
  animation: sil-cardin 0.42s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.sil-card[hidden] {
  display: none;
}
.sil-card.good {
  background: linear-gradient(180deg, rgba(242, 255, 244, 0.97) 0%, rgba(220, 248, 226, 0.97) 100%);
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 -4px 0 rgba(40, 150, 70, 0.14),
    0 0 0 3px rgba(140, 255, 160, 0.55),
    0 5px 0 rgba(7, 81, 89, 0.7),
    0 10px 24px rgba(0, 40, 50, 0.35);
}
.sil-card.miss {
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.97) 0%, rgba(255, 236, 201, 0.97) 100%);
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 -4px 0 rgba(200, 120, 20, 0.14),
    0 0 0 3px rgba(255, 200, 110, 0.55),
    0 5px 0 rgba(7, 81, 89, 0.7),
    0 10px 24px rgba(0, 40, 50, 0.35);
}
.sil-flag {
  height: 60px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
  border: 4px solid #fff;
  transform: rotate(-4deg);
  box-shadow:
    0 0 0 1px rgba(20, 40, 100, 0.12),
    0 4px 0 rgba(7, 81, 89, 0.25),
    0 6px 12px rgba(0, 40, 50, 0.2);
}
.sil-txt {
  min-width: 0;
  line-height: 1.1;
  padding-right: 50px;
}
.sil-txt small {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--sil-green);
}
.sil-card.miss .sil-txt small {
  color: #c4620a;
}
.sil-txt b {
  display: block;
  font-size: clamp(26px, 7.6vw, 36px);
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}
.sil-txt b.long {
  font-size: clamp(21px, 5.8vw, 28px);
}
.sil-txt em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 700;
  color: #2c8a3a;
}
.sil-card.miss .sil-txt em {
  color: #a8560c;
}
.sil-more {
  grid-column: 1 / -1;
  min-width: 0;
}
.sil-more i {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 2px dashed rgba(40, 140, 70, 0.22);
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
  color: #2d3a66;
  line-height: 1.22;
}
.sil-card.miss .sil-more i {
  border-top-color: rgba(200, 120, 20, 0.25);
}
.sil-more i::before {
  content: "🔍";
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.15;
}
.sil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.sil-chips span {
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0d5f5c;
  background: #dff6f1;
  box-shadow: inset 0 0 0 1.5px rgba(13, 95, 92, 0.2);
}
.sil-chips span.new {
  color: #1d4fbf;
  background: #e2ecff;
  box-shadow: inset 0 0 0 1.5px rgba(29, 79, 191, 0.25);
  animation: sil-thump 0.55s 0.25s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.sil-mascot {
  position: absolute;
  right: 2px;
  top: 0;
  width: 62px;
  height: 66px;
  pointer-events: none;
  animation: sil-wave 1.2s ease-in-out infinite alternate;
}

/* Hints, and the Next button in the same row */
.sil-tools {
  flex: 0 0 auto;
  width: min(560px, 100%);
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.sil-help {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 170px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px 5px 4px;
  border: 0;
  border-radius: 999px;
  color: var(--sil-ink);
  background: linear-gradient(180deg, #ffffff 0%, #f0fbf8 100%);
  box-shadow:
    inset 0 -3px 0 #cfeee7,
    0 4px 0 var(--sil-deep),
    0 7px 12px rgba(0, 40, 50, 0.3);
  animation: sil-in 0.35s both;
}
.sil-help:nth-child(2) {
  animation-delay: 0.06s;
}
.sil-help:nth-child(3) {
  animation-delay: 0.12s;
}
.sil-help i {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 17px;
  background: radial-gradient(circle at 50% 30%, #fff38a, #ffd23f 55%, #f5a800);
  box-shadow: inset 0 0 0 2px #fff;
}
.sil-help span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(12px, 3.3vw, 15px);
  font-weight: 800;
  letter-spacing: -0.2px;
}
.sil-help small {
  position: absolute;
  top: -7px;
  right: -2px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  color: #fff;
  background: #e8435a;
  box-shadow: 0 0 0 2px #fff;
}
.sil-help:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 -3px 0 #cfeee7,
    0 1px 0 var(--sil-deep);
}
.sil-help.used {
  opacity: 0.4;
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sil-deep);
}
.sil-next {
  position: relative;
  width: min(100% - 64px, 440px);
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: var(--sil-ink);
  font-weight: 800;
  font-size: 26px;
  background: linear-gradient(180deg, #fff59a 0%, #ffe03d 40%, #ffc21a 75%, #ffab00 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.75),
    inset 0 -4px 0 rgba(200, 110, 0, 0.3),
    0 6px 0 #c77700,
    0 10px 20px rgba(0, 40, 50, 0.35);
  animation: sil-in 0.35s;
}
.sil-next:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.75),
    0 2px 0 #c77700;
}
.sil-next::before,
.sil-next::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 34px;
  margin-top: -20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 34'%3E%3Cg stroke='%23fff6b0' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M14 3l-6 6M17 17H5M14 31l-6-6'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
  animation: sil-twinkle 1.4s ease-in-out infinite;
}
.sil-next::before {
  left: -28px;
}
.sil-next::after {
  right: -28px;
  transform: scaleX(-1);
}

/* Answers */
.sil-opts {
  flex: 0 0 auto;
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sil-opts:empty {
  display: none;
}
.sil-opt {
  position: relative;
  border: 0;
  border-radius: 20px;
  padding: 8px 12px;
  min-height: 58px;
  color: var(--sil-ink);
  font-weight: 800;
  font-size: clamp(16px, 4.6vw, 21px);
  line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 0%, #f5fcfa 55%, #e2f4ef 100%);
  box-shadow:
    inset 0 2px 0 #fff,
    inset 0 -3px 0 rgba(15, 140, 136, 0.12),
    0 5px 0 #a9d8cf,
    0 9px 16px rgba(0, 40, 50, 0.3);
  transition: opacity 0.25s;
  animation: sil-rise 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.sil-opts > .sil-opt:nth-child(2) {
  animation-delay: 0.05s;
}
.sil-opts > .sil-opt:nth-child(3) {
  animation-delay: 0.1s;
}
.sil-opts > .sil-opt:nth-child(4) {
  animation-delay: 0.15s;
}
.sil-opt:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 #fff,
    0 2px 0 #a9d8cf;
}
.sil-opt.flag {
  padding: 7px;
  min-height: 0;
}
.sil-opt.flag img {
  display: block;
  height: clamp(50px, 9vh, 86px);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.sil-opt.flag span {
  display: block;
  font-size: 13px;
  margin-top: 3px;
  min-height: 15px;
}
.sil-opt.ok,
.sil-opt.no {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: none;
}
.sil-opt.flag.ok,
.sil-opt.flag.no {
  display: block;
}
.sil-opt.ok {
  color: #0e3b12;
  background: linear-gradient(180deg, #b9ff8f 0%, #74ec4c 50%, #45d43a 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.85),
    inset 0 -4px 0 rgba(20, 120, 20, 0.25),
    0 5px 0 #2a9a2a,
    0 0 0 3px rgba(150, 255, 120, 0.4),
    0 0 22px 4px rgba(120, 255, 100, 0.55);
}
.sil-opt.no {
  color: #5c0b1a;
  background: linear-gradient(180deg, #ffd0d6 0%, #ff97a6 55%, #ff7a8e 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.8),
    inset 0 -4px 0 rgba(160, 20, 40, 0.2),
    0 5px 0 #c94459,
    0 9px 16px rgba(0, 40, 50, 0.3);
  animation: sil-shake 0.4s;
}
.sil-opt.ok::before,
.sil-opt.no::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: center / contain no-repeat;
}
.sil-opt.ok::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23168f2e' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M9 16.5l4.5 4.5L23 11.5' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sil-opt.no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23d81f3c' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M11 11l10 10M21 11L11 21' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.sil-opt.flag.ok::before,
.sil-opt.flag.no::before {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 1;
}
.sil-opt.gone {
  opacity: 0.18;
  pointer-events: none;
}

/* ---------- Atlas ---------- */
.sil-atlas {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  background:
    url("fondo.svg") center / cover no-repeat fixed,
    linear-gradient(170deg, #0a6670, #074c56);
  color: #fff;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 30px;
  touch-action: pan-y;
  animation: pop-fade 0.2s;
}
.sil-atlas header {
  position: sticky;
  top: -12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -12px -14px 10px;
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, #0a6670 75%, rgba(10, 102, 112, 0));
}
.sil-atlas h2 {
  flex: 1;
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(0, 40, 50, 0.4);
}
.sil-atlas h2 small {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0.9;
  text-shadow: none;
}
.sil-atlas header .pop-btn {
  flex: 0 0 auto;
  min-width: 0;
  width: 48px;
  height: 48px;
  padding: 0;
}
.sil-atlas h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 18px auto 8px;
  font-size: 19px;
}
.sil-atlas h3 i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px #fff;
}
.sil-atlas h3 span {
  margin-left: auto;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(0, 40, 50, 0.3);
  font-size: 14px;
}
.sil-atgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
.sil-at {
  padding: 6px 4px 5px;
  border-radius: 16px;
  text-align: center;
  color: var(--sil-ink);
  background:
    url("mapa.svg") center / cover,
    radial-gradient(120% 95% at 50% 50%, #fff8e6 0%, #f6e5ba 70%, #e6c98a 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.85),
    0 4px 0 rgba(0, 40, 50, 0.35);
}
.sil-at svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.sil-at b {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sil-at.off {
  background: rgba(255, 248, 230, 0.55);
}
.sil-at.off b {
  color: rgba(19, 35, 74, 0.55);
}
.sil-at.fresh {
  animation: sil-stamp 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 0 3px #ffd23f,
    0 4px 0 rgba(0, 40, 50, 0.35);
}

/* ---------- Animations ---------- */
@keyframes sil-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
}
@keyframes sil-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes sil-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -24px) scale(0.85);
  }
}
@keyframes sil-cardin {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }
}
@keyframes sil-thump {
  0% {
    opacity: 0;
    transform: scale(1.8) rotate(-8deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.94);
  }
}
@keyframes sil-stamp {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-10deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.95) rotate(2deg);
  }
}
@keyframes sil-shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
@keyframes sil-wave {
  from {
    transform: rotate(-6deg);
  }
  to {
    transform: rotate(6deg) translateY(-2px);
  }
}
@keyframes sil-twinkle {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sil-ask.in,
  .sil-card,
  .sil-opt,
  .sil-help,
  .sil-next,
  .sil-badge,
  .sil-at.fresh,
  .sil-mascot,
  .pop-logo svg.sil-logo {
    animation: none;
  }
}

/* Narrow phones (≤ 380 px): smaller hint icon so «Continente» fits whole */
@media (max-width: 380px) {
  .sil-tools {
    gap: 6px;
  }
  .sil-help {
    gap: 3px;
    min-height: 40px;
    padding: 5px 5px 5px 3px;
  }
  .sil-help i {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .sil-help span {
    font-size: 12px;
    letter-spacing: -0.4px;
  }
}

/* Short screens (small phones): tighter card and buttons */
@media (max-height: 700px) {
  .sil-opt {
    min-height: 50px;
  }
  .sil-flag {
    height: 50px;
  }
  .sil-more i {
    font-size: 12.5px;
  }
}

/* Phone on its side: a wider stage and, on the answer, the card on the left
   with the map on the right (the card used to cover the whole map). The
   answer buttons hide meanwhile: the card already says which one it was. */
.pop-dom.sil.sil-land .sil-barrow,
.pop-dom.sil.sil-land .sil-stage,
.pop-dom.sil.sil-land .sil-opts {
  width: min(760px, 100%);
}
.pop-dom.sil.sil-land .sil-opts {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pop-dom.sil.sil-land .sil-opt {
  min-height: 44px;
}
@media (max-height: 380px) {
  .pop-dom.sil.sil-land .sil-stage {
    min-height: 140px;
  }
}
.pop-dom.sil.sil-land.sil-rev .sil-opts {
  display: none;
}
.pop-dom.sil.sil-land .sil-card {
  right: auto;
  bottom: 8px;
  width: min(54%, 380px);
  align-content: center;
  overflow-y: auto;
  padding: 7px 9px 7px 8px;
}
.pop-dom.sil.sil-land .sil-flag {
  height: 46px;
}
.pop-dom.sil.sil-land .sil-txt {
  padding-right: 40px;
}
.pop-dom.sil.sil-land .sil-txt small {
  font-size: 15px;
}
.pop-dom.sil.sil-land .sil-txt b {
  font-size: 26px;
}
.pop-dom.sil.sil-land .sil-txt b.long {
  font-size: 21px;
}
.pop-dom.sil.sil-land .sil-mascot {
  width: 46px;
  height: 50px;
}
