/* Layout: a night sky over an open spellbook. Chapters stack down the page, each opened
   by a rune line; cards are spell pages with gold-edged frames and arcane glows. */
:root {
  --bg: #0b0718;
  --bg-2: #120b26;
  --surface: rgba(20, 13, 40, .84);
  --surface-2: #1b1236;
  --ink: #f3eefe;
  --ink-2: #c4b9e0;
  --ink-3: #8a7fae;
  --edge: rgba(200, 166, 255, .24);
  --arcane: #c8a6ff;
  --arcane-2: #8f5cff;
  --mana: #7ef0ff;
  --gold: #ffd27a;
  --gold-2: #d9a945;
  --online: #3ddc84;
  --idle: #f0b232;
  --dnd: #f23f43;
  --offline: #80848e;
  --radius: 16px;
  --glow: 0 0 24px rgba(143, 92, 255, .45);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 80% -10%, rgba(143, 92, 255, .28), transparent 70%),
    radial-gradient(900px 600px at -10% 40%, rgba(126, 240, 255, .10), transparent 70%),
    radial-gradient(900px 700px at 60% 110%, rgba(255, 210, 122, .08), transparent 70%);
  background-attachment: fixed;
}
main, .footer, .topbar { position: relative; z-index: 1; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
::selection { background: var(--arcane); color: #140a2a; }
:focus-visible { outline: 2px solid var(--mana); outline-offset: 3px; }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* VFX layers */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.spellfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--arcane-2), var(--mana), var(--gold)); box-shadow: 0 0 12px var(--arcane); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 7, 24, .78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--offline); box-shadow: 0 0 8px currentColor; }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a { text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.topbar nav a:hover { color: var(--ink); background: rgba(200, 166, 255, .08); }
.topbar nav .nav-cta { color: #160b2e; background: linear-gradient(135deg, var(--gold), #ffe9b8); margin-left: 6px; box-shadow: 0 0 18px rgba(255, 210, 122, .35); }
.topbar nav .nav-cta:hover { color: #160b2e; background: linear-gradient(135deg, #ffe9b8, var(--gold)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .05em;
  text-decoration: none; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #160b2e; background: linear-gradient(135deg, var(--gold), #ffe9b8 50%, var(--gold-2)); box-shadow: 0 0 22px rgba(255, 210, 122, .35); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(255, 210, 122, .6); }
.btn-plain { color: var(--ink); border-color: var(--edge); background: rgba(200, 166, 255, .05); }
.btn-plain:hover { border-color: var(--arcane); box-shadow: var(--glow); }
.btn-lg { font-size: 17px; padding: 16px 28px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.rune-circle {
  position: absolute; z-index: 0; top: 50%; left: 30%; width: min(760px, 110vw); height: auto; translate: -50% -50%;
  color: rgba(200, 166, 255, .16); pointer-events: none; filter: drop-shadow(0 0 10px rgba(143, 92, 255, .35));
}
.rc-spin { transform-origin: 300px 300px; animation: rc-spin 90s linear infinite; }
.rc-spin-rev { transform-origin: 300px 300px; animation: rc-spin 60s linear infinite reverse; }
.rc-runes { font-family: var(--display); font-size: 22px; fill: rgba(200, 166, 255, .45); letter-spacing: 6px; }
.rc-small { font-size: 18px; fill: rgba(126, 240, 255, .35); }
@keyframes rc-spin { to { transform: rotate(360deg); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; }
.hero-titles { display: contents; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 500;
  background: rgba(27, 18, 54, .8); border: 1px solid var(--edge); border-radius: 99px; padding: 6px 14px;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mana); box-shadow: 0 0 10px var(--mana); }
.title-badge {
  display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--mono); border-radius: 99px; padding: 7px 14px;
  color: #160b2e; background: linear-gradient(135deg, var(--gold), #ffe9b8); box-shadow: 0 0 22px rgba(255, 210, 122, .3);
}
.title-badge::before { content: "\2726"; }
h1 { margin: 0; }
.h1-name { /* the name is shown exactly as on Discord: no glow, no effects */
  display: block; font-family: var(--deco); font-weight: 700; font-size: clamp(54px, 9vw, 120px); line-height: 1;
  letter-spacing: .01em; overflow-wrap: anywhere; color: var(--ink);
}
.h1-role { display: block; margin-top: 14px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3vw, 38px); line-height: 1.2; color: var(--ink-2); text-wrap: balance; }
.h1-role mark {
  display: inline-block; min-width: 4.4ch; text-align: center; padding: 0 .2em; border-radius: 8px; color: #160b2e;
  background: linear-gradient(135deg, var(--mana), var(--arcane)); box-shadow: 0 0 26px rgba(143, 92, 255, .55);
}
.lede { font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; margin: 28px 0 10px; max-width: 42ch; }
.intro { color: var(--ink-2); max-width: 60ch; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- live profile card ---------- */
.player {
  position: relative; min-width: 0; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255, 210, 122, .35);
  background: var(--surface); box-shadow: 0 0 0 1px rgba(200, 166, 255, .08), 0 0 50px rgba(143, 92, 255, .25);
}
.player::before { /* gold corner filigree */
  content: ""; position: absolute; inset: 8px; border-radius: 14px; pointer-events: none; z-index: 2;
  border: 1px solid rgba(255, 210, 122, .18);
}
.player-banner {
  position: relative; height: 108px; overflow: hidden; border-bottom: 1px solid var(--edge);
  background:
    radial-gradient(160px 90px at 20% 30%, rgba(126, 240, 255, .35), transparent 70%),
    radial-gradient(200px 120px at 80% 10%, rgba(143, 92, 255, .6), transparent 70%),
    linear-gradient(160deg, #241550, #0f0822 75%);
}
.player-banner::after { /* stars in the banner */
  content: ""; position: absolute; inset: 0; opacity: .8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 48% 22%, #ffe9b8, transparent), radial-gradient(1px 1px at 66% 60%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 82% 35%, #9ff4ff, transparent), radial-gradient(1px 1px at 92% 75%, #fff, transparent);
  animation: twinkle 3.4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.player-banner.has-image { background: #120b26 var(--banner-image) center / cover no-repeat; }
.player-tag { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: .08em; background: rgba(11, 7, 24, .75); color: var(--gold); border: 1px solid rgba(255, 210, 122, .4); border-radius: 6px; padding: 2px 8px; }
.player-body { padding: 0 22px 22px; position: relative; z-index: 3; }
.avatar-wrap { position: relative; width: 104px; height: 104px; margin-top: -52px; }
.avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; border: 5px solid #140c2c; outline: 1.5px solid var(--gold-2); background: var(--surface-2); transition: opacity .3s, transform .3s; }
.avatar.swap { opacity: 0; transform: scale(.92); }
.avatar-deco { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; pointer-events: none; z-index: 2; object-fit: contain; }
.status-ring { position: absolute; right: 2px; bottom: 4px; width: 24px; height: 24px; border-radius: 50%; z-index: 3; background: var(--offline); border: 4px solid #140c2c; }
[data-status="online"] { background: var(--online) !important; }
[data-status="idle"] { background: var(--idle) !important; }
[data-status="dnd"] { background: var(--dnd) !important; }
.player-id { position: relative; margin: 16px 0 14px; min-width: 0; }
.player-id-text { position: relative; z-index: 1; min-width: 0; }
.player-id strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.handle { font-size: 13px; color: var(--ink-2); }
.handle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.clan { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--edge); }
.clan img { width: 14px; height: 14px; }
.player-id.has-nameplate { overflow: hidden; border-radius: 12px; border: 1px solid var(--edge); padding: 12px 14px; background: #0b0718 var(--plate) center / cover no-repeat; }
.nameplate-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.player-id.has-nameplate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 75%); }
.player-id.has-nameplate strong, .player-id.has-nameplate .handle { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.custom-status { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; background: var(--surface-2); border: 1px solid var(--edge); border-radius: 12px; padding: 9px 12px; font-size: 15px; overflow-wrap: anywhere; }
.cs-emoji { flex: none; font-size: 18px; line-height: 1; }
img.cs-emoji { width: 20px; height: 20px; object-fit: contain; }
.player-rows { margin: 0; }
.player-rows > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--edge); font-size: 15px; }
.player-rows dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.player-rows dd { margin: 0; overflow-wrap: anywhere; }
.player-rows dd.mono { color: var(--ink-2); }
.status-dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.platform { font-size: 12px; color: var(--ink-3); }
.pill { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 6px; color: var(--ink-2); border: 1px solid currentColor; }
.pill.online { color: var(--online); } .pill.idle { color: var(--idle); } .pill.dnd { color: var(--dnd); }
.now { padding-top: 12px; border-top: 1px dashed var(--edge); }
.now-label { margin: 0 0 10px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.activities { display: flex; flex-direction: column; gap: 10px; }
.act { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--edge); border-radius: 12px; padding: 10px; }
.act:not(:has(.act-art)) { grid-template-columns: minmax(0, 1fr); }
.act-art { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.act-body { display: flex; flex-direction: column; min-width: 0; }
.act-kind { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.act-spotify .act-kind { color: #1db954; }
.act-title { font-weight: 700; font-size: 15px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.act-sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-bar { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(200, 166, 255, .15); overflow: hidden; }
.act-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--arcane-2), var(--mana)); border-radius: inherit; transition: width 1s linear; }
.act-spotify .act-fill { background: #1db954; }
.act-times, .act-since { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.act-empty { margin: 0; font-size: 14px; color: var(--ink-2); }
.copy {
  margin-top: 14px; width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--display); font-weight: 700; letter-spacing: .04em; font-size: 15px; color: var(--ink);
  background: rgba(143, 92, 255, .12); border: 1px solid var(--edge); border-radius: 12px; padding: 11px; transition: box-shadow .2s, border-color .2s;
}
.copy:hover { border-color: var(--arcane); box-shadow: var(--glow); }
.copy.done { border-color: var(--online); color: var(--online); }

/* ---------- rune dividers ---------- */
.rune-div { margin-top: clamp(64px, 9vw, 110px); }
.rd-inner { display: flex; align-items: center; gap: 18px; }
.rd-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 210, 122, .6), rgba(200, 166, 255, .6), transparent); box-shadow: 0 0 10px rgba(143, 92, 255, .6); }
.rd-mark {
  font-family: var(--display); font-size: 22px; width: 52px; height: 52px; flex: none; display: grid; place-items: center; color: var(--gold);
  border: 1px solid rgba(255, 210, 122, .5); border-radius: 50%; background: rgba(20, 13, 40, .9);
  box-shadow: 0 0 26px rgba(143, 92, 255, .45), inset 0 0 14px rgba(255, 210, 122, .15);
}
.rd-mark { text-shadow: 0 0 10px var(--gold); }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 84px) 0; }
.section-head { margin-bottom: 34px; max-width: 760px; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mana); }
h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 60px); font-weight: 900; line-height: 1.05; margin: 0; text-wrap: balance; text-shadow: 0 0 28px rgba(143, 92, 255, .45); }
.section-sub { color: var(--ink-2); margin: 14px 0 0; max-width: 55ch; }

