@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Disable double-tap-to-zoom on mobile across all arcade games.
   `manipulation` still allows scrolling/pinch-zoom but kills the tap-zoom delay/gesture.
   Individual canvases that need `touch-action: none` can still override locally. */
html, body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --pink: #e879f9;
  --pink-dark: #d946ef;
  --purple: #a855f7;
  --bg: #0d0015;
  --bg2: #110018;
  --card: rgba(217,70,239,0.07);
  --card-border: rgba(217,70,239,0.18);
  --gradient: linear-gradient(135deg, #e879f9, #a855f7);
}

#arcade-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(8,0,15,0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(232,121,249,0.22);
  box-shadow: 0 1px 0 rgba(232,121,249,0.12), 0 10px 30px -22px rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  z-index: 99999;
  font-family: 'Inter', -apple-system, sans-serif;
}

#arcade-bar a.back-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
  white-space: nowrap;
}

#arcade-bar a.back-link:hover { color: #e879f9; }

#arcade-bar .bar-divider {
  color: rgba(255,255,255,0.2);
  font-size: 14px;
}

#arcade-bar .bar-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(232,121,249,0.5));
}

/* === Shared styled dropdown ===
 * Built by /arcade/dropdown.js on top of any <select class="mp-select">.
 * Native <option> popups can't be themed, so we render a button + panel
 * that match the rest of the arcade UI. */
.mp-dd-wrap { position: relative; width: 100%; font-family: inherit; }
.mp-dd-wrap select.mp-select {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; margin: 0;
}
.mp-dd-btn {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%;
  background: rgba(13,0,21,0.7);
  border: 1px solid rgba(217,70,239,0.3);
  color: #fff; border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: left;
}
.mp-dd-btn:hover { border-color: rgba(232,121,249,0.6); background: rgba(217,70,239,0.08); }
.mp-dd-btn.open {
  border-color: var(--pink);
  background: rgba(217,70,239,0.1);
  box-shadow: 0 0 0 3px rgba(217,70,239,0.12);
}
.mp-dd-btn .mp-dd-current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-dd-btn .mp-dd-caret {
  width: 10px; height: 10px; flex-shrink: 0;
  display: inline-block; color: var(--pink);
  transition: transform 0.18s ease;
}
.mp-dd-btn.open .mp-dd-caret { transform: rotate(180deg); }
.mp-dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: rgba(13,0,21,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 5px;
  z-index: 60;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s, transform 0.16s;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  max-height: 260px; overflow-y: auto;
}
.mp-dd-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mp-dd-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 7px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: transparent; border: none;
  cursor: pointer; text-align: left;
  transition: color 0.12s, background 0.12s;
}
.mp-dd-item:hover, .mp-dd-item.focused {
  color: #fff; background: rgba(255,255,255,0.06);
}
.mp-dd-item.selected {
  color: #fff; background: rgba(217,70,239,0.16);
}
.mp-dd-item::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: transparent;
}
.mp-dd-item.selected::before { background: var(--gradient); }
