/* ═══════════════════════════════════════════════════════════════
   VECTOR PALACE ARCADE — s104 deep-custom portal skin
   site youxi--1--104 · index.html
   language: neon wireframes · vector traces · CRT bezels
   (zero pixel-art elements — pure line & glow only)
   ═══════════════════════════════════════════════════════════════ */

/* ── palette (unchanged from original site) ──────────────────── */
:root {
  --bg: #0A0A14;
  --panel: #12121F;
  --panel-2: #1A1A2E;
  --accent: #00E5FF;
  --accent2: #FF2E88;
  --text: #EAF6FF;
  --soft: #7E8BB8;
  --line: rgba(0, 229, 255, .3);
  --glow: rgba(0, 229, 255, .45);
  --glow2: rgba(255, 46, 136, .45);
  --fh: 'Consolas', monospace;
  --fb: 'Segoe UI', sans-serif;
  --fm: 'Consolas', monospace;
  --sec-gap: 30px;
}

/* ═══ 0. reset & base ═══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

/* faint vector grid + magenta horizon glow */
body.t-arcade {
  background:
    repeating-linear-gradient(0deg, rgba(0, 229, 255, .025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 229, 255, .015) 0 1px, transparent 1px 34px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 46, 136, .12), transparent 55%),
    var(--bg);
}

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

::selection { background: var(--accent); color: #0A0A14; }

/* ═══ 1. layout shell ════════════════════════════════════════════ */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px;
}

/* each section sits in a bezel-framed CRT shell */
.sec {
  position: relative;
  /* margin-top: var(--sec-gap); */
  min-width: 0;
  padding: 15px 16px 17px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, .3);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, .04), rgba(10, 10, 20, .35)),
    var(--panel);
  box-shadow:
    inset 0 0 24px rgba(0, 229, 255, .05),
    0 0 18px rgba(0, 229, 255, .08),
    0 14px 28px -18px rgba(0, 0, 0, .7);
}

/* corner brackets — the vector-frame signature */
.sec::before,
.sec::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  opacity: .75;
  pointer-events: none;
}

.sec::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}

.sec::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

/* ═══ 2. callout — the coin label ════════════════════════════════ */
.callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.callout b {
  flex: none;
  font-family: var(--fm);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 229, 255, .1);
  box-shadow: inset 0 0 0 1.5px rgba(0, 229, 255, .5);
  padding: 4px 12px;
  border-radius: 3px;
  text-shadow: 0 0 8px var(--glow);
}

.callout span {
  font-family: var(--fm);
  font-size: 10.5px;
  color: var(--soft);
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.callout::after {
  content: '';
  flex: 1;
  border-top: 1.5px dashed rgba(0, 229, 255, .35);
}

/* the glowing coin beside the label */
.co-coin {
  flex: none;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  color: var(--accent2);
  text-shadow: 0 0 8px var(--glow2);
}

/* ═══ 3. header — coin slot strip + wireframe logotype ══════════ */
.hdr {
  position: relative;
  z-index: 50;
}

.hdr-hx {
  background: linear-gradient(180deg, #14142A, #0E0E1A);
  overflow: hidden;
}

/* the running credit strip above the masthead */
.s104-tick {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--accent2);
  background: rgba(255, 46, 136, .08);
  border-bottom: 1px solid rgba(255, 46, 136, .3);
  text-shadow: 0 0 8px var(--glow2);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}

.hdr-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px var(--glow);
}

/* the little wireframe glyph before the name */
.s104-wire {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow), inset 0 0 6px rgba(0, 229, 255, .35);
  animation: s104spin 5s linear infinite;
}

@keyframes s104spin {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

.hdr-search {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1.5px solid rgba(0, 229, 255, .5);
  border-radius: 9px;
  box-shadow: 0 0 10px rgba(0, 229, 255, .15), inset 0 0 8px rgba(0, 229, 255, .08);
}

/* the CRT scanline band closing the header */
.s104-scan {
  display: flex;
  gap: 6px;
  height: 7px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(0, 229, 255, .1), transparent);
}

.s104-scan i {
  flex: 1;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .5), transparent);
  background-size: 200% 100%;
  animation: s104scan 2.4s linear infinite;
}

.s104-scan i:nth-child(2) { animation-delay: .3s; }
.s104-scan i:nth-child(3) { animation-delay: .6s; }
.s104-scan i:nth-child(4) { animation-delay: .9s; }
.s104-scan i:nth-child(5) { animation-delay: 1.2s; }
.s104-scan i:nth-child(6) { animation-delay: 1.5s; }

