/*
 * /bible/cathedral: the Apostasia Cathedral guide, in the Soul Shop guide's rift look (a dark page, glowing cyan
 * accents, glass cards, the page edges torn open onto violet space), laid out like the Cathedral launch infographic
 * (.scratch/cathedral-launch/bin/infographic.py in the luniac workspace) and scoped under .ca-guide so it never touches
 * the rest of the site. Linked only by views/partials/head-extras/bible-cathedral.ejs. The page's palette is not the
 * site's theme (dark in both themes), so its colours are page tokens below (one literal per line, marked for
 * test/css/design-tokens.spec.ts). Anton and Lexend are latin subsets: Chinese, Japanese and Korean use the system's
 * own fonts (see the end).
 */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/anton-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0300-0309, U+0323;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/lexend-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0300-0309, U+0323;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/fonts/lexend-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0300-0309, U+0323;
}

.ca-guide {
  --ca-bg: #07070d; /* literal-ok */
  --ca-ink: #ecebf5; /* literal-ok */
  --ca-ink-strong: #f4f3ff; /* literal-ok */
  --ca-ink-soft: #d6d5e8; /* literal-ok */
  --ca-ink-step: #cfcee2; /* literal-ok */
  --ca-caption: #cdd6ea; /* literal-ok */
  --ca-mute: #a3a2ba; /* literal-ok */
  --ca-line: #2a2a3d; /* literal-ok */
  --ca-rift: #7fdcff; /* literal-ok */
  --ca-rift-2: #b69cff; /* literal-ok */
  --ca-int: #b69cff; /* literal-ok */
  --ca-int-glow: rgba(182, 156, 255, 0.45); /* literal-ok */
  --ca-dex: #5ef0b5; /* literal-ok */
  --ca-dex-glow: rgba(94, 240, 181, 0.45); /* literal-ok */
  --ca-vit: #ffb347; /* literal-ok */
  --ca-vit-glow: rgba(255, 179, 71, 0.45); /* literal-ok */
  --ca-live: #ff4d6d; /* literal-ok */
  --ca-live-ink: #ff8fa3; /* literal-ok */
  --ca-live-bg: rgba(255, 77, 109, 0.14); /* literal-ok */
  --ca-live-ring: rgba(255, 77, 109, 0.45); /* literal-ok */
  --ca-ok-bg: rgba(127, 220, 255, 0.12); /* literal-ok */
  --ca-box-line: rgba(127, 220, 255, 0.75); /* literal-ok */
  --ca-box-top: rgba(127, 220, 255, 0.08); /* literal-ok */
  --ca-box-bottom: rgba(182, 156, 255, 0.04); /* literal-ok */
  --ca-card-top: rgba(255, 255, 255, 0.06); /* literal-ok */
  --ca-card-bottom: rgba(255, 255, 255, 0.02); /* literal-ok */
  --ca-card-line: rgba(140, 190, 255, 0.18); /* literal-ok */
  --ca-card-inner: rgba(120, 150, 255, 0.06); /* literal-ok */
  --ca-tile-ring: rgba(255, 255, 255, 0.14); /* literal-ok */
  --ca-glow: rgba(127, 220, 255, 0.65); /* literal-ok */
  --ca-glow-strong: rgba(127, 220, 255, 0.8); /* literal-ok */
  --ca-glow-mid: rgba(127, 220, 255, 0.5); /* literal-ok */
  --ca-glow-soft: rgba(127, 220, 255, 0.35); /* literal-ok */
  --ca-glow-faint: rgba(127, 220, 255, 0.12); /* literal-ok */
  --ca-glow-violet: rgba(127, 140, 255, 0.45); /* literal-ok */
  --ca-fade: rgba(7, 7, 13, 0); /* literal-ok */
  --ca-rift-0: rgba(127, 220, 255, 0); /* literal-ok */
  --ca-rift-2-0: rgba(182, 156, 255, 0); /* literal-ok */
  --ca-rule: rgba(127, 220, 255, 0.7); /* literal-ok */
  --ca-rule-mid: rgba(182, 156, 255, 0.35); /* literal-ok */
  --ca-top: #1b1640; /* literal-ok */
  --ca-bottom: #0f1f3a; /* literal-ok */
  --ca-display: "Anton", Impact, "Arial Narrow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ca-body: "Lexend", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* the panel's side padding; the hero runs across it */
  --ca-pad: clamp(28px, 6vw, 72px);

  color: var(--ca-ink);
  background:
    radial-gradient(1200px 700px at 50% 30%, var(--ca-top) 0%, var(--ca-fade) 70%),
    radial-gradient(900px 900px at 50% 100%, var(--ca-bottom) 0%, var(--ca-fade) 70%),
    var(--ca-bg);
  border-color: var(--ca-line);
  text-align: left;
  letter-spacing: normal;
  font: 400 19px/1.6 var(--ca-body);
  counter-reset: ca;
  isolation: isolate;
  min-width: 0;
  max-width: 100%;
}

