/* General feature introductions, independent of the new hero showcase. */
:root {
  --feature-body: clamp(16px, 1.2vw, 46px);
  --feature-small: clamp(12px, .9vw, 35px);
  --feature-heading: clamp(26px, 2.15vw, 84px);
  --feature-gap: clamp(20px, 2vw, 76px);
}

.highlight-cards { background: radial-gradient(ellipse at 50% 30%, #71537b, #17152d 85%); }
.highlight-card-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.highlight-card-art img {
  inset: auto; top: 2%; left: 5%; width: 35%; height: auto;
  opacity: .95; object-fit: contain; border: 1px solid #ecd8ac66;
  transform: rotate(-13deg); z-index: auto;
}
.highlight-card-art img:nth-child(2) { left: 33%; top: -12%; transform: rotate(1deg); }
.highlight-card-art img:nth-child(3) { left: 62%; top: 1%; transform: rotate(13deg); }
.highlight-cards:hover .highlight-card-art img { transform: translateY(-3%) rotate(-13deg); }
.highlight-cards:hover .highlight-card-art img:nth-child(2) { transform: translateY(-3%); }
.highlight-cards:hover .highlight-card-art img:nth-child(3) { transform: translateY(-3%) rotate(13deg); }
.highlight-progression { background: #10273a; }
.highlight-progression > img { opacity: .45; }
.highlight-ability-art {
  position: absolute; inset: 8% 12% 30%; z-index: -1;
  display: flex; justify-content: space-around; align-items: center; gap: 6%;
}
.highlight-ability-art i { position: absolute; left: 7%; right: 7%; top: 50%; height: 1px; background: #d9c49699; }
.highlight-ability-art img {
  position: relative; inset: auto; z-index: 0; width: 26%; height: auto; aspect-ratio: 1;
  object-fit: cover; opacity: .95; border: 2px solid #e2c88a; border-radius: 50%;
  box-shadow: 0 0 25px #96d1fb35;
}
.highlight-ability-art img:nth-of-type(2) { margin-top: -16%; }

.system-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--feature-gap);
  margin-block: clamp(35px, 3.5vw, 130px) clamp(55px, 4vw, 150px);
}
.system-steps article { border: 1px solid #c6ace635; background: #c0a0ed05; padding: clamp(24px, 2.2vw, 84px); }
.system-step-number { display: block; font-family: var(--serif); color: #cdb08a; font-size: clamp(30px, 3vw, 110px); line-height: 1.2; }
.system-step-visual { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.system-step-visual img { width: clamp(55px, 5vw, 190px); height: clamp(70px, 6vw, 225px); object-fit: contain; filter: drop-shadow(0 0 20px #b896de26); }
.system-steps h3 { font-size: var(--feature-heading); margin-block: .6em .7em; color: #f6eafc; }
.system-steps p,
.rarity-heading > p:last-child { font-size: var(--feature-body); color: #c4b6d0; }
.rarity-heading { margin-bottom: clamp(24px, 2.5vw, 90px); }
.rarity-heading > p:last-child { max-width: 72ch; margin: 1em auto 0; }
.cards-section .collectible-card[aria-pressed=true] img { border-color: #ffe8b4; box-shadow: 0 0 0 3px #f1d6a42b, 0 15px 45px #02010880; }
.cards-section .card-rarity { white-space: nowrap; font-size: var(--feature-small); padding-inline: .8em; }
.rarity-description { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.2vw, 48px); justify-content: center; margin-top: clamp(15px, 2vw, 72px); }
.rarity-chip { display: flex; align-items: center; gap: .6em; font-size: var(--feature-small); color: #ccbdd7; }
.rarity-chip img { width: clamp(30px, 2.5vw, 96px); height: clamp(30px, 2.5vw, 96px); object-fit: contain; }
.rarity-chip strong { color: #f2dbae; }
.rarity-explainer { display: flex; align-items: center; gap: var(--feature-gap); max-width: 80ch; padding: clamp(18px, 1.6vw, 64px); border: 1px solid #cab0e330; background: #ffffff04; }
.rarity-explainer > img { flex-shrink: 0; width: clamp(52px, 4vw, 150px); height: auto; }
.rarity-explainer strong { display: block; color: #ead4ac; font-size: var(--feature-body); font-weight: 550; }
.rarity-explainer p { font-size: var(--feature-body); color: #c4b6d0; margin-top: .4em; }
.card-lab { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--feature-gap); padding-block: clamp(30px, 3vw, 115px); border-top: 1px solid #d6bde13d; }
.card-lab h3 { font-size: var(--feature-heading); margin: .6em 0; }
.card-lab-intro > p:not(.eyebrow) { color: #c6b8d1; font-size: var(--feature-body); }
.card-lab-intro .card-no-deck { margin-top: 1.7em; }
.star-preview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, .7vw, 28px); margin-top: clamp(25px, 2vw, 76px); }
.star-preview button { display: grid; justify-items: center; gap: .15em; padding: .6em .25em; font-size: var(--feature-body); border: 1px solid #a58ab052; background: #ffffff03; color: #bcb0cc; }
.star-preview button strong { font-weight: 550; }
.star-preview button > span { font-size: 1.1em; line-height: 1.2; }
.star-preview button[aria-pressed=true] { color: #ffe0a6; border-color: #e7ca8f; background: #d4af7a14; }
.card-bonus-preview { min-width: 0; display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1.35fr); align-items: center; gap: var(--feature-gap); background: radial-gradient(ellipse at 30% 40%, #674e7a33, #20192c); border: 1px solid #d4b8e33b; padding: clamp(20px, 2vw, 76px); }
.bonus-card-art { position: relative; background: none; padding: 0; text-align: center; }
.bonus-card-art img { width: 100%; border: 1px solid #e8d1a280; border-radius: 7px; }
.bonus-card-art > span { display: block; color: #e7c997; font-size: var(--feature-small); padding-top: .8em; }
.bonus-card-info { min-width: 0; }
.bonus-card-info h3 { font-size: clamp(20px, 1.8vw, 72px); }
.bonus-label { margin-top: 1.6em; font-size: var(--feature-small); letter-spacing: .08em; color: #b9a6c9; }
.bonus-number { display: block; font-family: var(--serif); color: #f6d7a0; font-size: clamp(42px, 4vw, 152px); line-height: 1.2; margin-top: .15em; }
.bonus-stat { color: #e6d7ef; font-size: var(--feature-body); }
.bonus-growth { margin-top: 1.4em; padding-top: 1em; border-top: 1px solid #d1b9e32b; }
.bonus-growth > span { display: block; font-size: var(--feature-small); color: #b9a6c9; }
.bonus-growth > strong { display: block; color: #d4b8ec; font-size: var(--feature-body); margin-top: .3em; }
.bonus-growth i { font-style: normal; color: #a187b8; margin-inline: .4em; }
.bonus-active { color: #bea7cf; font-size: var(--feature-small); margin-top: 1.2em; }
.pack-guarantee { display: block; margin-top: 1.5em; color: #eed09a; font-size: var(--feature-small); font-weight: 550; letter-spacing: .08em; }
.card-pack-strip { margin-top: clamp(25px, 2vw, 80px); }

.progression-section {
  color: #eef4fa; background: #0d1828;
  --gold: #e0c58f; --gold-dim: #ac8e56; --muted: #b1c2d5; --line: #93b7d42e;
}
.progression-section::before { background: radial-gradient(ellipse at 10% 20%, #22597c2b, transparent 50%), radial-gradient(ellipse at 90% 80%, #4c3a702b, transparent 60%); }
.progression-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--feature-gap); padding-bottom: clamp(30px, 3vw, 110px); margin-bottom: clamp(30px, 3vw, 110px); border-bottom: 1px solid var(--line); }
.progression-facts > div { display: flex; align-items: center; gap: clamp(15px, 1.5vw, 56px); }
.progression-facts strong { font: clamp(40px, 4vw, 152px)/1 var(--serif); color: #e9d09c; }
.progression-facts span { font-size: var(--feature-small); color: #abc5dc; letter-spacing: .08em; overflow-wrap: anywhere; }
.progression-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: stretch; }
.progression-section .tree-panel { background: linear-gradient(145deg, #15283e, #101e32); border-color: #8aaec849; padding: clamp(24px, 2.2vw, 84px); min-width: 0; }
.tree-panel > h3 { color: #f3dfba; font-size: var(--feature-heading); margin-block: .6em; }
.tree-guide { font-size: var(--feature-body); color: #afc3d8; }
.feature-talent-tree { position: relative; width: 100%; height: clamp(360px, 30vw, 1150px); margin-top: clamp(20px, 2vw, 76px); }
.feature-talent-tree svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.feature-talent-tree path { fill: none; stroke: #547a9a6e; stroke-width: 1; vector-effect: non-scaling-stroke; }
.feature-talent-tree path.is-path { stroke: #e6ca8b; stroke-width: 2; filter: drop-shadow(0 0 4px #e3bd6866); }
.feature-tree-row { position: absolute; left: 0; transform: translateY(-50%); color: #7395b4; font: var(--feature-small)/1 var(--serif); }
.feature-path-node { position: absolute; width: clamp(43px, 3.7vw, 140px); height: clamp(43px, 3.7vw, 140px); background: #182c44; border: 1px solid #547b9b; color: #88b6d5; transform: translate(-50%, -50%) rotate(45deg); padding: 0; }
.feature-path-node > span { display: block; transform: rotate(-45deg); font-size: clamp(22px, 1.8vw, 70px); }
.feature-path-node[aria-pressed=true] { background: #795f35; color: #ffedc6; border-color: #e8c788; box-shadow: 0 0 0 4px #d6b97914, 0 0 30px #e1b45d1a; }
.feature-path-node:not(:disabled):hover { border-color: #f0d39a; background: #43506a; }
.feature-path-node:disabled { opacity: .35; cursor: default; }
.progression-section .talent-detail { border-top-color: #80a8c33b; margin-top: clamp(22px, 2vw, 76px); padding-top: clamp(18px, 1.5vw, 56px); min-height: 0; }
.progression-section .talent-detail strong { color: #e4c998; font-size: clamp(16px, 1.25vw, 48px); overflow-wrap: anywhere; }
.progression-section .talent-detail p { color: #a1b9cf; font-size: var(--feature-small); }
.progression-section .upgrade-panel { background: #1e395118; border: 1px solid #819fb52b; padding: clamp(24px, 2.2vw, 84px); min-width: 0; justify-content: flex-start; }
.progression-section .upgrade-panel h3 { color: #f1dfbc; font-size: var(--feature-heading); margin-block: .6em; }
.progression-section .upgrade-panel > p { max-width: none; font-size: var(--feature-body); color: #b1c2d5; }
.upgrade-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 36px); margin-top: clamp(25px, 2vw, 76px); }
.upgrade-examples button { display: grid; justify-items: center; gap: .6em; border: 1px solid #7a9db53d; background: #142a3c; color: #a5bfd2; padding: clamp(12px, 1.1vw, 42px) 5px; font-size: var(--feature-small); }
.upgrade-examples img { width: clamp(48px, 4.6vw, 176px); height: auto; border-radius: 50%; border: 1px solid #7eaa8855; }
.upgrade-examples button[aria-pressed=true] { background: #243c4c; color: #f2dab1; border-color: #c8b07a; }
.upgrade-level-selector { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, .7vw, 26px); margin-top: clamp(22px, 2vw, 76px); }
.upgrade-level-selector button { padding: .6em .2em; border: 1px solid #7b9ab844; background: #102034; font-size: var(--feature-small); color: #adc4d5; min-height: 44px; }
.upgrade-level-selector button[aria-pressed=true] { color: #211a21; background: #e0c590; border-color: #e0c590; }
.upgrade-value-preview { margin-top: clamp(24px, 2vw, 76px); }
.upgrade-comparison-label { color: #819eb6; font-size: var(--feature-small); letter-spacing: .05em; margin-top: 1.1em; }
.upgrade-metrics { display: flex; flex-direction: column; gap: 1em; margin-top: 1em; }
.upgrade-metrics > div { border-bottom: 1px solid var(--line); padding-bottom: 1em; }
.upgrade-metrics > div > span { display: block; color: #aec8dd; font-size: var(--feature-body); }
.upgrade-metrics strong { display: flex; align-items: baseline; gap: .45em; font: clamp(30px, 2.5vw, 96px)/1.4 var(--serif); color: #f0d6a3; flex-wrap: wrap; }
.upgrade-metrics strong > span { color: #7796b0; }
.upgrade-metrics strong > i { font-family: var(--sans); font-size: .6em; font-style: normal; color: #7295af; }
.upgrade-price { margin-top: 1.3em; padding: 1em; background: #0713214d; border: 1px solid #a8bfd022; }
.upgrade-price > span { display: block; font-size: var(--feature-small); color: #86a4bd; }
.upgrade-price strong { display: block; font-size: var(--feature-body); color: #edcf97; margin-top: .4em; font-weight: 550; }
.upgrade-price small { display: block; color: #abc1d2; font-size: var(--feature-small); margin-top: .4em; }
.unlock-guide { position: relative; margin-top: clamp(35px, 3vw, 115px); }
.unlock-guide > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-block: clamp(20px, 2vw, 76px); gap: clamp(8px, 1vw, 38px); }
.unlock-guide > div > div { background: #1c334655; border: 1px solid #90acbe30; padding: 1.3em .8em; }
.unlock-guide > div strong { display: block; font: clamp(26px, 2.2vw, 84px)/1 var(--serif); color: #e3c892; margin-bottom: .5em; }
.unlock-guide > div span { font-size: var(--feature-small); color: #b4ccdd; }
.progression-section .mastery-stats strong { color: #e1c58e; }
.progression-section .milestone-track button { color: #a9c3d6; background: #172c40; border-color: #52718b; }
.progression-section .milestone-track button[aria-pressed=true] { background: #d8bc84; color: #182231; border-color: #f1d7a5; }
.progression-section .milestone-track::before,
.progression-section .milestone-track::after { background: #55718b; }
.progression-section .reward-preview { background: #152a3e; border-color: #8ba9c449; }
.progression-section .reward-preview > strong { color: #ebd09e; }
.progression-section .reward-item strong { color: #f0e9da; }
.progression-section .reward-item small { color: #a6bed1; }

@media (max-width: 1000px) {
  .system-steps { gap: 14px; }
  .system-steps article { padding: 22px; }
  .system-steps h3 { font-size: 24px; }
  .card-lab { grid-template-columns: 1fr; }
  .card-lab-intro { max-width: none; }
  .star-preview { max-width: 520px; }
  .card-bonus-preview { grid-template-columns: minmax(120px, .5fr) minmax(0, 1.5fr); }
  .bonus-card-art { max-width: 240px; }
  .bonus-card-info h3 { font-size: 28px; }
  .progression-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .system-steps { grid-template-columns: 1fr; margin-block: 30px 45px; gap: 14px; }
  .system-steps article { display: grid; grid-template-columns: 45px minmax(0, 1fr); column-gap: 18px; padding: 22px; }
  .system-step-number { grid-row: 1/3; font-size: 31px; }
  .system-step-visual { grid-row: 1/3; flex-direction: column; justify-content: flex-start; gap: 18px; }
  .system-step-visual img { width: 40px; height: 52px; }
  .system-steps h3 { font-size: 24px; margin: 0 0 12px; }
  .system-steps p { grid-column: 2; }
  .rarity-heading { margin-bottom: 25px; }
  .rarity-description { gap: 12px 20px; margin-top: 5px; }
  .rarity-chip { gap: 6px; }
  .rarity-chip > span { display: none; }
  .rarity-explainer { align-items: flex-start; padding: 16px; gap: 14px; }
  .rarity-explainer > img { width: 40px; }
  .cards-section .card-rarity { font-size: 12px; padding-inline: .5em; }
  .card-fan:not(.is-filtered) .card-rarity { left: 8%; right: 8%; transform: none; text-align: center; white-space: normal; line-height: 1.4; }
  .card-bonus-preview { grid-template-columns: minmax(90px, .65fr) minmax(0, 1.35fr); padding: 18px; gap: 18px; }
  .bonus-card-info h3 { font-size: 21px; }
  .bonus-number { font-size: 44px; }
  .bonus-active { grid-column: 1/-1; }
  .bonus-card-info .eyebrow { font-size: 12px; letter-spacing: .04em; }
  .progression-facts { gap: 15px; }
  .progression-facts > div { flex-direction: column; align-items: flex-start; gap: 12px; }
  .progression-facts strong { font-size: 41px; }
  .progression-facts span { font-size: 12px; line-height: 1.5; letter-spacing: 0; }
  .progression-grid { grid-template-columns: 1fr; gap: 22px; }
  .feature-talent-tree { height: 360px; }
  .feature-path-node { width: 40px; height: 40px; }
  .feature-path-node > span { font-size: 22px; }
  .tree-panel > h3,
  .progression-section .upgrade-panel h3 { font-size: 29px; }
  .progression-section .tree-panel,
  .progression-section .upgrade-panel { padding: 24px; }
  .upgrade-examples { gap: 8px; }
  .upgrade-examples img { width: 48px; }
  .upgrade-price { padding: 16px; }
  .unlock-guide > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .unlock-guide > div > div { padding: 18px 12px; }
  .unlock-guide > div span { font-size: 12px; }
  .progression-section .mastery-copy > p:not(.eyebrow) { color: #b1c2d5; }
}

@media (max-width: 360px) {
  .card-bonus-preview { grid-template-columns: 1fr; }
  .bonus-card-art { width: 160px; justify-self: center; }
  .bonus-card-info { text-align: center; }
  .feature-path-node { width: 35px; height: 35px; }
  .progression-section .tree-panel,
  .progression-section .upgrade-panel { padding: 20px; }
}
