/* ── HERO ── */
.col-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 100px 48px 60px;
  overflow: hidden;
  margin-top: 0;
}
.col-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.5) brightness(0.35);
}
.col-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,8,0.6) 0%, rgba(8,6,8,0.4) 40%, rgba(8,6,8,0.85) 100%);
}
.col-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.col-hero-label {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.col-hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.8);
}
.col-hero-title span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--ember-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.col-hero-sub {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  color: rgba(210,200,190,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 560px;
}
.col-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.col-badge {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(184,146,42,0.3);
  border-radius: 3px;
  color: rgba(210,200,190,0.7);
}
.col-badge-gold {
  border-color: rgba(184,146,42,0.6);
  color: var(--gold-light);
}

/* ── TYPE BAR ── */
.ra-type-bar {
  display: flex;
  align-items: stretch;
  background: rgba(6,4,6,0.98);
  border-top: 1px solid rgba(80,60,35,0.5);
  border-bottom: 1px solid rgba(80,60,35,0.7);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.ra-type-bar::-webkit-scrollbar { display: none; }
.ra-type-btn {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s;
  border-right: 1px solid rgba(80,60,35,0.4);
}
.ra-type-btn:last-child { border-right: none; }
.ra-type-btn:hover { background: rgba(255,255,255,0.03); }
.ra-type-btn.active { background: rgba(184,146,42,0.12); box-shadow: inset 0 0 30px rgba(184,146,42,0.15), 0 0 20px rgba(184,146,42,0.15); border-bottom: 2px solid rgba(184,146,42,0.6); }
.ra-type-label {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
}
.ra-type-val {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.ra-type-btn.active .ra-type-label { color: var(--gold-light); }
.ra-type-btn.active .ra-type-val   { color: var(--gold-light); }

/* ── WRAP + FILTERS ── */
.col-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}
.ra-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  align-items: center;
}
.ra-filter-search {
  flex: 1 1 220px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(80,60,35,0.8);
  border-radius: 6px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.9);
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  outline: none;
}
.ra-filter-search::placeholder { color: rgba(255,255,255,0.25); }
.ra-filter-search:focus { border-color: rgba(184,146,42,0.5); }
.ra-select {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(80,60,35,0.8);
  border-radius: 6px;
  padding: 10px 32px 10px 14px;
  color: rgba(255,255,255,0.85);
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8922a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: rgba(0,0,0,0.5);
}
.ra-filter-count {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ── GRID ── */
.ra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ── CARD ── */
.ra-card {
  background: #0c0a0e;
  border: 1px solid rgba(var(--suit-color, 120,90,50), 0.35);
  border-color: rgba(120,90,50,0.5);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.ra-card:hover {
  border-color: var(--suit-color, rgba(184,146,42,0.8));
  box-shadow: 0 0 0 1px var(--suit-color, rgba(184,146,42,0.3));
}
.ra-card-placeholder-card { opacity: 0.4; cursor: default; }
.ra-card-placeholder-card:hover { border-color: rgba(120,90,50,0.5); box-shadow: none; }

.ra-card-img {
  position: relative;
  aspect-ratio: 1;
  background: rgba(0,0,0,0.4);
}
.ra-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ra-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
}
.ra-card-id {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}
.ra-card-orb {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(200,168,106,0.3);
  border-radius: 20px;
  padding: 3px 8px 3px 6px;
}
.ra-card-orb span {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(220,190,130,0.9);
  line-height: 1;
}

.ra-card-body {
  padding: 8px 10px;
}
.ra-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ra-card-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ra-card-type {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ra-card-effect {
  padding: 8px 10px;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  color: rgba(210,200,190,0.8);
  line-height: 1.5;
  flex: 1;
}
.ra-card-effect-empty {
  color: rgba(255,255,255,0.18);
  font-style: italic;
}

/* ── SECTION DIVIDER ── */
.ra-section-div {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 8px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ra-section-line { flex: 1; height: 1px; background: rgba(255,255,255,0.07); }

/* ── NO RESULTS ── */
.ra-no-results {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
}
.ra-no-results-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.ra-no-results-sub {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.15);
}

/* ── LIGHTBOX ── */
#ra-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,3,5,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
  gap: 20px;
}
#ra-lightbox.active { display: flex; }

.ra-lb-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: #0e0b10;
  border: 1px solid rgba(184,146,42,0.25);
  border-radius: 10px;
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  transition: opacity 0.3s ease;
}
.ra-lb-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}
.ra-lb-close:hover { color: #fff; }
.ra-lb-inner { position: relative; }

.ra-lb-left {
  display: flex;
  flex-direction: column;
  background: #0a0808;
}
.ra-lb-img-wrap {
  position: relative;
  aspect-ratio: 1;
}
.ra-lb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ra-lb-orb {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(200,168,106,0.35);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
}
.ra-lb-orb span {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(220,190,130,0.95);
}
.ra-lb-effect-wrap {
  background: #080608;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 14px 16px;
  flex: 1;
}
.ra-lb-effect-label {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.ra-lb-effect-text {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.ra-lb-info {
  padding: 32px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ra-lb-id {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}
.ra-lb-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.ra-lb-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ra-lb-suit, .ra-lb-type-badge {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ra-lb-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}
.ra-lb-epithet {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
}
.ra-lb-flavor {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.65);
  line-height: 1.75;
}
.ra-lb-meaning {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.5);
  line-height: 1.7;
  font-weight: 300;
}
.ra-lb-tarot { display: flex; flex-direction: column; gap: 8px; }
.ra-lb-kw {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  color: rgba(210,200,190,0.6);
  line-height: 1.5;
}
.ra-lb-kw-label {
  font-weight: 700;
  color: rgba(184,146,42,0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  margin-right: 8px;
}

.ra-lb-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ra-lb-nav-btn {
  background: rgba(184,146,42,0.1);
  border: 1px solid rgba(184,146,42,0.3);
  color: var(--gold-light);
  width: 44px; height: 44px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.ra-lb-nav-btn:hover { background: rgba(184,146,42,0.2); }
.ra-lb-nav-count {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* nav active link */
.nav-links a.active { color: var(--gold-light); }

@media (max-width: 768px) {
  .col-hero { padding: 80px 20px 40px; min-height: 50vh; }
  .col-wrap { padding: 20px 16px 60px; }
  .ra-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .ra-lb-inner { grid-template-columns: 1fr; }
  .ra-lb-left { max-height: 40vh; }
  .ra-lb-img-wrap { aspect-ratio: 1; max-height: 260px; }
}

/* smooth lightbox transition */
.ra-lb-inner {
  transition: opacity 0.25s ease;
}

/* fix left/right edge clipping */
.col-wrap {
  padding-left: 48px;
  padding-right: 48px;
}
.ra-type-bar {
  padding: 0;
}

/* align hero content with card grid */
.col-hero {
  padding-left: 0;
  padding-right: 0;
}
.col-hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

