/* Should I Dodge? — Hextech theme, styled after the League of Legends client. Plain CSS, no framework. */

/* Self-hosted so the app stays fully functional offline (see wwwroot/fonts/*/OFL.txt for licensing).
   Inter (wght axis 100-900) covers body text and headings alike; Cinzel is kept for the site header
   title alone. Each is one variable font, and the browser renders the exact weight from the
   font-weight range declared here, so the range must reach the heaviest weight any rule asks for
   (headings use up to 900). */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('fonts/cinzel/Cinzel-Variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/inter/Inter-Variable.woff2') format('woff2');
}

:root {
    color-scheme: dark;

    /* One column width for every page so edges do not jump between routes. 72rem was already the build
       page and meta-picks width, fits a 1280px laptop with gutters, and sits alongside the ~1100px
       desktop nav. */
    --page-width: 72rem;

    /* Base — the client's deep navy void */
    --bg: #010a13;
    --bg-glow: #0a1428;
    --panel: #0b1725;
    --panel-alt: #10202f;
    --border: #1e3040;

    /* Hextech gold */
    --gold: #c8aa6e;
    --gold-bright: #f0e6d2;
    --gold-dark: #785a28;
    --gold-deep: #463714;

    /* Hextech blue/teal */
    --teal: #0ac8b9;
    --blue: #0596aa;

    --text: #f0e6d2;
    --text-dim: #a09b8c;

    --win: #0ac8b9;
    --lose: #e84057;
    --accent: var(--gold);
    --danger: #e84057;
    --warn: #d9a441;
    /* --win is the teal that marks a winning number; the badge row needs a colour
       that reads as green next to that teal, not as another shade of it. */
    --good: #3fb950;

    /* Verdict bands — a diverging ramp built from colours already in this palette.
       --warn is deliberately excluded: it already means "degraded row" elsewhere. */
    --band-really-low: #ff4655;
    --band-low: #e07a6b;
    --band-neutral: #a09b8c;
    --band-high: #4fc3d9;
    --band-really-high: #0ac8b9;

    /* Scoreboard damage bars -- dark, not pale: the value text paints directly on the fill with no
       scrim behind it (see SummonerProfilePage.razor.css's own remarks), so the fill has to hold
       --text (#f0e6d2) at 4.5:1 on its own, which caps its luminance well below a "neutral pale"
       measurement colour. Both tokens sit at ~0.099 relative luminance, putting --text at ~5.7:1 on
       either -- deliberately equal so neither bar reads as heavier, differing by hue alone (warm
       bronze for dealt, cool teal for taken, the app's own gold/teal families). Any replacement for
       either token must keep --text at >=4.5:1, which caps luminance at ~0.138 -- see the .razor.css
       remarks for the full contrast math. */
    --bar-dealt: #6d5436;   /* deep bronze */
    --bar-taken: #2b5f70;   /* deep teal   */

    /* Channel triplets of the tokens above, for translucent uses such as rgba(var(--gold-rgb), 0.15).
       Each moves with its hex twin, so a shadow or glow follows the theme with no second edit. */
    --bg-rgb: 1, 10, 19;
    --panel-rgb: 11, 23, 37;
    --panel-alt-rgb: 16, 32, 47;
    --gold-rgb: 200, 170, 110;
    --gold-bright-rgb: 240, 230, 210;

    /* Theme colours that have no twin above. The glows are the page's and header's soft washes of colour;
       the gem family is the crest's stone; --text-muted and --text-faint are the quieter greys the
       build page's stat lines use (both hold contrast on --panel; --text-faint is deliberately below
       4.5:1 and above 3:1, see BuildStatLine.razor.css). */
    --glow-rgb: 5, 150, 170;
    --glow-low-rgb: 120, 90, 40;
    --gem-1: #5fe3d8;
    --gem-2: #0ac8b9;
    --gem-3: #046b7d;
    --gem-rgb: 10, 200, 185;
    --crest-fill-rgb: 10, 20, 40;
    --text-muted: #8c887b;
    --text-faint: #7a766b;
    --font-display: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
    --font-title: 'Cinzel', 'Trajan Pro', 'Georgia', serif;   /* header title only */
    --font-body: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
}

