/* Games: a GeoCities-style fan shrine. A starfield tile, flames, and one centered black table. */
.window[data-site="games"] {
  --window-ink: #1a0a52;
  --shrine-gold: #ffe14d;
  --shrine-lime: #7dff8a;
  --shrine-ridge: #b9b9b9;
  border: 4px ridge #8f6bff;
}
.window[data-site="games"] > .window-body {
  background-color: #05031a;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 80%, #c8d4ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 55%, #ffe9a8 0 1.4px, transparent 2px);
  background-size: 61px 67px, 37px 41px, 113px 97px;
}
.window[data-site="games"] .fan-shrine {
  padding: 0 clamp(.5rem, 4cqi, 2.5rem);
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
}

.window[data-site="games"] .shrine-flames {
  height: 42px;
  margin-inline: calc(-1 * clamp(.5rem, 4cqi, 2.5rem));
  background:
    radial-gradient(ellipse 50% 100% at 50% 100%, #fff3a0 0 18%, #ffb000 34%, #f04a00 55%, #8c0f00 68%, transparent 72%) 0 100% / 26px 42px repeat-x,
    radial-gradient(ellipse 50% 100% at 50% 100%, #ff7b00 0 40%, #a31200 62%, transparent 70%) 13px 100% / 26px 30px repeat-x;
}
.window[data-site="games"] .shrine-flames-low { transform: scaleY(-1); margin-top: 1.5rem; }

.window[data-site="games"] .shrine-table {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(.6rem, 2.5cqi, 1.25rem);
  background: #000;
  border: 6px ridge var(--shrine-ridge);
}
.window[data-site="games"] .shrine-head h1 {
  font: 700 clamp(2.4rem, 11cqi, 4.75rem)/1 var(--pixel);
  color: var(--shrine-gold);
  text-shadow: 0 3px 0 #e0400b, 0 6px 0 #7a1200;
  letter-spacing: .04em;
}
.window[data-site="games"] .shrine-head p {
  max-width: 36rem;
  margin: .85rem auto 0;
  font: 1.0625rem/1.5 "Times New Roman", Times, serif;
  color: #f4f0ff;
  text-wrap: pretty;
}

.window[data-site="games"] .shrine-marquee {
  margin: 1rem calc(-1 * clamp(.6rem, 2.5cqi, 1.25rem)) 1rem;
  padding: .3rem 0;
  overflow: hidden;
  background: #000080;
  border-block: 2px solid var(--shrine-gold);
  font: 700 .875rem/1.4 "Courier New", Courier, monospace;
  color: var(--shrine-gold);
  white-space: nowrap;
}
.window[data-site="games"] .shrine-marquee p { display: inline-flex; }
.window[data-site="games"] .shrine-marquee span { padding-inline-end: 1rem; }
.window[data-site="games"] .shrine-marquee span[aria-hidden] { display: none; }

/* The featured box: the real Unreal capture stays above the fold. */
.window[data-site="games"] .box {
  border: 4px ridge #ff8a00;
  background: #000;
  color: #fff;
  box-shadow: none;
  text-align: start;
}
.window[data-site="games"] .box-platform { background: #800000; color: var(--shrine-gold); text-align: center; }
.window[data-site="games"] .box-cover { background: #000; }
.window[data-site="games"] .shrine-feature .box-cover { max-height: 24rem; }
.window[data-site="games"] .box-sticker { background: var(--shrine-gold); color: #1c0d00; border-color: #000; }
.window[data-site="games"] .shrine-new {
  position: absolute;
  top: .4rem;
  left: .4rem;
  width: clamp(3.75rem, 13cqi, 5.5rem);
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / .6));
}
.window[data-site="games"] .box-label { background: #000033; color: #fff; }
.window[data-site="games"] .box-label h2 { color: var(--shrine-gold); }
.window[data-site="games"] .box-label p:not(.box-platform) { font-family: "Times New Roman", Times, serif; font-size: 1.0625rem; }
.window[data-site="games"] .box-when { color: #c9d4ff; }
.window[data-site="games"] .box-actions { background: #c0c0c0; }
.window[data-site="games"] .box-actions .button { min-height: 36px; }

.window[data-site="games"] .shrine-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.6rem 0 .8rem;
  font: 700 clamp(1.1rem, 3.6cqi, 1.45rem)/1.2 Arial, Helvetica, sans-serif;
  color: var(--shrine-lime);
}
.window[data-site="games"] .shrine-divider::before,
.window[data-site="games"] .shrine-divider::after {
  content: "";
  flex: 1;
  border-top: 4px groove var(--shrine-ridge);
}

.window[data-site="games"] .shrine-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.window[data-site="games"] .shrine-row { border: 3px ridge #6a6a6a; }
.window[data-site="games"] .shrine-row .box-cover { aspect-ratio: 16 / 9; }
.window[data-site="games"] .shrine-row .box-label { display: grid; gap: .35rem; align-content: start; background: #000; padding: .7rem .8rem .8rem; }
.window[data-site="games"] .shrine-row .box-platform { justify-self: start; padding: .1rem .45rem; background: #800000; }
.window[data-site="games"] .shrine-row h2 { font-size: clamp(1.4rem, 4.5cqi, 1.8rem); }
.window[data-site="games"] .shrine-row .box-actions { padding: .35rem 0 0; background: none; }
.window[data-site="games"] .shrine-row .box-actions a { color: #000; }
.window[data-site="games"] .box-sealed .box-cover { aspect-ratio: 16 / 9; background: #1b1a14; }
.window[data-site="games"] .shrine-seal { color: #d8cfae; font-style: italic; }
@container window-body (min-width: 36rem) {
  .window[data-site="games"] .shrine-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .window[data-site="games"] .shrine-row .box-cover { aspect-ratio: auto; min-height: 100%; }
}

.window[data-site="games"] .shrine-footer {
  display: grid;
  justify-items: center;
  gap: .7rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 4px groove var(--shrine-ridge);
  font: .9375rem/1.45 Arial, Helvetica, sans-serif;
}
.window[data-site="games"] .shrine-ring {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem .9rem;
  padding: .35rem .75rem;
  border: 3px outset #a7a7a7;
  background: #2b0057;
}
.window[data-site="games"] .shrine-ring a { display: inline-flex; align-items: center; min-height: 32px; color: #9fd0ff; }
.window[data-site="games"] .shrine-ring a:visited { color: #e0a8ff; }
.window[data-site="games"] .shrine-ring b { color: var(--shrine-gold); }
.window[data-site="games"] .shrine-ring small { color: #e7dcff; font-weight: 400; }
.window[data-site="games"] .shrine-guestbook summary { min-height: 32px; padding-block: .25rem; color: var(--shrine-lime); text-decoration: underline; }
.window[data-site="games"] .shrine-guestbook p { max-width: 32rem; margin-top: .35rem; color: #e4e4e4; }
.window[data-site="games"] .shrine-counter samp {
  padding: .1rem .4rem;
  background: #111;
  border: 2px inset #777;
  color: var(--shrine-lime);
  font: 1.35rem/1 var(--crt);
  letter-spacing: .18em;
}
.window[data-site="games"] .shrine-counter small { color: #cfcfcf; }
.window[data-site="games"] .shrine-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.window[data-site="games"] .shrine-badges b {
  padding: .2rem .45rem;
  border: 2px outset #c0c0c0;
  background: #c0c0c0;
  color: #000;
  font: 700 .75rem/1.3 Verdana, Geneva, sans-serif;
}
.window[data-site="games"] a:focus-visible,
.window[data-site="games"] summary:focus-visible { outline: 2px solid var(--shrine-gold); outline-offset: 2px; }
.window[data-site="games"] ::selection { background: var(--shrine-gold); color: #000; }

/* Netscape's status line: gray, sunken, a little smug about being done. */
.window[data-site="games"] > .statusbar {
  padding: 3px 4px;
  background: #c0c0c0;
  color: #000;
  font: .8125rem/1.4 Arial, Helvetica, sans-serif;
}
.window[data-site="games"] > .statusbar span { border: 2px inset #e8e8e8; background: #c0c0c0; }

@media (prefers-reduced-motion: no-preference) {
  .window[data-site="games"] .shrine-marquee span[aria-hidden] { display: inline; }
  .window[data-site="games"] .shrine-marquee p { animation: shrine-crawl 26s linear infinite; }
  .window[data-site="games"] .shrine-new { animation: shrine-new 1.1s steps(2, jump-none) infinite; }
  .window[data-site="games"] .shrine-flames { animation: shrine-flicker .9s steps(3) infinite alternate; }
}
@keyframes shrine-crawl { to { transform: translateX(-50%); } }
@keyframes shrine-new { from { transform: rotate(-10deg) scale(1); } to { transform: rotate(8deg) scale(1.12); } }
@keyframes shrine-flicker {
  from { background-size: 26px 42px, 26px 30px; }
  to { background-size: 26px 34px, 26px 38px; }
}
