:root {
  color-scheme: light;

  --bg: #eaeded;
  --panel: #fff;
  --line: #d5d9d9;
  --text: #0f1111;
  --link: #2162a1;
  --focus: #007185;
  --yellow: #ffd814;
  --yellow-hover: #f7ca00;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; }
.site-header { background: #fff; padding: .95rem 1rem; }
#page-title { margin: 0; }
#page-title img { display: block; width: auto; height: clamp(3rem, 9vw, 4rem); margin-inline: auto; }
main { max-width: 740px; margin: auto; padding: clamp(1rem, 5vh, 3rem) 1.5rem 2.5rem; }
.game { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 1rem; }
.product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.details { align-self: center; min-width: 0; }
.details p { margin: 0; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.preview { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; border: 1px solid #eee; border-radius: 4px; background: #fff; }
.preview .art, .preview #capture { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview .art img, .preview .art svg, #capture { display: block; width: 100%; height: 100%; object-fit: contain; }
.screenshot .art, #capture[hidden] { display: none; }
.capture-caption { height: 1.35rem; text-align: center; font-size: .875rem; line-height: 1.35rem; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #9b4000; }

/* Reserve both amounts and the listing link's space before revealing them. */
.price { display: grid; grid-template-rows: 1.2em 1.5rem 1.6rem; align-items: center; text-align: center; padding: .55rem 0 .8rem; font-size: clamp(1.75rem, 8vw, 2.5rem); }
.price strong { font: 400 1em/1.2 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price strong:not(.shown) { color: #565959; }
.price-original { color: #565959; font-size: .875rem; line-height: 1.3; }
.price-link { font-size: .875rem; line-height: 1.3; }
.actions { display: flex; justify-content: center; gap: .8rem; margin: 1.1rem 0 .25rem; }
button { cursor: pointer; border: 1px solid #888c8c; border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: .875rem; min-height: 44px; padding: .65rem 1.35rem; }
#reveal { background: var(--yellow); border-color: var(--yellow); }
#reveal:hover:not(:disabled) { background: var(--yellow-hover); border-color: var(--yellow-hover); }
#next:hover:not(:disabled) { background: #f0f2f2; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
#error { color: #b12704; text-align: center; }
@media (max-width: 550px) {
  main { padding: 1rem .75rem 1.5rem; }
  .game { padding: .7rem; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .actions { gap: .55rem; }
  button { padding: .6rem 1rem; }
}

#snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
#snow span { position: absolute; top: 0; left: var(--x); color: #fff; text-shadow: 0 0 2px #356080, 0 1px 3px #356080; opacity: .58; font-size: var(--size); animation: snowfall var(--duration) var(--delay) linear infinite; }
@keyframes snowfall {
  from { transform: translate3d(0, -24px, 0) rotate(0deg); }
  to { transform: translate3d(var(--drift), calc(100vh + 24px), 0) rotate(135deg); }
}
@media (prefers-reduced-motion: reduce) { #snow { display: none; } #snow span { animation: none; } }
