.danger {
  border-color: rgba(255, 88, 104, .42);
  background: rgba(255, 88, 104, .16);
  color: #ffd9de;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading.compact {
  align-items: end;
}

.menu-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.result-actions {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.pause-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pause-panel,
.settings-panel {
  width: min(720px, 94vw);
}

.pause-runes {
  display: grid;
  gap: 10px;
}

.rune-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
}

.rune-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  max-width: 100%;
  border: 1px solid rgba(88, 222, 200, .18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(88, 222, 200, .09);
  color: #eaffff;
  font-size: 13px;
  font-weight: 850;
}

.rune-entry strong {
  overflow-wrap: anywhere;
}

.rune-entry em {
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(244, 211, 94, .18);
  color: #f4d35e;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.rune-entry.empty {
  color: #9eacc8;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toggle-row {
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, .055);
  color: #f7fbff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-row i {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  transition: background .14s ease;
}

.toggle-row i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d9e5f3;
  transition: transform .14s ease, background .14s ease;
}

.toggle-row input:checked + i {
  background: rgba(88, 222, 200, .5);
}

.toggle-row input:checked + i::after {
  transform: translateX(20px);
  background: #ffffff;
}

.result-panel {
  width: min(820px, 96vw);
}

.result-hero {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 10px;
}

.result-hero div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(88, 222, 200, .14), rgba(244, 211, 94, .08)),
    rgba(255, 255, 255, .055);
}

.result-hero span {
  display: block;
  color: #9eacc8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-hero strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(34px, 7vw, 64px);
  line-height: .9;
  font-weight: 950;
}

.result-runes {
  max-height: 86px;
}

.share-status {
  min-height: 18px;
  color: #9eacc8;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .menu-actions,
  .result-actions,
  .pause-actions,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
