




/* GENERAL PAGE */

* {
    box-sizing: border-box;
}

:root {
    --site-header-height: 68px;
    --brand-display: "Instrument Serif", Georgia, serif;
    --brand-ui: "DM Sans", Arial, sans-serif;
    --brand-ivory: #fff4db;
    --brand-teal: #9edccc;
    --glass-surface: linear-gradient(155deg, rgba(16, 25, 39, 0.62), rgba(8, 14, 25, 0.80) 76%);
}

html {
    scroll-padding-top: calc(var(--site-header-height) + 16px);
}

body {
    margin: 0;
    font-family: var(--brand-ui);
    background: radial-gradient(
        ellipse at 50% 35%,
        #18263D 0%,
        #0D1729 45%,
        #080D18 100%
    );
    color: white;
    min-height: 100vh;
}

button {
    font-family: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--site-header-height);
    padding: 10px clamp(16px, 5vw, 72px);
    background: rgba(8, 17, 29, 0.48);
    backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(158, 220, 204, 0.14);
}

.site-wordmark {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--brand-ivory);
    font-size: clamp(21px, 3vw, 27px);
    font-weight: 700;
    letter-spacing: -0.065em;
    text-decoration: none;
}

.site-wordmark img {
    display: block;
    flex: none;
}

.site-label {
    color: #bccad5;
    font-size: 11px;
    text-align: right;
}

.site-footer {
    padding: 18px 20px;
    background: #0b1522;
    border-top: 1px solid rgba(158, 220, 204, 0.16);
    color: #bccad5;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.site-footer p {
    margin: 0 auto;
    max-width: 1000px;
}

.site-footer a {
    color: var(--brand-teal);
    text-underline-offset: 3px;
}

.container {
    width: min(850px, 92%);
    margin: 100px auto;
    text-align: center;
}

[hidden] {
    display: none !important;
}

.site-header-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px clamp(12px, 2.4vw, 30px);
    text-align: right;
}

.site-directory-link {
    color: var(--brand-ivory);
    font-size: 13px;
    font-weight: 700;
    text-decoration-color: #C8AA6E;
    text-underline-offset: 4px;
}

.site-directory-link:hover,
.directory-back:hover {
    color: var(--brand-teal);
}

.directory-page {
    --result-ui-font: var(--brand-ui);
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.directory-shell {
    width: min(1040px, calc(100% - 32px));
    flex: 1;
    margin: clamp(32px, 6vw, 76px) auto;
}

.directory-title {
    margin: 0 0 20px;
    color: var(--brand-ivory);
    font: 600 clamp(30px, 5vw, 60px) / 1.08 "Cinzel", Georgia, serif;
    text-wrap: balance;
}

.directory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.directory-lanes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    flex: 1 1 320px;
    max-width: 500px;
    gap: 3px;
    padding: 4px;
    border: 1px solid #67583C;
    border-radius: 12px;
    background: #0B1423;
}

.directory-lanes button {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 52px;
    gap: 2px;
    padding: 4px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #BBC7D6;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.directory-lanes button:hover,
.directory-lanes button[aria-pressed="true"] {
    color: #E5D3AA;
    background: #1B2637;
}

.directory-lanes button[aria-pressed="true"] {
    border-color: #8F7548;
}

.directory-lanes svg,
.directory-lane h2 svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.directory-filters input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #8F7548;
    border-radius: 8px;
    color: #EEF3FA;
    background: #111F33;
    color-scheme: dark;
    font: 400 16px / 1.25 var(--brand-ui);
}

.directory-status,
.directory-position {
    margin: 14px 0;
    color: #BBC7D6;
    font-size: 14px;
}

.directory-groups {
    display: grid;
    gap: 28px;
}

.directory-lane {
    padding: clamp(12px, 2.2vw, 24px);
    border: 1px solid rgba(200, 170, 110, 0.24);
    border-radius: 14px;
    background: var(--glass-surface);
}

.directory-lane h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #E5D3AA;
    font: 600 clamp(17px, 2.2vw, 24px) / 1.2 "Cinzel", Georgia, serif;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.7vw, 18px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.directory-card {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: clamp(280px, 34vw, 370px);
    height: 100%;
    overflow: hidden;
    padding: clamp(13px, 1.8vw, 22px);
    border: 1px solid #8F7548;
    border-radius: 12px;
    color: var(--brand-ivory);
    background: radial-gradient(ellipse at top, #304760, #0B1423 70%);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.directory-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, #080E19 0%, #080E19F2 22%, #080E1966 51%, transparent 76%);
}

.directory-card:hover,
.directory-card:focus-visible {
    border-color: #E5C78C;
    box-shadow: 0 0 18px #C8AA6E42;
}

.directory-splash {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
}

.directory-splash-fallback {
    object-position: var(--directory-splash-position, center 25%);
}

.directory-caption {
    display: grid;
    justify-items: start;
    gap: 6px;
}

.directory-caption strong {
    color: var(--brand-ivory);
    font: 600 clamp(22px, 2.6vw, 34px) / 1.08 "Cinzel", Georgia, serif;
}

.directory-card-description {
    color: #DCE3ED;
    font-size: 13px;
    line-height: 1.45;
    text-wrap: pretty;
}

.directory-card-action {
    width: fit-content;
    margin-top: 5px;
    padding: 6px 10px;
    border-radius: 5px;
    background: #E0BD78;
    color: #101725;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
    .directory-grid { grid-template-columns: minmax(0, 1fr); }
}

.directory-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 12px;
    color: #E5C78C;
    font-size: 14px;
    font-weight: 700;
    text-underline-offset: 4px;
}

button.directory-back {
    padding: 0 14px;
    border: 1px solid #67583C;
    border-radius: 8px;
    background: #111F33;
    cursor: pointer;
}

.directory-page,
body:has(.intro-screen:not([hidden]), .match-reveal-stage:not([hidden]), .results-screen:not([hidden])) {
    isolation: isolate;
}

.directory-page::before,
body:has(.intro-screen:not([hidden]), .match-reveal-stage:not([hidden]), .results-screen:not([hidden]))::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 13, 24, 0.25), rgba(8, 13, 24, 0.88)),
        var(--screen-art, url("rift-header.png")) center top / cover no-repeat;
}

body:has(.results-screen:not([hidden]), #directoryDetail:not([hidden]))::before {
    --screen-art: var(--result-art, url("rift-header.png"));
    background-position: center, center 25%;
}


/* HOMEPAGE */

.home-screen {
    --home-artwork: url("homepage-art-duo.png");
    --home-padding: clamp(42px, 8vh, 88px);
    min-height: 100svh;
    width: 100%;
    margin: calc(-1 * var(--site-header-height)) auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--home-padding) + var(--site-header-height)) 20px var(--home-padding);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* HOMEPAGE ARTWORK */

.home-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--home-artwork);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* DARK CINEMATIC OVERLAY */