/*
 * The rift edge, the Soul Shop guide's own file (rift.py's bleed(), stretched to the page); the masks fade it out
 * before the text. It sits over the hero and under everything else, as in the infographic.
 */
.ca-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("/images/bible/soul-shop/rift-bleed.svg") 0 0 / 100% 100% no-repeat;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0, #000 18px, rgba(0, 0, 0, 0.45) 60px, rgba(0, 0, 0, 0.12) 120px, transparent 200px, transparent calc(100% - 200px), rgba(0, 0, 0, 0.12) calc(100% - 120px), rgba(0, 0, 0, 0.45) calc(100% - 60px), #000 calc(100% - 18px), #000 100%), /* literal-ok */
    linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.3) 50px, transparent 160px, transparent calc(100% - 140px), rgba(0, 0, 0, 0.3) calc(100% - 50px), #000 100%); /* literal-ok */
  mask-image:
    linear-gradient(90deg, #000 0, #000 18px, rgba(0, 0, 0, 0.45) 60px, rgba(0, 0, 0, 0.12) 120px, transparent 200px, transparent calc(100% - 200px), rgba(0, 0, 0, 0.12) calc(100% - 120px), rgba(0, 0, 0, 0.45) calc(100% - 60px), #000 calc(100% - 18px), #000 100%), /* literal-ok */
    linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.3) 50px, transparent 160px, transparent calc(100% - 140px), rgba(0, 0, 0, 0.3) calc(100% - 50px), #000 100%); /* literal-ok */
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

/* the content's layers: the hero under the rift edge, everything else over it */
.ca-guide > .main-inner {
  z-index: auto;
  padding: 64px var(--ca-pad) 72px;
}

.ca-guide > .main-inner > * {
  position: relative;
  z-index: 2;
}

.ca-guide > .main-inner > .ca-hero {
  z-index: 0;
}

.ca-guide * {
  box-sizing: border-box;
}

/* the site's own element rules (heading colours, image borders) stay out */
.ca-guide h1,
.ca-guide h2,
.ca-guide h3,
.ca-guide p {
  color: inherit;
  background: none;
  border: 0;
  text-shadow: none;
}

.ca-guide img {
  border: 0;
  box-shadow: none;
  max-width: 100%;
  padding: 0;
}

.ca-guide ul,
.ca-guide ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ca-guide figure {
  margin: 0;
}

.ca-guide h1,
.ca-guide h2,
.ca-guide h3 {
  text-wrap: balance;
}

.ca-guide p {
  text-wrap: pretty;
}

/* --- the Bible's breadcrumb and section bar, on the dark page --- */

.ca-guide .bible-crumbs,
.ca-guide .bible-sections {
  font-family: var(--font-body);
  line-height: 1.5;
}

.ca-guide .bible-crumbs {
  color: var(--ca-mute);
}

.ca-guide .bible-crumbs a {
  color: var(--ca-ink);
}

.ca-guide .bible-sections a {
  color: var(--ca-ink);
  border-color: var(--ca-line);
}

.ca-guide .bible-sections a:hover,
.ca-guide .bible-sections a[aria-current="page"] {
  background: var(--ca-ok-bg);
  border-color: var(--ca-rift);
}

.ca-guide a:focus-visible {
  outline: 2px solid var(--ca-rift);
  outline-offset: 2px;
}

/* --- hero: the key art across the panel, fading into it at the bottom --- */

.ca-guide .ca-hero {
  display: block;
  margin: 4px calc(-1 * var(--ca-pad)) 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 55%, transparent 100%); /* literal-ok */
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 55%, transparent 100%); /* literal-ok */
}

.ca-guide .ca-hero img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* --- title: kicker, h1 and lead over the hero's faded bottom --- */

.ca-guide .ca-intro {
  margin-top: -70px;
}

