.timeline-canvas.show-texture::after {
  position: absolute;
  inset: 0;
  z-index: 10;
  content: "";
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(80 60 35 / 2%) 3px 4px),
    radial-gradient(circle at 20% 15%, rgb(123 88 48 / 5%) 0 1px, transparent 2px);
  background-size: auto, 18px 18px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.timeline-canvas[data-theme="minimal"] .canvas-kicker,
.timeline-canvas[data-theme="minimal"] .header-kicker {
  letter-spacing: 0.24em;
}

.timeline-canvas[data-theme="parchment"] {
  box-shadow: 0 18px 45px rgb(86 57 28 / 20%);
}

.timeline-canvas[data-theme="parchment"] .canvas-section::before {
  position: absolute;
  inset: 11px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--border-color), transparent 45%);
  pointer-events: none;
}

.timeline-canvas[data-theme="archive"] .header-preview,
.timeline-canvas[data-theme="archive"] .footer-preview {
  background:
    linear-gradient(90deg, transparent 0 47px, rgb(148 40 35 / 8%) 48px 49px, transparent 50px),
    var(--canvas-background);
}

.timeline-canvas[data-theme="archive"] .timeline-card {
  border-style: dashed;
}

.timeline-canvas[data-theme="archive"] .timeline-heading h2::after {
  display: inline-block;
  padding: 4px 7px;
  margin-left: 12px;
  color: var(--primary-color);
  content: "RESTRICTED";
  border: 2px solid currentColor;
  font: 800 0.36em/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.12em;
  transform: rotate(-3deg);
  vertical-align: middle;
}

.timeline-canvas[data-theme="scifi"] {
  box-shadow: 0 0 45px rgb(36 232 188 / 10%);
}

.timeline-canvas[data-theme="scifi"] .canvas-section {
  background-image:
    linear-gradient(rgb(65 222 190 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(65 222 190 / 3%) 1px, transparent 1px);
  background-size: 22px 22px;
}

.timeline-canvas[data-theme="scifi"] .header-title,
.timeline-canvas[data-theme="scifi"] .timeline-heading h2,
.timeline-canvas[data-theme="scifi"] .timeline-card h3 {
  text-shadow: 0 0 18px color-mix(in srgb, var(--primary-color), transparent 70%);
}

.timeline-canvas[data-theme="scifi"] .timeline-card {
  background: color-mix(in srgb, var(--canvas-background), var(--primary-color) 5%);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}
.timeline-canvas[data-theme="ink"] {
  box-shadow: 0 18px 48px rgb(54 47 37 / 16%);
}

.timeline-canvas[data-theme="ink"] .header-title,
.timeline-canvas[data-theme="ink"] .timeline-heading h2 {
  letter-spacing: 0.08em;
}

.timeline-canvas[data-theme="ink"] .timeline-card {
  background: color-mix(in srgb, var(--canvas-background), #fff 24%);
  border-width: 0 0 1px 3px;
  border-left-color: var(--primary-color);
}

.timeline-canvas[data-theme="ink"] .timeline-heading h2::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  content: "";
  background: var(--primary-color);
  transform: rotate(45deg);
  vertical-align: 0.16em;
}

.timeline-canvas[data-theme="gothic"] {
  box-shadow: 0 20px 55px rgb(26 5 19 / 45%);
}

.timeline-canvas[data-theme="gothic"] .canvas-section {
  background-image: radial-gradient(circle at 50% 0, rgb(179 62 92 / 9%), transparent 42%);
}

.timeline-canvas[data-theme="gothic"] .header-title,
.timeline-canvas[data-theme="gothic"] .timeline-heading h2,
.timeline-canvas[data-theme="gothic"] .timeline-card h3 {
  letter-spacing: 0.045em;
  text-shadow: 0 2px 18px rgb(179 62 92 / 22%);
}

.timeline-canvas[data-theme="gothic"] .timeline-card {
  background: color-mix(in srgb, var(--canvas-background), #fff 3%);
  border-color: color-mix(in srgb, var(--border-color), var(--primary-color) 24%);
}

.timeline-canvas[data-theme="forest"] .canvas-section {
  border-radius: var(--canvas-radius);
}

.timeline-canvas[data-theme="forest"] .timeline-card {
  background: color-mix(in srgb, var(--canvas-background), #fff 40%);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 8px 24px rgb(34 66 45 / 7%);
}

.timeline-canvas[data-theme="forest"] .timeline-heading h2::after {
  display: inline-block;
  width: 32px;
  height: 1px;
  margin-left: 12px;
  content: "";
  background: var(--secondary-color);
  vertical-align: middle;
}

.timeline-canvas[data-theme="celestial"] {
  background-image:
    radial-gradient(circle at 12% 6%, rgb(157 140 255 / 13%), transparent 24%),
    radial-gradient(circle at 88% 24%, rgb(94 198 200 / 10%), transparent 22%);
  box-shadow: 0 18px 55px rgb(12 10 43 / 48%);
}

.timeline-canvas[data-theme="celestial"] .canvas-section {
  background-color: transparent;
}

.timeline-canvas[data-theme="celestial"] .header-title,
.timeline-canvas[data-theme="celestial"] .timeline-heading h2,
.timeline-canvas[data-theme="celestial"] .timeline-card h3 {
  text-shadow: 0 0 20px color-mix(in srgb, var(--primary-color), transparent 62%);
}

.timeline-canvas[data-theme="celestial"] .timeline-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--canvas-background), var(--primary-color) 7%),
    color-mix(in srgb, var(--canvas-background), var(--secondary-color) 4%));
  border-color: color-mix(in srgb, var(--border-color), var(--primary-color) 28%);
}

