/* All component styles live under .hr-arcade. The host can set --hr-arcade-display. */
.hr-arcade {
  --hr-red: #ed3b32;
  --hr-paper: #f7f2e9;
  --hr-muted: #c9bdb6;
  --hr-line: #48302e;
  --hr-display: var(--hr-arcade-display, Impact, "Arial Black", system-ui, sans-serif);
  --hr-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  isolation: isolate;
  container: hr-retrocade / inline-size;
  background: #110e0f;
  color: var(--hr-paper);
  font: 400 1rem/1.55 system-ui, sans-serif;
  text-align: left;
}

.hr-arcade *,
.hr-arcade *::before,
.hr-arcade *::after { box-sizing: border-box; }
.hr-arcade :is(h1, h2, h3, p) { margin: 0; }
.hr-arcade :is(a, button):focus-visible { outline: 3px solid #fff5de; outline-offset: 5px; }
.hr-arcade .hr-arcade-inner { width: min(100% - 3rem, 75rem); margin-inline: auto; }

.hr-arcade .hr-arcade-hero {
  position: relative;
  background:
    linear-gradient(90deg, #100b0c 6%, #100b0cf2 37%, #100b0c6b 70%, #100b0c2b),
    linear-gradient(0deg, #1a0b0c, transparent 60%),
    url("art/arcade-hero.webp") 77% 43% / cover no-repeat,
    #220f13;
  border-bottom: 1px solid #9c332b;
}
.hr-arcade .hr-arcade-intro { padding-block: clamp(2.1rem, 4vw, 3.3rem); }
.hr-arcade .hr-arcade-brand {
  display: flex;
  gap: .65rem;
  align-items: center;
  margin-bottom: 1rem;
  font: 700 .9rem/1.2 var(--hr-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hr-arcade .hr-arcade-brand img { display: block; width: 2.6rem; height: auto; }
.hr-arcade #hr-arcade-title {
  color: var(--hr-paper);
  font: 800 clamp(2.55rem, 8.5vw, 7.8rem)/.98 var(--hr-display);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.hr-arcade #hr-arcade-title span { color: var(--hr-red); }
.hr-arcade .hr-arcade-intro p { margin: 1rem 0 1.4rem; max-width: 41ch; font-size: clamp(1rem, 2vw, 1.2rem); }

.hr-arcade .hr-arcade-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 2.85rem;
  padding: .55rem 1.1rem;
  border: 1px solid #fb655d;
  border-radius: .25rem;
  background: #d72b25;
  color: #fff;
  font: 800 .88rem/1.2 var(--hr-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.hr-arcade .hr-arcade-cta:hover { background: #f84f43; color: #160a09; }

.hr-arcade .hr-arcade-floor { padding-block: 2.3rem 4.5rem; }
.hr-arcade .hr-arcade-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1.2rem;
  flex-wrap: wrap;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--hr-line);
}
.hr-arcade .hr-arcade-heading h2 {
  color: var(--hr-paper);
  font: 700 clamp(1.75rem, 3.4vw, 3rem)/1 var(--hr-display);
  text-transform: uppercase;
  text-wrap: balance;
  scroll-margin-top: var(--hr-arcade-anchor-offset, 6rem);
}
.hr-arcade .hr-arcade-heading > span {
  color: #ff8c82;
  font: 700 .8rem/1.3 var(--hr-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hr-arcade .hr-arcade-row { display: grid; }
.hr-arcade .hr-arcade-row-live { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hr-arcade .hr-arcade-row-next { grid-template-columns: minmax(0, 1fr); }
.hr-arcade .hr-arcade-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.55rem clamp(1rem, 2.1vw, 2rem);
  border: 0 solid var(--hr-line);
  border-bottom-width: 1px;
}
.hr-arcade .hr-arcade-slot + .hr-arcade-slot { border-inline-start-width: 1px; }
.hr-arcade .hr-arcade-row-live .hr-arcade-slot { justify-content: start; }

.hr-arcade .hr-arcade-dead { --cab: #ff793f; --vinyl: #481a19; --art: url("art/dead-loud-side.webp"); }
.hr-arcade .hr-arcade-road { --cab: #63ecff; --vinyl: #123440; --art: url("art/road-to-platinum-side.webp"); }
.hr-arcade .hr-arcade-signal { --cab: #f1a2fe; --vinyl: #43204f; --art: url("art/signal-raiders-side.webp"); }
.hr-arcade .hr-arcade-tape { --cab: #ffd477; --vinyl: #3e2b12; --art: url("art/master-tape-breakout-side.webp"); }

.hr-arcade .hr-arcade-roxy { --cab: #ffafc5; --vinyl: #542333; --art: url("art/roxy-load-in-side.webp"); }

.hr-arcade .hr-arcade-machine {
  display: block;
  width: min(100%, 16rem);
  color: var(--cab);
  text-decoration: none;
  filter: drop-shadow(0 12px 12px #000b);
}
.hr-arcade a.hr-arcade-machine { transition: transform .2s ease, filter .2s ease; }
.hr-arcade a.hr-arcade-machine:hover { transform: translateY(-4px); filter: drop-shadow(0 9px 18px var(--vinyl)); }
.hr-arcade .hr-arcade-cabinet { position: relative; aspect-ratio: .77; container-type: inline-size; }
.hr-arcade .hr-arcade-front {
  position: absolute;
  inset: 2.6% 24% 0 .7%;
  border: 2px solid var(--cab);
  border-radius: 4.5% 2% 1% 1%;
  background: #171718;
  box-shadow: inset 0 0 0 3px #100d10;
  display: grid;
  grid-template-rows: 19% 44% 10% 27%;
}
.hr-arcade .hr-arcade-side {
  position: absolute;
  inset: 0 0 0 74%;
  clip-path: polygon(2% 3%, 86% 0, 100% 9%, 100% 91%, 2% 100%, 1% 65%, 12% 57%, 2% 25%);
  background:
    linear-gradient(90deg, #0008, transparent 30%, #0002 68%, #0008),
    var(--art) center / 100% 100% no-repeat,
    repeating-linear-gradient(152deg, var(--vinyl) 0 18%, var(--cab) 19% 21%, #111 22% 29%);
  box-shadow: inset -3px 0 #000a, inset 2px 0 var(--cab);
}
.hr-arcade .hr-arcade-marquee {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .12em;
  margin: 3px 4px 2px;
  padding: 1px 3px;
  background:
    radial-gradient(ellipse at 50% 45%, var(--vinyl) 26%, transparent 100%),
    linear-gradient(90deg, #08080b75, #08080bec 60%, #08080b65),
    var(--art) center 34% / cover,
    var(--vinyl);
  border: 1px solid var(--cab);
  box-shadow: inset 0 0 16px #0009;
  color: var(--cab);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 2px #0e070a, 0 0 9px var(--vinyl);
}
.hr-arcade .hr-arcade-marquee strong { font: 800 9.7cqi/.95 var(--hr-display); letter-spacing: -.025em; }
.hr-arcade .hr-arcade-marquee span { color: #fff4e0; font: 800 4.5cqi/1.15 var(--hr-mono); letter-spacing: .045em; }
.hr-arcade :is(.hr-arcade-signal, .hr-arcade-tape) .hr-arcade-marquee strong { font-size: 8.5cqi; }

.hr-arcade .hr-arcade-bezel {
  display: grid;
  align-items: center;
  padding: 5% 6%;
  margin: 0 3px;
  background: repeating-linear-gradient(118deg, #19191d 0 7px, #1f1f23 8px 9px);
  border-block: 1px solid #08080a;
}
.hr-arcade .hr-arcade-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 9% / 12%;
  border: 1px solid #07090b;
  background-color: var(--vinyl);
  box-shadow: 0 0 0 2px #35363b, 0 0 0 5px #0d0d0f;
}
.hr-arcade .hr-arcade-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hr-arcade .hr-arcade-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #0004 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 15px 4px #0007;
}
.hr-arcade .hr-arcade-screen b {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  background: #09090af0;
  color: var(--cab);
  padding: .4em 0;
  text-align: center;
  text-transform: uppercase;
  font: 800 4.6cqi/1 var(--hr-mono);
  letter-spacing: .1em;
}
.hr-arcade .hr-arcade-deck {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5%;
  position: relative;
  margin-inline: -4px;
  padding-inline: 13%;
  border-radius: 4px 2px 2px 4px;
  border: 1px solid #09090b;
  border-bottom: 3px solid var(--cab);
  background: linear-gradient(#363237, #100e12);
}
.hr-arcade .hr-arcade-deck i {
  position: absolute;
  width: 4px;
  height: 9cqi;
  bottom: 27%;
  left: 25%;
  background: linear-gradient(90deg,#555,#ccc,#333);
  box-shadow: 0 4px 3px #000b;
}
.hr-arcade .hr-arcade-deck i::before {
  content: "";
  display: block;
  width: 7cqi;
  aspect-ratio: 1;
  position: absolute;
  bottom: 65%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, white, var(--cab) 24%, var(--vinyl) 83%);
}
.hr-arcade .hr-arcade-deck span {
  width: 10%;
  aspect-ratio: 1.4;
  border-radius: 50%;
  background: var(--cab);
  box-shadow: inset 0 -2px #0006, 0 2px 3px #000;
}
.hr-arcade .hr-arcade-deck span:last-child { background: #eee0cf; }
.hr-arcade .hr-arcade-kick {
  position: relative;
  display: grid;
  place-items: center;
  margin: 1px 3px 3px;
  background:
    linear-gradient(0deg, #0009, transparent 35%),
    repeating-linear-gradient(135deg, transparent 0 25%, #ffffff13 25% 27%, transparent 27% 32%),
    linear-gradient(100deg, #151418 53%, var(--vinyl) 53% 76%, #171619 76%);
}
.hr-arcade .hr-arcade-coin {
  position: relative;
  width: 27%;
  height: 53%;
  align-self: start;
  margin-top: 8%;
  border-radius: 3px;
  border: 1px solid #4d4847;
  background: linear-gradient(140deg,#282628,#0b0a0b);
  box-shadow: 1px 2px 2px #0009;
}
.hr-arcade .hr-arcade-coin::before,
.hr-arcade .hr-arcade-coin::after {
  content: "";
  position: absolute;
  top: 25%;
  left: 25%;
  width: 16%;
  height: 31%;
  border: 1px solid #ff9585;
  background: #b52c21;
  box-shadow: 0 0 5px #ed3b3266;
}
.hr-arcade .hr-arcade-coin::after { left: auto; right: 25%; }

.hr-arcade .hr-arcade-info { width: 100%; min-width: 0; }
.hr-arcade .hr-arcade-slot:not(.hr-arcade-playing) .hr-arcade-info { max-width: 16rem; }
.hr-arcade .hr-arcade-info .hr-arcade-genre {
  margin: 0 0 .5rem;
  color: var(--cab);
  font: 750 .8rem/1.3 var(--hr-mono);
  text-transform: uppercase;
  letter-spacing: .065em;
}
.hr-arcade .hr-arcade-info h3 {
  color: var(--hr-paper);
  font: 700 clamp(1.45rem, 2.3vw, 2.2rem)/1.05 var(--hr-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.hr-arcade .hr-arcade-info h3 span { display: block; font-size: .7em; margin-top: .22em; }
.hr-arcade .hr-arcade-info p { color: var(--hr-muted); margin-block: .55rem .9rem; }
.hr-arcade .hr-arcade-info p:last-child { margin-bottom: 0; }
.hr-arcade .hr-arcade-slot .hr-arcade-cta { border-color: var(--cab); background: var(--cab); color: #110d0e; }
.hr-arcade .hr-arcade-slot .hr-arcade-cta:hover { background: #fff4e8; color: #110d0e; }
.hr-arcade .hr-arcade-tabnote { padding-top: .75rem; color: var(--hr-muted); font-size: .875rem; }
.hr-arcade .hr-arcade-upcoming { margin-top: 2.8rem; }

@container hr-retrocade (60rem < width <= 72rem) {
  .hr-arcade .hr-arcade-row-live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hr-arcade .hr-arcade-row-live .hr-arcade-slot:nth-child(3n + 1) { border-inline-start-width: 0; }
}
@container hr-retrocade (max-width: 60rem) {
  .hr-arcade .hr-arcade-row-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-arcade .hr-arcade-row-live .hr-arcade-slot:nth-child(odd) { border-inline-start-width: 0; }
}
@container hr-retrocade (max-width: 32rem) {
  .hr-arcade .hr-arcade-inner { width: calc(100% - 2rem); }
  .hr-arcade .hr-arcade-row { grid-template-columns: minmax(0, 1fr); }
  .hr-arcade .hr-arcade-row .hr-arcade-slot { border-inline-start-width: 0; padding-inline: .25rem; }
  .hr-arcade .hr-arcade-row .hr-arcade-info { max-width: 19rem; }
  .hr-arcade .hr-arcade-hero { background-position: 65% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-arcade :is(.hr-arcade-machine, .hr-arcade-cta) { transition: none; }
  .hr-arcade a.hr-arcade-machine:hover { transform: none; }
}