.ca-guide .ca-kicker {
  margin: 0;
  font: 700 20px/1 var(--ca-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ca-rift);
}

.ca-guide h1 {
  margin: 14px 0 18px;
  font: 400 96px/0.95 var(--ca-display);
  text-transform: uppercase;
  color: var(--ca-ink-strong);
  overflow-wrap: break-word;
}

.ca-guide h1 em {
  font-style: normal;
  color: var(--ca-rift);
  text-shadow: 0 0 18px var(--ca-glow), 0 0 46px var(--ca-glow-violet);
}

.ca-guide .ca-lead {
  margin: 0;
  max-width: 1000px;
  font: 400 30px/1.4 var(--ca-body);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* --- the live-tuning notice (one block, so it comes off in one edit) --- */

.ca-guide .ca-live {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  margin-top: 44px;
  padding: 28px 32px;
  background: linear-gradient(160deg, var(--ca-box-top), var(--ca-box-bottom));
  border: 1px solid var(--ca-box-line);
  border-radius: 12px;
  box-shadow: 0 0 18px var(--ca-glow-soft), inset 0 0 26px var(--ca-glow-faint);
}

.ca-guide .ca-tag {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font: 700 16px/1 var(--ca-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ca-live-ink);
  background: var(--ca-live-bg);
  box-shadow: inset 0 0 0 1px var(--ca-live-ring);
}

.ca-guide .ca-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ca-live);
  box-shadow: 0 0 10px var(--ca-live);
}

.ca-guide .ca-live h2 {
  margin: 0;
  font: 400 40px/1.1 var(--ca-display);
  text-transform: uppercase;
  color: var(--ca-ink-strong);
}

.ca-guide .ca-live p {
  margin: 8px 0 0;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ca-ink-soft);
}

/* --- section headings: "01 How to get in" (the live notice is not numbered) --- */

.ca-guide section {
  margin-top: 64px;
}

.ca-guide section:not(.ca-live) > h2 {
  counter-increment: ca;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0 0 26px;
  padding-top: 24px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--ca-rule), var(--ca-rule-mid) 40%, var(--ca-rift-0)) 1;
  font: 400 46px/1 var(--ca-display);
  text-transform: uppercase;
}

.ca-guide section:not(.ca-live) > h2::before {
  content: "0" counter(ca);
  font: 400 64px/1 var(--ca-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ca-rift);
  text-shadow: 0 0 14px var(--ca-glow-soft);
}

/* --- 01 how to get in: three numbered steps --- */

.ca-guide .ca-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: ca-step;
}

.ca-guide .ca-steps > li {
  padding: 0 28px;
}

.ca-guide .ca-steps > li:first-child {
  padding-left: 0;
}

.ca-guide .ca-steps > li + li {
  border-left: 1px solid var(--ca-line);
}

.ca-guide .ca-steps > li::before {
  counter-increment: ca-step;
  content: counter(ca-step);
  display: block;
  font: 400 56px/1 var(--ca-display);
  color: var(--ca-rift);
  text-shadow: 0 0 16px var(--ca-glow-mid);
}

.ca-guide .ca-steps h3 {
  margin: 12px 0 6px;
  font: 700 24px/1.25 var(--ca-body);
}

.ca-guide .ca-steps p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ca-ink-step);
}

.ca-guide .ca-steps p + p {
  margin-top: 8px;
}

/* the party size, difficulty and potion lines under the steps */
.ca-guide .ca-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ca-line);
}

.ca-guide .ca-facts li {
  position: relative;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ca-ink-soft);
}

.ca-guide .ca-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--ca-rift);
  box-shadow: 0 0 8px var(--ca-glow-mid);
  transform: rotate(45deg);
}

/* --- 02 new content, new rules: INT, DEX, VIT --- */

.ca-guide .ca-rules {
  margin: 0 0 26px;
  font-size: 24px;
  color: var(--ca-ink-soft);
}

.ca-guide .ca-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ca-guide .ca-col {
  min-width: 0;
  padding: 24px 20px 26px;
  background: linear-gradient(160deg, var(--ca-card-top), var(--ca-card-bottom));
  border: 1px solid var(--ca-card-line);
  border-radius: 12px;
  /* the stat's colour along the top, drawn inside the card so it follows the rounded corners */
  box-shadow: inset 0 3px 0 var(--ca-c), inset 0 0 22px var(--ca-card-inner);
}

