/* ============================================================
   RELIC BOOK · relicbook.css   (with relicbook.js)
   The relic collection in three looks, one switch for every surface
   (localStorage bn_relic_look, ?relook=, the Looks HUD): Classic is
   the page as it shipped and draws nothing here.
     Book    an open book, 8 cards a page, page flips, tabs down the side,
             the deck as strips with the n/30 counter
     Grid    one scrolling grid, filter chips across the top, the deck as a
             side column, cards fan into it when added
     Binder  a ring binder of 3x3 sleeves, cards tilted in their pockets,
             the sheet flips to turn the page, the deck as a stack that fans open
   Every relic is the R2 "Stone and steel" relic card and every back the B5
   "Night (loading screen)" back, lifted from the paper-arena pickers
   (parthenon.css html[data-rs="r2"], relicback.css html[data-rb="b5"]).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Alegreya+Sans:wght@400;500;700;800&display=swap');

.rbk {
  --rbk-fd: 'Cinzel', 'Cinzel Decorative', serif;
  --rbk-fu: 'Alegreya Sans', system-ui, sans-serif;
  --rbk-steel: #25282c; --rbk-ink: #0b0c0e;
  --rbk-cream: #fff3d4; --rbk-meta: #d8cfb6; --rbk-desc: #efe6cf;
  --rbk-gold: #f0d890; --rbk-gold-d: #b5853a;
  position: relative; font-family: var(--rbk-fu); color: var(--rbk-desc);
  -webkit-tap-highlight-color: transparent;
}
.rbk *, .rbk *::before, .rbk *::after, .rbk-ov *, .rbk-fly { box-sizing: border-box; }
:where(.rbk) button { font: inherit; color: inherit; }
.rbk:focus, .rbk-ov-in:focus { outline: none; }
.rbk-dockhost { margin: 0 0 10px; }

/* ================================================================ R2 · the relic card: stone in a dark steel frame */
.rbk-card {
  position: relative; container-type: inline-size; display: block; width: 100%; aspect-ratio: 5 / 7; min-width: 0;
  padding: 0; overflow: hidden; text-align: left; user-select: none; -webkit-user-select: none;
  background: linear-gradient(180deg, var(--soft, transparent) 0, transparent 42%), linear-gradient(180deg, #8d8678 0, #6f695c 46%, #4a463e 100%);
  border: 3px solid var(--rbk-steel, #25282c); border-radius: 10px;
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 4px #3d3a33, inset 0 0 0 5px #14110d, inset 0 6px 9px -3px rgba(255, 244, 214, .16),
              inset 0 -10px 16px rgba(0, 0, 0, .34), 0 0 0 1px #0b0c0e, 0 7px 16px rgba(0, 0, 0, .65);
  color: #efe6cf; font-family: 'Alegreya Sans', system-ui, sans-serif;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
/* the face carries the padding: a container's own padding cannot be in its own cqw */
.rbk-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: stretch; padding: 7cqw 7cqw 6cqw; }
.rbk-num {
  position: absolute; left: 4.5cqw; top: 4.5cqw; z-index: 2;
  width: 14cqw; height: 14cqw; border-radius: 50%; display: grid; place-items: center;
  font: 900 7.2cqw/1 'Alegreya Sans', system-ui, sans-serif; color: #ece3cb;
  background: #15120e; border: 1px solid #5d626a; box-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.rbk-ring {
  position: relative; flex: 0 0 auto; width: 31cqw; height: 31cqw; margin: 1.5cqw 0 0 3.5cqw;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #3b3127 0, #1a1510 72%);
  box-shadow: inset 0 0 0 2px var(--tint, #c1b9a6), inset 0 0 9px rgba(0, 0, 0, .6), 0 0 0 2px #958e7d, 0 0 0 3px #4a463e,
              0 0 0 4px #0f1114, 0 0 0 6px #2c2f34, 0 0 0 7px #0b0c0e, 0 4px 8px rgba(0, 0, 0, .55);
}
.rbk-gl { font-size: 14cqw; line-height: 1; color: var(--tint); text-shadow: 0 0 7px var(--soft), 0 1px 0 #000; }
.rbk-slot {
  align-self: flex-start; margin-top: 5cqw; padding: .8cqw 2.6cqw .6cqw; border-radius: 2px;
  font: 800 4.7cqw/1.15 'Alegreya Sans', system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase;
  color: #fff3d4; background: color-mix(in srgb, var(--tint) 62%, #14110d); border: 1px solid rgba(0, 0, 0, .45);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.rbk-name {
  margin-top: 1.8cqw; font: 700 7.6cqw/1.12 'Cinzel', 'Cinzel Decorative', serif; letter-spacing: .03em; text-transform: uppercase;
  color: #fff3d4; text-shadow: 0 1px 0 rgba(0, 0, 0, .75);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.rbk-desc {
  flex: 1 1 auto; min-height: 0; margin: 2.2cqw 0 2.4cqw; text-align: center;
  font-size: 6.5cqw; line-height: 1.3; color: #efe6cf; text-shadow: 0 1px 0 rgba(0, 0, 0, .75);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
.rbk-desc b { font-weight: 800; color: #fff; }
.rbk-desc .k-hp { color: #a6eeb2; } .rbk-desc .k-mana { color: #9fd6ff; } .rbk-desc .k-shield { color: #b6e2ff; }
.rbk-desc .k-poison { color: #c6ee80; } .rbk-desc .k-momentum { color: #f0d890; } .rbk-desc .k-cc { color: #e2c8f6; }
.rbk-desc .k-life { color: #ffd9a0; }
.rbk-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 2cqw; margin-top: auto; padding: 2.4cqw 3cqw;
  background: linear-gradient(180deg, #25221d, #181612); border: 1px solid #0b0c0e; border-radius: 5px;
  box-shadow: inset 0 0 0 1px #4a463e, inset 0 3px 5px rgba(0, 0, 0, .6);
  font: 800 4.6cqw/1 'Alegreya Sans', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #d8cfb6;
  white-space: nowrap;
}
.rbk-foot .rbk-cp { color: #fff3d4; }
.rbk-tier i { font-style: normal; color: var(--tint); letter-spacing: 0; margin-right: 1.4cqw; }
/* small cards (a binder sleeve, a fan, the arena dock) keep the name and fewer lines */
@container (max-width: 150px) {
  .rbk-desc { -webkit-line-clamp: 4; line-clamp: 4; font-size: 7cqw; }
  .rbk-slot { font-size: 5.4cqw; }
}
@container (max-width: 112px) {
  .rbk-desc { display: none; }
  .rbk-name { font-size: 9cqw; -webkit-line-clamp: 3; line-clamp: 3; }
  .rbk-foot { font-size: 6cqw; }
}

/* states */
.rbk-card.is-press { cursor: pointer; }
/* a touch screen keeps :hover on the last card tapped: lifts and leans only where there is a pointer */
@media (hover: hover) { .rbk-card.is-press:hover { transform: translateY(-3px); filter: brightness(1.08); } }
.rbk-card.is-press:active { transform: translateY(-1px) scale(.985); }
.rbk-card.is-has .rbk-num { background: linear-gradient(180deg, #f2d07c, #b5853a); color: #2a1a0c; border-color: #5a3a10; }
.rbk-card.is-max { filter: saturate(.5) brightness(.7); }
@media (hover: hover) { .rbk-card.is-max:hover { transform: none; filter: saturate(.5) brightness(.75); } }
.rbk-card.is-dead { filter: saturate(.45) brightness(.82); }
.rbk-card.is-on {
  transform: translateY(-3px); filter: none;
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 4px #3d3a33, inset 0 0 0 5px #14110d, 0 0 0 1px #0b0c0e, 0 0 0 4px #f0d890, 0 0 24px rgba(240, 216, 144, .55), 0 7px 16px rgba(0, 0, 0, .65);
}
.rbk-card.is-on .rbk-num { background: linear-gradient(180deg, #f2d07c, #b5853a); color: #2a1a0c; border-color: #5a3a10; }
.rbk-stamp {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-12deg); z-index: 3;
  padding: 1.6cqw 4cqw; border: 2px solid rgba(255, 138, 122, .85); border-radius: 3px; background: rgba(20, 6, 4, .55);
  font: 800 6cqw/1 'Cinzel', serif; letter-spacing: .16em; text-transform: uppercase; color: #ffb3a8; white-space: nowrap;
}

/* ================================================================ B5 · the card back: Night, the loading screen */
.rbk-back {
  position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 10px; container-type: inline-size;
  background:
    url("../marketing/logo/and.png") 50% 34% / 46% auto no-repeat,
    url("../marketing/logo/blood.png") 50% 66% / 38% auto no-repeat,
    url("../marketing/logo/nectar.png") 50% 75% / 42% auto no-repeat,
    linear-gradient(90deg, transparent, rgba(200, 170, 110, .9), transparent) 50% 88% / 44% 2px no-repeat,
    radial-gradient(ellipse at 50% 38%, #0d2036 0%, #02060c 100%);
  box-shadow: inset 0 0 0 1px rgba(200, 170, 110, .8), inset 0 0 0 5px #02060c, inset 0 0 0 6px rgba(200, 170, 110, .35), 0 7px 16px rgba(0, 0, 0, .6);
}
.rbk-back-lab {
  position: absolute; left: 6%; right: 6%; bottom: 5%; padding: 2cqw 2cqw; border-radius: 3px; text-align: center;
  background: rgba(2, 6, 12, .85); box-shadow: inset 0 0 0 1px rgba(200, 170, 110, .45);
  font: 700 6cqw/1.15 'Cinzel', serif; letter-spacing: .06em; text-transform: uppercase; color: #d8cfb6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rbk-back-lab small { display: block; margin-top: 1cqw; font: 800 4.6cqw/1 'Alegreya Sans', sans-serif; letter-spacing: .16em; color: #ffb3a8; }
.rbk-hole { width: 100%; aspect-ratio: 5 / 7; border-radius: 10px; border: 1px dashed rgba(216, 207, 182, .14); background: rgba(0, 0, 0, .12); }

/* ================================================================ shared bits: search, chips, the deck column, strips */
.rbk-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rbk-q {
  flex: 1 1 220px; min-width: 0; padding: 8px 12px; border-radius: 4px; outline: none;
  background: linear-gradient(180deg, #181612, #25221d); border: 1px solid #0b0c0e; box-shadow: inset 0 0 0 1px #4a463e, inset 0 2px 4px rgba(0, 0, 0, .6);
  color: #fff3d4; font: 500 13px/1.2 var(--rbk-fu);
}
.rbk-q:focus { box-shadow: inset 0 0 0 1px #958e7d, inset 0 2px 4px rgba(0, 0, 0, .6); }
.rbk-q::placeholder { color: #8a8270; }
.rbk-hint { font-size: 12px; color: #a9a08a; }
.rbk-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rbk-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 6px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #2c2f34, #1d2024); border: 1px solid #0b0c0e; box-shadow: inset 0 0 0 1px #434850, 0 2px 4px rgba(0, 0, 0, .45);
  color: #d8cfb6; font: 800 10px/1 var(--rbk-fu); letter-spacing: .16em; text-transform: uppercase;
}
.rbk-chip:hover { color: #fff3d4; }
.rbk-chip .d { width: 8px; height: 8px; border-radius: 50%; background: var(--tint, #c1b9a6); box-shadow: 0 0 6px var(--soft, transparent); }
.rbk-chip .n { color: #8a8270; letter-spacing: 0; }
.rbk-chip.on { background: linear-gradient(180deg, #c1b9a6, #7d766a); color: #14110d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .5); }
.rbk-chip.on .n { color: #3d3a33; }
.rbk-sep { width: 1px; height: 20px; background: rgba(216, 207, 182, .18); margin: 0 4px; }

.rbk-deck {
  position: sticky; top: 8px; display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - 110px);
  padding: 12px 12px 10px; border-radius: 10px;
  background: linear-gradient(180deg, #2a2722, #15130f); border: 3px solid #25282c;
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 4px #34312b, inset 0 0 0 5px #14110d, 0 0 0 1px #0b0c0e, 0 10px 24px rgba(0, 0, 0, .55);
}
.rbk-dhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 2px 8px; }
.rbk-dname { min-width: 0; font: 700 12px/1.2 var(--rbk-fd); letter-spacing: .12em; text-transform: uppercase; color: #fff3d4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbk-n { flex: 0 0 auto; font: 800 24px/1 var(--rbk-fd); color: #f0d890; text-shadow: 0 1px 0 #000; }
.rbk-n small { font-size: 13px; color: #a9a08a; }
.rbk-n.full { color: #7fe7dc; }
.rbk-meter { height: 5px; margin: 0 2px 10px; border-radius: 3px; overflow: hidden; background: #0b0c0e; box-shadow: inset 0 0 0 1px #34312b; }
.rbk-meter i { display: block; height: 100%; background: linear-gradient(90deg, #7d766a, #f0d890); transition: width .25s ease; }
.rbk-dsub { font-size: 11.5px; color: #a9a08a; margin: -4px 2px 10px; line-height: 1.35; }
.rbk-strips { flex: 1 1 auto; min-height: 40px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.rbk-ghead { display: flex; gap: 8px; align-items: baseline; padding: 6px 2px 5px; font: 700 9.5px/1 var(--rbk-fd); letter-spacing: .2em; text-transform: uppercase; color: var(--tint, #c1b9a6); }
.rbk-ghead .n { color: #8a8270; font-family: var(--rbk-fu); }
.rbk-strip {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; margin: 0 0 4px; padding: 0 6px 0 4px;
  border-radius: 4px; border: 1px solid #0b0c0e; text-align: left; overflow: hidden;
  background: linear-gradient(90deg, #6f695c 0, #4a463e 52%, color-mix(in srgb, var(--tint) 46%, #2a2722) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .12), inset 0 -7px 10px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .5);
  color: #fff3d4; font: 700 11.5px/1 var(--rbk-fd); letter-spacing: .03em; text-transform: uppercase;
}
button.rbk-strip { cursor: pointer; }
button.rbk-strip:hover { filter: brightness(1.12); }
.rbk-strip .g {
  flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--tint);
  background: radial-gradient(circle at 50% 40%, #3b3127, #15110c);
  box-shadow: inset 0 0 0 2px var(--tint), 0 0 0 1px #958e7d, 0 0 0 2px #0b0c0e;
}
.rbk-strip .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0, 0, 0, .85); }
.rbk-strip .x {
  flex: 0 0 auto; min-width: 26px; padding: 4px 5px 3px; border-radius: 3px; text-align: center;
  background: #15120e; border: 1px solid #5d626a; color: #f0d890; font: 800 11px/1 var(--rbk-fu); letter-spacing: 0;
}
.rbk-strip .x s { color: #8a8270; margin-left: 3px; }
button.rbk-strip:hover .x { color: #ff9f90; }
.rbk-strip.is-spent { filter: grayscale(.85) brightness(.62); }
.rbk-strip.is-spent .nm { text-decoration: line-through; text-decoration-color: rgba(255, 179, 168, .7); }
.rbk-strip.rbk-in { animation: rbk-fanin .45s cubic-bezier(.2, .8, .25, 1.15); transform-origin: 0 100%; }
@keyframes rbk-fanin { from { transform: translateX(34px) rotate(9deg); filter: brightness(1.7); } }
.rbk-empty { padding: 18px 8px; text-align: center; color: #8a8270; font-size: 12.5px; line-height: 1.5; }
.rbk-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(216, 207, 182, .12); }
.rbk-btn {
  flex: 1 1 auto; padding: 8px 10px 7px; border-radius: 4px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #c1b9a6, #7d766a); border: 1px solid #0b0c0e; color: #14110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .5);
  font: 800 10px/1 var(--rbk-fu); letter-spacing: .18em; text-transform: uppercase;
}
.rbk-btn:hover:not(:disabled) { filter: brightness(1.1); }
.rbk-btn:disabled { opacity: .45; cursor: not-allowed; }
.rbk-btn.ghost { background: linear-gradient(180deg, #2c2f34, #1d2024); color: #d8cfb6; box-shadow: inset 0 0 0 1px #434850, 0 2px 4px rgba(0, 0, 0, .45); }

/* the flying copy, from the card you pressed to its strip (or the stack) */
.rbk-fly { position: fixed; z-index: 2147483600; pointer-events: none; margin: 0; }
.rbk-fly .rbk-card { box-shadow: 0 14px 34px rgba(0, 0, 0, .7); }

/* ================================================================ BOOK */
.rbk-book { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 18px; align-items: start; }
.rbk.is-narrow .rbk-book { grid-template-columns: minmax(0, 1fr); }
.rbk.is-narrow .rbk-book .rbk-deck { position: static; max-height: 46vh; order: -1; }
.rbk-tome {
  position: relative; max-width: 1040px; padding: 16px 46px 40px 16px; border-radius: 14px;
  background:
    radial-gradient(ellipse at 20% 0, rgba(255, 220, 170, .06), transparent 60%),
    repeating-linear-gradient(35deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #3d2a1b, #22160e);
  box-shadow: inset 0 0 0 2px #120b06, inset 0 0 0 5px #5a3d24, inset 0 0 0 6px #120b06, inset 0 0 0 9px rgba(200, 170, 110, .18),
              0 0 0 1px #0b0c0e, 0 20px 44px rgba(0, 0, 0, .62);
}
/* steel corner caps, the R2 frame's metal */
.rbk-tome::before, .rbk-tome::after {
  content: ''; position: absolute; width: 34px; height: 34px; pointer-events: none;
  background: linear-gradient(135deg, #8c939c, #3b3f45 60%, #25282c); box-shadow: inset 0 0 0 1px #0b0c0e, 0 2px 4px rgba(0, 0, 0, .6);
}
.rbk-tome::before { left: -3px; top: -3px; border-radius: 14px 0 34px 0; }
.rbk-tome::after { left: -3px; bottom: -3px; border-radius: 0 34px 0 14px; }
.rbk-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; perspective: 2400px; border-radius: 4px; box-shadow: 0 2px 0 #c8bda3, 0 3px 0 #2a2117, 0 5px 0 #b7ab8f, 0 6px 0 #241c12, 0 9px 12px rgba(0, 0, 0, .5); }
.rbk.is-narrow .rbk-spread { grid-template-columns: 1fr; }
.rbk-page {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start;
  padding: 20px 26px 30px 22px; min-width: 0;
  background: linear-gradient(90deg, #4a3f30 0, #574a38 8%, #52463a 70%, #3a3026 94%, #2a221a 100%);
}
.rbk-page.r { padding: 20px 22px 30px 26px; background: linear-gradient(270deg, #4a3f30 0, #574a38 8%, #52463a 70%, #3a3026 94%, #2a221a 100%); }
.rbk-page.l { border-radius: 4px 0 0 4px; } .rbk-page.r { border-radius: 0 4px 4px 0; }
.rbk.is-narrow .rbk-page.l { border-radius: 4px; }
.rbk-page::after { content: attr(data-pn); position: absolute; bottom: 9px; left: 0; right: 0; text-align: center; font: 700 10px/1 var(--rbk-fd); letter-spacing: .2em; color: rgba(255, 243, 212, .35); }
.rbk-page-kind { position: absolute; top: 5px; left: 22px; font: 700 9px/1 var(--rbk-fd); letter-spacing: .24em; text-transform: uppercase; color: var(--tint); opacity: .8; }
.rbk-spread::after {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 46px; transform: translateX(-50%); pointer-events: none; z-index: 6;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .34) 44%, rgba(0, 0, 0, .55) 49%, rgba(255, 240, 210, .07) 50%, rgba(0, 0, 0, .55) 51%, rgba(0, 0, 0, .34) 56%, transparent);
}
.rbk.is-narrow .rbk-spread::after { display: none; }
.rbk-tabs { position: absolute; right: -3px; top: 30px; display: flex; flex-direction: column; gap: 7px; z-index: 7; }
.rbk-tab {
  width: 38px; padding: 12px 0 10px; cursor: pointer; border-radius: 0 7px 7px 0; border: 1px solid #0b0c0e; border-left: 0;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, #1d2024, #2c2f34 60%, #3b3f45); box-shadow: inset 3px 0 0 var(--tint), inset 0 0 0 1px #434850, 2px 3px 6px rgba(0, 0, 0, .55);
  color: #d8cfb6; font: 700 10px/1 var(--rbk-fd); letter-spacing: .2em; text-transform: uppercase;
  transition: transform .15s ease, color .15s ease;
}
.rbk-tab .g { writing-mode: horizontal-tb; color: var(--tint); font-size: 13px; }
.rbk-tab .n { writing-mode: horizontal-tb; color: #8a8270; font-family: var(--rbk-fu); font-size: 10px; letter-spacing: 0; }
.rbk-tab:hover { color: #fff3d4; }
@media (hover: hover) { .rbk-tab:hover { transform: translateX(3px); } }
.rbk-tab.on { color: #14110d; background: linear-gradient(90deg, #7d766a, #c1b9a6); transform: translateX(6px); }
.rbk-tab.on .n { color: #3d3a33; }
.rbk-tab:disabled { opacity: .35; cursor: default; transform: none; }
.rbk-turn {
  position: absolute; bottom: 7px; z-index: 7; width: 30px; height: 26px; border-radius: 13px; cursor: pointer;
  background: linear-gradient(180deg, #c1b9a6, #7d766a); border: 1px solid #0b0c0e; color: #14110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .55); font: 900 16px/1 var(--rbk-fu);
}
.rbk-turn.prev { left: 18px; } .rbk-turn.next { right: 50px; }
.rbk-turn:disabled { opacity: .3; cursor: default; }
.rbk-pageno { position: absolute; left: 0; right: 30px; bottom: 13px; text-align: center; pointer-events: none; font: 700 10px/1 var(--rbk-fd); letter-spacing: .24em; text-transform: uppercase; color: #c8aa6e; }
/* the turning leaf: a front and a back page, hinged on the gutter */
.rbk-leaf { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; transform-style: preserve-3d; pointer-events: none; }
.rbk-leaf.next { left: 50%; transform-origin: 0 50%; }
.rbk-leaf.prev { left: 0; transform-origin: 100% 50%; }
.rbk-leaf > .rbk-page, .rbk-leaf > .rbk-sheet { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rbk-leaf > .rbk-back-face { transform: rotateY(180deg); }
.rbk-cover { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 4; pointer-events: none; }
.rbk-cover.l { left: 0; } .rbk-cover.r { left: 50%; }
.rbk-cover > * { position: absolute; inset: 0; }
.rbk-leaf.next > :first-child, .rbk-leaf.prev > :first-child { box-shadow: 0 0 30px rgba(0, 0, 0, .35); }
/* the binder's two sheets stand 42px apart, the rings between them: the sheet turns on the rings */
.rbk-sheets > .rbk-leaf, .rbk-sheets > .rbk-cover { width: calc(50% - 21px); }
.rbk-sheets > .rbk-leaf.next, .rbk-sheets > .rbk-cover.r { left: calc(50% + 21px); }
.rbk-sheets > .rbk-leaf.next { transform-origin: -21px 50%; }
.rbk-sheets > .rbk-leaf.prev { transform-origin: calc(100% + 21px) 50%; }

/* ================================================================ GRID */
.rbk-gridlook { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 18px; align-items: start; }
.rbk.is-narrow .rbk-gridlook { grid-template-columns: minmax(0, 1fr); }
.rbk.is-narrow .rbk-gridlook .rbk-deck { position: static; max-height: 46vh; order: -1; }
.rbk-gridwrap {
  min-width: 0; padding: 14px; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0, rgba(13, 32, 54, .7), rgba(2, 6, 12, .6) 70%);
  box-shadow: inset 0 0 0 1px rgba(200, 170, 110, .22), inset 0 0 40px rgba(0, 0, 0, .5);
}
.rbk-gridwrap .rbk-chips { margin: 0 0 12px; }
.rbk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; padding: 4px 6px 10px 4px; max-height: var(--rbk-h, none); overflow-y: auto; overscroll-behavior: contain; }
.rbk-cards.is-dealing > * { animation: rbk-deal .4s cubic-bezier(.2, .8, .25, 1) backwards; animation-delay: calc(var(--i, 0) * 16ms); }
@keyframes rbk-deal { from { transform: translateY(16px) rotate(-3deg) scale(.96); filter: brightness(.5); } }
.rbk-cards .rbk-none, .rbk-sheet .rbk-none { grid-column: 1 / -1; }
.rbk-none { padding: 26px 10px; text-align: center; color: #8a8270; font-size: 13px; }

/* ================================================================ BINDER */
.rbk-binder { display: grid; grid-template-columns: minmax(0, 1fr) 214px; gap: 16px; align-items: start; }
.rbk-bind { min-height: 520px; }
.rbk.is-narrow .rbk-binder { grid-template-columns: minmax(0, 1fr); }
.rbk.is-narrow .rbk-binder .rbk-deck { position: static; order: -1; }
.rbk-bind {
  position: relative; padding: 18px 18px 44px; border-radius: 18px;
  background: radial-gradient(ellipse at 30% 0, #16304c, #07101b 70%);
  box-shadow: inset 0 0 0 2px #02060c, inset 0 0 0 4px #10243a, inset 0 2px 0 4px rgba(255, 255, 255, .06), 0 0 0 1px #02060c, 0 20px 44px rgba(0, 0, 0, .62);
}
.rbk-bind::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(200, 170, 110, .32); border-radius: 13px; pointer-events: none; }
.rbk-sheets { position: relative; display: grid; grid-template-columns: repeat(var(--sheets, 2), minmax(0, 1fr)); gap: 42px; perspective: 2400px; max-width: calc(var(--sheets, 2) * 560px + 42px); margin: 0 auto; }
.rbk-sheet {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-content: start; min-width: 0;
  padding: 12px; border-radius: 7px;
  background: linear-gradient(180deg, #111c2a, #0a121c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 3px 0 #050a10, 0 5px 10px rgba(0, 0, 0, .45);
}
.rbk-sheet::after { content: attr(data-pn); position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font: 700 10px/1 var(--rbk-fd); letter-spacing: .22em; color: rgba(200, 170, 110, .6); }
.rbk-sleeve {
  position: relative; padding: 6px; border-radius: 6px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 9px 0 -7px rgba(255, 255, 255, .22), 0 1px 0 rgba(0, 0, 0, .5);
}
.rbk-sleeve > .rbk-card, .rbk-sleeve > .rbk-back, .rbk-sleeve > .rbk-hole { transform: rotate(var(--tilt, 0deg)); }
/* picked up out of its pocket to read: the sleeve's card lifts and grows */
.rbk-sleeve > .rbk-card, .rbk-sleeve > .rbk-back { transition: transform .2s cubic-bezier(.2, .8, .25, 1.1), box-shadow .2s ease; }
@media (hover: hover) {
.rbk-sleeve:hover { z-index: 20; }
.rbk-sleeve:hover > .rbk-card, .rbk-sleeve:hover > .rbk-back { transform: rotate(0deg) scale(1.55); box-shadow: 0 18px 40px rgba(0, 0, 0, .75); }
.rbk-sheet > .rbk-sleeve:nth-child(3n+1):hover > * { transform-origin: 20% 50%; }
.rbk-sheet > .rbk-sleeve:nth-child(3n):hover > * { transform-origin: 80% 50%; }
}
.rbk-sleeve::after {
  content: ''; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; z-index: 4;
  background: linear-gradient(118deg, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .04) 22%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .09) 68%, rgba(255, 255, 255, 0) 76%);
}
.rbk-rings { position: absolute; left: 50%; top: 6%; bottom: 6%; width: 34px; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-around; align-items: center; z-index: 6; pointer-events: none; }
.rbk-rings i { display: block; width: 36px; height: 15px; border-radius: 8px; border: 3px solid; border-color: #e1e5ea #8c939c #5e646c #c9ced4; box-shadow: 0 3px 4px rgba(0, 0, 0, .7); }
.rbk-sheets[style*="--sheets:1"] .rbk-rings { left: 0; transform: translateX(-62%); }
.rbk-bturn {
  position: absolute; bottom: 10px; z-index: 7; padding: 6px 14px 5px; border-radius: 13px; cursor: pointer;
  background: linear-gradient(180deg, #c1b9a6, #7d766a); border: 1px solid #0b0c0e; color: #14110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .55); font: 800 10px/1 var(--rbk-fu); letter-spacing: .18em; text-transform: uppercase;
}
.rbk-bturn.prev { left: 22px; } .rbk-bturn.next { right: 22px; }
.rbk-bturn:disabled { opacity: .3; cursor: default; }
.rbk-bind .rbk-pageno { right: 0; bottom: 16px; }
/* the dog-ear: press the sheet's corner to turn it */
.rbk-ear { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; z-index: 5; cursor: pointer; border: 0; padding: 0; border-radius: 0 0 7px 0;
  background: linear-gradient(135deg, transparent 50%, rgba(200, 170, 110, .55) 50%, #7d766a 100%); }
.rbk-ear.prev { left: 0; right: auto; border-radius: 0 0 0 7px; background: linear-gradient(225deg, transparent 50%, rgba(200, 170, 110, .55) 50%, #7d766a 100%); }
.rbk-ear:hover { filter: brightness(1.3); }
/* the deck as a stack of backs, and its fan */
.rbk-stackbox { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0 6px; }
.rbk-stack { position: relative; width: 132px; aspect-ratio: 5 / 7; margin: 10px 0 14px; cursor: pointer; background: none; border: 0; padding: 0; }
.rbk-stack > .rbk-back { position: absolute; inset: 0; transform: translate(calc(var(--i) * -2px), calc(var(--i) * -2.5px)) rotate(calc(var(--i) * -.6deg)); }
@media (hover: hover) { .rbk-stack:hover > .rbk-back:last-of-type { transform: translate(calc(var(--i) * -2px), calc(var(--i) * -2.5px - 6px)) rotate(-2deg); } }
.rbk-stack-n { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 40; padding: 5px 11px 4px; border-radius: 13px; white-space: nowrap;
  background: #15120e; border: 1px solid #5d626a; color: #f0d890; font: 800 15px/1 var(--rbk-fd); box-shadow: 0 3px 6px rgba(0, 0, 0, .6); }
.rbk-stack-n small { font-size: 11px; color: #a9a08a; }
.rbk-stack.is-empty { opacity: .5; }
.rbk-stack.is-ash > .rbk-back { filter: grayscale(.7) brightness(.6); }
.rbk-fan { position: absolute; inset: 0; z-index: 30; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 100%, rgba(13, 32, 54, .92), rgba(2, 6, 12, .94) 70%); }
.rbk-fan-h { position: absolute; left: 18px; right: 18px; top: 14px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.rbk-fan-h b { font: 700 13px/1 var(--rbk-fd); letter-spacing: .16em; text-transform: uppercase; color: #fff3d4; }
.rbk-fan-h span { font-size: 12px; color: #a9a08a; }
.rbk-fan-h .rbk-btn { flex: 0 0 auto; margin-left: auto; }
.rbk-fan-cards { position: absolute; left: 0; right: 0; bottom: 0; top: 44px; }
.rbk-fan-cards > .rbk-fc { position: absolute; left: 50%; bottom: 175px; width: var(--fw, 128px); margin-left: calc(var(--fw, 128px) / -2); transform-origin: 50% 240%;
  transform: rotate(var(--a)); transition: transform .3s cubic-bezier(.2, .8, .25, 1.1); }
@media (hover: hover) { .rbk-fan-cards > .rbk-fc:hover { transform: rotate(var(--a)) translateY(-40px) scale(1.45); z-index: 50; } }
.rbk-fan-cards.is-open > .rbk-fc { animation: rbk-fanout .5s cubic-bezier(.2, .8, .25, 1.05) backwards; animation-delay: calc(var(--i) * 14ms); }
@keyframes rbk-fanout { from { transform: rotate(0deg); } }
.rbk.is-narrow .rbk-fan-cards { display: flex; gap: 10px; overflow-x: auto; padding: 10px 16px; align-items: flex-end; }
.rbk.is-narrow .rbk-fan-cards > .rbk-fc { position: relative; left: auto; bottom: auto; margin: 0; flex: 0 0 auto; transform: none; }
.rbk.is-narrow .rbk-fan-cards.is-open > .rbk-fc { animation: none; }

/* ================================================================ PICK (the altar) and the small dock */
/* an altar's pick list (lair-altar.js .al-relics, lair-altar-banner.js .ab-relics) holding a look */
.rbk-pickhost { display: block !important; width: 100%; max-height: min(64vh, 660px) !important; overflow-y: auto !important; padding: 4px 2px !important; }
/* width 100% and justify-self, not margin auto: an auto margin shrinks a grid item to its content, and cards have none */
.rbk-pick .rbk-tome { width: 100%; max-width: 780px; justify-self: center; }
.rbk-pick .rbk-bind { width: 100%; max-width: 900px; justify-self: center; }
.rbk-pick .rbk-book, .rbk-pick .rbk-gridlook, .rbk-pick .rbk-binder { grid-template-columns: minmax(0, 1fr); }
.rbk-dock { display: flex; flex-direction: column; gap: 8px; padding: 10px; margin: 0 0 10px; border-radius: 8px;
  background: linear-gradient(180deg, #2a2722, #15130f); border: 2px solid #25282c; box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 3px #34312b, 0 6px 14px rgba(0, 0, 0, .5); }
.rbk-dock .rbk-dhead { padding: 0; }
.rbk-dock .rbk-n { font-size: 18px; }
.rbk-dock .rbk-strips { max-height: 220px; }
.rbk-dock .rbk-strip { height: 28px; font-size: 10.5px; }
.rbk-dock .rbk-strip .g { flex-basis: 22px; height: 22px; font-size: 11px; }
.rbk-dock .rbk-cards { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 260px; padding: 2px; }
.rbk-dock .rbk-stackbox { flex-direction: row; justify-content: center; gap: 26px; }
.rbk-dock .rbk-stack { width: 74px; margin: 4px 0 12px; }
.rbk-dock .rbk-stack-n { font-size: 12px; padding: 3px 8px; }

/* ================================================================ the overlay (the arena's vault and deck tab, the Expedition) */
.rbk-ov { position: fixed; inset: 0; z-index: 2147483000; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 22px 18px;
  background: radial-gradient(ellipse at 50% 20%, rgba(13, 32, 54, .9), rgba(2, 6, 12, .95)); }
.rbk-ov-in { width: min(1360px, 100%); }
.rbk-ov-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding-right: 54px; position: relative; }
.rbk-ov-h b { font: 700 18px/1.2 'Cinzel', serif; letter-spacing: .16em; text-transform: uppercase; color: #fff3d4; }
.rbk-ov-h span { font: 500 13px/1.3 'Alegreya Sans', sans-serif; color: #d8cfb6; }
.rbk-x { position: absolute; right: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, #2c2f34, #1d2024); border: 1px solid #0b0c0e; box-shadow: inset 0 0 0 1px #434850, 0 3px 8px rgba(0, 0, 0, .6);
  color: #fff3d4; font: 700 20px/1 'Alegreya Sans', sans-serif; }
.rbk-x:hover { color: #f0d890; }
.rbk-ov .rbk-deck { max-height: calc(100vh - 120px); }
.rbk-open {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 4px 9px 3px; border-radius: 3px; cursor: pointer; vertical-align: middle;
  background: linear-gradient(180deg, #c1b9a6, #7d766a); border: 1px solid #0b0c0e; color: #14110d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .5); font: 800 9px/1 'Alegreya Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase;
}
.rbk-open:hover { filter: brightness(1.1); }

/* ================================================================ the relic's own icon (the arena Vortex's) */
/* a held card shows its whole text: no text selection or system menu on top of it */
.rbk-card, .rbk-strip, .rbk-back, .rbk-fc, .rbk-stack { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.rbk-gl.is-em { color: initial; font-size: 15.5cqw; text-shadow: none; filter: drop-shadow(0 0 5px var(--soft)) drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.rbk-em { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; line-height: 1; }
.rbk-strip .g .rbk-em { font-size: 14px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.rbk-dock .rbk-strip .g .rbk-em { font-size: 12px; }

/* ================================================================ the hover card: the whole description */
.rbk-tip {
  position: fixed; z-index: 2147483640; left: 0; top: 0; width: 300px; padding: 12px 14px 11px; border-radius: 8px; pointer-events: none;
  background: linear-gradient(180deg, #25221d, #14110d); border: 2px solid #25282c;
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 3px #3d3a33, inset 0 3px 0 3px var(--soft, transparent), 0 14px 34px rgba(0, 0, 0, .7);
  color: #efe6cf; font: 500 13px/1.45 'Alegreya Sans', system-ui, sans-serif;
  opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; visibility: hidden;
}
.rbk-tip.on { opacity: 1; transform: none; visibility: visible; }
.rbk-tip-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rbk-tip-ic { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: var(--tint);
  background: radial-gradient(circle at 50% 40%, #3b3127, #15110c); box-shadow: inset 0 0 0 2px var(--tint), 0 0 0 1px #958e7d, 0 0 0 2px #0b0c0e; }
.rbk-tip-h b { display: block; font: 700 14px/1.15 'Cinzel', serif; letter-spacing: .04em; text-transform: uppercase; color: #fff3d4; }
.rbk-tip-h small { display: block; margin-top: 3px; font: 800 9.5px/1 'Alegreya Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--tint); }
.rbk-tip-d b { font-weight: 800; color: #fff; }
.rbk-tip-d .k-hp { color: #a6eeb2; } .rbk-tip-d .k-mana { color: #9fd6ff; } .rbk-tip-d .k-shield { color: #b6e2ff; }
.rbk-tip-d .k-poison { color: #c6ee80; } .rbk-tip-d .k-momentum { color: #f0d890; } .rbk-tip-d .k-cc { color: #e2c8f6; } .rbk-tip-d .k-life { color: #ffd9a0; }
.rbk-tip-f { margin-top: 9px; padding-top: 7px; border-top: 1px solid rgba(216, 207, 182, .14); font: 800 9.5px/1.2 'Alegreya Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a9a08a; }
/* a double press adds a copy: the browser's own double-tap zoom stays out of it */
.rbk { touch-action: manipulation; }
/* sideways moves stay with the page: a swipe turns the Book's and the Binder's page and steps the close-up */
.rbk [data-spread], .rbk-focus { touch-action: pan-y pinch-zoom; }

/* ================================================================ one card up close (relicbook.js focus: a press under Focus, a right click) */
.rbk-focus {
  position: fixed; inset: 0; z-index: 2147483620; display: flex; overflow-y: auto; overscroll-behavior: contain; padding: 28px 76px;
  background: radial-gradient(ellipse at 38% 42%, rgba(18, 40, 64, .9), rgba(2, 6, 12, .96) 72%);
  animation: rbk-fx-fade .18s ease both; -webkit-tap-highlight-color: transparent;
}
.rbk-focus *, .rbk-focus *::before, .rbk-focus *::after { box-sizing: border-box; }
.rbk-focus.is-out { animation: rbk-fx-fade .15s ease reverse both; pointer-events: none; }
@keyframes rbk-fx-fade { from { opacity: 0; } }
.rbk-fx-in { position: relative; margin: auto; width: min(880px, 100%); display: flex; align-items: center; gap: 40px; padding: 8px 0; }
.rbk-fx-card { position: relative; flex: 0 0 auto; width: min(320px, 36vw); }
.rbk-fx-card .rbk-card {
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 4px #3d3a33, inset 0 0 0 5px #14110d, inset 0 6px 9px -3px rgba(255, 244, 214, .16),
              inset 0 -10px 16px rgba(0, 0, 0, .34), 0 0 0 1px #0b0c0e, 0 0 46px var(--soft, transparent), 0 26px 60px rgba(0, 0, 0, .8);
}
.rbk-fx-card .rbk-card .rbk-desc { -webkit-line-clamp: 6; line-clamp: 6; }
.rbk-fx-card.from-r .rbk-card { animation: rbk-fx-from-r .26s cubic-bezier(.2, .8, .25, 1.05) both; }
.rbk-fx-card.from-l .rbk-card { animation: rbk-fx-from-l .26s cubic-bezier(.2, .8, .25, 1.05) both; }
@keyframes rbk-fx-from-r { from { transform: translateX(46px) rotate(3deg); opacity: 0; } }
@keyframes rbk-fx-from-l { from { transform: translateX(-46px) rotate(-3deg); opacity: 0; } }
.rbk-fx-card.is-bump .rbk-card { animation: rbk-fx-bump .34s cubic-bezier(.2, .8, .25, 1.2); }
@keyframes rbk-fx-bump { 40% { transform: scale(1.045); filter: brightness(1.18); } }
.rbk-fx-pos { margin-top: 14px; text-align: center; font: 800 10px/1 'Alegreya Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8a8270; }
.rbk-fx-side {
  flex: 1 1 auto; min-width: 0; max-width: 460px; padding: 20px 22px 18px; border-radius: 10px;
  background: linear-gradient(180deg, #25221d, #14110d); border: 2px solid #25282c;
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 3px #3d3a33, inset 0 3px 0 3px var(--soft, transparent), 0 18px 40px rgba(0, 0, 0, .7);
  color: #efe6cf; font: 500 15.5px/1.55 'Alegreya Sans', system-ui, sans-serif;
}
.rbk-fx-h { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.rbk-fx-ic { flex: 0 0 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; color: var(--tint);
  background: radial-gradient(circle at 50% 38%, #3a362e, #14110d); box-shadow: inset 0 0 0 2px #25282c, inset 0 0 0 3px #3d3a33, 0 0 16px var(--soft, transparent); }
.rbk-fx-ic .rbk-em { font-size: 27px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.rbk-fx-h b { display: block; font: 700 21px/1.15 'Cinzel', serif; letter-spacing: .04em; text-transform: uppercase; color: #fff3d4; }
.rbk-fx-h small { display: block; margin-top: 5px; font: 800 10.5px/1 'Alegreya Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--tint); }
.rbk-fx-d b { font-weight: 800; color: #fff; }
.rbk-fx-d .k-hp { color: #a6eeb2; } .rbk-fx-d .k-mana { color: #9fd6ff; } .rbk-fx-d .k-shield { color: #b6e2ff; }
.rbk-fx-d .k-poison { color: #c6ee80; } .rbk-fx-d .k-momentum { color: #f0d890; } .rbk-fx-d .k-cc { color: #e2c8f6; } .rbk-fx-d .k-life { color: #ffd9a0; }
.rbk-fx-have { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(216, 207, 182, .14);
  font: 800 10.5px/1.3 'Alegreya Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a9a08a; }
.rbk-fx-slots { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.rbk-fx-slots i { width: 13px; height: 18px; border-radius: 2px; border: 1px solid #3d3a33; background: rgba(11, 12, 14, .7); }
.rbk-fx-slots i.on { background: linear-gradient(180deg, var(--tint, #c1b9a6), #3d3a33); border-color: #0b0c0e; box-shadow: 0 0 8px var(--soft, transparent); }
.rbk-fx-acts { display: flex; gap: 8px; margin-top: 14px; }
.rbk-fx-acts .rbk-btn { padding: 11px 12px 10px; font-size: 11px; }
.rbk-fx-acts .rbk-btn:focus-visible { outline: 2px solid #f0d890; outline-offset: 2px; }
.rbk-fx-hint { margin-top: 12px; font: 500 12px/1.4 'Alegreya Sans', sans-serif; color: #8a8270; }
.rbk-fx-step {
  position: fixed; top: 50%; width: 46px; height: 64px; margin-top: -32px; border-radius: 8px; cursor: pointer; z-index: 2;
  background: linear-gradient(180deg, #2c2f34, #1d2024); border: 1px solid #0b0c0e; box-shadow: inset 0 0 0 1px #434850, 0 3px 10px rgba(0, 0, 0, .6);
  color: #fff3d4; font: 700 30px/1 'Alegreya Sans', sans-serif;
}
.rbk-fx-step:hover { color: #f0d890; }
.rbk-fx-step.prev { left: 16px; } .rbk-fx-step.next { right: 16px; }
.rbk-fx-in > .rbk-x { position: fixed; top: 16px; right: 16px; z-index: 2; }
@media (pointer: coarse) { .rbk-fx-in > .rbk-x { width: 46px; height: 46px; font-size: 24px; } }
.rbk-focus.is-alive .rbk-fx-card .rbk-card { animation: rbk-bob 6.5s ease-in-out infinite; }
.rbk-focus.is-alive .rbk-fx-card.from-r .rbk-card { animation: rbk-fx-from-r .26s cubic-bezier(.2, .8, .25, 1.05) both, rbk-bob 6.5s ease-in-out .26s infinite; }
.rbk-focus.is-alive .rbk-fx-card.from-l .rbk-card { animation: rbk-fx-from-l .26s cubic-bezier(.2, .8, .25, 1.05) both, rbk-bob 6.5s ease-in-out .26s infinite; }
.rbk-focus.is-alive .rbk-fx-card.is-bump .rbk-card { animation: rbk-fx-bump .34s cubic-bezier(.2, .8, .25, 1.2), rbk-bob 6.5s ease-in-out .34s infinite; }
.rbk-focus.is-alive .rbk-fx-card .rbk-card::after {
  content: ''; position: absolute; top: -12%; bottom: -12%; left: 0; width: 34%; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, .10) 40%, rgba(255, 250, 235, .22) 50%, rgba(255, 244, 214, .10) 60%, transparent);
  animation: rbk-sheen 9s ease-in-out infinite;
}
.rbk-focus.is-alive .rbk-fx-card .rbk-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 5cqw 1cqw var(--tint, #c1b9a6); animation: rbk-halo 5s ease-in-out infinite;
}
@media (max-width: 760px) {
  .rbk-focus { padding: 16px 16px 84px; }
  .rbk-fx-in { flex-direction: column; gap: 16px; padding-top: 30px; }
  .rbk-fx-card { width: min(230px, 62vw); }
  .rbk-fx-side { max-width: none; width: 100%; padding: 16px 16px 14px; font-size: 14.5px; }
  .rbk-fx-h b { font-size: 18px; }
  .rbk-fx-step { top: auto; bottom: 14px; margin-top: 0; height: 52px; width: 52px; }
}

/* ================================================================ ALIVE (bn_relic_motion, the default; Still = the looks as they first shipped)
   Calm and cheap: transforms and opacity only. The card breathes on the separate
   `translate` property, so its tilt, hover and deal (`transform`) compose with it. */
@keyframes rbk-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2.5px; } }
@keyframes rbk-sheen { 0%, 86% { transform: translateX(-160%) skewX(-16deg); } 100% { transform: translateX(380%) skewX(-16deg); } }
@keyframes rbk-halo { 0%, 100% { opacity: .15; } 50% { opacity: .7; } }
@keyframes rbk-candle { 0%, 100% { opacity: .75; } 23% { opacity: .9; } 41% { opacity: .68; } 67% { opacity: .95; } 83% { opacity: .8; } }
@keyframes rbk-mote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .7; } 85% { opacity: .55; } 100% { transform: translate(var(--mx2, 30px), -180px); opacity: 0; } }
@keyframes rbk-dealin { from { transform: translateY(-26px) rotate(-4deg) scale(.9); opacity: 0; filter: brightness(1.5); } }

.rbk.is-alive .rbk-card { animation: rbk-bob 6.5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
.rbk.is-alive .rbk-card::after {
  content: ''; position: absolute; top: -12%; bottom: -12%; left: 0; width: 34%; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, .10) 40%, rgba(255, 250, 235, .22) 50%, rgba(255, 244, 214, .10) 60%, transparent);
  animation: rbk-sheen 12s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -2s);
}
.rbk.is-alive .rbk-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 5cqw 1cqw var(--tint, #c1b9a6); animation: rbk-halo 5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -.83s);
}
/* the pointer's light on the card, and the card leaning toward it (--rx/--ry/--mx/--my from relicbook.js) */
.rbk.is-alive .rbk-card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 244, 214, .24), transparent 58%);
}
@media (hover: hover) { .rbk.is-alive .rbk-card:hover::before { opacity: 1; } }
/* the Grid holds every relic at once: its medallions keep still, the cards still breathe and catch the light */
.rbk.is-alive[data-look="grid"] .rbk-ring::after { display: none; }
/* a full deck dims every card (is-max), and they still lean: the card is alive, the press just adds nothing */
@media (hover: hover) {
.rbk.is-alive .rbk-page > .rbk-card:hover,
.rbk.is-alive .rbk-cards > div > .rbk-card:hover {
  z-index: 4; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.035);
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 4px #3d3a33, inset 0 0 0 5px #14110d, 0 0 0 1px #0b0c0e, 0 0 18px var(--soft), 0 18px 30px rgba(0, 0, 0, .65);
  transition: transform .1s ease-out, filter .16s ease, box-shadow .16s ease;
}
.rbk.is-alive .rbk-page > .rbk-card.is-on:hover, .rbk.is-alive .rbk-cards > div > .rbk-card.is-on:hover {
  box-shadow: inset 0 0 0 1px #0b0c0e, inset 0 0 0 4px #3d3a33, inset 0 0 0 5px #14110d, 0 0 0 1px #0b0c0e, 0 0 0 4px #f0d890, 0 0 24px rgba(240, 216, 144, .55), 0 18px 30px rgba(0, 0, 0, .65);
}
}
.rbk.is-alive button.rbk-strip { transition: translate .16s ease, filter .16s ease; }
@media (hover: hover) { .rbk.is-alive button.rbk-strip:hover { translate: 4px 0; } }
.rbk.is-alive .rbk-stack > .rbk-back { transition: transform .25s cubic-bezier(.2, .8, .25, 1.1); }
/* a page deals its cards in: the first paint, a turn, a filter (child combinators keep the turning leaf's own copies still) */
.rbk.is-alive .rbk-spread.is-dealing > .rbk-page > .rbk-card,
.rbk.is-alive .rbk-sheets.is-dealing > .rbk-sheet > .rbk-sleeve > .rbk-card {
  animation: rbk-dealin .42s cubic-bezier(.2, .8, .25, 1.1) backwards, rbk-bob 6.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms), calc(var(--d, 0) * -1s);
}
/* the turning leaf's light (relicbook.js turn) */
.rbk-shade { position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0; border-radius: inherit; }
.rbk-shade.f { background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15) 70%, rgba(255, 240, 210, .08)); }
.rbk-shade.b { background: linear-gradient(270deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15) 70%, rgba(255, 240, 210, .08)); }
.rbk-leaf.prev .rbk-shade.f { background: linear-gradient(270deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15) 70%, rgba(255, 240, 210, .08)); }
.rbk-leaf.prev .rbk-shade.b { background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15) 70%, rgba(255, 240, 210, .08)); }
/* the room: a warm light that wavers over the Book, a cool one over the Binder, and a few motes of dust */
.rbk-amb { display: none; }
.rbk.is-alive .rbk-amb { display: block; position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; border-radius: inherit; }
.rbk.is-alive .rbk-amb::before {
  content: ''; position: absolute; inset: 0; mix-blend-mode: screen; animation: rbk-candle 7.5s ease-in-out infinite;
  background: radial-gradient(ellipse 60% 45% at 26% 6%, rgba(255, 206, 140, .12), transparent 70%), radial-gradient(ellipse 50% 40% at 78% 100%, rgba(255, 190, 120, .06), transparent 70%);
}
.rbk.is-alive .rbk-bind .rbk-amb::before { background: radial-gradient(ellipse 60% 45% at 30% 4%, rgba(150, 200, 255, .1), transparent 70%); }
.rbk.is-alive .rbk-amb b {
  position: absolute; bottom: 8%; width: 3px; height: 3px; border-radius: 50%; opacity: 0;
  background: rgba(255, 236, 200, .8); box-shadow: 0 0 6px rgba(255, 220, 160, .7);
  animation: rbk-mote 17s linear infinite;
}
.rbk.is-alive .rbk-bind .rbk-amb b { background: rgba(210, 230, 255, .75); box-shadow: 0 0 6px rgba(160, 200, 255, .6); }
.rbk-amb b:nth-child(1) { left: 12%; animation-delay: -2s; --mx2: 40px; }
.rbk-amb b:nth-child(2) { left: 27%; animation-delay: -9s; animation-duration: 21s; --mx2: -30px; width: 2px; height: 2px; }
.rbk-amb b:nth-child(3) { left: 41%; animation-delay: -5s; animation-duration: 19s; --mx2: 24px; }
.rbk-amb b:nth-child(4) { left: 56%; animation-delay: -13s; --mx2: -44px; width: 2px; height: 2px; }
.rbk-amb b:nth-child(5) { left: 68%; animation-delay: -7s; animation-duration: 23s; --mx2: 30px; }
.rbk-amb b:nth-child(6) { left: 81%; animation-delay: -15s; animation-duration: 18s; --mx2: -20px; width: 2px; height: 2px; }
.rbk-amb b:nth-child(7) { left: 92%; animation-delay: -11s; animation-duration: 20s; --mx2: -36px; }

@media (prefers-reduced-motion: reduce) {
  .rbk-card, .rbk-strip.rbk-in, .rbk-cards.is-dealing > *, .rbk-fan-cards > .rbk-fc { animation: none !important; transition: none !important; }
  .rbk-amb, .rbk-card::after, .rbk-ring::after { display: none !important; }
  .rbk-focus { animation: none !important; }
}
