.simulator .mapfooter {
  display: none !important;
}

/* v2.6.66 — make the large centered dialogs use their available space */
.live-preview-dialog.tuned-dialog {
  align-content: space-evenly !important;
  justify-content: stretch !important;
  grid-template-rows: auto auto auto !important;
  gap: clamp(24px, 3.2vh, 44px) !important;
  padding: clamp(34px, 4.2vh, 56px) clamp(46px, 4vw, 84px) !important;
}

.live-preview-dialog.tuned-dialog > strong {
  font-size: calc(clamp(44px, 3vw, 62px) * var(--modal-font, 1)) !important;
  line-height: 1.2 !important;
}

.live-preview-dialog.tuned-dialog > p {
  font-size: calc(clamp(28px, 1.8vw, 38px) * var(--modal-font, 1)) !important;
  line-height: 1.65 !important;
}

.live-preview-dialog.tuned-dialog > button {
  min-height: clamp(78px, 8vh, 100px) !important;
  padding: 14px 24px !important;
  font-size: calc(clamp(28px, 1.8vw, 38px) * var(--modal-font, 1)) !important;
}

.live-preview-dialog.summary-dialog > p {
  font-size: calc(clamp(27px, 1.7vw, 34px) * var(--modal-font, 1)) !important;
  line-height: 1.7 !important;
}

/* v2.6.67 — restore the opening gameplay guide and its top-right entry */
.gameplay-help-toggle {
  position: fixed;
  top: 74px;
  right: 122px;
  z-index: 86;
  min-width: 112px;
  padding: 10px 16px;
  color: #fff7d8;
  background: #10234b;
  border: 2px solid #2478ff;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.gameplay-help-toggle:hover {
  background: #174277;
}

/* v2.6.68 — hide parameter access without moving the gameplay guide */
.debug-settings > .debug-toggle {
  display: none !important;
}

.gameplay-help-overlay {
  z-index: 95;
}

.live-preview-dialog.gameplay-help-dialog {
  top: 20vh !important;
  left: 26vw !important;
  width: 48vw !important;
  height: 60vh !important;
  max-height: 60vh !important;
}

.live-preview-dialog.gameplay-help-dialog > .gameplay-help-list {
  width: 100%;
  margin: 0;
  padding-left: clamp(34px, 2.8vw, 54px);
  font-size: calc(clamp(26px, 1.65vw, 34px) * var(--modal-font, 1)) !important;
  line-height: 1.7 !important;
}

.live-preview-dialog.gameplay-help-dialog > .gameplay-help-list li + li {
  margin-top: 8px;
}

@media (width <= 720px) {
  .gameplay-help-toggle {
    top: 58px;
    right: 108px;
    min-width: 98px;
  }

  .live-preview-dialog.gameplay-help-dialog {
    top: 50% !important;
    left: 50% !important;
    width: calc(100% - 28px) !important;
    height: auto !important;
    max-height: calc(100% - 28px) !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* v2.6.69 — staged victory stars and a stronger success impact */
.success-splash {
  overflow: hidden;
  animation:
    success-arrive 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2),
    victory-shake 0.58s 0.12s ease-out both !important;
}

.success-splash::before,
.success-splash::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18vmin;
  height: 18vmin;
  border: clamp(5px, 0.55vw, 10px) solid rgba(255, 225, 112, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.15);
  opacity: 0;
  animation: victory-ring 1.1s 0.08s cubic-bezier(0.1, 0.7, 0.2, 1) both;
}

.success-splash::after {
  border-color: rgba(92, 235, 255, 0.72);
  animation-delay: 0.28s;
}

.success-splash > strong {
  position: relative;
  z-index: 2;
  animation: victory-title 0.8s cubic-bezier(0.16, 1.35, 0.35, 1) both;
}

.success-splash > small {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: victory-caption 0.55s 1.95s ease-out both;
}

.success-stars {
  position: relative;
  z-index: 2;
  perspective: 700px;
  gap: clamp(6px, 0.7vw, 14px) !important;
  font-size: clamp(68px, 6.4vw, 116px) !important;
}

.success-stars span {
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI Symbol", sans-serif;
  font-weight: 900;
  -webkit-text-stroke: clamp(1px, 0.16vw, 3px) rgba(255, 245, 188, 0.72);
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 0 rgba(116, 65, 16, 0.68));
  animation: victory-star 0.62s cubic-bezier(0.12, 1.45, 0.3, 1) both;
}

.success-stars span:nth-child(1) { animation-delay: 0.38s; }
.success-stars span:nth-child(2) { animation-delay: 0.68s; }
.success-stars span:nth-child(3) { animation-delay: 0.98s; }
.success-stars span:nth-child(4) { animation-delay: 1.28s; }
.success-stars span:nth-child(5) { animation-delay: 1.58s; }

@keyframes victory-star {
  0% {
    opacity: 0;
    transform: scale(0);
    filter: brightness(2.4) blur(3px) drop-shadow(0 5px 0 rgba(116, 65, 16, 0.68));
  }
  58% {
    opacity: 1;
    transform: scale(1.42);
    filter: brightness(1.8) blur(0) drop-shadow(0 5px 0 rgba(116, 65, 16, 0.68));
  }
  78% {
    transform: scale(0.88);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 5px 0 rgba(116, 65, 16, 0.68));
  }
}

@keyframes victory-title {
  0% { opacity: 0; transform: scale(2.4); filter: blur(10px) brightness(2.2); }
  55% { opacity: 1; transform: scale(0.88); filter: blur(0) brightness(1.55); }
  76% { transform: scale(1.09); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

@keyframes victory-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.15); }
  16% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes victory-shake {
  0%, 100% { translate: 0 0; }
  18% { translate: -7px 3px; }
  34% { translate: 7px -4px; }
  50% { translate: -5px -2px; }
  66% { translate: 4px 2px; }
  82% { translate: -2px 1px; }
}

@keyframes victory-caption {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .success-splash,
  .success-splash::before,
  .success-splash::after,
  .success-splash > strong,
  .success-splash > small,
  .success-stars span {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}

@media (width >= 721px) {
  .simulator .panelheading h2 {
    font-size: 30px !important;
    line-height: 1.2;
  }

  .simulator .panelheading p {
    margin-bottom: 10px !important;
    font-size: 16px !important;
    line-height: 1.45;
  }

  .simulator:not(.manual-mode) .bendlist {
    flex: 1 1 auto !important;
    justify-content: stretch !important;
    gap: 8px !important;
    min-height: 0 !important;
  }

  .simulator:not(.manual-mode) .bendcard {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 12px 11px !important;
  }

  .simulator .bendtitle {
    margin-bottom: 6px !important;
  }

  .simulator .bendtitle strong {
    font-size: 24px !important;
  }

  .simulator .number {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }

  .simulator .bendtitle small {
    font-size: 14px !important;
  }

  .simulator .direction {
    min-height: 0 !important;
    height: 100% !important;
    padding: 8px 5px !important;
  }

  .simulator:not(.manual-mode) .directiongroup {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  .simulator .direction span {
    font-size: 25px !important;
  }

  .simulator .direction svg {
    width: 30px !important;
    height: 30px !important;
  }

  .simulator .direction small {
    font-size: 12px !important;
  }
}