/* ARAM mode, "Howling Abyss frost". The token NAMES stay --gold, --gold-bright, ... even though the
   values here are blue: 1,359 usages across the stylesheets and components read them, so renaming
   would be a huge, risky diff for no visible gain. Read "--gold" as "the accent metal": Hextech gold in
   ranked, frost in ARAM.
   Deliberately NOT overridden, because they carry meaning and must read the same in both modes: --win,
   --lose, --danger, --warn, --good, --teal, --blue and every --band-* colour (a win is teal and a loss is red
   whichever theme you are in). --bar-dealt and --bar-taken stay too: they still hold --text at 4.5:1
   against the frost --text (checked by ThemeContrastTests). */
[data-mode="aram"] {
    --bg: #060d1f;
    --bg-glow: #0c1a33;
    --panel: #0d1a30;
    --panel-alt: #13233d;
    --border: #24405e;

    --gold: #8fd3f4;
    --gold-bright: #e6f6ff;
    --gold-dark: #3a6d91;
    --gold-deep: #1f3b55;

    --text: #e8f2f8;
    --text-dim: #93a8b8;
    --text-muted: #7f93a3;
    --text-faint: #6a7f91;

    --bg-rgb: 6, 13, 31;
    --panel-rgb: 13, 26, 48;
    --panel-alt-rgb: 19, 35, 61;
    --gold-rgb: 143, 211, 244;
    --gold-bright-rgb: 230, 246, 255;

    --glow-rgb: 70, 150, 210;
    --glow-low-rgb: 58, 109, 145;
    --gem-1: #e6f6ff;
    --gem-2: #8fd3f4;
    --gem-3: #2f6f95;
    --gem-rgb: 143, 211, 244;
    --crest-fill-rgb: 8, 18, 40;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(var(--glow-rgb), 0.16), transparent 70%),
        radial-gradient(ellipse 60% 45% at 50% 105%, rgba(var(--glow-low-rgb), 0.14), transparent 70%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    /* clip, not hidden: hidden on both html and body makes body its own (never-scrolling) scroll
       container, and every position: sticky header then sticks to that instead of the viewport. */
    overflow-x: clip;
}

a {
    color: var(--gold);
}

button {
    font-family: inherit;
}

h1:focus {
    outline: none;
}

/* Gold-rail scrollbar, like the client's panels. */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-glow);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-deep);
    border: 1px solid var(--gold-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Standard clip-rect hiding: content stays in the accessibility tree (screen readers still
   announce it) and in the tab order, it just isn't painted. display: none would pull it out of
   the accessible name entirely, which defeats the point of using this instead of `title` alone. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-danger {
    color: var(--danger);
}

.validation-message {
    color: var(--danger);
    font-size: 0.85rem;
}

.invalid {
    outline: 1px solid var(--danger);
}

/* The Riot ID search pill: region chip | name input (+ ghost tag) | submit, with a suggestion
   dropdown beneath. Global rather than scoped because the same markup renders from
   RiotIdSearchField (nav, Draft Luck landing, shared lane verdict) AND directly from Home, and a
   scoped sheet would have to be copied into each. Behaviour lives in js/riot-id-input.js. */
.riot-id-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    /* Reset because the nav's list cells set uppercase/tracked label text that would otherwise
       leak into the hint and suggestions through inheritance. */
    text-transform: none;
    letter-spacing: normal;
}

.riot-pill {
    display: flex;
    align-items: stretch;
    min-height: 2.75rem;
    background: rgba(var(--bg-rgb), 0.75);
    border: 1px solid var(--border);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.riot-pill:hover {
    border-color: var(--gold-dark);
}

/* The ring is on the pill, not the input: the controls inside have no outline of their own, so one
   continuous ring reads as a single field, and it lights for the select and button too. */
.riot-pill:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.4);
}

/* Home flags a bad ID by class on the input; the global .invalid outline would draw a box inside
   the pill, so the pill's own border carries the signal instead. */
.riot-pill:has(input.invalid) {
    border-color: var(--danger);
}

.riot-pill input.invalid {
    outline: none;
}

.riot-pill-region {
    flex: none;
    min-width: 4.5rem;
    padding: 0 1.7rem 0 0.8rem;
    background-color: var(--panel-alt);
    /* A CSS-only chevron (two angled gradients) instead of a data: URI image, so it takes the
       gold token and needs no extra request or img-src allowance. */
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold) 50%),
        linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% + 1px), calc(100% - 9px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    border: 0;
    border-right: 1px solid var(--gold-deep);
    border-radius: 0;
    color: var(--gold);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    appearance: none;
    outline: none;
}

