:root { --text:#344a60; --muted:#657789; --cyan:#198ca6; --amber:#a77943; --line:rgba(149,117,74,.24); }
html { scroll-padding-top:95px; }
body { background:radial-gradient(ellipse at 0 40%,#deeff3 0,transparent 35%),radial-gradient(ellipse at 100% 65%,#efe6d4 0,transparent 35%),#f7f5ee; }
body::before { display:none; }
.topbar { background:rgba(250,250,245,.96); border-bottom:1px solid #d6c6a3; box-shadow:0 3px 16px #213b5110; }
.brand-mark { color:#526d82; background:#faf4e3; border-color:#bca173; }
.brand strong { font-family:Georgia,serif; font-size:18px; letter-spacing:.03em; }
.nav-links { gap:30px; }
.nav-links a:hover { color:#137f98; }
.nav-login { color:#43667c; border-bottom:1px solid transparent; }
.nav-login:hover { border-bottom-color:#77aabd; }
.nav-cta { background:#fffaf0; color:#776039; border-color:#c8b186; }
.hero { min-height:710px; padding:80px 0 86px; text-align:left; border-bottom:4px double #b6a078; }
.hero::before { background-image:url('assets/midgard-anime-background.png'); background-position:center 43%; animation:hero-drift 18s ease-in-out infinite alternate; will-change:transform; }
.hero::after { background:linear-gradient(90deg,rgba(9,18,45,.9) 0%,rgba(9,18,45,.76) 35%,rgba(9,18,45,.3) 62%,rgba(9,18,45,.08) 100%),linear-gradient(0deg,rgba(9,18,45,.5),transparent 48%); animation:hero-glow 9s ease-in-out infinite alternate; }
.hero-grid > div:first-child { max-width:610px; margin:0; }
.hero-grid { position:relative; }
.hero-grid::after { content:''; position:absolute; inset:-55px -80px; pointer-events:none; opacity:.5; background:radial-gradient(circle at 13% 21%,#fff4bb 0 2px,transparent 3px),radial-gradient(circle at 47% 13%,#c4f7ff 0 1px,transparent 2px),radial-gradient(circle at 73% 33%,#fff1a4 0 2px,transparent 3px),radial-gradient(circle at 25% 76%,#c7f7ff 0 1px,transparent 2px),radial-gradient(circle at 88% 72%,#fff0ae 0 1px,transparent 2px); filter:drop-shadow(0 0 7px #b9efff); animation:hero-sparks 11s ease-in-out infinite alternate; }
.hero-grid > div:first-child { position:relative; z-index:1; }
.hero-characters { position:absolute; z-index:0; right:clamp(-14px,1vw,24px); bottom:-42px; width:min(56vw,820px); max-height:calc(100% - 8px); object-fit:contain; object-position:bottom right; pointer-events:none; transform-origin:70% 92%; filter:drop-shadow(0 20px 18px #07152b66); animation:characters-idle 5.8s ease-in-out infinite; will-change:transform; }
.hero .eyebrow { justify-content:flex-start; color:#fff1c3; font-size:11px; letter-spacing:.21em; text-shadow:0 2px 12px #163447; }
.hero .eyebrow::before { display:none; }
h1 { font-family:Georgia,'Times New Roman',serif; font-weight:400; letter-spacing:-.055em; font-size:clamp(65px,9vw,124px); line-height:1.05; margin-top:20px; text-shadow:0 3px 8px #19445880,0 0 50px #4ccde9; }
.game-name { display:block; }
h1 em { color:#f8e0ad; font-weight:400; font-size:1.1em; text-shadow:0 3px 0 #745e41,0 0 25px #ffe6b377; }
.game-subtitle { display:block; font-family:Georgia,serif; font-size:clamp(21px,2.7vw,38px); letter-spacing:.2em; text-transform:uppercase; margin:12px 0 0; color:#f5fbff; }
.game-subtitle::after { content:'◆'; display:block; font-size:12px; color:#e9d3a2; margin:19px 0 0; }
.hero-copy { margin:16px 0 0; max-width:550px; color:#fff; font-size:17px; }
.hero-actions { justify-content:flex-start; margin-top:26px; }
.hero-note { justify-content:flex-start; color:#f4f4ec; }
@keyframes hero-drift { from { transform:scale(1.015) translate3d(-.35%,0,0); } to { transform:scale(1.07) translate3d(.55%,-.55%,0); } }
@keyframes hero-glow { from { opacity:.87; } to { opacity:1; } }
@keyframes hero-sparks { from { transform:translate3d(-5px,8px,0); opacity:.28; } to { transform:translate3d(8px,-13px,0); opacity:.72; } }
@keyframes characters-idle { 0%,100% { transform:translate3d(0,0,0) rotate(-.25deg); } 50% { transform:translate3d(0,-12px,0) rotate(.35deg); } }
.btn { gap:10px; min-height:52px; border-radius:2px; letter-spacing:.08em; }
.btn-primary { color:#fff8e5; background:linear-gradient(#a65d42,#7c3a2c); border:1px solid #e2c082; box-shadow:inset 0 0 0 3px #ffffff14,0 5px 22px #3e241955; }
.btn-primary:hover { color:#fff; background:linear-gradient(#ba7451,#974c36); border-color:#ffe2a5; }
.btn-ghost { background:#254c6866; border-color:#f4dfaf; }
.section { padding:82px 0; }
h2 { font-size:clamp(39px,4.6vw,64px); letter-spacing:-.045em; }
.section-kicker { letter-spacing:.19em; }
.feature { min-height:205px; border-radius:2px; background:linear-gradient(125deg,#fffdf6,#f6f1e4); box-shadow:0 9px 28px #5369760e; border:1px solid #d9cbae; }
.feature-index { color:#a4804d; }
.feature h3 { margin-top:30px; }
.feature p { color:#637286; }
#wege { position:relative; border-block:1px solid #d7c6a6; background:linear-gradient(110deg,#f4f1e7,#eef4f3 50%,#e4edf1); }
#wege::before { content:'✧'; position:absolute; right:2%; top:24px; color:#b29d7730; font-size:150px; line-height:1; pointer-events:none; }
.job-tabs { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:9px; margin-bottom:24px; }
.job-tab { display:flex; flex-direction:column; align-items:center; background:#fffcf4c9; border:1px solid #c8b99d; color:#53687c; border-radius:4px; cursor:pointer; padding:10px 6px 13px; font:600 12px/1.3 system-ui,sans-serif; transition:transform .2s,background .2s,box-shadow .2s; }
.job-tab img { height:83px; width:100%; object-fit:contain; filter:drop-shadow(0 3px 3px #12364a22); margin-bottom:7px; }
.job-tab:hover { transform:translateY(-3px); background:#fffdf4; box-shadow:0 6px 12px #274e6120; }
.job-tab[aria-selected='true'] { color:#fff7df; border-color:#b99a62; background:linear-gradient(125deg,#48677d,#28475b); box-shadow:0 0 0 2px #d8c39b,0 5px 15px #1d3e5420; }
.job-tab[aria-selected='true'] img { filter:drop-shadow(0 0 13px #e0f8ffaa); }
.job-panel { display:grid; grid-template-columns:1.05fr 1fr; min-height:570px; border:1px solid #c7b69a; background:linear-gradient(110deg,#fffcf3e8,#f4f1e3aa); position:relative; outline-offset:5px; }
.job-panel::before,.job-panel::after { content:'◆'; position:absolute; color:#b59c70; font-size:13px; z-index:2; }
.job-panel::before { left:-6px; top:-10px; }
.job-panel::after { right:-6px; bottom:-10px; }
.job-info { padding:44px 32px 36px 40px; position:relative; z-index:1; }
.job-label { color:#9b7948; text-transform:uppercase; letter-spacing:.2em; font-size:10px; font-weight:800; }
.job-info h3 { font-size:clamp(42px,4.5vw,64px); margin:9px 0 0; color:#314f64; }
.job-de { color:#a38255; font:italic 21px Georgia,serif; margin:4px 0 20px; }
.job-role { font-size:11px; letter-spacing:.07em; text-transform:uppercase; color:#34788d; font-weight:700; }
.job-description { color:#627283; max-width:440px; font-size:15px; line-height:1.7; min-height:52px; }
.job-path-heading { margin:28px 0 16px; padding-bottom:10px; border-bottom:1px solid #cdbc9f; display:flex; justify-content:space-between; font:19px Georgia,serif; }
.job-path-heading span { color:#ad8f5e; }
.job-path { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin:0 0 16px; padding:0; list-style:none; }
.job-evolution { position:relative; text-align:center; font-size:11px; color:#466378; }
.job-evolution:not(:last-child)::after { content:'›'; position:absolute; right:-11px; top:22px; font-size:22px; color:#a1895d; }
.job-evolution img { display:block; width:68px; height:68px; object-fit:contain; margin:0 auto 6px; }
.job-evolution span { display:block; }
.job-start-note { padding:15px 18px; background:#e7eef0; border-left:2px solid #bd9b66; color:#587184; font-size:14px; }
.job-canvas { display:flex; align-items:center; justify-content:center; min-width:0; overflow:hidden; position:relative; }
.job-canvas::before { content:'✧'; position:absolute; top:12%; right:9%; color:#b9a17866; font-size:90px; }
.job-canvas img { position:relative; z-index:1; display:block; width:100%; height:570px; object-fit:contain; padding:22px 0 25px; filter:drop-shadow(0 15px 14px #405f7128); }
.job-ring { position:absolute; width:78%; aspect-ratio:1; border:1px solid #b9a47855; border-radius:50%; box-shadow:0 0 0 17px #b9a4780a,0 0 0 18px #b9a47833,0 0 0 50px #b9a47809; background:radial-gradient(circle,#b9e4ec66,transparent 65%); }
.job-art-label { position:absolute; bottom:16px; color:#8c9b9f; font-size:8px; letter-spacing:.2em; }
.job-source { text-align:center; color:#75818a; font-size:11px; margin:20px 0 0; }
.job-source a,.artwork-credit a { text-decoration:underline; text-underline-offset:3px; }
.journey { border-radius:2px; background:#fffdf4; }
.community-inner { border-radius:2px; border:1px solid #bda477; background:linear-gradient(100deg,#dcecef,#f5f0e2 75%); }
.community .section-kicker { color:#a47c45; }
footer { color:#697c8b; }
.footer-row span:last-child { color:#897346; }
.artwork-credit { font-size:10px; line-height:1.7; margin-top:16px; max-width:1180px; color:#7b858b; }
:focus-visible { outline:3px solid #179abb; outline-offset:4px; }
@media(max-width:850px) {
  .hero { min-height:630px; }
  .hero::before { background-position:58% center; }
  .hero-characters { right:-36px; bottom:-28px; width:min(73vw,660px); }
  .hero-grid > div:first-child { max-width:90%; }
  .job-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .job-panel { grid-template-columns:1fr; }
  .job-canvas { grid-row:1; min-height:370px; }
  .job-canvas img { height:390px; }
  .job-ring { width:280px; }
  .job-info { padding:28px; }
  .job-description { max-width:none; }
  .job-evolution img { width:76px; height:76px; }
}
@media(max-width:520px) {
  .hero { min-height:640px; padding:65px 0; text-align:center; }
  .hero-grid > div:first-child { max-width:100%; }
  .hero::after { background:linear-gradient(#25496855,#193751bb); }
  .hero .eyebrow,.hero-actions,.hero-note { justify-content:center; }
  .game-subtitle::after { margin-left:auto; margin-right:auto; }
  .hero-copy { margin-left:auto; margin-right:auto; }
  .hero-characters { right:-42px; bottom:-2px; width:108vw; max-height:540px; opacity:.32; }
  h1 { font-size:64px; letter-spacing:-.07em; }
  .game-subtitle { font-size:18px; letter-spacing:.13em; }
  .hero .eyebrow { font-size:9px; letter-spacing:.1em; }
  .hero-copy { font-size:15px; }
  .hero-note { display:flex; flex-wrap:wrap; gap:9px 15px; font-size:10px; }
  .hero-actions { gap:10px; }
  .hero-actions .btn { min-width:240px; }
  .section { padding:58px 0; }
  .job-tabs { gap:7px; }
  .job-tab { font-size:10px; padding:7px 3px 10px; }
  .job-tab img { height:63px; }
  .job-info { padding:24px 19px; }
  .job-info h3 { font-size:45px; }
  .job-source { line-height:1.7; }
  .job-canvas img { height:345px; }
  .job-canvas { min-height:345px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero::before,.hero::after,.hero-grid::after,.hero-characters { animation:none; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }

/* Original, code-drawn job emblems — no third-party character artwork. */
.job-emblem { display:grid; place-items:center; color:currentColor; }
.job-emblem svg { display:block; width:100%; height:100%; overflow:visible; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:5; }
.job-atlas .job-tab .job-tab-emblem { width:58px; height:67px; color:#b8d8d6; filter:drop-shadow(0 3px 3px #071c2e66); }
.job-atlas .job-tab[aria-selected='true'] .job-tab-emblem { color:#a67843; filter:drop-shadow(0 2px 4px #79613255); }
.job-atlas .job-tab .job-tab-portrait { width:58px; height:67px; margin:0; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 3px 3px #071c2e88); }
.job-atlas .job-tab[aria-selected='true'] .job-tab-portrait { filter:drop-shadow(0 3px 5px #79613266); }
.job-art { position:relative; z-index:1; display:grid; place-items:center; width:min(78%,440px); height:612px; color:#456e82; filter:drop-shadow(0 15px 14px #405f7138); }
.job-art img { display:block; width:100%; height:100%; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 15px 14px #405f7138); }
.job-art .job-main-emblem { width:100%; aspect-ratio:1; padding:44px; border:1px solid #91aab380; border-radius:50%; background:radial-gradient(circle,#fef6d266,transparent 63%); box-shadow:0 0 0 15px #b59c7012,0 0 0 16px #b59c7066; }
.job-art .job-main-emblem svg { stroke-width:3.4; }
.job-evolution { display:grid; grid-template-columns:68px 1fr; align-items:center; gap:7px; text-align:left; }
.job-evolution::before { content:attr(data-tier); position:absolute; top:-3px; left:calc(50% - 30px); display:grid; place-items:center; width:17px; height:17px; border-radius:50%; background:#5b7d88; color:#fff9e8; font:700 9px system-ui,sans-serif; }
.job-evolution:not(:last-child)::after { top:27px; }
.job-evolution .job-evolution-emblem { width:62px; height:62px; padding:10px; border:1px solid #aec1bd; border-radius:50%; color:#5d8390; background:#edf4ed; }
.job-evolution .job-evolution-emblem svg { stroke-width:5; }
.job-path-group { margin:0 0 18px; padding:10px 10px 12px; border:1px solid #cbbd9f; background:linear-gradient(145deg,#fdf9ec,#eaf2ef); box-shadow:0 8px 18px #294d5c0d; }
.job-path-art { display:block; width:100%; height:220px; margin:0 0 10px; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 8px 8px #27475728); }
.job-path-group .job-path { margin-bottom:0; }
@media(max-width:850px) {
  .job-art { height:410px; width:min(66%,360px); }
  .job-art .job-main-emblem { padding:35px; }
  .job-path-art { height:270px; }
}
@media(max-width:520px) {
  .job-atlas .job-tab .job-tab-emblem { width:58px; height:64px; }
  .job-atlas .job-tab .job-tab-portrait { width:58px; height:64px; }
  .job-art { height:355px; width:min(72%,310px); }
  .job-evolution { grid-template-columns:1fr; text-align:center; }
  .job-evolution .job-evolution-emblem { margin:0 auto; }
  .job-evolution::before { left:calc(50% - 25px); }
  .job-path-art { height:190px; }
}

/* Job Atlas: original directory-and-dossier layout for the seven starting jobs. */
.job-atlas { display:grid; grid-template-columns:minmax(270px,.64fr) minmax(0,1.36fr); overflow:hidden; border:1px solid #bfae8d; background:#f9f6eb; box-shadow:0 18px 48px #2c4d5d18; }
.job-directory { padding:22px; background:linear-gradient(155deg,#314f64,#213e52 68%,#1a3548); color:#f8f3e4; }
.job-directory-head { display:flex; align-items:center; justify-content:space-between; padding-bottom:13px; border-bottom:1px solid #e9d8aa55; color:#e7cf96; font-size:10px; font-weight:800; letter-spacing:.19em; text-transform:uppercase; }
.job-directory-head b { display:grid; place-items:center; width:30px; height:30px; border:1px solid #e7cf9688; border-radius:50%; font:17px Georgia,serif; letter-spacing:0; }
.job-directory > p { margin:16px 0 19px; color:#d7e6e9; font-size:13px; line-height:1.55; }
.job-atlas .job-tabs { display:grid; grid-template-columns:1fr; gap:8px; margin:0; }
.job-atlas .job-tab { position:relative; display:grid; grid-template-columns:29px 58px minmax(0,1fr); align-items:center; min-height:82px; padding:7px 9px; border:1px solid #9fb5b733; border-radius:0; background:#ffffff0b; color:#e9f0ec; text-align:left; font:inherit; overflow:hidden; }
.job-atlas .job-tab::after { content:''; position:absolute; inset:0 auto 0 0; width:2px; background:#e8c87d; transform:scaleY(0); transform-origin:center; transition:transform .2s; }
.job-atlas .job-tab:hover { transform:translateX(3px); background:#ffffff16; box-shadow:none; }
.job-atlas .job-tab[aria-selected='true'] { color:#314f64; border-color:#f2d88f; background:linear-gradient(100deg,#fff6d7,#e6f0e9); box-shadow:none; }
.job-atlas .job-tab[aria-selected='true']::after { transform:scaleY(1); }
.job-atlas .job-tab img { width:58px; height:67px; margin:0; object-fit:contain; filter:drop-shadow(0 3px 3px #071c2e66); }
.job-atlas .job-tab[aria-selected='true'] img { filter:drop-shadow(0 3px 5px #79613255); }
.job-tab-number { align-self:start; padding-top:7px; color:#a9c4c5; font:italic 11px Georgia,serif; }
.job-tab[aria-selected='true'] .job-tab-number { color:#a17845; }
.job-tab-copy { display:flex; min-width:0; flex-direction:column; gap:3px; padding-left:7px; }
.job-tab-copy strong { font:600 14px Georgia,serif; letter-spacing:.01em; }
.job-tab-copy small { display:block; overflow:hidden; color:inherit; font-size:9px; line-height:1.25; opacity:.72; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.job-atlas .job-panel { min-height:612px; grid-template-columns:minmax(0,1fr) minmax(360px,.93fr); border:0; background:linear-gradient(135deg,#fffdf6,#f2eee0); }
.job-atlas .job-info { padding:52px 38px 34px; }
.job-atlas .job-canvas { border-left:1px solid #d2c3a5; background:radial-gradient(circle at 52% 42%,#cce8e980,transparent 44%),linear-gradient(150deg,#edf5f2,#e4eee8); }
.job-atlas .job-canvas::before { content:'✦'; top:7%; right:10%; color:#b08e5780; font-size:118px; }
.job-atlas .job-canvas img { height:612px; padding:15px 0; }
.job-atlas .job-ring { width:76%; border-color:#738e9566; box-shadow:0 0 0 15px #9c81480b,0 0 0 16px #9c814855,0 0 0 47px #9c814809; background:radial-gradient(circle,#d8eef066,transparent 64%); }
.job-atlas .job-art-label { color:#657d81; }
.job-atlas .job-path-heading { margin-top:31px; }
@media(max-width:850px) {
  .job-atlas { grid-template-columns:1fr; }
  .job-directory { border-bottom:1px solid #9fb5b766; }
  .job-atlas .job-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .job-atlas .job-tab { grid-template-columns:1fr; min-height:116px; padding:7px 5px; text-align:center; }
  .job-atlas .job-tab img { width:100%; height:73px; }
  .job-atlas .job-tab-number { position:absolute; top:2px; left:5px; padding:0; }
  .job-atlas .job-tab-copy { padding:0; }
  .job-atlas .job-tab-copy small { display:none; }
  .job-atlas .job-panel { grid-template-columns:1fr; min-height:0; }
  .job-atlas .job-canvas { grid-row:1; border-bottom:1px solid #d2c3a5; border-left:0; }
  .job-atlas .job-canvas img { height:410px; }
}
@media(max-width:520px) {
  .job-directory { padding:17px 12px; }
  .job-atlas .job-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .job-atlas .job-tab { grid-template-columns:31px 58px minmax(0,1fr); min-height:77px; padding:5px; text-align:left; }
  .job-atlas .job-tab img { width:58px; height:64px; }
  .job-atlas .job-tab-number { position:static; padding-top:6px; }
  .job-atlas .job-tab-copy { padding-left:5px; }
  .job-atlas .job-canvas img { height:355px; }
  .job-atlas .job-info { padding:27px 20px; }
}
