/* ===========================================================================
 * The design system.
 *
 * One palette, defined once, for the whole site. It is the ship's: the
 * /ship/ page was the only thing here that looked like the universe it is
 * selling, and every other page was cream paper with a Bootstrap default
 * underneath. Pages are the universe now; /ship/ is the deepest end of the
 * same palette rather than an exception to it.
 *
 * Two layers on purpose. The hull palette is the only place a colour is
 * chosen. The semantic tokens below it are what components reference, so
 * "the raised surface colour" can change without finding every card.
 * ======================================================================== */

:root {
    /* -- hull palette: the only place a literal colour is written -------- */
    --cb-void: #07070a;          /* the page behind everything */
    --cb-hull: #101014;          /* a raised surface */
    --cb-char: #16171c;          /* a surface on a surface */
    --cb-gun: #262a31;           /* edges that need to be seen */
    --cb-seam: rgba(232, 227, 216, 0.12);
    --cb-amber: #e9a340;         /* the one accent */
    --cb-amber-bright: #ffc46b;
    --cb-bone: #ece7dc;          /* body text */
    --cb-muted: #a7a298;         /* secondary text */
    --cb-iris: #5b4f7d;
    --cb-bronze: #8a6a3a;
    --cb-danger: #e2705a;
    --cb-good: #7fc08a;

    /* -- semantic tokens: what components actually reference ------------ */
    --cb-bg: var(--cb-void);
    --cb-surface: var(--cb-hull);
    --cb-surface-2: var(--cb-char);
    --cb-text: var(--cb-bone);
    --cb-dim: var(--cb-muted);
    --cb-line: var(--cb-seam);
    --cb-accent: var(--cb-amber);
    --cb-accent-bright: var(--cb-amber-bright);
    --cb-on-accent: var(--cb-void);

    --cb-radius: 16px;
    --cb-radius-sm: 10px;
    --cb-shell: 1180px;

    /*
     * Kept because pages outside this file reference them, and because a
     * rename across 74 templates is not what this change is for. They are
     * aliases now, not a second palette.
     */
    --cb-ink: var(--cb-text);
    --cb-paper: var(--cb-bg);
    --cb-sun: var(--cb-accent);
    --cb-sky: var(--cb-accent);
    --cb-card: var(--cb-surface);
 }

 body {
    background-color: var(--cb-bg);
    color: var(--cb-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 16px;
 }

 h1, h2, h3, h4, h5, h6 {
    font-family: "Spectral", "Georgia", serif;
    color: var(--cb-text);
 }

 a {
    color: var(--cb-accent);
    text-decoration-color: rgba(233, 163, 64, 0.45);
    text-underline-offset: 0.15em;
 }

  a:hover {
    color: var(--cb-accent-bright);
    text-decoration-color: currentColor;
  }

  a:focus-visible {
    outline: 2px solid var(--cb-accent);
    outline-offset: 3px;
  }

  hr { border-color: var(--cb-line); opacity: 1; }

  ::selection { background: var(--cb-accent); color: var(--cb-on-accent); }

  .skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--cb-accent);
    color: var(--cb-on-accent);
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 9999;
  }

  .skip-link:focus {
    left: 12px;
  }

/*
 * .btn-dark is the primary action on every page -- "Read the zine", "Buy
 * it", "Join the crew". On a dark page a dark button is a hole, so the
 * class keeps its name and becomes the amber primary. Renaming it across
 * every template is a separate job from changing how the site looks.
 */
 .btn-dark {
    background-color: var(--cb-accent);
    border-color: var(--cb-accent);
    color: var(--cb-on-accent);
    font-weight: 600;
 }

 .btn-dark:hover,
 .btn-dark:focus-visible,
 .btn-dark:active {
    background-color: var(--cb-accent-bright);
    border-color: var(--cb-accent-bright);
    color: var(--cb-on-accent);
 }

 .btn-outline-dark {
    color: var(--cb-text);
    border-color: var(--cb-gun);
 }

 .btn-outline-dark:hover,
 .btn-outline-dark:focus-visible,
 .btn-outline-dark:active {
    background-color: var(--cb-accent);
    border-color: var(--cb-accent);
    color: var(--cb-on-accent);
 }

.nav-cta {
    color: var(--cb-sun);
    font-weight: 600;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    color: #f8e08b;
}

.btn:focus-visible {
    outline: 2px solid var(--cb-sun);
    outline-offset: 3px;
}