@keyframes s104scan {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ═══ 4. nav + search ════════════════════════════════════════════ */
.nb-wide {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 4px;
  scrollbar-width: none;
}

.nb-wide::-webkit-scrollbar { display: none; }

.nv-b {
  flex: none;
  font-family: var(--fm);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--soft);
  background: rgba(0, 229, 255, .05);
  border: 1.5px solid rgba(0, 229, 255, .3);
  border-radius: 4px;
  padding: 7px 14px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.nv-b:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 229, 255, .25);
}

.nv-b.on {
  color: #0A0A14;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--glow);
}

.srch-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.srch-input {
  flex: 1;
  min-width: 0;
  background: #0C0C18;
  border: 1.5px solid rgba(0, 229, 255, .35);
  border-radius: 6px;
  padding: 10px 13px;
  font-family: var(--fm);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
}

.srch-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, .2);
}

.srch-go {
  flex: none;
  font-family: var(--fm);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #0A0A14;
  background: var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  box-shadow: 0 0 14px var(--glow);
}

.srch-go:active { transform: scale(.96); }

/* ═══ 5. loading ═════════════════════════════════════════════════ */
.loading-full {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-bar {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-2);
  overflow: hidden;
  margin: 0 auto 12px;
}

.loading-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: ldslide 1s infinite;
}

@keyframes ldslide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.loading-txt {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--soft);
}

/* ═══ 6. hero — tonight's double bill marquee ════════════════════ */
.hv1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hv1-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 229, 255, .45);
  background: linear-gradient(180deg, rgba(0, 229, 255, .06), rgba(10, 10, 20, .4)), var(--panel);
  box-shadow: 0 0 16px rgba(0, 229, 255, .12), inset 0 0 18px rgba(0, 229, 255, .05);
  overflow: hidden;
}

/* marquee bulbs dancing along the top edge */
.hv1-card::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: radial-gradient(circle, var(--accent2) 1.5px, transparent 2px) 0 0 / 12px 3px repeat-x;
  animation: s104chase 1.2s linear infinite;
}

@keyframes s104chase {
  from { background-position: 0 0; }
  to { background-position: 12px 0; }
}

.hv1-k {
  display: block;
  margin-top: 4px;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--accent2);
  text-shadow: 0 0 8px var(--glow2);
}

.hv1-k2 { color: var(--accent); text-shadow: 0 0 8px var(--glow); }

.hv1-art {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}

.hv1-art img {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(0, 229, 255, .55);
  box-shadow: 0 0 18px var(--glow);
}

.hv1-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.hv1-nm {
  font-family: var(--fh);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: break-word;
}

.hv1-ds {
  font-size: 11.5px;
  color: var(--soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hv1-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.hv1-meta em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(255, 46, 136, .5);
  border-radius: 3px;
  padding: 2px 6px;
}

.hx-stars {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 2px;
  text-shadow: 0 0 6px var(--glow);
}

.hx-stars i { font-style: normal; }
.hx-stars i.off { opacity: .25; }

.hx-cta {
  align-self: center;
  margin-top: 8px;
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #0A0A14;
  background: var(--accent);
  border-radius: 4px;
  padding: 7px 18px;
  box-shadow: 0 0 16px var(--glow);
}

.hv1-card:active { transform: scale(.98); }

/* ═══ 7. divider — the neon tube run ═════════════════════════════ */
.tk-div {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 2px 0 10px;
}

.tk-div i {
  position: relative;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--glow);
}

.tk-div i:nth-child(2) {
  width: 26px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  box-shadow: 0 0 10px var(--glow2);
}

.tk-div i:nth-child(3) { width: 56px; }

/* ═══ 8. champion board — the hi-score table ═════════════════════ */
.s104-hi {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.s104-hi-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 229, 255, .28);
  background: linear-gradient(90deg, rgba(0, 229, 255, .07), transparent 60%), var(--panel);
}

.s104-hi-row:active { transform: scale(.98); }

/* score rank — bracketed initials like the old tables */
.s104-hi-rank {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid rgba(0, 229, 255, .5);
  border-radius: 50%;
  text-shadow: 0 0 8px var(--glow);
}

.s104-hi-rank.rk1 {
  color: var(--accent2);
  border-color: rgba(255, 46, 136, .6);
  text-shadow: 0 0 8px var(--glow2);
}

.s104-hi-art {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 229, 255, .4);
  overflow: hidden;
}