/* legend */
.legend { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.scroll-card {
  position: relative; padding: 30px 32px; border-radius: 18px; background: var(--surface);
  border: 1px solid rgba(255, 210, 122, .3); box-shadow: 0 0 40px rgba(143, 92, 255, .18); min-width: 0;
}
.scroll-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 18px; }
.scroll-card p:last-child { margin: 0; }
.dropcap::first-letter { float: left; font-family: var(--deco); font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--gold); text-shadow: 0 0 16px rgba(255, 210, 122, .5); }
.traits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.traits li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); }
.trait-icon { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; color: var(--gold); background: radial-gradient(circle, rgba(143, 92, 255, .4), rgba(20, 13, 40, .8)); box-shadow: 0 0 16px rgba(143, 92, 255, .4); }
.traits strong { font-family: var(--display); font-size: 17px; }
.traits span:last-child { font-size: 14px; color: var(--ink-3); }

/* spellbook */
.spells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.spell {
  --c: hsl(var(--hue) 90% 72%);
  position: relative; overflow: hidden; min-width: 0; padding: 22px 22px 20px; border-radius: 18px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 14%, transparent);
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.spell::before { /* a faint sigil in the corner */
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--c) 40%, transparent); opacity: .6; transition: transform 1.2s ease;
}
.spell:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 44px color-mix(in srgb, var(--c) 35%, transparent); }
.spell:hover::before { transform: rotate(180deg) scale(1.1); }
.spell-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spell-glyph { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; color: #160b2e; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 55%, transparent); }
.spell-school { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.spell h3 { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 16px 0 8px; }
.spell p { margin: 0; color: var(--ink-2); font-size: 15px; }
.spell-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.spell-meta span { font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); color: var(--ink-2); }

/* guilds */
.guilds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.guild { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); }
.guild-main { border-color: rgba(255, 210, 122, .45); box-shadow: 0 0 40px rgba(255, 210, 122, .14); }
.guild-crest { width: 76px; height: 76px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 210, 122, .5); box-shadow: 0 0 24px rgba(143, 92, 255, .45); background: var(--surface-2); }
.guild-crest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guild-body { min-width: 0; }
.guild-rank { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.guild h3 { font-family: var(--display); font-size: 26px; margin: 4px 0 8px; }
.guild p { margin: 0; color: var(--ink-2); font-size: 15px; }
.guild-roles { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.guild-roles li { font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--edge); background: rgba(143, 92, 255, .1); }
.guild-link { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--mana); text-decoration: none; }
.guild-link:hover { text-decoration: underline; }