/* welcome */
.hero-image {
    /* Set a specific height */
    height: 330px;

    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin-bottom:20px;
}

.hero-image--overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 15, 0.65), rgba(20, 18, 15, 0.3));
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow:1px 1px 3px rgba(0,0,0,0.6);
    z-index: 1;
}

/*
 * Below the `md` breakpoint the hero's fixed height is smaller than its own
 * content: the heading rides up under the navbar and the CTAs spill out the
 * bottom. Let the box grow on narrow screens and centre the text with flex
 * instead of a transform, so the composition is unchanged on wider ones.
 */
@media (max-width: 767.98px) {
    .hero-image {
        height: auto;
        min-height: 330px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 16px;
    }

    .hero-text {
        position: static;
        transform: none;
    }
}

.cb-cta-strip {
    background: var(--cb-surface);
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 992px) {
    .cb-cta-strip {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.project {
    background-color: var(--cb-card);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    text-align: left;
    height: 100%;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--cb-line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }

  .project:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 163, 64, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  }

  .project a.stretched-link {
    color: var(--cb-text);
  }

  .project a.stretched-link:focus {
    outline: 2px solid var(--cb-sun);
    outline-offset: 4px;
  }

  .project .stretched-link::after {
    border-radius: 16px;
  }

  .project-grid {
    display: grid;
    /*
     * auto-fill, not auto-fit: splitting the home page into two filtered
     * groups means a filter often leaves one or two cards in a group, and
     * auto-fit would stretch a lone card across the whole row. With a full
     * grid the two behave identically.
     */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
  }
  
  .project img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.2s ease;
  }

  .project:hover img {
    transform: scale(1.02);
  }

  .project h3 a {
    text-decoration: none;
  }

.project .tags {
    align-self: flex-start;
    margin-top: auto;
    border-radius: 999px;
    padding: 6px 10px;
}

