/* Server Info: the tour of the game (serverInfo.js). Tokens and breakpoints are style.css's own. */

.tour { padding: 3.25rem 0; }

.tour--dark {
  border-block: 2px solid var(--gold);
  background: radial-gradient(ellipse 70% 90% at 15% 0%, var(--ink-raised), transparent 70%), var(--ink);
}

.tour__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 3rem;
}

.tour--flip .tour__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tour--flip .tour__copy { order: 2; }

.tour__kicker {
  color: var(--gold-ink);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.on-dark .tour__kicker { color: var(--gold-bright); }

.tour h2 {
  margin-top: .3rem;
  font-size: 2.25rem;
}

.tour__rule {
  width: 12rem;
  margin-top: .7rem;
}

.tour__lede {
  margin-top: .9rem;
  font-size: 1.0625rem;
}

.tour__points {
  display: grid;
  gap: .55rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}

.tour__points li {
  padding-left: 1.3rem;
  background: var(--diamond) 0 .5em / .45rem .45rem no-repeat;
}

.tour strong { font-weight: 700; }

.tour kbd {
  padding: .05em .4em;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: var(--parchment-raised);
  font: 600 .8em var(--font-body);
  white-space: nowrap;
}

.on-dark kbd {
  border-color: #C7994B99;
  color: var(--light);
  background: var(--ink-raised);
}

/* Screenshots: the game's dark windows in a thin gold frame. */
.shot { margin: 0; }
.shot a { display: block; border-radius: 10px; }

.shot img {
  width: 100%;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.shot a:hover img { border-color: var(--gold); }

.shot figcaption,
.duo figcaption {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .8125rem;
  font-style: italic;
  text-align: center;
}

.on-dark .shot figcaption { color: var(--light-muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
}

.shots--wide { grid-template-columns: minmax(0, 56rem); }

/* Illustrations: a parchment mat, like the landing page's feature art; a screenshot can sit over a corner. */
.duo {
  position: relative;
  margin: 0;
}

.duo > img {
  width: 100%;
  padding: 3px;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: #FFF8EC;
  box-shadow: 0 0 0 1px #FFF8EC, 0 0 0 2px #CDAA6E66, 0 6px 16px rgb(80 50 20 / 18%);
}

.on-dark .duo > img {
  border-color: var(--gold);
  background: var(--ink-raised);
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
}

/* A screenshot strip under the illustration. */
.duo__shot {
  display: block;
  margin-top: 1rem;
  border-radius: 10px;
}

.duo__shot img {
  width: 100%;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.duo__shot:hover img { border-color: var(--gold); }

/* Card finishes: live cards drawn by card-finish.css, as in the game's Cards tab. */
.finishes .section-title { gap: .35rem; }
.finishes .section-title .ornament { width: min(22rem, 100%); }
.finishes .tour__lede { max-width: 38rem; }

.finish-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
}

.finish-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .7rem;
  text-align: center;
}

.finish-card .card-plate {
  width: min(100%, 11.5rem);
  border-radius: 9px;
  box-shadow: var(--glow, 0 0 0 transparent), 0 12px 26px rgb(0 0 0 / 50%);
  transition: translate .25s ease-out;
}

.finish-card .card-plate:hover { translate: 0 -.4rem; }
.finish-card .card-plate:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: 4px; }
.finish-card .rarity-label { margin-top: .5rem; }

.finish-card p {
  max-width: 12rem;
  color: var(--light-muted);
  font-size: .9375rem;
  line-height: 1.3;
}

.finishes__note {
  margin-top: 1.75rem;
  color: var(--light-muted);
  font-size: .8125rem;
  font-style: italic;
  text-align: center;
}

/* Enchanted: two numbers and a few real cards. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .35rem 1rem .35rem .85rem;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: #FAF0E1;
}

.facts strong {
  font: 400 2.25rem/1 var(--font-numeral);
}

.facts span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.2;
}

.examples {
  margin-top: 1.25rem;
  padding: 0;
  border-top: 1px solid #DCC49B;
  list-style: none;
}

.examples li {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .45rem 0 .45rem .8rem;
  border-bottom: 1px solid #DCC49B;
  box-shadow: inset 3px 0 0 var(--rarity-enchanted);
  font-size: .9375rem;
}

.examples__card { font-family: var(--font-heading); }

.tour .actions { margin-top: 1.6rem; }

@media (max-width: 60rem) {
  .tour__inner,
  .tour--flip .tour__inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .tour--flip .tour__copy { order: 0; }
  .finish-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; }
}

@media (max-width: 47.9375rem) {
  .tour { padding: 2.5rem 0; }
  .tour h2 { font-size: clamp(1.625rem, 7vw, 2rem); }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .finish-row { gap: 1.5rem 1rem; }
  .examples li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
