/* Feature emblems + chips (feature.html, promo.html). Size the .hero with --hs; colour with --acc. */
@property --acc { syntax: "<color>"; inherits: true; initial-value: #ff7a1a; }

.hero { position: relative; width: var(--hs, 300px); height: var(--hs, 300px); flex: none; color: var(--acc); }
.hero .rays { position: absolute; inset: -38%; border-radius: 50%;
	background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--acc) 45%, transparent) 0deg 4deg, transparent 4deg 16deg);
	-webkit-mask: radial-gradient(circle, #000 18%, transparent 64%); mask: radial-gradient(circle, #000 18%, transparent 64%);
	animation: f-spin 18s linear infinite; }
.hero .halo { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 55%, transparent) 0%, color-mix(in srgb, var(--acc) 18%, transparent) 45%, transparent 70%); animation: f-pulse 2.4s ease-in-out infinite; }
.hero .ring { position: absolute; inset: 12%; border-radius: 50%; border: calc(var(--hs, 300px) * .012) solid color-mix(in srgb, var(--acc) 80%, #fff);
	box-shadow: 0 0 calc(var(--hs, 300px) * .08) color-mix(in srgb, var(--acc) 70%, transparent), inset 0 0 calc(var(--hs, 300px) * .08) color-mix(in srgb, var(--acc) 50%, transparent);
	background: radial-gradient(circle at 35% 30%, #2c1d16, #0e0908 72%); }
.hero .glyph { position: absolute; inset: 0; display: grid; place-items: center; font: 900 calc(var(--hs, 300px) * .34)/1 var(--display); letter-spacing: -.02em;
	background: linear-gradient(180deg, #fff 0%, #f3ede6 38%, #9d948b 54%, #fbf7f2 74%, #c9bfb4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 calc(var(--hs, 300px) * .012) 0 #1c120c) drop-shadow(0 0 calc(var(--hs, 300px) * .05) var(--acc)); }
.hero .art { position: absolute; inset: 27%; filter: drop-shadow(0 0 calc(var(--hs, 300px) * .04) var(--acc)); }
.hero .art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero .spin-slow { transform-origin: 50px 50px; animation: f-spin 12s linear infinite; }
.hero .lock { transform-origin: 50px 50px; animation: f-lock 2.4s cubic-bezier(.7, 0, .3, 1) infinite; }
.hero.cycle-tiers { animation: f-tiers 6s steps(1) infinite; }
.hero.cycle-rarity { animation: f-rarity 6s linear infinite; }
@keyframes f-spin { to { transform: rotate(360deg); } }
@keyframes f-pulse { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes f-lock { 0% { transform: scale(1.5) rotate(-45deg); opacity: 0; } 35%, 80% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
@keyframes f-tiers { 0% { --acc: #e8e4dc; } 16.6% { --acc: #46e05a; } 33.3% { --acc: #4a8cff; } 50% { --acc: #b45cff; } 66.6% { --acc: #ff8a1a; } 83.3% { --acc: #ff3030; } }
@keyframes f-rarity { 0%, 100% { --acc: #d0d8e8; } 16.6% { --acc: #30f040; } 33.3% { --acc: #3a80ff; } 50% { --acc: #b040ff; } 66.6% { --acc: #ff7a10; } 83.3% { --acc: #ffc8f0; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--cg, 10px); }
.chip { padding: .38em .9em; border-radius: 999px; font: 700 var(--cf, 18px)/1 var(--font); letter-spacing: .04em; white-space: nowrap; color: #fff;
	background: color-mix(in srgb, var(--cc) 22%, rgba(15, 11, 10, .85)); border: 1px solid color-mix(in srgb, var(--cc) 75%, transparent);
	box-shadow: 0 0 12px color-mix(in srgb, var(--cc) 35%, transparent); text-shadow: 0 0 8px color-mix(in srgb, var(--cc) 80%, transparent);
	animation: f-chip-glow 3.6s ease-in-out infinite; animation-delay: calc(var(--k) * .3s); }
@keyframes f-chip-glow { 0%, 70%, 100% { box-shadow: 0 0 10px color-mix(in srgb, var(--cc) 30%, transparent); } 80% { box-shadow: 0 0 22px 2px color-mix(in srgb, var(--cc) 85%, transparent); background: color-mix(in srgb, var(--cc) 45%, rgba(15, 11, 10, .85)); } }

/* Entrance used by both pages: add .enter to the container */
.enter .hero { animation-name: f-slam; animation-duration: .8s; animation-timing-function: cubic-bezier(.2, 1.4, .4, 1); animation-fill-mode: both; animation-iteration-count: 1; }
.enter .hero.cycle-tiers { animation: f-slam .8s cubic-bezier(.2, 1.4, .4, 1) both, f-tiers 6s steps(1) .8s infinite; }
.enter .hero.cycle-rarity { animation: f-slam .8s cubic-bezier(.2, 1.4, .4, 1) both, f-rarity 6s linear .8s infinite; }
.enter .kicker { animation: f-kicker .8s var(--ease-out) .25s both; }
.enter .ftitle > span { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i) * 35ms + 350ms); }
.enter .fline { animation: f-up .7s var(--ease-out) .75s both; }
.enter .chip { animation: f-pop .5s cubic-bezier(.2, 1.5, .4, 1) both, f-chip-glow 3.6s ease-in-out infinite; animation-delay: calc(var(--k) * 90ms + .95s), calc(var(--k) * .3s + 1.6s); }
@keyframes f-slam { 0% { opacity: 0; transform: scale(2.6) rotate(-12deg); filter: blur(10px) brightness(3); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes f-kicker { from { opacity: 0; letter-spacing: .8em; filter: blur(5px); } to { opacity: 1; } }
@keyframes f-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes f-pop { from { opacity: 0; transform: scale(.4) translateY(10px); } to { opacity: 1; transform: none; } }