.project .tag-stack {
    align-self: flex-start;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Badge palette shared across pages */
.badge-ai { background: #ff6fae; color: #fdfdfd; }
.badge-game { background: #f39c12; color: #fdfdfd; }
.badge-ttrpg { background: #f1c40f; color: #fdfdfd; }
.badge-tools { background: #27ae60; color: #fdfdfd; }
.badge-writing { background: #2980b9; color: #fdfdfd; }
.badge-illustration { background: #d35400; color: #fdfdfd; }
.badge-creatures { background: #c3d17a; color: #fdfdfd; }
.badge-supplements { background: #5bc0ff; color: #fdfdfd; }
.badge-blockchain { background: #8e44ad; color: #fdfdfd; }
.badge-xr { background: #7f5af0; color: #fdfdfd; }
.badge-mobile { background: #d81b60; color: #fdfdfd; }
.badge-music { background: #00bcd4; color: #fdfdfd; }
.badge-video { background: #e8604c; color: #fdfdfd; }
.badge-labs { background: #7dd3fc; color: #fdfdfd; }
.badge-ops { background: #9ef0c0; color: #fdfdfd; }
.badge-beta { background: #a0b8ff; color: #fdfdfd; }
.badge-story { background: #d7bdf7; color: #fdfdfd; }

  .project-count {
    display: inline-block;
    min-width: 1.9rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--cb-accent);
    color: var(--cb-on-accent);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    vertical-align: 0.28em;
    text-align: center;
  }

  .project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }

  .project-filters .btn.active {
    background-color: var(--cb-accent);
    border-color: var(--cb-accent);
    color: var(--cb-on-accent);
  }

  .project.is-hidden,
  .project-section.is-hidden {
    display: none;
  }

  .badge.bg-success,
  .badge.bg-danger {
    color: #ffffff;
  }

  .badge.bg-warning {
    color: #1c1b16;
  }

  .cb-details summary {
    cursor: pointer;
  }

  small,
  .small,
  .form-text,
  .figure-caption,
  .badge {
    font-size: 1rem;
  }

  /* fantasy */
  .img-thumbnail {
    height: 256px;
    width: 256px;
  }
  
  /* tutorials */
  time { color: var(--cb-dim); }
  .avatar img {float:left; height:32px; border-radius: 50%;}
  .avatar .info {padding-left:40px;}

  /*
   * Staff-only cards. This was a 50% red wash, which on cream read as a
   * mistake and on black reads as an alarm. A card nobody but Patrick can
   * see should look held back, not broken: the surface warms slightly and
   * the left edge is amber.
   */
  /*
   * Staff-only is amber: you could see it if you signed in. Dev-only is
   * a different claim -- the page does not exist on the server at all,
   * because everything it does writes a file and production has no disk
   * that keeps one. Different claim, different colour.
   */
  .tint--dev {
    background: linear-gradient(
        180deg, rgba(91, 79, 125, 0.22), rgba(91, 79, 125, 0.08)),
        var(--cb-surface-2) !important;
    border-left-color: rgba(123, 104, 169, 0.7) !important;
  }

  .dropdown-item.tint {
    background: rgba(233, 163, 64, 0.1);
    border-left: 3px solid rgba(233, 163, 64, 0.55);
  }

  .dropdown-item.tint i { opacity: 0.75; }

  .tint {
    background: linear-gradient(
        180deg, rgba(233, 163, 64, 0.08), rgba(233, 163, 64, 0.03)) ,
        var(--cb-surface-2) !important;
    border-left: 3px solid rgba(233, 163, 64, 0.55) !important;
  }

/* ----------------------------------------------------------- signup form --
 * The mailing list is the business, so the form appears on more than one
 * page and has to work on paper and on the ship page's black.
 */
.cb-signup__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.cb-signup__input {
    flex: 1 1 15rem;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--cb-gun);
    border-radius: var(--cb-radius-sm);
    background: var(--cb-void);
    color: var(--cb-text);
    font-size: 1rem;
}

.cb-signup__input::placeholder { color: var(--cb-dim); }

.cb-signup__input:focus-visible {
    outline: 2px solid var(--cb-sun);
    outline-offset: 2px;
}

.cb-signup__button {
    padding: 12px 22px;
    border: 1px solid var(--cb-accent);
    border-radius: var(--cb-radius-sm);
    background: var(--cb-accent);
    color: var(--cb-on-accent);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.cb-signup__button:hover,
.cb-signup__button:focus-visible {
    background: var(--cb-accent-bright);
    border-color: var(--cb-accent-bright);
}

.cb-signup__note {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--cb-dim);
}

.cb-signup__error {
    flex: 1 0 100%;
    margin: 0;
    font-size: 0.9rem;
    color: var(--cb-danger);
}

.cb-signup__done {
    margin: 0;
    font-weight: 600;
}

/*
 * Over the hero photograph, where the background is an image rather than a
 * flat surface and the field has to hold its own against whatever is behind
 * it.
 */
.cb-signup--hero .cb-signup__input {
    border-color: rgba(236, 231, 220, 0.4);
    background: rgba(7, 7, 10, 0.72);
    backdrop-filter: blur(6px);
}

.cb-signup--hero .cb-signup__button {
    background: var(--cb-accent);
    border-color: var(--cb-accent);
    color: var(--cb-on-accent);
}

.cb-signup--hero .cb-signup__button:hover,
.cb-signup--hero .cb-signup__button:focus-visible {
    background: var(--cb-accent-bright);
}

.cb-signup--hero .cb-signup__note,
.cb-signup--hero .cb-signup__done {
    color: rgba(236, 231, 220, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cb-signup--hero .cb-signup__error {
    color: #ffc9bd;
}

/* ------------------------------------------------------------- the hero --
 * One picture, one headline, one thing to do. The old hero carried eight
 * calls to action between it and the strip below, two of them the same
 * button, over a photograph of woodland that had nothing to do with any of
 * this.
 */
.cb-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 32rem;
    padding: 5rem 0 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
    background: #0b0b0e;
}

.cb-hero__media { position: absolute; inset: 0; z-index: -2; }

.cb-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 45%;
}

.cb-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 8, 11, 0.9) 0%, rgba(8, 8, 11, 0.64) 48%, rgba(8, 8, 11, 0.22) 100%),
        linear-gradient(180deg, rgba(8, 8, 11, 0.7) 0%, rgba(8, 8, 11, 0.1) 36%, rgba(8, 8, 11, 0.82) 100%);
}

.cb-hero__inner { color: #fff; max-width: 46rem; }

.cb-hero__kicker {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cb-accent);
    margin: 0 0 0.6rem;
}

.cb-hero__title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.75rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin: 0;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.cb-hero__deck {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    margin: 1rem 0 1.75rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cb-hero__action { max-width: 32rem; }

.cb-hero__second {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    color: rgba(236, 231, 220, 0.85);
}

.cb-hero__second a { color: var(--cb-accent); }
.cb-hero__second a:hover { color: var(--cb-accent-bright); }

@media (max-width: 575.98px) {
    .cb-hero { min-height: 26rem; padding: 3.5rem 0 2rem; }
}

/* ------------------------------------------------------------- get it --
 * The site does not take money; it says what a thing costs and sends you
 * to the shop that does. A product with no storefront yet gets the same
 * block in a quieter key rather than a button that goes nowhere.
 */
.cb-getit {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    background: var(--cb-surface);
    margin-bottom: 16px;
}

.cb-getit--pending {
    background: var(--cb-surface-2);
    border-style: dashed;
    border-color: var(--cb-gun);
}

.cb-getit__body { flex: 1 1 22rem; min-width: 0; }

.cb-getit__kind {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cb-accent);
}

.cb-getit__name { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.cb-getit__blurb { margin: 0; color: var(--cb-text); }
.cb-getit__note { margin: 8px 0 0; font-size: 0.85rem; color: var(--cb-dim); }

.cb-getit__action { flex: 0 0 auto; text-align: right; }

.cb-getit__price {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 1.05rem;
}

.cb-getit--pending .cb-getit__price { font-weight: 600; color: var(--cb-dim); font-size: 0.95rem; }

@media (max-width: 575.98px) {
    .cb-getit__action { flex: 1 1 100%; text-align: left; }
    .cb-getit__action .btn { width: 100%; }
}

/* =========================================================== bootstrap --
 * Bootstrap ships a light theme and the site uses its components directly.
 * Rather than add a class to every card and table in 74 templates, the
 * defaults are moved onto the palette here, once.
 */

.card {
    background-color: var(--cb-surface);
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    color: var(--cb-text);
}

.card-header,
.card-footer {
    background-color: var(--cb-surface-2);
    border-color: var(--cb-line);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--cb-text);
    --bs-table-border-color: var(--cb-line);
    --bs-table-striped-bg: rgba(236, 231, 220, 0.04);
    --bs-table-striped-color: var(--cb-text);
    --bs-table-hover-bg: rgba(233, 163, 64, 0.07);
    --bs-table-hover-color: var(--cb-text);
}

.table > thead { color: var(--cb-dim); }

.form-control,
.form-select {
    background-color: var(--cb-void);
    border-color: var(--cb-gun);
    color: var(--cb-text);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--cb-void);
    border-color: var(--cb-accent);
    color: var(--cb-text);
    box-shadow: 0 0 0 0.2rem rgba(233, 163, 64, 0.2);
}

.form-control::placeholder { color: var(--cb-dim); }
.form-label, .form-text { color: var(--cb-dim); }

.btn-primary {
    background-color: var(--cb-accent);
    border-color: var(--cb-accent);
    color: var(--cb-on-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--cb-accent-bright);
    border-color: var(--cb-accent-bright);
    color: var(--cb-on-accent);
}

.btn-light {
    background-color: var(--cb-surface-2);
    border-color: var(--cb-gun);
    color: var(--cb-text);
}

/* Bootstrap's blue is 4.47:1 on the hull -- just under AA, and the wrong
 * colour for this site anyway. */
.btn-outline-primary {
    color: var(--cb-accent);
    border-color: var(--cb-accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background-color: var(--cb-accent);
    border-color: var(--cb-accent);
    color: var(--cb-on-accent);
}

.text-primary { color: var(--cb-accent) !important; }

/*
 * Two utilities that mean "a pale panel" and are used that way in a dozen
 * templates. Left working, pointed at a dark surface, because the intent
 * was always "set this apart from the page" rather than "make this white".
 */
.bg-light {
    background-color: var(--cb-surface-2) !important;
    color: var(--cb-text);
}

.text-dark { color: var(--cb-text) !important; }
.text-muted { color: var(--cb-dim) !important; }
.figure-caption { color: var(--cb-dim); }

.alert {
    background-color: var(--cb-surface-2);
    border-color: var(--cb-line);
    color: var(--cb-text);
}

.alert-success { border-color: rgba(127, 192, 138, 0.45); }
.alert-danger,
.alert-warning { border-color: rgba(226, 112, 90, 0.45); }

.dropdown-menu {
    background-color: var(--cb-surface);
    border-color: var(--cb-line);
}

.dropdown-item { color: var(--cb-text); }

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--cb-surface-2);
    color: var(--cb-accent);
}

.dropdown-divider { border-color: var(--cb-line); }

/*
 * The navbar is static, so it has no stacking order of its own and the
 * account dropdown paints under anything positioned later on the page.
 * On /ship/ that is the hero, and the menu was invisible there while
 * working everywhere else -- the ship page gives the navbar a
 * backdrop-filter, which makes it a stacking context the dropdown's own
 * z-index cannot escape. 1030 is Bootstrap's own $zindex-fixed.
 */
.navbar { position: relative; z-index: 1030; }

.navbar.bg-dark { background-color: var(--cb-hull) !important; }
footer.bg-dark { background-color: var(--cb-hull) !important; }

.border { border-color: var(--cb-line) !important; }

blockquote, pre, code { color: var(--cb-text); }

pre {
    background: var(--cb-void);
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius-sm);
    padding: 14px 16px;
    overflow-x: auto;
}

code { color: var(--cb-accent); }
pre code { color: var(--cb-text); }

/* ============================================================== badges --
 * Seventeen saturated fills with white text. On cream they were loud; on
 * black they are the brightest thing on the page and pull the eye off the
 * work. Same hues, rendered as a tinted chip with coloured text, so a card
 * reads picture first and label second.
 *
 * The flat fill is declared first as the fallback: a browser without
 * color-mix() gets the old chip rather than an unreadable one.
 */
.project .tags,
.badge[class*="badge-"] {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-ai { background: #ff6fae; color: #fdfdfd; }
.badge-game { background: #f39c12; color: #fdfdfd; }
.badge-ttrpg { background: #f1c40f; color: #fdfdfd; }
.badge-tools { background: #27ae60; color: #fdfdfd; }
.badge-writing { background: #2980b9; color: #fdfdfd; }
.badge-illustration { background: #d35400; color: #fdfdfd; }
.badge-creatures { background: #c3d17a; color: #fdfdfd; }
.badge-supplements { background: #5bc0ff; color: #fdfdfd; }
.badge-blockchain { background: #8e44ad; color: #fdfdfd; }
.badge-xr { background: #7f5af0; color: #fdfdfd; }
.badge-mobile { background: #d81b60; color: #fdfdfd; }
.badge-music { background: #00bcd4; color: #fdfdfd; }
.badge-video { background: #e8604c; color: #fdfdfd; }
.badge-labs { background: #7dd3fc; color: #fdfdfd; }
.badge-ops { background: #9ef0c0; color: #fdfdfd; }
.badge-beta { background: #a0b8ff; color: #fdfdfd; }
.badge-story { background: #d7bdf7; color: #fdfdfd; }

@supports (background: color-mix(in srgb, red 20%, transparent)) {
    .badge-ai { background: color-mix(in srgb, #ff6fae 16%, transparent); color: #ffb3d2; }
    .badge-game { background: color-mix(in srgb, #f39c12 16%, transparent); color: #f8c572; }
    .badge-ttrpg { background: color-mix(in srgb, #f1c40f 16%, transparent); color: #f5dd6a; }
    .badge-tools { background: color-mix(in srgb, #27ae60 18%, transparent); color: #7fd49f; }
    .badge-writing { background: color-mix(in srgb, #2980b9 22%, transparent); color: #82bde6; }
    .badge-illustration { background: color-mix(in srgb, #d35400 20%, transparent); color: #f0996a; }
    .badge-creatures { background: color-mix(in srgb, #c3d17a 16%, transparent); color: #d7e3a4; }
    .badge-supplements { background: color-mix(in srgb, #5bc0ff 16%, transparent); color: #9fd9ff; }
    .badge-blockchain { background: color-mix(in srgb, #8e44ad 22%, transparent); color: #c78ede; }
    .badge-xr { background: color-mix(in srgb, #7f5af0 22%, transparent); color: #b7a1f7; }
    .badge-mobile { background: color-mix(in srgb, #d81b60 22%, transparent); color: #f58bb0; }
    .badge-music { background: color-mix(in srgb, #00bcd4 18%, transparent); color: #74dced; }
    .badge-video { background: color-mix(in srgb, #e8604c 18%, transparent); color: #f5a093; }
    .badge-labs { background: color-mix(in srgb, #7dd3fc 16%, transparent); color: #aae3fd; }
    .badge-ops { background: color-mix(in srgb, #9ef0c0 16%, transparent); color: #bdf5d6; }
    .badge-beta { background: color-mix(in srgb, #a0b8ff 16%, transparent); color: #c2d1ff; }
    .badge-story { background: color-mix(in srgb, #d7bdf7 16%, transparent); color: #e5d4fa; }
}

.badge.bg-warning {
    background: color-mix(in srgb, var(--cb-amber) 22%, transparent) !important;
    color: var(--cb-amber-bright) !important;
}