.ca-guide .ca-col--int {
  --ca-c: var(--ca-int);
  --ca-c-glow: var(--ca-int-glow);
}

.ca-guide .ca-col--dex {
  --ca-c: var(--ca-dex);
  --ca-c-glow: var(--ca-dex-glow);
}

.ca-guide .ca-col--vit {
  --ca-c: var(--ca-vit);
  --ca-c-glow: var(--ca-vit-glow);
}

.ca-guide .ca-col h3 {
  margin: 0 0 18px;
}

.ca-guide .ca-stat {
  display: block;
  font: 400 64px/1 var(--ca-display);
  color: var(--ca-c);
  text-shadow: 0 0 18px var(--ca-c-glow);
}

.ca-guide .ca-role {
  display: block;
  margin-top: 10px;
  font: 400 30px/1.1 var(--ca-display);
  text-transform: uppercase;
  color: var(--ca-ink-strong);
}

.ca-guide .ca-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 0 18px;
}

.ca-guide .ca-tiles figure {
  text-align: center;
}

.ca-guide .ca-tiles img {
  display: block;
  width: 100%;
  max-width: 84px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--ca-tile-ring);
}

.ca-guide .ca-tiles figcaption {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ca-caption);
  overflow-wrap: anywhere;
}

.ca-guide .ca-col p {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.ca-guide .ca-col .ca-soft {
  margin-top: 8px;
  color: var(--ca-mute);
}

.ca-guide .ca-classic {
  margin: 30px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.ca-guide .ca-tip {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--ca-mute);
}

/* --- 03 rewards: three cards in the columns' glass --- */

.ca-guide .ca-rewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ca-guide .ca-rewards li {
  min-width: 0;
  padding: 22px 20px 24px;
  font-size: 19px;
  line-height: 1.5;
  background: linear-gradient(160deg, var(--ca-card-top), var(--ca-card-bottom));
  border: 1px solid var(--ca-card-line);
  border-radius: 12px;
  box-shadow: inset 0 3px 0 var(--ca-rift), inset 0 0 22px var(--ca-card-inner);
}

.ca-guide .ca-closer {
  height: 3px;
  margin-top: 56px;
  background: linear-gradient(90deg, var(--ca-rift-0), var(--ca-rift) 20%, var(--ca-rift-2) 80%, var(--ca-rift-2-0));
  box-shadow: 0 0 16px var(--ca-glow-strong);
}

/*
 * Chinese, Japanese, Korean: Anton and Lexend have no glyphs there, so the text falls back to the system's own CJK
 * face (the infographic's Yu Gothic, Microsoft YaHei / JhengHei, Malgun Gothic first). The display type asks for bold:
 * at weight 400 the fallback looks thin next to Anton; font-synthesis: none keeps the Latin glyphs in real Anton
 * instead of a faked bold.
 */
.ca-guide:lang(ja) {
  --ca-cjk: "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", "Noto Sans CJK JP";
}

.ca-guide:lang(zh-CN) {
  --ca-cjk: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC";
}

.ca-guide:lang(zh-TW) {
  --ca-cjk: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC";
}

.ca-guide:lang(ko) {
  --ca-cjk: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR";
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) {
  --ca-display: "Anton", var(--ca-cjk), sans-serif;
  --ca-body: "Lexend", var(--ca-cjk), sans-serif;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) :is(h1, h2, h3, .ca-stat, .ca-role) {
  font-weight: 700;
  font-synthesis: none;
}

/* a pseudo-element cannot sit inside :is(), so the section and step numbers get their own rules */
.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) section:not(.ca-live) > h2::before,
.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) .ca-steps > li::before {
  font-weight: 400;
  font-synthesis: none;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) h1 {
  font-size: 84px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) section:not(.ca-live) > h2 {
  font-size: 42px;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) h3 {
  line-height: 1.2;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) .ca-stat {
  font-size: 52px;
  line-height: 1.15;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) .ca-role {
  font-size: 26px;
}

/* Japanese has no spaces: break headings between phrases, never inside a word (Chrome; others keep their default) */
.ca-guide:lang(ja) :is(h1, h2, h3) {
  word-break: auto-phrase;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) :is(.ca-lead, .ca-kicker) {
  letter-spacing: 0;
}

.ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) :is(.ca-steps p, .ca-live p, .ca-col p, .ca-facts li, .ca-rewards li) {
  line-height: 1.7;
}