.s104-hi-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s104-hi-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s104-hi-nm {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s104-hi-ds {
  font-size: 11.5px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s104-hi-val {
  flex: none;
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  text-shadow: 0 0 8px var(--glow2);
}

/* ═══ 9. cabinet row B — the linked cabinets ═════════════════════ */
.s104-cabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.s104-cab {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(0, 229, 255, .3);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: inset 0 0 14px rgba(0, 229, 255, .05);
}

/* the mini marquee atop each cabinet */
.s104-cab-marq {
  display: block;
  height: 8px;
  background:
    radial-gradient(circle, var(--accent2) 1.5px, transparent 2px) 5px 3px / 12px 6px repeat-x,
    linear-gradient(180deg, rgba(255, 46, 136, .16), transparent);
}

/* the CRT screen behind the icon */
.s104-cab-crt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 229, 255, .1), #08080F 78%);
  border-bottom: 1px solid rgba(0, 229, 255, .2);
}

.s104-cab-crt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 229, 255, .05) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.s104-cab-crt img {
  width: 72%;
  height: 72%;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid rgba(0, 229, 255, .4);
  box-shadow: 0 0 14px var(--glow);
}

.s104-cab-deck {
  display: block;
  padding: 7px 7px 8px;
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ═══ 10. token exchange — the vector trace rail ═════════════════ */
.s104-trace {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scrollbar-width: none;
}

.s104-trace::-webkit-scrollbar { display: none; }

/* the trajectory line the nodes ride on */
.s104-trace::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
  opacity: .5;
}

.s104-node {
  flex: none;
  width: 86px;
  text-align: center;
}

.s104-node-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border: 1.5px solid rgba(0, 229, 255, .5);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 229, 255, .18), inset 0 0 10px rgba(0, 229, 255, .08);
}

/* the orbiting trace tick around the node */
.s104-node-ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(255, 46, 136, .45);
  border-radius: 50%;
  animation: s104orbit 7s linear infinite;
}

@keyframes s104orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.s104-node-ring img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.s104-node-nm {
  display: block;
  margin-top: 7px;
  font-family: var(--fm);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 11. 1P vs 2P — the velvet prize counter ════════════════════ */
.s104-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.s104-case {
  position: relative;
  display: flex;
  gap: 11px;
  min-width: 0;
  padding: 12px 11px 13px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 46, 136, .45);
  background:
    linear-gradient(180deg, rgba(255, 46, 136, .07), transparent 55%),
    var(--panel);
  box-shadow: 0 0 14px rgba(255, 46, 136, .1);
}

.s104-case:active { transform: scale(.98); }

/* the prize standing on its lit plinth */
.s104-case-stand {
  flex: none;
  align-self: center;
  width: 84px;
  padding-bottom: 7px;
  border-bottom: 3px solid rgba(0, 229, 255, .55);
  border-radius: 2px;
  box-shadow: 0 6px 12px -6px var(--glow);
}

.s104-case-stand img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(0, 229, 255, .4);
}

.s104-case-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s104-case-b b {
  font-family: var(--fh);
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: break-word;
}

.s104-case-b span {
  font-size: 11px;
  color: var(--soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.s104-case-b em {
  font-style: normal;
  align-self: flex-start;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(255, 46, 136, .5);
  border-radius: 3px;
  padding: 2px 6px;
}

/* ═══ 12. machine meters — counters + cartridge slots ════════════ */
.s104-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.s104-meter {
  text-align: center;
  border: 1px solid rgba(0, 229, 255, .35);
  border-radius: 8px;
  padding: 10px 6px 9px;
  background: #0A0A16;
  box-shadow: inset 0 0 14px rgba(0, 229, 255, .07);
}

.s104-meter b {
  display: block;
  font-family: var(--fm);
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px var(--glow);
}

.s104-meter span {
  display: block;
  margin-top: 3px;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
}

/* cartridges slotted under the counters */
.s104-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.s104-slot {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, .3);
  background: var(--panel);
  padding: 9px 8px 8px;
  text-align: center;
}

.s104-slot-cart {
  position: relative;
  display: flex;
  justify-content: center;
}

/* the cartridge connector edge */
.s104-slot-cart::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 22%;
  right: 22%;
  height: 5px;
  background: repeating-linear-gradient(90deg, rgba(0, 229, 255, .5) 0 4px, transparent 4px 8px);
  border-radius: 1px;
}

.s104-slot-cart img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid rgba(0, 229, 255, .4);
}

