/* Runeterra Atlas */
body[data-game='riftbound'] {
  --ink: #0b1628;
  --paper: #0e1b30;
  --sheet: #152741;
  --raised: #1c3451;
  --line: #395572;
  --text: #f2f6fc;
  --muted: #b6c8dd;
  --acid: #8be8d2;
  --cyan: #a6ddff;
  --alert: #ffb3aa;
  --atlas-gold: #f4cc7f;
  --atlas-radius: 14px;
  --atlas-shadow: 0 12px 30px #060e1b55;
  --body: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --mono: var(--body);
  background: radial-gradient(ellipse at 87% 19rem, #224160 0, transparent 47rem), var(--paper);
}

body[data-game='riftbound'] .frame { width: min(100% - 64px, 1380px); }
body[data-game='riftbound'] .workspace { padding-block: 39px 76px; }
body[data-game='riftbound'] .eyebrow { letter-spacing: .06em; }
body[data-game='riftbound'] .site-header {
  background: #0a1525f7;
  border-bottom: 1px solid #35516c;
  box-shadow: 0 7px 26px #050d1a48;
}
body[data-game='riftbound'] .header-row { min-height: 68px; }
body[data-game='riftbound'] .wordmark { gap: 9px; padding-block: 5px; }
body[data-game='riftbound'] .brand-copy { gap: 2px; }
body[data-game='riftbound'] #game-crest {
  width: 34px;
  height: 41px;
  background: url('assets/theme/riftbound-crest.svg') center / contain no-repeat;
}
body[data-game='riftbound'] #header-game-logo { width: 118px; max-width: 100%; height: auto; }
body[data-game='riftbound'] #wordmark-title { color: var(--text); font: 750 1rem var(--display); text-transform: none; }
body[data-game='riftbound'] .site-nav { align-items: center; gap: 4px; }
body[data-game='riftbound'] .site-nav a {
  min-height: 36px;
  padding: 6px clamp(9px, 1.15vw, 17px);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: 650 .86rem var(--body);
}
body[data-game='riftbound'] .site-nav .nav-index,
body[data-game='riftbound'] .site-nav a[aria-current]::after { display: none; }
body[data-game='riftbound'] .site-nav a .nav-label { display: inline; color: inherit; font: inherit; }
body[data-game='riftbound'] .site-nav a:is(:hover, [aria-current]) {
  color: var(--text);
  border-color: #3e6284;
  background: #1c3654;
}
body[data-game='riftbound'] .site-nav a[aria-current] { color: var(--cyan); }
body[data-game='riftbound'] .site-nav a b { border: 0; border-radius: 9px; background: #29445e; padding: 2px 5px; }
body[data-game='riftbound'] :is(.game-picker select, .key-button) { border-radius: 8px; background-color: var(--sheet); }
body[data-game='riftbound'] .game-picker { text-transform: none; letter-spacing: 0; }

/* Landing and domain entry points */
body[data-game='riftbound'] .hero { border-bottom: 1px solid #395b79; background: #0e2139; }
body[data-game='riftbound'] .hero-image {
  background: radial-gradient(ellipse 64% 116% at 81% 42%, #34637d 0, #203a5b 52%, transparent 85%),
    linear-gradient(110deg, #111f37, #152a49 62%, #253f61);
}
body[data-game='riftbound'] .hero-image::before,
body[data-game='riftbound'] .hero-image::after,
body[data-game='riftbound'] .hero .hero-reference { display: none; }
body[data-game='riftbound'] .hero-frame {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: 430px;
  gap: 30px;
}
body[data-game='riftbound'] .hero-copy { grid-area: 1 / 1; width: auto; padding: 35px 0 38px; }
body[data-game='riftbound'] #hero-label {
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  color: #c6e8fc;
  font: 700 .8rem var(--body);
  letter-spacing: .035em;
}
body[data-game='riftbound'] .hero .hero-title {
  margin: 0 0 15px;
  color: var(--text);
  font: 750 clamp(2.4rem, 5vw, 4.4rem)/.98 var(--display);
  letter-spacing: -.065em;
  text-transform: none;
}
body[data-game='riftbound'] #hero-game-logo { width: min(100%, clamp(238px, 27vw, 340px)); }
body[data-game='riftbound'] .hero-description { margin-bottom: 17px; color: #d6e4f1; max-width: 390px; line-height: 1.55; }
body[data-game='riftbound'] #hero-game-symbols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 365px);
  margin: 0 0 16px;
}
body[data-game='riftbound'] [data-value='Fury'] { --domain-tone: #ff797c; }
body[data-game='riftbound'] [data-value='Calm'] { --domain-tone: #9cd791; }
body[data-game='riftbound'] [data-value='Mind'] { --domain-tone: #75caff; }
body[data-game='riftbound'] [data-value='Body'] { --domain-tone: #ffb166; }
body[data-game='riftbound'] [data-value='Chaos'] { --domain-tone: #d7a8ff; }
body[data-game='riftbound'] [data-value='Order'] { --domain-tone: #f5d681; }
body[data-game='riftbound'] #hero-game-symbols > button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 51px;
  padding: 5px 2px;
  border: 1px solid color-mix(in srgb, var(--domain-tone) 37%, #2c435e);
  border-radius: 9px;
  background: color-mix(in srgb, var(--domain-tone) 10%, #102139);
  color: var(--domain-tone);
}
body[data-game='riftbound'] #hero-game-symbols > button::after {
  content: attr(data-value);
  font: 700 .66rem/1.1 var(--body);
}
body[data-game='riftbound'] #hero-game-symbols > button:enabled:hover {
  border-color: var(--domain-tone);
  background: color-mix(in srgb, var(--domain-tone) 21%, #102139);
}
body[data-game='riftbound'] #hero-game-symbols img { width: 23px; height: 23px; object-fit: contain; }
body[data-game='riftbound'] .action {
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 40px;
  padding-inline: 13px;
  font: 700 .83rem/1.2 var(--body);
  letter-spacing: 0;
  text-transform: none;
}
body[data-game='riftbound'] .action:not(.outline):hover { background: #b3f7e8; }
body[data-game='riftbound'] .action.outline { border-color: #4b6d8d; background: #1c3552; }
body[data-game='riftbound'] .action.outline:hover { border-color: var(--cyan); background: #2c4d6c; color: var(--text); }
body[data-game='riftbound'] .hero-action { background: var(--atlas-gold); color: var(--ink); }
body[data-game='riftbound'] .hero .hero-action:hover { background: #ffe2a4; }
body[data-game='riftbound'] #hero-motif {
  position: absolute;
  inset: 50% -5% auto auto;
  width: min(65%, 840px);
  aspect-ratio: 900 / 510;
  background: url('assets/theme/riftbound-atlas.svg') center / contain no-repeat;
  opacity: .77;
  transform: translateY(-45%);
}
body[data-game='riftbound'] #hero-motif::after {
  content: '';
  position: absolute;
  top: 37%;
  left: 51%;
  width: 19%;
  aspect-ratio: 120 / 140;
  transform: translate(-50%, -50%);
  background: url('assets/theme/riftbound-crest.svg') center / contain no-repeat;
  filter: drop-shadow(0 10px 15px #040d1cce);
}
body[data-game='riftbound'] .hero-frame:has(#hero-art:not([hidden]) img:not([hidden])) #hero-motif::after { opacity: 0; }
body[data-game='riftbound'] #hero-art {
  grid-area: 1 / 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  justify-self: center;
  width: min(100%, 490px);
  padding: 20px 12px 0;
}
body[data-game='riftbound'] .hero-art-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 6px 9px;
  border: 1px solid #6594b3;
  border-radius: 11px;
  background: linear-gradient(155deg, #294a66, #14243d 75%);
  box-shadow: var(--atlas-shadow);
  color: var(--text);
  text-align: center;
}
body[data-game='riftbound'] .hero-art-card:nth-child(2) { transform: translateY(-10px); border-color: var(--atlas-gold); }
body[data-game='riftbound'] .hero-art-card:is(:hover, :focus-visible) { border-color: var(--cyan); background: #294966; }
body[data-game='riftbound'] .hero-art-card .art { max-width: none; }
body[data-game='riftbound'] .hero-art-name { font: 700 .83rem/1.14 var(--body); overflow-wrap: anywhere; }
body[data-game='riftbound'] .hero-art-set { color: var(--muted); font: 600 .66rem/1.2 var(--body); }
body[data-game='riftbound'] .hero-art-credit {
  grid-column: 1 / -1;
  margin: 0;
  color: #def1ff;
  font: 650 .72rem/1.4 var(--body);
  text-align: center;
}
body[data-game='riftbound'] .status-strip { border: 0; border-bottom: 1px solid var(--line); background: #10243c; }
body[data-game='riftbound'] .status-row { min-height: 43px; column-gap: 23px; font: 650 .79rem/1.35 var(--body); letter-spacing: 0; }
body[data-game='riftbound'] .status-row > span:first-child { padding: 0; background: none; clip-path: none; color: var(--cyan); }
body[data-game='riftbound'] .status-light { display: none; }
body[data-game='riftbound'] .status-row b { color: var(--text); font-weight: 750; }

/* Portrait catalog */
body[data-game='riftbound'] .section-heading { align-items: end; padding-bottom: 16px; border-color: var(--line); background: none; }
body[data-game='riftbound'] .section-heading h2 {
  color: var(--text);
  font: 750 clamp(2.2rem, 4.6vw, 3.8rem)/1 var(--display);
  letter-spacing: -.058em;
  text-transform: none;
}
body[data-game='riftbound'] .section-kicker { color: var(--cyan); }
body[data-game='riftbound'] .section-kicker > span { display: none; }
body[data-game='riftbound'] .catalog { grid-template-columns: minmax(172px, 228px) minmax(0, 1fr); gap: 20px; }
body[data-game='riftbound'] .catalog > .catalog-search { grid-column: 1 / -1; }
body[data-game='riftbound'] .catalog-toolbar { min-height: 43px; padding-top: 0; }
body[data-game='riftbound'] :is(.filter-panel, .record, .card-tile, .community-zone, .market-row) {
  border-radius: var(--atlas-radius);
  background: var(--sheet);
}
body[data-game='riftbound'] .filter-panel { box-shadow: var(--atlas-shadow); }
body[data-game='riftbound'] :is(.filter-heading, .price-heading) { background: var(--raised); }
body[data-game='riftbound'] .filter-heading h3 { color: var(--text); text-transform: none; font-size: .91rem; }
body[data-game='riftbound'] .filter-label { color: var(--muted); font-size: .79rem; }
body[data-game='riftbound'] .filter-group select { min-height: 39px; }
body[data-game='riftbound'] :is(.filter-group select, .sort-label select, .crew-input input, .crew-input select, .crew-print, .pulse-search input) {
  border-radius: 8px;
  background: var(--ink);
}
body[data-game='riftbound'] .filter-foot { background: #172d47; }
body[data-game='riftbound'] .color-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-game='riftbound'] .color-option {
  width: 100%;
  min-height: 40px;
  border-radius: 9px;
  border-color: color-mix(in srgb, var(--domain-tone, var(--cyan)) 32%, var(--line));
  background: #10223a;
}
body[data-game='riftbound'] .color-option:is(:hover, [aria-pressed='true']) { background: #284665; border-color: var(--domain-tone, var(--cyan)); }
body[data-game='riftbound'] .searchbox {
  height: 51px;
  border: 1px solid #527493;
  border-radius: 10px;
  background: #132640;
}
body[data-game='riftbound'] .searchbox kbd { border-radius: 5px; }
body[data-game='riftbound'] :is(.catalog-mode, .view-switch) { gap: 3px; padding: 3px; border-radius: 9px; background: var(--ink); }
body[data-game='riftbound'] :is(.catalog-mode button, .view-switch .icon-button) { border: 0; border-radius: 6px; background: none; }
body[data-game='riftbound'] :is(.catalog-mode button, .view-switch .icon-button)[aria-pressed='true'] { background: #285071; color: #edf9ff; }
body[data-game='riftbound'] :is(.active-filters button, .facet-button, .label-chip) { border-radius: 8px; }
body[data-game='riftbound'] .card-results:not(.list) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: 14px; }
body[data-game='riftbound'] .card-tile { box-shadow: 0 7px 16px #08111f4d; }
body[data-game='riftbound'] .card-tile:is(:hover, :focus-within),
body[data-game='riftbound'] .variant-card:is(:hover, [aria-current='true']) { border-color: #83c8f5; }
body[data-game='riftbound'] .card-open { border-radius: inherit; }
body[data-game='riftbound'] .tile-art {
  padding: 10px 10px 8px;
  border-radius: 13px 13px 0 0;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--card-color, #829cc7) 25%, #273c58), #101f34 88%);
}
body[data-game='riftbound'] .tile-art::before,
body[data-game='riftbound'] .tile-art::after { content: none; }
body[data-game='riftbound'] .tile-info { padding: 10px 11px 13px; }
body[data-game='riftbound'] .tile-name { font: 740 1rem/1.2 var(--display); }
body[data-game='riftbound'] .tile-id { text-transform: none; letter-spacing: 0; font-size: .72rem; }
body[data-game='riftbound'] .tile-price.priced { color: var(--atlas-gold); }
body[data-game='riftbound'] .tile-actions .icon-button {
  width: 31px;
  height: 30px;
  color: #dcecff;
  border: 1px solid #56789a;
  border-radius: 7px;
  background: #0d1d34eb;
}
body[data-game='riftbound'] .tile-actions .icon-button:is(:hover, [aria-pressed='true']) { background: var(--cyan); color: var(--ink); }
body[data-game='riftbound'] .list .tile-art { padding: 4px 7px; border-radius: 12px 0 0 12px; }

/* Deck workbench */
body[data-game='riftbound'] .crew-toolbar {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 11px 15px;
  padding: 18px;
  background: #1b3552;
}
body[data-game='riftbound'] .crew-workspace { grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 18px; }
body[data-game='riftbound'] :is(.crew-catalog, .crew-deck) { box-shadow: var(--atlas-shadow); }
body[data-game='riftbound'] .crew-shell h3 { font: 750 clamp(1.18rem, 2.3vw, 1.52rem)/1.15 var(--display); letter-spacing: -.025em; }
body[data-game='riftbound'] .crew-shell h4 { color: var(--text); font: 720 .91rem/1.25 var(--body); }
body[data-game='riftbound'] .crew-card-row { min-height: 59px; padding-inline: 6px; }
body[data-game='riftbound'] .crew-card-row:nth-child(even) { background: #12233a; }
body[data-game='riftbound'] .crew-card-row .icon-button { border: 1px solid #56799b; border-radius: 8px; background: #24486a; }
body[data-game='riftbound'] .crew-card-row .icon-button:hover { color: var(--ink); background: var(--cyan); }
body[data-game='riftbound'] .crew-thumb { width: 41px; border-radius: 5px; }
body[data-game='riftbound'] .crew-results { scrollbar-color: #577797 var(--ink); scrollbar-width: thin; }
body[data-game='riftbound'] .crew-summary { padding: 10px; border-radius: 10px; background: #1b3553; }
body[data-game='riftbound'] .crew-counts > span {
  padding: 4px 7px;
  border: 1px solid #40617f;
  border-radius: 7px;
  background: #132941;
  color: var(--text);
  font-size: .76rem;
}
body[data-game='riftbound'] .crew-zones { display: grid; gap: 8px; }
body[data-game='riftbound'] .crew-zone {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #112139;
}
body[data-game='riftbound'] .crew-zone h4 { margin: 0; }
body[data-game='riftbound'] .crew-zone > .crew-note { margin: 5px 0 0; }
body[data-game='riftbound'] .crew-zone[data-zone='legend'] { border-color: #a38352; background: #292b3c; }
body[data-game='riftbound'] .crew-zone[data-zone='main'] { border-color: #6389ad; }
body[data-game='riftbound'] :is(.crew-pricing, .crew-validation) {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #1a304a;
}
body[data-game='riftbound'] :is(.crew-pricing, .crew-validation) h4 { margin-top: 0; }
body[data-game='riftbound'] .crew-pricing .crew-section-label strong { color: var(--atlas-gold); font-size: 1rem; }

/* Market and card detail */
body[data-game='riftbound'] .market-pulse { border-color: var(--line); border-radius: var(--atlas-radius); background: #132640; box-shadow: var(--atlas-shadow); }
body[data-game='riftbound'] :is(.pulse-panel, .pulse-metric) { border-radius: 10px; background: #1a3550; }
body[data-game='riftbound'] .pulse-metric > span { text-transform: none; letter-spacing: 0; font-size: .79rem; }
body[data-game='riftbound'] .pulse-metric > b,
body[data-game='riftbound'] .market-price strong { color: var(--atlas-gold); font-variant-numeric: tabular-nums; }
body[data-game='riftbound'] .pulse-top-card img { width: 40px; border-radius: 4px; }
body[data-game='riftbound'] .market-row { padding: 8px 14px; }
body[data-game='riftbound'] .market-card img { width: 45px; border-radius: 5px; }
body[data-game='riftbound'] .market-price strong { font-size: 1rem; }
body[data-game='riftbound'] .overlay { border-color: #5f81a2; border-radius: 16px; background: #132640; box-shadow: 0 18px 74px #040a14dc; }
body[data-game='riftbound'] .overlay::backdrop { background: #061324d8; }
body[data-game='riftbound'] .overlay-header { background: #1a3551; }
body[data-game='riftbound'] .overlay-header .eyebrow::before { content: none; }
body[data-game='riftbound'] .overlay-header .icon-button { border-radius: 8px; }
body[data-game='riftbound'] .overlay-inner h2 { color: var(--text); letter-spacing: -.055em; }
body[data-game='riftbound'] .dossier-art { border-color: #486a88; border-radius: 12px; background: radial-gradient(ellipse at 50% 34%, #2b4c6b, #10223a); }
body[data-game='riftbound'] :is(.variant-card, .price-panel) { border-radius: 9px; }
body[data-game='riftbound'] .price-heading strong { color: var(--atlas-gold); text-transform: none; }
body[data-game='riftbound'] .stat-list { gap: 6px; border: 0; }
body[data-game='riftbound'] .stat-list > div { border: 1px solid var(--line); border-radius: 8px; background: #1a3450; }
body[data-game='riftbound'] .stat-list dd { font-size: 1.12rem; }
body[data-game='riftbound'] .site-footer { background: #0a1525; }

@media (min-width: 1010px) {
  body[data-game='riftbound'] .crew-zones:has(.crew-zone[data-zone]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-game='riftbound'] .crew-zone[data-zone='main'] { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  body[data-game='riftbound'] .frame { width: calc(100% - 42px); }
  body[data-game='riftbound'] .catalog { grid-template-columns: 172px minmax(0, 1fr); gap: 14px; }
  body[data-game='riftbound'] .card-results:not(.list) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 10px; }
  body[data-game='riftbound'] .status-row { column-gap: 13px; }
}

@media (max-width: 690px) {
  body[data-game='riftbound'] .frame { width: calc(100% - 28px); }
  body[data-game='riftbound'] .workspace { padding-block: 28px 54px; }
  body[data-game='riftbound'] .site-nav a { padding-inline: 6px; font-size: .79rem; }
  body[data-game='riftbound'] #header-game-logo { width: 96px; }
  body[data-game='riftbound'] .hero-frame { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  body[data-game='riftbound'] .hero-copy { padding: 25px 0 9px; }
  body[data-game='riftbound'] #hero-motif {
    position: relative;
    inset: auto;
    grid-area: 2 / 1;
    width: min(100%, 520px);
    justify-self: center;
    transform: none;
  }
  body[data-game='riftbound'] #hero-art {
    grid-area: 2 / 1;
    width: min(94%, 390px);
    gap: 7px;
    padding: 17px 0 13px;
  }
  body[data-game='riftbound'] .hero-art-card { padding: 4px 4px 6px; }
  body[data-game='riftbound'] .hero-art-name { font-size: .71rem; }
  body[data-game='riftbound'] .hero-art-set, body[data-game='riftbound'] .hero-art-credit { font-size: .62rem; }
  body[data-game='riftbound'] .section-heading { align-items: start; }
  body[data-game='riftbound'] .catalog { display: flex; flex-direction: column; gap: 9px; }
  body[data-game='riftbound'] .color-options { flex: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body[data-game='riftbound'] .card-results:not(.list) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 8px; }
  body[data-game='riftbound'] .tile-art { padding: 7px 7px 5px; }
  body[data-game='riftbound'] .tile-info { padding: 8px 8px 10px; }
  body[data-game='riftbound'] .crew-toolbar, body[data-game='riftbound'] .crew-workspace { grid-template-columns: minmax(0, 1fr); }
  body[data-game='riftbound'] .crew-toolbar { padding: 12px; }
  body[data-game='riftbound'] .crew-workspace { gap: 12px; }
  body[data-game='riftbound'] .status-row { font-size: .72rem; gap: 5px 9px; }
}

@media (max-width: 420px) {
  body[data-game='riftbound'] .crew-catalog-controls { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 355px) {
  body[data-game='riftbound'] .site-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px; }
  body[data-game='riftbound'] .site-nav a { padding-inline: 4px; font-size: .72rem; }
  body[data-game='riftbound'] :is(.workspace, .screen, #search) { scroll-margin-top: 132px; }
  body[data-game='riftbound'] #header-game-logo { width: 84px; }
  body[data-game='riftbound'] #hero-game-symbols { gap: 4px; }
  body[data-game='riftbound'] #hero-game-symbols > button::after { font-size: .61rem; }
  body[data-game='riftbound'] .hero-actions { gap: 6px; }
  body[data-game='riftbound'] .hero .action { padding-inline: 9px; font-size: .77rem; }
}
