/* ═══════════════════════════════════════════════════════════════
   PIXEL PALACE — 90s arcade portal (youxi--1--4)
   NES palette, chunky pixels, cartridges, CRTs, leaderboards.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gray: #E8E8E4;
  --gray-2: #DBDBD4;
  --ink: #141414;
  --red: #E04038;
  --blue: #3C6FE0;
  --yellow: #F8D838;
  --teal: #38B8A8;
  --cream: #FCF6E0;
  --mono: 'Courier New', Courier, monospace;
  --sec-gap: 34px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  background: var(--gray);
  background-image:
    linear-gradient(rgba(20, 20, 20, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, .045) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.wrap { max-width: 540px; margin: 0 auto; padding: 0 14px; }
/* .sec { margin-top: var(--sec-gap); min-width: 0; } */

/* pixel-corner cut (stepped corner) */
.px, .px-cut { border: 4px solid var(--ink); }
.px-cut { clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)); border: none; box-shadow: inset 0 0 0 4px var(--ink); }

/* section header — arcade marquee label */
.sh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.sh-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
}
.sh-tag.t-red { background: var(--red); color: var(--cream); }
.sh-tag.t-blue { background: var(--blue); color: var(--cream); }
.sh-tag.t-teal { background: var(--teal); color: var(--ink); }
.sh-tag.t-yellow { background: var(--yellow); color: var(--ink); }
.sh-line { flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); }
.sh-cnt { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink); border: 2.5px solid var(--ink); padding: 2px 8px; }

/* ═══ 1) MARQUEE header ════════════════════════════════════════════ */
.marquee {
  position: relative;
  z-index: 50;
  background: var(--ink);
  padding: 9px 0;
  border-bottom: 4px solid var(--red);
}
.marquee::before, .marquee::after {
  content: '';
  display: block;
  height: 5px;
  background:
    radial-gradient(circle 3px, var(--yellow) 100%, transparent 0) 0 0 / 14px 5px repeat-x;
  opacity: .9;
}
.marquee::before { margin-bottom: 8px; }
.marquee::after { margin-top: 8px; }
.marquee-in { display: flex; align-items: center; gap: 10px; }
.marquee-logo {
  flex: none;
  width: 38px; height: 38px;
  background: var(--yellow);
  border: 3px solid var(--cream);
  box-shadow: inset -5px -5px 0 rgba(20, 20, 20, .22);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.marquee-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.marquee-name::after { content: '_'; color: var(--yellow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.marquee-search {
  margin-left: auto;
  flex: none;
  width: 36px; height: 36px;
  background: var(--red);
  border: 3px solid var(--cream);
  color: var(--cream);
  display: grid;
  place-items: center;
}
.marquee-search:active { transform: translateY(2px); }

/* ═══ 2) TICKER ════════════════════════════════════════════════════ */
.ticker {
  background: var(--blue);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 5px 0;
}
.ticker span {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  animation: tick 18s linear infinite;
  padding-left: 100%;
}
@keyframes tick { to { transform: translateX(-100%); } }

/* ═══ 3) NAV — pixel tabs ══════════════════════════════════════════ */
.pixnav { margin-top: 14px; }
.pixnav-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.pixnav-row::-webkit-scrollbar { display: none; }
.ptab {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 7px 12px 6px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s;
}
.ptab:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ptab.on { background: var(--ink); color: var(--yellow); }

/* search terminal */
.term {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.term-input {
  flex: 1;
  min-width: 0;
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--gray);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 13px;
  outline: none;
}
.term-input::placeholder { color: rgba(56, 184, 168, .55); }
.term-go {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--yellow);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px 18px;
  transition: transform .08s;
}
.term-go:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* loading — pixel bar */
.loading-full {
  position: fixed; inset: 0;
  background: var(--gray);
  display: grid; place-items: center;
  z-index: 90;
}
.loading-box { text-align: center; }
.loading-bar {
  width: 190px;
  height: 22px;
  border: 4px solid var(--ink);
  background: var(--cream);
  margin: 0 auto 12px;
  padding: 3px;
  display: flex;
  gap: 3px;
}
.loading-bar i {
  flex: 1;
  background: var(--teal);
  animation: fill .9s steps(5) infinite;
}
.loading-bar i:nth-child(2) { animation-delay: .12s; background: var(--blue); }
.loading-bar i:nth-child(3) { animation-delay: .24s; background: var(--red); }
.loading-bar i:nth-child(4) { animation-delay: .36s; background: var(--yellow); }
@keyframes fill { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.loading-txt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ═══ 4) CRT hero ══════════════════════════════════════════════════ */
.crt {
  display: block;
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(20, 20, 20, .3);
  padding: 14px 14px 12px;
}
.crt-screen {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-2);
  overflow: hidden;
  border: 3px solid #3A3A3A;
}
.crt-screen img { width: 100%; height: 100%; object-fit: cover; }
.crt-screen::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(20, 20, 20, .16) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.crt-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  padding: 2px 8px;
}
.crt-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
}
.crt-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crt-ch {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 2px 7px;
}
.crt-foot {
  display: flex;
  gap: 10px;
  margin-top: 11px;
}
.crt-desc {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #B8B8B0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.crt-play {
  flex: none;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--cream);
  border: 3px solid var(--cream);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .5);
  padding: 10px 18px;
}
.crt-play:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .5); }

