/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-amber-50: oklch(98.7% 0.022 95.277);
    --color-amber-100: oklch(96.2% 0.059 95.617);
    --color-amber-200: oklch(92.4% 0.12 95.746);
    --color-stone-50: oklch(98.5% 0.001 106.423);
    --color-stone-100: oklch(97% 0.001 106.424);
    --color-stone-200: oklch(92.3% 0.003 48.717);
    --color-stone-300: oklch(86.9% 0.005 56.366);
    --color-stone-400: oklch(70.9% 0.01 56.259);
    --color-stone-500: oklch(55.3% 0.013 58.071);
    --color-stone-900: oklch(21.6% 0.006 56.043);
    --color-white: #fff;
    --spacing: 0.25rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --tracking-wide: 0.025em;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .static {
    position: static;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .ml-auto {
    margin-left: auto;
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .h-full {
    height: 100%;
  }
  .h-screen {
    height: 100vh;
  }
  .min-h-0 {
    min-height: calc(var(--spacing) * 0);
  }
  .w-12 {
    width: calc(var(--spacing) * 12);
  }
  .w-16 {
    width: calc(var(--spacing) * 16);
  }
  .w-28 {
    width: calc(var(--spacing) * 28);
  }
  .w-40 {
    width: calc(var(--spacing) * 40);
  }
  .w-44 {
    width: calc(var(--spacing) * 44);
  }
  .w-80 {
    width: calc(var(--spacing) * 80);
  }
  .w-\[36rem\] {
    width: 36rem;
  }
  .w-full {
    width: 100%;
  }
  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }
  .flex-1 {
    flex: 1;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .grow {
    flex-grow: 1;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .cursor-grab {
    cursor: grab;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-x-2 {
    column-gap: calc(var(--spacing) * 2);
  }
  .divide-y {
    :where(& > :not(:last-child)) {
      --tw-divide-y-reverse: 0;
      border-bottom-style: var(--tw-border-style);
      border-top-style: var(--tw-border-style);
      border-top-width: calc(1px * var(--tw-divide-y-reverse));
      border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    }
  }
  .divide-stone-100 {
    :where(& > :not(:last-child)) {
      border-color: var(--color-stone-100);
    }
  }
  .self-start {
    align-self: flex-start;
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-auto {
    overflow: auto;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-r {
    border-right-style: var(--tw-border-style);
    border-right-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-stone-200 {
    border-color: var(--color-stone-200);
  }
  .border-stone-300 {
    border-color: var(--color-stone-300);
  }
  .bg-amber-100\! {
    background-color: var(--color-amber-100) !important;
  }
  .bg-stone-50 {
    background-color: var(--color-stone-50);
  }
  .bg-stone-100 {
    background-color: var(--color-stone-100);
  }
  .bg-stone-200 {
    background-color: var(--color-stone-200);
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-1 {
    padding-inline: calc(var(--spacing) * 1);
  }
  .px-1\.5\! {
    padding-inline: calc(var(--spacing) * 1.5) !important;
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .text-left {
    text-align: left;
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .text-xs\! {
    font-size: var(--text-xs) !important;
    line-height: var(--tw-leading, var(--text-xs--line-height)) !important;
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .text-stone-400 {
    color: var(--color-stone-400);
  }
  .text-stone-500 {
    color: var(--color-stone-500);
  }
  .text-stone-900 {
    color: var(--color-stone-900);
  }
  .lowercase {
    text-transform: lowercase;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .ordinal {
    --tw-ordinal: ordinal;
    font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
  }
  .opacity-40 {
    opacity: 40%;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  .hover\:bg-amber-50 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-amber-50);
      }
    }
  }
  .print\:block {
    @media print {
      display: block;
    }
  }
  .print\:hidden {
    @media print {
      display: none;
    }
  }
  .print\:h-auto {
    @media print {
      height: auto;
    }
  }
  .print\:overflow-visible {
    @media print {
      overflow: visible;
    }
  }
  .print\:bg-transparent {
    @media print {
      background-color: transparent;
    }
  }
  .print\:p-0 {
    @media print {
      padding: calc(var(--spacing) * 0);
    }
  }
  .print\:shadow-none {
    @media print {
      --tw-shadow: 0 0 #0000;
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }
  }
}
.theme-mono.card {
  font: 7.5pt/1.25 "Helvetica Neue", Arial, sans-serif;
  color: #000;
  background: #fff;
  border: 0.25mm solid #000;
  padding: 2.5mm;
}
.theme-mono .card-body > * + * {
  margin-top: 0.5em;
}
.theme-mono .card-head {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  border-bottom: 0.2mm solid #000;
  padding-bottom: 0.25em;
}
.theme-mono .card-name {
  flex: 1;
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.1;
}
.theme-mono .card-level {
  font-weight: 700;
  white-space: nowrap;
}
.theme-mono .card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
}
.theme-mono .trait {
  border: 0.2mm solid #000;
  padding: 0 0.35em;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
}
.theme-mono .trait-uncommon {
  background: #ccc;
}
.theme-mono .trait-rare, .theme-mono .trait-unique {
  background: #000;
  color: #fff;
}
.theme-mono .card-props, .theme-mono .card-stats {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.8em;
}
.theme-mono dl div {
  display: flex;
  gap: 0.3em;
}
.theme-mono dt {
  font-weight: 700;
}
.theme-mono .card-activation {
  background: #eee;
  padding: 0.3em 0.4em;
}
.theme-mono .card-activation p + p, .theme-mono .card-text p + p {
  margin-top: 0.35em;
}
.theme-mono strong {
  font-weight: 700;
}
.theme-mono em {
  font-style: italic;
}
.theme-mono .card-text ul {
  list-style: disc;
  padding-left: 1.2em;
}
.theme-mono .card-text table {
  border-collapse: collapse;
  margin-top: 0.35em;
}
.theme-mono .card-text td, .theme-mono .card-text th {
  border: 0.15mm solid #888;
  padding: 0 0.3em;
}
.theme-mono .ref-damage, .theme-mono .ref-check {
  font-weight: 700;
}
.theme-mono .action {
  font-size: 0.85em;
}
.theme-mono .card-source {
  color: #555;
  font-size: 0.85em;
  font-style: italic;
}
.theme-mono .card-lines p {
  padding-left: 0.8em;
  text-indent: -0.8em;
}
.theme-mono .card-rule {
  border: 0;
  border-top: 0.2mm solid #000;
}
.theme-mono .card-heightened {
  border-top: 0.15mm solid #888;
  padding-top: 0.3em;
}
.theme-parchment.card {
  --ink: #2b1d0e;
  --accent: #5d0000;
  --paper: #fbf5e6;
  --paper-edge: #f1e5c6;
  --frame: #7a5a2f;
  --rule: #b89560;
  --gold: #d8c483;
  font: 8.5pt/1.2 "Crimson Pro", Georgia, serif;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 40%, var(--paper) 40%, var(--paper-edge) 100%);
  border: 0.6mm solid var(--frame);
  box-shadow: inset 0 0 0 0.6mm var(--paper), inset 0 0 0 0.8mm var(--rule);
  border-radius: 1.5mm;
  padding: 2.8mm;
}
.theme-parchment .card-body > * + * {
  margin-top: 0.45em;
}
.theme-parchment .card-head {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  border-bottom: 0.35mm solid var(--accent);
  padding-bottom: 0.2em;
}
.theme-parchment .card-name {
  flex: 1;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.1;
  color: var(--accent);
}
.theme-parchment .card-level {
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.theme-parchment .card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
}
.theme-parchment .trait {
  background: var(--accent);
  color: #fff;
  border: 0.35mm solid var(--gold);
  padding: 0 0.35em;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
}
.theme-parchment .trait-uncommon {
  background: #98513d;
}
.theme-parchment .trait-rare {
  background: #002664;
}
.theme-parchment .trait-unique {
  background: #54166e;
}
.theme-parchment .card-props, .theme-parchment .card-stats {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.8em;
}
.theme-parchment dl div {
  display: flex;
  gap: 0.3em;
}
.theme-parchment dt {
  font-weight: 600;
}
.theme-parchment .card-activation {
  border-top: 0.2mm solid var(--rule);
  border-bottom: 0.2mm solid var(--rule);
  padding: 0.2em 0;
}
.theme-parchment .card-activation p + p, .theme-parchment .card-text p + p {
  margin-top: 0.35em;
}
.theme-parchment strong {
  font-weight: 600;
}
.theme-parchment em {
  font-style: italic;
}
.theme-parchment .card-text ul {
  list-style: disc;
  padding-left: 1.2em;
}
.theme-parchment .card-text table {
  border-collapse: collapse;
  margin-top: 0.35em;
}
.theme-parchment .card-text td, .theme-parchment .card-text th {
  border-bottom: 0.15mm solid var(--rule);
  padding: 0 0.3em;
}
.theme-parchment .ref-damage, .theme-parchment .ref-check {
  font-weight: 600;
  color: var(--accent);
}
.theme-parchment .ref-uuid {
  font-style: italic;
}
.theme-parchment .action {
  color: var(--accent);
  font-size: 0.85em;
}
.theme-parchment .card-source {
  font-style: italic;
  font-size: 0.85em;
  opacity: 0.75;
}
.theme-parchment .card-lines p {
  padding-left: 0.8em;
  text-indent: -0.8em;
}
.theme-parchment .card-rule {
  border: 0;
  border-top: 0.3mm solid var(--accent);
}
.theme-parchment .card-heightened {
  border-top: 0.2mm solid var(--rule);
  padding-top: 0.3em;
}
.parchment-green.card {
  --accent: #1f4d24;
  --paper: #f8f7e8;
  --paper-edge: #e4e6c6;
  --frame: #4f6a3a;
  --rule: #9aab78;
}
.parchment-red.card {
  --accent: #7a1010;
  --paper: #fcf2ea;
  --paper-edge: #f0d8c4;
  --frame: #7a3a2a;
  --rule: #c08a70;
}
.parchment-blue.card {
  --accent: #173d6b;
  --paper: #f4f5f0;
  --paper-edge: #dce2e2;
  --frame: #3f5a7a;
  --rule: #8ea3b8;
}
.parchment-purple.card {
  --accent: #4a1f5e;
  --paper: #f8f1f2;
  --paper-edge: #e6d8e2;
  --frame: #5d3f6e;
  --rule: #a78fb5;
}
.parchment-grey.card {
  filter: grayscale(1);
}
.theme-apothecary.card {
  --ink: #1e1a14;
  --accent: #6b2a1a;
  font: 8.5pt/1.2 "IM Fell English", Georgia, serif;
  color: var(--ink);
  background: #f7f1de;
  border: 0.7mm solid var(--ink);
  box-shadow: inset 0 0 0 0.7mm #f7f1de, inset 0 0 0 0.9mm var(--ink);
  padding: 3mm;
}
.theme-apothecary .card-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-bottom: 0.3em;
  border-bottom: 0.2mm solid var(--ink);
}
.theme-apothecary .card-name {
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 1.45em;
  letter-spacing: 0.03em;
}
.theme-apothecary .card-level {
  font-style: italic;
  color: var(--accent);
}
.theme-apothecary .card-level::before, .theme-apothecary .card-level::after {
  content: " ~ ";
}
.theme-apothecary .card-traits {
  justify-content: center;
  gap: 0;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 0.9em;
}
.theme-apothecary .trait + .trait::before {
  content: "·";
  margin: 0 0.35em;
}
.theme-apothecary .trait-uncommon, .theme-apothecary .trait-rare, .theme-apothecary .trait-unique {
  color: var(--accent);
}
.theme-apothecary .card-props, .theme-apothecary .card-stats {
  justify-content: center;
}
.theme-apothecary dt, .theme-apothecary .card-lines strong {
  font-family: "IM Fell English SC", Georgia, serif;
  font-weight: 400;
}
.theme-apothecary .card-activation {
  text-align: center;
  font-style: italic;
}
.theme-apothecary .card-activation strong {
  font-style: normal;
  font-weight: 400;
  font-family: "IM Fell English SC", Georgia, serif;
}
.theme-apothecary .card-text, .theme-apothecary .card-heightened {
  text-align: justify;
  hyphens: auto;
}
.theme-apothecary .card-text::before {
  content: "❦";
  display: block;
  text-align: center;
  color: var(--accent);
  margin-bottom: 0.2em;
}
.theme-apothecary .card-heightened::before {
  content: none;
}
.theme-apothecary .ref-damage, .theme-apothecary .ref-check {
  color: var(--accent);
}
.theme-apothecary .card-text td, .theme-apothecary .card-text th {
  border-bottom: 0.15mm solid var(--ink);
  padding: 0 0.3em;
}
.theme-apothecary .card-source {
  text-align: center;
  font-style: italic;
  font-size: 0.8em;
}
.theme-grimoire.card {
  --gold: #d6b25e;
  --gold-dim: #8a6d2b;
  font: 8.5pt/1.2 "Crimson Pro", Georgia, serif;
  color: #eadfc6;
  background: radial-gradient(ellipse at 50% 35%, #33261c 0%, #1b1410 100%);
  border: 0.6mm solid var(--gold-dim);
  box-shadow: inset 0 0 0 0.6mm #1b1410, inset 0 0 0 0.8mm var(--gold);
  border-radius: 1.5mm;
  padding: 2.8mm;
}
.theme-grimoire .card-head {
  border-bottom: 0.3mm solid var(--gold);
  padding-bottom: 0.2em;
}
.theme-grimoire .card-name, .theme-grimoire .card-level {
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  color: var(--gold);
}
.theme-grimoire .card-name {
  font-size: 1.3em;
}
.theme-grimoire .trait {
  border: 0.3mm solid var(--gold);
  color: var(--gold);
  padding: 0 0.35em;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
}
.theme-grimoire .trait-uncommon {
  border-color: #d9884a;
  color: #d9884a;
}
.theme-grimoire .trait-rare {
  border-color: #6fa3e0;
  color: #6fa3e0;
}
.theme-grimoire .trait-unique {
  border-color: #c08be0;
  color: #c08be0;
}
.theme-grimoire strong, .theme-grimoire dt {
  font-weight: 600;
  color: var(--gold);
}
.theme-grimoire .card-activation {
  border-top: 0.2mm solid var(--gold-dim);
  border-bottom: 0.2mm solid var(--gold-dim);
  padding: 0.2em 0;
}
.theme-grimoire .card-rule {
  color: var(--gold);
}
.theme-grimoire .card-heightened {
  border-top: 0.2mm solid var(--gold-dim);
  padding-top: 0.3em;
}
.theme-grimoire .card-text td, .theme-grimoire .card-text th {
  border-bottom: 0.15mm solid var(--gold-dim);
  padding: 0 0.3em;
}
.theme-grimoire .ref-damage, .theme-grimoire .ref-check, .theme-grimoire .action {
  color: var(--gold);
}
.theme-grimoire .card-source {
  font-style: italic;
  font-size: 0.85em;
  color: var(--gold-dim);
}
.theme-codex.card {
  --accent: #2c3e5c;
  font: 7.5pt/1.3 Inter, "Helvetica Neue", Arial, sans-serif;
  color: #1c2230;
  background: #fff;
  border: 0.25mm solid #c9ced8;
  border-radius: 2mm;
  padding: 0;
}
.theme-codex .card-body > :not(.card-head) {
  margin-left: 2.5mm;
  margin-right: 2.5mm;
}
.theme-codex .card-body > :last-child {
  margin-bottom: 2.5mm;
}
.theme-codex .card-head {
  background: var(--accent);
  color: #fff;
  padding: 1.6mm 2.5mm;
}
.theme-codex .card-name {
  font-size: 1.3em;
  font-weight: 700;
}
.theme-codex .card-level {
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.theme-codex .trait {
  background: #e8ebf1;
  color: #3a4458;
  border-radius: 99em;
  padding: 0.05em 0.6em;
  font-size: 0.8em;
  font-weight: 600;
}
.theme-codex .trait-uncommon {
  background: #f6dcc8;
  color: #8a3f10;
}
.theme-codex .trait-rare {
  background: #d3e0f5;
  color: #173d7a;
}
.theme-codex .trait-unique {
  background: #e7d7f3;
  color: #54207a;
}
.theme-codex dt, .theme-codex .card-lines strong, .theme-codex .card-activation strong {
  font-weight: 600;
  color: var(--accent);
}
.theme-codex dt {
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.04em;
  align-self: center;
}
.theme-codex .card-activation {
  background: #f1f3f7;
  border-left: 0.6mm solid var(--accent);
  padding: 0.3em 0.5em;
}
.theme-codex .card-rule {
  color: #c9ced8;
}
.theme-codex .card-heightened {
  border-top: 0.2mm solid #c9ced8;
  padding-top: 0.3em;
}
.theme-codex .card-text td, .theme-codex .card-text th {
  border-bottom: 0.15mm solid #c9ced8;
  padding: 0 0.3em;
}
.theme-codex .ref-damage, .theme-codex .ref-check {
  font-weight: 600;
  color: var(--accent);
}
.theme-codex .card-source {
  color: #7a8394;
  font-size: 0.8em;
}
@layer components {
  .input {
    border-radius: 0.25rem;
    border-style: var(--tw-border-style);
    border-width: 1px;
    border-color: var(--color-stone-300);
    background-color: var(--color-white);
    padding-inline: calc(var(--spacing) * 1.5);
    padding-block: calc(var(--spacing) * 0.5);
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    color: var(--color-stone-900);
  }
  .btn {
    border-radius: 0.25rem;
    border-style: var(--tw-border-style);
    border-width: 1px;
    border-color: var(--color-stone-300);
    background-color: var(--color-white);
    padding-inline: calc(var(--spacing) * 2);
    padding-block: calc(var(--spacing) * 0.5);
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-stone-100);
      }
    }
  }
  .chip {
    border-radius: calc(infinity * 1px);
    background-color: var(--color-amber-100);
    padding-inline: calc(var(--spacing) * 2);
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-amber-200);
      }
    }
  }
  .heading {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
    color: var(--color-stone-500);
    text-transform: uppercase;
  }
}
@layer components {
  .card strong {
    font-weight: 700;
  }
  .card em {
    font-style: italic;
  }
  .card-body > * + * {
    margin-top: 0.5em;
  }
  .card-head {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
  }
  .card-name {
    flex: 1;
    line-height: 1.1;
  }
  .card-level {
    white-space: nowrap;
  }
  .card-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
  }
  .card-props, .card-stats {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.8em;
  }
  .card dl div {
    display: flex;
    gap: 0.3em;
  }
  .card-text p + p, .card-activation p + p {
    margin-top: 0.35em;
  }
  .card-text ul {
    list-style: disc;
    padding-left: 1.2em;
  }
  .card-text table {
    border-collapse: collapse;
    margin-top: 0.35em;
  }
  .card-lines p {
    padding-left: 0.8em;
    text-indent: -0.8em;
  }
  .card-rule {
    border: 0;
    border-top: 0.2mm solid currentColor;
  }
}
.sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 2mm;
  align-content: flex-start;
}
.card-rotated {
  position: relative;
  break-inside: avoid;
}
.card-rotated > .card {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}
.card {
  box-sizing: border-box;
  overflow: hidden;
  break-inside: avoid;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
@media print {
  body, .sheet {
    background: none;
    min-height: 0 !important;
  }
}
@media screen {
  .card[data-overflow="true"] {
    outline: 2px solid red;
    outline-offset: -2px;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-divide-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-divide-y-reverse: 0;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-tracking: initial;
    }
  }
}
