/* ---------- Video games: moving photo roster + double-ticker arcade deck (from the Video game section design chat) ---------- */
.vg {
  overflow-x: clip;
}
.vg-in {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
}
.vg-in > .sec-head {
  margin-bottom: 0;
}
.vg ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
@keyframes vg-blink {
  50% {
    opacity: 0;
  }
}
@keyframes vg-marq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* moving photo roster: two rows sliding opposite ways, full width; hover pauses */
.vg-roster {
  --h: clamp(220px, 24vw, 310px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-inline: calc(50% - 50vw);
}
/* keyboard focus (js/photo-rows.js): the ring sits inside, as the row runs to the edges of the screen */
.vg-roster:focus-visible {
  outline-offset: -3px;
}
.vg-row {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.vg-row.is-dragging {
  cursor: grabbing;
}
.vg-rtrack {
  display: flex;
  width: max-content;
  padding: 12px 0 18px;
  will-change: transform;
}
.vg-card img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.vg-card {
  position: relative;
  flex: none;
  width: calc(var(--h) * 0.75);
  height: var(--h);
  margin: 0 11px;
  overflow: hidden;
  background: #14171b;
  border: 3px solid var(--edge);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--edge);
  transform: rotate(var(--t, 0deg));
  transition:
    transform 150ms var(--boing),
    box-shadow 150ms var(--boing);
}
.vg-card.vg-wide {
  width: calc(var(--h) * 1.6);
}
[data-mode="night"] .vg .vg-card {
  border: 1.5px solid #33285a;
  box-shadow: none;
}
.vg-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 8px 8px 0 var(--edge);
}
[data-mode="night"] .vg .vg-card:hover {
  box-shadow: none;
}
.vg-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-card figcaption {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 11px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transform: rotate(-2deg);
}

