:root {
  --bg: #07050d;
  --bg2: #0e0a1a;
  --panel: #150f26;
  --line: #3a2b5e;
  --gold: #e9c46a;
  --gold-dark: #9a7a2e;
  --violet: #8f5cff;
  --text: #e8e3f4;
  --muted: #a99fc4;
  --danger: #ff5a6e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .brand, .btn { font-family: "Cinzel", Georgia, serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 900px; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 28px;
  background: linear-gradient(#07050df2, #07050d00);
  transition: background .25s;
}
.topbar.solid { background: #07050dee; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { font-weight: 900; letter-spacing: .12em; font-size: 18px; color: var(--gold); }
.brand span { color: var(--text); }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .1em; font-size: 14px; color: var(--muted); }
.topbar nav a:hover { color: var(--gold); }

.btn {
  display: inline-block; cursor: pointer; border: 0;
  padding: 14px 30px; font-weight: 700; letter-spacing: .08em; font-size: 15px;
  color: #1a1204; background: linear-gradient(#f4d98a, var(--gold) 55%, var(--gold-dark));
  border-radius: 4px; box-shadow: 0 0 0 2px #00000066 inset, 0 8px 24px #e9c46a33;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 2px var(--gold-dark) inset; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, #8f5cff44, transparent 60%),
    linear-gradient(#07050d99, #07050d 96%),
    url("img/gods/ador.jpg") center/cover no-repeat;
  filter: saturate(.85);
}
.hero-content { position: relative; max-width: 1180px; margin: 0 auto; padding: 120px 28px 80px; width: 100%; }
.eyebrow { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.hero h1 { margin: 0; font-size: clamp(44px, 9vw, 110px); line-height: .95; font-weight: 900; letter-spacing: .04em; text-shadow: 0 6px 40px #000; }
.hero h1 span { color: var(--violet); text-shadow: 0 0 40px #8f5cff88; }
.tagline { max-width: 640px; font-size: 20px; color: #d9d0f0; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; }

.section { padding: 110px 0; position: relative; }
.section.dark { background: linear-gradient(var(--bg2), var(--bg)); }
.title {
  font-size: clamp(28px, 4.6vw, 52px); margin: 0 0 14px; text-align: center; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(#fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { text-align: center; max-width: 760px; margin: 0 auto 48px; color: var(--muted); font-size: 18px; }

.video-frame {
  aspect-ratio: 16 / 9; border: 2px solid var(--gold-dark); border-radius: 6px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2a1d4d, #0c0816); box-shadow: 0 20px 80px #000a, 0 0 0 6px #00000066;
  display: grid; place-items: center;
}
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-empty { text-align: center; color: var(--muted); }
.play { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--gold); display: grid; place-items: center; font-size: 30px; color: var(--gold); padding-left: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 26px; position: relative; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--violet)); }
.card h3 { margin: 0 0 10px; color: var(--gold); font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.classes { background: radial-gradient(ellipse at 50% 0%, #2b1b5522, transparent 60%), var(--bg); }
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.tab {
  font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .1em; cursor: pointer;
  background: transparent; color: var(--muted); border: 2px solid var(--line); padding: 10px 26px; border-radius: 4px;
}
.tab.active { color: #1a1204; background: var(--gold); border-color: var(--gold); }

.showcase { display: grid; grid-template-columns: 120px minmax(300px, 1fr) minmax(320px, 1.1fr); gap: 28px; align-items: stretch; }
.selector { display: flex; flex-direction: column; gap: 12px; }
.sel {
  width: 100%; aspect-ratio: 1; cursor: pointer; padding: 0; border-radius: 50%;
  border: 3px solid var(--line); background: #0b0716; overflow: hidden; position: relative; transition: .2s;
}
.sel:hover { border-color: var(--gold-dark); transform: scale(1.04); }
.sel.active { border-color: var(--gold); box-shadow: 0 0 0 3px #00000099, 0 0 22px #e9c46a66; }
.sel .face { position: absolute; inset: -10%; background-repeat: no-repeat; image-rendering: pixelated; }

.hero-card {
  background: linear-gradient(#1a1230, #0d0818); border: 2px solid var(--gold-dark); border-radius: 8px;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.hero-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid #e9c46a33; border-radius: 4px; pointer-events: none; }
.char-stage { position: relative; height: 440px; display: grid; place-items: center; }
.char-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow, #8f5cff55), transparent 65%); filter: blur(10px); }
.char-floor { position: absolute; bottom: 38px; width: 46%; height: 26px; border-radius: 50%; background: radial-gradient(#000c, transparent 70%); }
.sprite { background-repeat: no-repeat; image-rendering: pixelated; }
.sprite.big { width: 480px; height: 480px; position: relative; z-index: 1; margin-top: 0; }
.char-info { padding: 6px 28px 28px; text-align: center; }
.role { margin: 0; color: var(--violet); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.char-info h3 { margin: 4px 0 8px; font-size: 32px; color: var(--gold); letter-spacing: .06em; }
.char-info p:last-child { margin: 0; color: var(--muted); }

.skills { display: flex; flex-direction: column; gap: 14px; }
.skill {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; flex: 1;
}
.skill-icon { width: 84px; height: 84px; border: 2px solid var(--gold-dark); border-radius: 6px; background: #05030a; overflow: hidden; }
.skill-icon img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: auto; }
.skill-key { font-size: 11px; letter-spacing: .28em; color: var(--violet); text-transform: uppercase; }
.skill h4 { margin: 2px 0 4px; font-family: "Cinzel", serif; font-size: 19px; color: var(--gold); }
.skill p { margin: 0; color: var(--muted); font-size: 14px; }

.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 2px solid var(--gold-dark); border-radius: 8px; overflow: hidden; background: var(--panel); }
.story-art { min-height: 440px; background-size: cover; background-position: center; position: relative; }
.story-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--panel)); }
.story-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.story-text h3 { margin: 0; font-size: 36px; color: var(--gold); letter-spacing: .08em; }
.story-sub { margin: 0 0 12px; color: var(--violet); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.story-nav { display: flex; align-items: center; gap: 16px; margin-top: 22px; color: var(--muted); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold-dark); background: transparent; color: var(--gold); font-size: 24px; cursor: pointer; }
.round:hover { background: var(--gold); color: #1a1204; }

.support { background: radial-gradient(ellipse at 50% 100%, #8f5cff22, transparent 60%), var(--bg); }
.goal { max-width: 760px; margin: 0 auto 40px; }
.goal-top { display: flex; justify-content: space-between; font-family: "Cinzel", serif; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.bar { height: 22px; border-radius: 11px; background: #0b0716; border: 2px solid var(--gold-dark); overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width 1.2s ease; }
.goal-note { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 48px; }
.tier { background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.tier.featured { border-color: var(--gold); box-shadow: 0 0 40px #e9c46a22; transform: translateY(-8px); }
.tier h3 { margin: 0; font-size: 24px; color: var(--gold); }
.tier .price { font-family: "Cinzel", serif; font-size: 34px; font-weight: 900; }
.tier ul { list-style: none; padding: 0; margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.tier li { padding: 4px 0; border-top: 1px solid #ffffff10; }
.tier .btn { margin-top: auto; }
.usage { max-width: 760px; margin: 0 auto; background: #0e0a1a; border: 1px solid var(--line); border-radius: 8px; padding: 26px 30px; }
.usage h3 { margin: 0 0 10px; color: var(--gold); }
.usage ul { margin: 0; padding-left: 20px; color: var(--muted); }
.usage li { margin: 6px 0; }
.usage b { color: var(--text); }
.fine { text-align: center; color: #7d739a; font-size: 13px; max-width: 700px; margin: 22px auto 0; }

.footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; background: #05030a; }
.foot-brand { font-family: "Cinzel", serif; font-weight: 900; letter-spacing: .12em; color: var(--gold); font-size: 20px; margin-bottom: 12px; }
.foot-brand span { color: var(--text); }
.socials { display: flex; gap: 14px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.socials a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.credits { font-size: 12px; color: #6f6590; }

@media (max-width: 980px) {
  .topbar nav { display: none; }
  .showcase { grid-template-columns: 1fr; }
  .selector { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .sel { width: 74px; }
  .story { grid-template-columns: 1fr; }
  .story-art { min-height: 260px; }
  .story-art::after { background: linear-gradient(transparent 60%, var(--panel)); }
  .story-text { padding: 26px; }
  .tier.featured { transform: none; }
}
@media (max-width: 520px) {
  .sprite.big { width: 340px; height: 340px; }
  .char-stage { height: 320px; }
  .skill { grid-template-columns: 64px 1fr; }
  .skill-icon { width: 64px; height: 64px; }
}

.clip-btn {
  margin-top: 10px; padding: 7px 14px; border: 1px solid var(--gold-dark); border-radius: 4px;
  background: transparent; color: var(--gold); font: inherit; font-size: 13px; cursor: pointer;
}
.clip-btn:hover { background: rgba(212, 175, 90, .14); }
.clip-modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 2, 10, .88);
}
.clip-modal[hidden] { display: none; }
.clip-box { position: relative; width: min(960px, 100%); border: 2px solid var(--gold-dark); border-radius: 8px; background: #05030a; }
.clip-box video { width: 100%; display: block; border-radius: 6px 6px 0 0; }
.clip-title { margin: 0; padding: 12px 16px; font-family: "Cinzel", serif; color: var(--gold); }
.clip-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 1px solid var(--gold-dark);
  border-radius: 50%; background: rgba(5, 3, 10, .85); color: var(--gold); font-size: 22px; line-height: 1; cursor: pointer;
}

.modes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 40px; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 28px; text-align: center; }
.mode-badge {
  display: inline-block; min-width: 84px; padding: 8px 18px; margin-bottom: 14px; border: 2px solid var(--gold);
  border-radius: 6px; font-family: "Cinzel", serif; font-size: 34px; font-weight: 900; color: var(--gold);
}
.mode h3 { margin: 0 0 8px; color: var(--gold); font-size: 22px; }
.mode p { margin: 0; color: var(--muted); }
.mode-switch { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.switch-track { position: relative; width: 74px; height: 38px; border: 2px solid var(--gold); border-radius: 22px; background: #05030a; }
.switch-knob { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); animation: switch-move 3.2s ease-in-out infinite; }
.switch-label { color: var(--muted); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
@keyframes switch-move { 0%, 40% { transform: translateX(0); } 55%, 95% { transform: translateX(34px); } 100% { transform: translateX(0); } }
.clip-modes { display: flex; gap: 8px; padding: 10px 16px 0; }
.clip-modes button {
  min-width: 64px; padding: 6px 14px; border: 1px solid var(--gold-dark); border-radius: 4px; background: transparent;
  color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
}
.clip-modes button.active { background: rgba(212, 175, 90, .18); color: var(--gold); }
.clip-missing { margin: 0; padding: 70px 16px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .modes { grid-template-columns: 1fr; }
  .mode-switch { flex-direction: row; justify-content: center; }
}