/* ═══ 5) CARTRIDGE SHELF ═══════════════════════════════════════════ */
.shelf { position: relative; padding-bottom: 14px; }
.carts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cart {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--gray-2);
  border: 3.5px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(20, 20, 20, .22);
  clip-path: polygon(14% 0, 86% 0, 86% 5%, 100% 5%, 100% 100%, 0 100%, 0 5%, 14% 5%);
  padding: 10px 6px 8px;
  transition: transform .1s;
}
.cart:active { transform: translateY(3px); }
.cart-label {
  background: var(--cream);
  border: 2.5px solid var(--ink);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cart-label img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1.5px solid var(--ink); }
.cart-nm {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-lab {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  padding: 1px 4px;
}
.shelf-board {
  height: 16px;
  margin-top: 12px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 26px, #3A3A3A 26px 52px);
  border: 4px solid var(--ink);
  box-shadow: 0 5px 0 rgba(20, 20, 20, .25);
}

/* ═══ 6) LEADERBOARD ═══════════════════════════════════════════════ */
.board {
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(20, 20, 20, .3);
  padding: 4px;
}
.board-hd {
  display: grid;
  grid-template-columns: 44px 1fr 52px;
  gap: 8px;
  background: var(--yellow);
  border: 3px solid #3A3A3A;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.board-hd span:nth-child(2) { text-align: left; }
.board-hd span:nth-child(3) { text-align: right; }
.board-row {
  display: grid;
  grid-template-columns: 44px 1fr 52px;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 2px solid #2E2E2E;
  min-width: 0;
}
.board-row:last-child { border-bottom: none; }
.board-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
  text-align: center;
}
.board-row.r1 .board-rank { color: var(--yellow); }
.board-row.r2 .board-rank { color: #C8C8C0; }
.board-row.r3 .board-rank { color: #C88A50; }
.board-mid { display: flex; align-items: center; gap: 9px; min-width: 0; }
.board-mid img {
  width: 34px; height: 34px;
  flex: none;
  border: 2.5px solid var(--cream);
  object-fit: cover;
}
.board-nm {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.board-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-align: right;
}

/* ═══ 7) D-PAD select ══════════════════════════════════════════════ */
.dpad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  justify-items: center;
}
.dpad-slot { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dpad-item {
  width: 100%;
  background: var(--cream);
  border: 3.5px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(20, 20, 20, .22);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dpad-item img { width: 44px; height: 44px; flex: none; border: 2.5px solid var(--ink); object-fit: cover; }
.dpad-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dpad-item b {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dpad-item small { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: #5A5A52; }
.dpad-core {
  width: 96px; height: 96px;
  background: var(--ink);
  position: relative;
  box-shadow: inset -6px -6px 0 rgba(255, 255, 255, .08), 4px 4px 0 rgba(20, 20, 20, .3);
}
.dpad-core::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  background: var(--red);
  border: 3px solid #3A3A3A;
}
.dpad-core::after {
  content: 'SELECT';
  position: absolute;
  left: 50%; bottom: -22px;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ink);
}

/* ═══ 8) BADGES — achievement wall ═════════════════════════════════ */
.badge-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.badge { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.badge-rib {
  width: 22px; height: 10px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}
.badge:nth-child(even) .badge-rib { background: var(--blue); }
.badge-medal {
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  background: var(--yellow);
  display: grid;
  place-items: center;
  padding: 9px;
  box-shadow: 4px 4px 0 rgba(20, 20, 20, .22);
  transition: transform .1s;
}
.badge:hover .badge-medal { transform: translateY(-3px); }
.badge-medal img { width: 100%; height: 100%; border: 2.5px solid var(--ink); object-fit: cover; }
.badge-nm {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 9) BOSS RUSH — VS banner ═════════════════════════════════════ */
.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.vs-side {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(20, 20, 20, .22);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.vs-side img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); }
.vs-nm {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-lab {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--ink);
  padding: 1px 6px;
}
.vs-side.a .vs-lab { background: var(--red); color: var(--cream); }
.vs-side.b .vs-lab { background: var(--blue); color: var(--cream); }
.vs-mid {
  align-self: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  background: var(--ink);
  border: 3px solid var(--ink);
  padding: 10px 8px;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 rgba(20, 20, 20, .3);
}

/* ═══ 10) TV WALL ══════════════════════════════════════════════════ */
.tvwall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tv {
  background: var(--ink);
  border: 3.5px solid var(--ink);
  padding: 6px;
  min-width: 0;
  box-shadow: 4px 4px 0 rgba(20, 20, 20, .2);
}
.tv-screen {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-2);
  overflow: hidden;
  border: 2.5px solid #3A3A3A;
}
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-screen::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(20, 20, 20, .18) 0 2px, transparent 2px 4px);
}
.tv-nm {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 11) COIN LANE ════════════════════════════════════════════════ */
.coinlane {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 4px 18px;
  scrollbar-width: none;
}
.coinlane::-webkit-scrollbar { display: none; }
.coin {
  flex: none;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.coin-disc {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3.5px solid var(--ink);
  box-shadow: inset 0 0 0 4px #E8C028, inset -5px -5px 0 rgba(20, 20, 20, .15);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .1s;
}
.coin:hover .coin-disc { transform: translateY(-3px); }
.coin-disc img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.coin-nm {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 12) CHEAT LIST ═══════════════════════════════════════════════ */
.cheats { display: flex; flex-direction: column; gap: 9px; }
.cheat {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--cream);
  border: 3.5px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(20, 20, 20, .18);
  padding: 8px 11px;
  min-width: 0;
}
.cheat-code {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--teal);
  background: var(--ink);
  padding: 6px 8px;
  border: 2px solid #3A3A3A;
  white-space: nowrap;
}
.cheat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cheat-nm {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cheat-desc {
  font-size: 10px;
  color: #5A5A52;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ═══ 13) STACK — catalog list ═════════════════════════════════════ */
.stack { display: flex; flex-direction: column; gap: 11px; }
.slot {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--cream);
  border: 3.5px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(20, 20, 20, .2);
  padding: 8px 11px;
  min-width: 0;
  position: relative;
}
.slot-no {
  position: absolute;
  top: -9px; right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--ink);
  color: var(--teal);
  border: 2px solid var(--ink);
  padding: 1px 6px;
  z-index: 2;
}
.slot-img {
  width: 54px; height: 54px;
  flex: none;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: var(--gray-2);
}
.slot-img img { width: 100%; height: 100%; object-fit: cover; }
.slot-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.slot-nm {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.slot-desc {
  font-size: 10px;
  color: #5A5A52;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.slot-tag {
  align-self: flex-start;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  border: 2px solid var(--ink);
  padding: 1px 6px;
}
.stg-red { background: var(--red); }
.stg-blue { background: var(--blue); }
.stg-teal { background: var(--teal); color: var(--ink); }
.stg-ink { background: var(--ink); color: var(--yellow); }
.stg-yellow { background: var(--yellow); color: var(--ink); }
.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.more-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--yellow);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 11px 26px;
}
.more-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