/* double-ticker arcade deck */
.vg-deck {
  overflow: hidden;
  background: #1a1714;
  color: #fffbf0;
  border: 3px solid var(--edge);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--edge);
}
[data-mode="night"] .vg .vg-deck {
  background: #171030;
  color: #f0ebff;
  border-color: var(--purple);
  box-shadow:
    0 0 0 1px var(--purple),
    0 0 60px -14px color-mix(in srgb, var(--purple) 85%, transparent);
}
.vg-marq {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: #000000;
}
.vg-marq.vg-top {
  border-bottom: 3px solid var(--edge);
}
.vg-marq.vg-bot {
  border-top: 3px solid var(--edge);
}
[data-mode="night"] .vg .vg-marq.vg-top,
[data-mode="night"] .vg .vg-marq.vg-bot {
  border-color: var(--purple);
}
.vg-marq::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(transparent 1.1px, #000000 1.5px);
  background-size: 4px 4px;
  opacity: 0.55;
}
.vg-track {
  display: inline-flex;
  padding: 15px 0;
  animation: vg-marq 32s linear infinite;
}
.vg-bot .vg-track {
  animation-direction: reverse;
  animation-duration: 26s;
  padding: 11px 0;
}
.vg-track span {
  flex: none;
  padding-right: 2.2em;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb000;
  text-shadow: none;
}
.vg-bot .vg-track span {
  font-size: 16px;
}
.vg-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 32px clamp(20px, 3vw, 38px) 34px;
}
.vg-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
.vg-copy {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}
.vg-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd731;
}
.vg-deck h3 {
  font: 700 clamp(28px, 2.8vw, 38px)/1.05 var(--font-display);
  letter-spacing: -0.015em;
  color: inherit;
}
.vg-dsub {
  font-size: 16px;
  line-height: 1.5;
  color: #d8cdbb;
}
[data-mode="night"] .vg .vg-dsub {
  color: #b3a8d6;
}
.vg-abtns {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
}
/* the chips are buttons that press but don't go anywhere yet (the video games page isn't built) */
.vg-ab {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.vg-ab:hover,
.vg-ab:focus-visible {
  color: inherit;
}
.vg-cap {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 8px 0 0 color-mix(in srgb, var(--c) 50%, #000000),
    0 0 0 6px #0b0717,
    0 8px 0 6px #0b0717,
    0 0 0 8px #4a3d7a;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}
.vg-cap::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 12%;
  width: 42%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(-18deg);
}
[data-mode="night"] .vg .vg-cap {
  box-shadow:
    0 8px 0 0 color-mix(in srgb, var(--c) 50%, #000000),
    0 0 0 6px #0b0717,
    0 8px 0 6px #0b0717,
    0 0 0 8px #4a3d7a;
}
.vg-ab:hover .vg-cap {
  transform: translateY(-3px);
}
.vg-ab:active .vg-cap {
  transform: translateY(7px);
  box-shadow:
    0 1px 0 0 color-mix(in srgb, var(--c) 50%, #000000),
    0 0 0 6px #0b0717,
    0 1px 0 6px #0b0717,
    0 0 0 8px #4a3d7a;
}
.vg-ab-l {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vg-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}
.vg-pstart {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 0 28px;
  background: var(--red);
  color: var(--on-red);
  border: 2px solid #000000;
  border-radius: 16px;
  text-decoration: none;
  --ring: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 0 #000000,
    0 0 0 0 var(--ring);
  transition:
    transform 150ms var(--boing),
    box-shadow 150ms var(--boing);
}
.vg-pstart:hover,
.vg-pstart:focus-visible {
  color: var(--on-red);
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow:
    4px 4px 0 0 #000000,
    4px 4px 0 0.5px var(--ring);
}
.vg-pstart:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 0 #000000;
}
.vg-pstart small {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  animation: vg-blink 1.2s steps(2) infinite;
}
.vg-pstart b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 2.2vw, 26px);
}

/* phone: smaller roster, and its own game library box in place of the desktop deck body */
.vg-pbody {
  display: none;
}
@media (max-width: 640px) {
  .vg-roster {
    --h: 230px;
    gap: 12px;
  }
  .vg-card {
    margin: 0 7px;
  }
  .vg-card figcaption {
    font-size: 13px;
    padding: 3px 9px;
  }
  .vg-deck {
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--edge);
  }
  .vg-track {
    padding: 12px 0;
  }
  .vg-track span {
    font-size: 17px;
  }
  .vg-bot .vg-track span {
    font-size: 14px;
  }
  .vg-deck .vg-body {
    display: none;
  }
  .vg-pbody {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 16px 26px;
  }
  .vg-p-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .vg-p-head .vg-kicker {
    font-size: 13.8px;
  }
  .vg-p-head h3 {
    font-size: 30px;
  }
  .vg-p-head .vg-dsub {
    font-size: 15px;
    line-height: 1.45;
  }
  .vg-bstart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 18px 18px;
    background: #ff5b52;
    color: #0b0717;
    border: 3px solid #000000;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 7px 0 #8a2a25;
    transition:
      transform 90ms ease,
      box-shadow 90ms ease;
  }
  .vg-bstart:hover,
  .vg-bstart:focus-visible {
    color: #0b0717;
    transform: translateY(-2px);
    box-shadow: 0 9px 0 #8a2a25;
  }
  .vg-bstart:active {
    transform: translateY(6px);
    box-shadow: 0 1px 0 #8a2a25;
  }
  .vg-bstart small {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    animation: vg-blink 1.2s steps(2) infinite;
  }
  .vg-bstart b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vg-in * {
    transition: none !important;
    animation: none !important;
  }
  /* the photo cards straighten and grow on hover without the bounce (here and on the board games wall) */
  .vg-card {
    transition: none;
  }
}
/* the marquees hold still while the dither reveal draws over them (js/vg-dither.js; the photo row pauses only for
   its own photos, in js/photo-rows.js), so the glyphs stay lined up with what's under them */
.vg.is-revealing .vg-track {
  animation-play-state: paused;
}
/* the big bold title, like Visit us and FAQ (.big-title, css/page/02-sections.css) */
#video-h {
  --big: clamp(min(72px, 22.5vw), 19vw, 140px);
}
