/* Respawn intro presentation (home page only). Always dark, whatever the site theme. */

.intro {
	position: relative; overflow: hidden; isolation: isolate;
	height: clamp(560px, calc(100svh - var(--header-h) - 38px), 920px);
	background: #0A0B0E; color: #ECEEF1;
	--accent: #FF5B2E;
}
.intro::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: 3; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.intro__vignette {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at 50% 46%, transparent 45%, rgba(0, 0, 0, .65) 100%);
}
.intro__stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.iscene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.iscene.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }

.ihead {
	position: absolute; left: 0; right: 0; top: 9%; padding: 0 16px; text-align: center;
	font: 800 clamp(20px, 3.4vw, 44px)/1.1 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: -.01em;
	text-shadow: 0 0 30px rgba(255, 91, 46, .35);
}
.ihead span { color: var(--accent); }
.is-on .ihead { animation: ihead .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ihead { from { opacity: 0; transform: translateY(-24px); letter-spacing: .2em; filter: blur(8px); } }

/* Boot */
.iscene--boot { display: grid; place-items: center; }
.boot { width: min(540px, 86vw); font: 500 clamp(13px, 1.5vw, 16px)/1.8 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #9AA2AE; }
.boot b { color: var(--accent); font-weight: 700; }
.boot__line { opacity: 0; margin: 0; }
.is-on .boot__line { animation: bootline .25s steps(3) forwards; }
.is-on .boot__line:nth-child(1) { animation-delay: .25s; }
.is-on .boot__line:nth-child(2) { animation-delay: .8s; }
.is-on .boot__line:nth-child(3) { animation-delay: 1.35s; }
.is-on .boot__line:nth-child(4) { animation-delay: 1.9s; }
@keyframes bootline { to { opacity: 1; } }
.boot__bar { height: 3px; margin-top: 14px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.boot__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #FFB02E); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); }
.is-on .boot__bar span { animation: bootbar 2.7s cubic-bezier(.6, .1, .3, 1) .2s forwards; }
@keyframes bootbar { 60% { transform: scaleX(.72); } to { transform: scaleX(1); } }

/* Logo tag under the particle word */
.ilogo__tag {
	position: absolute; left: 0; right: 0; top: calc(46% + min(9vw, 14vh, 108px));
	text-align: center; margin: 0; font: 600 clamp(12px, 1.5vw, 17px)/1 "Unbounded", sans-serif; text-transform: uppercase; color: var(--accent);
}
.is-on .ilogo__tag { animation: tagin 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tagin { from { opacity: 0; letter-spacing: 1.4em; filter: blur(6px); } to { opacity: 1; letter-spacing: .55em; } }

/* Warp words */
.warp-words { position: absolute; inset: 0; }
.warp-word {
	position: absolute; left: 50%; top: 46%; opacity: 0; white-space: nowrap; will-change: transform, opacity, filter;
	font: 800 clamp(26px, 4.6vw, 60px)/1 "Unbounded", sans-serif; text-transform: uppercase; color: #fff;
	text-shadow: 0 0 18px rgba(255, 91, 46, .9), 0 0 60px rgba(255, 91, 46, .5);
}

/* Game covers ring */
.ring-wrap { position: absolute; left: 50%; top: 54%; width: 0; height: 0; perspective: 1100px; }
.ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }
.ring__item {
	position: absolute; width: var(--w, 140px); aspect-ratio: 2 / 3; left: calc(var(--w, 140px) / -2); top: calc(var(--w, 140px) * -.75);
	border-radius: 10px; overflow: hidden; background: #1F232A; border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 24px 50px rgba(0, 0, 0, .55); transition: box-shadow .3s, border-color .3s;
}
.ring__item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.8); transition: filter .3s; }
.ring__item.is-front { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 50px rgba(255, 91, 46, .6); }
.ring__item.is-front img { filter: none; }
.ring-label { position: absolute; left: 0; right: 0; bottom: 11%; margin: 0; text-align: center; padding: 0 16px; font: 700 clamp(15px, 2.2vw, 26px)/1.2 "Unbounded", sans-serif; text-transform: uppercase; }
.ring-label.is-pop { animation: labelpop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes labelpop { from { opacity: 0; transform: translateY(10px); } }

/* News cards */
.inews { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); width: min(780px, 90vw); display: grid; gap: 10px; }
.inews__card {
	display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(15, 17, 20, .88);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0;
}
.is-on .inews__card { animation: cardin .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.45s + var(--i) * .5s); }
@keyframes cardin { from { opacity: 0; transform: translateX(90px) skewX(-8deg); filter: blur(4px); } to { opacity: 1; transform: none; } }
.inews__img { aspect-ratio: 16 / 9; border-radius: 6px; background: #1F232A center / cover no-repeat; }
.inews__body { display: grid; gap: 4px; min-width: 0; }
.inews__meta { display: flex; gap: 8px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.inews__meta b { color: var(--accent); }
.inews__meta i { font-style: normal; padding: 2px 6px; border-radius: 4px; background: rgba(255, 91, 46, .16); color: #FFB49B; }
.inews__title { font-weight: 700; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Community */
.icomm { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); width: min(920px, 92vw); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.ithreads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ithreads li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(15, 17, 20, .9); opacity: 0; }
.is-on .ithreads li { animation: cardin .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.4s + var(--i) * .35s); }
.ithreads__t { font-weight: 700; font-size: 15px; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ivote { position: relative; display: grid; justify-items: center; font-size: 11px; color: #9AA2AE; flex: none; width: 22px; }
.ivote i { font-style: normal; }
.ivote i:first-child { color: var(--accent); }
.ivote em { position: absolute; left: 50%; top: -4px; font-style: normal; font-weight: 800; color: var(--accent); opacity: 0; transform: translateX(-50%); }
.is-on .ivote em { animation: plusone 1.1s ease-out forwards; animation-delay: calc(1.2s + var(--i) * .35s); }
@keyframes plusone { 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -26px); } }
.irate { padding: 18px; border: 1px solid rgba(255, 91, 46, .35); border-radius: 12px; background: linear-gradient(160deg, rgba(255, 91, 46, .18), rgba(15, 17, 20, .94) 70%); opacity: 0; }
.is-on .irate { animation: cardin .7s cubic-bezier(.2, .8, .2, 1) .7s forwards; }
.irate__label { margin: 0 0 10px; font: 700 12px/1 "Unbounded", sans-serif; text-transform: uppercase; color: #9AA2AE; }
.irate__scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.irate__scale span { height: 32px; display: grid; place-items: center; border-radius: 4px; background: rgba(255, 255, 255, .06); font-weight: 700; font-size: 12px; color: #9AA2AE; }
.is-on .irate__scale span:nth-child(-n+9) { animation: ratefill .25s ease forwards; animation-delay: calc(1.2s + var(--d) * .13s); }
@keyframes ratefill { to { background: var(--accent); color: #0F1114; box-shadow: 0 0 12px rgba(255, 91, 46, .6); } }
.irate__pen { margin: 14px 0 0; font-size: 14px; color: #C9CED6; opacity: 0; }
.is-on .irate__pen { animation: bootline .4s ease 2.7s forwards; }

/* Stats */
.iscene--stats { display: grid; place-items: center; }
.istats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 6vw, 80px); padding: 0 16px; }
.istat { display: grid; justify-items: center; gap: 6px; opacity: 0; }
.is-on .istat { animation: statin .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.is-on .istat:nth-child(2) { animation-delay: .2s; }
.is-on .istat:nth-child(3) { animation-delay: .4s; }
@keyframes statin { from { opacity: 0; transform: scale(.6); filter: blur(10px); } to { opacity: 1; transform: none; } }
.istat b { font: 800 clamp(44px, 8.5vw, 120px)/1 "Unbounded", sans-serif; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(255, 91, 46, .55); }
.istat span { font: 600 clamp(11px, 1.3vw, 14px)/1.2 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

/* Final panel */
.intro__final {
	position: absolute; left: 50%; top: 50%; z-index: 4; width: min(780px, calc(100% - 32px));
	padding: clamp(26px, 4.5vw, 52px); text-align: center; border-radius: 18px;
	background: linear-gradient(160deg, rgba(255, 91, 46, .12), rgba(15, 17, 20, .62) 55%);
	border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 30px 90px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 91, 46, .14);
	opacity: 0; transform: translate(-50%, -42%) scale(.96); filter: blur(10px); pointer-events: none;
	transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2, .8, .2, 1), filter 1.4s ease;
}
.is-final .intro__final, html:not(.js) .intro__final { opacity: 1; transform: translate(-50%, -50%); filter: none; pointer-events: auto; }
.intro__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 13px/1 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: .3em; color: #9AA2AE; }
.intro__slogan { margin: 0; font: 800 clamp(30px, 5.6vw, 74px)/1.04 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: -.02em; color: #fff; }
.intro__slogan em {
	display: block; font-style: normal; color: transparent;
	background: linear-gradient(100deg, #FF5B2E 0%, #FFB02E 40%, #fff 50%, #FFB02E 60%, #FF5B2E 100%) 100% 0 / 260% 100%;
	-webkit-background-clip: text; background-clip: text;
}
.is-final .intro__slogan em { animation: slogansweep 2.4s cubic-bezier(.4, 0, .2, 1) .6s both; }
@keyframes slogansweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.intro__sub { margin: 18px auto 0; max-width: 54ch; color: #C9CED6; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; }
.intro__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 28px; }
.intro__go { min-height: 54px; padding: 0 30px; font-size: 17px; border-radius: 10px; color: #0F1114 !important; box-shadow: 0 0 0 0 rgba(255, 91, 46, .6); }
.is-final .intro__go { animation: gopulse 2.6s ease-out 1.6s 3; }
@keyframes gopulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 46, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 91, 46, 0); } }
.intro__replay { border: 0; background: none; color: #9AA2AE; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.intro__replay:hover { color: #fff; }
.intro__donate { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 46px; padding: 0 26px; border: 1px solid rgba(255, 91, 46, .7); border-radius: 10px; background: rgba(255, 91, 46, .08); color: #FFB59E !important; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.intro__donate:hover { background: #FF5B2E; border-color: #FF5B2E; color: #0F1114 !important; }

/* HUD: progress and skip */
.intro__hud { position: absolute; inset: auto 0 0 0; z-index: 5; height: 70px; transition: opacity .6s; }
.intro__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.intro__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #FFB02E); transform-origin: 0 50%; transform: scaleX(0); }
.intro__skip { position: absolute; right: 18px; bottom: 16px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(15, 17, 20, .6); color: #C9CED6; font: 600 13px/1 var(--font); cursor: pointer; transition: color .15s, border-color .15s; }
.intro__skip:hover { color: #fff; border-color: var(--accent); }
.is-final .intro__hud, html:not(.js) .intro__hud { opacity: 0; pointer-events: none; }
.is-final .intro__stage { opacity: 0; transition: opacity .8s; }

@media (max-width: 720px) {
	.intro { height: clamp(560px, calc(100svh - var(--header-h) - 38px), 760px); }
	.inews__card { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 8px; }
	.inews__card:nth-child(n+5) { display: none; }
	.inews__title { font-size: 14px; }
	.icomm { grid-template-columns: 1fr; gap: 12px; top: 58%; }
	.ithreads li:nth-child(n+4) { display: none; }
	.ithreads li { padding: 10px 12px; }
	.irate { padding: 12px; }
	.irate__scale span { height: 26px; font-size: 11px; }
	.ihead { top: 6%; }
	.intro__actions { flex-direction: column; }
}

/* QA mode (?intro_still=1): CSS transitions and keyframes jump to their end state. */
.intro--still *, .intro--still *::before, .intro--still *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