.home-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 53%, rgba(7, 14, 27, 0.89), rgba(7, 14, 27, 0.65) 32%, transparent 70%),
        linear-gradient(180deg, rgba(5, 10, 20, 0.15), rgba(5, 10, 20, 0.08) 35%, #080d18 100%);
}

/* CENTRAL HOMEPAGE CONTENT */

.home-content {
    width: min(740px, 100%);
    text-align: center;
    font-family: var(--brand-ui);
    animation: screenAppear 0.9s ease;
}

.home-preview {
    display: none;
}

.home-screen:not([hidden]) + .home-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px clamp(20px, 5vw, 72px);
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 60px) 0;
    border-top: 1px solid rgba(158, 220, 204, 0.25);
}

body:has(.home-screen:not([hidden])) {
    background: #080d18;
}

.home-preview h2 {
    margin: 0;
    color: var(--brand-ivory);
    font: 400 clamp(38px, 5vw, 64px) / 1 var(--brand-display);
    letter-spacing: -0.02em;
}

.home-preview p {
    margin: 0;
    max-width: 40ch;
    color: #c6d4e5;
    font: 400 16px / 1.55 var(--brand-ui);
}

/* RECENT MATCHES CAROUSEL */

.home-screen:not([hidden]) + .recent-matches {
    width: min(1260px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(18px, 4vw, 44px);
    padding-block: clamp(24px, 4vw, 42px);
}

.recent-matches-intro h2 {
    font-size: clamp(34px, 4.25vw, 54px);
    line-height: 1.15;
    letter-spacing: normal;
}

.recent-matches-intro p {
    margin-top: 10px;
}

.recent-matches-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 16px;
    margin-bottom: 15px;
}

.recent-matches-heading h3 {
    margin: 0;
    color: var(--brand-ivory);
    font: 400 clamp(27px, 3vw, 36px) / 1.15 var(--brand-display);
}

.recent-matches-heading span,
.recent-match-splash span {
    color: #a7dbcc;
    font: 600 12px / 1.4 var(--brand-ui);
}

.recent-matches-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.recent-matches-viewport::-webkit-scrollbar {
    display: none;
}

.recent-matches-gallery {
    --gallery-gap: clamp(8px, 1.2vw, 12px);
    --gallery-visible-cards: 3;
    --gallery-stride: calc((100% + var(--gallery-gap)) / var(--gallery-visible-cards));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(var(--gallery-stride) - var(--gallery-gap));
    gap: var(--gallery-gap);
}

.recent-match-card {
    overflow: hidden;
    border: 1px solid #344853;
    border-radius: 8px;
    background: #101b28;
}

.recent-match-splash {
    display: grid;
    align-content: end;
    min-height: clamp(102px, 13vw, 138px);
    padding: 6px clamp(5px, 1vw, 10px);
    background-color: #202d40;
    background-image: linear-gradient(0deg, #101b28 3%, #101b2810 88%), var(--recent-splash);
    background-position: center, var(--recent-focus);
    background-size: cover;
}

.recent-match-vayne {
    --recent-splash: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Vayne_0.jpg");
    --recent-focus: 80% 35%;
}

.recent-match-ekko {
    --recent-splash: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Ekko_0.jpg");
    --recent-focus: 67% 34%;
}

.recent-match-leona {
    --recent-splash: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Leona_0.jpg");
    --recent-focus: 78% 24%;
}

.recent-match-shen {
    --recent-splash: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Shen_0.jpg");
    --recent-focus: 70% 32%;
}

.recent-match-kindred {
    --recent-splash: url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Kindred_0.jpg");
    --recent-focus: 65% 35%;
}

.recent-match-splash h4 {
    margin: 0;
    color: var(--brand-ivory);
    font: 400 clamp(22px, 4vw, 30px) / 1.05 var(--brand-display);
}

.recent-match-card p {
    padding: 0 clamp(5px, 1vw, 10px) 9px;
    font-size: 13px;
    line-height: 1.4;
}

[data-recent-repeat] {
    display: none;
}

.recent-matches-viewport[data-loop-ready] {
    overflow: hidden;
    overflow: clip;
}

.recent-matches-viewport[data-loop-ready] .recent-matches-gallery {
    animation: recent-matches-loop 25s ease-in-out -3s infinite paused;
}

.recent-matches-viewport[data-in-view]:not(:focus-within) .recent-matches-gallery {
    animation-play-state: running;
}

.recent-matches-viewport[data-loop-ready] [data-recent-repeat] {
    display: block;
}

@keyframes recent-matches-loop {
    0%, 16% { transform: translateX(0); }
    20%, 36% { transform: translateX(calc(-1 * var(--gallery-stride))); }
    40%, 56% { transform: translateX(calc(-2 * var(--gallery-stride))); }
    60%, 76% { transform: translateX(calc(-3 * var(--gallery-stride))); }
    80%, 96% { transform: translateX(calc(-4 * var(--gallery-stride))); }
    100% { transform: translateX(calc(-5 * var(--gallery-stride))); }
}

@media (max-width: 820px) {
    .home-screen:not([hidden]) + .recent-matches {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .recent-matches-gallery {
        --gallery-visible-cards: 2;
    }
}

/* MAIN TITLE */

.home-content h1 {
    color: var(--brand-ivory);
    font: 700 clamp(40px, 9vw, 116px) / 1.02 var(--brand-ui);
    letter-spacing: -0.045em;
    text-wrap: balance;
    margin: 0 0 22px;
    text-shadow: 0 2px 4px #080d18, 0 10px 32px rgba(4, 9, 18, 0.86);
}

.home-content h1 em {
    color: var(--brand-teal);
    font-style: normal;
}

/* DESCRIPTION */

.home-description {
    max-width: 36ch;
    margin: 0 auto;
    color: #eef3fa;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 600;
    line-height: 1.45;
    text-wrap: balance;
    text-shadow: 0 2px 6px #080d18, 0 4px 18px rgba(4, 9, 18, 0.88);
}

/* ASSESSMENT DETAILS */

.home-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
    color: #D2D9E4;
    font-size: 12px;
}

.detail-separator {
    color: var(--brand-teal);
}

/* HOMEPAGE BUTTON */

#startButton {
    margin-top: 28px;
    padding: 14px 22px;
    background: var(--brand-teal);
    color: #0b1824;
    border: 1px solid #bcf2e3;
    border-radius: 10px;
    font: 700 15px / 1.25 var(--brand-ui);
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

#startButton:focus-visible {
    outline: 2px solid var(--brand-ivory);
    outline-offset: 4px;
}

#startButton span {
    margin-left: 12px;
    font-size: 19px;
    vertical-align: -1px;
}

#startButton:hover {
    background: #c1efe2;
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(200, 170, 110, 0.35);
}


/* INTRO SCREEN */