.riot-pill-region:hover {
    background-color: var(--border);
}

.riot-pill-text {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
}

/* 1rem, not smaller: iOS Safari zooms the page on focus of any input under 16px. */
.riot-pill-text input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.riot-pill-text input::placeholder {
    color: #5c6773;
}

/* Sits over the input's empty tail, never over its text: the script positions it after the typed
   text and clears it when it would not fit. pointer-events none so a click lands in the input. */
.riot-ghost {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
    white-space: pre;
    color: var(--text-dim);
    opacity: 0.6;
    pointer-events: none;
}

.riot-ghost:empty {
    display: none;
}

.riot-pill-submit {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 2.75rem;
    padding: 0 0.8rem;
    background: var(--gold-deep);
    border: 0;
    border-left: 1px solid var(--gold-dark);
    border-radius: 0;
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.riot-pill-submit:hover {
    background: var(--gold-dark);
}

.riot-pill-submit:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: -3px;
}

/* The label is the accessible name at every width (aria-label) but only drawn when the pill has
   room: next to the chip and magnifier it would squeeze the input at phone widths. */
.riot-pill-submit-text {
    display: none;
    white-space: nowrap;
}

@media (min-width: 30rem) {
    .riot-pill-submit-text {
        display: inline;
    }
}

/* The anchor for the dropdown: it has to be the pill's own box, because the field also holds the hint
   line, so anchoring to the field would drop the list below the hint (or, as a flex item's static
   position, on top of the pill). */
.riot-pill-wrap {
    position: relative;
}

/* Absolute so it overlays whatever is below the pill instead of pushing it down. Above page content,
   and inside the nav's dropdown it is layered by that form's own stacking context (see MainLayout). */
.riot-suggest {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: var(--panel-alt);
    border: 1px solid var(--gold-deep);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* Home renders the list without the hidden attribute (so Blazor never owns it); empty means closed. */
.riot-suggest:empty {
    display: none;
}

.riot-suggest li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.riot-suggest li:hover,
.riot-suggest li.riot-suggest-active {
    background: rgba(var(--gold-rgb), 0.14);
}

.riot-suggest li.riot-suggest-active {
    box-shadow: inset 2px 0 0 var(--teal);
}

.riot-suggest-icon {
    flex: none;
    width: 1rem;
    text-align: center;
    color: var(--gold);
}

.riot-suggest-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.riot-suggest-tag {
    flex: none;
    color: var(--text-dim);
}

.riot-suggest-badge {
    flex: none;
    margin-left: auto;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Mode-switch transition (see js/mode-switch.js). A full-screen overlay, created by the script, whose
   clip-path is a slanted band that sweeps across: "in" grows it to cover the page, "out" (on the new
   page) wipes it away in the same direction. Colours are fixed per DESTINATION mode (frost into ARAM,
   Hextech gold into ranked) and so are literals, not theme tokens. Transform-free and fixed, so it can't
   shift layout, and pointer-events: none so it never blocks input. Each half is 350 ms. */
.mode-sweep {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    animation-duration: 350ms;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.45, 0, 0.35, 1);
}

.mode-sweep-to-aram {
    background:
        linear-gradient(115deg, #e6f6ff 0 14%, #bfe6fa 14% 31%, #8fd3f4 31% 52%, #5aa6d0 52% 70%, #8fd3f4 70% 86%, #e6f6ff 86%);
}

.mode-sweep-to-ranked {
    background:
        linear-gradient(115deg, #f0e6d2 0 14%, #e3cf9f 14% 31%, #c8aa6e 31% 52%, #9a7a3a 52% 70%, #c8aa6e 70% 86%, #f0e6d2 86%);
}

.mode-sweep-in {
    animation-name: mode-sweep-in;
}

.mode-sweep-out {
    animation-name: mode-sweep-out;
}

@keyframes mode-sweep-in {
    from { clip-path: polygon(0% 0%, 0% 0%, -25% 100%, -25% 100%); }
    to { clip-path: polygon(-25% 0%, 125% 0%, 100% 100%, -50% 100%); }
}

@keyframes mode-sweep-out {
    from { clip-path: polygon(-25% 0%, 125% 0%, 100% 100%, -50% 100%); }
    to { clip-path: polygon(125% 0%, 125% 0%, 100% 100%, 100% 100%); }
}

@media (prefers-reduced-motion: reduce) {
    .mode-sweep {
        display: none;
    }
}

/* ---- the matchup picker's clash transition (matchup-clash.js) ----
   Global rather than in MatchupPickerCard.razor.css because the script appends the overlay to <body>, where a
   component's scoped CSS cannot reach. Both champions' loading art charge in from the sides (0-350 ms), meet in
   a gold flash with the VS burst and a short shake (350-450 ms), then hold with the names (to ~900 ms) before
   the script navigates. The dark backdrop is opaque from the first frame so the page never shows through. Never
   inserted under prefers-reduced-motion (the script navigates at once), and pointer-events stay on so a second
   click during the 0.9 s cannot reach the page below. */
.clash-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    overflow: hidden;
    background: var(--bg);
    animation: clash-shake 160ms linear 350ms both;
}

.clash-panel {
    position: absolute;
    top: -4%;
    bottom: -4%;
    width: 56%;
    overflow: hidden;
    background: var(--panel);
}

.clash-panel-a {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 88.7% 100%, 0 100%);
    animation: clash-charge-a 350ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.clash-panel-b {
    right: 0;
    clip-path: polygon(11.3% 0, 100% 0, 100% 100%, 0 100%);
    animation: clash-charge-b 350ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.clash-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Faces the other champion, as on the matchup page itself. */
.clash-panel-b .clash-art {
    transform: scaleX(-1);
}

.clash-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--bg-rgb), 0.85), rgba(var(--bg-rgb), 0.1) 55%, rgba(var(--bg-rgb), 0.35));
}

