@font-face {
    font-family: "Colossus Display";
    src: url("../fonts/Revans-Medium.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Product-only skin. Purchase, gallery and wishlist behavior stay shared. */
.cof-page {
    --dngn-bg: #100e0c;
    --dngn-text: #e8dfcb;
    --dngn-muted: #b9ad9d;
    --dngn-orange: #ef5525;
    --dngn-cyan: #f47a42;
    --dngn-rule: #5a4534;
    --cof-display: "Colossus Display", Georgia, serif;
    padding: 0 0 35px;
    overflow: clip;
    font: 400 18px/1.65 Georgia, "Times New Roman", serif;
    background-color: var(--dngn-bg);
    /* Keep the grain crisp, with a charcoal wash reducing its strength by 65%. */
    background-image: linear-gradient(#100e0ca6, #100e0ca6), url("../images/colossus-of-fire/grain.svg");
    background-size: auto, 192px 192px;
}
.cof-page .dngn-container { width: min(1280px, calc(100% - 112px)); }
.cof-page :where(h2,h3,h4) { font-family: var(--cof-display); font-weight: 400; letter-spacing: -.025em; text-transform: uppercase; }
.cof-page h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.025em; }
.cof-page :where(button,input,summary,.dngn-button,.dngn-secondary) { border-radius: 0; }
.cof-page :where(.dngn-button,.dngn-secondary,.dngn-wishlist) { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
.cof-page .dngn-button { background: var(--dngn-orange); border-color: var(--dngn-orange); color: #100e0c !important; text-transform: uppercase; letter-spacing: 0; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.cof-page .dngn-button:hover { background: #ff7947; border-color: #ff7947; }
.cof-page .dngn-button:focus-visible { outline-color: #100e0c; outline-offset: -6px; }
.cof-page .dngn-secondary { color: var(--dngn-text); background: #100e0c; }
.cof-page .dngn-secondary:hover,
.cof-page .dngn-secondary[aria-pressed="true"] { color: #100e0c; background: var(--dngn-orange); }
.cof-page .dngn-wishlist { border-radius: 0; border-color: var(--dngn-orange); background: #100e0c; }
.cof-page .dngn-wishlist:hover { background: #352017; }
.cof-page .dngn-text-link { color: var(--dngn-orange); border-bottom: 0; font-size: 12px; }
.cof-page .dngn-text-link:hover { color: #ff9b70; }
.cof-page .dngn-section { position: relative; padding-block: 70px; border-top: 0; }
.cof-page .dngn-back { position: relative; z-index: 3; font-size: 11px; }
.cof-hero-shell { position: relative; isolation: isolate; padding-top: 22px; background-color: var(--dngn-bg); }
.cof-hero-backdrop { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: center 46%; opacity: .24; -webkit-mask-image: linear-gradient(to right, transparent, #000 32%); mask-image: linear-gradient(to right, transparent, #000 32%); pointer-events: none; }
.cof-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; min-height: 700px; align-items: center; padding: 36px 0 60px; }
.cof-info { position: relative; z-index: 2; min-width: 0; width: 100%; max-width: 560px; }
.cof-info h1 { margin: 0; }
.cof-wordmark { display: block; width: 100%; height: auto; }
.cof-byline { margin-top: 24px !important; font-size: 15px; }
.cof-byline a { color: var(--dngn-orange); text-decoration: underline; text-underline-offset: 4px; }
.cof-page .dngn-price { margin-top: 26px; gap: 9px 15px; }
.cof-page .dngn-price strong { font: 700 25px/1.35 Georgia, serif; }
.cof-page .dngn-price .cof-sale { flex-basis: 100%; color: var(--dngn-cyan); font: 600 11px/1.5 var(--dngn-mono); }
.cof-page .dngn-actions { max-width: 400px; gap: 14px; }
.cof-page .dngn-quick-links { margin-top: 18px; }
.cof-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 18px; }
.cof-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 13px; }
.cof-milestone { display: flex; align-items: center; gap: 8px; font: 600 10px/1.4 var(--dngn-mono); }
.cof-milestone > img { width: 34px; height: 34px; object-fit: contain; }
.cof-milestone :where(strong,small) { display: block; }
.cof-milestone small { margin-top: 3px; color: var(--dngn-muted); }
.cof-owned-actions { display: flex; flex: 1; flex-wrap: wrap; gap: 10px; }
.cof-owned-actions > a { flex: 1 1 160px; gap: 10px; }
.cof-owned-actions svg { flex-shrink: 0; width: 22px; height: 22px; }
.cof-page .dngn-community { max-width: 440px; }
.cof-page .dngn-community > div { flex-wrap: wrap; }
.cof-page .dngn-community .dngn-secondary { width: 100%; font-size: 11px; }
.cof-section-nav { position: relative; z-index: 2; background: #100e0c; }
.cof-section-nav > div { display: flex; }
.cof-section-nav a { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 58px; padding: 0 12px; font: 600 11px/1.5 var(--dngn-mono); text-align: center; text-transform: uppercase; letter-spacing: 0; }
.cof-section-nav a:hover { color: var(--dngn-orange); }
.cof-page .cof-supplement { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 64px; border: 0; }
.cof-supplement h2 { margin-bottom: 32px; font-size: clamp(34px, 4.5vw, 64px); }
.cof-supplement h2 > span { color: var(--dngn-orange); }
.cof-page .dngn-prose { font-size: 18px; line-height: 1.75; }
.cof-page .dngn-prose :where(h3,h4) { color: var(--dngn-orange); font-size: 24px; }
.cof-page .dngn-prose > p:last-child { font: inherit; color: inherit; }
.cof-page .dngn-prose > :where(ol,ul) { columns: 1; margin: 20px 0; }
.cof-page .dngn-prose p:empty { display: none; }
.cof-book-display { width: 100%; max-width: 530px; min-width: 0; justify-self: center; }
.cof-cover { display: block; cursor: zoom-in; }
.cof-cover img { display: block; width: min(430px, 100%); height: auto; max-height: 560px; object-fit: contain; margin-inline: auto; }
.cof-page .dngn-cover-thumbnails { margin-top: 22px; gap: 10px; }
.cof-page .dngn-cover-thumbnails a { border: 0; border-radius: 0; background: transparent; }
.cof-page .dngn-cover-thumbnails a:hover { background: #ffffff0a; }
.cof-supplement-art { position: sticky; top: 96px; display: block; align-self: start; justify-self: center; min-width: 0; width: min(580px, 100%); cursor: zoom-in; }
.cof-supplement-art img { display: block; width: 100%; height: auto; max-height: calc(100svh - 128px); object-fit: contain; }
.cof-included { margin-top: 30px; }
.cof-included h3 { font-size: 22px; margin-bottom: 15px; }
.cof-included ol { margin: 0; padding: 0; list-style: none; }
.cof-included li { display: flex; gap: 20px; padding: 16px 0; }
.cof-entry-number { padding-top: 2px; color: var(--dngn-orange); font: 600 15px/1.5 var(--dngn-mono); }
.cof-included h4 { font: 700 18px/1.4 Georgia, serif; text-transform: none; }
.cof-included li p { margin-top: 6px; font-size: 15px; color: var(--dngn-muted); }
.cof-fear-fest { display: flex; align-items: center; gap: 24px; margin-top: 36px; padding-block: 22px; font-size: 14px; color: var(--dngn-muted) !important; }
.cof-fear-fest > img { width: 130px; height: auto; }
.cof-fear-fest strong { display: inline-flex; align-items: center; gap: 10px; margin-top: 5px; font: 600 10px/1.6 var(--dngn-mono); color: var(--dngn-orange); }
.cof-fear-fest .dngn-icon { width: 16px; height: 16px; }
.cof-rule-heading { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
.cof-rule-heading h2 { flex-shrink: 0; max-width: 100%; }
.cof-rule-heading > span { display: none; }
.cof-page .cof-colossi { padding-top: 0; border: 0; }
.cof-art-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; align-items: center; }
.cof-art-plate { display: block; min-width: 0; cursor: zoom-in; }
.cof-art-plate img { display: block; width: 100%; height: 190px; object-fit: contain; }
.cof-creator-profile { display: flex; align-items: center; gap: 24px; margin-block: 28px; }
.cof-creator-profile > img { width: 72px; height: 72px; object-fit: cover; }
.cof-creator-profile p { display: flex; align-items: center; gap: 10px; }
.cof-creator-profile p + p { margin-top: 6px; color: var(--dngn-muted); font-size: 14px; }
.cof-creator-profile .dngn-text-link { margin-top: 8px; }
.cof-page .dngn-disclosure { display: flex; align-items: center; gap: 10px; }
.cof-closing { display: flex; align-items: center; gap: 36px; padding: 32px 0; }
.cof-closing > a:first-child { margin-right: auto; }
.cof-closing img { display: block; width: 280px; height: auto; }
.cof-closing > strong { font: 700 18px/1.5 Georgia, serif; }
.cof-page .dngn-dialog { border-radius: 0; }
.cof-page .dngn-dialog button { border-radius: 0; }

@media (max-width: 1100px) {
    .cof-page .dngn-container { width: calc(100% - 64px); }
    .cof-hero { min-height: 620px; gap: 36px; }
    .cof-info { max-width: 480px; }
    .cof-page .cof-supplement { gap: 50px; }
    .cof-art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .cof-art-plate img { height: 180px; }
    .cof-closing { gap: 24px; }
    .cof-closing img { width: 210px; }
}
@media (max-width: 760px) {
    .cof-page .dngn-container { width: calc(100% - 44px); }
    .cof-hero-shell { padding-top: 14px; }
    .cof-hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding: 24px 0 40px; }
    .cof-info { max-width: 560px; margin-inline: auto; }
    .cof-wordmark { max-width: 500px; margin-inline: auto; }
    .cof-hero-backdrop { width: 100%; opacity: .12; }
    .cof-section-nav a { min-height: 48px; padding-inline: 8px; font-size: 9px; }
    .cof-page .dngn-section { padding-block: 45px; }
    .cof-page .cof-supplement { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .cof-supplement h2 { font-size: clamp(34px, 8vw, 54px); margin-bottom: 25px; }
    .cof-cover img { width: min(280px, 100%); max-height: 365px; }
    .cof-page .dngn-cover-thumbnails { margin-top: 15px; }
    .cof-supplement-art { position: static; width: min(480px, 100%); }
    .cof-rule-heading { gap: 18px; }
    .cof-page h2 { font-size: clamp(26px, 5vw, 38px); }
    .cof-page .cof-colossi { padding-top: 10px; }
    .cof-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .cof-art-plate img { height: 160px; }
    .cof-closing { flex-wrap: wrap; gap: 20px; }
    .cof-closing > a:first-child { flex: 1 0 100%; }
    .cof-closing img { width: 240px; }
    .cof-closing > .dngn-button { flex: 1; min-width: 180px; }
    .cof-creator-profile { gap: 18px; }
    .cof-page .dngn-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
    .cof-page .dngn-dialog-controls { gap: 10px; }
}
@media (max-width: 420px) {
    .cof-page .dngn-container { width: calc(100% - 36px); }
    .cof-page .dngn-back { font-size: 10px; }
    .cof-page .dngn-button { font-size: 12px; padding-inline: 12px; }
    .cof-page .dngn-wishlist { min-width: 54px; }
    .cof-art-plate img { height: 135px; }
    .cof-fear-fest { gap: 16px; font-size: 12px; }
    .cof-fear-fest > img { width: 100px; }
    .cof-page .dngn-presets--suggested { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .cof-page :where(.dngn-button,.dngn-secondary,.dngn-wishlist) { transition: none; }
}

/* Transitions.dev: texts reveal, physical cover tilt, and inline arrow hover. */

:root {
  --stagger-dur: 500ms;
  --stagger-distance: 12px;
  --stagger-stagger: 40ms;
  --stagger-blur: 3px;
  --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lines start translated down + blurred + invisible; .is-shown
   on the parent flips them to their resting state. The second
   line's transition-delay holds it back by --stagger-stagger
   so the eye lands on the headline first. */
.t-stagger-line {
  display: block;
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity   var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter    var(--stagger-dur) var(--stagger-ease);
  will-change: transform, opacity, filter;
}
.t-stagger-line--2 { transition-delay: var(--stagger-stagger); }

.t-stagger.is-shown .t-stagger-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Exit decouples from the stagger: same fade for every line,
   no Y return, no blur — so the disappearance reads as a
   single quiet fade instead of a reverse reveal. */
.t-stagger.is-hiding .t-stagger-line {
  opacity: 0;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 200ms ease,
    transform 0s linear,
    filter 0s linear;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .t-stagger-line { transition: none !important; }
}

:root {
  --tilt-perspective: 1000px;
  --tilt-return: 1000ms;
  --tilt-return-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-follow: 400ms;
  --tilt-follow-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-glare-opacity: 0.32;
  --tilt-glare-fade: 300ms;
  --tilt-glare-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The outer wrapper is the flat hit area; touch-action:none
   lets a finger drag tilt the card instead of scrolling the
   page, so tap-hold-drag works on mobile. */
.t-tilt { touch-action: none; }
/* The card tilts toward the pointer via rotateX/rotateY fed
   from JS; on leave it eases back to flat. A separate
   .is-tilting class swaps in a short linear follow while the
   pointer moves so the tilt tracks the cursor 1:1. */
.t-tilt-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform:
    perspective(var(--tilt-perspective))
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform var(--tilt-return) var(--tilt-return-ease);
  will-change: transform;
}
.t-tilt-card.is-tilting {
  transition: transform var(--tilt-follow) var(--tilt-follow-ease);
}
/* Cursor-tracked glare: layered soft circles that add like
   light (screen blend) at the pointer position. */
.t-tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle 95px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.48), rgba(255,255,255,0.06) 52%, rgba(255,255,255,0) 84%),
    radial-gradient(circle 200px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.22), rgba(255,255,255,0.04) 58%, rgba(255,255,255,0) 78%),
    radial-gradient(circle 360px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.10), rgba(255,255,255,0) 88%);
  transition: opacity var(--tilt-glare-fade) var(--tilt-glare-ease);
}
.t-tilt.is-hover .t-tilt-glare { opacity: var(--tilt-glare-opacity); }

@media (prefers-reduced-motion: reduce) {
  .t-tilt-card { transform: none !important; transition: none !important; }
}

:root {
  --learn-shift: 2px;
  --learn-spread: 8deg;
  --learn-in: 350ms;
  --learn-out: 350ms;
  --learn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-learn-chevron {
  display: inline-flex;
  transform: translateX(0);
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn-arm {
  transform-box: view-box;
  transform-origin: 10px 8px;
  vector-effect: non-scaling-stroke;
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn:hover .t-learn-chevron { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm { transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
.t-learn:hover .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }

@media (prefers-reduced-motion: reduce) {
  .t-learn-chevron, .t-learn-arm { transition: none !important; }
}

/* Keep the supplement's crisp artwork and hard edges while tuning the skill. */
.cof-page {
    --stagger-blur: 0px;
    --cof-hover-duration: 350ms;
    --cof-hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.cof-page .t-tilt { touch-action: auto; }
.cof-page .t-tilt-card { border-radius: 0; overflow: visible; }
.cof-page .cof-closing .dngn-button.t-stagger-line { display: inline-flex; }
.cof-page .cof-owned-actions.t-stagger-line { display: flex; }
.cof-page :where(.cof-art-plate img, .dngn-cover-thumbnails img) {
    transition: transform var(--cof-hover-duration) var(--cof-hover-ease);
}
.cof-page :where(.dngn-button, .dngn-wishlist, .cof-section-nav a) {
    transition: transform var(--cof-hover-duration) var(--cof-hover-ease), background-color 150ms ease, color 150ms ease;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .cof-page :where(.cof-art-plate, .dngn-cover-thumbnails a):hover img { transform: translateY(-4px) scale(1.04); }
    .cof-page :where(.dngn-button, .dngn-wishlist, .cof-section-nav a):hover:not(:disabled) { transform: translateY(-2px); }
}
@keyframes cof-scroll-reveal {
    from { opacity: 0; transform: translateY(var(--stagger-distance)); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        .cof-native-reveals .t-stagger-line {
            animation: cof-scroll-reveal auto var(--stagger-ease) both;
            animation-timeline: view();
            animation-range: entry 0% entry 100%;
            transition: none;
        }
    }
}
.cof-page .cof-reveal-visible .t-stagger-line {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
}
@media (prefers-reduced-motion: reduce) {
    .cof-page :where(.t-stagger-line, .t-learn-chevron, .t-learn-arm, .t-tilt-card, .cof-art-plate img, .dngn-cover-thumbnails img, .dngn-button, .dngn-wishlist, .cof-section-nav a) {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}
@media print {
    .cof-page .t-stagger-line { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}
