/* Veyrath portal art direction — cinematic, legible, mobile-first */
:root{
  --portal-ink:#e9e0cf;
  --portal-dim:#a9a394;
  --portal-gold:#d8b875;
  --portal-line:#d8b87542;
  --portal-night:#070b0e;
}
html{scroll-padding-top:104px}
body{
  background:
    radial-gradient(ellipse at 50% -12%,#6e54301c,transparent 42%),
    radial-gradient(ellipse at 5% 42%,#28424a14,transparent 34%),
    linear-gradient(180deg,#070b0e 0%,#0b1013 48%,#070a0c 100%);
}
body:after{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
header{height:88px;border-bottom-color:#d8b87560}
.head{max-width:1320px}
.brand img{width:170px;height:66px}
.nav a{font-weight:700}
.nav .nav-download{box-shadow:0 8px 26px #0005,inset 0 0 22px #d8b87512}
.hero{
  min-height:min(850px,calc(100svh - 88px));
  border-bottom:1px solid var(--portal-line);
}
.hero:before{
  background-image:
    linear-gradient(90deg,#05090cf7 0%,#05090ce8 30%,#05090c9b 57%,#05090c28 100%),
    linear-gradient(0deg,#070b0e 0%,transparent 34%,#070b0e20 100%),
    url("./assets/1796033156062.jpg");
  background-position:center,center,center 42%;
  background-size:cover;
  filter:saturate(.82) contrast(1.12);
}
.hero:after{
  background:
    radial-gradient(ellipse at 78% 48%,transparent 0%,#070b0d20 40%,#070b0d90 100%),
    linear-gradient(90deg,transparent 72%,#070b0d66);
}
.hero-inner{max-width:1220px;padding-top:clamp(90px,14vh,150px)}
.eyebrow{font-size:.68rem;letter-spacing:.34em}
h1{
  font-size:clamp(4.7rem,12vw,10.5rem);
  letter-spacing:.17em;
  margin:32px 0 25px;
  background:linear-gradient(180deg,#fff9e9 0%,#e2c58f 48%,#967047 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 15px 34px #000e);
}
.hero-sub{font-size:clamp(.82rem,1.8vw,1.15rem);letter-spacing:.48em}
.hero p{max-width:570px;font-size:clamp(1.05rem,1.8vw,1.24rem);line-height:1.95}
.hero-inner:after{
  content:"";display:block;width:min(460px,78%);height:1px;margin-top:48px;
  background:linear-gradient(90deg,var(--portal-gold),#d8b87500);
}
.btn{min-height:56px;padding:15px 24px;letter-spacing:.15em}
.btn.primary{background:linear-gradient(120deg,#9b5740,#512b27 72%);box-shadow:0 14px 34px #0008}
section.content{padding:clamp(76px,9vw,118px) 0}
.section-head{margin-bottom:48px}
.section-head h2{max-width:800px}
.section-head p{max-width:700px}
.grid.three,.myth-grid,.character-grid{gap:18px}
.panel{
  border-color:#c9a76b45;
  background:linear-gradient(145deg,#182126f2,#0b1114 78%);
  box-shadow:0 22px 52px #0005;
}
.panel h3{font-size:1.75rem}
.panel p{font-size:.94rem}
.panel:hover{border-color:#e0c18a99;box-shadow:0 26px 58px #0007,0 0 24px #d8b8750b}
#mythic-world{position:relative;overflow:hidden}
#mythic-world:after{
  content:"";position:absolute;top:0;right:-100px;width:420px;height:420px;
  border:1px solid #d8b87510;border-radius:50%;box-shadow:0 0 0 34px #d8b87508,0 0 0 68px #d8b87505;
  pointer-events:none;
}
.myth-card{min-height:365px;border-color:#d8b87570}
.myth-card:after{background:linear-gradient(180deg,#05090c00 0%,#05090c25 30%,#05090cf2 100%)}
.myth-glyph{width:100px;height:100px;border-color:#ead3a688}
.myth-card h3{font-size:2.25rem}
.character-card{position:relative;overflow:hidden;padding:30px 26px 32px;border:1px solid #d8b87532;background:linear-gradient(145deg,#172126,#0b1013)}
.character-card:after{
  content:"";position:absolute;right:-20px;top:-45px;width:130px;height:130px;
  border:1px solid #d8b87517;border-radius:50%;box-shadow:0 0 0 18px #d8b87508,0 0 0 36px #d8b87505;
}
.character-card .num{color:#e0bd7a80}
#downloads{border-top:1px solid #d8b87520}
.release-main{border-color:#d8b875a0}
.release-side .panel{min-height:100%}
#updates .history-item{border-left:2px solid #c9a56d80}
#media .gallery{grid-template-columns:1.35fr 1fr 1fr;gap:16px}
#media .gallery figure{min-height:280px}
#media .gallery figure:first-child{min-height:340px}
#media .gallery img{min-height:280px}
.gallery-source-note{max-width:780px}
#community .support .panel{min-height:220px}
footer{padding:42px 0}
.foot{max-width:1220px}
@media(max-width:850px){
  .hero{min-height:680px}
  #media .gallery{grid-template-columns:1fr 1fr}
  #media .gallery figure:first-child{grid-column:span 2;min-height:300px}
  #media .gallery figure:first-child img{min-height:300px}
  .myth-card{min-height:330px}
}
@media(max-width:620px){
  header{min-height:74px}
  .head{padding:8px 0 6px}
  .brand img{width:126px;height:42px}
  .nav{gap:16px;padding:7px 0 9px}
  .hero{min-height:650px}
  .hero:before{
    background-image:
      linear-gradient(90deg,#05090cf4 0%,#05090cce 54%,#05090c70 100%),
      linear-gradient(0deg,#070b0e 0%,transparent 60%),
      url("./assets/1796033156062.jpg");
    background-position:center,center,60% center;
  }
  .hero-inner{padding:80px 0 70px}
  h1{font-size:clamp(3.6rem,16vw,5.7rem);letter-spacing:.1em}
  .hero-sub{letter-spacing:.24em}
  .hero p{font-size:1rem;line-height:1.85}
  .hero-inner:after{margin-top:34px}
  .hero-actions{display:grid;grid-template-columns:1fr}
  .btn{width:100%}
  section.content{padding:68px 0}
  .section-head{margin-bottom:34px}
  .myth-card{min-height:300px}
  #media .gallery{grid-template-columns:1fr 1fr;gap:9px}
  #media .gallery figure,#media .gallery img{min-height:165px}
  #media .gallery figure:first-child{grid-column:span 2;min-height:220px}
  #media .gallery figure:first-child img{min-height:220px}
  .character-card{padding:25px 22px}
}
@media(prefers-reduced-motion:reduce){.myth-card:before,.gallery img{transition:none}}
