@font-face { font-family: "Cinzel"; src: url("assets/fonts/Cinzel.ttf"); font-display: swap; }
@font-face { font-family: "CinzelDeco"; src: url("assets/fonts/CinzelDecorative-Bold.ttf"); font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/Alegreya.ttf"); font-display: swap; }

:root {
  --bg: #0d0907;
  --bg2: #16100c;
  --panel: #1d1510;
  --gold: #e7b65a;
  --gold-hi: #ffe2a0;
  --gold-lo: #8a5f22;
  --text: #ecdcc0;
  --muted: #a99678;
  --ember: #ff7a1a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Alegreya", Georgia, serif; font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
h2, h3, h4 { font-family: "Cinzel", serif; color: var(--gold); letter-spacing: 0.04em; margin: 0 0 0.4em; }
h2 { font-size: clamp(28px, 4vw, 44px); text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
h2::after { content: ""; display: block; width: 120px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; background: linear-gradient(180deg, rgba(8,5,4,.95), rgba(8,5,4,.6)); border-bottom: 1px solid rgba(231,182,90,.25); backdrop-filter: blur(4px); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "CinzelDeco", serif; font-size: 22px; color: var(--gold-hi); }
.brand img { width: 36px; height: 36px; }
.nav nav { display: flex; gap: 22px; align-items: center; font-family: "Cinzel", serif; font-size: 15px; }
.nav nav a { color: var(--text); }
.nav nav a:hover { color: var(--gold-hi); }
.nav-cta { padding: 6px 16px; border: 1px solid var(--gold); border-radius: 4px; color: var(--gold-hi) !important; }
@media (max-width: 760px) { .nav nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 90px 16px 40px; }
.hero-bg { position: absolute; inset: 0; background: url("assets/img/hero.jpg") center / cover no-repeat; filter: brightness(.55) saturate(1.1); transform: scale(1.05); animation: drift 30s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(13,9,7,.85) 85%), linear-gradient(180deg, transparent 60%, var(--bg)); }
@keyframes drift { to { transform: scale(1.12) translate(-1%, -1%); } }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.logo { width: min(720px, 92vw); margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.8)); }
.tagline { font-size: clamp(18px, 2.2vw, 24px); color: #f6e8cc; text-shadow: 0 2px 8px #000; margin: 10px auto 26px; max-width: 680px; }
.version { color: var(--muted); font-size: 15px; margin-top: 16px; }
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.embers span { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px 2px rgba(255,122,26,.8); animation: rise linear infinite; }
@keyframes rise { to { transform: translate(40px, -105vh); opacity: 0; } }

/* buttons */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-row.left { justify-content: flex-start; }
.btn { display: inline-block; padding: 14px 30px; font-family: "Cinzel", serif; font-weight: 700; font-size: 17px; letter-spacing: .05em; border-radius: 6px; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn-gold { color: #2a1405; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); border: 1px solid #ffefc4; box-shadow: 0 6px 24px rgba(231,140,40,.35), inset 0 1px 0 #fff6d8; }
.btn-dark { color: var(--gold-hi); background: linear-gradient(180deg, #5a1d10, #2b0d07); border: 1px solid var(--gold-lo); }

/* sections */
.section { padding: 90px 24px; max-width: 1180px; margin: 0 auto; }
.section.dark { max-width: none; background: linear-gradient(180deg, var(--bg), var(--bg2) 20%, var(--bg2) 80%, var(--bg)); }
.section.dark > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 40px; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: linear-gradient(180deg, #221812, #150e0a); border: 1px solid rgba(231,182,90,.25); border-radius: 10px; padding: 24px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(231,182,90,.7); transform: translateY(-3px); }
.card .ico { font-size: 34px; }
.card h3 { font-size: 20px; margin-top: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 17px; }

.story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.story img { border-radius: 10px; border: 1px solid rgba(231,182,90,.35); box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { padding: 8px 0; border-bottom: 1px solid rgba(231,182,90,.15); }
.facts b { color: var(--gold); font-family: "Cinzel", serif; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.classes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.class { position: relative; border-radius: 12px; padding: 34px; overflow: hidden; border: 1px solid rgba(231,182,90,.3); }
.class.mage { background: linear-gradient(135deg, #1c1430, #120c18); }
.class.warrior { background: linear-gradient(135deg, #2e1a10, #160d08); }
.class h3 { font-size: 30px; margin: 0; }
.class .role { color: var(--muted); font-family: "Cinzel", serif; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.class .skills { color: var(--gold-hi); font-size: 15px; opacity: .85; }
@media (max-width: 760px) { .classes { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.gallery img { border-radius: 8px; border: 1px solid rgba(231,182,90,.25); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .25s, border-color .25s; }
.gallery a:hover img { transform: scale(1.02); border-color: var(--gold); }

.dl-box { display: flex; gap: 30px; align-items: center; background: linear-gradient(180deg, #241912, #140d09); border: 1px solid var(--gold-lo); border-radius: 14px; padding: 34px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.dl-box > img { width: 140px; height: 140px; }
.dl-box h3 { font-size: 28px; }
@media (max-width: 700px) { .dl-box { flex-direction: column; text-align: center; } .cta-row.left { justify-content: center; } }
.small { font-size: 14px; color: var(--muted); }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.req > div { background: var(--panel); border-radius: 10px; padding: 18px 22px; border: 1px solid rgba(231,182,90,.15); }
.req p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .req { grid-template-columns: 1fr; } }
.news { margin-top: 26px; background: var(--panel); border-radius: 10px; padding: 22px; border: 1px solid rgba(231,182,90,.2); }
#news-body { white-space: pre-wrap; color: var(--muted); font-size: 16px; max-height: 360px; overflow: auto; }

.foot { text-align: center; padding: 50px 16px; border-top: 1px solid rgba(231,182,90,.2); color: var(--muted); }
.foot img { width: 48px; margin: 0 auto 10px; opacity: .8; }
.foot p { margin: 4px 0; }

.donate-box { display: flex; gap: 30px; align-items: center; background: linear-gradient(180deg, #2a1610, #140d09); border: 1px solid var(--gold-lo); border-radius: 14px; padding: 34px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.donate-ico { font-size: 84px; line-height: 1; flex: 0 0 auto; }
.donate-box h3 { font-size: 28px; }
.no-refund { margin-top: 18px; padding: 10px 14px; border-left: 3px solid #d0583a; background: rgba(208,88,58,.12); border-radius: 4px; font-size: 15px; }
.no-refund b { color: #ff9a7a; }
@media (max-width: 720px) { .donate-box { flex-direction: column; text-align: center; padding: 24px 16px; } .donate-box .cta-row.left { justify-content: center; } }
