/* Riftborn Home Hub visual language — shared across all public Riftborn pages. */
.riftborn-page {
  --accent: #d8b45e;
  --accent-ink: #17120a;
  --rb-ink: #0a0c12;
  --rb-obsidian: #11131b;
  --rb-panel: rgba(18, 20, 29, .92);
  --rb-panel-2: rgba(25, 27, 38, .95);
  --rb-gold: #d8b45e;
  --rb-ivory: #f5f0e5;
  --rb-soft-line: rgba(236, 211, 148, .16);
  --line: rgba(236, 211, 148, .15);
  --muted: rgba(237, 232, 220, .64);
  --faint: rgba(237, 232, 220, .42);
  background:
    radial-gradient(920px 620px at 92% 6%, rgba(106, 82, 170, .13), transparent 72%),
    radial-gradient(760px 520px at 3% 36%, rgba(211, 167, 74, .08), transparent 74%),
    var(--rb-ink);
}

.riftborn-page .nav {
  border-bottom-color: rgba(236, 211, 148, .14);
  background: rgba(8, 10, 16, .88);
}
.riftborn-page .nav-brand b i { color: var(--rb-gold); }
.riftborn-page .btn {
  border: 1px solid rgba(251, 226, 159, .68);
  background: linear-gradient(135deg, #f1d181, #b98b37);
  color: #17120a;
  box-shadow: inset 0 1px rgba(255,255,255,.3), 0 10px 30px rgba(0,0,0,.18);
}
.riftborn-page .btn.ghost {
  border-color: rgba(236, 211, 148, .34);
  background: rgba(13, 15, 22, .52);
  color: var(--rb-ivory);
  box-shadow: none;
}
.riftborn-page .btn.ghost:hover { border-color: var(--rb-gold); color: var(--rb-gold); }
.riftborn-page .mono { color: var(--rb-gold); }

.rb-subnav {
  border-bottom-color: rgba(236, 211, 148, .16);
  background:
    linear-gradient(90deg, rgba(8, 10, 16, .96), rgba(21, 20, 25, .94), rgba(8, 10, 16, .96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .26), inset 0 -1px rgba(255,255,255,.02);
}
.rb-subnav-inner { gap: 8px; }
.rb-subnav a {
  border-color: rgba(236, 211, 148, .12);
  color: rgba(237, 232, 220, .63);
  background: rgba(255,255,255,.018);
}
.rb-subnav a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: middle;
  opacity: .68;
}
.rb-subnav a:hover { border-color: rgba(236, 211, 148, .45); color: var(--rb-ivory); }
.rb-subnav a[aria-current="page"] {
  border-color: rgba(251, 226, 159, .68);
  background: linear-gradient(135deg, #f1d181, #b98b37);
  color: #17120a;
}

.rb-page-hero {
  background:
    linear-gradient(110deg, rgba(211, 167, 74, .10), transparent 42%),
    radial-gradient(780px 390px at 7% 0%, rgba(90, 78, 142, .24), transparent 70%),
    #0d1018;
}
.rb-page-hero--media::before {
  inset: 0;
  opacity: .36;
  mask-image: linear-gradient(90deg, black, rgba(0,0,0,.76) 50%, transparent 90%);
  -webkit-mask-image: linear-gradient(90deg, black, rgba(0,0,0,.76) 50%, transparent 90%);
  background-image:
    linear-gradient(90deg, rgba(10, 12, 18, .96), rgba(10, 12, 18, .53) 54%, rgba(10, 12, 18, .08)),
    var(--rb-hero-media);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.rb-page-hero--media::after {
  right: 8%;
  bottom: -180px;
  width: 470px;
  height: 470px;
  border-color: rgba(236, 211, 148, .19);
  box-shadow: 0 0 0 50px rgba(236,211,148,.025), 0 0 0 100px rgba(236,211,148,.018);
}
.rb-page-hero h1,
.rb-section h2 { color: var(--rb-ivory); }
.rb-section--muted { background: linear-gradient(180deg, #11131c, #0c0e15); }

.rb-section .wrap { position: relative; }
.rb-action-card,
.rb-footer-cta,
.rb-deck-stage,
.rb-deck-readout,
.rb-synergy-card,
.rb-card-tile {
  border-color: rgba(236, 211, 148, .16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 52%),
    linear-gradient(120deg, rgba(216,180,94,.055), transparent 42%),
    var(--rb-panel);
}
.rb-action-card::after { background: var(--rb-gold); }
.rb-action-card > span { color: var(--rb-gold); }
.rb-action-card:hover,
.rb-synergy-card:hover,
.rb-synergy-card:target { border-color: rgba(236, 211, 148, .45); }
.rb-action-card,
.rb-synergy-card,
.rb-card-tile { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.rb-footer-cta { background: radial-gradient(500px 240px at 82% 100%, rgba(211,167,74,.18), transparent 72%), var(--rb-panel); }
.rb-trait { border-color: color-mix(in srgb, var(--trait) 54%, rgba(236,211,148,.22)); }

.rb-hub-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(236, 211, 148, .22);
  background: linear-gradient(135deg, rgba(255,255,255,.035), transparent 54%), var(--rb-panel);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 22px 54px rgba(0,0,0,.2);
}
.rb-hub-frame::before,
.rb-hub-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.rb-hub-frame::before { inset: 10px auto auto 10px; border-top: 1px solid rgba(244,216,139,.8); border-left: 1px solid rgba(244,216,139,.8); }
.rb-hub-frame::after { inset: auto 10px 10px auto; border-right: 1px solid rgba(244,216,139,.8); border-bottom: 1px solid rgba(244,216,139,.8); }

.rb-hub-gallery {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-auto-rows: 166px;
  gap: 16px;
  margin-top: 34px;
}
.rb-hub-gallery figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.rb-hub-gallery figure:first-child { grid-row: span 3; }
.rb-hub-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.rb-hub-gallery figure::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 43%, rgba(7,9,14,.94)); pointer-events: none; }
.rb-hub-gallery figcaption { position: absolute; z-index: 2; right: 24px; bottom: 21px; left: 24px; color: var(--rb-ivory); font-size: 14px; line-height: 1.45; }
.rb-hub-gallery figcaption b { display: block; margin-bottom: 4px; color: var(--rb-gold); font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.rb-hub-gallery figure:hover img { transform: scale(1.03); }

.rb-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.rb-mode { min-height: 220px; padding: 25px; border-radius: 12px; }
.rb-mode small { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(236,211,148,.26); border-radius: 99px; color: var(--rb-gold); font: 600 8px/1 'IBM Plex Mono', monospace; letter-spacing: .09em; text-transform: uppercase; }
.rb-mode small.is-soon { border-color: rgba(159, 150, 177, .42); color: #b9b0d4; }
.rb-mode h3 { margin: 18px 0 9px; color: var(--rb-ivory); font-size: 25px; }
.rb-mode p { margin: 0; color: var(--muted); line-height: 1.56; }

@media (max-width: 900px) {
  .rb-page-hero--media::before { opacity: .28; mask-image: linear-gradient(180deg, transparent, black 34%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, black 34%, transparent); }
  .rb-hub-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .rb-hub-gallery figure:first-child { grid-row: auto; min-height: 330px; }
  .rb-hub-gallery figure { min-height: 230px; }
  .rb-modes { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .rb-page-hero--media::before {
    background-image:
      linear-gradient(90deg, rgba(10, 12, 18, .96), rgba(10, 12, 18, .53) 54%, rgba(10, 12, 18, .08)),
      var(--rb-hero-media-mobile, var(--rb-hero-media));
  }
  .rb-subnav a::before { display: none; }
  .rb-hub-gallery { gap: 11px; margin-top: 25px; }
  .rb-hub-gallery figure:first-child, .rb-hub-gallery figure { min-height: 210px; }
  .rb-hub-gallery figcaption { right: 17px; bottom: 16px; left: 17px; font-size: 13px; }
  .rb-mode { min-height: 0; padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-hub-gallery img { transition: none; }
}
