:root {
  --arcade-bg: #050708;
  --arcade-bg-2: #0a0f0d;
  --arcade-panel: rgba(11, 15, 14, 0.9);
  --arcade-panel-strong: rgba(14, 18, 17, 0.96);
  --arcade-line: rgba(180, 255, 171, 0.18);
  --arcade-line-strong: rgba(180, 255, 171, 0.36);
  --arcade-ink: #f6f7f2;
  --arcade-muted: rgba(246, 247, 242, 0.72);
  --arcade-green: #8ff07f;
  --arcade-yellow: #ffd84a;
  --arcade-orange: #ff8a3d;
  --arcade-cyan: #66dfff;
  --arcade-pink: #ff63bd;
  --theme-a: #8ff07f;
  --theme-b: #5ecf5b;
  --theme-c: #ff4d38;
  --theme-rgb: 143, 240, 127;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.arcade-ultimate {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(var(--theme-rgb), 0.16), transparent 30rem),
    linear-gradient(180deg, #070908 0%, #050708 56%, #090d0b 100%);
  color: var(--arcade-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.arcade-ultimate .weworkweb-return-bar {
  display: none;
}

body.arcade-ultimate::before,
body.arcade-ultimate::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body.arcade-ultimate::before {
  background-image:
    linear-gradient(rgba(var(--theme-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--theme-rgb), 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 82%);
}

body.arcade-ultimate::after {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 2px) 0 0 / 100% 5px,
    radial-gradient(circle at 100% 12%, rgba(255, 138, 61, 0.12), transparent 24rem);
  opacity: 0.55;
}

body[data-arcade-game="snake"] {
  --theme-a: #8ff07f;
  --theme-b: #58d65c;
  --theme-c: #ff4d38;
  --theme-rgb: 143, 240, 127;
}

body[data-arcade-game="tetris"] {
  --theme-a: #ff8a3d;
  --theme-b: #ffd84a;
  --theme-c: #66dfff;
  --theme-rgb: 255, 138, 61;
}

body[data-arcade-game="pong"] {
  --theme-a: #ff3131;
  --theme-b: #ffffff;
  --theme-c: #66dfff;
  --theme-rgb: 255, 49, 49;
}

body[data-arcade-game="memory"] {
  --theme-a: #66dfff;
  --theme-b: #8e88ff;
  --theme-c: #ffd84a;
  --theme-rgb: 102, 223, 255;
}

body[data-arcade-game="flappybird"] {
  --theme-a: #ffd84a;
  --theme-b: #7bdcff;
  --theme-c: #66d36c;
  --theme-rgb: 255, 216, 74;
}

body[data-arcade-game="coderain"] {
  --theme-a: #75e866;
  --theme-b: #29f2a2;
  --theme-c: #cfff5e;
  --theme-rgb: 117, 232, 102;
}

body[data-arcade-game="neon-space-shooter"] {
  --theme-a: #8b5cff;
  --theme-b: #18e8ff;
  --theme-c: #ff3faf;
  --theme-rgb: 139, 92, 255;
}

body[data-arcade-game="street-fighter-alpha"] {
  --theme-a: #ffd84a;
  --theme-b: #ff4d38;
  --theme-c: #66dfff;
  --theme-rgb: 255, 216, 74;
}

body[data-arcade-game="dragon-ball-arena"] {
  --theme-a: #ffb02e;
  --theme-b: #18e8ff;
  --theme-c: #ff4d38;
  --theme-rgb: 255, 176, 46;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.arcade-shell {
  width: min(100%, 1510px);
  margin: 0 auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 4, 4, 0.28);
}

body[data-mockup-embed="1"] .arcade-shell {
  border-right: 0;
  border-left: 0;
}

.arcade-nav {
  display: grid;
  min-height: 86px;
  grid-template-columns: minmax(180px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 clamp(20px, 3.2vw, 58px);
  background: rgba(8, 10, 10, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.arcade-brand {
  display: inline-flex;
  width: clamp(190px, 18vw, 260px);
  min-width: 0;
  align-items: center;
  text-decoration: none;
}

.arcade-brand__mark {
  display: inline-flex;
  align-items: baseline;
  width: 100%;
}

.arcade-brand__mark img {
  display: none;
}

.arcade-brand__mark::before,
.arcade-brand__mark::after {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  content: "WeWork";
}

.arcade-brand__mark::after {
  color: #66d58d;
  content: "Web";
}

.arcade-nav__current {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--arcade-green);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 900;
  white-space: nowrap;
}

.arcade-nav__current::before {
  width: auto;
  height: auto;
  margin-right: 8px;
  background: none;
  content: "🎮";
}

.arcade-nav__links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 36px);
  overflow-x: auto;
  scrollbar-width: none;
}

.arcade-nav__links::-webkit-scrollbar {
  display: none;
}

.arcade-nav__links a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: rgba(246, 247, 242, 0.82);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.arcade-nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--theme-a);
  opacity: 0;
  transform: translateY(5px);
  content: "";
}

.arcade-nav__links a:hover,
.arcade-nav__links a[aria-current="page"] {
  color: #ffffff;
}

.arcade-nav__links a:hover::after,
.arcade-nav__links a[aria-current="page"]::after {
  opacity: 1;
  transform: translateY(0);
}

.arcade-hero--hub {
  position: relative;
  display: grid;
  min-height: 334px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 500px);
  gap: clamp(24px, 4vw, 66px);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(30px, 4.2vw, 58px) clamp(22px, 4vw, 58px);
  overflow: hidden;
}

.arcade-hero--hub::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.2), rgba(5, 7, 8, 0.88) 38%, rgba(5, 7, 8, 0.94)),
    url("/assets/arcade/images/generated/arcade-cabinet-hero.png") left center / auto 100% no-repeat;
  content: "";
}

.arcade-hero--hub::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(143, 240, 127, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 240, 127, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to right, transparent, black 30%, black);
  content: "";
}

.arcade-hero--hub > * {
  position: relative;
  z-index: 1;
}

.arcade-hero__copy {
  display: grid;
  justify-items: center;
  gap: 24px;
  min-width: 0;
  text-align: center;
}

.arcade-hero__copy h1,
.arcade-game-copy h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(var(--theme-rgb), 0.24);
}

.arcade-hero__copy h1 {
  max-width: 7.8ch;
  font-size: clamp(3.7rem, 7.7vw, 6.8rem);
  line-height: 0.82;
}

.arcade-lead {
  max-width: 44rem;
  margin: 0;
  color: var(--arcade-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-weight: 760;
  line-height: 1.45;
}

.arcade-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(var(--theme-rgb), 0.62);
  border-radius: 6px;
  padding: 0 28px;
  background: linear-gradient(180deg, var(--theme-a), var(--theme-b));
  color: #061006;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(var(--theme-rgb), 0.18), inset 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.arcade-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.arcade-button--ghost {
  border-color: rgba(246, 247, 242, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: #f6f7f2;
  box-shadow: none;
}

.arcade-top-card {
  align-self: center;
  border: 1px solid rgba(var(--theme-rgb), 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(var(--theme-rgb), 0.08), rgba(255, 255, 255, 0.025)),
    rgba(9, 13, 12, 0.88);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.arcade-top-card h2,
.arcade-section-title,
.arcade-scoreboard__head h2,
.arcade-assist-panel h2 {
  margin: 0;
  color: var(--theme-a);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.arcade-top-card h2 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 20px 28px 16px;
  font-size: 1.6rem;
}

.arcade-score-strip {
  display: grid;
}

.arcade-player-card {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 28px;
}

.arcade-player-card:last-child {
  border-bottom: 0;
}

.arcade-medal {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 950;
}

.arcade-medal--gold {
  color: var(--arcade-yellow);
}

.arcade-medal--silver {
  color: #c8d0d8;
}

.arcade-medal--bronze {
  color: var(--arcade-orange);
}

.arcade-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(var(--theme-rgb), 0.5);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(var(--theme-rgb), 0.28), rgba(255, 255, 255, 0.08));
  color: #ffffff;
  font-weight: 950;
}

