/* TrashPanda.Faith Arcade Switcher & Shared UI */

.arcade-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.arcadelink {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 14px;
  border: 2px solid #fff;
  background: #6e52c4;
  color: #fff7e8;
  text-decoration: none;
  font: 800 0.95rem/1 var(--body);
  box-shadow: 0 3px 0 #422c87, 0 6px 14px rgba(0, 0, 0, 0.22);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.arcadelink svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.arcadelink b {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.arcadelink .badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--gold);
  color: #3a2400;
  font: 800 0.72rem/1 var(--body);
}

.arcadelink:hover {
  transform: translateY(-2px);
}

.arcadelink:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #422c87;
}

.arcadelink:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Arcade Modal */
.book.arcade-modal {
  width: min(95vw, 720px);
  max-height: 88dvh;
  padding: 20px 20px 16px;
}

.arcade-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 10px;
}

.arcade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px 13px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.arcade-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.arcade-card.current {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.arcade-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arcade-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid #fff;
  background: var(--card);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  box-shadow: 0 2px 0 var(--line);
}

.arcade-thumb img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.arcade-meta {
  min-width: 0;
}

.arcade-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 99px;
  color: #fff;
  margin-bottom: 2px;
}

.arcade-card h3 {
  margin: 0;
  font: 400 1.15rem/1.1 var(--display);
  color: var(--ink);
}

.arcade-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.32;
  color: var(--muted);
}

.arcade-stat {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #5b4300;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.arcade-stat span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(244, 179, 55, 0.22);
  border: 1.5px solid rgba(212, 139, 14, 0.45);
}

.arcade-stat.fresh span {
  background: rgba(47, 107, 85, 0.14);
  border-color: rgba(47, 107, 85, 0.32);
  color: var(--green);
}

.arcade-card .here-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--gold);
  color: #3a2400;
  font-size: 0.68rem;
  font-weight: 800;
}

@media (max-width: 520px) {
  .arcadelink {
    height: 38px;
    font-size: 0.85rem;
    padding: 0 11px 0 8px;
  }
  .arcadelink svg {
    width: 19px;
    height: 19px;
  }
}
