.page--smithing { background: #02080a; }
.smithing { overflow: hidden; color: #d4dcda; background: radial-gradient(circle at 50% 12%,rgba(145,72,20,.1),transparent 28%),#02080a; }
.smithing h1,.smithing h2,.smithing h3,.smithing strong { font-family: var(--font-heading); }
.smithing h1 { max-width: 720px; margin: 12px 0 18px; color: #fff0c9; font-size: clamp(2.75rem,5vw,5.15rem); font-weight: 500; line-height: .98; text-shadow: 0 5px 28px #000; }
.smithing h2 { margin: 8px 0 14px; color: #fff0c9; font-size: clamp(2rem,3vw,3.4rem); font-weight: 500; line-height: 1.04; }
.smithing-kicker { margin: 0; color: #f2b73d; font: 600 .78rem/1.3 var(--font-heading); letter-spacing: .19em; text-transform: uppercase; }
.smithing-section { width: min(1720px,calc(100% - 64px)); margin-inline: auto; padding: clamp(54px,7vw,104px) 0; scroll-margin-top: 96px; }
.smithing-section__lead { max-width: 820px; color: #9eb0b2; font-size: 1.05rem; line-height: 1.65; }

.smithing-hero { position: relative; min-height: min(900px,calc(100vh - 70px)); overflow: hidden; border-bottom: 1px solid #92651d; background: #03080b url('../../assets/img/craft/smithing/smithing-hero.webp') center/cover no-repeat; isolation: isolate; }
.smithing-hero::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg,rgba(1,6,9,.99) 0,rgba(1,7,10,.93) 31%,rgba(2,6,9,.45) 54%,rgba(2,6,9,.06) 78%),linear-gradient(0deg,rgba(1,6,8,.96),transparent 31%); }
.smithing-hero::after { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 3px; content: ''; background: linear-gradient(90deg,transparent,#bf6a16 28%,#ffda73 50%,#bf6a16 72%,transparent); box-shadow: 0 0 24px #ed8c25; }
.smithing-hero__atmosphere { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.smithing-hero__content { position: relative; z-index: 1; width: min(760px,48vw); padding: clamp(72px,9vw,154px) 0 76px clamp(42px,5vw,96px); }
.smithing-hero__lead { max-width: 690px; margin: 0 0 24px; color: #d0d8d6; font-size: clamp(1rem,1.25vw,1.22rem); line-height: 1.62; text-shadow: 0 2px 14px #000; }
.smithing-control { padding: 20px; border: 1px solid rgba(193,139,43,.72); background: linear-gradient(135deg,rgba(3,15,18,.94),rgba(7,10,11,.82)); box-shadow: 0 20px 60px rgba(0,0,0,.55),inset 0 1px rgba(255,222,137,.09); backdrop-filter: blur(10px); }
.smithing-control__top { display: flex; gap: 16px; align-items: center; justify-content: space-between; color: #a8b8b9; font-size: .72rem; letter-spacing: .1em; }
.smithing-stepper { display: grid; grid-template-columns: 42px 64px 42px; align-items: center; border: 1px solid #72551d; }
.smithing-stepper button { min-height: 38px; color: #ffd76d; border: 0; background: #071519; cursor: pointer; }
.smithing-stepper output { color: #fff0bd; text-align: center; font-family: var(--font-heading); }
.smithing-control input[type=range] { width: 100%; margin: 18px 0 10px; accent-color: #dfa72e; }
.smithing-presets { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.smithing-presets button { min-height: 35px; color: #aebfc0; border: 1px solid #354a4e; background: #041115; cursor: pointer; }
.smithing-presets button:hover,.smithing-presets button:focus-visible,.smithing-presets button.is-active { color: #1b1002; border-color: #ffdd7c; background: linear-gradient(#ffe18a,#d99d25); }
.smithing-metal-label { display: grid; gap: 7px; margin-top: 15px; color: #a8b8b9; font-size: .68rem; letter-spacing: .1em; }
.smithing-metal-label select { width: 100%; min-height: 46px; padding: 0 44px 0 14px; color: #f5df9a; border: 1px solid #496065; background: #041014; }
.smithing-control__note { margin: 12px 0 0; color: #82989a; font-size: .76rem; line-height: 1.45; }
.smithing-summary { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 14px; border: 1px solid rgba(90,112,112,.7); background: rgba(2,12,15,.88); backdrop-filter: blur(8px); }
.smithing-summary article { min-width: 0; padding: 14px 12px; border-right: 1px solid #344649; }
.smithing-summary article:last-child { border-right: 0; }
.smithing-summary span,.smithing-summary strong,.smithing-summary small { display: block; overflow: hidden; text-overflow: ellipsis; }
.smithing-summary span { color: #8ba0a2; font-size: .62rem; text-transform: uppercase; }
.smithing-summary strong { margin-top: 6px; color: #ffe08b; font-size: clamp(1rem,1.3vw,1.3rem); white-space: nowrap; }
.smithing-summary small { margin-top: 5px; color: #6f878a; font-size: .66rem; white-space: nowrap; }
.smithing-summary article.is-ready strong { color: #73e49d; }.smithing-summary article.is-locked strong { color: #ff786e; }
.smithing-hero__cta { display: inline-grid; min-height: 50px; margin-top: 16px; padding: 0 24px; place-items: center; color: #1c1002; border: 1px solid #ffe39a; background: linear-gradient(#ffe493,#d99d25); box-shadow: 0 10px 30px #000,0 0 22px rgba(237,155,39,.28); font-family: var(--font-heading); }

.smithing-local-nav { position: sticky; z-index: 8; top: var(--site-nav-height,70px); display: grid; grid-template-columns: repeat(4,1fr); width: 100%; border-bottom: 1px solid #5f481b; background: rgba(2,12,15,.96); backdrop-filter: blur(12px); }
.smithing-local-nav a { position: relative; display: grid; min-height: 62px; place-items: center; color: #95a7a8; border-right: 1px solid #2e4447; font-family: var(--font-heading); }
.smithing-local-nav a:last-child { border-right: 0; }
.smithing-local-nav a::before { margin-right: 10px; color: #dba72f; content: '◆'; font-size: .55rem; }
.smithing-local-nav a:hover,.smithing-local-nav a:focus-visible,.smithing-local-nav a.is-active { color: #ffe3a0; background: radial-gradient(circle at 50% 120%,rgba(221,152,35,.2),transparent 65%); }
.smithing-local-nav a.is-active::after { position: absolute; right: 18%; bottom: 0; left: 18%; height: 2px; content: ''; background: #ffc94b; box-shadow: 0 0 14px #ff9b22; }

.smithing-basics { border-bottom: 1px solid #25393c; }
.smithing-basics__steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; }
.smithing-basics__steps article { position: relative; display: grid; grid-template-columns: 43% 1fr; min-height: 194px; overflow: hidden; border: 1px solid #425153; background: #041116; transition: transform .25s,border-color .25s; }
.smithing-basics__steps article:hover { z-index: 1; border-color: #c68d28; transform: translateY(-4px); }
.smithing-basics__steps article>b { position: absolute; z-index: 2; top: 10px; left: 10px; min-width: 40px; padding: 7px 9px; color: #1d1203; background: #e7ad33; text-align: center; }
.smithing-basics__steps img { width: 100%; height: 100%; object-fit: cover; border-right: 1px solid #425153; }
.smithing-basics__steps div { display: grid; align-content: center; padding: 18px; }
.smithing-basics__steps h3 { margin: 0 0 10px; color: #f3ca63; font-size: 1.05rem; }
.smithing-basics__steps p { margin: 0; color: #9db0b2; line-height: 1.55; }

.smithing-rules { display: grid; grid-template-columns: minmax(300px,.75fr) minmax(0,1.6fr); gap: clamp(34px,5vw,80px); align-items: center; border-bottom: 1px solid #25393c; }
.smithing-rules>div:first-child p:last-child { max-width: 650px; color: #9eb0b2; line-height: 1.65; }
.smithing-rules__grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #526065; background: #041115; }
.smithing-rules__grid article { display: grid; min-height: 190px; padding: 18px; align-content: center; justify-items: center; border-right: 1px solid #35494d; text-align: center; }
.smithing-rules__grid article:last-child { border-right: 0; }
.smithing-rules__grid img,.smithing-rule-icon { width: 76px; height: 76px; margin-bottom: 14px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255,160,38,.42)); }
.smithing-rule-icon { display: grid; place-items: center; color: #ffdc7b; border: 1px solid #b67a1b; border-radius: 50%; background: radial-gradient(circle,#55230c,#071216 67%); font: 600 1.1rem/1 var(--font-heading); }
.smithing-rules__grid span:not(.smithing-rule-icon) { color: #768d90; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.smithing-rules__grid strong { margin-top: 7px; color: #f4d783; font-size: .92rem; }

.smithing-metals { border-bottom: 1px solid #25393c; }
.smithing-metals__head { display: grid; grid-template-columns: 1fr minmax(320px,480px); gap: 30px; align-items: end; }
.smithing-metals__head>div>p:last-child { max-width: 790px; color: #9eb0b2; line-height: 1.6; }
.smithing-selected { display: grid; grid-template-columns: 106px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid #87641f; background: radial-gradient(circle at 18% 50%,rgba(235,147,31,.16),transparent 38%),#041216; }
.smithing-selected img { width: 106px; height: 106px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255,167,48,.32)); }
.smithing-selected span { color: #82979a; font-size: .65rem; letter-spacing: .12em; }
.smithing-selected h3 { margin: 6px 0; color: #ffe18e; font-size: 1.45rem; }
.smithing-selected p { margin: 0; color: #94a9ab; }.smithing-selected b { color: #fff0bd; }
.smithing-track { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; margin-top: 28px; }
.smithing-metal { position: relative; display: grid; grid-template-columns: 70px 1fr; min-width: 0; min-height: 108px; padding: 12px; align-items: center; color: #aebbbc; border: 1px solid #354a4e; background: linear-gradient(145deg,#061519,#030d10); cursor: pointer; text-align: left; transition: transform .2s,border-color .2s,filter .2s; }
.smithing-metal:hover,.smithing-metal:focus-visible { z-index: 1; border-color: #cf9228; transform: translateY(-3px); }
.smithing-metal img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,184,65,.22)); }
.smithing-metal span,.smithing-metal strong,.smithing-metal small { display: block; overflow: hidden; text-overflow: ellipsis; }
.smithing-metal span { color: #667d80; font-size: .58rem; letter-spacing: .08em; }.smithing-metal strong { margin: 4px 0; color: #e9d18b; font-size: .9rem; white-space: nowrap; }.smithing-metal small { color: #87a0a2; font-size: .68rem; }
.smithing-metal.is-open { border-color: #3c674f; }.smithing-metal.is-open::after { position: absolute; top: 7px; right: 8px; color: #66db91; content: '◆'; font-size: .55rem; }
.smithing-metal.is-locked { filter: saturate(.42); }.smithing-metal.is-locked img { opacity: .58; }.smithing-metal.is-locked small { color: #ba7770; }
.smithing-metal.is-selected { border-color: #ffd56b; background: radial-gradient(circle at 15% 50%,rgba(228,139,25,.22),transparent 45%),#071418; box-shadow: 0 0 0 1px rgba(255,213,107,.2),0 0 24px rgba(226,134,26,.13); }
.smithing-metals__note { max-width: 960px; margin: 22px 0 0; color: #7f9598; font-size: .82rem; line-height: 1.55; }

.smithing-journey>div { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 26px; border: 1px solid #5f4b22; }
.smithing-journey a { display: grid; grid-template-columns: 58px 1fr; gap: 14px; min-height: 100px; padding: 18px; align-items: center; color: #a3b3b4; border-right: 1px solid #3b4b4d; background: #041115; }
.smithing-journey a:last-child { border-right: 0; }.smithing-journey a.is-current { color: #ffe3a0; background: radial-gradient(circle at 50% 120%,rgba(222,145,28,.22),transparent 68%),#061317; }.smithing-journey b { color: #e5ab38; font-size: 1.35rem; }.smithing-journey span,.smithing-journey small { display: block; }.smithing-journey small { margin-top: 5px; color: #71898b; font: .72rem/1.3 var(--font-body); }

.smithing-reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s,transform .65s; }.smithing-reveal.is-visible { opacity: 1; transform: none; }
@media (max-width:1400px) { .smithing-hero__content { width: min(720px,56vw); }.smithing-summary { grid-template-columns: 1fr 1fr; }.smithing-summary article:nth-child(2) { border-right: 0; }.smithing-summary article:nth-child(-n+2) { border-bottom: 1px solid #344649; }.smithing-basics__steps { grid-template-columns: 1fr 1fr; }.smithing-rules { grid-template-columns: 1fr; }.smithing-track { grid-template-columns: repeat(4,1fr); } }
@media (max-width:900px) { .smithing-hero { min-height: 840px; background-position: 64% center; }.smithing-hero::before { background: linear-gradient(90deg,rgba(1,6,9,.98),rgba(1,7,10,.8) 60%,rgba(1,7,10,.28)),linear-gradient(0deg,rgba(1,6,8,.98),transparent 48%); }.smithing-hero__content { width: min(700px,calc(100% - 40px)); padding: 72px 0 54px 24px; }.smithing-local-nav { overflow-x: auto; grid-template-columns: repeat(4,minmax(180px,1fr)); }.smithing-section { width: calc(100% - 32px); }.smithing-basics__steps article { grid-template-columns: 1fr; }.smithing-basics__steps img { height: 190px; border-right: 0; border-bottom: 1px solid #425153; }.smithing-rules__grid { grid-template-columns: 1fr 1fr; }.smithing-rules__grid article:nth-child(2) { border-right: 0; }.smithing-rules__grid article:nth-child(-n+2) { border-bottom: 1px solid #35494d; }.smithing-metals__head { grid-template-columns: 1fr; }.smithing-track { grid-template-columns: repeat(3,1fr); } }
@media (max-width:600px) { .smithing h1 { font-size: clamp(2.45rem,13vw,3.5rem); }.smithing h2 { font-size: 2rem; }.smithing-hero { min-height: 930px; background-position: 67% center; }.smithing-hero__content { width: calc(100% - 24px); padding: 70px 0 40px 12px; }.smithing-control { padding: 15px; }.smithing-control__top { align-items: flex-start; }.smithing-presets { grid-template-columns: repeat(5,1fr); }.smithing-summary { grid-template-columns: 1fr 1fr; }.smithing-summary article { min-height: 88px; }.smithing-summary strong { font-size: 1rem; }.smithing-basics__steps { grid-template-columns: 1fr; }.smithing-basics__steps article { min-height: 0; }.smithing-rules__grid { grid-template-columns: 1fr 1fr; }.smithing-rules__grid article { min-height: 164px; padding: 14px 8px; }.smithing-rules__grid img,.smithing-rule-icon { width: 62px; height: 62px; }.smithing-selected { grid-template-columns: 84px 1fr; }.smithing-selected img { width: 84px; height: 84px; }.smithing-track { grid-template-columns: 1fr 1fr; gap: 8px; }.smithing-metal { grid-template-columns: 52px 1fr; min-height: 90px; padding: 9px; }.smithing-metal img { width: 48px; height: 48px; }.smithing-journey>div { grid-template-columns: 1fr; }.smithing-journey a { border-right: 0; border-bottom: 1px solid #3b4b4d; }.smithing-journey a:last-child { border-bottom: 0; } }
@media (max-width:420px) { .smithing-hero__content { width: calc(100% - 16px); padding-left: 8px; }.smithing-control__top { display: grid; }.smithing-stepper { justify-self: stretch; grid-template-columns: 44px 1fr 44px; }.smithing-summary span { font-size: .56rem; }.smithing-summary small { white-space: normal; }.smithing-track { grid-template-columns: 1fr; }.smithing-metal { grid-template-columns: 62px 1fr; }.smithing-metal img { width: 58px; height: 58px; } }
@media (prefers-reduced-motion:reduce) { .smithing-reveal { opacity: 1; transform: none; transition: none; }.smithing-basics__steps article,.smithing-metal { transition: none; } }