.arcade-player-card strong {
  min-width: 0;
  color: #ffffff;
  font-size: 1.02rem;
}

.arcade-player-card em {
  color: var(--theme-a);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.arcade-board {
  padding: clamp(20px, 3vw, 34px) clamp(20px, 3.2vw, 58px) clamp(34px, 5vw, 58px);
  background: rgba(9, 12, 12, 0.78);
}

.arcade-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 22px;
  color: #f6f7f2;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  text-align: center;
}

.arcade-section-title::before,
.arcade-section-title::after {
  width: min(35vw, 420px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-rgb), 0.55));
  content: "";
}

.arcade-section-title::after {
  background: linear-gradient(90deg, rgba(var(--theme-rgb), 0.55), transparent);
}

.arcade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.arcade-game-card {
  position: relative;
  display: grid;
  min-height: 246px;
  grid-template-rows: auto 120px auto auto;
  gap: 8px;
  border: 2px solid rgba(var(--game-rgb, 143, 240, 127), 0.48);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(var(--game-rgb, 143, 240, 127), 0.12), rgba(255, 255, 255, 0.02)),
    rgba(8, 11, 11, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.arcade-game-card::before,
.arcade-machine__screen::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--game-rgb, var(--theme-rgb)), 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--game-rgb, var(--theme-rgb)), 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.42;
  content: "";
}

.arcade-game-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.arcade-game-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--game-color);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.arcade-game-card__media {
  position: relative;
  z-index: 2;
  min-height: 120px;
  border: 1px solid rgba(var(--game-rgb, 143, 240, 127), 0.22);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.arcade-game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-pos, center);
  filter: saturate(1.08) contrast(1.04);
}

.arcade-game-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(246, 247, 242, 0.78);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.38;
}

.arcade-game-card__meta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arcade-game-card button {
  display: inline-flex;
  min-width: 118px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(var(--game-rgb, 143, 240, 127), 0.72);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--game-color);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.arcade-difficulty {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(var(--game-rgb, 143, 240, 127), 0.44);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(var(--game-rgb, 143, 240, 127), 0.08);
  color: var(--game-color);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-game-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(560px, 1fr);
  gap: clamp(26px, 4vw, 70px);
  align-items: center;
  min-height: 532px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(20px, 3vw, 42px) clamp(20px, 3.2vw, 58px) clamp(30px, 4vw, 54px);
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--theme-rgb), 0.14), transparent 26rem),
    rgba(7, 12, 10, 0.78);
}

.arcade-game-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
  min-width: 0;
}

.arcade-game-copy > * {
  max-width: 100%;
  min-width: 0;
}

.arcade-back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(var(--theme-rgb), 0.35);
  border-radius: 7px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 247, 242, 0.86);
  font-weight: 900;
  text-decoration: none;
}

.arcade-back-link::before {
  margin-right: 8px;
  content: "←";
}

.arcade-game-copy h1 {
  color: var(--theme-a);
  font-size: clamp(4rem, 7.2vw, 6.4rem);
  line-height: 0.86;
}

body[data-arcade-game="neon-space-shooter"] .arcade-game-copy h1 {
  font-size: clamp(2.55rem, 5.1vw, 4.65rem);
  line-height: 0.92;
  text-wrap: balance;
}

body[data-arcade-game="street-fighter-alpha"] .arcade-game-copy h1 {
  font-size: clamp(3rem, 4.45vw, 4.2rem);
  line-height: 0.9;
  text-wrap: balance;
}

body[data-arcade-game="dragon-ball-arena"] .arcade-game-copy h1 {
  font-size: clamp(3rem, 4.45vw, 4.2rem);
  line-height: 0.9;
  text-wrap: balance;
}

.arcade-game-copy h1::after {
  display: block;
  width: min(120px, 42%);
  height: 6px;
  margin-top: 18px;
  background: var(--theme-a);
  box-shadow: 0 0 18px rgba(var(--theme-rgb), 0.38);
  content: "";
}

.arcade-facts {
  display: grid;
  width: min(100%, 320px);
  margin: 6px 0 10px;
  border: 1px solid rgba(var(--theme-rgb), 0.32);
  border-radius: 8px;
  background: rgba(10, 14, 13, 0.76);
  overflow: hidden;
}

.arcade-facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 18px;
}

.arcade-facts div:last-child {
  border-bottom: 0;
}

.arcade-facts dt,
.arcade-facts dd {
  margin: 0;
  color: rgba(246, 247, 242, 0.86);
  font-weight: 850;
}

.arcade-facts dt::before {
  display: inline-block;
  width: 1.4em;
  color: var(--theme-a);
  content: "■";
}

.arcade-facts dd {
  text-align: right;
}

.arcade-facts dd[data-difficulty="hardcore"],
.arcade-game-card__name span[data-difficulty="hardcore"] {
  border: 1px solid rgba(255, 49, 49, 0.78);
  border-radius: 5px;
  padding: 4px 8px;
  background: rgba(255, 49, 49, 0.14);
  color: #ff6b6b;
  text-shadow: 0 0 14px rgba(255, 49, 49, 0.55);
}

.arcade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.arcade-credit-line {
  max-width: 42rem;
  margin: -4px 0 0;
  color: rgba(246, 247, 242, 0.72);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.4;
}

.arcade-machine {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  padding: clamp(18px, 2.2vw, 28px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 12%),
    linear-gradient(180deg, #161917, #070908 76%, #0e0f0d);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 5px rgba(0, 0, 0, 0.36),
    inset 0 0 0 8px rgba(255, 255, 255, 0.035);
}

.arcade-machine::after {
  position: absolute;
  right: 7%;
  bottom: 5%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e33f2f;
  box-shadow: 36px 0 #e33f2f, -58px -14px 0 8px #b81717;
  content: "";
}

.arcade-machine__hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.56);
}

.arcade-machine__hud span {
  display: grid;
  justify-items: center;
  color: #ffffff;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 950;
  line-height: 1.05;
}

.arcade-machine__hud b {
  color: var(--theme-a);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.arcade-machine__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, 16%);
  gap: 18px;
  align-items: stretch;
}

.arcade-machine__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 7px solid #0d0f0d;
  border-radius: 15px;
  background: #020503;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(var(--theme-rgb), 0.18);
  overflow: hidden;
}

.arcade-machine__screen img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.06);
}

.arcade-machine__side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  align-items: center;
}

