/* Les sept métaux reprennent l'enclume et les teintes de la carte du jeu. */
.ages-scene { position: relative; isolation: isolate; padding: 50px 24px 80px; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, #1536538a, transparent 65%), linear-gradient(#071729ec, #071729dc), url("/images/mine.png") center / cover; }
.ages-svg-definitions { position: absolute; pointer-events: none; }
.ages-heading { margin-bottom: 35px; }
.ages-heading .rune-title { width: min(760px, 100%); font-size: 43px; }
.ages-journey { width: min(1280px, 100%); margin-inline: auto; }
.ages-track { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 14px 5px 8px; }
.ages-track::before { content: ""; position: absolute; top: 128px; left: 7%; right: 7%; height: 3px; background: linear-gradient(90deg, #e8a465, #c1bac5, #d0e2ff, #7ee2ff, #81e5a0, #ffc76d, #c69aff); box-shadow: 0 0 16px #5dcef780; }
.age-step { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 4px 4px 12px; border-radius: 8px; outline-offset: -2px; }
.age-step-number { color: #7894aa; font-size: 11px; font-weight: 1000; letter-spacing: 2px; }
.age-step-anvil { display: block; width: min(128px, 95%); height: 82px; margin-block: 8px 13px; overflow: visible; filter: drop-shadow(0 7px 4px #0008); }
.age-step-dot { position: relative; width: 13px; height: 13px; border: 2px solid var(--age-color); border-radius: 50%; background: #09203b; box-shadow: 0 0 0 5px #071729; }
.age-step-name { margin-top: 15px; color: #d5e6ef; font-family: var(--display); font-size: 18px; line-height: 1.25; text-align: center; text-shadow: 0 2px 0 #031020; }
.age-step:hover, .age-step[aria-selected="true"] { background: linear-gradient(180deg, transparent, #72c9f415); }
.age-step:hover .age-step-name, .age-step[aria-selected="true"] .age-step-name { color: var(--age-color); }
.age-step[aria-selected="true"] .age-step-dot { background: var(--age-color); box-shadow: 0 0 0 5px #071729, 0 0 22px var(--age-color); }
.age-step[aria-selected="true"] .age-step-anvil { filter: drop-shadow(0 0 10px var(--age-color)) drop-shadow(0 7px 4px #0008); }
.age-step:focus-visible { outline: 3px solid #bcf5ff; }
.ages-scroll-hint { display: none; }
.ages-instruction { margin: 20px 0 25px; color: #b9d2e3; font-size: 13px; font-weight: 800; text-align: center; }
.ages-panels { max-width: 1080px; margin-inline: auto; }
.age-panel { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(0, 1.1fr); align-items: center; gap: 35px; min-height: 340px; margin-top: 24px; padding: 25px 45px 40px; border: 22px solid transparent; border-image: url("/images/socle-pierre.png") 180 stretch; background: #09243dea; background-clip: padding-box; box-shadow: 0 20px 35px #0005; }
.age-panel[hidden] { display: none; }
.age-showcase { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 250px; padding-bottom: 15px; }
.age-showcase::before { content: ""; position: absolute; z-index: -1; inset: 6% 0 8%; border-radius: 50%; background: radial-gradient(ellipse, var(--age-color), transparent 65%); opacity: .2; }
.age-showcase::after { content: ""; position: absolute; z-index: -1; bottom: -5px; left: 50%; width: 115%; height: 100px; transform: translateX(-50%); background: url("/images/socle-rond.png") center / 100% 100% no-repeat; }
.age-showcase-anvil { display: block; width: min(300px, 100%); max-height: 225px; overflow: visible; filter: drop-shadow(0 14px 7px #020a1699); }
.age-chapter { margin-bottom: 12px; color: var(--age-color); font-size: 12px; font-weight: 1000; letter-spacing: 2px; text-transform: uppercase; }
.age-story h3 { margin-bottom: 18px; color: var(--gold); font-size: clamp(30px, 3.3vw, 46px); line-height: 1.05; text-shadow: 0 3px 0 #04182c; }
.age-story > p:not(.age-chapter) { max-width: 460px; color: #fff0d3; font-size: 16px; font-weight: 800; line-height: 1.75; }
.age-destination { display: inline-block; margin-top: 22px; padding-top: 15px; border-top: 1px solid #5c88aa70; color: #b6d4e8; font-size: 12px; font-weight: 850; }
@media (max-width: 1050px) {
    .age-step-name { font-size: 16px; }
    .age-step-anvil { width: 110px; }
    .age-panel { padding-inline: 28px; gap: 25px; }
}
@media (max-width: 760px) {
    .ages-scene { padding: 35px 0 55px; }
    .ages-heading { margin-bottom: 18px; }
    .ages-heading .rune-title { max-width: 570px; min-height: 143px; font-size: 34px; padding-inline: 70px; }
    .ages-track { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; gap: 5px; overflow-x: auto; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: #50bcf3 #08264a; overscroll-behavior-inline: contain; }
    .ages-track::before { left: 85px; right: auto; width: 822px; }
    .age-step-anvil { width: 110px; }
    .age-step-name { font-size: 17px; }
    .ages-scroll-hint { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 15px 16px 0; color: #8beaff; font-size: 11px; font-weight: 850; }
    .ages-instruction { margin: 12px 24px 20px; font-size: 12px; }
    .ages-panels { margin-inline: 20px; }
    .age-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; padding: 22px 28px 33px; border-width: 18px; }
    .age-showcase { min-height: 210px; max-width: 330px; width: 100%; margin-inline: auto; }
    .age-showcase-anvil { max-height: 190px; width: 260px; }
    .age-story { text-align: center; }
    .age-story h3 { font-size: 36px; }
    .age-story > p:not(.age-chapter) { margin-inline: auto; font-size: 15px; }
}
@media (max-width: 440px) {
    .ages-heading .rune-title { min-height: 110px; padding: 25px 54px 29px; font-size: 27px; }
    .ages-panels { margin-inline: 14px; }
    .age-panel { padding: 12px 18px 26px; }
    .age-showcase { min-height: 170px; }
    .age-showcase-anvil { width: 220px; max-height: 155px; }
    .age-story h3 { font-size: 30px; }
    .age-story > p:not(.age-chapter) { font-size: 13px; }
    .age-chapter { font-size: 10px; }
    .age-destination { font-size: 11px; }
}
@media (max-width: 360px) {
    .ages-heading .rune-title { min-height: 130px; padding: 32px 52px 36px; font-size: 24px; line-height: 1.12; }
}
@media (prefers-reduced-motion: no-preference) {
    .age-step-anvil { transition: filter .2s ease, transform .2s ease; }
    .age-step[aria-selected="true"] .age-step-anvil { transform: translateY(-3px); }
}
@media print {
    .ages-scene { background: white; color: #102447; }
    .ages-track { display: none; }
    .age-panel[hidden] { display: grid; }
    .age-panel { break-inside: avoid; }
}