:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 48px;
  background: #f7f7f7;
  color: #fff;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}
.site-shell {
  position: relative;
  display: flex;
  width: min(800px, calc(100vw - 96px), calc((100svh - 96px) * 4 / 3));
  min-height: 0;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  border: 1px solid #8b8b8b;
  background: url('/assets/background.png') center / cover no-repeat;
}
.wallpaper {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/horse-tile.png') 0 0 / 295px 200px repeat;
  opacity: .24;
}
.video-stage { width: min(560px, 78%); text-align: center; }
.video-stage h1 {
  margin: 14px 0 0;
  color: #fff;
  opacity: .95;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
.video-stage .homepage-title { margin: 0 0 14px; }
.video-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 4px ridge #c0c0c0;
  background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.custom-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 78px;
  height: 54px;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 4px outset #d4d0c8;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: 0 5px 0 rgb(0 0 0 / 42%);
  cursor: pointer;
}
.custom-play::after {
  display: none;
}
.custom-play::before {
  display: none;
}
.custom-play span {
  position: relative;
  z-index: 2;
  width: 0;
  height: 0;
  margin-top: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 23px solid #808080;
  filter: drop-shadow(1px 1px #fff);
}
.custom-play:active {
  transform: translate(-50%, calc(-50% + 3px));
  border-style: inset;
  box-shadow: 0 2px 0 rgb(0 0 0 / 42%);
}
.custom-fullscreen { position: absolute; right: 8px; bottom: 8px; z-index: 3; display: grid; width: 48px; height: 44px; place-items: center; padding: 5px; border: 4px outset #d4d0c8; border-radius: 0; background: #c0c0c0; cursor: pointer; }
.custom-fullscreen img { display: block; width: 28px; height: 28px; object-fit: contain; }
.custom-fullscreen:active { border-style: inset; }
.menu-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.menu-buttons a,
.margin-links a,
.resource-page-nav a,
.resource-page-nav button {
  display: grid;
  place-items: center;
  border: 3px outset #d4d0c8;
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.menu-buttons a { min-height: 32px; padding: 4px 7px; font-size: 12px; line-height: 1.15; }
.menu-buttons a:active,
.margin-links a:active,
.resource-page-nav a:active,
.resource-page-nav button:active { border-style: inset; }
.margin-links {
  position: absolute;
  top: 50%;
  right: 14px;
  display: flex;
  width: 92px;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
}
.margin-links a { width: 100%; height: 101.39px; padding: 5px 8px; font-size: 14px; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.resource-page-frame { background: transparent; }
.resource-page-frame > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.resource-page-nav { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.resource-page-nav a,
.resource-page-nav button { min-height: 32px; padding: 5px 12px; font-size: 12px; line-height: 1.15; }
.credits-frame { overflow: visible; border: 0; background: transparent; }
.credits-page { display: grid; width: 100%; height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 24px; padding: 0 10px; font-size: 14px; text-align: left; }
.credit-copy { min-height: 72px; padding: 2px 27px 0; line-height: 1.25; text-shadow: 1px 1px 0 #303070; }
.credit-card:first-child .credit-copy { margin-right: 17px; padding-right: 33px; padding-left: 33px; }
.credit-copy p { margin: 0 0 4px; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  body { display: block; padding: 0; }
  .site-shell { width: 100vw; min-height: 100svh; aspect-ratio: auto; padding: 20px 14px 36px; border: 0; }
  .video-stage { width: min(100% - 12px, 600px); }
  .video-frame { border-width: 3px; }
  .margin-links { position: static; display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; transform: none; }
  .margin-links a { height: auto; min-height: 48px; font-size: 11px; }
  .menu-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits-page { grid-template-columns: 1fr; align-content: center; gap: 48px; padding: 0 16px; }
  .credit-copy,
  .credit-card:first-child .credit-copy { min-height: 0; margin: 0 auto; padding: 0; }
  .credit-card:first-child .credit-copy { width: min(239px, 100%); }
  .credit-card:nth-child(2) .credit-copy { width: min(256px, 100%); }
}