.arcade-machine__side span {
  display: grid;
  min-height: 148px;
  place-items: center;
  border: 4px solid #111514;
  border-radius: 10px;
  background: radial-gradient(circle at center, rgba(var(--theme-rgb), 0.12), rgba(0, 0, 0, 0.6));
  color: var(--theme-a);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.25rem, 2vw, 1.95rem);
  font-weight: 950;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.arcade-machine__side i {
  justify-self: center;
  width: 42px;
  height: 56px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 50% 18%, #ff6b57 0 20%, #b91e16 21% 36%, transparent 37%),
    linear-gradient(#252927 0 36%, #090a09 37% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.arcade-scoreboard {
  margin: clamp(28px, 4vw, 48px) clamp(20px, 3.2vw, 58px) 0;
  border: 1px solid rgba(var(--theme-rgb), 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(8, 11, 11, 0.88);
  overflow: hidden;
}

.arcade-scoreboard__head {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
}

.arcade-scoreboard__head h2 {
  color: var(--theme-a);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  text-align: center;
}

.arcade-scoreboard__head h2::before {
  margin-right: 12px;
  color: var(--arcade-yellow);
  content: "♛";
}

.arcade-scoreboard table {
  width: 100%;
  border-collapse: collapse;
}

.arcade-scoreboard th,
.arcade-scoreboard td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
}

.arcade-scoreboard tr:last-child td {
  border-bottom: 0;
}

.arcade-scoreboard th {
  color: rgba(246, 247, 242, 0.65);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-scoreboard td {
  color: rgba(246, 247, 242, 0.86);
  font-size: 0.98rem;
  font-weight: 760;
}

.arcade-scoreboard strong {
  display: inline-block;
  min-width: 86px;
  color: #ffffff;
}

.arcade-scoreboard span {
  color: rgba(246, 247, 242, 0.6);
  font-size: 0.84rem;
}

.arcade-score {
  color: var(--theme-a);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.16rem;
  font-weight: 950;
  white-space: nowrap;
}

.arcade-assist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  margin: 22px clamp(20px, 3.2vw, 58px) clamp(34px, 5vw, 58px);
  border: 1px solid rgba(255, 216, 74, 0.34);
  border-radius: 8px;
  padding: 22px 28px;
  background: rgba(13, 14, 11, 0.86);
}

.arcade-assist-panel > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  padding-left: 28px;
}

.arcade-assist-panel h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.arcade-assist-panel p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: rgba(246, 247, 242, 0.74);
  font-weight: 760;
  line-height: 1.5;
}

.arcade-assist-panel kbd {
  display: inline-grid;
  min-width: 38px;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(246, 247, 242, 0.38);
  border-radius: 4px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.96rem;
  font-weight: 950;
}

.arcade-game-hero--sfa {
  grid-template-columns: minmax(500px, 0.72fr) minmax(500px, 1fr);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 216, 74, 0.12), transparent 26rem),
    radial-gradient(circle at 80% 42%, rgba(255, 77, 56, 0.14), transparent 24rem),
    rgba(7, 10, 12, 0.8);
}

.arcade-machine--sfa .arcade-machine__screen img {
  object-position: center;
}

#game-container[data-active-game="dragon-ball-arena"] .game-canvas-wrapper {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-top: 1px solid rgba(255, 176, 46, 0.26);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 176, 46, 0.18), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(24, 232, 255, 0.14), transparent 32%),
    #030405;
}

.arcade-game-hero--dragon {
  grid-template-columns: minmax(500px, 0.72fr) minmax(500px, 1fr);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 176, 46, 0.14), transparent 27rem),
    radial-gradient(circle at 80% 42%, rgba(24, 232, 255, 0.12), transparent 24rem),
    rgba(7, 10, 12, 0.82);
}

.arcade-machine--dragon .arcade-machine__screen {
  background:
    linear-gradient(180deg, rgba(255, 176, 46, 0.1), transparent),
    #05070c;
}

.arcade-machine--dragon .arcade-machine__screen img {
  object-fit: cover;
  object-position: center;
}

.arcade-sfa-player {
  margin: clamp(28px, 4vw, 48px) clamp(20px, 3.2vw, 58px) 0;
  border: 1px solid rgba(var(--theme-rgb), 0.3);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(var(--theme-rgb), 0.08), rgba(255, 77, 56, 0.06)),
    rgba(8, 11, 12, 0.9);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.arcade-sfa-player__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: clamp(16px, 2.4vw, 24px);
}

.arcade-sfa-player__head h2 {
  margin: 0 0 6px;
  color: var(--theme-a);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.arcade-sfa-player__head p {
  max-width: 54rem;
  margin: 0;
  color: rgba(246, 247, 242, 0.68);
  font-weight: 760;
  line-height: 1.45;
}

.arcade-sfa-player__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.arcade-sfa-frame-shell {
  position: relative;
  width: 100%;
  height: clamp(620px, 78svh, 860px);
  min-height: 620px;
  background:
    linear-gradient(rgba(var(--theme-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 223, 255, 0.055) 1px, transparent 1px),
    #020405;
  background-size: 26px 26px;
}

.arcade-sfa-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020405;
}

.arcade-game-card--dragon .arcade-game-card__media {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 176, 46, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(24, 232, 255, 0.18), rgba(5, 6, 7, 0.92));
}

.arcade-game-card--dragon .arcade-game-card__media img {
  transform: scale(1.08);
}

.arcade-game-card button:focus-visible,
.arcade-game-card__play:focus-visible,
.arcade-button:focus-visible,
.arcade-nav__links a:focus-visible,
.arcade-back-link:focus-visible {
  outline: 3px solid rgba(var(--theme-rgb), 0.58);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .arcade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arcade-game-hero {
    grid-template-columns: 1fr;
  }

  .arcade-machine {
    width: min(100%, 850px);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .arcade-nav {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .arcade-nav__links {
    width: 100%;
    justify-content: flex-start;
  }

  .arcade-hero--hub {
    grid-template-columns: 1fr;
  }

  .arcade-hero--hub::before {
    opacity: 0.58;
  }

  .arcade-top-card {
    width: min(100%, 520px);
    justify-self: center;
  }

  .arcade-hero__copy {
    justify-items: start;
    text-align: left;
  }

  .arcade-hero__copy h1 {
    font-size: clamp(3.6rem, 16vw, 6.8rem);
  }

  .arcade-assist-panel {
    grid-template-columns: 1fr;
  }

  .arcade-assist-panel > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .arcade-sfa-player__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .arcade-sfa-player__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .arcade-shell {
    border: 0;
  }

  .arcade-board,
  .arcade-game-hero,
  .arcade-scoreboard,
  .arcade-assist-panel {
    margin-right: 12px;
    margin-left: 12px;
  }

  .arcade-hero--hub {
    min-height: 0;
    padding: 38px 18px;
  }

  .arcade-grid {
    grid-template-columns: 1fr;
  }

  .arcade-game-card {
    min-height: 310px;
    padding: 14px;
  }

  .arcade-game-card__media {
    min-height: 132px;
  }

  .arcade-player-card {
    grid-template-columns: 30px 40px minmax(0, 1fr);
    padding: 12px 16px;
  }

  .arcade-player-card em {
    grid-column: 3;
    font-size: 1rem;
  }

  .arcade-game-copy h1 {
    font-size: clamp(3.3rem, 18vw, 5.2rem);
  }

  .arcade-machine {
    padding: 12px;
  }

  .arcade-machine__body {
    grid-template-columns: 1fr;
  }

  .arcade-machine__side {
    display: none;
  }

  .arcade-machine__hud {
    padding: 8px;
  }

  .arcade-machine__hud span {
    font-size: 0.92rem;
  }

  .arcade-scoreboard {
    overflow-x: auto;
  }

  .arcade-scoreboard table {
    min-width: 560px;
  }

  .arcade-scoreboard th,
  .arcade-scoreboard td {
    padding: 13px 12px;
  }

  .arcade-assist-panel {
    padding: 18px;
  }

  .arcade-sfa-player {
    margin-right: 12px;
    margin-left: 12px;
  }

  .arcade-sfa-frame-shell {
    height: clamp(500px, 72svh, 640px);
    min-height: 500px;
  }
}

/* =====================================================
   Hub arcade premium
   ===================================================== */

body.arcade-hub {
  background:
    linear-gradient(90deg, rgba(117, 232, 102, 0.06) 0 1px, transparent 1px 100%) 0 0 / 58px 58px,
    linear-gradient(180deg, rgba(102, 223, 255, 0.05) 0 1px, transparent 1px 100%) 0 0 / 58px 58px,
    linear-gradient(135deg, #030405 0%, #07100d 40%, #040608 100%);
}

body.arcade-hub::before {
  background:
    linear-gradient(90deg, rgba(143, 240, 127, 0.12), transparent 18%, transparent 82%, rgba(102, 223, 255, 0.08)),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035), transparent 2px) 0 0 / 100% 6px;
  mask-image: none;
  opacity: 0.72;
}

body.arcade-hub::after {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.44)),
    linear-gradient(90deg, transparent, rgba(255, 99, 189, 0.05) 54%, transparent);
  opacity: 1;
}