/* Korean breaks lines between words, never inside one */
.ca-guide:lang(ko) {
  word-break: keep-all;
}

/* --- narrower screens: the three columns stack, each with its portraits in one row --- */

@media (max-width: 1000px) {
  .ca-guide .ca-cols,
  .ca-guide .ca-rewards {
    grid-template-columns: minmax(0, 1fr);
  }

  .ca-guide .ca-tiles {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px 14px;
  }
}

/* --- phones --- */

@media (max-width: 720px) {
  .ca-guide {
    --ca-pad: 22px;
    font-size: 16px;
  }

  /* on a phone the edge is squeezed sideways, so its teeth grow tall: fade them out sooner */
  .ca-guide::before {
    -webkit-mask-image:
    linear-gradient(90deg, #000 0, #000 10px, rgba(0, 0, 0, 0.45) 30px, rgba(0, 0, 0, 0.12) 56px, transparent 90px, transparent calc(100% - 90px), rgba(0, 0, 0, 0.12) calc(100% - 56px), rgba(0, 0, 0, 0.45) calc(100% - 30px), #000 calc(100% - 10px), #000 100%), /* literal-ok */
    linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.3) 20px, transparent 64px, transparent calc(100% - 64px), rgba(0, 0, 0, 0.3) calc(100% - 20px), #000 100%); /* literal-ok */
    mask-image:
    linear-gradient(90deg, #000 0, #000 10px, rgba(0, 0, 0, 0.45) 30px, rgba(0, 0, 0, 0.12) 56px, transparent 90px, transparent calc(100% - 90px), rgba(0, 0, 0, 0.12) calc(100% - 56px), rgba(0, 0, 0, 0.45) calc(100% - 30px), #000 calc(100% - 10px), #000 100%), /* literal-ok */
    linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.3) 20px, transparent 64px, transparent calc(100% - 64px), rgba(0, 0, 0, 0.3) calc(100% - 20px), #000 100%); /* literal-ok */
  }

  .ca-guide > .main-inner {
    padding: 40px var(--ca-pad) 48px;
  }

  .ca-guide .ca-intro {
    margin-top: -18px;
  }

  .ca-guide .ca-kicker {
    font-size: 14px;
  }

  .ca-guide h1,
  .ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) h1 {
    margin-top: 10px;
    font-size: 52px;
  }

  .ca-guide .ca-lead {
    font-size: 21px;
  }

  .ca-guide .ca-live {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
    padding: 20px 18px;
  }

  .ca-guide .ca-tag {
    grid-row: auto;
    justify-self: start;
    margin: 0 0 12px;
    font-size: 13px;
  }

  .ca-guide .ca-live h2 {
    font-size: 30px;
  }

  .ca-guide .ca-live p {
    font-size: 17px;
  }

  .ca-guide section {
    margin-top: 48px;
  }

  .ca-guide section:not(.ca-live) > h2,
  .ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) section:not(.ca-live) > h2 {
    gap: 14px;
    font-size: 30px;
  }

  .ca-guide section:not(.ca-live) > h2::before {
    font-size: 42px;
  }

  .ca-guide .ca-steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .ca-guide .ca-steps > li {
    padding: 20px 0 0;
    border-top: 1px solid var(--ca-line);
  }

  .ca-guide .ca-steps > li + li {
    border-left: 0;
  }

  .ca-guide .ca-steps > li:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .ca-guide .ca-steps > li::before {
    font-size: 44px;
  }

  .ca-guide .ca-steps h3 {
    font-size: 21px;
  }

  .ca-guide .ca-steps p,
  .ca-guide .ca-col p,
  .ca-guide .ca-rewards li {
    font-size: 17px;
  }

  .ca-guide .ca-facts {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
    padding-top: 18px;
  }

  .ca-guide .ca-facts li {
    font-size: 16px;
  }

  .ca-guide .ca-rewards li {
    padding: 18px 18px 20px;
  }

  .ca-guide .ca-rules {
    font-size: 19px;
  }

  .ca-guide .ca-col {
    padding: 20px 18px 22px;
  }

  .ca-guide .ca-stat,
  .ca-guide:is(:lang(zh), :lang(ja), :lang(ko)) .ca-stat {
    font-size: 48px;
  }

  .ca-guide .ca-role {
    font-size: 26px;
  }

  .ca-guide .ca-classic {
    font-size: 19px;
  }

  .ca-guide .ca-tip {
    font-size: 15px;
  }
}