.intro-screen {
    width: min(900px, 94%);
    margin: 20px auto;
    background: var(--glass-surface);
    border: 1px solid rgba(200, 170, 110, 0.25);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: screenAppear 0.5s ease;
}

.intro-hero {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.intro-hero::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(17, 31, 51, 0.9));
}

.intro-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-content {
    padding: 26px 42px 30px;
    font-family: var(--brand-ui);
    text-align: left;
}

/* INTRO HEADING */

.intro-content > .intro-eyebrow {
    color: #C8AA6E;
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 10px;
}

.intro-content > h1 {
    color: var(--brand-ivory);
    font: 700 clamp(32px, 5vw, 56px) / 1.08 var(--brand-ui);
    letter-spacing: -0.035em;
    text-align: center;
    text-wrap: balance;
    margin: 0 0 10px;
}

.intro-description {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #C5D0DF;
}


/* CATEGORY SECTION */

.category-section {
    margin-top: 18px;
}

.category-section h2 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #C8AA6E;
}

.category-intro {
    font-size: 12px;
    margin: 0 0 10px;
    line-height: 1.5;
}

.category-list {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.category-item:last-child {
    border-bottom: none;
}

.category-number {
    color: #C8AA6E;
    font-size: 13px;
    font-weight: bold;
    min-width: 23px;
    padding-top: 2px;
}

.category-item h3 {
    margin: 0 0 2px;
    color: #E5D3AA;
    font-size: 14px;
}

.category-item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #C5D0DF;
}


/* INTRO STATISTICS */

.intro-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin: 22px 0 12px;
    color: #D6B675;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-align: center;
}

.intro-reminder {
    font-size: 12px;
    line-height: 1.5;
    color: #AAB6C7;
    text-align: center;
    margin: 10px 0 18px;
}

/* INTRO BUTTON */

#beginAssessmentButton {
    display: block;
    margin: 0 auto;
    padding: 13px 34px;
    background: #C8AA6E;
    color: #080D18;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#beginAssessmentButton:hover {
    background: #E0C58D;
    transform: translateY(-2px);
}

#beginAssessmentButton span[aria-hidden] {
    margin-left: 10px;
    font-size: 18px;
    vertical-align: -1px;
}


/* QUIZ SCREEN */

.quiz-screen {
    position: relative;
    z-index: 1;
    margin: 20px auto;
    padding-bottom: 26px;
    overflow: hidden;
    border: 1px solid rgba(200, 170, 110, 0.38);
    border-radius: 10px;
    background: var(--glass-surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.quiz-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #0D1729;
}

.quiz-backdrop .chapter-art {
    inset: 50% auto auto 50%;
    width: max(110vw, 440vh);
    aspect-ratio: 4 / 1;
    transform: translate(-50%, -50%);
    filter: blur(5px) brightness(0.48) saturate(0.8);
}

.quiz-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 24, 0.2), rgba(8, 13, 24, 0.72));
}

.chapter-cue {
    position: fixed;
    z-index: 2;
    inset: auto 0 max(16px, env(safe-area-inset-bottom));
    width: fit-content;
    max-width: 92vw;
    margin: auto;
    padding: 10px 16px;
    color: #F2DDAE;
    background: #111F33;
    border: 1px solid #C8AA6E;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.chapter-banner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 1;
    background: #111F33;
    border-bottom: 1px solid rgba(200, 170, 110, 0.45);
}

.chapter-art {
    position: absolute;
    inset: 0;
    background-image: url("rift-chapters.png");
    background-size: 100% 600%;
    background-repeat: no-repeat;
}

.chapter-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 13, 24, 0.45), transparent 55%);
    pointer-events: none;
}

.sound-toggle {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #DCE3ED;
    background: rgba(8, 13, 24, 0.85);
    border: 1px solid #907B53;
    border-radius: 50%;
    cursor: pointer;
}

.sound-toggle svg {
    width: 22px;
    height: 22px;
}

.sound-toggle:hover,
.sound-toggle[aria-pressed="true"] {
    color: #F2DDAE;
    border-color: #E5D3AA;
}

.sound-toggle:focus-visible {
    outline: 2px solid #F2DDAE;
    outline-offset: 2px;
}

.sound-toggle[aria-pressed="false"] .sound-waves,
.sound-toggle[aria-pressed="true"] .sound-muted {
    display: none;
}

#questionCategory {
    margin: 18px 16px 4px;
    color: #E5D3AA;
    font: 700 clamp(20px, 4vw, 30px) / 1.25 Georgia, serif;
}

#chapterCounter {
    margin: 0 0 5px;
    color: #C8AA6E;
    font-size: 13px;
}

#questionCounter {
    color: #AAB6C7;
    font-size: 12px;
    margin: 0 0 14px;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    margin: 0 clamp(16px, 5vw, 42px) 24px;
}

.progress-track {
    flex: 0 1 0;
    min-width: 8px;
    height: 5px;
    background: #26354A;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #C8AA6E;
    transition: width 0.4s ease;
}

.progress-marker {
    display: grid;
    place-items: center;
    flex: 0 0 16px;
    height: 16px;
    border: 2px solid #546680;
    border-radius: 50%;
    background: #111F33;
    color: transparent;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.progress-marker.reached {
    background: #C8AA6E;
    border-color: #E5D3AA;
    color: #101827;
    box-shadow: 0 0 8px rgba(200, 170, 110, 0.45);
}

.quiz-screen .question-container {
    padding: 0 clamp(16px, 5vw, 42px);
}

#questionText {
    color: #F0E8D7;
    font: 700 clamp(21px, 4vw, 32px) / 1.3 Georgia, serif;
    min-block-size: 3lh;
    margin: 0 0 18px;
    text-wrap: balance;
}