.s104-slot-nm {
  display: block;
  margin-top: 8px;
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 13. three joysticks — the elimination bracket ══════════════ */
.s104-brk {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s104-brk-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border: 1px solid rgba(255, 46, 136, .4);
  border-radius: 10px;
  padding: 10px 11px;
  background: linear-gradient(90deg, rgba(255, 46, 136, .06), transparent 55%), var(--panel);
}

/* the champion slot gets the crown line */
.s104-brk-final {
  border-color: rgba(0, 229, 255, .55);
  box-shadow: 0 0 14px rgba(0, 229, 255, .14);
}

.s104-brk-final::before {
  content: '★';
  position: absolute;
  margin-top: -44px;
  margin-left: 10px;
  font-size: 10px;
  color: var(--accent2);
  text-shadow: 0 0 8px var(--glow2);
}

.s104-brk-art {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 229, 255, .45);
  overflow: hidden;
}

.s104-brk-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s104-brk-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s104-brk-nm {
  font-family: var(--fh);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s104-brk-ds {
  font-size: 11px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the two contenders hang below with drop lines */
.s104-brk-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  padding-top: 6px;
}

.s104-brk-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, rgba(255, 46, 136, .5) 0 6px, transparent 6px 12px);
}

.s104-brk-split .s104-brk-card { flex-direction: column; text-align: center; gap: 7px; }

.s104-brk-split .s104-brk-b { align-items: center; }

.s104-brk-split .s104-brk-ds {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ═══ 14. attract mode — the neon circuit strip ══════════════════ */
.s104-ckt {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 14px 13px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 229, 255, .45);
  background:
    linear-gradient(120deg, rgba(0, 229, 255, .06), transparent 45%, rgba(255, 46, 136, .05)),
    var(--panel);
  box-shadow: 0 0 16px rgba(0, 229, 255, .1);
  overflow: hidden;
}

/* the circuit trace stitched behind the card */
.s104-ckt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 30px, rgba(0, 229, 255, .14) 30px, rgba(0, 229, 255, .14) calc(30px + 2px), transparent calc(30px + 2px)) 0 22px / 100% 2px no-repeat,
    linear-gradient(0deg, transparent 60%, rgba(255, 46, 136, .12) 60%, rgba(255, 46, 136, .12) calc(60% + 2px), transparent calc(60% + 2px)) right 0 / 120px 100% no-repeat;
  pointer-events: none;
}

.s104-ckt-plate {
  position: relative;
  flex: none;
  width: 104px;
  align-self: center;
}

.s104-ckt-plate img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(0, 229, 255, .5);
  box-shadow: 0 0 16px var(--glow);
}

/* the junction node pulsing on the plate corner */
.s104-ckt-plate i {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px var(--glow2);
  animation: s104pulse 1.6s ease-in-out infinite;
}

@keyframes s104pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.6); opacity: .5; }
}

.s104-ckt-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s104-ckt-k {
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent2);
}

.s104-ckt-nm {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: break-word;
}

.s104-ckt-d {
  font-size: 12px;
  color: var(--soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.s104-ckt-go {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--fm);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--accent);
  border: 1.5px solid rgba(0, 229, 255, .55);
  border-radius: 4px;
  padding: 5px 12px;
  text-shadow: 0 0 8px var(--glow);
}

/* ═══ 15. genre DIP — the switch bank ════════════════════════════ */
.s104-dip {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.s104-dip-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 8px;
  padding: 9px 12px 9px 9px;
  background: var(--panel);
}

.s104-dip-row:active { transform: scale(.98); }

/* the four-paddle DIP switch */
.s104-dip-sw {
  flex: none;
  display: flex;
  gap: 3px;
  padding: 5px 6px;
  border-radius: 5px;
  background: #08080F;
  border: 1px solid rgba(0, 229, 255, .35);
}

.s104-dip-sw i {
  width: 5px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0 45%, rgba(0, 229, 255, .2) 45%);
  box-shadow: 0 0 6px rgba(0, 229, 255, .25);
}

.s104-dip-sw i:nth-child(even) {
  background: linear-gradient(180deg, rgba(0, 229, 255, .2) 0 55%, var(--accent) 55%);
}

.s104-dip-b {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.s104-dip-b b {
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s104-dip-b i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--soft);
}

.s104-dip-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent2);
  text-shadow: 0 0 8px var(--glow2);
}

/* ═══ 16. high scores — the coin-drop tape ═══════════════════════ */
.s104-tape {
  position: relative;
  border-radius: 10px;
  border: 1px dashed rgba(0, 229, 255, .35);
  background: #0A0A16;
  padding: 0 11px 11px;
}

/* the torn tape header */
.s104-tape-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -11px 12px;
  padding: 8px 13px;
  border-bottom: 1px dashed rgba(0, 229, 255, .3);
  background: linear-gradient(180deg, rgba(0, 229, 255, .1), rgba(0, 229, 255, .02));
}

