/* Shared XMB (PS3 / PSP) */
.xmb-shell {
  --xmb-row: 5.5rem;
  position: relative;
  min-height: 100vh;
  height: 100%;
  overflow: hidden;
  color: #f4f7fb;
  font-family: "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

.xmb-shell--ps3 {
  background: radial-gradient(ellipse at 30% 20%, #1a3a6b 0%, #0a1424 45%, #05080f 100%);
}

.xmb-shell--psp {
  background: linear-gradient(160deg, #1b2430 0%, #0d1218 55%, #1a2030 100%);
}

.xmb-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.xmb-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 45%;
  border-radius: 45%;
  filter: blur(2px);
  opacity: 0.35;
  animation: xmb-drift 14s ease-in-out infinite;
}

.xmb-waves--ps3 .xmb-wave-a {
  bottom: -10%;
  background: linear-gradient(90deg, #3aa0ff55, #7ec8ff33, transparent);
  animation-duration: 16s;
}
.xmb-waves--ps3 .xmb-wave-b {
  bottom: 5%;
  background: linear-gradient(90deg, transparent, #5eb6ff44, #2b6fbb33);
  animation-duration: 22s;
  animation-direction: reverse;
}
.xmb-waves--ps3 .xmb-wave-c {
  bottom: 18%;
  background: linear-gradient(90deg, #9ad4ff22, transparent, #4a9fff33);
  animation-duration: 19s;
}

.xmb-waves--psp .xmb-wave-a {
  bottom: -5%;
  background: linear-gradient(90deg, #6ec6ff44, #b8e0ff22, transparent);
}
.xmb-waves--psp .xmb-wave-b {
  bottom: 12%;
  background: linear-gradient(90deg, transparent, #89d0ff33, #4aa3d844);
  animation-direction: reverse;
}
.xmb-waves--psp .xmb-wave-c {
  bottom: 24%;
  opacity: 0.22;
  background: linear-gradient(90deg, #cfefff33, transparent);
}

@keyframes xmb-drift {
  0%,
  100% {
    transform: translateX(-4%) rotate(-2deg);
  }
  50% {
    transform: translateX(4%) rotate(2deg);
  }
}

.xmb-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.xmb-back,
.cart-back,
.hh-back,
.arcade-head a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-decoration: none;
}

.xmb-back:hover {
  color: #fff;
}

.xmb-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.xmb-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.xmb-shell--psp .xmb-brand-mark {
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
}

.xmb-brand-title {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.xmb-clock {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  font-size: 0.95rem;
}

.xmb-cross {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
  padding: 1.5rem 1rem 3.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .xmb-cross {
    grid-template-columns: 1fr;
    padding-top: 0.5rem;
  }
}

.xmb-cats {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem;
}

@media (min-width: 801px) {
  .xmb-cats {
    flex-direction: column;
    align-items: flex-end;
    padding-right: 1.5rem;
  }
}

.xmb-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 4.5rem;
  padding: 0.55rem 0.4rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.xmb-cat.is-active {
  color: #fff;
  transform: scale(1.08);
  text-shadow: 0 0 18px rgba(140, 200, 255, 0.65);
}

.xmb-cat-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.xmb-cat-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.xmb-col {
  position: relative;
  height: min(calc(var(--xmb-row) * 6.5), 70vh);
  max-height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.xmb-shell--psp .xmb-col {
  --xmb-row: 4.6rem;
}

.xmb-item {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: calc(var(--xmb-row) - 0.55rem);
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.xmb-item.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
  box-shadow: inset 3px 0 0 #fff;
}

.xmb-item-art {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.35rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.xmb-shell--psp .xmb-item-art {
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
}

.xmb-item-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xmb-item-fallback {
  opacity: 0.5;
}

.xmb-item-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.xmb-item-hint {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  opacity: 0.7;
}

.xmb-hint {
  position: absolute;
  bottom: 0.85rem;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.55;
}

/* PSP device frame; as home UI it goes edge-to-edge */
.psp-device {
  min-height: 100vh;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  place-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: radial-gradient(ellipse at center, #2a3340, #0b0e12 70%);
  box-sizing: border-box;
}

.psp-device-frame {
  width: min(1100px, 100%);
  height: 100%;
  min-height: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 10px solid #3a4452;
  box-shadow:
    inset 0 0 0 2px #6a7585,
    0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.psp-device-frame .xmb-shell {
  min-height: 0 !important;
  height: 100% !important;
  flex: 1;
}

.cabinet-home-stage .psp-device {
  padding: 0;
  gap: 0;
  grid-template-rows: 1fr;
}

.cabinet-home-stage .psp-device-frame {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border-width: 0;
  box-shadow: none;
}

.cabinet-home-stage .psp-shoulder,
.cabinet-home-stage .psp-controls,
.cabinet-home-stage .psp-device-label {
  display: none;
}

.psp-device-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Cartridge shelves */
.cart-shell {
  min-height: 100vh;
  height: 100%;
  padding: 1.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.cart-bezel {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  padding: 1.5rem;
  border: 4px solid rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.cart-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cart-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.cart-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 1rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cabinet-home-stage .cart-shell {
  padding: 1rem 1rem 4rem;
}

.cabinet-home-stage .cart-bezel {
  max-width: none;
}

.cart-slot {
  text-decoration: none;
  color: inherit;
}

.cart-slot.is-focus .cart-label {
  outline: 3px solid currentColor;
  transform: translateY(-4px);
  transition: transform 0.15s ease;
}

.cart-label {
  aspect-ratio: 0.72;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.cart-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-name {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  text-align: center;
}

.cart-empty,
.hh-empty,
.arcade-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.cart-cta,
.hh-empty a,
.arcade-empty a {
  display: inline-block;
  margin-top: 1rem;
  color: inherit;
}

.cart-shell--nes {
  background: #1a1a1a;
  color: #f2f2f2;
}
.cart-shell--nes .cart-bezel {
  background: linear-gradient(180deg, #d9d9d9, #bdbdbd);
  color: #111;
  border-color: #555;
  box-shadow: inset 0 0 0 8px #222;
}
.cart-shell--nes .cart-label {
  background: #c0392b;
  color: #fff;
}

.cart-shell--snes {
  background: #2b2140;
  color: #f3e9ff;
}
.cart-shell--snes .cart-bezel {
  background: linear-gradient(160deg, #6b4e9b, #3d2a5c);
  border-color: #c4a8e8;
  border-radius: 1rem;
}
.cart-shell--snes .cart-label {
  border-radius: 0.4rem;
  background: #4a3270;
}

.cart-shell--n64 {
  background: #0d1f14;
  color: #e8ffe8;
}
.cart-shell--n64 .cart-bezel {
  background: linear-gradient(180deg, #1b5e3b, #0f3d26);
  border-color: #7dffb3;
  border-radius: 0.25rem;
}
.cart-shell--n64 .cart-label {
  background: #143d28;
  border-color: #2ecc71;
}

.cart-shell--genesis,
.cart-shell--sms,
.cart-shell--saturn,
.cart-shell--segacd {
  background: #061018;
  color: #dff7ff;
}
.cart-shell--genesis .cart-bezel,
.cart-shell--sms .cart-bezel,
.cart-shell--saturn .cart-bezel,
.cart-shell--segacd .cart-bezel {
  background: linear-gradient(180deg, #0b2a3d, #071822);
  border-color: #1abc9c;
  box-shadow: 0 0 40px rgba(26, 188, 156, 0.15);
}
.cart-shell--genesis .cart-label {
  background: #0e3a4f;
}

.cart-shell--atari {
  background: #2a1c12;
  color: #f6e7cf;
}
.cart-shell--atari .cart-bezel {
  background: linear-gradient(180deg, #6b4226, #3e2615);
  border-color: #c89b6d;
  box-shadow: inset 0 10px 0 #8a5a35;
}

.cart-shell--vb {
  background: #050000;
  color: #ff2a2a;
}
.cart-shell--vb .cart-bezel {
  background: #120000;
  border-color: #ff2a2a;
  box-shadow: 0 0 30px rgba(255, 42, 42, 0.25);
}

/* Handhelds */
.hh-shell {
  min-height: 100vh;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.hh-body {
  width: min(480px, 100%);
  max-height: 100%;
  border-radius: 1.4rem;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

.cabinet-home-stage .hh-shell {
  padding: 1rem 1rem 4rem;
  place-items: stretch center;
}

.cabinet-home-stage .hh-body {
  width: min(560px, 100%);
  height: 100%;
  max-height: none;
}

.hh-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.hh-brand {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hh-screen {
  border-radius: 0.4rem;
  padding: 0.75rem;
  flex: 1;
  min-height: 200px;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hh-dual {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hh-screen-top {
  flex: 0 0 auto;
  max-height: 40%;
  overflow: hidden;
}

.hh-screen-bot {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.hh-screen-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hh-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.hh-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.hh-row:hover {
  border-color: currentColor;
}

.hh-thumb {
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.hh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
}

.hh-dpad {
  width: 3rem;
  height: 3rem;
  background:
    linear-gradient(#222, #222) center/34% 100% no-repeat,
    linear-gradient(#222, #222) center/100% 34% no-repeat;
  border-radius: 0.2rem;
  opacity: 0.7;
}

.hh-btns {
  display: flex;
  gap: 0.55rem;
}

.hh-btns span {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #222;
  opacity: 0.7;
}

.hh-shell--gb {
  background: #2f3530;
}
.hh-shell--gb .hh-body {
  background: #9aa38b;
  color: #1d2418;
}
.hh-shell--gb .hh-screen {
  background: #8b9a6b;
  box-shadow: inset 0 0 0 3px #5f6a48;
}

.hh-shell--gbc {
  background: #1a1520;
}
.hh-shell--gbc .hh-body {
  background: linear-gradient(160deg, #f0b45a, #d35400);
  color: #1a1208;
}
.hh-shell--gbc .hh-screen {
  background: #101820;
  color: #d7ffe8;
}

.hh-shell--gba {
  background: #0b1220;
}
.hh-shell--gba .hh-body {
  background: linear-gradient(180deg, #4a6fa5, #2c4066);
  color: #eaf2ff;
  border-radius: 2rem 2rem 1.2rem 1.2rem;
}
.hh-shell--gba .hh-screen {
  background: #0e1a14;
  color: #b8f0c8;
  box-shadow: inset 0 0 0 2px #1a2e24;
}

.hh-shell--nds {
  background: #101820;
}
.hh-shell--nds .hh-body {
  background: #dfe6ee;
  color: #1a222c;
  border-radius: 0.6rem;
  width: min(420px, 100%);
}
.hh-shell--nds .hh-screen-top,
.hh-shell--nds .hh-screen-bot {
  background: #0d1218;
  color: #e8eef5;
  border-radius: 0.25rem;
  padding: 0.65rem;
}
.hh-shell--nds .hh-screen-top {
  min-height: 140px;
}
.hh-screen-sub {
  margin: 0.35rem 0 0;
  opacity: 0.7;
  font-size: 0.85rem;
}

.hh-shell--gg {
  background: #111;
}
.hh-shell--gg .hh-body {
  background: #222;
  color: #eee;
  border: 3px solid #444;
}
.hh-shell--gg .hh-screen {
  background: #1a3328;
  color: #c8ffe0;
}

/* Arcade */
.arcade-shell {
  min-height: 100vh;
  height: 100%;
  background: #12080a;
  color: #ffe8c8;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.arcade-marquee {
  text-align: center;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.35em;
  color: #ffcf5a;
  text-shadow: 0 0 20px #ff8a00;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.arcade-cab {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, #3a1717, #1a0c0c);
  border: 6px solid #5a2a2a;
  box-shadow: 0 0 0 4px #120808;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cabinet-home-stage .arcade-shell {
  padding: 1rem 1rem 4rem;
}

.cabinet-home-stage .arcade-cab {
  max-width: none;
}

.arcade-head {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #000;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.arcade-glass {
  flex: 1;
  min-height: 0;
  padding: 1rem;
  background: radial-gradient(ellipse at center, #1d2a38, #0a1016 70%);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.arcade-tile {
  text-decoration: none;
  color: #fff;
  background: #111;
  border: 2px solid #445;
  padding: 0.35rem;
}

.arcade-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.arcade-tile p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  text-align: center;
}

.arcade-panel {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.25rem;
  background: #2a1212;
  flex-shrink: 0;
}

.arcade-stick {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #eee, #888);
  box-shadow: 0 6px 0 #333;
}

.arcade-buttons {
  display: flex;
  gap: 0.6rem;
}

.arcade-buttons i {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #a11);
  display: block;
}

/* Boot splash */
.console-boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  transition: opacity 0.35s ease;
}
.console-boot.is-out { opacity: 0; }
.console-boot-inner { text-align: center; animation: boot-in 0.7s ease both; }
.console-boot-l1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}
.console-boot-l2 {
  margin: 0.85rem 0 0;
  opacity: 0.65;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
@keyframes boot-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
.console-boot--ps3-xmb { background: radial-gradient(circle at 50% 40%, #123058, #000 70%); }
.console-boot--psp-xmb { background: linear-gradient(160deg, #1c2530, #000); }
.console-boot--nes, .console-boot--snes, .console-boot--n64 { background: #111; }
.console-boot--gb, .console-boot--gbc { color: #1d2418; background: #9aa38b; }
.console-boot--gba { background: #1a2740; }
.console-boot--genesis, .console-boot--sms { background: #041018; color: #1abc9c; }
.console-boot--arcade { background: #1a0505; color: #ffcf5a; }
.console-boot--vb { background: #050000; color: #ff2a2a; }

.console-mute {
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
  color: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}
.console-mute:hover { border-color: rgba(255,255,255,0.55); }

.xmb-top-right { display: flex; align-items: center; gap: 0.75rem; }
.xmb-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.45) 100%);
  z-index: 3;
}
.xmb-shell.is-live { animation: xmb-enter 0.45s ease both; }
@keyframes xmb-enter {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: none; }
}
.xmb-item {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.xmb-item.is-active .xmb-item-art {
  box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(140, 200, 255, 0.55);
  transform: scale(1.05);
}
.xmb-item-art { transition: box-shadow 0.15s ease, transform 0.15s ease; }
.xmb-hint {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}
.xmb-cat.is-active .xmb-cat-icon {
  filter: drop-shadow(0 0 10px rgba(160, 210, 255, 0.9));
}

.psp-shoulder {
  width: min(920px, 92%);
  height: 10px;
  border-radius: 8px 8px 0 0;
  background: #2c3540;
}
.psp-controls {
  width: min(960px, 100%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  opacity: 0.55;
}
.psp-analog {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #222;
  border: 3px solid #555;
}
.psp-face { display: flex; gap: 0.4rem; align-items: center; }
.psp-face i {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #444;
  display: block;
}

.cart-hint, .hh-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.cart-scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px);
  z-index: 1;
}

.hh-row.is-focus {
  border-color: currentColor;
  background: rgba(255,255,255,0.08);
}
.hh-preview {
  margin-top: 0.75rem;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.arcade-tile.is-focus {
  border-color: #ffcf5a;
  box-shadow: 0 0 18px rgba(255, 180, 40, 0.45);
  transform: scale(1.03);
}
.arcade-head .is-blink { opacity: 0.25; }

.xmb-top-links,
.cart-head-links,
.hh-head-links,
.arcade-head-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.cart-head-links .cart-back,
.hh-head-links .hh-back,
.arcade-head-links a {
  white-space: nowrap;
}
