/* The playwipeday.com wiki. Loaded after /styles.css, whose tokens, header and footer it shares. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The header's nav has six links here: let it scroll before it wraps. */
.wiki-page .nav { overflow-x: auto; scrollbar-width: none; }
.wiki-page .nav::-webkit-scrollbar { display: none; }
.wiki-page .nav a { white-space: nowrap; }

/* ---- Page head ---- */

.wiki-head {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(61, 99, 255, .07) 58% 72%, transparent 72%),
    var(--ink-1);
  padding: 36px 0 30px;
}
.wiki-head--home { padding: 56px 0 44px; }
.crumbs { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.crumbs a { color: var(--blue-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.wiki-title {
  display: flex; align-items: center; gap: 14px;
  margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05;
  font-weight: 850; font-stretch: 112%; letter-spacing: -.01em;
}
.wiki-title svg { width: 44px; height: 44px; color: var(--blue-text); flex: none; stroke-width: 1.8; }
.wiki-lede { margin: 12px 0 0; max-width: 64ch; color: var(--text-2); font-size: 19px; }
.wiki-note { margin: 10px 0 0; max-width: 72ch; color: var(--text-3); font-size: 15px; }

.filter {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; max-width: 460px;
  background: var(--ink-0); border: 1px solid var(--line-hi); border-radius: 12px;
  padding: 0 14px;
}
.filter:focus-within { border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(61, 99, 255, .35); }
.filter svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.filter input {
  flex: 1; min-width: 0; height: 46px;
  background: none; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 16px;
}
.filter input::placeholder { color: var(--text-3); }
/* Without the script there's nothing to filter with, so the box stays out of the way. */
.filter:has(input[hidden]) { display: none; }
.filter__none { margin: 14px 0 0; color: var(--orange); font-weight: 700; }

/* ---- Body: contents on the left, the page on the right ---- */

.wiki-body {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px;
  padding-top: 32px; padding-bottom: 72px;
}
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc__title { margin: 0 0 8px; color: var(--text-3); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 6px 12px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.3;
}
.toc a:hover { color: var(--text); border-left-color: var(--line-hi); }
.toc a.is-here { color: var(--text); border-left-color: var(--blue); font-weight: 700; }

.wiki-main { min-width: 0; }

.group { padding-bottom: 36px; }
.group + .group { padding-top: 8px; }
.group__title {
  margin: 0 0 6px; font-size: 26px; font-weight: 800; font-stretch: 108%;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.group__title--letter { font-size: 30px; color: var(--blue-text); }
.group__intro { margin: 10px 0 0; color: var(--text-2); max-width: 70ch; }
[hidden] { display: none !important; }

/* ---- Cards (hardware) ---- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.card:target { border-color: var(--blue-hi); box-shadow: 0 0 0 2px var(--blue); }
.card__media {
  position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, var(--ink-3), var(--ink-2) 60%, var(--ink-1));
  border-bottom: 1px solid var(--line);
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card__blank svg { width: 56px; height: 56px; color: var(--line-hi); stroke-width: 1.4; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__body p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 19px; line-height: 1.25; }
.card__spec { color: var(--text-3) !important; font-size: 14px !important; font-variant-numeric: tabular-nums; }
.card__more b { color: var(--text); font-weight: 700; margin-right: 4px; }
.tag {
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px;
}

.price { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto !important; padding-top: 8px; color: var(--text-3) !important; font-size: 14.5px !important; }
.price b { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---- Rows (parts, upgrades, decor) ---- */

.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: start;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.row:target { background: var(--ink-2); border-radius: 10px; }
.row__name { margin: 0; font-size: 17px; line-height: 1.3; }
.row__facts { margin: 4px 0 0; color: var(--text-3); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.row__note { margin: 4px 0 0; color: var(--text-2); font-size: 15.5px; max-width: 75ch; }
.row .card__more { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.row__price { margin: 0; text-align: right; white-space: nowrap; color: var(--text-3); font-size: 14.5px; }
.row__price b { color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
.row__price--stack { display: flex; flex-direction: column; gap: 2px; }
.row__mode {
  display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 6px;
  background: var(--ink-3); color: var(--text-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}

/* ---- Games ---- */

.gamecard {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px;
  padding: 22px; margin-bottom: 18px;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--radius-lg);
  scroll-margin-top: 96px;
}
.gamecard__poster img { border-radius: 10px; box-shadow: var(--shadow-frame); }
.gamecard__name { margin: 0; font-size: 28px; font-weight: 850; font-stretch: 110%; line-height: 1.1; }
.gamecard__tag { margin: 4px 0 0; color: var(--blue-text); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 16px 0 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--text-3); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; color: var(--text-2); font-size: 15.5px; }

/* ---- Glossary ---- */

.terms { margin: 10px 0 0; }
.term { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.term:target { background: var(--ink-2); border-radius: 10px; padding-left: 12px; padding-right: 12px; }
.term dt { font-size: 18px; font-weight: 800; }
.term dd { margin: 4px 0 0; color: var(--text-2); max-width: 75ch; }

/* ---- Home tiles ---- */

/* Two wide tiles over three: six columns, so five tiles leave no orphan. */
.wtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 36px 0 80px; }
.wtile { grid-column: span 2; }
.wtile:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 1000px) {
  .wtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wtile, .wtile:nth-child(-n+2) { grid-column: auto; }
}
@media (max-width: 600px) {
  .wtiles { grid-template-columns: minmax(0, 1fr); }
}
.wtile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; min-height: 180px;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.wtile:hover { border-color: var(--blue-hi); background: var(--ink-2); transform: translateY(-2px); }
.wtile__count { color: var(--blue-text); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wtile__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 24px; font-weight: 850; font-stretch: 108%; }
.wtile__name svg { width: 24px; height: 24px; color: var(--blue-text); flex: none; }
.wtile__lede { color: var(--text-2); font-size: 15.5px; }

/* ---- Narrow screens ---- */

@media (max-width: 1000px) {
  .wiki-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .toc {
    position: static; max-height: none; overflow: visible;
    margin: 0 calc(var(--gutter) * -1) 24px; padding: 12px var(--gutter);
    border-bottom: 1px solid var(--line); background: var(--ink-0);
  }
  .toc__title { display: none; }
  .toc ul { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; padding-bottom: 2px; }
  .toc ul::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 0; font-size: 14px; }
  .toc a.is-here { border-color: var(--blue); background: var(--blue); color: #fff; }
}
@media (max-width: 760px) {
  .gamecard { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .gamecard__name { font-size: 22px; }
  .facts { grid-template-columns: minmax(0, 1fr); grid-column: 1 / -1; }
  .gamecard__body { display: contents; }
  .gamecard__body > .gamecard__name, .gamecard__body > .gamecard__tag { grid-column: 2; }
  .gamecard__poster { grid-row: span 2; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row__price { text-align: left; }
  .row__price--stack { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wtile { transition: none; }
  .wtile:hover { transform: none; }
}