.s104-tape-top b {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow);
}

.s104-tape-top span {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--soft);
}

.arc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arc {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 8px;
  padding: 8px 11px;
  background: var(--panel);
}

.arc img {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid rgba(0, 229, 255, .35);
}

.arc-b { flex: 1; min-width: 0; }

.arc-nm {
  display: block;
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arc-ds {
  display: block;
  font-size: 10.5px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the drop-counter number stamped on each entry */
.s104-entry-no {
  flex: none;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent2);
  border: 1px solid rgba(255, 46, 136, .45);
  border-radius: 3px;
  padding: 3px 5px;
}

.arc-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow);
}

/* ═══ 17. filter view + empty ════════════════════════════════════ */
.filter-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.filter-back {
  flex: none;
  font-family: var(--fm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid rgba(0, 229, 255, .45);
  border-radius: 6px;
  padding: 7px 12px;
}

.filter-title {
  flex: 1;
  min-width: 0;
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-cnt {
  flex: none;
  font-family: var(--fm);
  font-size: 11.5px;
  color: #0A0A14;
  background: var(--accent);
  border-radius: 4px;
  padding: 3px 8px;
  box-shadow: 0 0 10px var(--glow);
}

.empty-space {
  text-align: center;
  padding: 40px 0 24px;
}

/* the dead-screen glyph inside a wireframe CRT */
.s104-over {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 52px;
  font-size: 26px;
  color: var(--accent2);
  border: 1.5px solid rgba(255, 46, 136, .5);
  border-radius: 8px;
  text-shadow: 0 0 10px var(--glow2);
  animation: s104blink 1.4s steps(2) infinite;
}

@keyframes s104blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.empty-space span {
  display: block;
  margin-top: 12px;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--soft);
}

/* ═══ 18. more ═══════════════════════════════════════════════════ */
.more-wrap {
  text-align: center;
  margin-top: 15px;
}

.more-btn {
  font-family: var(--fm);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  background: rgba(0, 229, 255, .07);
  border: 1.5px solid rgba(0, 229, 255, .45);
  border-radius: 6px;
  padding: 10px 22px;
  text-shadow: 0 0 8px var(--glow);
}

.more-btn:active { transform: scale(.97); }

/* ═══ 19. footer — the control deck band ════════════════════════ */
.foot {
  position: relative;
  margin-top: 44px;
  padding: 26px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, #10101E, #0A0A14);
  border-top: 1px solid rgba(0, 229, 255, .25);
}

/* the joystick + button row glowing over the footer */
.s104-band {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}

.s104-band-stick {
  position: relative;
  width: 10px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent2), rgba(255, 46, 136, .3));
  box-shadow: 0 0 12px var(--glow2);
}

.s104-band-stick::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF87B5, var(--accent2));
  box-shadow: 0 0 14px var(--glow2);
}

.s104-band-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9FF6FF, var(--accent));
  box-shadow: 0 0 12px var(--glow);
}

.s104-band-btn.b2 { opacity: .7; }
.s104-band-btn.b3 { opacity: .4; }

.foot-name {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-shadow: 0 0 10px var(--glow);
}

.foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 12px;
}

.foot-links a {
  display: inline;
  font-size: 12.5px;
  color: var(--soft);
  text-decoration: underline;
}

.foot-fine {
  margin-top: 12px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--soft);
  opacity: .8;
}

/* ═══ 20. back-to-top — the player button ════════════════════════ */
.totop-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #0A0A14;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--glow), 0 4px 14px rgba(0, 0, 0, .4);
}

/* ═══ 21. responsive ═════════════════════════════════════════════ */
@media (max-width: 480px) {
  .sec { padding: 13px 12px 15px; }

  .hv1-art img { width: 92px; height: 92px; }

  .s104-ckt-plate { width: 92px; }

  .s104-ckt-nm { font-size: 16px; }

  .s104-case-stand { width: 74px; }

  .s104-brk-split .s104-brk-art { width: 46px; height: 46px; }
}

@media (max-width: 375px) {
  .wrap { padding: 0 14px; }

  .hdr-name { font-size: 16.5px; }

  .s104-cabs,
  .s104-slots { gap: 8px; }

  .s104-case { gap: 9px; }

  .s104-case-stand { width: 68px; }

  .s104-ckt { gap: 10px; }

  .s104-ckt-plate { width: 84px; }

  .s104-ckt-d { -webkit-line-clamp: 2; }
}
