/* Everything to do with buying, holding and using an archive pass. Shared by
   the receipt page and the archive itself; loaded after style.css. */

/* .receipt__state sets display:flex, which outranks the user agent's rule for
   the hidden attribute — without this every state renders at once. */
[hidden] { display: none !important; }

.page--narrow { max-width: 620px; }

/* The games each carry their own .backlink; the pages that load style.css do
   not, so it lives here too. */
.backlink {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--parchment-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.backlink::before { content: '\27F5\2003'; }
.backlink:hover {
  color: var(--brass);
  border-bottom-color: color-mix(in srgb, var(--brass) 50%, transparent);
}

/* ------------------------------------------------------------- receipt -- */

.receipt {
  text-align: center;
  padding: clamp(20px, 6vh, 50px) 0;
}

.receipt__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.receipt__title {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'SOFT' 50, 'opsz' 140, 'wght' 650;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.02em;
}

.receipt__note {
  margin: 0;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--parchment-2);
}
.receipt__note--tight { font-size: 11px; color: var(--parchment-3); }
.receipt__note a { color: var(--brass); }

.receipt__go { margin: 10px 0 0; }

/* The key itself: the one thing on the page worth looking at. */
.keybox {
  margin: 4px 0 0;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  border-radius: 3px;
  background:
    linear-gradient(150deg, rgba(199, 154, 69, .08), rgba(255, 255, 255, 0) 60%),
    rgba(9, 7, 5, .5);
}
.keybox code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1rem, 4.4vw, 1.4rem);
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--brass);
  user-select: all;   /* one click selects the whole key */
}

.spinner {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(199, 154, 69, .2);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The wax seal, borrowed from the games' win cards. */
.seal {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: rgba(255, 226, 216, .78);
  font-size: 22px;
  transform: rotate(-8deg);
  background: radial-gradient(circle at 34% 28%, #C4463A, #8E2A22 62%, #6E1E18 100%);
  box-shadow:
    inset 0 -3px 8px rgba(0, 0, 0, .5),
    inset 0 3px 6px rgba(255, 255, 255, .25),
    0 8px 16px -6px rgba(0, 0, 0, .7);
  clip-path: polygon(
    50% 0%, 66% 6%, 82% 4%, 92% 18%, 100% 32%, 96% 50%, 100% 68%, 90% 82%,
    80% 96%, 62% 96%, 46% 100%, 30% 94%, 16% 90%, 8% 74%, 0% 56%, 4% 38%,
    2% 20%, 18% 10%, 34% 6%);
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  color: var(--parchment-2);
  background: rgba(255, 255, 255, .015);
  border: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
  border-radius: 2px;
  padding: 11px 16px;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, transform .1s;
}
.btn:hover:not(:disabled) {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.btn--brass {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}
.btn--brass:hover:not(:disabled) { filter: brightness(1.1); }

/* ---------------------------------------------------------------- offer -- */

.offer {
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  border-radius: 3px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(150deg, rgba(199, 154, 69, .09), rgba(255, 255, 255, 0) 60%),
    rgba(9, 7, 5, .45);
}

.offer__title {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'SOFT' 50, 'opsz' 110, 'wght' 620;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -.015em;
}

.offer__lede { margin: 0 0 16px; font-size: 13px; line-height: 1.8; color: var(--parchment-2); }
.offer__lede b { color: var(--parchment); font-weight: 500; }

.offer__list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 2;
  color: var(--parchment-2);
}
.offer__list li::before { content: '\002713\2003'; color: var(--brass); }

.offer__price {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--parchment-3);
}
.offer__price b {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'wght' 650;
  font-size: 1.7rem;
  letter-spacing: 0;
  color: var(--parchment);
  margin-right: 6px;
}

/* Stands where the Buy button was. Deliberately not button-shaped: nothing
   here is clickable, and a disabled button invites the click anyway. */
.offer__shut {
  margin: 0;
  padding: 12px 0 2px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-2);
  border-top: 1px solid rgba(199, 154, 69, .18);
}

.offer__small {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--parchment-3);
  max-width: 52ch;
}

.linkish {
  font: inherit;
  font-size: inherit;
  color: var(--brass);
  background: none;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  padding: 0;
  cursor: pointer;
}
.linkish:hover { border-bottom-color: var(--brass); }

/* -------------------------------------------------------------- key form -- */

.keyform {
  border: 1px dashed rgba(199, 154, 69, .3);
  border-radius: 3px;
  padding: 20px;
  background: rgba(9, 7, 5, .35);
}
.keyform__label {
  display: block;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--parchment-3);
  margin-bottom: 10px;
}
.keyform__row { display: flex; gap: 8px; flex-wrap: wrap; }
.keyform__input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  background: rgba(0, 0, 0, .35);
  border: 1px solid color-mix(in srgb, var(--brass) 34%, transparent);
  border-radius: 2px;
  padding: 11px 14px;
}
.keyform__input:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.keyform__input::placeholder { color: var(--parchment-3); opacity: .5; letter-spacing: .1em; }

/* ----------------------------------------------------------------- pass -- */

.pass__note {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--parchment-3);
}
.pass__note b { color: var(--brass); }

/* ------------------------------------------------------------- calendar -- */

.calendar { display: flex; flex-direction: column; gap: 2px; }
.calendar[aria-busy='true']::after {
  content: 'Opening the ledger…';
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--parchment-3);
}

.calendar__month {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'SOFT' 50, 'wght' 600;
  font-size: 1rem;
  margin: 26px 0 8px;
  padding-bottom: 6px;
  color: var(--parchment-2);
  border-bottom: 1px solid rgba(199, 154, 69, .16);
}

.day {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 9px 10px;
  border-radius: 2px;
}
.day:hover { background: rgba(255, 255, 255, .02); }

.day__date { flex: 0 0 92px; font-size: 12px; color: var(--parchment-2); }
.day__date b {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'wght' 600;
  font-size: 1.05rem;
  color: var(--parchment);
  margin-right: 6px;
}
.day__no { font-size: 10px; color: var(--parchment-3); letter-spacing: .1em; }

.day__games { display: flex; flex-wrap: wrap; gap: 6px 16px; flex: 1 1 auto; }

.day__game {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.day__game:hover { border-bottom-color: var(--brass); }
.day__game span { color: var(--brass-2); margin-right: 4px; }

.day__game.is-shut { color: var(--parchment-3); opacity: .5; cursor: default; }
.day__game.is-shut span { color: var(--parchment-3); }
.day__game.is-shut::after { content: '\2003\1F512'; font-size: 9px; opacity: .7; }

.day__tag {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  border-radius: 2px;
  padding: 3px 8px;
}

.day.is-today { background: rgba(199, 154, 69, .07); }
.day.is-locked .day__date { color: var(--parchment-3); }

@media (max-width: 560px) {
  .day { gap: 4px 12px; }
  .day__date { flex: 1 1 100%; }
}