/* ═══ 14) filter view ═══════════════════════════════════════════════ */
.filter-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.filter-back {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border: 3.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(20, 20, 20, .3);
  padding: 8px 13px;
}
.filter-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.filter-cnt {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 3px 9px;
}
.empty-arcade { text-align: center; padding: 48px 20px; }
.empty-arcade p { font-size: 40px; margin-bottom: 10px; }
.empty-arcade span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5A5A52; }

/* ═══ 15) footer ═══════════════════════════════════════════════════ */
.gameover {
  margin-top: 46px;
  background: var(--ink);
  border-top: 4px solid var(--teal);
  padding: 26px 0 30px;
  text-align: center;
  position: relative;
}
.gameover::before {
  content: '';
  display: block;
  height: 5px;
  margin-bottom: 20px;
  background: radial-gradient(circle 3px, var(--teal) 100%, transparent 0) 0 0 / 14px 5px repeat-x;
}
.gameover-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
}
.gameover-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
}
.gameover-links a {
  color: var(--cream);
  border: 2.5px dashed rgba(252, 246, 224, .5);
  padding: 6px 15px;
}
.gameover-fine {
  margin-top: 14px;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6E6E66;
}

/* misc */
.totop-btn {
  position: fixed;
  right: 14px; bottom: 18px;
  z-index: 60;
  width: 46px; height: 46px;
  background: var(--red);
  color: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.totop-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker span, .loading-bar i, .marquee-name::after { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 379px) {
  .carts { grid-template-columns: repeat(2, 1fr); }
  .badge-wall, .tvwall { grid-template-columns: repeat(2, 1fr); }
  .dpad-item img { width: 38px; height: 38px; }
  .vs-mid { font-size: 16px; padding: 8px 5px; }
}
