.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);

  @media (max-width: 900px) {
    grid-template-columns: 1fr;
  }
}

.panel,
.deck-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(18 21 15 / 90%);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.primary,
.secondary,
.quiet {
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 700;
}

.primary {
  border: 1px solid #f7d575;
  color: #1b1607;
  background: var(--gold);
  box-shadow: 0 9px 26px rgb(244 189 63 / 14%);
}

.secondary {
  border: 1px solid #4a4938;
  color: var(--ink);
  background: #1d2018;
}

.secondary.selected,
.quiet.selected {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.quiet {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.full {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.actions.centered {
  justify-content: center;
}

.hero {
  position: relative;
  min-height: 320px;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  display: flex;
  align-items: end;

  @media (max-width: 720px) {
    min-height: 360px;
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 340px;
  height: 340px;
  border: 52px solid rgb(244 189 63 / 11%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgb(244 189 63 / 4%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.metrics {
  grid-template-columns: repeat(3, 1fr);

  @media (max-width: 720px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric {
  padding: 18px;
  border-left: 1px solid var(--line);

  @media (max-width: 720px) {
    padding: 14px 9px;
  }
}

.metric:first-child {
  border-left: 0;
}

.metric b {
  display: block;
  font: 900 34px "Jost", sans-serif;

  @media (max-width: 720px) {
    font-size: 26px;
  }
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.notice,
.deck-notice,
.deck-validation {
  padding: 11px 13px;
  border: 1px solid #8c6934;
  border-radius: 10px;
  color: #f2d598;
  background: #2c2414;
  font-size: 13px;
}

/* A notice about a Deck stands off from what it is about rather than butting against it. */
.deck-notice {
  margin: 10px;
}

.notice {
  border-left-width: 3px;
  border-radius: 0 10px 10px 0;
}

.failure {
  display: grid;
  gap: 3px;
  margin-bottom: 20px;
  border-color: var(--danger);
  color: #ffc7ba;
  background: rgb(124 43 30 / 23%);
}

.deck-validation {
  margin-top: 13px;
}

.deck-validation strong {
  display: block;
}

.deck-validation ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

.deck-validation.is-error,
.field-error {
  border-color: #a94b3d;
  color: #ffc0b2;
  background: #2b1511;
}

.deck-validation.is-ready {
  border-color: #527341;
  color: #bbdfa9;
  background: #172513;
}

.loading-panel,
.empty-state {
  max-width: 620px;
  margin: 15vh auto 0;
  text-align: center;
}

.toolbar,
.catalogue-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.search,
.choice-select,
.setup-card input,
.deck-name-input {
  color: var(--ink);
  border: 1px solid #454638;
  border-radius: 9px;
  background: #10120e;
  padding: 11px 13px;
}

.search {
  min-width: 140px;
  flex: 1;
}