/* ANSWERS */

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-block-size: 68px;
    padding: 12px 16px;
    text-align: left;
    background: linear-gradient(105deg, #1B2B42, #111C2D);
    color: #DCE3ED;
    border: 1px solid #41536B;
    border-radius: 9px;
    font-size: 15px;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.answer-letter {
    display: grid;
    place-items: center;
    inline-size: 30px;
    min-block-size: 26px;
    padding-inline-end: 9px;
    border-inline-end: 1px solid rgba(200, 170, 110, 0.32);
    color: #D7BB83;
    font: 400 15px / 1 Georgia, serif;
}

.answer-button:is(:hover, :focus-visible) .answer-letter,
.answer-button[aria-pressed="true"] .answer-letter {
    border-inline-end-color: rgba(229, 200, 142, 0.65);
    color: #FFF0CD;
}

.answer-indicator {
    display: grid;
    place-items: center;
    inline-size: 22px;
    block-size: 22px;
    border: 1px solid #74849A;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
}

.answer-button:focus-visible {
    outline: 2px solid #F2DDAE;
    outline-offset: 3px;
}

@media (hover: hover) {
    .answer-button:hover {
        background: linear-gradient(105deg, #243A55, #18273C);
        border-color: #C8AA6E;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
        transform: translateY(-2px);
    }
}

.answer-button[aria-pressed="true"] {
    background: linear-gradient(105deg, #3E3223, #242528);
    border-color: #C8AA6E;
    color: #FFF0CD;
    box-shadow: inset 3px 0 #C8AA6E;
}

.answer-button[aria-pressed="true"] .answer-indicator {
    background: #E5C88E;
    border-color: #E5C88E;
    color: #192133;
}

.answer-button[aria-pressed="true"] .answer-indicator::after {
    content: "✓";
}

@media (prefers-reduced-motion: reduce) {
    .answer-button {
        transition: none;
    }

    .answer-button:hover {
        transform: none;
    }
}

#answerFeedback {
    margin-top: 15px;
    color: #C8AA6E;
    font-size: 13px;
}

.quiz-navigation {
    margin-top: 25px;
}

.quiz-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-control {
    padding: 10px 22px;
    background: transparent;
    color: #AAB6C7;
    border: 1px solid #40516A;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.quiz-control:hover {
    color: white;
    border-color: #C8AA6E;
}

.quiz-control:disabled {
    opacity: 0.55;
    cursor: default;
}

#restartAssessmentButton {
    display: block;
    margin: 10px auto 0;
}

.assessment-status,
.result-note {
    color: #C5D0DF;
    font-size: 14px;
    line-height: 1.6;
}

.assessment-status {
    margin: 12px 0 0;
    text-align: center;
}

#beginAssessmentButton:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}


/* RESULTS SCREEN */

.match-reveal-stage {
    display: grid;
    place-items: center;
    min-block-size: calc(100svh - var(--site-header-height));
    padding: clamp(16px, 4vh, 40px) 16px;
}

.match-reveal-stage:has(.is-leaving) {
    position: fixed;
    inset: var(--site-header-height) 0 0;
    z-index: 2;
    pointer-events: none;
}

.match-reveal {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    margin: 0;
    padding: clamp(34px, 6vw, 48px) 18px 34px;
    border: 1px solid #8f7548;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 24%, rgb(25 54 60 / 25%), rgb(11 18 25 / 25%) 68%);
    box-shadow: inset 0 0 0 4px rgba(224, 186, 117, 0.08);
    text-align: center;
    transition: border-color 380ms ease-out, box-shadow 380ms ease-out;
}

.match-reveal[data-state="complete"] {
    border-color: #E5C78C;
    box-shadow: inset 0 0 0 4px #E5C78C26, 0 0 36px #C8AA6E38;
}

.match-reveal.is-leaving {
    opacity: 0;
    transition: opacity 220ms ease-in;
}

.match-reveal-seal {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    aspect-ratio: 1;
    margin: 0 auto 22px;
    border-radius: 50%;
}

.match-reveal-seal img {
    display: block;
}

.match-reveal-seal::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #9EDCCC70;
    border-radius: inherit;
    pointer-events: none;
}

.match-reveal.is-pulsing .match-reveal-seal img {
    animation: match-seal-pulse 440ms ease-in-out;
}

.match-reveal.is-pulsing .match-reveal-seal {
    background: #163B3E;
    box-shadow: 0 0 18px 6px #9EDCCCA8, 0 0 42px 12px #73D6C75C;
}

.match-reveal.is-pulsing .match-reveal-seal::after {
    animation: match-seal-ripple 440ms ease-out;
}

.match-reveal[data-state="complete"] .match-reveal-seal {
    box-shadow: 0 0 42px 14px #E5C78C65, 0 0 78px 20px #C8AA6E30;
    animation: match-seal-glow 800ms ease-out;
}

.match-reveal[data-state="complete"] .match-reveal-seal::after {
    border-color: #E5C78C;
}

