@font-face { font-family: Oswald; src: url(/a/Oswald-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Oswald; src: url(/a/Oswald-SemiBold.ttf); font-weight: 600; font-display: swap; }
:root {
	color-scheme: dark;
	--night: #0c0b1f; --ink: #15112a; --line: #3a3163; --text: #f3f0ff; --dim: #c9bcff; --gold: #ffd166; --teal: #5fe0c4;
	--wide: 1200px; --gap: 24px;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: 72px; }
body { background: var(--night); color: var(--text); font: 400 18px/1.55 Oswald, "Arial Narrow", sans-serif; letter-spacing: .01em; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
.px { image-rendering: pixelated; }
a { color: var(--gold); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gap)); margin-inline: auto; }

header.top { position: sticky; top: 0; z-index: 5; background: rgb(12 11 31 / .94); border-bottom: 2px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 26px; min-height: 60px; }
header.top a { color: var(--text); text-decoration: none; white-space: nowrap; }
header.top a:hover, header.top a[aria-current] { color: var(--gold); }
header.top .home { margin-right: auto; }
header.top .home img { height: 44px; width: auto; }
header.top .tongue { color: var(--dim); border-left: 2px solid var(--line); padding-left: 22px; }

.hero { position: relative; min-height: min(760px, calc(100svh - 62px)); display: flex; overflow: hidden; background: #0d1233; }
.hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; image-rendering: pixelated; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; }
.hero .words { width: min(560px, 100%); text-align: center; }
.hero .logo { width: 100%; }
.hero p { margin: 22px auto 26px; font-size: 21px; max-width: 26em; text-wrap: balance; text-shadow: 0 2px 0 #0a0a1c, 0 0 14px #0a0a1c; }
.hero p.small { font-size: 15px; color: var(--dim); margin: 14px auto 0; }
.fire { position: absolute; width: 48px; height: 64px; background: url(/a/fire.png) 0 0 / 384px 64px; image-rendering: pixelated; animation: fire .9s steps(8) infinite, drift 4.6s ease-in-out infinite alternate; }
@keyframes fire { to { background-position-x: -384px; } }
@keyframes drift { to { translate: 0 -18px; } }

.buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn { display: inline-block; border: solid transparent; border-width: 20px 32px 24px; border-image: url(/a/btn_gold.png) 20 32 24 fill; image-rendering: pixelated; color: #fff8e4; font: 600 22px/1.3 Oswald, sans-serif; text-decoration: none; text-shadow: 0 2px 0 #4a2506; padding: 0 12px; cursor: pointer; background: none; }
.btn span { display: block; margin: -8px 0; }
.btn:hover { border-image-source: url(/a/btn_gold_hover.png); }
.btn:active { border-image-source: url(/a/btn_gold_pressed.png); }
.btn.quiet { border-image-source: url(/a/btn_violet.png); text-shadow: 0 2px 0 #1a1030; }
.btn.quiet:hover { border-image-source: url(/a/btn_violet_hover.png); }

section { padding: 76px 0; }
section.deep { background: var(--ink); }
h1, h2 { line-height: 0; }
h2 img, .page h1 img { max-width: 100%; }
.lead { margin-top: 14px; max-width: 40em; color: var(--dim); }
h3 { font: 600 22px/1.3 Oswald, sans-serif; color: var(--gold); }

.shot { border: 4px solid #d99a2b; box-shadow: 0 0 0 4px #2b1330, 0 18px 50px #05040e; width: 100%; margin-top: 30px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 34px; }
.three p { color: var(--dim); margin-top: 4px; }

.rise { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; margin-top: 34px; }
.faces { display: grid; grid-template-columns: repeat(auto-fill, 52px); gap: 4px; justify-content: start; }
.faces button { width: 52px; height: 52px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.faces button:hover { background: #2b2347; }
.faces button[aria-pressed=true] { border-color: var(--gold); background: #2b2347; }
.faces i { display: block; width: 48px; height: 48px; background: url(/a/faces.png) var(--x) var(--y); image-rendering: pixelated; }
.pair { display: flex; gap: 18px; }
.pair figure { width: 290px; position: relative; }
.pair img { width: 100%; aspect-ratio: 300 / 480; }
.pair figcaption { text-align: center; color: var(--dim); margin-bottom: 6px; }
.pair figure + figure figcaption { color: #8fdcff; }
.pair.turn figure + figure img { animation: rise .5s; }
.ult { position: absolute; left: 6%; right: 6%; bottom: 46%; aspect-ratio: 80 / 64; background-size: 1400% 100%; image-rendering: pixelated; pointer-events: none; opacity: 0; z-index: 1; }
.pair.turn .ult { animation: ult 1.2s .35s steps(13) both; }
@keyframes ult { 0% { background-position-x: 0; opacity: 1; } 99.9% { opacity: 1; } 100% { background-position-x: 100%; opacity: 0; } }
@keyframes rise { from { filter: brightness(3) saturate(.3); translate: 0 14px; } }

.lands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.lands a { position: relative; display: block; overflow: hidden; border: 2px solid color-mix(in srgb, var(--clan) 55%, #15112a); color: var(--text); text-decoration: none; }
.lands a:hover { border-color: var(--clan); }
.modes img { aspect-ratio: 132 / 160; }
.leagues img { aspect-ratio: 1; }
.lands img.scene { width: 100%; aspect-ratio: 276 / 160; object-fit: cover; transition: scale .3s; }
.lands a:hover img.scene { scale: 1.05; }
.lands .name { position: absolute; inset: auto 0 0; padding: 30px 12px 8px; display: flex; align-items: center; gap: 8px; background: linear-gradient(transparent, rgb(8 6 20 / .92)); }
.lands .name b { font-weight: 600; font-size: 19px; }
.lands .name img { width: 32px; height: 32px; }
.lands .name small { margin-left: auto; color: var(--dim); font-size: 15px; }

.table { position: relative; margin-top: 30px; border: 4px solid #3a3163; aspect-ratio: 640 / 360; background: #000; overflow: hidden; }
.table img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; image-rendering: pixelated; }
.table img.on { opacity: 1; }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font: 400 16px/1 Oswald, sans-serif; color: var(--dim); background: #211a3d; border: 2px solid var(--line); padding: 9px 13px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed=true] { color: var(--night); background: var(--gold); border-color: var(--gold); }

.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 30px; }
.modes img { width: 132px; }
.modes h3 { margin-top: 12px; }
.modes p { color: var(--dim); font-size: 16px; }

.leagues { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 30px 0 34px; text-align: center; color: var(--dim); }
.leagues img { width: 96px; margin: 0 auto 4px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; color: var(--dim); font-size: 16px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
td:first-child, th:first-child { width: 3em; color: var(--gold); }
td.league img { display: inline-block; vertical-align: middle; margin-right: 10px; }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
tr.note td { text-align: left; color: var(--dim); }

.get { position: relative; text-align: center; background: url(/a/valley.png) center bottom / cover; image-rendering: pixelated; padding: 110px 0 120px; }
.get::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--ink) 6%, rgb(12 11 31 / .6) 40%, rgb(12 11 31 / .8)); }
.get .wrap { position: relative; }
.get h2 img { margin-inline: auto; }
.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0 30px; }
.systems article { background: rgb(16 12 34 / .88); border: 2px solid var(--line); padding: 24px 22px 26px; }
.systems h3 { font-size: 30px; }
.systems h3 small { font-size: 15px; font-weight: 400; color: var(--night); background: var(--teal); padding: 1px 8px; vertical-align: middle; }
.systems .btn { margin: 14px 0 16px; }
.check { color: var(--dim); font-size: 16px; }
.get .small { color: var(--dim); }

footer { border-top: 2px solid var(--line); padding: 26px 0 34px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }

.page { padding: 46px 0 80px; min-height: 70svh; }
.prose p { max-width: 44em; margin-top: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.filters input, .filters select { font: 400 17px/1.2 Oswald, sans-serif; color: var(--text); background: #1d1738; border: 2px solid var(--line); padding: 9px 12px; min-width: 0; }
.filters input { flex: 1 1 260px; }
.filters input::placeholder { color: #9a8fc9; }
.count { color: var(--dim); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.grid button { padding: 0; border: 0; background: none; cursor: pointer; transition: translate .15s; }
.grid button:hover { translate: 0 -6px; }
.grid img { width: 100%; aspect-ratio: 300 / 480; }
dialog { margin: auto; border: 0; padding: 0; background: none; max-width: 100vw; max-height: 100dvh; overflow: auto; color: var(--text); }
dialog::backdrop { background: rgb(6 5 16 / .88); }
dialog .pair { justify-content: center; padding: 16px; }
dialog .pair figure { width: min(300px, 44vw); }
dialog .pair.one figure { width: min(300px, 84vw); }
dialog form { text-align: center; padding-bottom: 16px; }

@media (max-width: 1150px) {
	.rise { grid-template-columns: 1fr; }
	.pair { justify-content: center; }
	.lands { grid-template-columns: repeat(3, 1fr); }
	.modes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
	:root { --gap: 16px; }
	body { font-size: 17px; }
	header.top .wrap { gap: 16px; }
	header.top .home img { height: 33px; }
	header.top .tongue { padding-left: 14px; }
	header.top .below { display: none; }
	.hero .wrap { align-items: flex-start; justify-content: center; padding-top: 26px; }
	.hero .scene { inset: auto 0 0; height: 500px; object-position: 25% 100%; mask-image: linear-gradient(transparent, #000 22%); }
	.hero { min-height: 900px; background: #0c1030; }
	.hero p { font-size: 18px; }
	.fire { display: none; }
	section { padding: 54px 0; }
	.three, .systems { grid-template-columns: 1fr; gap: 20px; }
	.lands { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.lands .name { padding: 24px 8px 6px; gap: 6px; }
	.lands .name b { font-size: 16px; }
	.lands .name small { display: none; }
	.lands .name img { width: 16px; height: 16px; }
	.modes { grid-template-columns: 1fr; }
	.modes article { display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; align-items: center; }
	.modes img { width: 84px; grid-row: 1 / 3; }
	.modes h3 { margin: 0; align-self: end; }
	.modes p { align-self: start; }
	.faces { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(3, 52px); grid-auto-columns: 52px; overflow-x: auto; padding-bottom: 10px; }
	.pair { gap: 10px; }
	.pair figure { width: calc(50% - 5px); max-width: 300px; }
	.leagues { grid-template-columns: repeat(4, 1fr); font-size: 15px; }
	.leagues img { width: 72px; }
	th, td { padding: 9px 6px; }
	.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.filters select { flex: 1 1 40%; }
	#clan { flex-basis: 100%; }
	td.league img { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, ::after, ::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
