:root {
  --ground: #03080d; --deep: #061520; --ink: #eafff9; --mute: #9fc3c0; --dim: #5d827f;
  --teal: #1de9c4; --lime: #b8ff5a; --gold: #ffb547; --sky: #3fc8ff; --violet: #8d6bff;
  --glow: rgba(29, 233, 196, .55); --line: rgba(160, 255, 230, .12);
  --panel: linear-gradient(180deg, rgba(14, 44, 52, .62), rgba(6, 22, 30, .78));
  --title: 'Titan One', 'Figtree', sans-serif; --body: 'Figtree', system-ui, sans-serif; --mono: 'Azeret Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: none; overflow-x: clip; scroll-behavior: smooth; }
html::-webkit-scrollbar { display: none; }
body { background: var(--ground); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; position: relative; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, .h, .big { font-family: var(--title); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; text-wrap: balance; }
p { text-wrap: pretty; }
.hl { background: linear-gradient(92deg, var(--teal), var(--lime) 70%, #f4ffb0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 22px rgba(29, 233, 196, .35)); }
.tk { font-family: var(--mono); font-weight: 700; color: var(--lime); font-size: .92em; }
.micro { font-size: 13px; color: var(--dim); }

/* background: deep night, two star layers drifting up, aurora breathing */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(120% 70% at 50% -10%, #0b2a33 0%, var(--deep) 40%, var(--ground) 80%); }
.stars { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 900px); background-repeat: repeat; background-size: 900px 900px; animation: rise 140s linear infinite, twinkle 5s ease-in-out infinite alternate; }
.s1 { background-image: radial-gradient(1.2px 1.2px at 40px 60px, #fff, transparent), radial-gradient(1px 1px at 210px 330px, #cffff2, transparent), radial-gradient(1.4px 1.4px at 520px 120px, #fff, transparent), radial-gradient(1px 1px at 700px 610px, #bdf, transparent), radial-gradient(1px 1px at 330px 780px, #fff, transparent), radial-gradient(1.3px 1.3px at 830px 420px, #e9fff9, transparent), radial-gradient(1px 1px at 120px 500px, #fff, transparent), radial-gradient(1px 1px at 610px 860px, #cfe, transparent); opacity: .7; }
.s2 { background-image: radial-gradient(1px 1px at 90px 200px, #fff, transparent), radial-gradient(1.6px 1.6px at 400px 450px, #eafff5, transparent), radial-gradient(1px 1px at 760px 90px, #fff, transparent), radial-gradient(1px 1px at 280px 640px, #9ff, transparent), radial-gradient(1.2px 1.2px at 660px 300px, #fff, transparent); animation-duration: 220s, 7s; animation-delay: 0s, -3s; opacity: .55; }
.aurora { position: absolute; inset: -20% -10% auto; height: 80vh; background: radial-gradient(40% 50% at 30% 30%, rgba(29, 233, 196, .16), transparent 70%), radial-gradient(35% 45% at 72% 20%, rgba(141, 107, 255, .14), transparent 70%), radial-gradient(30% 40% at 55% 45%, rgba(184, 255, 90, .07), transparent 70%); filter: blur(10px); animation: breathe 14s ease-in-out infinite alternate; }
@keyframes rise { to { transform: translateY(-900px); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }
@keyframes breathe { from { transform: translateX(-3%) scale(1); opacity: .8; } to { transform: translateX(3%) scale(1.08); opacity: 1; } }

/* the trail: one glowing line through the whole page, lit as you scroll */
.trail { position: absolute; left: 0; top: 0; width: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.trail path { fill: none; stroke-linecap: round; }
.trail__dim { stroke: rgba(160, 255, 230, .22); stroke-width: 1.6; }
.trail__lit { stroke: var(--teal); stroke-width: 2.6; filter: drop-shadow(0 0 6px var(--teal)) drop-shadow(0 0 14px rgba(29, 233, 196, .5)); }
.trail__dot { fill: #fff; filter: drop-shadow(0 0 6px var(--teal)) drop-shadow(0 0 16px var(--teal)); }
main, .top, .foot { position: relative; z-index: 2; }

/* header */
.top { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100% - 32px)); height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 12px 0 20px; border-radius: 18px; background: rgba(6, 22, 30, .55); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%); z-index: 50; transition: transform .5s var(--ease), background .3s; }
.top.is-hid { transform: translate(-50%, -110px); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--title); font-size: 21px; text-transform: uppercase; }
.logo img { width: 32px; height: 32px; }
.logo span { background: linear-gradient(180deg, #fff, #bff 60%, var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 22px; margin: 0 auto; font-size: 14px; font-weight: 600; color: var(--mute); }
.nav a { position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .35s var(--ease); box-shadow: 0 0 10px var(--teal); }
.nav a:hover, .nav a.on { color: #fff; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.top__r { display: flex; align-items: center; gap: 14px; }
.bal { font-size: 12px; color: var(--mute); white-space: nowrap; }
.bal b { font-family: var(--mono); color: var(--lime); font-size: 13px; }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 23px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 30px; border-radius: 100px; font: 400 16px/1 var(--title); text-transform: uppercase; letter-spacing: .01em; color: #04201b; background: linear-gradient(180deg, #6ff7dc, var(--teal) 55%, #12b99b); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 30px -8px rgba(29, 233, 196, .7), 0 0 40px -10px var(--teal); transition: transform .25s var(--ease), box-shadow .3s, filter .3s; overflow: hidden; white-space: nowrap; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 16px 40px -8px rgba(29, 233, 196, .9), 0 0 60px -10px var(--teal); }
.btn:hover::after { animation: sheen 1s var(--ease); }
.btn:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; transform: none; }
.btn b { font-family: var(--mono); font-weight: 700; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn--ghost { color: #fff; background: rgba(29, 233, 196, .08); box-shadow: 0 0 0 1px rgba(29, 233, 196, .45) inset; }
.btn--ghost:hover { background: rgba(29, 233, 196, .16); box-shadow: 0 0 0 1px var(--teal) inset, 0 0 30px -8px var(--teal); }
@keyframes sheen { to { transform: translateX(120%); } }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 140px; overflow: hidden; }
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: .9; animation: drift 30s ease-in-out infinite alternate; }
.hero__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 8, 13, .95) 0%, rgba(3, 8, 13, .7) 35%, rgba(3, 8, 13, .1) 65%, rgba(3, 8, 13, .35) 100%), linear-gradient(180deg, rgba(3, 8, 13, .4) 0%, transparent 25%, transparent 60%, var(--ground) 100%); }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
.hero__in { width: min(1240px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--lime); padding: 7px 14px; border-radius: 100px; background: rgba(184, 255, 90, .08); box-shadow: 0 0 0 1px rgba(184, 255, 90, .3) inset; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 4.3vw, 66px); margin-bottom: 24px; }
.lead { font-size: 17px; color: #c9e6e2; max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { list-style: none; display: flex; gap: 18px; margin-top: 26px; font-size: 13px; color: var(--mute); }
.chips li::before { content: '✦'; color: var(--teal); margin-right: 6px; text-shadow: 0 0 8px var(--teal); }
.hero__fan { position: relative; height: 560px; perspective: 1400px; }
.hero__fan .card { position: absolute; left: 50%; top: 50%; width: 236px; transition: transform .8s var(--ease); }
.hero__fan .card:nth-child(1) { transform: translate(-118%, -46%) rotate(-11deg); }
.hero__fan .card:nth-child(2) { transform: translate(-50%, -54%) scale(1.08); z-index: 2; }
.hero__fan .card:nth-child(3) { transform: translate(18%, -46%) rotate(11deg); }
.hero__fan:hover .card:nth-child(1) { transform: translate(-128%, -48%) rotate(-14deg); }
.hero__fan:hover .card:nth-child(3) { transform: translate(28%, -48%) rotate(14deg); }
.note { position: absolute; z-index: 4; font-size: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(6, 22, 30, .78); border: 1px solid var(--line); backdrop-filter: blur(8px); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.note b { color: #fff; } .note i { font-style: normal; color: var(--lime); font-family: var(--mono); margin-left: 4px; }
.note--a { top: 4%; left: 18%; } .note--b { bottom: 8%; left: 30%; animation-delay: -2s; } .note--c { bottom: 18%; right: 0; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero__start { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: #fff; padding-bottom: 34px; }

/* card */
.card { --rc: #5fd3ff; aspect-ratio: 5 / 7.4; border-radius: 16px; padding: 7px; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 85%, #fff), var(--rc) 40%, color-mix(in srgb, var(--rc) 60%, #000)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 24px 50px -16px rgba(0, 0, 0, .8), 0 0 40px -10px var(--rc); position: relative; user-select: none; transform-style: preserve-3d; }
.card__in { position: relative; height: 100%; border-radius: 11px; overflow: hidden; background: #071820; display: flex; flex-direction: column; }
.card__art { position: relative; flex: 1 1 auto; min-height: 0; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--realm) 45%, #0b2630), #061118); }
.card__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card__name { position: absolute; left: 8px; right: 8px; top: 7px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font: 400 14px/1 var(--title); text-transform: uppercase; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.card__rar { font: 800 8.5px/1 var(--body); letter-spacing: .06em; padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: var(--rc); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent) inset; }
.card__mana { position: absolute; left: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; font: 700 13px/1 var(--mono); color: #fff; background: radial-gradient(circle at 35% 30%, #9ff6ff, #1aa6d6 55%, #075b80); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.card__type { position: absolute; right: 8px; bottom: 9px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); }
.card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; background: linear-gradient(180deg, #0b2028, #071419); }
.card__stats span { display: flex; justify-content: space-between; align-items: center; padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: 10px; color: var(--mute); }
.card__stats b { font: 700 13px/1 var(--mono); color: #fff; }
.card__foot { display: flex; justify-content: space-between; padding: 4px 8px 5px; font: 700 8px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: #071419; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 48%, transparent 60%); background-size: 260% 100%; background-position: var(--sx, 120%) 0; mix-blend-mode: overlay; opacity: .8; }
.card[data-r="epic"]::before, .card[data-r="legendary"]::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: conic-gradient(from var(--ha, 0deg) at 50% 50%, rgba(255, 0, 170, .22), rgba(0, 255, 210, .22), rgba(255, 230, 80, .22), rgba(120, 90, 255, .22), rgba(255, 0, 170, .22)); mix-blend-mode: color-dodge; opacity: .55; }
.card[data-r="legendary"] { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 24px 50px -16px rgba(0, 0, 0, .8), 0 0 60px -6px var(--rc); }
.card--back { background: linear-gradient(160deg, #1b6f66, #0b3a40 60%, #082028); }
.card--back .card__in { display: grid; place-items: center; background: radial-gradient(circle, #0e3a3f, #051218); }
.card--back img { width: 46%; opacity: .9; filter: drop-shadow(0 0 16px var(--teal)); }

/* statement */
.statement { position: relative; padding: 180px 24px 220px; text-align: center; }
.statement .big { max-width: 1080px; margin: 0 auto; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; }
.anchor { position: absolute; left: 22%; bottom: 90px; width: 1px; height: 1px; }

/* chapters */
.chapter { position: relative; padding: 170px 0 140px; overflow-x: clip; }
.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; position: relative; }
.wrap--s { width: min(820px, calc(100% - 48px)); }
.horizon { position: absolute; left: 50%; top: 0; width: 180vw; height: 560px; transform: translateX(-50%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(29, 233, 196, .22), transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.horizon::before { content: ''; position: absolute; inset: -1px 0 0; border-radius: inherit; padding-top: 1.5px; background: linear-gradient(90deg, transparent 22%, rgba(29, 233, 196, .9) 38%, var(--lime) 50%, rgba(29, 233, 196, .9) 62%, transparent 78%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.chapter--c { text-align: center; }
.pill { display: inline-block; font: 400 12px/1 var(--title); text-transform: uppercase; letter-spacing: .06em; color: #04201b; background: linear-gradient(180deg, #7dfbe2, var(--teal)); padding: 7px 12px 6px; border-radius: 8px; box-shadow: 0 0 24px -4px var(--teal); margin-bottom: 18px; }
.h { font-size: clamp(38px, 5vw, 72px); margin-bottom: 14px; }
.h--l { font-size: clamp(40px, 4.6vw, 64px); }
.sub { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sub2 { max-width: 620px; margin: 0 auto 50px; color: var(--mute); }
.sub--l, .sub2--l { text-align: left; margin-left: 0; }
.chapter:not(.chapter--c) .sub { margin-bottom: 44px; }
.panel { position: relative; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; backdrop-filter: blur(6px); }
.panel__lead { color: #cfe9e5; margin-bottom: 26px; max-width: 560px; }

/* boxes */
.boxes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 40px; text-align: left; }
.step { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--title); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin: 22px 0 12px; }
.step i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #04201b; font-size: 11px; }
.boxpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.boxpick button { text-align: left; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.boxpick button:hover { transform: translateY(-2px); border-color: rgba(29, 233, 196, .4); }
.boxpick button.on { border-color: var(--teal); background: rgba(29, 233, 196, .08); box-shadow: 0 0 30px -12px var(--teal); }
.boxpick b { display: block; font: 400 15px/1.1 var(--title); text-transform: uppercase; margin-bottom: 6px; }
.boxpick span { font: 700 13px/1 var(--mono); color: var(--lime); }
.boxpick small { display: block; font-size: 11px; color: var(--dim); margin-top: 4px; }
.odds { display: grid; gap: 8px; }
.odds div { display: grid; grid-template-columns: 86px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.odds i { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.odds i em { display: block; height: 100%; border-radius: 8px; background: var(--c); box-shadow: 0 0 12px var(--c); transition: width .6s var(--ease); }
.odds b { font-family: var(--mono); text-align: right; }
.boxes__go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.boxes__r { position: relative; min-height: 460px; display: grid; place-items: center; }
.pack { position: relative; width: 230px; height: 330px; border-radius: 14px; overflow: hidden; cursor: pointer; background: linear-gradient(160deg, #1de9c4, #0d8f86 45%, #1b3f8a); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -10px var(--teal); transition: transform .6s var(--ease), opacity .5s; animation: float 6s ease-in-out infinite; }
.pack[data-k="aurora"] { background: linear-gradient(160deg, #b8ff5a, #1de9c4 40%, #8d6bff); }
.pack[data-k="mythic"] { background: linear-gradient(160deg, #ffd27a, #ff7a3d 40%, #8d2bd6); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 70px -10px var(--gold); }
.pack__foil { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 9px), linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); background-size: auto, 250% 100%; animation: foil 4s linear infinite; mix-blend-mode: overlay; }
@keyframes foil { from { background-position: 0 0, 150% 0; } to { background-position: 0 0, -150% 0; } }
.pack__logo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.pack__logo img { width: 74px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.pack__logo b { font: 400 28px/1 var(--title); text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.pack__logo span { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(0, 0, 0, .3); }
.pack__tear { position: absolute; left: 0; right: 0; top: 16%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 6px, transparent 6px 10px); }
.pack.is-torn { transform: translateY(40px) scale(.85) rotate(-4deg); opacity: 0; pointer-events: none; animation: none; }
.pull { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pull .card { position: absolute; width: 150px; opacity: 0; transform: translateY(60px) scale(.6); transition: transform .9s var(--ease), opacity .5s; pointer-events: auto; }
.pull.is-on .card { opacity: 1; }

/* battle */
.arena { margin: 0 auto; max-width: 1100px; padding: 26px 30px 30px; text-align: center; border: 1px solid rgba(29, 233, 196, .5); box-shadow: 0 0 0 1px rgba(29, 233, 196, .15) inset, 0 0 80px -20px rgba(29, 233, 196, .45), 0 40px 100px -40px #000; }
.arena__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; }
.who small { display: block; color: var(--dim); font-size: 11px; }
.who--r { justify-content: flex-end; text-align: right; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 400 13px/1 var(--title); }
.ava--you { background: linear-gradient(160deg, var(--teal), #0b6b62); color: #03221d; }
.ava--rv { background: linear-gradient(160deg, var(--violet), #3b2290); }
.arena__title h3 { font-size: clamp(22px, 2.4vw, 34px); }
.arena__title p { font-size: 13px; color: var(--mute); margin-top: 6px; }
.arena__meta { display: flex; justify-content: center; gap: 12px; margin: 18px 0 8px; font-size: 13px; }
.mana, .rule { padding: 6px 12px; border-radius: 100px; background: rgba(63, 200, 255, .1); box-shadow: 0 0 0 1px rgba(63, 200, 255, .35) inset; }
.mana b { font-family: var(--mono); color: var(--sky); }
.rule { background: rgba(184, 255, 90, .08); box-shadow: 0 0 0 1px rgba(184, 255, 90, .3) inset; color: var(--lime); }
.field { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; min-height: 230px; margin: 10px 0; }
.side { display: flex; gap: 8px; justify-content: flex-end; align-items: center; min-height: 200px; }
.side--rv { justify-content: flex-start; flex-direction: row; }
.side--you { flex-direction: row-reverse; justify-content: flex-start; }
.side .card { width: 112px; transition: transform .4s var(--ease), opacity .5s, filter .5s; }
.side .card.is-hit { animation: hit .35s; }
.side .card.is-dead { opacity: .2; filter: grayscale(1); transform: scale(.9); }
.side .card.is-act { transform: translateY(-10px); }
@keyframes hit { 30% { transform: translateX(6px) rotate(2deg); filter: brightness(2); } 60% { transform: translateX(-4px); } }
.hpbar { position: absolute; left: 8px; right: 8px; bottom: -10px; height: 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); overflow: hidden; z-index: 4; }
.hpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--teal)); transition: width .3s; }
.vs { font: 400 48px/1 var(--title); background: linear-gradient(180deg, #fff, var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 16px rgba(29, 233, 196, .6)); }
.vs i { font-style: normal; display: inline-block; transform: skewX(-12deg); }
.hand { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 18px; }
.hand .card { width: 108px; cursor: pointer; transition: transform .3s var(--ease), opacity .3s; }
.hand .card:hover { transform: translateY(-8px); }
.hand .card.is-picked { opacity: .25; transform: scale(.94); }
.hand .card.is-off { opacity: .35; cursor: not-allowed; }
.arena__go { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.log { margin: 20px auto 0; max-width: 640px; min-height: 22px; font: 500 13px/1.7 var(--mono); color: var(--mute); }
.log b { color: var(--lime); }
.result { display: inline-block; font: 400 26px/1 var(--title); text-transform: uppercase; margin-top: 4px; }

/* world */
.world__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.realms { display: grid; gap: 8px; margin: 28px 0; }
.realms button { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.realms button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.realms button b { font: 400 15px/1 var(--title); text-transform: uppercase; }
.realms button small { display: block; font-size: 12px; color: var(--dim); margin-top: 4px; }
.realms button em { font-style: normal; font: 700 11px/1 var(--mono); color: var(--mute); }
.realms button.on { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.wstats { display: flex; gap: 10px; }
.wstats div { flex: 1; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-align: center; }
.wstats b { display: block; font: 400 30px/1 var(--title); }
.wstats span { font-size: 12px; color: var(--dim); }
.globe { position: relative; aspect-ratio: 1; }
.globe canvas { width: 100%; height: 100%; }
.globe__tags { position: absolute; inset: 0; pointer-events: none; }
.globe__tags span { position: absolute; transform: translate(-50%, -150%); font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 0 8px rgba(0, 0, 0, .9); white-space: nowrap; transition: opacity .3s; }
.realmrow { display: flex; justify-content: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.realmrow .card { width: 170px; }

/* fusion */
.fuse { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; text-align: left; margin-top: 30px; }
.fuse__ladder { position: relative; height: 380px; }
.fuse__ladder .card { position: absolute; width: 170px; top: 50%; transition: transform .7s var(--ease); }
.fuse__ladder .card:nth-child(1) { left: 0; transform: translateY(-50%) rotate(-8deg); }
.fuse__ladder .card:nth-child(2) { left: 22%; transform: translateY(-54%) rotate(-3deg); }
.fuse__ladder .card:nth-child(3) { left: 44%; transform: translateY(-58%) rotate(2deg); }
.fuse__ladder .card:nth-child(4) { left: 66%; transform: translateY(-62%) rotate(7deg) scale(1.06); }
.fuse__txt > p:first-child { color: #cfe9e5; font-size: 17px; margin-bottom: 18px; }
.mults { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mults li { padding: 12px 8px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .03); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.mults b { display: block; font: 400 24px/1 var(--title); color: var(--c); text-shadow: 0 0 14px var(--c); }
.mults span { font-size: 11px; color: var(--mute); }
.fuse__pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.fuse__pick button { font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 100px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.fuse__pick button.on { border-color: var(--teal); color: #fff; background: rgba(29, 233, 196, .1); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; text-align: left; }
.perk { padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.perk:hover { transform: translateY(-4px); border-color: rgba(29, 233, 196, .35); }
.perk img { width: 72px; height: 72px; object-fit: cover; object-position: 50% 25%; border-radius: 50%; margin-bottom: 16px; box-shadow: 0 0 0 2px var(--teal), 0 0 24px -4px var(--teal); }
.perk h4 { font-size: 20px; margin-bottom: 8px; }
.perk p { font-size: 14px; color: var(--mute); }

/* leagues */
.leagues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lg { position: relative; padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); overflow: hidden; }
.lg::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); pointer-events: none; }
.lg h3 { font-size: 30px; color: var(--c); text-shadow: 0 0 20px color-mix(in srgb, var(--c) 60%, transparent); }
.lg .lg__rule { font-size: 14px; color: #dff; margin: 8px 0 18px; min-height: 22px; }
.lg dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13px; }
.lg dt { color: var(--dim); } .lg dd { font-family: var(--mono); font-weight: 700; text-align: right; }
.lg__share { position: absolute; right: 22px; top: 22px; font: 400 34px/1 var(--title); opacity: .9; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; margin-top: 24px; }
.flow h3 { font-size: 22px; margin-bottom: 18px; }
.flow__l p { color: var(--mute); margin-top: 14px; font-size: 15px; }
.split__bar { display: flex; height: 16px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.split__bar i { background: linear-gradient(90deg, var(--teal), var(--lime)); box-shadow: 0 0 20px var(--teal); }
.split__bar em { background: repeating-linear-gradient(135deg, #ff7a3d 0 6px, #c24b1d 6px 12px); }
.split__lb { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-top: 8px; }
.split__lb b { font-family: var(--mono); color: #fff; }
.calc label { display: block; font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 14px; }
.calc output { float: right; font: 700 13px/1.6 var(--mono); color: #fff; }
.calc input[type=range] { width: 100%; margin-top: 8px; accent-color: var(--teal); }
.seg { display: flex; gap: 6px; margin-top: 8px; }
.seg button { flex: 1; padding: 9px; border-radius: 10px; font: 400 13px/1 var(--title); text-transform: uppercase; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--mute); }
.seg button.on { color: #04201b; background: var(--teal); border-color: var(--teal); }
.chk { display: flex !important; align-items: center; gap: 8px; cursor: pointer; }
.chk input { accent-color: var(--teal); width: 16px; height: 16px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.calc__out div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.calc__out span { display: block; font-size: 12px; color: var(--dim); }
.calc__out b { font: 700 17px/1.3 var(--mono); }
.calc__main { grid-column: 1 / -1; border-color: rgba(29, 233, 196, .5) !important; background: rgba(29, 233, 196, .07) !important; }
.calc__main b { font-size: 26px; color: var(--lime); }

/* collection */
.coll { padding: 28px; text-align: left; margin-top: 40px; }
.coll__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.gems { display: flex; gap: 10px; }
.gem { position: relative; width: 38px; height: 38px; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); background: linear-gradient(160deg, #fff, var(--c) 40%, color-mix(in srgb, var(--c) 50%, #000)); cursor: help; transition: transform .3s var(--ease), filter .3s; filter: drop-shadow(0 0 10px var(--c)); }
.gem:hover { transform: translateY(-4px) scale(1.1); }
.gemtip { font-size: 13px; color: var(--mute); margin-left: 10px; align-self: center; min-width: 200px; }
.coll__deck { display: flex; align-items: center; gap: 12px; font: 400 13px/1 var(--title); text-transform: uppercase; }
.deckslots { display: flex; gap: 6px; }
.deckslots i { width: 34px; height: 48px; border-radius: 7px; border: 1px dashed rgba(29, 233, 196, .4); background-size: cover; background-position: center; }
.deckslots i.full { border: 1px solid var(--teal); box-shadow: 0 0 12px -2px var(--teal); }
.coll__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.coll__grid .card { cursor: pointer; transition: transform .3s var(--ease); }
.coll__grid .card:hover { transform: translateY(-4px); }
.coll__grid .card.in-deck { outline: 2px solid var(--lime); outline-offset: 3px; }
.coll__empty { text-align: center; padding: 30px 0 10px; }
.ribbon { display: flex; gap: 18px; padding: 70px 24px 10px; overflow-x: auto; scrollbar-width: none; cursor: grab; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon::-webkit-scrollbar { display: none; }
.ribbon figure { flex: 0 0 200px; text-align: center; }
.ribbon figcaption { font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.ribbon figcaption b { color: var(--teal); font-weight: 600; }

/* faq */
.faq { padding: 120px 0 60px; text-align: center; }
.faq details { text-align: left; border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 24px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); margin-top: 10px; max-width: 700px; }
.faq .h { margin-bottom: 30px; }

/* final */
.final { position: relative; padding: 140px 24px 120px; text-align: center; overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; bottom: -40%; width: 140vw; height: 120%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(29, 233, 196, .25), transparent); pointer-events: none; z-index: -1; mask-image: linear-gradient(0deg, transparent 33.4%, #000 50%); }
.final__cards { position: relative; height: 270px; width: 300px; margin: 0 auto 30px; }
.final__cards .card { position: absolute; width: 160px; top: 0; animation: float 7s ease-in-out infinite; }
.final__cards .card:first-child { left: 0; transform: rotate(-10deg); }
.final__cards .card:last-child { right: 0; transform: rotate(10deg); animation-delay: -3s; }
.final .big { font-size: clamp(40px, 5.6vw, 84px); margin-bottom: 20px; }
.final .lead { margin: 0 auto 30px; }
.final .micro { margin-top: 14px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.logo--f { font-size: 17px; } .logo--f img { width: 26px; height: 26px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; z-index: 60; padding: 12px 18px; border-radius: 14px; background: rgba(6, 22, 30, .92); border: 1px solid rgba(29, 233, 196, .45); font-size: 14px; transition: transform .5s var(--ease), visibility 0s .5s; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .stars, .aurora, .hero__art img, .pack { animation-duration: 400s !important; }
  .rv { transition-duration: .5s; transform: translateY(14px); }
}
@media (max-width: 1080px) {
  .nav { display: none; } .bal { display: none; } .burger { display: block; } .top { justify-content: space-between; }
  .hero__in, .boxes, .world__in, .fuse, .flow { grid-template-columns: 1fr; }
  .hero__fan { height: 440px; }
  .leagues, .perks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { height: 54px; top: 10px; }
  .top .btn--sm { display: none; }
  .hero { padding-top: 100px; }
  .hero__fan { height: 380px; } .hero__fan .card { width: 170px; }
  .note--a { left: 0; }
  .statement { padding: 120px 16px 160px; }
  .boxes, .flow, .coll { padding: 22px; }
  .boxpick { grid-template-columns: 1fr; }
  .arena { padding: 20px 14px; }
  .arena__top { grid-template-columns: 1fr 1fr; } .arena__title { grid-column: 1 / -1; order: -1; }
  .field { grid-template-columns: 1fr; gap: 10px; }
  .vs { font-size: 34px; }
  .side, .side--you { justify-content: center; flex-wrap: wrap; min-height: 0; }
  .side .card { width: 84px; } .hand .card { width: 92px; }
  .fuse__ladder { height: 300px; } .fuse__ladder .card { width: 120px; }
  .mults { grid-template-columns: repeat(2, 1fr); }
  .realmrow .card { width: 140px; }
  .wrap { width: calc(100% - 32px); }
}
@media (max-width: 640px) {
  .hero__art img { object-position: 78% 20%; opacity: .55; }
  .hero__art::after { background: linear-gradient(180deg, rgba(3, 8, 13, .55) 0%, rgba(3, 8, 13, .82) 40%, rgba(3, 8, 13, .6) 70%, var(--ground) 100%); }
  .boxes__r { min-height: 340px; }
  .pull .card { width: 108px; }
}
