/* Hidden draft map. The first block opens one quiz question. */
.gmap-head {
  margin-bottom: 16px;
}

.gmap-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 520;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #10161d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.gmap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gmap-svg-tall {
  display: none;
}

.gmap-stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 0;
  height: 0;
}

.gmap-stop-here {
  --x: 22%;
  --y: 72%;
}

.gmap-stop-soon {
  --x: 78%;
  --y: 30%;
}

.gmap-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow:
    0 0 0 6px #dc2626,
    0 0 0 12px rgba(220, 38, 38, 0.28);
}

.gmap-stop-soon .gmap-pin {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.gmap-label {
  position: absolute;
  left: 0;
  top: 28px;
  transform: translateX(-50%);
  display: block;
  width: max-content;
  max-width: 230px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #dc2626;
  color: #fff;
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.28);
}

.gmap-stop-soon .gmap-label {
  top: auto;
  bottom: 26px;
  max-width: 140px;
  background: rgba(18, 25, 32, 0.92);
  color: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (max-width: 900px) {
  .gmap-board {
    aspect-ratio: 360 / 640;
  }

  .gmap-svg-wide {
    display: none;
  }

  .gmap-svg-tall {
    display: block;
  }

  .gmap-stop-here {
    --x: 50%;
    --y: 76%;
  }

  .gmap-stop-soon {
    --x: 50%;
    --y: 22%;
  }

  .gmap-label {
    max-width: min(230px, 72vw);
    font-size: 0.98rem;
  }
}

button.gmap-stop {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.gmap-stop:hover .gmap-label,
button.gmap-stop:focus-visible .gmap-label {
  filter: brightness(1.08);
}

button.gmap-stop:focus-visible .gmap-label {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.gmap.is-quiz .gmap-board {
  display: none;
}

.gquiz {
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

.gquiz-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(220, 38, 38, 0.16), transparent 55%),
    #141c26;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 22px 22px 20px;
}

.gquiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gquiz-back {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}

.gquiz-back:hover,
.gquiz-back:focus-visible {
  color: #fff;
}

.gquiz-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  min-width: 2ch;
  text-align: right;
}

.gquiz-time.is-low {
  color: #fca5a5;
}

.gquiz-track {
  height: 4px;
  margin: 14px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gquiz-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: #dc2626;
  transform-origin: left center;
}

.gquiz-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gquiz-q {
  max-width: 100%;
  overflow-wrap: break-word;
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.gquiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.gquiz-option {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}

.gquiz-option:hover:not(:disabled),
.gquiz-option:focus-visible:not(:disabled) {
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(220, 38, 38, 0.12);
}

.gquiz-option.is-right {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(52, 211, 153, 0.16);
}

.gquiz-option.is-wrong {
  border-color: rgba(248, 113, 113, 0.8);
  background: rgba(220, 38, 38, 0.16);
}

.gquiz-note {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-weight: 750;
}

@media (max-width: 900px) {
  .gquiz-card {
    padding: 18px 16px 16px;
  }

  .gquiz-q {
    font-size: 1.15rem;
  }
}

.gquiz-next {
  display: inline-flex;
  margin-top: 14px;
  border: 0;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-weight: 750;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.gquiz-next:hover,
.gquiz-next:focus-visible {
  background: #ef4444;
}
