/* Colors come from the logo: torch gold, banner red, castle stone, over the hall's violet. */
:root { --night: #0a0414; --stone: #231a33; --edge: #6d5636; --gold: #f6c04f; --red: #b5281d; --text: #f6eee6; --soft: #cdbfd6; --title: "Palatino Linotype", Palatino, Georgia, serif; --pad: clamp(16px, 4vw, 56px); }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { background: var(--night); color: var(--text); font: 17px/1.5 "Segoe UI", system-ui, sans-serif; overflow-x: hidden; }
canvas { image-rendering: pixelated; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 9; background: var(--gold); color: #1a0608; padding: 10px 16px; }
.skip:focus { top: 12px; }

h2 canvas { display: block; max-width: 100%; height: auto; }
h3 { font: 700 26px/1.2 var(--title); color: var(--gold); }
.lead { color: var(--soft); max-width: 46ch; margin-top: 10px; }

/* Notched pixel buttons */
.btn { display: inline-block; min-width: 220px; padding: 15px 30px; text-align: center; font: 700 24px/1.2 var(--title); color: #fff3d4; text-decoration: none; text-shadow: 0 2px 0 #4d0c08; background: linear-gradient(#c93525 50%, #a52318 50%); box-shadow: 0 -4px #f6c04f, 0 4px #8a5417, -4px 0 #d08f2c, 4px 0 #d08f2c, inset 0 4px #e8604a, inset 0 -4px #7c150d, 0 10px 30px rgba(0, 0, 0, .6); transition: transform .1s; }
.btn:hover { transform: translateY(-3px); background: linear-gradient(#dd4330 50%, #b92a1d 50%); }
.btn:active { transform: translateY(3px); }
.btn.small { min-width: 0; padding: 7px 20px; font-size: 18px; margin: 4px; }

.bar { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 6px var(--pad); background: rgba(10, 4, 20, .94); box-shadow: 0 3px var(--edge); transform: translateY(-110%); visibility: hidden; transition: transform .25s, visibility .25s; }
.bar.on { transform: none; visibility: visible; }
.bar img { width: 112px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
.bar nav a:hover { color: var(--gold); }

/* The opening fight */
.first { background: url(/raid/map.webp?v=5) 50% 100% / cover; image-rendering: pixelated; position: relative; height: 100vh; height: 100svh; min-height: 520px; display: grid; grid-template-rows: 1fr auto; justify-items: center; overflow: hidden; isolation: isolate; }
#fight { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; z-index: -2; opacity: 0; transition: opacity .8s; }
#fight.on { opacity: 1; }
.first::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 46% 34% at 50% 24%, rgba(8, 2, 18, .72), transparent), radial-gradient(ellipse 44% 26% at 50% 88%, rgba(8, 2, 18, .8), transparent), linear-gradient(transparent 84%, var(--night)); }
.title { padding: clamp(14px, 4vh, 48px) 16px 0; }
.title img { image-rendering: auto; width: min(720px, 92vw, 88vh); filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .7)); }
.call { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 0 16px clamp(24px, 6vh, 60px); }
.call p { font: 700 clamp(21px, 3vw, 32px)/1.2 var(--title); text-shadow: 0 2px 8px #000; }
.call small { font-size: 15px; color: #e6daf0; margin-top: 6px; }

main > section { padding: clamp(56px, 9vw, 110px) var(--pad); }
main > section > * { max-width: 1200px; margin-inline: auto; }

/* Heroes */
main > section > .lead { max-width: 1200px; }
.heroes h2 canvas { margin-left: -8px; }
.select { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 30px !important; }
.stage { --r: #a9b4c4; position: relative; display: grid; align-content: end; justify-items: center; min-height: 420px; padding: 4px 4px 18px; background: radial-gradient(ellipse 46% 22% at 50% 76%, color-mix(in srgb, var(--r) 75%, transparent), transparent), linear-gradient(rgba(10, 4, 20, .25), rgba(10, 4, 20, .55)), url(/raid/map.webp?v=5) 50% 45% / 1500px; image-rendering: pixelated; box-shadow: 0 -4px var(--r), 0 4px var(--r), -4px 0 var(--r), 4px 0 var(--r); margin: 4px; }
.stage canvas { width: min(520px, 100%); height: auto; }
.moves { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.moves button, .rarities button { padding: 8px 16px; min-height: 44px; font-weight: 600; background: #1b0e2c; border: 2px solid var(--edge); }
.moves button:hover, .rarities button:hover { border-color: var(--gold); }
.moves [aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a0608; }
.sheet h3 { font-size: clamp(32px, 4vw, 46px); }
.sheet > p:first-of-type { min-height: 3em; margin-top: 6px; max-width: 46ch; }
#stats { margin: 18px 0 22px; display: grid; gap: 8px; }
#stats div { display: grid; grid-template-columns: 76px 1fr 62px; gap: 12px; align-items: center; }
#stats dt { color: var(--soft); }
#stats dd { margin: 0; height: 14px; background: #1b0e2c; }
#stats i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--r) 0 8px, transparent 8px 10px); transition: width .35s; }
#stats .n { height: auto; background: none; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rarities { display: flex; flex-wrap: wrap; gap: 8px; }
.rarities button { border-color: var(--r); color: var(--r); }
.rarities [aria-pressed="true"] { background: var(--r); color: #12061d; }
.odds { margin-top: 12px; color: var(--soft); }
.roster { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; margin-top: 34px !important; }
.roster button { display: grid; justify-items: center; align-content: end; gap: 6px; padding: 10px 2px 8px; font-size: 14px; line-height: 1.2; background: linear-gradient(#2c1c40, #160a24); box-shadow: 0 -3px var(--edge), 0 3px var(--edge), -3px 0 var(--edge), 3px 0 var(--edge); transition: transform .1s; }
.roster canvas { width: 100%; max-width: 108px; }
.roster span { min-height: 2.4em; display: grid; place-items: center; text-align: center; }
.roster button:hover { transform: translateY(-4px); }
.roster [aria-pressed="true"] { background: linear-gradient(#7a2018, #35100f); box-shadow: 0 -3px var(--gold), 0 3px var(--gold), -3px 0 var(--gold), 3px 0 var(--gold); }

/* Monsters stand along the hall's wall */
.monsters { overflow: clip; background: linear-gradient(var(--night), rgba(10, 4, 20, .2) 30%, rgba(10, 4, 20, .55) 80%, var(--night)), url(/raid/map.webp?v=5) 50% 0 / cover; image-rendering: pixelated; text-align: center; }
.monsters h2 canvas, .bosses h2 canvas, .raidbosses h2 canvas, .facts h2 canvas { margin-inline: auto; }
.monsters .lead { margin-inline: auto; text-shadow: 0 1px 4px #000; color: var(--text); }
.row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 40px !important; }
.row button { display: grid; justify-items: center; align-content: start; gap: 4px; padding-bottom: 8px; min-width: 0; text-shadow: 0 1px 3px #000, 0 0 8px #000; }
.row canvas { width: 160%; pointer-events: none; filter: drop-shadow(0 0 10px rgba(217, 120, 255, .5)); }
.row b { font: 700 20px/1.2 var(--title); color: var(--gold); margin-top: 6px; }
.row span { font-size: 15px; line-height: 1.35; max-width: 18ch; }

/* Bosses */
.bosses { text-align: center; background: radial-gradient(ellipse 60% 40% at 50% 60%, #3b0f14, transparent); }
.bosses .lead { margin-inline: auto; }
.bosses article { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(16px, 4vw, 60px); text-align: left; }
.bosses article:nth-child(even) > button { order: 2; }
.bosses article:nth-child(even) > div { text-align: right; justify-self: end; }
.bosses article canvas { display: block; width: 100%; filter: drop-shadow(0 0 26px rgba(255, 90, 50, .28)); }
.bosses h3 { font-size: clamp(34px, 5vw, 58px); }
.bosses article p { max-width: 34ch; margin-top: 10px; font-size: 18px; }
.bosses article:nth-child(even) p { margin-left: auto; }

/* Pictures of the game */
.game .lead { margin-bottom: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tabs button { padding: 8px 16px; min-height: 44px; font-weight: 600; background: #1b0e2c; border: 2px solid var(--edge); }
.tabs button:hover { border-color: var(--gold); }
.tabs [aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a0608; }
.look { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 30px !important; }
.look figure { margin: 4px; display: grid; justify-items: center; background: #0d0618; box-shadow: 0 -4px var(--edge), 0 4px var(--edge), -4px 0 var(--edge), 4px 0 var(--edge), 0 14px 40px rgba(0, 0, 0, .55); }
.look img { width: 100%; max-height: 640px; object-fit: contain; image-rendering: pixelated; }
.words h3 { font-size: clamp(30px, 4vw, 44px); }
.words p { color: var(--soft); margin: 12px 0 22px; max-width: 40ch; }

/* The raid bosses */
.raidbosses { text-align: center; background: radial-gradient(ellipse 60% 40% at 50% 40%, #2a0f3b, transparent); }
.raidbosses .lead { margin-inline: auto; }
.row.three { grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
.row.three canvas { width: 100%; filter: drop-shadow(0 0 22px rgba(255, 90, 50, .26)); }
.row.three em { font-style: normal; color: #ff9d6c; font-weight: 700; }
.row.three span { max-width: 26ch; }

.facts ul { display: grid; grid-template-columns: 1fr 1fr; gap: 34px clamp(24px, 6vw, 80px); margin-top: 40px; max-width: 980px; }
.facts li { display: flex; gap: 20px; }
.facts canvas { flex: none; }
.facts li canvas { width: 60px; height: 60px; }
.facts h3 { font-size: 22px; }
.facts p { color: var(--soft); }

footer { display: grid; justify-items: center; gap: 26px; text-align: center; padding: 40px 16px 56px; background: linear-gradient(transparent, #2a0d12); }
footer img { width: min(520px, 90vw); }
footer p { color: var(--soft); max-width: 52ch; font-size: 15px; }

@media (max-width: 900px) {
  .select { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 320px; }
  .roster { grid-template-columns: repeat(5, 1fr); }
  .row { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .look { grid-template-columns: minmax(0, 1fr); }
  .words p { max-width: 60ch; }
}
@media (max-width: 600px) {
  .bar nav { display: none; }
  .bar { justify-content: space-between; }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 1fr 1fr; }
  .row.three { grid-template-columns: 1fr 1fr; }
  .bosses article { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .bosses article:nth-child(even) > button { order: 0; }
  .bosses article > div, .bosses article:nth-child(even) > div { text-align: center; justify-self: center; }
  .bosses article:nth-child(n) p { margin-inline: auto; }
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  #fight { object-position: 50% 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Polish: numbers, steps, frames, dividers and motion ---------- */
.numbers { padding-block: 26px !important; background: linear-gradient(90deg, transparent, rgba(181, 40, 29, .25), transparent), #120818; box-shadow: 0 -3px var(--edge), 0 3px var(--edge); }
.numbers ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; text-align: center; }
.numbers b { display: block; font: 700 clamp(30px, 4vw, 46px)/1 var(--title); color: var(--gold); text-shadow: 0 3px 0 #4d0c08, 0 0 18px rgba(246, 192, 79, .35); font-variant-numeric: tabular-nums; }
.numbers span { display: block; margin-top: 6px; font-size: 14px; color: var(--soft); }
/* A gold rule with a gem between the big sections */
main > section + section:not(.numbers)::before { content: ""; display: block; width: min(420px, 70%); height: 14px; margin: calc(-1 * clamp(28px, 5vw, 70px)) auto clamp(30px, 4vw, 50px); background: radial-gradient(circle, #ffd9f7 0 2px, #c04cff 3px 4px, var(--gold) 5px 6px, transparent 7px) center / 14px 14px no-repeat, linear-gradient(90deg, transparent, var(--edge) 20%, var(--gold) 50%, var(--edge) 80%, transparent) center / 100% 2px no-repeat; }
main > section + section.heroes::before { display: none; }
/* Sections rise into place once */
.rise > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .8, .3, 1); }
.rise.seen > * { opacity: 1; transform: none; }
.rise.seen > *:nth-child(2) { transition-delay: .08s; } .rise.seen > *:nth-child(3) { transition-delay: .16s; } .rise.seen > *:nth-child(4) { transition-delay: .24s; } .rise.seen > *:nth-child(5) { transition-delay: .32s; }
/* The gallery picture fades in */
#shot { opacity: 0; transform: scale(.985); transition: opacity .35s ease-out, transform .35s ease-out; }
#shot.in { opacity: 1; transform: none; }
.look figure { position: relative; }
.look figure::before, .look figure::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; z-index: 1; background: radial-gradient(circle, #ffd9f7 0 3px, #c04cff 4px 5px, var(--gold) 6px 8px, #6a4210 9px 10px, transparent 11px); }
.look figure::before { left: -12px; } .look figure::after { right: -12px; }
.tabs button { transition: transform .12s, border-color .12s, background-color .12s; }
.tabs button:hover { transform: translateY(-2px); }
/* Three steps */
.steps { text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(120, 50, 190, .22), transparent); }
.steps h2 canvas { margin-inline: auto; }
.steps ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin: 40px auto 36px !important; max-width: 1050px; }
.steps li { position: relative; display: grid; justify-items: center; gap: 8px; padding: 34px 20px 24px; background: linear-gradient(#24123c, #140a24); box-shadow: 0 0 0 2px #2a1708, 0 0 0 4px var(--edge), 0 0 0 5px #f6c04f66, 0 14px 30px rgba(0, 0, 0, .45); transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s; }
.steps li:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px #2a1708, 0 0 0 4px var(--gold), 0 0 26px rgba(246, 192, 79, .3), 0 18px 34px rgba(0, 0, 0, .5); }
.steps li > b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; display: grid; place-items: center; font: 700 20px var(--title); color: #fff3d4; background: linear-gradient(#c93525 50%, #a52318 50%); box-shadow: 0 0 0 2px #1a0d06, 0 0 0 3px var(--gold); }
.steps li canvas { width: 54px; height: 54px; }
.steps h3 { font-size: 24px; }
.steps p { color: var(--soft); max-width: 30ch; }
/* Facts and raid bosses in frames */
.facts li { padding: 16px 18px; background: linear-gradient(#1c0e30, #120818); box-shadow: 0 0 0 2px #2a1708, 0 0 0 3px var(--edge); transition: transform .2s, box-shadow .2s; }
.facts li:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px #2a1708, 0 0 0 3px var(--gold), 0 0 20px rgba(246, 192, 79, .2); }
.facts li:hover canvas { animation: bob .6s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-4px); } }
.row.three button { padding: 14px 10px 18px; background: radial-gradient(ellipse 70% 40% at 50% 45%, rgba(255, 90, 50, .14), transparent), linear-gradient(#1c0e30, #120818); box-shadow: 0 0 0 2px #2a1708, 0 0 0 3px var(--edge); transition: transform .2s, box-shadow .2s; }
.row.three button:hover { transform: translateY(-5px); box-shadow: 0 0 0 2px #2a1708, 0 0 0 3px var(--gold), 0 0 24px rgba(255, 110, 60, .3); }
.row.three em { display: inline-block; padding: 1px 10px; margin: 2px 0; background: rgba(255, 110, 60, .12); box-shadow: inset 0 0 0 1px rgba(255, 140, 90, .5); }
footer .foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
footer .foot a { color: var(--soft); text-decoration: none; }
footer .foot a:hover { color: var(--gold); }
footer .small { font-size: 13px; opacity: .8; }
@media (max-width: 900px) { .numbers ul { grid-template-columns: repeat(3, 1fr); row-gap: 22px; } .steps ol { grid-template-columns: minmax(0, 1fr); gap: 34px; } }
@media (prefers-reduced-motion: reduce) { .rise > *, #shot { opacity: 1 !important; transform: none !important; } .facts li:hover canvas { animation: none; } }

/* ---------- Skins ---------- */
.skins { text-align: center; background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(181, 40, 29, .22), transparent); }
.skins h2 canvas, .skins .lead { margin-inline: auto; }
.skinStageBox { position: relative; margin-top: 30px !important; box-shadow: 0 0 0 3px #1a0d06, 0 0 0 6px var(--edge), 0 0 0 7px var(--gold), 0 0 50px rgba(255, 60, 60, .25), 0 20px 40px rgba(0, 0, 0, .6); }
.skinStageBox::before, .skinStageBox::after { content: ""; position: absolute; top: -14px; z-index: 1; width: 26px; height: 26px; background: radial-gradient(circle, #ffd9f7 0 3px, #c04cff 4px 6px, var(--gold) 7px 9px, #6a4210 10px 11px, transparent 12px); }
.skinStageBox::before { left: -14px; } .skinStageBox::after { right: -14px; }
#skinStage { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.skinClasses { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px !important; }
.skinClasses button { padding: 8px 16px; min-height: 44px; font-weight: 600; background: #1b0e2c; border: 2px solid var(--edge); transition: transform .12s, border-color .12s; }
.skinClasses button:hover { transform: translateY(-2px); border-color: var(--gold); }
.skinClasses [aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a0608; }
.skinPair { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 22px; margin-top: 24px !important; }
.skinShow { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 14px 16px 16px; text-align: left; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--aura) 30%, transparent), transparent 60%), linear-gradient(170deg, #2e1850, #160a26); box-shadow: 0 0 0 2px #1a0d06, 0 0 0 4px var(--edge), 0 14px 30px rgba(0, 0, 0, .5); }
.skinShow.royal { box-shadow: 0 0 0 2px #1a0d06, 0 0 0 4px var(--gold), 0 0 30px color-mix(in srgb, var(--aura) 40%, transparent), 0 14px 30px rgba(0, 0, 0, .5); }
.skinShow canvas { width: 180px; height: 150px; }
.skinShow h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .5px; color: #ffe7a3; text-shadow: 0 2px 0 #000; }
.skinShow .tier { color: var(--soft); font-size: 14px; }
.skinShow.royal .tier { color: #ffd877; }
.skinShow ul { width: 100%; display: grid; gap: 5px; margin-top: 4px; }
.skinShow li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 46px; align-items: center; gap: 8px; font-size: 14px; }
.skinShow li span { color: var(--soft); }
.skinShow li i { height: 8px; background: #1d1230; position: relative; box-shadow: inset 0 0 0 1px #000; }
.skinShow li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c, #7fe3ab); box-shadow: 0 0 8px var(--c, #7fe3ab); }
.skinShow li b { text-align: right; color: var(--c, #7fe3ab); }
.sb-atk { --c: #ff7a5c; } .sb-hp { --c: #45d483; } .sb-def { --c: #6fb4ff; } .sb-atkSpeed { --c: #8fe6ff; } .sb-critChance { --c: #ffd257; } .sb-critDmg { --c: #ffb24a; } .sb-recover { --c: #c9a0ff; } .sb-heal { --c: #ff9ad0; }
.skinShow .special { width: 100%; margin-top: 4px; padding: 5px 8px; font-size: 13px; font-weight: 700; color: #ffe7a3; background: linear-gradient(90deg, rgba(246, 192, 79, .25), transparent); box-shadow: inset 3px 0 var(--gold); }
.skinShow .ribbon { position: absolute; top: 16px; right: -36px; width: 140px; padding: 3px 0; text-align: center; transform: rotate(40deg); font: 800 12px/16px "Segoe UI", system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #3a1a00; background: linear-gradient(#ffe48a, #e0a22e); box-shadow: 0 2px 0 #6a4210, 0 0 12px rgba(255, 200, 90, .6); }
.numbers ul { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 900px) { .numbers ul { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .skinPair { grid-template-columns: minmax(0, 1fr); } }
.skinPair { align-items: start; } .skinShow { align-content: start; }

/* ---------- The opening, dressed up ---------- */
.first .title { position: relative; }
.first .title::before { content: ""; position: absolute; left: 50%; top: 52%; z-index: -1; width: min(820px, 96vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(255, 170, 70, .35), rgba(181, 40, 29, .2) 40%, transparent 70%); animation: logoGlow 4s ease-in-out infinite; }
@keyframes logoGlow { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.06); } }
.title img { animation: logoFloat 6s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-8px); } }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers::before, .embers::after { content: ""; position: absolute; inset: -100% 0 0; background-image: radial-gradient(circle, #ffb24a 0 1.5px, transparent 2.5px), radial-gradient(circle, #ff5a3a 0 1px, transparent 2px), radial-gradient(circle, #c04cff 0 1.5px, transparent 2.5px), radial-gradient(circle, #fff3c4 0 1px, transparent 2px); background-size: 170px 210px, 230px 260px, 290px 330px, 130px 190px; background-position: 10px 20px, 80px 120px, 160px 40px, 40px 160px; animation: embersUp 18s linear infinite; opacity: .7; }
.embers::after { background-size: 260px 300px, 190px 240px, 330px 380px, 150px 220px; animation-duration: 27s; opacity: .45; }
@keyframes embersUp { to { transform: translateY(50%); } }
.call p { font-size: clamp(22px, 3.2vw, 36px); text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, .9); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.btn.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #ffe7a3; text-shadow: 0 2px 0 #000; background: linear-gradient(rgba(26, 10, 40, .85), rgba(12, 4, 22, .9)); box-shadow: 0 -4px var(--gold), 0 4px #8a5417, -4px 0 #d08f2c, 4px 0 #d08f2c, inset 0 4px rgba(246, 192, 79, .25), 0 10px 30px rgba(0, 0, 0, .6); }
.btn.ghost:hover { background: linear-gradient(rgba(60, 24, 90, .9), rgba(26, 10, 40, .95)); }
.playIcon { width: 0; height: 0; border-left: 16px solid #ffe7a3; border-top: 10px solid transparent; border-bottom: 10px solid transparent; filter: drop-shadow(0 2px 0 #000); }
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 15px; color: #f3e6ff; text-shadow: 0 1px 4px #000; }
.promises li::before { content: "\2726  "; color: var(--gold); }
.call small { opacity: .8; }
.scrollCue { position: absolute; left: 50%; bottom: 14px; width: 26px; height: 40px; transform: translateX(-50%); border: 2px solid rgba(255, 231, 163, .7); border-radius: 14px; }
.scrollCue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: #ffe7a3; border-radius: 2px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Founder collection */
.btn.founders-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: #f4e9ff; background: linear-gradient(#50405e 50%, #38283f 50%);
  box-shadow: 0 -4px #baa9c4, 0 4px #48394f, -4px 0 #84718d, 4px 0 #84718d, inset 0 3px #73627d, inset 0 -3px #281e30;
}
.btn.founders-link:hover { background: linear-gradient(#695375 50%, #503956 50%); }
.founders-link canvas { width: 24px; height: 24px; }
.founders-link em { font: 800 10px/1 "Segoe UI", system-ui, sans-serif; font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; margin-left: 2px; color: #2a1606; background: linear-gradient(#ffe7a3, #e0a94a); box-shadow: 0 0 10px #ffcf6a88; }
.founders {
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(60px, 8vw, 110px);
  background: radial-gradient(ellipse 60% 50% at 50% 60%, #3a1a4a66, transparent), linear-gradient(180deg, #0c0712, #1a1024 50%, #0c0712);
  border-block: 1px solid #433142; text-align: center;
}
.founders::before {
  content: ""; position: absolute; z-index: -2; inset: 0; opacity: .14; pointer-events: none;
  background: linear-gradient(0deg, #140a1c, transparent 80%), url(/raid/map.webp?v=5) center top / cover; image-rendering: pixelated;
}
/* slow light beams behind the cards */
.founders-glow { position: absolute; z-index: -1; left: 50%; top: 58%; width: 1400px; height: 1400px; translate: -50% -50%; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg, #ffd88a22 0 6deg, transparent 6deg 22deg); mask: radial-gradient(circle, #000 0 18%, transparent 60%); }
.founders-head h2 { font: bold clamp(34px, 4.6vw, 60px)/1.1 var(--title); color: var(--gold); filter: drop-shadow(0 0 18px #ffb54a66); }
.founders-head h2 canvas { margin-inline: auto; }
.founders-sub { max-width: 560px; margin: 10px auto 0; color: var(--soft); font-size: 16px; }
.founders-kicker, .founders-pick, .founders-tier {
  color: #e8c594; text-transform: uppercase; font: 700 11px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: .18em;
}
.founders-kicker { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.founders-kicker b { padding: 3px 9px; color: #2a1606; background: linear-gradient(#ffe7a3, #e0a94a); box-shadow: 0 0 14px #ffcf6a99; letter-spacing: .12em; }
.founders-kicker::before, .founders-kicker::after { content: ""; width: 38px; height: 1px; background: #82613e; }
.founders-packs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,2.2vw,30px); max-width: 1080px; margin-top: 54px; align-items: stretch; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.founders-pack {
  --thread: #a3def5; --silk: #4a8ab4; --fold: #142a40; --glow: #7fd6ff;
  position: relative; isolation: isolate; min-width: 0; padding: 4px; text-align: left; display: flex; flex-direction: column; background: #120d18;
  box-shadow: 0 0 0 1px #0007, 0 18px 40px #000a, 0 0 34px color-mix(in srgb, var(--glow) 22%, transparent);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s;
}
.founders-genesis { --thread: #d9b4ff; --silk: #9a5cff; --fold: #261343; --glow: #b46bff; }
.founders-legacy { --thread: #ffb0a0; --silk: #e0303a; --fold: #4a0e14; --glow: #ff3a3a; }
.founders-top { transform: translateY(-14px); }
/* a light that runs around the edge */
.founders-frame { position: absolute; inset: 0; z-index: -1; background: conic-gradient(from var(--ang), var(--silk), var(--glow) 10%, #fff 13%, var(--glow) 16%, var(--silk) 30%, var(--fold) 50%, var(--silk) 70%, var(--glow) 85%, var(--silk)); }
.founders-pack:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 0 1px #0007, 0 26px 50px #000c, 0 0 60px color-mix(in srgb, var(--glow) 50%, transparent); }
.founders-top:hover { transform: translateY(-22px) scale(1.02); }
.founders-scene { position: relative; overflow: hidden; background: #07040c; }
.founders-fx { display: block; width: 100%; height: auto; aspect-ratio: 320 / 230; image-rendering: pixelated; }
.founders-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, #ffffff30 48%, transparent 60%) -200% 0 / 250% 100% no-repeat; }
.founders-tier { position: absolute; top: 10px; left: 10px; padding: 3px 8px; font-size: 10px; color: var(--thread); background: #000a; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--thread) 60%, transparent); }
.founders-pick { position: absolute; top: 10px; right: 10px; padding: 4px 10px; color: #2a1606; background: linear-gradient(#ffe7a3, #e8a24a); box-shadow: 0 0 16px #ffb54aaa; font-size: 10px; letter-spacing: .1em; }
.founders-details { flex: 1; display: flex; flex-direction: column; position: relative; padding: 16px clamp(14px,1.8vw,22px) 18px; background: linear-gradient(160deg, color-mix(in srgb,var(--fold) 70%,#16111c), #120c18 75%); border-top: 2px solid var(--silk); }
.founders-pack h3 { color: #f5e8d9; font: 700 clamp(23px,2.5vw,31px)/1.15 var(--title); text-shadow: 0 0 18px color-mix(in srgb, var(--glow) 60%, transparent); }
.founders-genesis h3 { color: #f0dcff; }
.founders-legacy h3 { color: #ffe2a9; }
.founders-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.founders-price { font: 700 14px/1 "Segoe UI", system-ui, sans-serif; color: var(--thread); letter-spacing: .06em; white-space: nowrap; }
.founders-price b { font: 700 clamp(24px, 2.6vw, 30px)/1 var(--title); color: #fff; text-shadow: 0 0 14px var(--glow); }
.founders-daily li span { color: #fff3dc; }
.founders-rewards li span { line-height: 1.3; }
.founders-caption { margin: 12px 0 6px; color: var(--thread); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.founders-rewards { display: grid; gap: 5px; }
.founders-rewards li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #e8e1eb; }
.founders-rewards canvas { width: 20px; height: 20px; flex: none; image-rendering: pixelated; }
.founders-daily { margin-bottom: 16px; padding: 8px 10px; background: color-mix(in srgb, var(--silk) 14%, #0006); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--thread) 30%, transparent); }
.founders-soon { margin-top: auto !important; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 10px; font: 700 13px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--thread);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--silk) 35%, transparent), transparent); box-shadow: inset 0 1px color-mix(in srgb, var(--thread) 45%, transparent), inset 0 -1px color-mix(in srgb, var(--thread) 45%, transparent); }
.founders-soon i { width: 10px; height: 8px; position: relative; top: 2px; background: currentColor; border-radius: 1px; }
.founders-soon i::before { content: ""; position: absolute; left: 1px; bottom: 6px; width: 4px; height: 4px; border: 2px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.founders-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 3px 12px; margin-top: 34px; color: var(--soft); font-size: 14px; }
.founders-note strong { color: #e7d8c8; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .founders-frame { animation: founder-spin 4s linear infinite; }
  .founders-genesis .founders-frame { animation-duration: 3.2s; animation-direction: reverse; }
  .founders-legacy .founders-frame { animation-duration: 2.2s; }
  @keyframes founder-spin { to { --ang: 360deg; } }
  .founders-scene::after { animation: founder-shine 5s ease-in-out infinite; }
  .founders-genesis .founders-scene::after { animation-delay: 1.6s; }
  .founders-legacy .founders-scene::after { animation-delay: 3.2s; }
  @keyframes founder-shine { 0%, 70% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
  .founders-head h2 { animation: founder-title 3s ease-in-out infinite; }
  @keyframes founder-title { 50% { filter: drop-shadow(0 0 30px #ffc96acc) brightness(1.15); } }
  .founders-glow { animation: founder-rays 60s linear infinite; }
  @keyframes founder-rays { to { rotate: 360deg; } }
  .founders-kicker b, .founders-link em { animation: founder-badge 2.2s ease-in-out infinite; }
  @keyframes founder-badge { 50% { box-shadow: 0 0 22px #ffcf6a; filter: brightness(1.15); } }
}
@media (max-width: 720px) {
  .ctas { gap: 12px; }
  .ctas .btn { min-width: 0; padding: 11px 14px; font-size: 18px; }
  .founders-packs { grid-template-columns: 1fr; max-width: 400px; gap: 22px; margin-top: 26px; }
  .founders-top, .founders-top:hover { transform: none; }
  .founders-note { flex-direction: column; align-items: center; }
}

/* The trailer */
.trailer { text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(120, 50, 190, .25), transparent); }
.trailer h2 canvas { margin-inline: auto; }
.screen { position: relative; max-width: 1040px; margin-top: 30px !important; background: #000; box-shadow: 0 0 0 3px #1a0d06, 0 0 0 7px var(--edge), 0 0 0 8px var(--gold), 0 0 0 11px #2a1708, 0 0 60px rgba(150, 70, 230, .45), 0 24px 50px rgba(0, 0, 0, .7); }
.screen::before, .screen::after { content: ""; position: absolute; top: -18px; z-index: 2; width: 30px; height: 30px; background: radial-gradient(circle, #ffd9f7 0 3px, #c04cff 4px 7px, var(--gold) 8px 10px, #6a4210 11px 12px, transparent 13px); }
.screen::before { left: -18px; } .screen::after { right: -18px; }
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.bigPlay { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201, 53, 37, .95), rgba(120, 20, 14, .95)); box-shadow: 0 0 0 4px var(--gold), 0 0 0 8px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 90, 50, .7); transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .18s; animation: playPulse 2.2s ease-in-out infinite; }
.bigPlay span { position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -12px; border-left: 40px solid #fff3d4; border-top: 22px solid transparent; border-bottom: 22px solid transparent; filter: drop-shadow(0 3px 0 #4d0c08); }
.bigPlay:hover { transform: translate(-50%, -50%) scale(1.08); }
@keyframes playPulse { 50% { box-shadow: 0 0 0 4px var(--gold), 0 0 0 14px rgba(246, 192, 79, .18), 0 0 60px rgba(255, 90, 50, .9); } }
.bigPlay[hidden] { display: none; }
@media (max-width: 600px) { .bigPlay { width: 76px; height: 76px; } .bigPlay span { margin: -15px 0 0 -8px; border-left-width: 28px; border-top-width: 15px; border-bottom-width: 15px; } .scrollCue { display: none; } }
@media (prefers-reduced-motion: reduce) { .first .title::before, .title img, .embers::before, .embers::after, .scrollCue span, .bigPlay { animation: none; } }
.first .call { padding-bottom: clamp(58px, 9vh, 90px); }

/* the colour word of a chat look, in its own gradient */
.chatWord { background: linear-gradient(90deg, var(--a), var(--b) 55%, var(--a)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--b); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--b) 60%, transparent)); }
.rborn { color: #ffd36a; text-shadow: 0 0 10px #ffb54a88; }
@media (prefers-reduced-motion: no-preference) { .chatWord { animation: chatFlow 3s linear infinite; } @keyframes chatFlow { to { background-position: -200% 0; } } }

/* Raid Chests */
.chests { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(56px, 7vw, 96px);
  background: radial-gradient(ellipse 50% 40% at 50% 35%, #2a1440aa, transparent), linear-gradient(180deg, #0c0712, #140b1e 60%, #0c0712); border-bottom: 1px solid #433142; }
.chests-head h2 { font: bold clamp(32px, 4.2vw, 54px)/1.1 var(--title); color: var(--gold); filter: drop-shadow(0 0 16px #ffb54a55); }
.chests-head h2 canvas { margin-inline: auto; }
.chests-sub { max-width: 620px; margin: 10px auto 0; color: var(--soft); font-size: 16px; }
.chests-sub b { color: #ffe7a3; }
.chests-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); max-width: 1080px; margin: 40px auto 0; text-align: left; }
.chest-card { position: relative; isolation: isolate; overflow: hidden; padding: 0 0 16px; cursor: pointer; outline: none;
  background: linear-gradient(#170b26, #0b0516); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, #000), 0 16px 36px #000a, 0 0 30px color-mix(in srgb, var(--c) 18%, transparent);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s; }
.chest-card:hover, .chest-card:focus-visible { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--c), 0 22px 44px #000c, 0 0 50px color-mix(in srgb, var(--c) 45%, transparent); }
.chest-show { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--c) 35%, transparent), transparent 62%), #07040c; border-bottom: 2px solid color-mix(in srgb, var(--c) 60%, #000); }
.chest-rays { position: absolute; left: 50%; top: 55%; width: 420px; height: 420px; translate: -50% -50%; z-index: -1; opacity: .75;
  background: repeating-conic-gradient(color-mix(in srgb, var(--c) 32%, transparent) 0 8deg, transparent 8deg 24deg); mask: radial-gradient(circle, #000 0 14%, transparent 55%); }
.chest-art .chestSvg { width: 150px; height: 120px; image-rendering: pixelated; filter: drop-shadow(0 8px 0 #0009) drop-shadow(0 0 16px color-mix(in srgb, var(--c) 70%, transparent)); }
.chest-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.chest-burst i { position: absolute; width: 5px; height: 5px; background: #fff; box-shadow: 0 0 8px var(--c); opacity: 0; }
.chest-burst i:nth-child(2n) { background: var(--c); }
.chest-card.open .chest-show::after { content: ""; position: absolute; left: 50%; bottom: 46%; width: 70px; height: 200px; translate: -50% 0; background: linear-gradient(to top, var(--c), transparent); filter: blur(6px); opacity: .85; }
.chest-card h3 { margin: 14px 18px 4px; font: 700 clamp(22px, 2.3vw, 28px)/1.15 var(--title); color: var(--c); text-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
.chest-key { display: flex; align-items: center; gap: 8px; margin: 0 18px 10px; font-size: 13px; color: var(--soft); }
.chest-key b { color: #f3eaff; }
.keySvg { width: 30px; height: 15px; flex: none; image-rendering: pixelated; filter: drop-shadow(0 0 4px currentColor); }
.chest-drops { display: grid; gap: 3px; margin: 0 14px; padding: 8px 10px; background: #0007; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.chest-drops li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 3px 4px; font-size: 13px; color: #e8e1eb; }
.chest-drops li i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); max-width: 100%; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 28%, transparent), transparent); }
.chest-drops li { isolation: isolate; }
.chest-drops li b { color: var(--c); font-variant-numeric: tabular-nums; }
.chest-drops .d-summon span, .chest-drops .d-sure span { color: #ffe7a3; }
.chest-drops .d-sure span::after { content: " ✦"; color: var(--c); }
/* the pitch: Founders get keys every day */
.chests-pitch { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 26px; align-items: center; max-width: 1080px; margin: 44px auto 0; padding: clamp(18px, 2.4vw, 30px); text-align: left;
  background: radial-gradient(ellipse at 0% 0%, #ff4a3a22, transparent 55%), radial-gradient(ellipse at 100% 100%, #9a5cff22, transparent 55%), linear-gradient(135deg, #1e1028, #120a1a);
  box-shadow: inset 0 0 0 1px #ffcf6a55, 0 0 0 3px #1a0d06, 0 0 0 4px #b8862a, 0 18px 40px #000a, 0 0 40px #ffb54a22; }
.pitch-kicker { font: 700 11px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #ffcf6a; }
.pitch-text h3 { margin: 4px 0 8px; font: 700 clamp(24px, 2.8vw, 34px)/1.15 var(--title); color: #fff3dc; text-shadow: 0 0 18px #ffb54a66; }
.pitch-text p { color: var(--soft); font-size: 15px; }
.pitch-text .btn { margin-top: 16px; }
.pitch-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.pitch-packs > li { position: relative; display: grid; align-content: start; gap: 8px; padding: 12px; background: #0008; box-shadow: inset 0 0 0 1px var(--pc); }
.pp-og { --pc: #4a8ab4; } .pp-genesis { --pc: #9a5cff; } .pp-legacy { --pc: #e0303a; box-shadow: inset 0 0 0 2px var(--pc), 0 0 24px #ff3a3a55 !important; }
.pp-name { font: 700 15px/1.2 var(--title); color: color-mix(in srgb, var(--pc) 45%, #fff); }
.pitch-packs ul { display: grid; gap: 4px; }
.pitch-packs ul li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #e8e1eb; }
.pitch-packs ul li b { color: #fff; }
.kc { display: inline-flex; color: var(--c); }
.pp-best { justify-self: start; margin-top: 2px; padding: 3px 8px; font: 800 10px/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #2a0606; background: linear-gradient(#ffd0a0, #ff5a3a); box-shadow: 0 0 12px #ff5a3a88; }
@media (prefers-reduced-motion: no-preference) {
  .chest-rays { animation: founder-rays 18s linear infinite; }
  .chest-art .chestSvg { animation: chestBob 2.6s ease-in-out infinite; }
  .chest-card:nth-child(2) .chestSvg { animation-delay: -.8s; } .chest-card:nth-child(3) .chestSvg { animation-delay: -1.6s; }
  @keyframes chestBob { 50% { transform: translateY(-5px); } }
  .chest-card.open .chest-art .chestSvg { animation: chestPop .5s cubic-bezier(.2, 1.8, .4, 1); }
  @keyframes chestPop { from { transform: scale(1.25); filter: brightness(2.5) drop-shadow(0 0 40px #fff); } }
  .chest-card.open .chest-burst i { animation: chestFly .9s ease-out forwards; }
  @keyframes chestFly { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-110px); } }
  .chest-card.open .chest-show::after { animation: chestBeam .8s ease-out; }
  @keyframes chestBeam { from { height: 0; } }
  .pp-best { animation: founder-badge 2.2s ease-in-out infinite; }
}
@media (max-width: 860px) { .chests-pitch { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .chests-row { grid-template-columns: 1fr; max-width: 400px; } .pitch-packs { grid-template-columns: 1fr; } }

/* Founder facts: sold before launch only, and where the SOL goes */
.founders-kicker b.last { background: linear-gradient(#ffb0a0, #e0303a); color: #2a0606; box-shadow: 0 0 14px #ff4a3a88; }
.founders-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 34px auto 0; text-align: left; }
.ff { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: linear-gradient(135deg, #1e1028, #120a1a); box-shadow: inset 0 0 0 1px var(--fc), 0 12px 28px #0008; }
.ff-time { --fc: #e0303a88; } .ff-token { --fc: #ffcf6a88; }
.ff-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; color: #fff3dc; background: radial-gradient(circle, color-mix(in srgb, var(--fc) 70%, transparent), transparent 70%); }
.ff h3 { font: 700 19px/1.2 var(--title); color: #ffe7a3; margin-bottom: 4px; }
.ff p { font-size: 14px; color: var(--soft); }
.founders-legal { max-width: 760px; margin: 12px auto 0; font-size: 12px; color: #8f82a3; }
@media (max-width: 720px) { .founders-facts { grid-template-columns: 1fr; max-width: 400px; } }

/* ---------- Clan War preview ---------- */
.clanwar { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(56px, 7vw, 100px);
  background: radial-gradient(ellipse 45% 50% at 20% 50%, #1d3a7a44, transparent), radial-gradient(ellipse 45% 50% at 80% 50%, #7a1d2a44, transparent), linear-gradient(180deg, #0c0712, #150b22 50%, #0c0712);
  border-bottom: 1px solid #433142; }
.clanwar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: url(/raid/map.webp?v=5) center / cover; image-rendering: pixelated; }
.cw-head h2 { font: bold clamp(34px, 4.6vw, 60px)/1.1 var(--title); color: var(--gold); filter: drop-shadow(0 0 18px #ffb54a55); }
.cw-head h2 canvas { margin-inline: auto; }
.cw-sub { max-width: 640px; margin: 10px auto 0; color: var(--soft); font-size: 16px; }
.cw-stage { max-width: 980px; margin: 34px auto 0; perspective: 1400px; }
.cw-board { position: relative; padding: 12px; text-align: left; transform: rotateX(4deg); transform-origin: 50% 0;
  background: linear-gradient(#1c0d30, #120822); box-shadow: inset 0 0 0 2px #3d2560, inset 0 0 0 4px #160a26, inset 0 0 0 5px #5a3a8a, 0 0 0 3px #0b0516, 0 30px 60px #000c, 0 0 60px #6a3ad633; }
.cw-board::before, .cw-board::after { content: ""; position: absolute; top: -22px; width: 26px; height: 40px; background: radial-gradient(ellipse at 50% 35%, #fff 0 3px, #d08aff 4px 7px, transparent 8px), linear-gradient(transparent 55%, #5a3a8a 55% 62%, transparent 62%); filter: drop-shadow(0 0 10px #c04cff); }
.cw-board::before { left: 28px; } .cw-board::after { right: 28px; }
.cw-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%; margin: -2px auto 12px; padding: 8px 16px; background: #0d0619; box-shadow: inset 0 0 0 2px #4a2f6e; color: #e8e1eb; }
.cw-title { font: 700 24px/1.1 var(--title); color: #fff3dc; }
.cw-phase { padding: 3px 10px; font-weight: 700; font-size: 13px; color: #fff; background: #6a2fb8; box-shadow: inset 0 0 0 1px #c08aff; }
.cw-sep { width: 1px; height: 22px; background: #4a2f6e; }
.cw-top b, .cw-side b { color: #fff3dc; }
.cw-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 6px 12px 14px; }
.cw-side { display: flex; align-items: center; gap: 14px; } .cw-side.theirs { justify-content: flex-end; text-align: right; }
.cw-side h3 { font: 700 clamp(18px, 2.4vw, 26px)/1.1 var(--title); color: #fff3dc; text-transform: uppercase; letter-spacing: .04em; }
.cw-side p { font-size: 14px; color: #cbb9e0; }
.cw-banner { position: relative; display: grid; place-items: center; width: 52px; height: 66px; font-size: 13px; color: #fff; text-shadow: 0 1px 0 #000; clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); }
.cw-banner.ours { background: linear-gradient(#3a7bd8, #1d4a9e); } .cw-banner.theirs { background: linear-gradient(#d8343a, #8a1620); }
.cw-score { display: flex; align-items: center; gap: 12px; padding: 8px 24px; background: #0b0516; box-shadow: inset 0 0 0 2px #5a3a8a, 0 0 0 3px #0b0516, 0 0 24px #6a3ad655; }
.cw-score b { font: 700 clamp(34px, 4.6vw, 50px)/1 var(--title); color: #fff3dc; display: inline-block; }
.cw-score b.pop { animation: cwPop .6s cubic-bezier(.2, 1.8, .4, 1); color: #8dff9a; }
@keyframes cwPop { from { transform: scale(1.8); text-shadow: 0 0 20px #8dff9a; } }
.cw-score i { font-style: normal; color: #8f7aa8; font-size: 28px; }
.cw-rows { display: grid; gap: 6px; }
.cw-pair { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 6px; }
.cw-x { text-align: center; color: #8f7aa8; font-size: 18px; }
.cw-row { display: grid; grid-template-columns: 38px 48px 1fr auto; align-items: center; gap: 10px; min-height: 60px; padding: 6px 12px; background: #1a0d2c; box-shadow: inset 0 0 0 1px #3d2560; transition: box-shadow .3s, background .3s, opacity .4s; }
.cw-row.me { box-shadow: inset 0 0 0 2px #b77af2, 0 0 16px #8a3ad688; background: #2a1444; }
.cw-row.act { box-shadow: inset 0 0 0 2px #7fc0ff, 0 0 22px #3a7bd8aa; background: #16264a; }
.cw-row.sel { box-shadow: inset 0 0 0 2px #ff7a7a, 0 0 22px #d8343aaa; background: #3a1420; }
.cw-row.down { opacity: .62; }
.cw-rank { font: 700 18px/1 var(--title); color: #fff3dc; }
.cw-ava { width: 46px; height: 46px; image-rendering: pixelated; background: #0b0516; box-shadow: inset 0 0 0 2px var(--b), 0 0 0 1px #000; }
.cw-ava.ours { --b: #3a7bd8; } .cw-ava.theirs { --b: #d8343a; }
.cw-who { display: grid; } .cw-who b { font: 700 17px/1.15 var(--title); color: #fff3dc; } .cw-who small { color: #cbb9e0; font-size: 13px; }
.cw-chip { padding: 4px 10px; font-size: 12px; font-weight: 700; color: #cbb9e0; background: #24163a; box-shadow: inset 0 0 0 1px #5a4a7a; white-space: nowrap; transition: all .3s; }
.cw-chip.you, .cw-chip.sel { color: #fff; background: #5a2a9a; box-shadow: inset 0 0 0 1px #c08aff; }
.cw-chip.won { color: #8dff9a; background: #12301a; box-shadow: inset 0 0 0 1px #3fa04e; }
.cw-chip.lost { color: #ffb0b0; background: #3a1016; box-shadow: inset 0 0 0 1px #8a1620; }
.cw-chip.hit { color: #ffd0a0; background: #3a2010; box-shadow: inset 0 0 0 1px #b8742a; }
.cw-chip.down { color: #ffb0b0; background: #3a1016; box-shadow: inset 0 0 0 1px #c0392b; }
.cw-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; padding: 10px 14px; background: #0d0619; box-shadow: inset 0 0 0 2px #4a2f6e; color: #e8e1eb; font-size: 17px; }
.cw-bar b { font-family: var(--title); color: #fff3dc; }
.cw-bar .cw-ava { width: 38px; height: 38px; }
.cw-btn { padding: 10px 22px; font-size: 18px; background: linear-gradient(#9a4ae0 50%, #7a2ac8 50%); box-shadow: 0 -4px #d6a8ff, 0 4px #4a1a80, -4px 0 #8a4ad0, 4px 0 #8a4ad0, 0 0 20px #9a4ae088; }
.cw-clash { position: absolute; left: 50%; top: 50%; z-index: 3; font-size: 40px; color: #fff; opacity: 0; translate: -50% -50%; pointer-events: none; text-shadow: 0 0 10px #ffd36a, 0 0 24px #ff7a2a; }
.cw-clash.go { animation: cwClash .7s ease-out; }
@keyframes cwClash { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 30% { opacity: 1; transform: scale(1.6) rotate(0); } 100% { opacity: 0; transform: scale(2.2); } }
.cw-cap { margin-top: 14px; font-size: 13px; color: #8f82a3; }
.cw-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 980px; margin: 34px auto 0; }
.cw-day { display: grid; gap: 2px; padding: 10px 6px; background: #160a26; box-shadow: inset 0 0 0 1px #3d2560; }
.cw-day span { font-size: 11px; color: #8f82a3; letter-spacing: .1em; text-transform: uppercase; }
.cw-day b { font: 700 17px/1.2 var(--title); }
.cw-day small { font-size: 12px; color: #cbb9e0; }
.cw-day.prep b { color: #7fc0ff; } .cw-day.battle b { color: #ff8a8a; } .cw-day.battle { box-shadow: inset 0 0 0 1px #8a1620, 0 0 14px #d8343a33; }
.cw-day.rewards { background: linear-gradient(#3a2a08, #1d1404); box-shadow: inset 0 0 0 1px #ffcf6a, 0 0 18px #ffb54a44; } .cw-day.rewards b { color: #ffd36a; }
.cw-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 26px auto 0; text-align: left; }
.cw-feats li { display: flex; gap: 12px; padding: 14px; background: linear-gradient(135deg, #1e1028, #120a1a); box-shadow: inset 0 0 0 1px #4a2f6e, 0 10px 24px #0008; }
.cw-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; background: radial-gradient(circle, #6a3aa8, transparent 70%); }
.cw-feats h3 { font: 700 18px/1.2 var(--title); color: #ffe7a3; margin-bottom: 4px; }
.cw-feats p { font-size: 14px; color: var(--soft); }
@media (max-width: 900px) { .cw-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cw-board { transform: none; padding: 8px; }
  .cw-vs { grid-template-columns: 1fr; text-align: center; } .cw-side, .cw-side.theirs { justify-content: center; }
  .cw-pair { grid-template-columns: 1fr 1fr; gap: 4px; } .cw-x { display: none; }
  .cw-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 4px 8px; padding: 6px; min-height: 0; }
  .cw-rank { display: none; } .cw-who b { font-size: 14px; } .cw-who small { font-size: 11px; }
  .cw-chip { grid-column: 1 / -1; justify-self: start; font-size: 11px; padding: 2px 8px; }
  .cw-ava { width: 40px; height: 40px; }
  .cw-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cw-feats { grid-template-columns: 1fr; }
  .cw-bar { font-size: 15px; }
}

.coinIco { width: 20px; height: 20px; flex: none; image-rendering: auto; filter: drop-shadow(0 0 4px #ffb54a88); }

/* ---------- Clans ---------- */
.clans { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(56px, 7vw, 100px);
  background: radial-gradient(ellipse 50% 45% at 50% 20%, #3a1d5c88, transparent), linear-gradient(180deg, #0c0712, #160b24 50%, #0c0712); border-bottom: 1px solid #433142; }
.cl-head h2 { font: bold clamp(34px, 4.6vw, 60px)/1.1 var(--title); color: var(--gold); filter: drop-shadow(0 0 18px #ffb54a55); }
.cl-head h2 canvas { margin-inline: auto; }
.cl-sub { max-width: 660px; margin: 10px auto 0; color: var(--soft); font-size: 16px; }
.cl-banners { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 26px); max-width: 1080px; margin: 36px auto 0; }
.cl-flag { display: grid; justify-items: center; gap: 8px; margin: 0; transform-origin: 50% 0; }
.cl-flag .clanBanner { width: 84px; height: 118px; image-rendering: pixelated; filter: drop-shadow(0 8px 0 #0008) drop-shadow(0 0 14px #0009); transition: transform .25s; }
.cl-flag:hover .clanBanner { transform: translateY(-6px) scale(1.06); filter: drop-shadow(0 8px 0 #0008) drop-shadow(0 0 18px #ffcf6a88); }
.cl-flag figcaption { display: grid; font-size: 13px; color: #e8e1eb; } .cl-flag figcaption b { color: #ffd36a; } .cl-flag small { color: #a99bb8; }
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1080px; margin: 40px auto 0; text-align: left; }
.cl-card { display: flex; gap: 14px; padding: 18px; background: linear-gradient(135deg, #1e1028, #120a1a); box-shadow: inset 0 0 0 1px #4a2f6e, 0 12px 28px #0008; }
.cl-card.wide { grid-column: 1 / -1; }
.cl-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle, #6a3aa8, transparent 70%); }
.cl-card h3 { font: 700 21px/1.2 var(--title); color: #ffe7a3; margin-bottom: 4px; }
.cl-card p { font-size: 15px; color: var(--soft); }
.cl-perms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cl-perms li { padding: 3px 9px; font-size: 12px; color: #e8c7ff; background: #2a1444; box-shadow: inset 0 0 0 1px #7a4ac8; }
.cl-gifts { display: grid; gap: 4px; margin-top: 10px; } .cl-gifts li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; } .cl-gifts b { min-width: 60px; color: #fff3dc; } .cl-gifts span { color: #cbb9e0; }
.cl-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; max-width: 560px; margin-top: 14px; }
.cl-node { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #160a26; box-shadow: inset 0 0 0 1px #5a3a8a; }
.cl-node svg { width: 28px; height: 28px; flex: none; image-rendering: pixelated; filter: drop-shadow(0 0 4px #b77af2); }
.cl-node small { font-size: 12px; color: #e8e1eb; line-height: 1.2; }
.cl-node:nth-child(16) { grid-column: 2 !important; box-shadow: inset 0 0 0 1px #ffcf6a, 0 0 14px #ffcf6a55; }
@media (prefers-reduced-motion: no-preference) {
  .cl-flag { animation: clSway 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s); }
  @keyframes clSway { 50% { transform: rotate(2deg) skewX(-1deg); } }
}
/* ---------- $RBORN ---------- */
.rborn { position: relative; overflow: hidden; padding-block: clamp(56px, 7vw, 100px); background: radial-gradient(ellipse 40% 60% at 25% 50%, #ffb54a26, transparent), linear-gradient(180deg, #0c0712, #1a1008 55%, #0c0712); border-bottom: 1px solid #433142; }
.rb-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; max-width: 1080px; margin: 0 auto; }
.rb-coin { position: relative; display: grid; place-items: center; }
.rb-coin img { position: relative; width: min(280px, 70vw); height: auto; filter: drop-shadow(0 14px 0 #0008) drop-shadow(0 0 34px #ffb54a88); }
.rb-glow { position: absolute; width: 420px; height: 420px; max-width: 100%; border-radius: 50%; background: repeating-conic-gradient(#ffd36a33 0 8deg, transparent 8deg 22deg); mask: radial-gradient(circle, #000 0 20%, transparent 65%); }
.rb-text h2 { font: bold clamp(40px, 5.4vw, 72px)/1 var(--title); color: var(--gold); filter: drop-shadow(0 0 22px #ffb54a77); }
.rb-text h2 canvas { margin-inline: 0; }
.rb-text .founders-kicker { justify-content: flex-start; }
.rb-sub { margin-top: 10px; color: var(--soft); font-size: 17px; }
.rb-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.rb-cols > div { padding: 14px 16px; background: #0006; box-shadow: inset 0 0 0 1px #8a6a1a88; }
.rb-cols h3 { font: 700 19px/1.2 var(--title); color: #ffe7a3; margin-bottom: 6px; }
.rb-list { display: grid; gap: 4px; } .rb-list li { position: relative; padding-left: 18px; font-size: 14px; color: #e8e1eb; }
.rb-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 10px; height: 10px; background: url(/raid/rborn-64.webp) center / contain no-repeat; }
.rb-note { margin-top: 12px; color: #a99bb8; }
@media (prefers-reduced-motion: no-preference) {
  .rb-glow { animation: founder-rays 30s linear infinite; }
  .rb-coin img { animation: rbFloat 3.6s ease-in-out infinite; }
  @keyframes rbFloat { 50% { transform: translateY(-10px) rotate(-3deg); } }
}
@media (max-width: 760px) { .cl-grid, .rb-wrap, .rb-cols { grid-template-columns: 1fr; } .cl-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-node { grid-row: auto !important; grid-column: auto !important; } .rb-text { text-align: center; } .rb-text .founders-kicker { justify-content: center; } }

header nav a, .bar nav a { white-space: nowrap; }
