.help-dialog {
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.icon-button {
  flex: 0 0 auto;
  width: 2.25rem;
  padding-inline: 0;
  font-weight: 700;
}

.help-dialog .game-dialog__panel {
  width: min(72rem, calc(100vw - clamp(1.5rem, 6vw, 4rem)));
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  overflow: auto;
}

.help-dialog__content {
  display: grid;
  gap: 0.72rem;
}

.help-dialog__content p,
.help-dialog__content h3,
.help-dialog__content ul {
  margin: 0;
}

.help-dialog__section-title {
  color: #ffde7d;
  font-size: 0.88rem;
  line-height: 1.2;
}

.help-dialog__content ul {
  padding-left: 1.1rem;
}

.help-dialog__content li + li {
  margin-top: 0.44rem;
}

.pile-map {
  position: relative;
  width: 100%;
  min-height: 16rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.095), transparent 54%),
    linear-gradient(135deg, #34763a, #173d1f);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0.6rem 1.2rem rgba(0, 0, 0, 0.18) inset;
}

.pile-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 78% 80%, rgba(0, 0, 0, 0.18), transparent 38%);
}

.pile-map__pile {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 3.64rem;
  min-width: 0;
  min-height: 0;
  padding: 0.24rem;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.07), transparent 58%),
    rgba(255, 255, 255, 0.055);
  color: rgba(238, 248, 240, 0.9);
  font-size: var(--pile-map-font-size, 0.62rem);
  font-weight: 700;
  line-height: 1.02;
  text-align: center;
  overflow-wrap: anywhere;
  transform: rotate(var(--pile-map-rotation, 0deg));
  transform-origin: 50% 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12) inset,
    0 0.25rem 0.6rem rgba(0, 0, 0, 0.14);
}

.pile-map__label {
  position: relative;
  z-index: 1;
  display: block;
  transform: rotate(var(--pile-map-label-rotation, 0deg));
}

.pile-map__pile--foundation {
  border-color: rgba(255, 222, 125, 0.52);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 222, 125, 0.09), transparent 58%),
    rgba(255, 222, 125, 0.07);
  font-size: var(--pile-map-foundation-font-size, 0.52rem);
}

.pile-map__pile--tomb {
  border-style: solid;
  border-color: rgba(255, 222, 125, 0.58);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 222, 125, 0.11), transparent 58%),
    rgba(255, 222, 125, 0.08);
  color: #fff6cf;
}

.pile-map--wide {
  min-height: 15rem;
}

.pile-map--narrow {
  min-height: 22rem;
}