@keyframes match-seal-pulse {
    0%, 100% { transform: scale(1); }
    32% { transform: scale(1.16); filter: brightness(1.38) drop-shadow(0 0 9px #9EDCCC); }
}

@keyframes match-seal-ripple {
    0% { transform: scale(1); opacity: 0.8; }
    85% { transform: scale(1.48); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes match-seal-glow {
    0% { box-shadow: 0 0 0 0 #C8AA6E00; }
    42% { box-shadow: 0 0 54px 18px #E5C78C90, 0 0 90px 30px #C8AA6E50; }
}

.match-reveal h1 {
    margin: 0;
    color: var(--brand-ivory);
    font: 700 clamp(25px, 5.8vw, 33px) / 1.15 var(--brand-ui);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.match-reveal-status {
    min-block-size: 2.8em;
    margin: 10px 0 0;
    color: #BBC7D6;
    font-size: 13px;
    line-height: 1.4;
}

.match-reveal[data-state="complete"] .match-reveal-status {
    color: #F2DDAE;
}

.match-reveal-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 0;
    max-width: min(220px, 100%);
}

.match-reveal-steps span {
    --step-color: #52606A;
    display: flex;
    align-items: center;
    flex: 1;
}

.match-reveal-steps span:first-child {
    flex: none;
}

.match-reveal-steps span:not(:first-child)::before {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--step-color);
}

.match-reveal-steps span::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--step-color);
}

.match-reveal-steps span[data-state="active"] {
    --step-color: var(--brand-teal);
}

.match-reveal-steps span[data-state="active"]::after {
    box-shadow: 0 0 10px #9EDCCC;
}

.match-reveal-steps span[data-state="complete"] {
    --step-color: #C8AA6E;
}

.match-reveal[data-state="complete"] .match-reveal-steps span {
    --step-color: #E5C78C;
}

.match-reveal[data-state="complete"] .match-reveal-steps {
    filter: drop-shadow(0 0 5px #C8AA6E80);
}

@media (prefers-reduced-motion: reduce) {
    .match-reveal { transition: none; }

    .match-reveal.is-pulsing .match-reveal-seal img,
    .match-reveal.is-pulsing .match-reveal-seal::after,
    .match-reveal[data-state="complete"] .match-reveal-seal {
        animation: none;
    }
}

.results-screen {
    --result-display-font: "Bricolage Grotesque", var(--brand-ui);
    --result-ui-font: var(--brand-ui);
    width: min(1024px, calc(100% - clamp(24px, 6vw, 64px)));
    margin: 20px auto;
    padding: 0;
    animation: match-results-in 480ms ease-out both;
    font-family: var(--result-ui-font);
}

.results-showcase {
    overflow: hidden;
    padding: clamp(13px, 3vw, 34px);
    border: 1px solid #8f7548;
    border-radius: clamp(12px, 2vw, 22px);
    background:
        linear-gradient(180deg, rgba(7, 13, 23, 0.66), #080e19 75%),
        var(--result-art, url("rift-header.png")) center 30% / cover;
    box-shadow: inset 0 0 0 4px rgba(224, 186, 117, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: match-results-gold 900ms ease-out;
}

@keyframes match-results-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes match-results-gold {
    from, 30% { border-color: #E5C78C; box-shadow: inset 0 0 0 4px #E5C78C26, 0 0 36px #C8AA6E38; }
}

@media (prefers-reduced-motion: reduce) {
    .match-reveal.is-leaving { transition: none; }
    .results-screen,
    .results-showcase { animation: none; }
}

.results-screen button {
    font-family: inherit;
}

@media (min-width: 1440px) {
    .results-screen {
        /* Each side has room for a 160px ad and 24px of spacing on either side. */
        --ad-rail-width: 160px;
        --ad-rail-gap: 24px;
        width: min(1104px, calc(100% - 2 * (var(--ad-rail-width) + 2 * var(--ad-rail-gap))));
    }
}

.lore-setting {
    color: #D6B675;
    font-weight: bold;
}

.lore-biography:empty {
    display: none;
}

.results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: clamp(10px, 2vw, 24px) clamp(4px, 1.5vw, 16px) clamp(18px, 3vw, 30px);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(225, 191, 128, 0.64), rgba(225, 191, 128, 0.06)) 1;
    text-align: left;
}

.result-reveal {
    min-width: 0;
}

.result-completion {
    margin: 0 0 9px;
    color: #efd39b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.results-header h1 {
    color: var(--brand-ivory);
    font: 600 clamp(30px, 4.7vw, 65px) / 1.09 "Cinzel", Georgia, serif;
    letter-spacing: -0.045em;
    margin: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.35);
}

.result-position {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.result-crest {
    display: grid;
    flex: none;
    place-items: center;
    width: 54px;
    aspect-ratio: 1;
    color: #f5d494;
    background: radial-gradient(circle at 50% 15%, #3b3440, #111b2b 72%);
    border: 1px solid #b79259;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px #151c29, 0 0 20px #c89d4829;
}

.result-crest svg {
    width: 29px;
    height: 29px;
}

.result-position p {
    margin: 0 0 3px;
    color: #D6B675;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#resultRole {
    display: block;
    color: #F2DDAE;
    font: 600 clamp(17px, 2.2vw, 24px) / 1.15 var(--result-ui-font);
}

.match-options {
    display: flex;
    gap: clamp(6px, 1.4vw, 16px);
    height: clamp(220px, 36vw, 420px);
    margin-top: clamp(14px, 2.5vw, 24px);
}

.match-option {
    position: relative;
    isolation: isolate;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    padding: clamp(9px, 2vw, 24px) clamp(6px, 1.7vw, 22px);
    color: #F0E8D7;
    background: radial-gradient(ellipse at top, #304760, #0B1423 75%);
    border: 1px solid rgba(210, 188, 147, 0.34);
    border-radius: clamp(8px, 1.2vw, 12px);
    cursor: pointer;
    overflow-wrap: anywhere;
    text-align: left;
    transition: flex-grow 480ms cubic-bezier(.22, .75, .24, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.match-option::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, #080D18 0%, rgba(8, 13, 24, 0.82) 18%, transparent 62%);
}

.match-caption {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: clamp(4px, 1vw, 12px);
}

.match-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.match-rate {
    display: none;
    flex: none;
    gap: 4px;
    padding: 7px clamp(7px, 1.1vw, 12px);
    border: 1px solid rgba(215, 187, 129, 0.46);
    border-radius: 8px;
    background: linear-gradient(155deg, rgba(35, 34, 41, 0.95), rgba(8, 13, 24, 0.95));
    color: #efd39b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.match-option[aria-pressed="true"] .match-rate {
    display: grid;
}

.match-rate-value {
    color: var(--brand-ivory);
    font-size: clamp(17px, 1.9vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.match-rate-count {
    color: #e5eaf4;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.2;
    text-transform: none;
}

.match-rank {
    align-self: flex-start;
    color: #F2DDAE;
    font-size: clamp(8px, 1.25vw, 11px);
    font-weight: 700;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    margin-bottom: 7px;
    padding: 3px 6px;
    background: rgba(8, 13, 24, 0.8);
    border: 1px solid rgba(210, 188, 147, 0.24);
    border-radius: 5px;
}

.match-option:first-child .match-rank {
    color: #191714;
    background: #ead29b;
    border-color: #fff0c8;
}

.match-option strong {
    font: 700 clamp(13px, 2.55vw, 33px) / 1.08 var(--result-display-font);
    letter-spacing: -0.035em;
}

.match-option .champion-icon {
    align-self: center;
    margin: auto 0;
    max-width: 100%;
}

.match-option[aria-pressed="true"],
.match-option:hover {
    color: #F2DDAE;
    border-color: #C8AA6E;
}

.match-option[aria-pressed="true"] {
    flex-grow: 2;
    border-color: #F0CC83;
    box-shadow: 0 0 0 2px rgba(240, 204, 131, 0.20), 0 8px 24px rgba(0, 0, 0, 0.38);
}

.match-option:focus-visible {
    outline: 2px solid #F2DDAE;
    outline-offset: 2px;
}

.champion-splash {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.87);
}

.match-option[aria-pressed="true"] .champion-splash {
    filter: saturate(1.14) contrast(1.05);
}

.match-atmosphere {
    position: absolute;
    inset: 0;
    display: none;
    z-index: -1;
    color: #BDEBFF;
    pointer-events: none;
}

.match-atmosphere.desert-embers {
    color: #FFB04E;
}

.match-option[aria-pressed="true"] .match-atmosphere {
    display: block;
}

.match-atmosphere span {
    position: absolute;
    top: var(--height, 72%);
    left: var(--left, 12%);
    width: var(--size, 4px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #FFF1CF;
    box-shadow: 0 0 5px 2px currentColor, 0 0 16px 4px currentColor;
    animation: match-mote var(--duration, 4.4s) linear var(--delay, -1s) infinite;
}

.match-atmosphere span:nth-child(2) {
    --height: 87%; --left: 34%; --size: 3px; --delay: -2.3s; --duration: 5.8s;
}

.match-atmosphere span:nth-child(3) {
    --height: 55%; --left: 52%; --size: 5px; --delay: -4.4s; --duration: 6s;
}

.match-atmosphere span:nth-child(4) {
    --height: 74%; --left: 67%; --size: 3px; --delay: -0.3s; --duration: 4.9s;
}

.match-atmosphere span:nth-child(5) {
    --height: 63%; --left: 79%; --delay: -2.9s; --duration: 5.4s;
}

@keyframes match-mote {
    0% { opacity: 0; transform: translate(-20px, 32px); }
    20% { opacity: 0.86; }
    65% { opacity: 0.66; }
    100% { opacity: 0; transform: translate(38px, -106px); }
}

@media (prefers-reduced-motion: reduce) {
    .match-option {
        transition: none;
    }

    .match-option[aria-pressed="true"] .match-atmosphere {
        display: none;
    }
}

.match-profile {
    display: grid;
    gap: clamp(12px, 1.6vw, 20px);
    margin-top: clamp(16px, 2.5vw, 26px);
    text-align: left;
}

.profile-panel.community-stats {
    border-color: rgba(215, 187, 129, 0.42);
}

.community-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 14px;
}

.community-stats .community-heading h3,
.community-stats p {
    margin: 0;
}

.community-badge {
    padding: 2px 8px;
    border: 1px solid #937e58;
    border-radius: 20px;
    color: #f0d69c;
    font-size: 11px;
    font-weight: 700;
}

.community-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 12px;
}

.community-metrics > div {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(215, 187, 129, 0.26);
}

.community-metrics dd {
    grid-row: 1;
    margin: 0;
    color: var(--brand-ivory);
    font: 700 clamp(26px, 5vw, 48px) / 1 var(--result-display-font);
    font-variant-numeric: tabular-nums;
}

.champion-icon {
    display: block;
    width: clamp(54px, 12vw, 80px);
    height: auto;
    border: 2px solid #C8AA6E;
    border-radius: 6px;
    margin: 0 auto 8px;
}

.profile-panel {
    min-width: 0;
    padding: clamp(18px, 3vw, 34px);
    background: var(--glass-surface);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(215, 187, 129, 0.28);
    border-radius: clamp(12px, 1.8vw, 20px);
    box-shadow: inset 0 0 0 3px rgba(215, 187, 129, 0.035), 0 12px 30px rgba(0, 0, 0, 0.24);
    color: #DCE3ED;
    font-size: 15px;
    line-height: 1.6;
}

.profile-panel h3,
.profile-panel h4 {
    margin: 0 0 8px;
    color: #E5D3AA;
}

.match-explanation {
    border-color: #8f7548;
    box-shadow: inset 0 0 0 4px rgba(224, 186, 117, 0.08);
}

.match-explanation h2 {
    margin: 0 0 10px;
    color: #E5D3AA;
    font: 600 clamp(20px, 3vw, 30px) / 1.2 "Cinzel", Georgia, serif;
}

.match-explanation p {
    max-width: 70ch;
    margin: 0;
}

.match-explanation-outcome {
    color: #F0E8D7;
    font-size: clamp(16px, 1.7vw, 19px);
}

.match-explanation p + p {
    margin-top: 12px;
}

.match-story {
    grid-column: 1 / -1;
    container-type: inline-size;
    overflow: hidden;
    text-align: left;
    padding: 0;
    border-color: #8f7548;
    background: #0b1320;
    box-shadow: 0 16px 44px #04070cb0;
}

.match-story-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: end;
    min-height: clamp(190px, 37cqi, 355px);
    padding: clamp(20px, 4cqi, 42px);
    background:
        #14212e url("rift-header.png") center 40% / cover;
}

.match-story-art,
.match-story-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.match-story-art {
    z-index: -2;
    object-fit: cover;
    object-position: 66% 34%;
}

.match-story-hero::after {
    content: "";
    z-index: -1;
    background:
        linear-gradient(0deg, #0b1320 1%, #0b13205c 48%, transparent 85%),
        linear-gradient(90deg, #070e19eb, #070e1970 53%, transparent 82%);
}

.match-story .match-story-title {
    min-width: 0;
    margin: 0;
    color: #efd39b;
    font: 700 clamp(12px, 1.6cqi, 15px) / 1.35 var(--result-ui-font, var(--brand-ui));
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.match-story-title span {
    display: block;
    margin-top: 7px;
    color: var(--brand-ivory);
    font: 700 clamp(40px, 9cqi, 100px) / 0.98 var(--result-display-font, var(--brand-ui));
    letter-spacing: -0.055em;
    text-transform: none;
    overflow-wrap: anywhere;
    text-shadow: 0 4px 24px #000a;
}

#resultFeedback:not(:empty) {
    margin-top: 24px;
}

.match-feedback {
    --feedback-gold: #e1c28a;
    --feedback-edge: #334457;
    overflow: hidden;
    border: 1px solid #c8aa6e75;
    border-radius: 16px;
    background: rgb(14 23 37 / 90%);
    color: var(--brand-ivory);
    text-align: left;
}

.match-feedback-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: end;
    min-height: clamp(190px, 28vw, 265px);
    padding: 24px clamp(16px, 5vw, 50px);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.match-feedback-hero::after,
.match-feedback-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(#000 40%, transparent);
}

.match-feedback-hero::after {
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, #080d18f2 4%, #080d18d9 28%, #080d1826 82%);
}

.match-feedback-art {
    z-index: -2;
    object-fit: cover;
    object-position: 70% 40%;
}

.match-feedback-hero h2 {
    margin: 0;
    font: 400 clamp(46px, 8vw, 76px) / 1 var(--brand-display);
    text-shadow: 0 2px 16px #080d18;
}

.match-feedback-hero p {
    margin: 8px 0 0;
    color: var(--feedback-gold);
    font-weight: 600;
}

.match-feedback-body {
    display: grid;
    gap: 20px;
    padding: 0 clamp(16px, 5vw, 50px) clamp(24px, 5vw, 42px);
}

.match-feedback-ratings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.match-feedback .match-feedback-experience {
    grid-column: 1 / -1;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--feedback-edge);
}

.match-feedback fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.match-feedback legend {
    padding: 0;
    margin-bottom: 8px;
    font-weight: 600;
}

.match-feedback-options,
.match-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.match-feedback-experience .match-feedback-options {
    width: fit-content;
    gap: 2px;
    padding: 2px 4px;
    border: 1px solid #c8aa6e55;
    border-radius: 8px;
    background: rgb(14 23 37 / 25%);
}

.match-feedback-choice,
.match-feedback-actions button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 5px 12px;
    border: 1px solid var(--feedback-edge);
    border-radius: 8px;
    background: #162231;
    color: var(--brand-ivory);
    font: inherit;
    cursor: pointer;
}

.match-feedback-star {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    border-radius: 4px;
    color: #8b95a3;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.match-feedback-choice {
    min-width: 66px;
    padding: 6px 14px 8px;
    border-color: #c8aa6e48;
    border-radius: 3px;
    background: linear-gradient(180deg, #1b293a, #111b29);
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.match-feedback-choice::after {
    position: absolute;
    right: 9px;
    bottom: 0;
    left: 9px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--feedback-gold), transparent);
    opacity: 0;
    content: "";
}

.match-feedback-star span {
    transition: color 140ms ease, text-shadow 140ms ease;
}

.match-feedback-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.match-feedback-choice:hover {
    border-color: #c8aa6eb3;
    background: #202b3a;
}

.match-feedback-choice:has(:checked) {
    border-color: #c8aa6eb3;
    background: linear-gradient(180deg, #302c2a, #1c202b);
    color: #ffe7b9;
}

.match-feedback-choice:has(:checked)::after {
    opacity: 1;
}

.match-feedback-star:has(:checked),
.match-feedback-star:has(~ .match-feedback-star :checked) {
    color: var(--feedback-gold);
}

@media (hover: hover) {
    .match-feedback-options:has(.match-feedback-star:hover) .match-feedback-star {
        color: #8b95a3;
    }

    .match-feedback-options:has(.match-feedback-star:hover) .match-feedback-star:is(:hover, :has(~ .match-feedback-star:hover)) {
        color: var(--feedback-gold);
        text-shadow: 0 0 12px #e1c28a55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .match-feedback-star span,
    .match-feedback-choice {
        transition: none;
    }
}

.match-feedback-options label:has(:focus-visible),
.match-feedback :is(textarea, button):focus-visible {
    outline: 2px solid var(--feedback-gold);
    outline-offset: 2px;
}

.match-feedback-written {
    display: grid;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--feedback-edge);
}

.match-feedback-comment {
    display: grid;
    gap: 6px;
}

.match-feedback-comment span {
    color: #c6cbd5;
    font-size: 14px;
}

.match-feedback textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #405267;
    border-radius: 9px;
    background: #0b142080;
    color: var(--brand-ivory);
    font: inherit;
    resize: vertical;
}

.match-feedback-actions button[type="submit"] {
    border-color: var(--feedback-gold);
    background: var(--feedback-gold);
    color: #17140e;
}

.match-feedback-status {
    margin: 0;
    color: var(--feedback-gold);
}

.match-feedback-status:empty {
    display: none;
}

@media (max-width: 620px) {
    .match-feedback-ratings {
        grid-template-columns: minmax(0, 1fr);
    }
}

.match-story-body {
    display: grid;
    gap: clamp(18px, 3vw, 34px);
    padding: 0 clamp(20px, 4cqi, 42px) clamp(20px, 4cqi, 42px);
}

@container (min-width: 610px) {
    .match-story-body:has(.match-story-read + .match-story-payoff) {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: start;
    }
}

.match-story .match-explanation-outcome {
    max-width: 73ch;
    color: #cdd6e2;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.75;
}

.match-story .match-explanation-outcome strong {
    color: #fff1d6;
    font-weight: 600;
}

.match-story-payoff {
    padding: clamp(16px, 2.7vw, 24px) clamp(16px, 3vw, 28px);
    border: 1px solid rgb(215 187 129 / 24%);
    border-radius: 12px;
    background: linear-gradient(160deg, #152030, #0e1725 72%);
    box-shadow: inset 0 1px 0 rgb(215 187 129 / 8%);
}

.match-story .match-story-payoff h3 {
    color: #e5d3aa;
    font: 600 clamp(13px, 1.8vw, 17px) / 1.4 "Cinzel", Georgia, serif;
    letter-spacing: 0.04em;
}

.match-story-payoff p {
    color: #dce3ed;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
}

.profile-panel h3 {
    font: 600 clamp(19px, 2.3vw, 27px) / 1.2 "Cinzel", Georgia, serif;
}

.profile-panel a {
    color: #efd39b;
    text-underline-offset: 4px;
}

.champion-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: clamp(18px, 3vw, 32px);
    align-items: start;
}

.champion-profile-info {
    display: grid;
    gap: 18px;
}

.champion-showcase {
    display: grid;
    gap: 14px;
    width: min(100%, 565px);
    min-width: 0;
}

.champion-style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.champion-style-chips li {
    padding: 3px 9px;
    border: 1px solid #9EDCCC40;
    border-radius: 999px;
    background: #9EDCCC12;
    color: var(--brand-teal);
    font-size: 12px;
}

.champion-rating {
    margin: 10px 0 0;
    color: #F2DDAE;
    font-size: 13px;
}

.champion-rating small {
    display: block;
    margin-top: 3px;
    color: #B6C4D5;
    font-size: 12px;
}

.ability-picker {
    position: absolute;
    inset: 6px auto auto 5px;
    z-index: 2;
    display: grid;
    gap: 1px;
    padding: 2px 5px 2px 2px;
    border-radius: 7px;
    background: linear-gradient(90deg, #09111DB8, #09111D48 80%, transparent);
}

.ability-key {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 39px;
    min-height: clamp(19px, 7.2cqw, 38px);
    padding: 0 4px;
    border: 0;
    border-inline-start: 2px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #F0F4FA;
    cursor: pointer;
    font-weight: 700;
    text-shadow: 0 1px 3px #000;
}

.ability-key img {
    display: block;
    width: clamp(14px, 4.6cqw, 18px);
    height: auto;
    border-radius: 3px;
}

.ability-key:hover {
    background: #EAF3FF19;
}

.ability-key[aria-pressed="true"] {
    border-inline-start-color: #C8AA6E;
    background: linear-gradient(90deg, #E5C78C35, transparent);
    color: #FFF0CD;
}

.ability-key:focus-visible {
    outline: 2px solid #E5C78C;
    outline-offset: 0;
}

.ability-player {
    position: relative;
    container-type: inline-size;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid #344458;
    border-radius: 10px;
    background: #080E19;
}

.ability-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ability-video-hold {
    z-index: 1;
    pointer-events: none;
}

.ability-unavailable {
    padding: 10px 12px 10px 54px;
    text-align: center;
}

.ability-caption {
    margin-top: 10px;
}

.ability-caption h4,
.ability-caption p {
    margin: 0;
}

.ability-caption p {
    margin-top: 5px;
}

.abilities-panel .ability-credit {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .champion-overview {
        grid-template-columns: minmax(0, 1fr);
    }
}

.profile-muted {
    color: #B6C4D5;
    font-size: 13px;
}

.match-summary {
    display: grid;
    gap: clamp(18px, 2.6vw, 30px);
    border-color: rgba(215, 187, 129, 0.46);
    box-shadow: inset 0 2px rgba(239, 211, 155, 0.3), inset 0 0 0 4px rgba(215, 187, 129, 0.05),
        0 14px 36px rgba(0, 0, 0, 0.30);
}

.profile-kicker {
    margin: 0 0 8px;
    color: #efd39b;
    font: 700 11px / 1.4 var(--result-ui-font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.match-summary h2 {
    margin: 0;
    color: var(--brand-ivory);
    font: 600 clamp(30px, 5vw, 56px) / 1.06 "Cinzel", Georgia, serif;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.champion-style {
    margin: 8px 0 0;
    color: #d4e0f0;
    font-size: 15px;
}

.champion-traits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px clamp(20px, 4vw, 54px);
    padding-top: clamp(14px, 2.4vw, 22px);
    border-top: 1px solid rgba(215, 187, 129, 0.22);
}

.champion-trait-group ul {
    display: grid;
    gap: 6px;
    padding-inline-start: 20px;
    margin: 10px 0 0;
}

.champion-trait-group li::marker {
    content: "◆  ";
    color: #d0ab70;
    font-size: 0.63em;
}

.match-summary h3 {
    margin: 0 0 8px;
    font: 700 12px / 1.4 var(--result-ui-font);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.champion-stats-panel {
    padding-top: 14px;
    border-top: 1px solid rgba(215, 187, 129, 0.22);
}

.profile-lore {
    background:
        linear-gradient(90deg, rgba(11, 19, 32, 0.84) 12%, rgba(11, 19, 32, 0.78) 54%, rgba(11, 19, 32, 0.53)),
        var(--result-art, url("rift-header.png")) center / cover;
}

.profile-lore p {
    max-width: 68ch;
}

.radar-panel {
    min-width: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(215, 187, 129, 0.22);
}

.radar-comparison {
    margin-top: 12px;
}

.overall-fit {
    padding-top: 13px;
    border-top: 1px solid rgba(215, 187, 129, 0.22);
}

.overall-fit-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

.match-summary .overall-fit h3 {
    margin: 0;
}

.overall-fit-headline strong {
    font: 700 clamp(22px, 4vw, 32px) / 1 var(--result-display-font);
}

.overall-fit-score {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.overall-fit-score span {
    color: #B6C4D5;
    font-size: 12px;
}

.overall-fit-meter {
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 9px;
    appearance: none;
    background: #283747;
    border-radius: 8px;
    overflow: hidden;
}

.overall-fit-meter::-webkit-meter-bar {
    height: 5px;
    border: 0;
    background: #283747;
}

.overall-fit-meter::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, #AA8A52, #E5C78C);
}

.overall-fit-meter::-moz-meter-bar {
    background: linear-gradient(90deg, #AA8A52, #E5C78C);
}

.overall-fit-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12px;
}

.overall-fit-components > div {
    padding-inline-start: 8px;
    border-inline-start: 1px solid #C8AA6E36;
}

.overall-fit-components dt,
.overall-fit > p {
    color: #B6C4D5;
}

.overall-fit-components dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.overall-fit > p {
    margin: 8px 0 0;
    font-size: 11px;
}

.overall-fit-headline strong,
.radar-fit,
.match-fit {
    color: #F2DDAE;
    font-variant-numeric: tabular-nums;
}

.radar-explanation {
    margin: 3px 0 0;
}

.match-fit {
    font-size: 12px;
    font-weight: 700;
}

.radar-comparison.has-chart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 3vw, 30px);
}

.radar-stage {
    min-width: 0;
    border: 1px solid #D4B5752E;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, #202C38 0%, #0B1420 74%);
}

.match-radar {
    display: block;
    width: min(100%, 350px);
    height: auto;
    margin: 0 auto;
}

.legend-player { color: var(--brand-teal); }
.legend-champion { color: #e7bc74; }

.radar-values {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.35;
}

.radar-values caption {
    caption-side: bottom;
    padding-top: 10px;
    color: #b6c4d5;
    font-size: 11px;
    text-align: left;
}

.radar-values th,
.radar-values td {
    padding: 8px 4px;
    border-bottom: 1px solid rgba(215, 187, 129, 0.15);
    text-align: right;
    overflow-wrap: anywhere;
}

.radar-trait {
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.radar-trait:hover,
.radar-trait[aria-pressed="true"] {
    border-color: #C8AA6E5E;
    background: #C8AA6E1A;
    color: var(--brand-ivory);
}

.radar-trait:focus-visible {
    outline: 2px solid #E5C78C;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .radar-comparison.has-chart {
        grid-template-columns: minmax(0, 1fr);
    }
}

.radar-values th:first-child {
    width: 40%;
    padding-left: 0;
    text-align: left;
}

.radar-values thead th {
    border-bottom-color: rgba(215, 187, 129, 0.38);
    font-weight: 700;
}

.radar-values thead .legend-player::before,
.radar-values thead .legend-champion::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 5px;
    vertical-align: 0.1em;
    border-radius: 50%;
    background: currentColor;
}

.radar-values tbody th {
    color: #e8e1d3;
    font-weight: 500;
}

.radar-values td {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.radar-values tr.is-highlighted {
    background: linear-gradient(90deg, #C8AA6E20, #C8AA6E09);
}

.champion-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px clamp(12px, 2.8vw, 30px);
    margin: 9px 0 0;
}

.champion-stats > div {
    display: grid;
    gap: 4px;
    padding: 3px 0 3px 11px;
    border-inline-start: 1px solid rgba(215, 187, 129, 0.28);
}

.champion-stats dt {
    color: #d5dfed;
    font-size: 12px;
    line-height: 1.25;
}

.champion-stats dd {
    grid-row: 1;
    margin: 0;
    color: var(--brand-ivory);
    font: 700 clamp(19px, 2.1vw, 27px) / 1 var(--result-display-font);
    font-variant-numeric: tabular-nums;
}

#reviewAnswersButton {
    padding: 10px 22px;
    background: transparent;
    color: #E5D3AA;
    border: 1px solid rgba(215, 187, 129, 0.42);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

#reviewAnswersButton:hover {
    border-color: #C8AA6E;
}


/* ANIMATIONS */

@keyframes screenAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .home-screen {
        min-height: auto;
        margin-top: 0;
        padding: max(184px, 56vw) 16px 48px;
        background: #080d18;
    }

    .home-screen::before {
        z-index: -1;
        background-size: 100% auto;
        background-position: center top;
        mask-image: linear-gradient(180deg, #000 36vw, transparent 56vw);
    }

    .home-screen::after {
        inset: -24px;
        z-index: -2;
        background:
            linear-gradient(180deg, rgba(8, 13, 24, 0.62), rgba(8, 13, 24, 0.76) 72%, #080d18 94%),
            var(--home-artwork) center top / cover no-repeat;
        filter: blur(22px);
    }

    .home-content h1 {
        font-size: clamp(52px, 14vw, 84px);
    }

    .home-screen:not([hidden]) + .home-preview {
        grid-template-columns: minmax(0, 1fr);
    }

    .intro-screen {
        width: 96%;
    }

    .intro-hero {
        height: 175px;
    }

    .intro-content {
        padding: 22px 18px;
    }

    .intro-content > h1 {
        font-size: clamp(36px, 8vw, 48px);
    }

    .intro-stats {
        gap: 10px 16px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .category-item {
        gap: 10px;
    }

    #questionText {
        font-size: 21px;
        min-block-size: 4lh;
    }

    .answer-button {
        gap: 10px;
        padding: 12px;
        font-size: 14px;
    }

    .champion-traits {
        grid-template-columns: 1fr;
    }

    .champion-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: clamp(210px, 62vw, 310px) clamp(126px, 36vw, 190px);
        height: auto;
    }

    .match-option[aria-pressed="true"] {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .match-option[aria-pressed="false"] {
        grid-row: 2;
    }

    .match-option strong {
        font-size: clamp(16px, 4.5vw, 25px);
    }
}

@media (max-width: 380px) {
    #questionText {
        min-block-size: 5lh;
    }
}







