/* The black holographic theme (Joe on the 10-23 call: "red main + a black holographic option"; board #3).
   Settings > Theme, or ?theme=holo. Red stays the main theme; this one swaps the crimson for black chrome and a thin
   rainbow foil, and bg.js turns the world to cool silver with a stronger foil light (uTheme). Rarity colours stay. */
body[data-theme="holo"] {
  --red: #17161c;
  --red-hi: #24222c;
  --bone: #eceef4;
  --bone-2: #b6bac6;
  --bone-3: #7e8292;
  --pearl: #dfe4f2;
  /* the panel material goes cool: black glass with a silver top edge instead of oxblood stone */
  --surface: linear-gradient(180deg, rgba(14, 14, 19, .9), rgba(5, 5, 8, .88));
  --surface-solid: linear-gradient(180deg, rgba(17, 17, 23, .98), rgba(7, 7, 10, .98));
  --edge: inset 0 0 0 1px rgba(220, 226, 245, .13), inset 0 1px 0 rgba(225, 232, 255, .08);
  --edge-hi: inset 0 0 0 1px rgba(220, 226, 245, .24), inset 0 1px 0 rgba(225, 232, 255, .1);
  --focus: #d6def5;
}
:root { --holo-edge: linear-gradient(115deg, #ff9fd6, #ffd38f 16%, #f2ff9e 30%, #93ffd2 46%, #94d9ff 62%, #b9a1ff 78%, #ff9fd6); }

/* the wordmark: pearl with a slow foil sheen that never gets loud */
body[data-theme="holo"] .wordmark, body[data-theme="holo"] .brand b {
  background: linear-gradient(100deg, #f4f5fa 0%, #f4f5fa 38%, #d9f3ff 46%, #f2dcff 52%, #fff4d8 58%, #f4f5fa 66%, #f4f5fa 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo-sheen 9s linear infinite;
  text-shadow: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85)) drop-shadow(0 0 14px rgba(0, 0, 0, .5)); } /* a text-shadow would paint over the clipped foil */
body[data-theme="holo"] .wordmark { animation: rise 1.4s .2s var(--ease) both, holo-sheen 9s linear infinite; }
@keyframes holo-sheen { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* the main action: black chrome with a thin rainbow edge that follows the mouse */
body[data-theme="holo"] .btn-red { background: linear-gradient(180deg, #2a2832, #0c0b10 70%); color: #fff; filter: none;
  box-shadow: 0 10px 30px rgba(120, 150, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .2); }
body[data-theme="holo"] .btn-red:hover { background: linear-gradient(180deg, #34313e, #121117 70%); }
body[data-theme="holo"] .btn-red::before { content: ""; position: absolute; inset: 0; border: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--holo-edge); background-size: 300% 100%; background-position: var(--bx, 50%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
body[data-theme="holo"] .btn-red[disabled]::before { opacity: .35; }

/* selected things: a rainbow hairline instead of crimson */
body[data-theme="holo"] .nav button[aria-current="true"]::before { background: linear-gradient(180deg, #ffc7e6, #c9f3ff 50%, #e2d4ff); box-shadow: 0 0 10px rgba(170, 200, 255, .6); }
body[data-theme="holo"] .nav > button[aria-current="true"] { background: linear-gradient(90deg, rgba(150, 165, 210, .2), rgba(20, 20, 28, 0)); }
body[data-theme="holo"] .subnav button[aria-current="true"] em { color: var(--pearl); }
body[data-theme="holo"] #volume { accent-color: #c9d2ec; }
body[data-theme="holo"] .index-tabs button[aria-pressed="true"] { background: linear-gradient(180deg, #2c2a35, #121117); border-color: #8f96b4; color: #fff;
  box-shadow: inset 0 -2px 0 0 rgba(170, 200, 255, .55); }
body[data-theme="holo"] .eyebrow { color: #c4cbe0; }

/* Dodd 10-27: "themes ... should be only the background. The UI can change its main colour, but we don't want to affect
   the actual other assets". The packs, cards and book keep their own art in every theme (the old black-foil booster,
   greyscale pack art and violet card arch are gone). */

/* Settings: the theme buttons show what they pick */
.seg button[data-theme-pick="holo"] { position: relative; }
.seg button[data-theme-pick="holo"]::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: var(--holo-edge); vertical-align: 0; }
.seg button[data-theme-pick="red"]::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: #b3141d; vertical-align: 0; }

@media (prefers-reduced-motion: reduce) {
  body[data-theme="holo"] .wordmark, body[data-theme="holo"] .brand b { animation: none; background-position: 30% 0; }
}

/* Stats: the picked day goes chrome too */
body[data-theme="holo"] .calendar-day[aria-pressed="true"] { background: linear-gradient(160deg, #34323f, #15141b); border-color: rgba(190, 205, 245, .6); }