/* Above the vignette (z-index 4), which darkens exactly the edges the names sit at and had washed them to grey. */
.clash-name {
    position: absolute;
    bottom: 12%;
    z-index: 6;
    max-width: 44%;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-bright);
    text-shadow:
        0 3px 0 rgba(var(--bg-rgb), 0.95),
        0 6px 22px rgba(var(--bg-rgb), 1),
        0 0 28px rgba(var(--gold-rgb), 0.75);
}

.clash-name-a {
    left: 5%;
    animation: clash-name-in-a 300ms ease-out 250ms both;
}

.clash-name-b {
    right: 5%;
    text-align: right;
    animation: clash-name-in-b 300ms ease-out 250ms both;
}

.clash-flash {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(circle at 50% 50%, var(--gold-bright) 0, rgba(var(--gold-rgb), 0.85) 18%, rgba(var(--gold-rgb), 0.25) 45%, transparent 70%);
    animation: clash-flash 550ms ease-out 350ms both;
}

.clash-vignette {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(var(--bg-rgb), 0.9));
}

.clash-vs {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 14vw, 9rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--gold-bright);
    text-shadow: 0 0 18px var(--gold), 0 0 48px rgba(var(--gold-rgb), 0.9), 0 6px 24px rgba(var(--bg-rgb), 0.9);
    transform: translate(-50%, -50%) scale(0);
    /* forwards, not both: the burst starts at 0.4 and must stay invisible (scale 0) until the impact. */
    animation: clash-vs 450ms cubic-bezier(0.2, 0.9, 0.3, 1) 350ms forwards;
}

@keyframes clash-charge-a {
    from {
        transform: translateX(-100%) skewX(-8deg);
        filter: blur(6px);
    }

    to {
        transform: none;
        filter: none;
    }
}

@keyframes clash-charge-b {
    from {
        transform: translateX(100%) skewX(-8deg);
        filter: blur(6px);
    }

    to {
        transform: none;
        filter: none;
    }
}

@keyframes clash-flash {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }

    18% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes clash-vs {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
    }

    35% {
        transform: translate(-50%, -50%) scale(1.15);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes clash-shake {
    0%, 100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-6px, 3px);
    }

    50% {
        transform: translate(5px, -4px);
    }

    75% {
        transform: translate(-3px, 2px);
    }
}

@keyframes clash-name-in-a {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@keyframes clash-name-in-b {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clash-overlay {
        display: none;
    }
}