/* contact */
.contact {
  position: relative; overflow: hidden; padding: clamp(32px, 6vw, 68px); border-radius: 24px; border: 1px solid rgba(255, 210, 122, .4);
  background: radial-gradient(600px 300px at 85% 0%, rgba(143, 92, 255, .35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(126, 240, 255, .14), transparent 70%), var(--surface);
  box-shadow: 0 0 60px rgba(143, 92, 255, .22);
}
.contact-big { font-size: clamp(30px, 5vw, 58px); max-width: 18ch; }
.contact-sub { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: 16px 0 0; }
.contact-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.contact-handle { font-size: 14px; background: rgba(143, 92, 255, .14); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.extra-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.extra-links:empty { display: none; }
.extra-links a { font-family: var(--mono); font-size: 14px; color: var(--mana); text-underline-offset: 4px; }
.footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--edge); background: rgba(11, 7, 24, .85); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; font-size: 12px; color: var(--ink-3); }

/* load-in: visible at rest, rises in */
.reveal { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: .001; transform: translateY(14px); filter: blur(4px); } }
.rise-in { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }

/* wand cursor */
html.wand-on, html.wand-on body, html.wand-on a, html.wand-on button { cursor: none; }
.wand { position: fixed; left: 0; top: 0; z-index: 100; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .15s; }
.wand.show { opacity: 1; }
.wand.over-text { opacity: 0; }
.wand-svg { position: absolute; left: -1px; top: -8px; width: 110px; height: 16px; overflow: visible; transform-origin: 1px 8px; transform: rotate(40deg);
  filter: drop-shadow(0 0 3px rgba(159, 244, 255, .8)) drop-shadow(1px 3px 2px rgba(0,0,0,.8)); }
.wand.ready .w-glow { opacity: .7; }
.w-glow { transition: opacity .2s; animation: gem-pulse 1.6s ease-in-out infinite alternate; }
@keyframes gem-pulse { from { opacity: .2; } to { opacity: .55; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .player { max-width: 440px; }
  .rune-circle { left: 50%; top: 32%; }
  .spells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend, .guilds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .spells { grid-template-columns: minmax(0, 1fr); }
  .guild { grid-template-columns: 56px minmax(0, 1fr); padding: 20px; }
  .guild-crest { width: 56px; height: 56px; border-radius: 16px; }
  .scroll-card { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* profile picture viewer colours */
:root { --pfp-accent: #ffd27a; --pfp-accent-ink: #160b2e; }