.arcade-hub .arcade-shell {
  width: min(100%, 1560px);
  min-height: 100svh;
  border-color: rgba(143, 240, 127, 0.12);
  background: rgba(2, 4, 5, 0.54);
}

.arcade-hub .arcade-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  grid-template-columns: minmax(180px, 0.72fr) auto minmax(320px, 1fr);
  border-bottom-color: rgba(143, 240, 127, 0.2);
  background: rgba(3, 5, 6, 0.88);
  backdrop-filter: blur(18px);
}

.arcade-hub .arcade-nav__current {
  color: var(--arcade-green);
}

.arcade-hub .arcade-hero--hub {
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.72fr);
  padding: clamp(38px, 5vw, 76px) clamp(20px, 4vw, 64px) clamp(28px, 3.4vw, 52px);
  background:
    linear-gradient(90deg, rgba(6, 10, 10, 0.94), rgba(6, 10, 10, 0.66) 54%, rgba(6, 10, 10, 0.92)),
    url("/assets/arcade/images/generated/arcade-cabinet-hero.png") center / cover no-repeat;
}

.arcade-hub .arcade-hero--hub::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.7), rgba(3, 5, 6, 0.28) 48%, rgba(3, 5, 6, 0.78)),
    linear-gradient(180deg, rgba(3, 5, 6, 0.16), rgba(3, 5, 6, 0.88));
  opacity: 1;
}

.arcade-hub .arcade-hero--hub::after {
  background-image:
    linear-gradient(rgba(143, 240, 127, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 223, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  opacity: 0.46;
}

.arcade-hub .arcade-hero__copy {
  max-width: 720px;
  justify-items: start;
  gap: 22px;
  text-align: left;
}

.arcade-hub .arcade-hero__copy h1 {
  max-width: 9ch;
  color: #f7fff4;
  font-size: clamp(4.8rem, 9vw, 8.8rem);
  line-height: 0.78;
  text-shadow:
    0 0 18px rgba(143, 240, 127, 0.4),
    0 0 42px rgba(102, 223, 255, 0.18);
}

.arcade-hub .arcade-lead {
  max-width: 46rem;
  color: rgba(246, 247, 242, 0.88);
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
}

.arcade-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.arcade-stats {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 6px 0 0;
  border: 1px solid rgba(143, 240, 127, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.arcade-stats div {
  min-height: 78px;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.arcade-stats div:last-child {
  border-right: 0;
}

.arcade-stats dt,
.arcade-stats dd {
  margin: 0;
}

.arcade-stats dt {
  color: rgba(246, 247, 242, 0.62);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-stats dd {
  margin-top: 5px;
  color: #ffffff;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 950;
  line-height: 1;
}

.arcade-quick-launch {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.arcade-quick-launch button {
  position: relative;
  display: grid;
  min-height: 90px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(4, 8, 8, 0.74);
  color: #ffffff;
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.arcade-quick-launch button:hover {
  border-color: rgba(143, 240, 127, 0.72);
  background: rgba(143, 240, 127, 0.1);
  transform: translateY(-2px);
}

.arcade-quick-launch img {
  width: 58px;
  height: 68px;
  border-radius: 5px;
  object-fit: cover;
}

.arcade-quick-launch span {
  min-width: 0;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.94rem;
  text-transform: uppercase;
}

.arcade-hub .arcade-top-card {
  border-color: rgba(143, 240, 127, 0.5);
  background:
    linear-gradient(180deg, rgba(143, 240, 127, 0.08), rgba(102, 223, 255, 0.035)),
    rgba(2, 5, 6, 0.84);
  backdrop-filter: blur(18px);
}

.arcade-top-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 22px 14px;
}

.arcade-hub .arcade-top-card h2 {
  border-bottom: 0;
  padding: 0;
  color: var(--arcade-green);
  font-size: clamp(1.2rem, 1.8vw, 1.58rem);
}

.arcade-top-card__head a,
.arcade-record-wall a {
  color: rgba(246, 247, 242, 0.78);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.arcade-hub .arcade-score-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.arcade-hub .arcade-player-card {
  min-height: 164px;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.34);
  text-align: center;
}

.arcade-hub .arcade-player-card:first-child {
  border-color: rgba(255, 216, 74, 0.44);
  background: rgba(255, 216, 74, 0.08);
}

.arcade-hub .arcade-avatar {
  width: 54px;
  height: 54px;
}

.arcade-hub .arcade-player-card strong,
.arcade-hub .arcade-player-card em {
  min-width: 0;
}

.arcade-hub .arcade-player-card em {
  font-size: clamp(0.96rem, 1.45vw, 1.18rem);
}

.arcade-top-card__note {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 13px 18px 16px;
  color: rgba(246, 247, 242, 0.62);
  font-size: 0.84rem;
  font-weight: 760;
}

.arcade-hub .arcade-board {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 64px) clamp(34px, 4vw, 54px);
  background: rgba(4, 7, 8, 0.86);
}

.arcade-board__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.arcade-board__head p {
  margin: 7px 0 0;
  color: rgba(246, 247, 242, 0.7);
  font-weight: 760;
}

.arcade-hub .arcade-section-title {
  justify-content: flex-start;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 1.9vw, 1.72rem);
  text-align: left;
}

.arcade-hub .arcade-section-title::before,
.arcade-hub .arcade-section-title::after {
  display: none;
}

.arcade-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.arcade-filters button {
  min-height: 38px;
  border: 1px solid rgba(246, 247, 242, 0.18);
  border-radius: 6px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(246, 247, 242, 0.72);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.arcade-filters button:hover,
.arcade-filters button.is-active {
  border-color: rgba(143, 240, 127, 0.7);
  background: rgba(143, 240, 127, 0.12);
  color: var(--arcade-green);
}

.arcade-hub .arcade-grid {
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 18px;
}

.arcade-hub .arcade-game-card {
  min-height: 414px;
  grid-template-rows: auto auto minmax(82px, auto) auto auto;
  gap: 12px;
  padding: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.arcade-hub .arcade-game-card:hover {
  border-color: rgba(var(--game-rgb, 143, 240, 127), 0.86);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(var(--game-rgb, 143, 240, 127), 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.arcade-hub .arcade-game-card.is-hidden {
  display: none;
}

.arcade-game-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(246, 247, 242, 0.64);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-game-card__top strong {
  color: #ffffff;
  font-size: 0.88rem;
  white-space: nowrap;
}

.arcade-hub .arcade-game-card__media {
  aspect-ratio: 1 / 0.92;
  min-height: 0;
  border-color: rgba(var(--game-rgb, 143, 240, 127), 0.42);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(var(--game-rgb, 143, 240, 127), 0.14), transparent),
    #020404;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.arcade-hub .arcade-game-card__media img {
  object-fit: cover;
  object-position: var(--media-pos, center);
  transform: scale(1.02);
}

.arcade-game-card__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.arcade-hub .arcade-game-card h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.arcade-hub .arcade-game-card p {
  font-size: 0.84rem;
  line-height: 1.36;
}

.arcade-card-leaders {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arcade-card-leaders li {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(246, 247, 242, 0.68);
  font-size: 0.75rem;
  font-weight: 820;
}

.arcade-card-leaders strong {
  color: var(--game-color);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.arcade-hub .arcade-game-card button {
  min-width: 0;
  flex: 1;
  background: linear-gradient(180deg, var(--game-color), rgba(var(--game-rgb, 143, 240, 127), 0.78));
  color: #040606;
}

.arcade-hub .arcade-difficulty {
  min-width: 78px;
  justify-content: center;
}

.arcade-rankings {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  padding: 0 clamp(20px, 4vw, 64px) clamp(44px, 5vw, 70px);
  background: rgba(4, 7, 8, 0.86);
}

.arcade-rankings .arcade-scoreboard {
  margin: 0;
}

.arcade-rankings .arcade-scoreboard__head {
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.arcade-rankings .arcade-scoreboard__head p {
  margin: 0;
  color: rgba(246, 247, 242, 0.64);
  font-weight: 760;
  text-align: right;
}

.arcade-record-wall {
  border: 1px solid rgba(255, 216, 74, 0.3);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 216, 74, 0.07), transparent),
    rgba(8, 10, 10, 0.88);
}

.arcade-record-wall h2 {
  margin: 0 0 14px;
  color: var(--arcade-yellow);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.12rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-record-list {
  display: grid;
  gap: 8px;
}

.arcade-record-list article {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.25);
}

.arcade-record-list span {
  color: rgba(246, 247, 242, 0.78);
  font-weight: 850;
}

.arcade-record-list strong {
  color: #ffffff;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.arcade-quick-launch button:focus-visible,
.arcade-filters button:focus-visible {
  outline: 3px solid rgba(143, 240, 127, 0.58);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .arcade-hub .arcade-hero--hub {
    grid-template-columns: 1fr;
  }

  .arcade-hub .arcade-top-card {
    width: min(100%, 720px);
  }

  .arcade-rankings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .arcade-hub .arcade-nav {
    position: relative;
    grid-template-columns: 1fr;
  }

  .arcade-hub .arcade-hero--hub {
    min-height: 0;
  }

  .arcade-board__head {
    align-items: start;
    flex-direction: column;
  }

  .arcade-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .arcade-hub .arcade-hero--hub,
  .arcade-hub .arcade-board,
  .arcade-rankings {
    padding-right: 14px;
    padding-left: 14px;
  }

  .arcade-hub .arcade-hero__copy h1 {
    font-size: clamp(3.8rem, 20vw, 5.2rem);
  }

  .arcade-hero__actions,
  .arcade-hero__actions .arcade-button {
    width: 100%;
  }

  .arcade-stats,
  .arcade-hub .arcade-score-strip {
    grid-template-columns: 1fr;
  }

  .arcade-quick-launch {
    display: none;
  }

  .arcade-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .arcade-stats div:last-child {
    border-bottom: 0;
  }

  .arcade-hub .arcade-player-card {
    min-height: 92px;
    grid-template-columns: 30px 44px minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }

  .arcade-hub .arcade-player-card em {
    grid-column: auto;
  }

  .arcade-rankings .arcade-scoreboard__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .arcade-rankings .arcade-scoreboard__head p {
    text-align: left;
  }
}

/* =====================================================
   Reference arcade screen fidelity pass
   ===================================================== */

body.arcade-reference,
body.arcade-game-page {
  --ref-bg: #020507;
  --ref-panel: rgba(5, 12, 14, 0.82);
  --ref-line: rgba(126, 255, 91, 0.24);
  --ref-line-soft: rgba(255, 255, 255, 0.09);
  --ref-green: #7cff3f;
  --ref-cyan: #18e8ff;
  --ref-pink: #ff3faf;
  --ref-yellow: #ffd928;
  background:
    linear-gradient(rgba(126, 255, 91, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 255, 91, 0.035) 1px, transparent 1px),
    #020507;
  background-size: 44px 44px;
  color: #f7fff7;
}

body.arcade-reference::before,
body.arcade-game-page::before {
  background:
    linear-gradient(90deg, rgba(126, 255, 91, 0.1), transparent 14%, transparent 86%, rgba(24, 232, 255, 0.08)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px);
  mask-image: none;
  opacity: 0.72;
}

body.arcade-reference::after,
body.arcade-game-page::after {
  background: radial-gradient(circle at 75% 2%, rgba(255, 63, 175, 0.08), transparent 26rem);
}

.arcade-reference .arcade-shell,
body.arcade-game-page .arcade-shell {
  width: min(100%, 1536px);
  min-height: 100svh;
  border-color: rgba(126, 255, 91, 0.22);
  border-radius: 7px 7px 0 0;
  background: rgba(1, 4, 6, 0.72);
  overflow: hidden;
}

.arcade-nav--reference,
body.arcade-game-page .arcade-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid rgba(126, 255, 91, 0.18);
  padding: 0 clamp(22px, 5vw, 86px);
  background: rgba(1, 3, 6, 0.92);
  backdrop-filter: blur(18px);
}

.arcade-reference .arcade-brand,
body.arcade-game-page .arcade-brand {
  width: auto;
  gap: 12px;
}

.arcade-brand__symbol {
  position: relative;
  display: inline-grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--ref-green);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='9' r='6' fill='black' stroke='none'/%3E%3Cpath d='M32 15v20M17 37l15-9 15 9-15 9-15-9ZM32 46v8M20 54h24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='9' r='6' fill='black' stroke='none'/%3E%3Cpath d='M32 15v20M17 37l15-9 15 9-15 9-15-9ZM32 46v8M20 54h24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.arcade-brand__symbol::before {
  display: none;
  content: "";
}

.arcade-brand__symbol::after {
  display: none;
  content: "";
}

.arcade-brand__text {
  color: #ffffff;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.arcade-brand__text span {
  color: #72f36f;
}

.arcade-reference .arcade-brand__mark,
body.arcade-game-page .arcade-nav__current {
  display: none;
}

body.arcade-game-page .arcade-brand::before {
  display: none;
  content: none;
}

.arcade-reference .arcade-nav__links,
body.arcade-game-page .arcade-nav__links {
  justify-self: center;
  gap: 0;
  overflow: visible;
}

.arcade-reference .arcade-nav__links a,
body.arcade-game-page .arcade-nav__links a {
  min-height: 66px;
  gap: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 820;
}

.arcade-reference .arcade-nav__links a:last-child,
body.arcade-game-page .arcade-nav__links a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.arcade-reference .arcade-nav__links a span,
body.arcade-game-page .arcade-nav__links a span {
  display: inline-block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  background: currentColor;
  color: currentColor;
  font-size: 0;
  line-height: 0;
  -webkit-mask: var(--arcade-nav-icon) center / contain no-repeat;
  mask: var(--arcade-nav-icon) center / contain no-repeat;
}

.arcade-reference .arcade-nav__links a:nth-child(1) span,
body.arcade-game-page .arcade-nav__links a:nth-child(1) span {
  --arcade-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.2 12 4l9 7.2'/%3E%3Cpath d='M5.8 10.4V20h12.4v-9.6'/%3E%3Cpath d='M9.8 20v-5.4h4.4V20'/%3E%3C/g%3E%3C/svg%3E");
}

.arcade-reference .arcade-nav__links a:nth-child(2) span,
body.arcade-game-page .arcade-nav__links a:nth-child(2) span,
.arcade-button--play span {
  --arcade-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.2 9h9.6a4.2 4.2 0 0 1 3.95 2.78l1.05 3.05a2.9 2.9 0 0 1-5.07 2.69L15.4 16H8.6l-1.33 1.52a2.9 2.9 0 0 1-5.07-2.69l1.05-3.05A4.2 4.2 0 0 1 7.2 9Z'/%3E%3Cpath d='M8 12v3M6.5 13.5h3M15.5 13h.01M18 14.4h.01'/%3E%3C/g%3E%3C/svg%3E");
}

.arcade-reference .arcade-nav__links a:nth-child(3) span,
body.arcade-game-page .arcade-nav__links a:nth-child(3) span {
  --arcade-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M8 5h11v11'/%3E%3C/g%3E%3C/svg%3E");
}

.arcade-reference .arcade-nav__links a:nth-child(4) span,
body.arcade-game-page .arcade-nav__links a:nth-child(4) span {
  --arcade-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4.5 7 7.5 6 7.5-6'/%3E%3C/g%3E%3C/svg%3E");
}

body.arcade-game-page .arcade-nav__links a::before {
  display: none;
  content: none;
}

.arcade-reference .arcade-nav__links a[aria-current="page"],
body.arcade-game-page .arcade-nav__links a[aria-current="page"] {
  color: var(--ref-green);
  background: rgba(126, 255, 91, 0.055);
}

.arcade-reference .arcade-nav__links a[aria-current="page"]::after,
body.arcade-game-page .arcade-nav__links a[aria-current="page"]::after {
  height: 4px;
  background: var(--ref-green);
  opacity: 1;
  transform: translateY(0);
}

.arcade-user-chip {
  justify-self: end;
  display: inline-grid;
  min-height: 44px;
  grid-template-columns: 36px auto 12px;
  gap: 12px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 840;
}

body.arcade-game-page .arcade-nav::after {
  display: none;
  content: none;
}

.arcade-user-chip span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(126, 255, 91, 0.13);
  color: var(--ref-green);
  font-weight: 950;
}

.arcade-user-chip i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.arcade-hero--reference {
  position: relative;
  display: grid;
  min-height: 408px;
  grid-template-columns: minmax(0, 1fr) clamp(540px, 42vw, 640px);
  gap: clamp(24px, 2.6vw, 48px);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px clamp(24px, 4.2vw, 64px) 14px clamp(50px, 7vw, 140px);
  background:
    linear-gradient(90deg, rgba(1, 4, 6, 0.5), rgba(1, 4, 6, 0.16) 42%, rgba(1, 4, 6, 0.58)),
    linear-gradient(180deg, rgba(1, 4, 6, 0.08), rgba(1, 4, 6, 0.76)),
    url("/assets/arcade/images/generated/arcade-hall-neon.png") center 45% / cover no-repeat;
  overflow: hidden;
}

.arcade-hero--reference::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 4, 6, 0.78), rgba(1, 4, 6, 0.2) 34%, rgba(1, 4, 6, 0.72) 100%),
    linear-gradient(rgba(126, 255, 91, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 255, 91, 0.055) 1px, transparent 1px);
  background-size: auto, 31px 31px, 31px 31px;
  content: "";
}

.arcade-hero--reference > * {
  position: relative;
  z-index: 1;
}

.arcade-hero__rail {
  position: absolute;
  top: 18px;
  bottom: 24px;
  left: 22px;
  z-index: 2;
  display: grid;
  align-content: space-between;
  color: var(--ref-green);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-hero__rail span {
  display: block;
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 20px 0 currentColor, 0 40px 0 rgba(255, 216, 40, 0.85);
}

.arcade-pixel-title {
  display: grid;
  gap: 0;
  margin: 0;
  font-family: Impact, "Arial Black", "Courier New", monospace;
  font-size: clamp(4.8rem, 7.65vw, 7rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: uppercase;
}

.arcade-pixel-title span {
  display: block;
  width: fit-content;
  background:
    repeating-linear-gradient(180deg, currentColor 0 6px, rgba(255, 255, 255, 0.1) 6px 9px),
    currentColor;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 25px rgba(126, 255, 91, 0.38);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

.arcade-pixel-title span:first-child {
  color: var(--ref-green);
}

.arcade-pixel-title span:last-child {
  color: #f8fff8;
}

.arcade-hero--reference .arcade-hero__copy {
  justify-items: start;
  gap: 18px;
  text-align: left;
}

.arcade-hero--reference .arcade-lead {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  font-weight: 760;
}

.arcade-button--play {
  min-width: 246px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #92ff4c, #60e34c);
  color: #061207;
  box-shadow: 0 0 28px rgba(126, 255, 91, 0.34);
}

.arcade-button--play span {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  background: currentColor;
  font-size: 0;
  line-height: 0;
  -webkit-mask: var(--arcade-nav-icon) center / contain no-repeat;
  mask: var(--arcade-nav-icon) center / contain no-repeat;
}

.arcade-flash {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  font-weight: 760;
}

.arcade-flash span {
  color: var(--ref-yellow);
}

.arcade-top-card--reference {
  align-self: center;
  justify-self: end;
  width: min(100%, 640px);
  min-width: 0;
  border: 1px solid rgba(126, 255, 91, 0.5);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(8, 18, 21, 0.86), rgba(4, 8, 10, 0.9)),
    rgba(3, 7, 9, 0.86);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.arcade-top-card--reference .arcade-top-card__head {
  padding: 16px 24px 10px;
}

.arcade-top-card--reference h2 {
  color: var(--ref-green);
  font-size: clamp(1.24rem, 1.8vw, 1.58rem);
}

.arcade-top-card--reference .arcade-top-card__head a::after,
.arcade-board__link span,
.arcade-latest__head a span {
  margin-left: 7px;
  content: "›";
}

.arcade-podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  align-items: end;
  padding: 8px 24px 8px;
  text-align: center;
}

.arcade-podium__player {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.arcade-podium__rank {
  color: currentColor;
  font-family: "Courier New", monospace;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.arcade-podium__player--first .arcade-podium__rank {
  color: var(--ref-yellow);
  font-size: 2.82rem;
}

.arcade-podium__player--second .arcade-podium__rank {
  color: #7f8cff;
}

.arcade-podium__player--third .arcade-podium__rank {
  color: #ff8b24;
}

.arcade-podium__sprite,
.arcade-podium__trophy {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: currentColor;
  font-size: 1.75rem;
}

.arcade-podium__trophy {
  width: 64px;
  height: 64px;
  border: 0;
  color: var(--ref-yellow);
  font-size: 3.45rem;
}

.arcade-podium strong,
.arcade-podium em {
  min-width: 0;
  font-style: normal;
}

.arcade-podium em {
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 0.98rem;
}

.arcade-top-table {
  width: calc(100% - 48px);
  margin: 0 24px 12px;
  border-collapse: collapse;
  color: #ffffff;
  font-size: 0.88rem;
}

.arcade-top-table th,
.arcade-top-table td {
  height: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0 10px;
  text-align: left;
}

.arcade-top-table th {
  color: var(--ref-green);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.arcade-top-table th:last-child,
.arcade-top-table td:last-child,
.arcade-top-table th:nth-child(3),
.arcade-top-table td:nth-child(3) {
  text-align: right;
}

.arcade-top-table span {
  margin-right: 9px;
}

.is-cyan { color: var(--ref-cyan); }
.is-pink { color: var(--ref-pink); }
.is-green { color: var(--ref-green); }
.is-orange { color: #ff8b24; }
.is-blue { color: #1da5ff; }

.arcade-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: -1px clamp(22px, 4.2vw, 64px) 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(5, 12, 15, 0.76);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.arcade-stat-strip article {
  display: grid;
  min-height: 90px;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-content: center;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px clamp(16px, 2.2vw, 32px);
}

.arcade-stat-strip article:last-child {
  border-right: 0;
}

.arcade-stat-icon {
  grid-row: 1 / span 2;
  font-size: 2.2rem;
  filter: drop-shadow(0 0 12px currentColor);
}

.arcade-stat-icon--green { color: var(--ref-green); }
.arcade-stat-icon--cyan { color: var(--ref-cyan); }
.arcade-stat-icon--pink { color: var(--ref-pink); }
.arcade-stat-icon--yellow { color: var(--ref-yellow); }

.arcade-stat-strip strong {
  color: #ffffff;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1;
}

.arcade-stat-strip em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.arcade-reference .arcade-board--reference {
  padding: 6px clamp(22px, 4.2vw, 64px) 18px;
  background: transparent;
}

.arcade-board--reference .arcade-board__head {
  align-items: center;
  margin-bottom: 14px;
}

.arcade-board--reference .arcade-section-title,
.arcade-latest h2 {
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: clamp(1.32rem, 2vw, 1.62rem);
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-board--reference .arcade-section-title::before {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 8px;
  background: var(--ref-green);
  content: "";
}

.arcade-board--reference .arcade-section-title::after {
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-left: 10px;
  background: var(--ref-green);
  content: "";
}

.arcade-board--reference .arcade-board__head p,
.arcade-latest__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 720;
}

.arcade-board__link,
.arcade-latest__head a {
  color: rgba(255, 255, 255, 0.82);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.arcade-grid--reference {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 18px;
}

.arcade-reference .arcade-grid--reference .arcade-game-card {
  min-height: 272px;
  grid-template-rows: 132px auto auto 42px;
  gap: 8px;
  border: 2px solid rgba(var(--game-rgb), 0.72);
  border-radius: 10px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(var(--game-rgb), 0.14), rgba(2, 6, 8, 0.9)),
    rgba(3, 8, 10, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.arcade-grid--reference .arcade-game-card::before {
  background-size: 18px 18px;
  opacity: 0.34;
}

.arcade-grid--reference .arcade-game-card__media {
  aspect-ratio: auto;
  min-height: 0;
  border: 1px solid rgba(var(--game-rgb), 0.55);
  border-radius: 6px;
  background: #020606;
}

.arcade-grid--reference .arcade-game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-pos, center);
  transform: none;
}

.arcade-game-card__name {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.arcade-grid--reference .arcade-game-card h3 {
  margin: 0;
  color: var(--game-color);
  font-family: "Courier New", monospace;
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  font-weight: 950;
  line-height: 1;
}

.arcade-game-card__name span {
  border: 1px solid rgba(var(--game-rgb), 0.72);
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--game-color);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-game-card--space .arcade-game-card__name {
  grid-template-columns: 1fr;
  align-items: start;
}

.arcade-grid--reference .arcade-game-card--space h3 {
  font-size: clamp(1rem, 1.28vw, 1.22rem);
  line-height: 1.08;
}

.arcade-game-card--space .arcade-game-card__name span {
  width: fit-content;
}

.arcade-game-card__score {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  color: rgba(255, 255, 255, 0.78);
}

.arcade-game-card__score small {
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.arcade-game-card__score strong {
  color: #ffffff;
  font-family: "Courier New", monospace;
  white-space: nowrap;
}

.arcade-grid--reference .arcade-game-card button,
.arcade-grid--reference .arcade-game-card__play {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--game-color), rgba(var(--game-rgb), 0.82));
  color: #041006;
  font-family: "Courier New", monospace;
  font-size: 0.94rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.arcade-grid--reference .arcade-game-card button span,
.arcade-grid--reference .arcade-game-card__play span {
  margin-right: 8px;
}

.arcade-grid--reference .arcade-game-card--pokerogue .arcade-game-card__media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 218, 74, 0.22), transparent 46%),
    linear-gradient(145deg, rgba(218, 56, 56, 0.34), rgba(4, 8, 18, 0.9));
}

.arcade-grid--reference .arcade-game-card--pokerogue .arcade-game-card__media img {
  box-sizing: border-box;
  object-fit: contain;
  padding: 18px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.arcade-grid--reference .arcade-game-card--pokerogue h3 {
  font-size: clamp(1rem, 1.28vw, 1.22rem);
}

.arcade-latest {
  margin: 0 clamp(22px, 4.2vw, 64px) clamp(36px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  background: rgba(4, 9, 12, 0.72);
}

.arcade-latest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.arcade-latest h2 {
  margin: 0;
}

.arcade-latest__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.arcade-latest__grid article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.arcade-latest__grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-latest__grid strong {
  color: var(--ref-green);
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
}

.arcade-latest__grid em {
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 0.82rem;
}

body.arcade-game-page .arcade-game-hero {
  background:
    linear-gradient(90deg, rgba(1, 4, 6, 0.86), rgba(1, 4, 6, 0.42), rgba(1, 4, 6, 0.9)),
    url("/assets/arcade/images/generated/arcade-hall-neon.png") center / cover no-repeat;
}

body.arcade-game-page .arcade-game-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(126, 255, 91, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 255, 91, 0.05) 1px, transparent 1px);
  background-size: 31px 31px;
  content: "";
}

.pokerogue-page .arcade-shell {
  width: min(100%, 1560px);
}

.pokerogue-hero {
  grid-template-columns: minmax(500px, 0.72fr) minmax(500px, 1fr);
  min-height: clamp(520px, 68svh, 720px);
}

.arcade-game-hero--neon {
  grid-template-columns: minmax(500px, 0.72fr) minmax(500px, 1fr);
}

@media (max-width: 1180px) {
  .pokerogue-hero,
  .arcade-game-hero--neon,
  .arcade-game-hero--sfa,
  .arcade-game-hero--dragon {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pokerogue-note {
  max-width: 42rem;
  margin: 0;
  border: 1px solid rgba(255, 218, 74, 0.34);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 218, 74, 0.1);
  color: rgba(255, 249, 220, 0.9);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.45;
}

.pokerogue-machine__screen {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 218, 74, 0.2), transparent 48%),
    linear-gradient(145deg, rgba(218, 56, 56, 0.36), rgba(2, 6, 14, 0.95));
}

.pokerogue-machine__screen img {
  width: min(74%, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.46));
}

.pokerogue-launch {
  display: grid;
  gap: 18px;
  margin: clamp(24px, 4vw, 54px) clamp(16px, 4.2vw, 64px);
  border: 1px solid rgba(255, 218, 74, 0.22);
  border-radius: 10px;
  padding: clamp(16px, 2.6vw, 28px);
  background:
    linear-gradient(135deg, rgba(218, 56, 56, 0.12), rgba(255, 218, 74, 0.04)),
    rgba(3, 7, 12, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 28px 90px rgba(0, 0, 0, 0.28);
}

.pokerogue-launch__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pokerogue-launch__head h2 {
  margin: 0;
  color: #ffda4a;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.pokerogue-launch__head p {
  max-width: 46rem;
  margin: 8px 0 0;
  color: rgba(246, 247, 242, 0.78);
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.45;
}

.pokerogue-launch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pokerogue-frame-shell {
  position: relative;
  display: grid;
  width: min(100%, 1440px);
  aspect-ratio: 16 / 9;
  min-height: clamp(520px, 70svh, 860px);
  justify-self: center;
  border: 2px solid rgba(255, 218, 74, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 218, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 218, 74, 0.04) 1px, transparent 1px),
    #03060b;
  background-size: 28px 28px;
  overflow: hidden;
}

.pokerogue-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pokerogue-launch.is-playing .pokerogue-frame {
  opacity: 1;
}

.pokerogue-launch.is-loading .pokerogue-start-panel span,
.pokerogue-launch.is-warming .pokerogue-start-panel span {
  color: rgba(255, 249, 220, 0.86);
}

.pokerogue-start-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 218, 74, 0.16), transparent 34%),
    rgba(2, 5, 10, 0.92);
  color: #fff;
  text-align: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.pokerogue-start-panel img {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.46));
}

.pokerogue-start-panel strong {
  color: #ffda4a;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.pokerogue-start-panel span {
  color: rgba(246, 247, 242, 0.72);
  font-weight: 800;
}

.pokerogue-start-panel::after {
  width: min(220px, 58vw);
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 218, 74, 0.96), transparent),
    rgba(255, 255, 255, 0.12);
  background-size: 48% 100%, 100% 100%;
  background-position: -60% 0, 0 0;
  background-repeat: no-repeat;
  content: "";
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pokerogue-launch.is-loading .pokerogue-start-panel::after,
.pokerogue-launch.is-warming:not(.is-playing) .pokerogue-start-panel::after {
  animation: pokerogue-load-sweep 0.95s ease-in-out infinite;
  opacity: 1;
}

.pokerogue-launch.is-playing .pokerogue-start-panel {
  visibility: hidden;
  opacity: 0;
}

@keyframes pokerogue-load-sweep {
  from {
    background-position: -60% 0, 0 0;
  }

  to {
    background-position: 160% 0, 0 0;
  }
}

.pokerogue-license-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 clamp(16px, 4.2vw, 64px) clamp(34px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(4, 9, 12, 0.72);
  color: rgba(246, 247, 242, 0.68);
}

.pokerogue-license-note p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.45;
}

.pokerogue-license-note a {
  color: #ffda4a;
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .arcade-hero--reference {
    grid-template-columns: 1fr;
  }

  .arcade-hub .arcade-top-card--reference {
    justify-self: start;
    width: min(100%, 650px);
  }

  .arcade-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arcade-grid--reference,
  .arcade-latest__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .arcade-nav--reference,
  body.arcade-game-page .arcade-nav {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
  }

  .arcade-user-chip {
    justify-self: center;
  }

  .arcade-reference .arcade-nav__links,
  body.arcade-game-page .arcade-nav__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: center;
    width: 100%;
    overflow: visible;
  }

  .arcade-reference .arcade-nav__links a,
  body.arcade-game-page .arcade-nav__links a {
    min-height: 44px;
    padding: 0 14px;
  }

  body.arcade-game-page .arcade-game-hero {
    justify-items: center;
    padding: 34px 16px 28px;
    text-align: center;
  }

  body.arcade-game-page .arcade-game-copy {
    justify-items: center;
    width: min(100%, 620px);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  body.arcade-game-page .arcade-game-copy > * {
    width: min(100%, 100%);
  }

  .pokerogue-page .arcade-game-copy h1 {
    font-size: clamp(3rem, 13.2vw, 3.55rem);
  }

  body.arcade-game-page .arcade-back-link {
    justify-self: center;
  }

  body.arcade-game-page .arcade-game-copy h1 {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  body[data-arcade-game="street-fighter-alpha"] .arcade-game-copy h1,
  body[data-arcade-game="dragon-ball-arena"] .arcade-game-copy h1 {
    max-width: min(100%, 14ch);
    font-size: clamp(2.55rem, 10.6vw, 3.25rem);
  }

  body.arcade-game-page .arcade-game-copy h1::after {
    margin-right: auto;
    margin-left: auto;
  }

  body.arcade-game-page .arcade-lead {
    max-width: 32rem;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  body.arcade-game-page .arcade-facts {
    width: min(100%, 360px);
    margin-right: auto;
    margin-left: auto;
  }

  body.arcade-game-page .arcade-actions {
    justify-content: center;
    width: 100%;
  }

  body.arcade-game-page .arcade-credit-line {
    text-align: center;
  }

  body.arcade-game-page .arcade-machine {
    justify-self: center;
    width: min(100%, 760px);
    margin-right: auto;
    margin-left: auto;
  }

  body.arcade-game-page .arcade-scoreboard,
  body.arcade-game-page .arcade-assist-panel {
    text-align: center;
  }

  body.arcade-game-page .arcade-scoreboard__head {
    justify-content: center;
  }

  body.arcade-game-page .arcade-scoreboard__head h2 {
    text-align: center;
  }

  body.arcade-game-page .arcade-scoreboard th,
  body.arcade-game-page .arcade-scoreboard td {
    text-align: center;
  }

  body.arcade-game-page .arcade-assist-panel {
    justify-items: center;
  }

  body.arcade-game-page .arcade-assist-panel > div,
  body.arcade-game-page .arcade-assist-panel p {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .arcade-hero--reference {
    justify-items: center;
    padding: 34px 16px 20px;
    text-align: center;
  }

  .arcade-hero__rail {
    display: none;
  }

  .arcade-pixel-title {
    justify-items: center;
    width: 100%;
    font-size: clamp(3.15rem, 15.5vw, 4.55rem);
    text-align: center;
  }

  .arcade-pixel-title span {
    width: auto;
    max-width: 100%;
    text-align: center;
  }

  .arcade-hero--reference .arcade-hero__copy {
    justify-items: center;
    width: 100%;
    text-align: center;
  }

  .arcade-hero--reference .arcade-lead {
    max-width: 19rem;
    text-align: center;
  }

  .arcade-button--play {
    justify-self: center;
    min-width: min(246px, 100%);
  }

  .arcade-flash {
    justify-content: center;
    max-width: 20rem;
    text-align: center;
  }

  .arcade-hub .arcade-top-card--reference {
    justify-self: center;
  }

  .arcade-podium {
    grid-template-columns: 1fr;
  }

  .arcade-stat-strip,
  .arcade-grid--reference,
  .arcade-latest__grid {
    grid-template-columns: 1fr;
  }

  .arcade-stat-strip article {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 7px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
  }

  .arcade-stat-icon {
    grid-row: auto;
  }

  .arcade-board--reference .arcade-board__head,
  .arcade-latest__head {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .arcade-board--reference .arcade-board__head > div,
  .arcade-latest__head > div {
    width: 100%;
  }

  .arcade-board--reference .arcade-section-title,
  .arcade-latest h2 {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .arcade-board--reference .arcade-board__head p,
  .arcade-latest__head p {
    max-width: 21rem;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .arcade-board__link,
  .arcade-latest__head a {
    align-self: center;
    text-align: center;
  }

  .arcade-game-card__name {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .arcade-game-card__score {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }

  .arcade-latest {
    margin-right: 16px;
    margin-left: 16px;
  }

  .arcade-latest__grid article {
    justify-items: center;
    text-align: center;
  }

  .pokerogue-launch__head,
  .pokerogue-license-note {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .pokerogue-launch__actions {
    justify-content: center;
  }

  .pokerogue-frame-shell {
    width: 100%;
    min-height: 0;
    max-height: none;
  }

  .pokerogue-license-note a {
    white-space: normal;
  }

}

@media (max-width: 680px) {
  body.arcade-game-page .arcade-scoreboard {
    overflow: visible;
  }

  body.arcade-game-page .arcade-scoreboard table,
  body.arcade-game-page .arcade-scoreboard thead,
  body.arcade-game-page .arcade-scoreboard tbody,
  body.arcade-game-page .arcade-scoreboard tr,
  body.arcade-game-page .arcade-scoreboard th,
  body.arcade-game-page .arcade-scoreboard td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  body.arcade-game-page .arcade-scoreboard thead {
    display: none;
  }

  body.arcade-game-page .arcade-scoreboard tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.arcade-game-page .arcade-scoreboard tr:last-child {
    border-bottom: 0;
  }

  body.arcade-game-page .arcade-scoreboard td {
    display: grid;
    grid-template-columns: minmax(72px, 0.36fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-bottom: 0;
    padding: 0;
    text-align: left;
  }

  body.arcade-game-page .arcade-scoreboard td::before {
    color: rgba(246, 247, 242, 0.54);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    content: "";
  }

  body.arcade-game-page .arcade-scoreboard td:nth-child(1)::before {
    content: "Rang";
  }

  body.arcade-game-page .arcade-scoreboard td:nth-child(2)::before {
    content: "Joueur";
  }

  body.arcade-game-page .arcade-scoreboard td:nth-child(3)::before {
    content: "Score";
  }

  body.arcade-game-page .arcade-scoreboard td:nth-child(4)::before {
    content: "Mode";
  }

  .pokerogue-frame-shell {
    aspect-ratio: auto;
    height: clamp(360px, 62svh, 560px);
    min-height: 360px;
  }
}
