/* =========================================================
   RUNES OF WYRD: GLOBAL WEBSITE
   ========================================================= */

:root {
    --site-black: #050709;
    --site-background: #090d11;
    --site-panel: rgba(13, 18, 23, 0.92);

    --site-gold: #c7a45b;
    --site-gold-light: #ead9a9;
    --site-gold-dark: #6f5429;

    --site-text: #ece8dc;
    --site-text-muted: #aaa79e;

    --site-border: rgba(199, 164, 91, 0.38);

    --site-content-width: 1240px;
    --site-header-height: 88px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    color: var(--site-text);

    background-color: var(--site-black);
    background-image:
        linear-gradient(
            180deg,
            rgba(5, 7, 9, 0.38),
            rgba(5, 7, 9, 0.68)
        ),
        radial-gradient(
            circle at 50% 35%,
            rgba(9, 13, 17, 0.08) 0,
            rgba(9, 13, 17, 0.28) 58%,
            rgba(5, 7, 9, 0.62) 100%
        ),
        url("../img/site/backgrounds/nine_worlds_background.webp");
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: center top;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a[href],
button:not(:disabled),
select,
summary,
label[for],
input[type="button"],
input[type="checkbox"],
input[type="radio"],
input[type="reset"],
input[type="submit"],
input[type="range"],
[role="button"] {
    cursor: pointer;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.site-background {
    position: fixed;
    z-index: -1;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(90deg,
            transparent 49.8%,
            rgba(199, 164, 91, 0.035) 50%,
            transparent 50.2%),
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 8px);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: var(--site-header-height);
    gap: 20px;
    padding: 0 28px;

    border-bottom: 1px solid var(--site-border);

    background:
        linear-gradient(180deg,
            rgba(8, 11, 15, 0.98),
            rgba(8, 11, 15, 0.92));

    backdrop-filter: blur(12px);
}

.site-logo {
    display: flex;
    align-items: center;

    gap: 14px;
}

.site-logo-rune {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold);
    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(199, 164, 91, 0.2),
            transparent 68%);

    box-shadow:
        0 0 22px rgba(199, 164, 91, 0.12),
        inset 0 0 14px rgba(199, 164, 91, 0.08);

    font-size: 25px;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo-text strong {
    color: var(--site-gold-light);

    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-logo-text small {
    margin-top: 3px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-width: 0;

    flex: 1;
    gap: 0;
}

.site-navigation a {
    position: relative;

    display: flex;
    min-height: 34px;
    align-items: center;

    padding: 0 clamp(8px, 0.85vw, 14px);

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;

    transition:
        color 160ms ease,
        text-shadow 160ms ease;
}

.site-navigation > a + a::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;

    width: 1px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(199, 164, 91, 0.3),
            transparent
        );

    content: "";
}

.site-navigation a:not(.navigation-play)::after {
    position: absolute;

    right: 50%;
    bottom: -9px;
    left: 50%;

    height: 1px;

    content: "";

    background: var(--site-gold);

    opacity: 0;

    transition:
        right 160ms ease,
        left 160ms ease,
        opacity 160ms ease;
}

.site-navigation a:hover {
    color: var(--site-gold-light);
}

.site-navigation a:hover::after {
    right: 0;
    left: 0;

    opacity: 1;
}

.site-navigation .navigation-play {
    padding: 12px 20px;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold-dark);

    background:
        linear-gradient(135deg,
            rgba(199, 164, 91, 0.16),
            rgba(199, 164, 91, 0.04));

    box-shadow:
        inset 0 0 14px rgba(199, 164, 91, 0.05);
}

.site-navigation .navigation-play:hover {
    border-color: var(--site-gold);

    box-shadow:
        0 0 20px rgba(199, 164, 91, 0.12),
        inset 0 0 18px rgba(199, 164, 91, 0.08);
}

/* =========================================================
   CONTENT
   ========================================================= */

.site-content {
    min-height: calc(100vh - var(--site-header-height));
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    display: flex;
    justify-content: center;

    gap: 14px;

    padding: 28px 20px;

    color: var(--site-text-muted);

    border-top: 1px solid var(--site-border);

    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer-separator {
    color: var(--site-gold);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .site-header {
        position: relative;

        flex-direction: column;

        gap: 20px;

        padding: 22px;
    }

    .site-navigation {
        flex-wrap: wrap;
        justify-content: center;

        width: 100%;
        gap: 4px 0;
    }

    .site-navigation > a + a::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-logo-text strong {
        font-size: 15px;
    }

    .site-navigation {
        flex-direction: column;

        width: 100%;
    }

    .site-navigation a {
        text-align: center;
    }
}

/* =========================================================
   HOME: HERO BANNER
   ========================================================= */

.hero-banner {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.9fr) minmax(500px, 1.1fr);
    align-items: center;

    min-height: calc(100vh - var(--site-header-height));
    padding:
        72px max(48px, calc((100vw - var(--site-content-width)) / 2));

    overflow: hidden;

    border-bottom: 1px solid var(--site-border);
}

.hero-banner::before {
    position: absolute;
    z-index: -1;

    inset: 0;

    content: "";

    background:
        linear-gradient(90deg,
            rgba(5, 7, 9, 0.98) 0%,
            rgba(5, 7, 9, 0.9) 42%,
            rgba(5, 7, 9, 0.52) 72%,
            rgba(5, 7, 9, 0.82) 100%),
        url("../img/ui/board_game.png") center / cover no-repeat;

    filter:
        saturate(0.62) brightness(0.42);
}

.hero-banner::after {
    position: absolute;
    z-index: -1;

    inset: 0;

    content: "";

    background:
        linear-gradient(180deg,
            transparent 60%,
            var(--site-black) 100%);
}

.hero-banner-glow {
    position: absolute;
    z-index: -1;

    top: 50%;
    right: 11%;

    width: 540px;
    height: 540px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(91, 132, 153, 0.2),
            rgba(199, 164, 91, 0.08) 38%,
            transparent 70%);

    transform: translateY(-50%);

    filter: blur(16px);
}

.hero-banner-content {
    position: relative;
    z-index: 10;

    max-width: 650px;
}

.hero-banner-eyebrow {
    margin: 0 0 22px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-banner-title {
    max-width: 720px;
    margin: 0;

    color: var(--site-text);

    font-size: clamp(43px, 5vw, 75px);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: -0.035em;

    text-shadow:
        0 4px 24px rgba(0, 0, 0, 0.82);
}

.hero-banner-title span {
    display: block;

    margin-top: 13px;

    color: var(--site-gold-light);

    font-style: italic;
}

.hero-banner-description {
    max-width: 630px;
    margin: 30px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.hero-banner-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 36px;
}

.site-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    min-height: 50px;
    padding: 14px 26px;

    appearance: none;
    border-radius: 0;

    clip-path: polygon(
        10px 0,
        calc(100% - 4px) 0,
        100% 4px,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        4px 100%,
        0 calc(100% - 4px),
        0 10px
    );

    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease,
        transform 180ms ease;
}

.site-button:hover {
    filter: brightness(1.12);
    transform:
        translateY(-2px)
        scale(1.015);
}

.site-button:active {
    filter: brightness(0.92);
    transform:
        translateY(1px)
        scale(0.985);
}

.site-button:disabled,
.site-button[aria-disabled="true"] {
    cursor: not-allowed;
    filter: grayscale(0.45);
    opacity: 0.42;
    transform: none;
}

.site-button:hover {
    transform: translateY(-2px);
}

.site-button-primary {
    color: #0b0d0f;

    border: 1px solid var(--site-gold-light);

    background:
        linear-gradient(135deg,
            var(--site-gold-light),
            var(--site-gold));

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(199, 164, 91, 0.11);
}

.site-button-primary:hover {
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.42),
        0 0 30px rgba(199, 164, 91, 0.2);
}

.site-button-secondary {
    color: var(--site-gold-light);

    border: 1px solid var(--site-border);

    background: rgba(6, 9, 12, 0.62);
}

.site-button-secondary:hover {
    border-color: var(--site-gold);
    background: rgba(199, 164, 91, 0.08);
}

.hero-banner-features {
    display: flex;

    gap: 42px;

    margin-top: 50px;
    padding-top: 24px;

    border-top: 1px solid var(--site-border);
}

.hero-feature {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.hero-feature strong {
    color: var(--site-gold-light);

    font-size: 25px;
    font-weight: 400;
}

.hero-feature span {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* =========================================================
   HERO CARD SHOWCASE
   ========================================================= */

.hero-card-showcase {
    position: relative;

    width: min(100%, 720px);
    height: 690px;
    margin-left: auto;

    perspective: 1600px;
}

.showcase-card {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 290px;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    border: 1px solid rgba(234, 217, 169, 0.35);
    border-radius: 8px;

    background: #080b0e;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.72),
        0 0 25px rgba(199, 164, 91, 0.08);

    transform-origin: center bottom;

    transition:
        transform 300ms ease,
        filter 300ms ease,
        box-shadow 300ms ease;
}

.showcase-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.showcase-card-outer-left {
    z-index: 1;

    transform:
        translate(-125%, -45%) rotate(-14deg) scale(0.78);

    filter:
        brightness(0.62) saturate(0.75);
}

/* =========================================================
   PASSIVE CHAMPIONSHIP
   ========================================================= */

.championship-page {
    display: flex;
    flex-direction: column;
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 90px;
    color: #e8dfc8;
}

.championship-top-grid {
    order: 1;
}

.championship-error {
    order: 2;
}

.championship-registration-panel {
    order: 3;
}

.championship-competition-grid {
    order: 4;
}

.championship-dashboard {
    order: 5;
}

.championship-principles {
    order: 6;
}

.championship-groups-overview {
    order: 7;
}

.championship-pyramid-section {
    order: 8;
}

.championship-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.championship-top-grid.has-final-results {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
}

.championship-page .site-button {
    appearance: none;
    border: 1px solid rgba(199, 164, 91, 0.58);
    background: linear-gradient(135deg, #16150f, #0a1116);
    color: #ead79c;
    cursor: pointer;
}

.championship-page .site-button:hover {
    border-color: #dfc16d;
    background: linear-gradient(135deg, #242014, #101b22);
    color: #fff0bd;
}

.championship-page .site-button-primary {
    border-color: #d2ae53;
    background: linear-gradient(135deg, #b68c35, #6f4f18);
    color: #0a0c0d;
}

.championship-page .site-button-primary:hover {
    background: linear-gradient(135deg, #d3b45f, #8a6420);
    color: #050708;
}

.championship-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
    gap: 24px;
    align-items: center;
    overflow: hidden;
    padding: 20px 24px;
    border: 1px solid rgba(199, 164, 91, 0.38);
    background:
        radial-gradient(circle at 78% 28%,
            rgba(77, 143, 173, 0.2),
            transparent 31%),
        linear-gradient(135deg,
            rgba(11, 17, 23, 0.98),
            rgba(5, 9, 13, 0.98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.championship-hero::before {
    position: absolute;
    top: -210px;
    right: -90px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(199, 164, 91, 0.14);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 42px rgba(199, 164, 91, 0.018),
        inset 0 0 0 84px rgba(90, 158, 190, 0.025);
    content: "";
    pointer-events: none;
}

.championship-eyebrow {
    margin: 0 0 0.7rem;
    color: #c5a45c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.championship-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #f1e4c1;
    font-family: Georgia, serif;
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    font-weight: 400;
    line-height: 1;
}

.championship-introduction {
    max-width: 820px;
    margin: 0.65rem 0 0;
    color: rgba(232, 223, 200, 0.7);
    font-size: 0.78rem;
    line-height: 1.45;
}

.championship-season-seal {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(115, 185, 216, 0.3);
    background: rgba(8, 18, 26, 0.76);
}

.championship-season-seal span,
.championship-season-seal small {
    color: rgba(210, 228, 234, 0.62);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.championship-season-seal strong {
    color: #dcecf1;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
}

.championship-principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 1rem;
    background: rgba(199, 164, 91, 0.22);
}

.championship-principles article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    background: #080d11;
}

.championship-principles article > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(199, 164, 91, 0.34);
    border-radius: 50%;
    color: #e3c877;
    font-family: Georgia, serif;
    font-size: 0.9rem;
}

.championship-principles h2 {
    margin: 0;
    color: #e8dfc8;
    font-family: Georgia, serif;
    font-size: 0.82rem;
    font-weight: 400;
}

.championship-principles p {
    margin: 0.35rem 0 0;
    color: rgba(232, 223, 200, 0.56);
    font-size: 0.66rem;
    line-height: 1.35;
}

.championship-error {
    margin: 1.4rem 0 0;
    padding: 1rem 1.2rem;
    border-left: 2px solid #c45c4d;
    background: rgba(145, 45, 36, 0.12);
    color: #e4a499;
}

.championship-registration-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(30px, 6vw, 90px);
    align-items: center;
    margin-top: 2rem;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(199, 164, 91, 0.24);
    background:
        linear-gradient(110deg,
            rgba(199, 164, 91, 0.06),
            transparent 45%),
        rgba(7, 11, 15, 0.88);
}

.championship-registration-panel h2,
.championship-dashboard h2,
.championship-standing-panel h2,
.championship-calendar-panel h2,
.championship-pyramid-section h2 {
    margin: 0;
    color: #f0e3c1;
    font-family: Georgia, serif;
    font-weight: 400;
}

.championship-registration-panel h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.championship-registration-panel > div > p:not(.championship-eyebrow) {
    max-width: 700px;
    color: rgba(232, 223, 200, 0.68);
    line-height: 1.65;
}

.championship-registration-countdown {
    width: fit-content;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(199, 164, 91, 0.3);
    background: rgba(199, 164, 91, 0.08);
    color: #d9bd77;
    font-family: Georgia, serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.025em;
}

.championship-assignment-notice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(199, 164, 91, 0.24);
    background: rgba(7, 11, 15, 0.88);
}

.championship-assignment-notice p {
    margin: 0;
}

.championship-deck-form {
    display: grid;
    gap: 0.7rem;
}

.championship-deck-form label {
    color: #c8aa63;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.championship-deck-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 2.6rem 0 0.9rem;
    border: 1px solid rgba(199, 164, 91, 0.32);
    border-radius: 0;
    background: #080d11;
    color: #eadfbe;
}

.championship-deck-form small {
    color: rgba(232, 223, 200, 0.5);
    line-height: 1.45;
}

.championship-deck-form button {
    justify-self: start;
    margin-top: 0.35rem;
}

.championship-default-team {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(240px, 340px);
    align-items: center;
    gap: 20px;
    padding: 12px 18px;
    border: 1px solid rgba(202, 166, 83, 0.24);
    background:
        linear-gradient(
            110deg,
            rgba(17, 24, 29, 0.96),
            rgba(7, 12, 16, 0.96)
        );
}

.championship-default-team .championship-eyebrow {
    margin: 0 0 3px;
    font-size: 0.55rem;
}

.championship-default-team h2 {
    margin: 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
}

.championship-default-team-form {
    gap: 0.3rem;
}

.championship-default-team-form label {
    font-size: 0.55rem;
    letter-spacing: 0.09em;
}

.championship-default-team-form select {
    min-height: 34px;
    padding: 0 2rem 0 0.65rem;
    font-size: 0.7rem;
    color-scheme: dark;
    cursor: pointer;
}

.championship-default-team-form select option {
    background: #081116;
    color: rgba(232, 223, 200, 0.88);
}

.championship-default-team-form select option:checked {
    background: #163746;
    color: #d5f3ff;
}

.championship-default-team-form[aria-busy="true"] select {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 800px) {
    .championship-default-team {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.championship-no-deck {
    padding: 1.4rem;
    border: 1px solid rgba(199, 164, 91, 0.22);
    background: rgba(3, 7, 10, 0.54);
}

.championship-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.championship-dashboard > article {
    min-height: 165px;
    padding: 1rem;
    border: 1px solid rgba(199, 164, 91, 0.2);
    background: rgba(7, 11, 15, 0.88);
}

.championship-dashboard > article p:not(.championship-eyebrow) {
    color: rgba(232, 223, 200, 0.64);
    line-height: 1.55;
}

.championship-dashboard > article > small {
    color: #7ab6cf;
}

.championship-position-card {
    position: relative;
    overflow: hidden;
}

.championship-division-mark {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 1px solid rgba(199, 164, 91, 0.32);
    border-radius: 50%;
    background: rgba(199, 164, 91, 0.045);
}

.championship-division-mark span {
    align-self: end;
    color: rgba(232, 223, 200, 0.48);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.championship-division-mark strong {
    align-self: start;
    color: #e5c976;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.championship-next-match {
    background:
        radial-gradient(circle at 85% 15%,
            rgba(83, 163, 199, 0.15),
            transparent 34%),
        rgba(7, 11, 15, 0.88) !important;
}

.championship-competition-grid {
    display: grid;
    grid-template-columns: minmax(470px, 0.72fr) minmax(0, 1.28fr);
    gap: 1rem;
    margin-top: 1rem;
}

.championship-standing-panel,
.championship-calendar-panel {
    border: 1px solid rgba(199, 164, 91, 0.2);
    background: rgba(7, 11, 15, 0.88);
}

.championship-standing-panel > header,
.championship-calendar-panel > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    border-bottom: 1px solid rgba(199, 164, 91, 0.16);
}

.championship-standing-panel > header > span {
    color: rgba(232, 223, 200, 0.5);
    font-size: 0.7rem;
}

.championship-table-wrapper {
    overflow-x: auto;
}

.championship-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}

.championship-table th,
.championship-table td {
    padding: 0.86rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: rgba(232, 223, 200, 0.7);
    text-align: center;
}

.championship-table th:nth-child(2),
.championship-table td:nth-child(2) {
    text-align: left;
}

.championship-table thead th {
    color: rgba(199, 164, 91, 0.72);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.championship-table tbody td:first-child {
    color: #d5b762;
    font-family: Georgia, serif;
    font-size: 1.05rem;
}

.championship-table td small {
    display: block;
    margin-top: 0.2rem;
    color: rgba(232, 223, 200, 0.4);
}

.championship-table tr.is-current-player {
    background: rgba(72, 150, 185, 0.11);
    box-shadow: inset 2px 0 #68afd0;
}

.championship-table tr.is-empty {
    opacity: 0.42;
}

.championship-fixture-list {
    max-height: 530px;
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: rgba(199, 164, 91, 0.45) transparent;
    scrollbar-width: thin;
}

.championship-matchday {
    margin-bottom: 0.8rem;
    border: 1px solid rgba(199, 164, 91, 0.18);
    background: rgba(4, 8, 11, 0.72);
}

.championship-matchday:last-child {
    margin-bottom: 0;
}

.championship-matchday > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(199, 164, 91, 0.16);
    background: linear-gradient(
        90deg,
        rgba(199, 164, 91, 0.12),
        rgba(199, 164, 91, 0.025)
    );
}

.championship-matchday > header strong {
    color: #d7bd70;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.championship-matchday > header time {
    color: rgba(232, 223, 200, 0.56);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.championship-fixture-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0.8rem;
    align-items: center;
    min-height: 84px;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.championship-fixture-versus-line {
    display: grid;
    grid-template-columns:
        auto 86px 54px 86px auto;
    align-items: center;
    justify-content: start;
    gap: 0.45rem;
    min-width: 0;
}

.championship-fixture-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    text-align: center;
}

.championship-player-profile {
    display: flex;
    max-width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
}

.championship-player-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(199, 164, 91, 0.38);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%,
            rgba(104, 175, 208, 0.2),
            rgba(7, 11, 15, 0.96));
    box-shadow: 0 0 0 3px rgba(199, 164, 91, 0.045);
}

.championship-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.championship-player-avatar b {
    color: #ddc57f;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
}

.championship-fixture-player strong {
    max-width: 100%;
    color: rgba(232, 223, 200, 0.68);
    font-family: Georgia, serif;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.championship-fixture-player.is-winner .championship-player-avatar {
    border-color: rgba(236, 216, 143, 0.9);
    box-shadow:
        0 0 0 3px rgba(199, 164, 91, 0.08),
        0 0 18px rgba(216, 178, 79, 0.25);
}

.championship-player-profile:hover
.championship-player-avatar,
.championship-player-profile:focus-visible
.championship-player-avatar {
    border-color: rgba(236, 216, 143, 0.95);
    box-shadow:
        0 0 0 3px rgba(199, 164, 91, 0.1),
        0 0 20px rgba(216, 178, 79, 0.28);
}

.championship-player-profile:focus-visible {
    outline: 1px solid rgba(236, 216, 143, 0.75);
    outline-offset: 4px;
}

.championship-fixture-player.is-winner strong {
    color: #ecd88f;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(216, 178, 79, 0.2);
}

.championship-fixture-result {
    display: grid;
    justify-items: center;
    gap: 0.15rem;
    min-width: 48px;
}

.championship-fixture-result b {
    color: #e8d89f;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.championship-fixture-result small {
    color: #c9b98f;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.championship-fixture-team-cards {
    display: flex;
    gap: 0.15rem;
}

.championship-fixture-team-cards.is-home {
    justify-content: flex-end;
}

.championship-fixture-team-cards.is-away {
    justify-content: flex-start;
}

.championship-fixture-team-cards span {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(199, 164, 91, 0.24);
    background: rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

.championship-fixture-team-cards img.championship-hero-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.championship-hero-card-preview {
    display: none;
}

.championship-hero-preview-trigger {
    cursor: zoom-in;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.championship-hero-preview-trigger:hover,
.championship-hero-preview-trigger:focus-visible {
    z-index: 2;
    border-color: rgba(229, 201, 118, 0.8);
    box-shadow: 0 0 14px rgba(199, 164, 91, 0.3);
    outline: none;
    transform: translateY(-2px) scale(1.08);
}

.championship-floating-card-preview {
    position: fixed;
    z-index: 10000;
    display: block;
    width: 230px;
    height: 322px;
    border: 1px solid rgba(229, 201, 118, 0.72);
    border-radius: 7px;
    background: #05080b;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.88),
        0 0 24px rgba(199, 164, 91, 0.2);
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
    transition:
        opacity 140ms ease,
        transform 140ms ease;
}

.championship-floating-card-preview.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.championship-fixture-team-cards span small {
    position: absolute;
    z-index: 1;
    top: 1px;
    left: 2px;
    color: #f0d98d;
    font-size: 0.45rem;
    line-height: 1;
    text-shadow: 0 1px 2px #000;
}

.championship-fixture-match:last-child {
    border-bottom: 0;
}

.championship-review-link {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(105, 177, 209, 0.34);
    color: #8bc7df;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.championship-review-link:hover {
    border-color: rgba(132, 207, 239, 0.72);
    background: rgba(77, 157, 193, 0.12);
    color: #c3ecfc;
}

.championship-fixture-match form {
    margin: 0;
}

.championship-fixture-team-form {
    display: grid;
    gap: 0.3rem;
    width: min(190px, 21vw);
    margin: 0;
}

.championship-fixture-team-form label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.championship-fixture-team-form.is-default label {
    color: rgba(199, 164, 91, 0.72);
}

.championship-fixture-team-form.is-specific label {
    color: #8bcbe5;
}

.championship-fixture-team-form select {
    width: 100%;
    min-width: 0;
    min-height: 31px;
    padding: 0 1.8rem 0 0.55rem;
    border: 1px solid rgba(199, 164, 91, 0.36);
    background: #081116;
    color: rgba(232, 223, 200, 0.82);
    cursor: pointer;
    font: inherit;
    font-size: 0.56rem;
    color-scheme: dark;
}

.championship-fixture-team-form select option {
    background: #081116;
    color: rgba(232, 223, 200, 0.88);
}

.championship-fixture-team-form select option:checked {
    background: #163746;
    color: #d5f3ff;
}

.championship-fixture-team-form.is-specific select {
    border-color: rgba(105, 177, 209, 0.52);
    background: rgba(77, 157, 193, 0.1);
    color: #b8e5f5;
}

.championship-fixture-team-form select:hover,
.championship-fixture-team-form select:focus {
    border-color: rgba(232, 207, 137, 0.76);
    outline: none;
}

.championship-fixture-team-form.is-specific select:hover,
.championship-fixture-team-form.is-specific select:focus {
    border-color: rgba(132, 207, 239, 0.78);
}

.championship-scout-button {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(199, 164, 91, 0.4);
    background: rgba(199, 164, 91, 0.08);
    color: #d7bd70;
    cursor: pointer;
    font: inherit;
    font-size: 0.56rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.championship-scout-button:hover {
    border-color: rgba(232, 207, 137, 0.76);
    background: rgba(199, 164, 91, 0.16);
    color: #f0d98d;
}

.championship-fixture-outcome {
    display: grid;
    gap: 0.25rem;
    justify-items: end;
}

.championship-fixture-outcome span {
    color: #d7bd70;
    font-size: 0.64rem;
}

.championship-fixture-outcome span.is-victory {
    color: #79c995;
}

.championship-fixture-outcome span.is-defeat {
    color: #cf7770;
}

.championship-fixture-outcome span.is-draw {
    color: #c9b98f;
}

.championship-fixture-outcome span.is-neutral {
    color: #d7bd70;
}

.championship-fixture-match > strong {
    color: rgba(232, 223, 200, 0.78);
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
}

.championship-fixture-match > strong small {
    margin: 0 0.3rem;
    color: #a99055;
    font-family: sans-serif;
    font-size: 0.55rem;
    text-transform: uppercase;
}

.championship-fixture-score {
    display: block;
    margin: 0;
    color: #ead9a9;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.championship-fixture-match.is-current-player {
    background: rgba(73, 154, 191, 0.1);
    box-shadow: inset 2px 0 #65b2d5;
}

.championship-final-results {
    max-height: 210px;
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    scrollbar-color: rgba(199, 164, 91, 0.45) transparent;
    scrollbar-width: thin;
    border: 1px solid rgba(199, 164, 91, 0.3);
    background:
        radial-gradient(
            circle at 12% 0,
            rgba(199, 164, 91, 0.13),
            transparent 38%
        ),
        rgba(7, 11, 15, 0.9);
}

.championship-final-results > header {
    max-width: 720px;
}

.championship-final-results h2 {
    margin: 0.15rem 0 0;
    color: #ead9a9;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
}

.championship-final-results > header > p:last-child {
    display: none;
}

.championship-final-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.championship-final-groups article {
    border: 1px solid rgba(199, 164, 91, 0.16);
    background: rgba(3, 7, 10, 0.68);
}

.championship-final-groups h3 {
    margin: 0;
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(199, 164, 91, 0.13);
    color: #d7bd70;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.championship-final-groups h3 span {
    margin: 0 0.35rem;
    opacity: 0.45;
}

.championship-final-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.championship-final-table th,
.championship-final-table td {
    height: 26px;
    padding: 0.25rem 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    color: rgba(232, 223, 200, 0.72);
    font-size: 0.66rem;
    line-height: 1.1;
    text-align: right;
}

.championship-final-table th {
    color: rgba(199, 164, 91, 0.7);
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.championship-final-table th:first-child,
.championship-final-table td:first-child {
    width: 28px;
    color: #a99055;
    text-align: center;
}

.championship-final-table th:nth-child(2),
.championship-final-table td:nth-child(2) {
    width: auto;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.championship-final-table th:nth-child(3),
.championship-final-table td:nth-child(3) {
    width: 42px;
    color: #d7bd70;
}

.championship-final-table th:last-child,
.championship-final-table td:last-child {
    width: 42px;
}

.championship-final-table tbody tr:last-child td {
    border-bottom: 0;
}

.championship-final-results::-webkit-scrollbar,
.championship-fixture-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.championship-final-results::-webkit-scrollbar-track,
.championship-fixture-list::-webkit-scrollbar-track {
    border-left: 1px solid rgba(199, 164, 91, 0.1);
    background: linear-gradient(
        180deg,
        rgba(2, 6, 9, 0.72),
        rgba(199, 164, 91, 0.07),
        rgba(2, 6, 9, 0.72)
    );
}

.championship-final-results::-webkit-scrollbar-thumb,
.championship-fixture-list::-webkit-scrollbar-thumb {
    border: 1px solid rgba(8, 13, 17, 0.82);
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(226, 197, 126, 0.9),
        rgba(142, 105, 43, 0.9)
    );
    background-clip: padding-box;
}

.championship-final-results::-webkit-scrollbar-button,
.championship-fixture-list::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.championship-calendar-empty {
    display: grid;
    min-height: 260px;
    padding: 2rem;
    place-items: center;
    align-content: center;
    color: rgba(232, 223, 200, 0.52);
    text-align: center;
}

.championship-calendar-empty span {
    color: rgba(199, 164, 91, 0.4);
    font-size: 4rem;
}

.championship-groups-overview {
    margin-top: 2rem;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(199, 164, 91, 0.2);
    background: rgba(7, 11, 15, 0.82);
}

.championship-groups-overview > header h2 {
    margin: 0;
    color: #f0e3c1;
    font-family: Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 400;
}

.championship-groups-overview > header > p:last-child {
    max-width: 760px;
    color: rgba(232, 223, 200, 0.58);
    line-height: 1.55;
}

.championship-group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.championship-group-card {
    border: 1px solid rgba(199, 164, 91, 0.18);
    background: linear-gradient(145deg, rgba(16, 23, 29, 0.94), rgba(5, 9, 12, 0.96));
}

.championship-group-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(199, 164, 91, 0.14);
}

.championship-group-card > header span {
    color: #c4a45c;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.championship-group-card > header strong {
    color: #e8dfc8;
    font-family: Georgia, serif;
    font-weight: 400;
}

.championship-group-card ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.championship-group-card li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.championship-group-card li > span {
    color: #d4b75f;
    font-family: Georgia, serif;
}

.championship-group-card li > strong {
    overflow: hidden;
    color: rgba(232, 223, 200, 0.78);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.championship-group-card li > small {
    color: rgba(211, 224, 229, 0.46);
    font-size: 0.62rem;
}

.championship-pyramid-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(35px, 7vw, 100px);
    align-items: center;
    margin-top: 2rem;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(199, 164, 91, 0.2);
    background: rgba(7, 11, 15, 0.75);
}

.championship-pyramid-copy > p:not(.championship-eyebrow) {
    color: rgba(232, 223, 200, 0.66);
    line-height: 1.65;
}

.championship-pyramid-copy > small {
    display: block;
    color: #6faecb;
    line-height: 1.5;
}

.championship-pyramid {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.championship-pyramid > div {
    display: flex;
    width: calc(28% + (var(--division-level) - 1) * 17%);
    min-width: 190px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(199, 164, 91, 0.18);
    background:
        linear-gradient(90deg,
            rgba(199, 164, 91, 0.08),
            rgba(68, 145, 180, 0.06));
}

.championship-pyramid > div:first-child {
    border-color: rgba(225, 193, 104, 0.48);
    box-shadow: 0 0 26px rgba(199, 164, 91, 0.08);
}

.championship-pyramid strong {
    color: #e4ce8b;
    font-family: Georgia, serif;
    font-weight: 400;
}

.championship-pyramid span {
    color: rgba(216, 228, 230, 0.52);
    font-size: 0.67rem;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .championship-principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .championship-dashboard,
    .championship-competition-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .championship-page {
        width: min(100% - 24px, 1480px);
        padding-top: 34px;
    }

    .championship-hero,
    .championship-registration-panel,
    .championship-pyramid-section {
        grid-template-columns: 1fr;
    }

    .championship-top-grid.has-final-results {
        grid-template-columns: 1fr;
    }

    .championship-final-results {
        max-height: 240px;
    }

    .championship-principles {
        grid-template-columns: 1fr;
    }

    .championship-season-seal {
        max-width: 360px;
    }

    .championship-pyramid > div {
        width: calc(52% + (var(--division-level) - 1) * 12%);
    }
}

@media (max-width: 520px) {
    .championship-hero,
    .championship-registration-panel,
    .championship-pyramid-section {
        padding: 24px 18px;
    }

    .championship-principles article {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .championship-principles article > span {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .championship-fixture-match {
        grid-template-columns: 1fr;
    }

    .championship-fixture-team-form {
        width: 100%;
    }

    .championship-fixture-versus-line {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas:
            "home-player result away-player"
            "home-cards result away-cards";
        row-gap: 0.55rem;
    }

    .championship-fixture-team-cards.is-home {
        grid-area: home-cards;
        justify-content: center;
    }

    .championship-fixture-team-cards.is-away {
        grid-area: away-cards;
        justify-content: center;
    }

    .championship-fixture-player:nth-of-type(2) {
        grid-area: home-player;
    }

    .championship-fixture-result {
        grid-area: result;
    }

    .championship-fixture-player:nth-of-type(4) {
        grid-area: away-player;
    }

    .championship-fixture-outcome {
        justify-items: start;
    }

    .championship-pyramid > div {
        width: 100%;
    }
}

.showcase-card-inner-left {
    z-index: 3;

    transform:
        translate(-78%, -49%) rotate(-6deg) scale(0.92);

    box-shadow:
        0 32px 74px rgba(0, 0, 0, 0.76),
        0 0 30px rgba(199, 164, 91, 0.1);
}

.showcase-card-inner-right {
    z-index: 2;

    transform:
        translate(-22%, -50%) rotate(6deg) scale(0.96);

    box-shadow:
        0 36px 82px rgba(0, 0, 0, 0.8),
        0 0 38px rgba(103, 177, 215, 0.14);
}

.showcase-card-outer-right {
    z-index: 1;

    transform:
        translate(25%, -45%) rotate(14deg) scale(0.78);

    filter:
        brightness(0.62) saturate(0.75);
}

.showcase-card-torstein {
    overflow: visible;
}

.showcase-card-torstein::before {
    position: absolute;
    z-index: -1;
    inset: -15%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(114, 196, 224, 0.32),
            rgba(72, 117, 159, 0.12) 42%,
            transparent 72%
        );

    content: "";
    opacity: 0;

    transform: scale(0.8);

    transition:
        opacity 850ms ease,
        transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);

    pointer-events: none;
}

.showcase-card-torstein img {
    border-radius: 8px;

    transition:
        opacity 850ms ease,
        filter 1000ms ease,
        transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);

    will-change: opacity, filter, transform;
}

.showcase-card-torstein-living {
    opacity: 1;
}

.showcase-card-torstein .showcase-card-torstein-ethereal {
    position: absolute;
    inset: 0;

    opacity: 0;

    filter:
        brightness(1.28)
        contrast(1.08)
        saturate(0.72);

    transform: scale(1.035) translateY(8px);

    pointer-events: none;
}

.showcase-card:hover {
    z-index: 5;

    filter:
        brightness(1) saturate(1);

    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.85),
        0 0 45px rgba(199, 164, 91, 0.2);
}

.showcase-card-outer-left:hover {
    transform:
        translate(-120%, -49%) rotate(-8deg) scale(0.88);
}

.showcase-card-inner-left:hover {
    transform:
        translate(-80%, -53%) rotate(-2deg) scale(1);
}

.showcase-card-inner-right:hover {
    transform:
        translate(-20%, -54%) rotate(2deg) scale(1.04);
}

.showcase-card-outer-right:hover {
    transform:
        translate(20%, -49%) rotate(8deg) scale(0.88);
}

.showcase-card-torstein:hover {
    transform:
        translate(-80%, -53%) rotate(-2deg) scale(1);

    filter:
        brightness(1.04) saturate(0.92);

    box-shadow:
        0 42px 95px rgba(0, 0, 0, 0.88),
        0 0 58px rgba(102, 190, 224, 0.34);
}

.showcase-card-torstein:hover::before {
    opacity: 1;
    transform: scale(1.08);
}

.showcase-card-torstein:hover .showcase-card-torstein-living {
    opacity: 0;
    filter: blur(3px) brightness(0.62);
    transform: scale(0.975) translateY(-5px);
}

.showcase-card-torstein:hover .showcase-card-torstein-ethereal {
    opacity: 1;
    filter:
        brightness(1.08)
        contrast(1.04)
        saturate(0.9);
    transform: scale(1) translateY(0);
}

.showcase-rune {
    position: absolute;
    z-index: 0;

    bottom: 6px;
    left: 50%;

    color: rgba(199, 164, 91, 0.22);

    font-size: 150px;

    transform: translateX(-50%);

    text-shadow:
        0 0 28px rgba(199, 164, 91, 0.12);
}

/* =========================================================
   HOME PLACEHOLDER SECTIONS
   ========================================================= */

#game,
#story,
#rules {
    min-height: 320px;
    padding:
        90px max(48px, calc((100vw - var(--site-content-width)) / 2));

    border-bottom: 1px solid var(--site-border);
}

#game h2,
#story h2,
#rules h2 {
    margin: 0;

    color: var(--site-gold-light);

    font-size: 38px;
    font-weight: 400;
}

/* =========================================================
   HOME RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .hero-banner {
        grid-template-columns: 1fr;

        padding-top: 80px;
    }

    .hero-banner-content {
        max-width: 760px;
    }

    .hero-card-showcase {
        width: 100%;
        height: 620px;
        margin: 30px auto 0;
    }
}

@media (max-width: 680px) {
    .hero-banner {
        padding:
            64px 22px;
    }

    .hero-banner-title {
        font-size: 43px;
    }

    .hero-banner-description {
        font-size: 14px;
    }

    .hero-banner-actions {
        flex-direction: column;
    }

    .site-button {
        width: 100%;
    }

    .hero-banner-features {
        gap: 20px;
        justify-content: space-between;
    }

    .hero-card-showcase {
        height: 470px;
    }

    .showcase-card {
        width: 180px;
    }

    .showcase-card-outer-left {
        transform:
            translate(-100%, -45%) rotate(-11deg) scale(0.72);
    }

    .showcase-card-inner-left {
        transform:
            translate(-65%, -49%) rotate(-5deg) scale(0.82);
    }

    .showcase-card-inner-right {
        transform:
            translate(-35%, -50%) rotate(5deg) scale(0.86);
    }

    .showcase-card-torstein:hover {
        transform:
            translate(-63%, -52%) rotate(-2deg) scale(0.9);
    }

    .showcase-card-outer-right {
        transform:
            translate(0%, -45%) rotate(11deg) scale(0.72);
    }

    #game,
    #story,
    #rules {
        padding:
            70px 22px;
    }
}

/* =========================================================
   HOME: GAME PRESENTATION
   ========================================================= */

.section-heading {
    max-width: 780px;
    margin: 0 auto 64px;

    text-align: center;
}

.section-eyebrow {
    margin: 0 0 18px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;

    color: var(--site-text);

    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
}

.section-heading h2 span {
    display: block;

    color: var(--site-gold-light);

    font-style: italic;
}

.section-description {
    max-width: 680px;
    margin: 25px auto 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

#game.game-presentation {
    position: relative;

    min-height: initial;
    padding:
        110px max(48px, calc((100vw - var(--site-content-width)) / 2));

    overflow: hidden;

    background:
        radial-gradient(circle at 50% 50%,
            rgba(42, 61, 69, 0.16),
            transparent 58%),
        var(--site-background);
}

.game-principles {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    max-width: var(--site-content-width);
    margin: 0 auto;
}

.game-principle {
    position: relative;

    min-height: 350px;
    padding: 34px 28px 30px;

    border: 1px solid var(--site-border);

    background:
        linear-gradient(160deg,
            rgba(27, 36, 44, 0.94),
            rgba(9, 13, 17, 0.96));

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.22);

    transition:
        border-color 200ms ease,
        transform 200ms ease,
        box-shadow 200ms ease;
}

.game-principle::before,
.game-principle::after {
    position: absolute;

    width: 28px;
    height: 28px;

    content: "";
}

.game-principle::before {
    top: 8px;
    left: 8px;

    border-top: 1px solid var(--site-gold);
    border-left: 1px solid var(--site-gold);
}

.game-principle::after {
    right: 8px;
    bottom: 8px;

    border-right: 1px solid var(--site-gold);
    border-bottom: 1px solid var(--site-gold);
}

.game-principle:hover {
    border-color: var(--site-gold);

    transform: translateY(-7px);

    box-shadow:
        0 28px 55px rgba(0, 0, 0, 0.38),
        0 0 25px rgba(199, 164, 91, 0.07);
}

.game-principle-number {
    position: absolute;

    top: 20px;
    right: 22px;

    color: rgba(234, 217, 169, 0.3);

    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
}

.game-principle-icon,
.game-principle-rune {
    display: grid;
    place-items: center;

    width: 84px;
    height: 84px;
    margin-bottom: 29px;

    color: var(--site-gold-light);

    border: 1px solid rgba(199, 164, 91, 0.22);
    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(199, 164, 91, 0.1),
            transparent 70%);
}

.game-principle-icon img {
    display: block;

    width: 58px;
    height: 58px;

    object-fit: contain;
}

.game-principle-rune {
    font-size: 42px;
}

.game-principle h3 {
    min-height: 55px;
    margin: 0;

    color: var(--site-gold-light);

    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

.game-principle p {
    margin: 18px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   DETERMINISTIC FEATURE
   ========================================================= */

.deterministic-feature {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;

    gap: 32px;

    max-width: var(--site-content-width);
    margin: 48px auto 0;
    padding: 38px 42px;

    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);

    background:
        linear-gradient(90deg,
            rgba(199, 164, 91, 0.025),
            rgba(46, 70, 81, 0.08),
            rgba(199, 164, 91, 0.025));
}

.deterministic-symbol {
    display: grid;
    place-items: center;

    width: 82px;
    height: 82px;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold-dark);

    transform: rotate(45deg);

    font-size: 37px;
}

.deterministic-symbol span {
    transform: rotate(-45deg);
}

.deterministic-content h3 {
    margin: 0;

    color: var(--site-gold-light);

    font-size: 30px;
    font-weight: 400;
}

.deterministic-content p:last-child {
    max-width: 590px;
    margin: 14px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
}

.deterministic-sequence {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.deterministic-sequence i {
    width: 25px;
    height: 1px;

    background: var(--site-gold);
}

/* =========================================================
   GAME PRESENTATION: RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .game-principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deterministic-feature {
        grid-template-columns: 90px 1fr;
    }

    .deterministic-sequence {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    #game.game-presentation {
        padding:
            80px 22px;
    }

    .game-principles {
        grid-template-columns: 1fr;
    }

    .game-principle {
        min-height: initial;
    }

    .deterministic-feature {
        grid-template-columns: 1fr;

        padding:
            34px 24px;

        text-align: center;
    }

    .deterministic-symbol {
        margin: 0 auto;
    }

    .deterministic-sequence {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================================
   HOME: RULES PRESENTATION
   ========================================================= */

#rules.rules-presentation {
    min-height: initial;
    padding:
        110px max(48px, calc((100vw - var(--site-content-width)) / 2));

    background:
        linear-gradient(180deg,
            rgba(10, 14, 18, 0.96),
            rgba(6, 9, 12, 0.98));

    border-bottom: 1px solid var(--site-border);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;

    max-width: var(--site-content-width);
    margin: 0 auto;
}

.rule-category {
    position: relative;

    padding: 34px;

    border: 1px solid rgba(199, 164, 91, 0.24);

    background:
        linear-gradient(145deg,
            rgba(26, 34, 42, 0.92),
            rgba(10, 14, 18, 0.96));

    box-shadow:
        inset 0 0 30px rgba(199, 164, 91, 0.02),
        0 18px 40px rgba(0, 0, 0, 0.2);
}

.rule-category::after {
    position: absolute;

    right: 18px;
    bottom: 18px;

    width: 7px;
    height: 7px;

    content: "";

    border: 1px solid var(--site-gold);

    transform: rotate(45deg);
}

.rule-category-header {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 25px;
    padding-bottom: 22px;

    border-bottom: 1px solid rgba(199, 164, 91, 0.18);
}

.rule-category-header img {
    width: 62px;
    height: 62px;

    object-fit: contain;

    filter:
        drop-shadow(0 7px 10px rgba(0, 0, 0, 0.5));
}

.rule-category-header span {
    display: block;

    margin-bottom: 6px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rule-category-header h3 {
    margin: 0;

    color: var(--site-gold-light);

    font-size: 23px;
    font-weight: 400;
}

.rule-category>p {
    min-height: 89px;
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

.rule-category ul {
    display: grid;

    gap: 12px;

    margin: 25px 0 0;
    padding: 0;

    list-style: none;
}

.rule-category li {
    position: relative;

    padding-left: 18px;

    color: var(--site-text);

    font-family: Arial, sans-serif;
    font-size: 12px;
}

.rule-category li::before {
    position: absolute;

    top: 4px;
    left: 0;

    width: 6px;
    height: 6px;

    content: "";

    border: 1px solid var(--site-gold);

    transform: rotate(45deg);
}

.rules-call-to-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    max-width: var(--site-content-width);
    margin: 28px auto 0;
    padding: 29px 34px;

    border-left: 2px solid var(--site-gold);

    background:
        linear-gradient(90deg,
            rgba(199, 164, 91, 0.09),
            rgba(199, 164, 91, 0.015));
}

.rules-call-to-action-label {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rules-call-to-action p {
    max-width: 690px;
    margin: 9px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   RULES PRESENTATION: RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .rule-category>p {
        min-height: initial;
    }
}

@media (max-width: 680px) {
    #rules.rules-presentation {
        padding:
            80px 22px;
    }

    .rule-category {
        padding:
            29px 24px;
    }

    .rules-call-to-action {
        flex-direction: column;
        align-items: flex-start;

        padding:
            28px 24px;
    }

    .rules-call-to-action .site-button {
        width: 100%;
    }
}

/* =========================================================
   STORY: TEXT SPACING
   ========================================================= */

.story-text p {
    margin: 0;

    line-height: 1.8;
}

.story-text p+p {
    margin-top: 1.4em;
}

/* =========================================================
   STORY: CHAPTER PAGE
   ========================================================= */

.story-chapter {
    background: var(--site-background);
}

.story-chapter-hero {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    min-height: 780px;
    padding:
        130px 48px 100px;

    overflow: hidden;

    background-image:
        var(--story-chapter-image);
    background-position: center 32%;
    background-size: cover;
}

.story-chapter-hero-image {
    position: absolute;
    z-index: 1;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    filter:
        brightness(0.84) saturate(0.92);

    pointer-events: none;
}

.story-chapter-hero::before {
    position: absolute;
    z-index: 2;

    inset: 0;

    content: "";

    background:
        linear-gradient(90deg,
            rgba(4, 6, 8, 0.83),
            rgba(4, 6, 8, 0.23) 48%,
            rgba(4, 6, 8, 0.72));
}

.story-chapter-hero::after {
    position: absolute;
    z-index: 3;

    right: 0;
    bottom: 0;
    left: 0;

    height: 68%;

    content: "";

    background:
        linear-gradient(180deg,
            transparent,
            rgba(5, 7, 9, 0.7) 62%,
            var(--site-background));
}

.story-chapter-hero-overlay {
    position: absolute;
    z-index: 4;

    inset: 0;

    background:
        radial-gradient(circle at 50% 35%,
            transparent 10%,
            rgba(4, 6, 8, 0.18) 45%,
            rgba(4, 6, 8, 0.56) 100%);

    box-shadow:
        inset 0 0 140px rgba(0, 0, 0, 0.52);
}

.story-chapter-heading {
    position: relative;
    z-index: 5;

    width: min(100%, 960px);

    text-align: center;

    text-shadow:
        0 5px 28px rgba(0, 0, 0, 0.9);
}

.story-back-link {
    position: absolute;

    bottom: calc(100% + 105px);
    left: 0;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: rgba(236, 232, 220, 0.72);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    transition: color 160ms ease;
}

.story-back-link span {
    color: var(--site-gold);
}

.story-back-link:hover {
    color: var(--site-gold-light);
}

.story-chapter-number {
    margin: 0 0 18px;

    color: var(--site-gold-light);

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.story-chapter-heading h1 {
    margin: 0;

    color: #f1e8d2;

    font-size: clamp(54px, 7vw, 94px);
    font-weight: 400;
    line-height: 0.95;
}

.story-chapter-separator {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin: 28px auto 22px;
}

.story-chapter-separator span {
    width: 86px;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            var(--site-gold));
}

.story-chapter-separator span:last-child {
    background:
        linear-gradient(90deg,
            var(--site-gold),
            transparent);
}

.story-chapter-separator i {
    color: var(--site-gold-light);

    font-size: 22px;
    font-style: normal;
}

.story-chapter-introduction {
    margin: 0;

    color: rgba(236, 232, 220, 0.78);

    font-size: 17px;
    font-style: italic;
}

.story-scroll-indicator {
    position: absolute;
    z-index: 5;

    right: 36px;
    bottom: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.story-scroll-indicator i {
    width: 1px;
    height: 54px;

    background:
        linear-gradient(var(--site-gold),
            transparent);
}

/* =========================================================
   STORY: READING AREA
   ========================================================= */

.story-reading-area {
    display: grid;
    grid-template-columns: 230px minmax(0, 760px);

    gap: 70px;

    width: min(100% - 64px, 1080px);
    margin: 0 auto;
    padding: 90px 0 120px;
}

.story-reading-aside {
    align-self: start;

    position: sticky;
    top: calc(var(--site-header-height) + 35px);
}

.story-reading-status {
    display: flex;
    flex-direction: column;

    padding: 27px 24px;

    border: 1px solid var(--site-border);

    background:
        linear-gradient(145deg,
            rgba(27, 36, 44, 0.9),
            rgba(9, 13, 17, 0.94));
}

.story-reading-status-label {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.story-reading-status strong {
    margin: 16px 0 7px;

    color: var(--site-gold-light);

    font-size: 50px;
    font-weight: 400;
    line-height: 1;
}

.story-reading-status>span:last-child {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.story-campaign-status {
    margin-top: 18px;
    padding: 23px 20px;

    border-left: 1px solid var(--site-gold-dark);

    background: rgba(199, 164, 91, 0.035);
}

.story-lock {
    color: var(--site-gold);

    font-size: 23px;
}

.story-campaign-status p {
    margin: 12px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.6;
}

.story-article {
    min-width: 0;
}

.story-article-heading {
    margin-bottom: 52px;
    padding-bottom: 30px;

    border-bottom: 1px solid var(--site-border);
}

.story-article-heading span {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.story-article-heading p {
    max-width: 600px;
    margin: 15px 0 0;

    color: var(--site-gold-light);

    font-size: 26px;
    font-style: italic;
    line-height: 1.35;
}

.story-text {
    color: #d8d4ca;

    font-size: 18px;
}

.story-text p {
    line-height: 1.9;
}

.story-text p:first-child::first-letter {
    float: left;

    margin:
        8px 12px 0 0;

    color: var(--site-gold-light);

    font-size: 76px;
    line-height: 0.68;
}

.story-text p+p {
    margin-top: 1.65em;
}

/* =========================================================
   STORY: CHAPTER ENDING
   ========================================================= */

.story-chapter-ending {
    margin-top: 90px;
    padding: 60px 40px;

    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);

    background:
        radial-gradient(circle at 50% 0,
            rgba(199, 164, 91, 0.1),
            transparent 58%);

    text-align: center;
}

.story-ending-rune {
    color: var(--site-gold);

    font-size: 42px;
}

.story-chapter-ending>p:first-of-type {
    margin: 20px 0 11px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.story-chapter-ending h2 {
    margin: 0;

    color: var(--site-gold-light);

    font-size: 38px;
    font-weight: 400;
}

.story-chapter-ending h2+p {
    margin: 18px auto 30px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 13px;
}

/* =========================================================
   STORY CHAPTER: RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .story-chapter-hero {
        min-height: 650px;

        background-position: center top;
    }

    .story-reading-area {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .story-reading-aside {
        position: static;

        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 18px;
    }

    .story-campaign-status {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .story-chapter-hero {
        min-height: 570px;
        padding:
            110px 22px 72px;
    }

    .story-back-link {
        bottom: calc(100% + 65px);
    }

    .story-scroll-indicator {
        display: none;
    }

    .story-reading-area {
        width: calc(100% - 44px);
        padding:
            65px 0 90px;
    }

    .story-reading-aside {
        grid-template-columns: 1fr;
    }

    .story-article-heading p {
        font-size: 22px;
    }

    .story-text {
        font-size: 16px;
    }

    .story-chapter-ending {
        padding:
            50px 22px;
    }

    .story-chapter-ending h2 {
        font-size: 31px;
    }
}

/* =========================================================
   HOME: STORY PRESENTATION
   ========================================================= */

#story.story-presentation {
    display: grid;
    grid-template-columns:
        minmax(460px, 1.08fr) minmax(420px, 0.92fr);

    min-height: 820px;
    padding: 0;

    overflow: hidden;

    border-bottom: 1px solid var(--site-border);

    background:
        linear-gradient(135deg,
            #090d11,
            #06080b);
}

.story-presentation-image {
    position: relative;

    min-height: 820px;

    overflow: hidden;
}

.story-presentation-image::after {
    position: absolute;

    top: 50%;
    right: -28px;

    width: 56px;
    height: 56px;

    content: "";

    border: 1px solid var(--site-gold-dark);

    background: var(--site-background);

    transform:
        translateY(-50%) rotate(45deg);
}

.story-presentation-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 34%;

    filter:
        saturate(0.83) contrast(1.05) brightness(0.78);

    transition:
        filter 600ms ease,
        transform 900ms ease;
}

.story-presentation:hover .story-presentation-image img {
    filter:
        saturate(1) contrast(1.05) brightness(0.87);

    transform: scale(1.025);
}

.story-presentation-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(5, 7, 9, 0.12),
            rgba(5, 7, 9, 0.08) 58%,
            rgba(5, 7, 9, 0.78)),
        linear-gradient(180deg,
            rgba(5, 7, 9, 0.16),
            transparent 45%,
            rgba(5, 7, 9, 0.55));

    box-shadow:
        inset 0 0 90px rgba(0, 0, 0, 0.42);
}

.story-presentation-image-number {
    position: absolute;

    bottom: 35px;
    left: 42px;

    color: rgba(234, 217, 169, 0.72);

    font-size: 120px;
    line-height: 1;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.9);
}

.story-presentation-content {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    max-width: 650px;
    padding:
        90px clamp(48px, 6vw, 100px);
}

.story-presentation-content::before {
    position: absolute;

    top: 46px;
    right: 46px;

    width: 52px;
    height: 52px;

    content: "";

    border-top: 1px solid rgba(199, 164, 91, 0.32);
    border-right: 1px solid rgba(199, 164, 91, 0.32);
}

.story-presentation-chapter {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.story-presentation-content h2 {
    margin: 14px 0 0;

    color: var(--site-text);

    font-size: clamp(50px, 6vw, 78px);
    font-weight: 400;
    line-height: 0.94;
}

.story-presentation-content h2 em {
    display: block;

    color: var(--site-gold-light);

    font-weight: 400;
}

.story-presentation-separator {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 190px;
    margin: 29px 0;
}

.story-presentation-separator span {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(90deg,
            var(--site-gold-dark),
            var(--site-gold));
}

.story-presentation-separator span:last-child {
    background:
        linear-gradient(90deg,
            var(--site-gold),
            transparent);
}

.story-presentation-separator i {
    color: var(--site-gold);

    font-size: 18px;
    font-style: normal;
}

.story-presentation-content blockquote {
    margin: 0 0 27px;

    color: var(--site-gold-light);

    font-size: 21px;
    font-style: italic;
    line-height: 1.5;
}

.story-presentation-summary {
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.75;
}

.story-presentation-summary+.story-presentation-summary {
    margin-top: 15px;
}

.story-read-link {
    display: inline-flex;
    align-items: center;

    gap: 19px;

    width: fit-content;
    margin-top: 32px;
    padding-bottom: 8px;

    color: var(--site-gold-light);

    border-bottom: 1px solid var(--site-gold-dark);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    transition:
        gap 180ms ease,
        border-color 180ms ease;
}

.story-read-link i {
    color: var(--site-gold);

    font-size: 17px;
    font-style: normal;
}

.story-read-link:hover {
    gap: 27px;

    border-color: var(--site-gold);
}

.story-campaign-note {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 37px;
    padding-top: 22px;

    border-top: 1px solid rgba(199, 164, 91, 0.16);
}

.story-campaign-note>span {
    color: var(--site-gold);

    font-size: 22px;
}

.story-campaign-note p {
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   STORY PRESENTATION: RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    #story.story-presentation {
        grid-template-columns: 1fr;

        min-height: initial;
    }

    .story-presentation-image {
        min-height: 670px;
    }

    .story-presentation-image::after {
        top: auto;
        right: auto;
        bottom: -28px;
        left: 50%;

        transform:
            translateX(-50%) rotate(45deg);
    }

    .story-presentation-image-overlay {
        background:
            linear-gradient(180deg,
                rgba(5, 7, 9, 0.12),
                transparent 45%,
                rgba(5, 7, 9, 0.9));
    }

    .story-presentation-content {
        max-width: 780px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .story-presentation-image {
        min-height: 520px;
    }

    .story-presentation-image-number {
        bottom: 25px;
        left: 22px;

        font-size: 88px;
    }

    .story-presentation-content {
        padding:
            75px 22px;
    }

    .story-presentation-content::before {
        top: 30px;
        right: 22px;
    }

    .story-presentation-content blockquote {
        font-size: 18px;
    }
}

/* =========================================================
   RULES PAGE
   ========================================================= */

.rules-page-header {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 530px;
    padding:
        130px 30px 90px;

    overflow: hidden;

    border-bottom: 1px solid var(--site-border);

    background:
        radial-gradient(circle at 50% 50%,
            rgba(65, 87, 96, 0.2),
            transparent 48%),
        linear-gradient(180deg,
            #10171e,
            var(--site-background));

    text-align: center;
}

.rules-page-header::before,
.rules-page-header::after {
    position: absolute;

    width: 440px;
    height: 440px;

    content: "";

    border: 1px solid rgba(199, 164, 91, 0.08);
    border-radius: 50%;
}

.rules-page-header::after {
    width: 350px;
    height: 350px;
}

.rules-page-header-rune {
    position: absolute;

    color: rgba(199, 164, 91, 0.055);

    font-size: 410px;
    line-height: 1;
}

.rules-page-header .section-eyebrow,
.rules-page-header h1,
.rules-page-header>p:last-child {
    position: relative;
    z-index: 2;
}

.rules-page-header h1 {
    margin: 0;

    color: var(--site-gold-light);

    font-size: clamp(52px, 7vw, 88px);
    font-weight: 400;
}

.rules-page-header>p:last-child {
    max-width: 650px;
    margin: 25px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.rules-page-navigation {
    position: sticky;
    z-index: 50;
    top: var(--site-header-height);

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    border-bottom: 1px solid var(--site-border);

    background: rgba(7, 10, 13, 0.96);

    backdrop-filter: blur(12px);
}

.rules-page-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 62px;
    padding: 12px;

    color: var(--site-text-muted);

    border-right: 1px solid rgba(199, 164, 91, 0.12);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;

    transition:
        color 160ms ease,
        background 160ms ease;
}

.rules-page-navigation a:last-child {
    border-right: 0;
}

.rules-page-navigation a span {
    color: var(--site-gold);
}

.rules-page-navigation a:hover {
    color: var(--site-gold-light);

    background: rgba(199, 164, 91, 0.06);
}

.rules-page-content {
    width: min(100% - 64px, var(--site-content-width));
    margin: 0 auto;
    padding: 40px 0 120px;
}

.rules-content-section {
    position: relative;

    min-height: 430px;
    padding: 90px 0;

    scroll-margin-top:
        calc(var(--site-header-height) + 62px);

    border-bottom: 1px solid var(--site-border);
}

.rules-content-section:last-child {
    border-bottom: 0;
}

.rules-section-number {
    position: absolute;

    top: 58px;
    right: 0;

    color: rgba(234, 217, 169, 0.08);

    font-size: 110px;
    line-height: 1;
}

.rules-content-section h2 {
    position: relative;

    margin: 0;

    color: var(--site-gold-light);

    font-size: clamp(38px, 5vw, 58px);
    font-weight: 400;
}

.rules-section-introduction {
    position: relative;

    max-width: 720px;
    margin: 24px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

.rules-placeholder {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 150px;
    margin-top: 40px;

    color: rgba(170, 167, 158, 0.55);

    border: 1px dashed rgba(199, 164, 91, 0.22);

    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

/* =========================================================
   RULES PAGE RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
    .rules-page-navigation {
        position: relative;
        top: 0;

        grid-template-columns: 1fr;
    }

    .rules-page-navigation a {
        border-right: 0;
        border-bottom: 1px solid rgba(199, 164, 91, 0.12);
    }

    .rules-page-content {
        width: calc(100% - 44px);
    }

    .rules-section-number {
        top: 70px;

        font-size: 72px;
    }
}

/* =========================================================
   RULES PAGE : DECK CONSTRUCTION
   ========================================================= */

.deck-rules {
    position: relative;

    margin-top: 48px;
}

.deck-total {
    display: flex;
    align-items: center;

    gap: 25px;

    padding: 27px 32px;

    border-left: 2px solid var(--site-gold);

    background:
        linear-gradient(90deg,
            rgba(199, 164, 91, 0.1),
            transparent);
}

.deck-total-value {
    color: var(--site-gold-light);

    font-size: 58px;
    line-height: 1;
}

.deck-total-text {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.deck-total-text strong {
    color: var(--site-text);

    font-size: 19px;
    font-weight: 400;
}

.deck-total-text span {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
}

.deck-composition {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 15px;

    margin-top: 25px;
}

.deck-composition-card {
    position: relative;

    min-height: 210px;
    padding: 28px 25px;

    border: 1px solid var(--site-border);

    background:
        linear-gradient(145deg,
            rgba(26, 34, 42, 0.92),
            rgba(9, 13, 17, 0.96));
}

.deck-composition-card::after {
    position: absolute;

    right: 14px;
    bottom: 14px;

    width: 6px;
    height: 6px;

    content: "";

    border: 1px solid var(--site-gold);

    transform: rotate(45deg);
}

.deck-composition-value {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.deck-composition-card h3 {
    margin: 20px 0 0;

    color: var(--site-gold-light);

    font-size: 24px;
    font-weight: 400;
}

.deck-composition-card p {
    margin: 16px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.65;
}

.deck-rule-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-top: 25px;
}

.deck-rule-panel {
    padding: 32px;

    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);

    background: rgba(199, 164, 91, 0.025);
}

.deck-rule-panel-label {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.deck-rule-panel h3,
.rarity-rules-heading h3,
.chapter-rules-heading h3 {
    margin: 13px 0 0;

    color: var(--site-gold-light);

    font-size: 25px;
    font-weight: 400;
}

.deck-rule-panel p,
.rarity-rules-heading p,
.chapter-rules-heading p {
    margin: 17px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.7;
}

.rules-list {
    display: grid;

    gap: 14px;

    margin: 20px 0 0;
    padding: 0;

    list-style: none;
}

.rules-list li {
    position: relative;

    padding-left: 19px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.65;
}

.rules-list li::before {
    position: absolute;

    top: 6px;
    left: 0;

    width: 6px;
    height: 6px;

    content: "";

    border: 1px solid var(--site-gold);

    transform: rotate(45deg);
}

.rules-list strong {
    color: var(--site-text);
}

/* =========================================================
   RARITY TABLE
   ========================================================= */

.rarity-rules {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;

    gap: 42px;

    margin-top: 62px;
    padding-top: 52px;

    border-top: 1px solid var(--site-border);
}

.rarity-table-wrapper {
    overflow-x: auto;
}

.rarity-table {
    width: 100%;

    border-collapse: collapse;

    font-family: Arial, sans-serif;
    font-size: 11px;
}

.rarity-table th,
.rarity-table td {
    padding: 15px 17px;

    border: 1px solid rgba(199, 164, 91, 0.16);

    text-align: left;
}

.rarity-table thead th {
    color: var(--site-gold);

    background: rgba(199, 164, 91, 0.07);

    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rarity-table tbody th {
    color: var(--site-gold-light);

    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rarity-table td {
    color: var(--site-text-muted);
}

.rarity-legendary {
    background: rgba(210, 142, 60, 0.08);
}

.rarity-epic {
    background: rgba(142, 78, 175, 0.07);
}

.rarity-rare {
    background: rgba(58, 109, 164, 0.07);
}

.rarity-uncommon {
    background: rgba(69, 132, 83, 0.07);
}

.rarity-example {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;

    gap: 17px;

    padding: 22px 26px;

    border-left: 1px solid var(--site-gold);

    background: rgba(199, 164, 91, 0.045);
}

.rarity-example>span {
    color: var(--site-gold);

    font-size: 25px;
}

.rarity-example p {
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.6;
}

.rarity-example strong {
    color: var(--site-text);
}

/* =========================================================
   CHAPTER STRUCTURE
   ========================================================= */

.chapter-rules {
    margin-top: 62px;
    padding-top: 52px;

    border-top: 1px solid var(--site-border);
}

.chapter-rules-heading {
    max-width: 710px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-top: 30px;

    border: 1px solid var(--site-border);
}

.chapter-grid article {
    display: flex;
    flex-direction: column;

    min-height: 155px;
    padding: 25px;

    border-right: 1px solid var(--site-border);

    background:
        linear-gradient(180deg,
            rgba(26, 34, 42, 0.76),
            rgba(9, 13, 17, 0.9));
}

.chapter-grid article:last-child {
    border-right: 0;
}

.chapter-grid span {
    color: rgba(234, 217, 169, 0.3);

    font-size: 31px;
}

.chapter-grid strong {
    margin-top: 18px;

    color: var(--site-gold-light);

    font-size: 19px;
    font-weight: 400;
}

.chapter-grid small {
    margin-top: 7px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =========================================================
   DECK CONSTRUCTION RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
    .deck-composition {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rarity-rules {
        grid-template-columns: 1fr;
    }

    .chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chapter-grid article:nth-child(2) {
        border-right: 0;
    }

    .chapter-grid article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--site-border);
    }
}

@media (max-width: 600px) {

    .deck-composition,
    .deck-rule-columns,
    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .deck-composition-card {
        min-height: initial;
    }

    .chapter-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--site-border);
    }

    .chapter-grid article:last-child {
        border-bottom: 0;
    }

    .deck-total {
        align-items: flex-start;
    }
}

/* =========================================================
   RULES PAGE : WYRD POINTS
   ========================================================= */

.wyrd-rules {
    margin-top: 48px;
}

.wyrd-pool {
    display: grid;
    grid-template-columns: 86px 110px 1fr;
    align-items: center;

    gap: 24px;

    padding: 30px 34px;

    border: 1px solid var(--site-border);

    background:
        radial-gradient(circle at 12% 50%,
            rgba(199, 164, 91, 0.12),
            transparent 28%),
        linear-gradient(90deg,
            rgba(26, 34, 42, 0.95),
            rgba(9, 13, 17, 0.96));
}

.wyrd-pool-symbol {
    display: grid;
    place-items: center;

    width: 72px;
    height: 72px;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold-dark);

    transform: rotate(45deg);

    font-size: 34px;
}

.wyrd-pool-symbol::first-line {
    transform: rotate(-45deg);
}

.wyrd-pool-value {
    color: var(--site-gold-light);

    font-size: 65px;
    line-height: 1;
}

.wyrd-pool-content strong {
    color: var(--site-text);

    font-size: 25px;
    font-weight: 400;
}

.wyrd-pool-content p {
    margin: 9px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
}

.wyrd-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-top: 25px;
}

.wyrd-tool {
    position: relative;

    padding: 34px;

    border: 1px solid var(--site-border);

    background:
        linear-gradient(150deg,
            rgba(26, 34, 42, 0.9),
            rgba(9, 13, 17, 0.96));
}

.wyrd-tool-heading {
    display: flex;
    align-items: center;

    gap: 20px;

    padding-bottom: 24px;

    border-bottom: 1px solid rgba(199, 164, 91, 0.18);
}

.wyrd-tool-number {
    color: rgba(234, 217, 169, 0.24);

    font-size: 40px;
}

.wyrd-tool-heading h3 {
    margin: 7px 0 0;

    color: var(--site-gold-light);

    font-size: 28px;
    font-weight: 400;
}

.wyrd-tool>p {
    min-height: 64px;
    margin: 24px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   INITIATIVE
   ========================================================= */

.initiative-scale {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    margin-top: 25px;

    border: 1px solid var(--site-border);
}

.initiative-scale span {
    display: grid;
    place-items: center;

    min-height: 58px;

    color: var(--site-gold-light);

    border-right: 1px solid var(--site-border);

    background:
        linear-gradient(180deg,
            rgba(199, 164, 91, 0.08),
            transparent);

    font-size: 21px;
}

.initiative-scale span:last-child {
    border-right: 0;
}

/* =========================================================
   THREAD OF FATE
   ========================================================= */

.thread-cost {
    display: flex;
    align-items: center;

    gap: 17px;

    margin-top: 24px;
}

.thread-cost>span {
    color: var(--site-gold-light);

    font-size: 43px;
    line-height: 1;
}

.thread-cost p {
    max-width: 150px;
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.45;
    text-transform: uppercase;
}

.thread-example {
    display: grid;
    grid-template-columns: 88px 1fr 88px;
    align-items: center;

    gap: 12px;

    margin-top: 24px;
}

.thread-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 108px;

    border: 1px solid var(--site-gold-dark);

    background:
        linear-gradient(145deg,
            rgba(199, 164, 91, 0.1),
            rgba(9, 13, 17, 0.85));
}

.thread-card span {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.thread-card strong {
    margin-top: 8px;

    color: var(--site-gold-light);

    font-size: 37px;
    font-weight: 400;
}

.thread-connection {
    display: flex;
    align-items: center;

    gap: 7px;
}

.thread-connection i {
    flex: 1;

    height: 1px;

    background: var(--site-gold-dark);
}

.thread-connection span {
    color: var(--site-gold);

    font-size: 19px;
}

/* =========================================================
   WYRD FORMULA
   ========================================================= */

.wyrd-formula {
    margin-top: 48px;
    padding: 39px;

    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);

    background:
        radial-gradient(circle at 50% 50%,
            rgba(58, 84, 97, 0.13),
            transparent 58%);
}

.wyrd-formula-content {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    margin-top: 27px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
}

.wyrd-formula-content>strong {
    color: var(--site-gold-light);

    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
}

.wyrd-formula-content>span {
    font-size: 24px;
}

.wyrd-formula-content>div {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 170px;
    padding: 16px 22px;

    color: var(--site-text);

    border: 1px solid var(--site-border);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wyrd-formula-content small {
    margin-bottom: 5px;

    color: var(--site-text-muted);

    font-size: 8px;
    font-weight: 400;
}

.wyrd-formula>p {
    max-width: 700px;
    margin: 26px auto 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
}

/* =========================================================
   PREPARATION SEQUENCE
   ========================================================= */

.preparation-sequence {
    margin-top: 50px;
}

.preparation-sequence ol {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    margin: 24px 0 0;
    padding: 0;

    border: 1px solid var(--site-border);

    list-style: none;
}

.preparation-sequence li {
    display: flex;
    flex-direction: column;

    min-height: 145px;
    padding: 21px;

    border-right: 1px solid var(--site-border);

    background:
        linear-gradient(180deg,
            rgba(26, 34, 42, 0.72),
            rgba(9, 13, 17, 0.92));
}

.preparation-sequence li:last-child {
    border-right: 0;
}

.preparation-sequence li>span {
    color: rgba(234, 217, 169, 0.25);

    font-family: Arial, sans-serif;
    font-size: 10px;
}

.preparation-sequence strong {
    margin-top: 28px;

    color: var(--site-gold-light);

    font-size: 17px;
    font-weight: 400;
}

.preparation-sequence small {
    margin-top: 8px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 1.45;
}

/* =========================================================
   WYRD REMINDER
   ========================================================= */

.wyrd-reminder {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-top: 28px;
    padding: 25px 30px;

    border-left: 2px solid var(--site-gold);

    background: rgba(199, 164, 91, 0.05);
}

.wyrd-reminder>span {
    color: var(--site-gold);

    font-size: 32px;
}

.wyrd-reminder strong {
    color: var(--site-gold-light);

    font-size: 16px;
    font-weight: 400;
}

.wyrd-reminder p {
    margin: 7px 0 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
}

/* =========================================================
   WYRD RULES RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .wyrd-tools {
        grid-template-columns: 1fr;
    }

    .preparation-sequence ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .preparation-sequence li:nth-child(3) {
        border-right: 0;
    }

    .preparation-sequence li:nth-child(-n + 3) {
        border-bottom: 1px solid var(--site-border);
    }
}

@media (max-width: 650px) {
    .wyrd-pool {
        grid-template-columns: 70px 1fr;
    }

    .wyrd-pool-value {
        font-size: 52px;
    }

    .wyrd-pool-content {
        grid-column: 1 / -1;
    }

    .wyrd-formula-content {
        flex-direction: column;
    }

    .wyrd-formula-content>div {
        width: 100%;
    }

    .preparation-sequence ol {
        grid-template-columns: 1fr;
    }

    .preparation-sequence li {
        border-right: 0;
        border-bottom: 1px solid var(--site-border);
    }

    .preparation-sequence li:last-child {
        border-bottom: 0;
    }

    .thread-example {
        grid-template-columns: 72px 1fr 72px;
    }
}

.battle-rules {
    display: grid;
    gap: 3rem;
}

.turn-sequence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.turn-step {
    position: relative;
    display: flex;
    gap: 1rem;
    min-height: 150px;
    padding: 1.4rem;
    border: 1px solid rgba(202, 163, 85, 0.2);
    background:
        linear-gradient(145deg,
            rgba(202, 163, 85, 0.08),
            rgba(8, 11, 15, 0.78));
}

.turn-step-number {
    flex: 0 0 auto;
    color: #caa355;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

.turn-step h3,
.card-type-card h4,
.battle-mechanic h3,
.temporary-effects-note h3 {
    margin: 0 0 0.65rem;
    color: #eee2c4;
    font-family: Georgia, serif;
}

.turn-step p,
.card-type-card p,
.battle-mechanic p,
.temporary-effects-note p,
.combat-explanation p {
    margin: 0;
    color: rgba(238, 226, 196, 0.7);
    line-height: 1.65;
}

.rules-subsection {
    display: grid;
    gap: 1.4rem;
}

.rules-subsection>h3 {
    margin: 0;
    color: #caa355;
    font-family: Georgia, serif;
    font-size: 1.5rem;
}

.card-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.card-type-card {
    padding: 1.4rem;
    border-top: 2px solid rgba(202, 163, 85, 0.65);
    background: rgba(255, 255, 255, 0.025);
}

.combat-explanation {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid rgba(202, 163, 85, 0.18);
    background: rgba(7, 10, 14, 0.72);
}

.combat-formula {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.combat-formula img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.combat-formula span,
.combat-formula strong {
    display: block;
}

.combat-formula span {
    margin-bottom: 0.35rem;
    color: #caa355;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.combat-formula strong {
    color: #eee2c4;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.battle-mechanic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.battle-mechanic {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(210, 224, 235, 0.18);
    background:
        radial-gradient(circle at top left,
            rgba(202, 224, 242, 0.1),
            transparent 45%),
        rgba(7, 10, 14, 0.75);
}

.battle-mechanic img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.battle-mechanic p+p,
.temporary-effects-note p+p {
    margin-top: 0.8rem;
}

.temporary-effects-note {
    padding: 1.5rem 1.7rem;
    border-left: 3px solid #caa355;
    background: rgba(202, 163, 85, 0.06);
}

@media (max-width: 900px) {
    .turn-sequence {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .combat-explanation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {

    .turn-sequence,
    .card-type-grid,
    .battle-mechanic-grid {
        grid-template-columns: 1fr;
    }

    .battle-mechanic {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .battle-mechanic img {
        width: 62px;
        height: 62px;
    }
}

.temperature-rules {
    display: grid;
    gap: 3rem;
}

.temperature-scale {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid rgba(202, 163, 85, 0.18);
}

.temperature-level {
    display: flex;
    min-height: 82px;
    padding: 0.8rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.temperature-level:last-child {
    border-right: 0;
}

.temperature-level strong {
    color: #f0e5ca;
    font-family: Georgia, serif;
}

.temperature-level span {
    color: rgba(240, 229, 202, 0.55);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.temperature-level img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.temperature-cold-extreme {
    background: rgba(30, 103, 177, 0.38);
}

.temperature-cold {
    background: rgba(54, 128, 194, 0.17);
}

.temperature-neutral {
    background: rgba(202, 163, 85, 0.08);
}

.temperature-heat {
    background: rgba(190, 79, 37, 0.17);
}

.temperature-heat-extreme {
    background: rgba(190, 53, 30, 0.38);
}

.temperature-effect-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.temperature-effect {
    position: relative;
    padding: 1.6rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.temperature-effect-cold {
    background:
        radial-gradient(circle at top right,
            rgba(51, 151, 230, 0.19),
            transparent 46%),
        rgba(7, 12, 19, 0.82);
}

.temperature-effect-heat {
    background:
        radial-gradient(circle at top right,
            rgba(232, 78, 28, 0.2),
            transparent 46%),
        rgba(18, 9, 7, 0.82);
}

.temperature-effect header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.temperature-value {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    line-height: 1;
}

.temperature-effect-cold .temperature-value {
    color: #80c9ff;
}

.temperature-effect-heat .temperature-value {
    color: #ff8a55;
}

.temperature-effect h3,
.temperature-stage h3,
.temperature-warning h3 {
    margin: 0;
    color: #f0e5ca;
    font-family: Georgia, serif;
}

.temperature-effect small {
    color: rgba(240, 229, 202, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.temperature-effect-icons {
    display: flex;
    gap: 0.7rem;
    margin: 1.2rem 0;
}

.temperature-effect-icons img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.temperature-effect ul,
.temperature-stage ul {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(240, 229, 202, 0.72);
    line-height: 1.7;
}

.temperature-stage-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.temperature-stage {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1.25rem;
    border-top: 2px solid transparent;
    background: rgba(255, 255, 255, 0.025);
}

.temperature-stage-cold {
    border-color: rgba(88, 170, 230, 0.7);
}

.temperature-stage-neutral {
    border-color: rgba(202, 163, 85, 0.7);
}

.temperature-stage-heat {
    border-color: rgba(226, 100, 48, 0.7);
}

.temperature-stage-value {
    color: rgba(240, 229, 202, 0.45);
    font-family: Georgia, serif;
    font-size: 1.7rem;
}

.temperature-stage ul {
    margin-top: 0.75rem;
    font-size: 0.88rem;
}

.temperature-warning {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1.4rem;
    border: 1px solid rgba(202, 163, 85, 0.25);
    background: rgba(202, 163, 85, 0.06);
}

.temperature-warning img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.temperature-warning p {
    margin: 0.6rem 0 0;
    color: rgba(240, 229, 202, 0.7);
    line-height: 1.65;
}

@media (max-width: 1000px) {
    .temperature-scale {
        grid-template-columns: repeat(7, minmax(95px, 1fr));
        overflow-x: auto;
    }

    .temperature-stage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .temperature-effect-grid,
    .temperature-stage-grid {
        grid-template-columns: 1fr;
    }

    .temperature-warning {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .temperature-warning img {
        width: 52px;
        height: 52px;
    }
}

.status-rules {
    display: grid;
    gap: 3rem;
}

.status-category {
    display: grid;
    gap: 1.2rem;
}

.status-category-heading {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(202, 163, 85, 0.18);
}

.status-category-heading span {
    color: #caa355;
    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.status-category-heading p {
    max-width: 560px;
    margin: 0;
    color: rgba(240, 229, 202, 0.55);
    line-height: 1.55;
    text-align: right;
}

.status-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.status-reference {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
}

.status-reference.status-positive {
    border-top-color: rgba(91, 164, 114, 0.65);
}

.status-reference.status-negative {
    border-top-color: rgba(171, 67, 70, 0.65);
}

.status-reference img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.status-reference h3,
.immunity-grid h3,
.status-duration-note h3 {
    margin: 0 0 0.55rem;
    color: #f0e5ca;
    font-family: Georgia, serif;
}

.status-reference p,
.immunity-grid p,
.status-duration-note p {
    margin: 0;
    color: rgba(240, 229, 202, 0.7);
    line-height: 1.6;
}

.status-reference p+p {
    margin-top: 0.55rem;
}

.immunity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.immunity-grid article {
    padding: 1.3rem;
    border-left: 2px solid rgba(120, 190, 225, 0.7);
    background: rgba(75, 137, 169, 0.07);
}

.status-duration-note {
    padding: 1.5rem 1.7rem;
    border: 1px solid rgba(202, 163, 85, 0.23);
    background: rgba(202, 163, 85, 0.06);
}

@media (max-width: 850px) {

    .status-reference-grid,
    .immunity-grid {
        grid-template-columns: 1fr;
    }

    .status-category-heading {
        display: grid;
        gap: 0.5rem;
    }

    .status-category-heading p {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .status-reference {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .status-reference img {
        width: 58px;
        height: 58px;
    }
}

.hero-rules-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-rules-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr);
    overflow: hidden;
    border: 1px solid rgba(202, 163, 85, 0.2);
    background: rgba(7, 9, 13, 0.82);
}

.hero-rules-portrait {
    position: relative;
    display: grid;
    min-height: 760px;
    overflow: hidden;
    place-items: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 38%,
            rgba(156, 120, 194, 0.15),
            transparent 38%),
        linear-gradient(155deg,
            rgba(14, 13, 20, 0.98),
            rgba(5, 7, 11, 0.98));
}

.hero-rules-portrait::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 50% 42%,
            transparent 20%,
            rgba(2, 5, 8, 0.42) 72%),
        repeating-linear-gradient(135deg,
            transparent 0,
            transparent 12px,
            rgba(255, 255, 255, 0.012) 13px,
            transparent 14px);
}

.hero-rules-portrait img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(82%, 350px);
    height: auto;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(208, 187, 134, 0.46);
    border-radius: 9px;
    object-fit: contain;
    box-shadow:
        0 30px 72px rgba(0, 0, 0, 0.76),
        0 0 30px rgba(156, 120, 194, 0.11);
    transition:
        filter 320ms ease,
        transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 320ms ease;
}

.hero-rules-portrait:hover img {
    filter: brightness(1.05) saturate(1.03);
    transform: translateY(-8px) scale(1.025);
    box-shadow:
        0 40px 88px rgba(0, 0, 0, 0.84),
        0 0 42px rgba(156, 120, 194, 0.2);
}

.hero-rules-content {
    display: grid;
    align-content: center;
    gap: 1.6rem;
    padding: 2rem;
}

.hero-rules-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(202, 163, 85, 0.2);
}

.hero-rules-title {
    margin: 0 0 0.35rem;
    color: #9c78c2;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-rules-header h3 {
    margin: 0;
    color: #f0e5ca;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 400;
}

.hero-rules-stats {
    display: flex;
    gap: 0.65rem;
}

.hero-rules-stats div {
    display: grid;
    min-width: 68px;
    padding: 0.6rem;
    text-align: center;
    border: 1px solid rgba(202, 163, 85, 0.16);
    background: rgba(255, 255, 255, 0.025);
}

.hero-rules-stats span {
    color: rgba(240, 229, 202, 0.5);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-rules-stats strong {
    color: #f0e5ca;
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 400;
}

.hero-orientation span,
.hero-ability span {
    color: #9c78c2;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-orientation p,
.hero-ability p,
.hero-system-grid p {
    margin: 0.5rem 0 0;
    color: rgba(240, 229, 202, 0.7);
    line-height: 1.65;
}

.hero-ability {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
    padding: 1.2rem;
    border-left: 2px solid #79519e;
    background: rgba(102, 62, 140, 0.09);
}

.hero-ability img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.hero-ability h4,
.hero-system-grid h4 {
    margin: 0.25rem 0 0;
    color: #f0e5ca;
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

.hero-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-system-grid article {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 900px) {
    .hero-rules-card {
        grid-template-columns: 1fr;
    }

    .hero-rules-portrait {
        min-height: 650px;
    }

    .hero-rules-portrait img {
        width: min(58%, 330px);
    }
}

@media (max-width: 620px) {
    .hero-rules-content {
        padding: 1.3rem;
    }

    .hero-rules-portrait {
        min-height: 570px;
    }

    .hero-rules-portrait img {
        width: min(72%, 300px);
    }

    .hero-rules-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-rules-stats {
        width: 100%;
    }

    .hero-rules-stats div {
        flex: 1;
        min-width: 0;
    }

    .hero-system-grid {
        grid-template-columns: 1fr;
    }
}

.hero-rules-mikal .hero-rules-title,
.hero-rules-mikal .hero-orientation span,
.hero-rules-mikal .hero-ability span {
    color: #8eae66;
}

.hero-rules-mikal .hero-ability {
    border-left-color: #668445;
    background: rgba(74, 112, 56, 0.1);
}

.hero-rules-mikal .hero-rules-portrait img {
    box-shadow:
        0 30px 72px rgba(0, 0, 0, 0.76),
        0 0 30px rgba(108, 154, 80, 0.12);
}

.hero-rules-mikal .hero-rules-portrait {
    background:
        radial-gradient(circle at 50% 38%,
            rgba(108, 154, 80, 0.16),
            transparent 38%),
        linear-gradient(155deg,
            rgba(12, 18, 13, 0.98),
            rgba(5, 8, 7, 0.98));
}

.hero-rules-mikal .hero-rules-portrait:hover img {
    box-shadow:
        0 40px 88px rgba(0, 0, 0, 0.84),
        0 0 42px rgba(108, 154, 80, 0.23);
}

.attunement-reference {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.attunement-reference div {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(119, 154, 84, 0.18);
    background: rgba(72, 105, 51, 0.07);
}

.attunement-reference img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.attunement-reference span {
    color: rgba(240, 229, 202, 0.72);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-system-grid article {
    position: relative;
}

.hero-system-grid p+p {
    margin-top: 0.65rem;
}

.hero-system-icon {
    float: right;
    width: 52px;
    height: 52px;
    margin: 0 0 0.5rem 0.7rem;
    object-fit: contain;
}

.hero-system-wide {
    grid-column: 1 / -1;
}

.oneness-element-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.oneness-element-grid article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid rgba(119, 154, 84, 0.15);
    background: rgba(72, 105, 51, 0.055);
}

.oneness-element-grid img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.oneness-element-grid h4 {
    margin: 0;
    color: #f0e5ca;
    font-family: Georgia, serif;
}

.oneness-element-grid p {
    margin: 0.3rem 0 0;
    color: rgba(240, 229, 202, 0.67);
    font-size: 0.87rem;
    line-height: 1.5;
}

@media (max-width: 620px) {

    .attunement-reference,
    .oneness-element-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hero-rules-ash .hero-rules-title,
.hero-rules-ash .hero-orientation span,
.hero-rules-ash .hero-ability span {
    color: #79b9df;
}

.hero-rules-ash .hero-ability {
    border-left-color: #5a9bc3;
    background: rgba(66, 137, 179, 0.1);
}

.hero-rules-ash .hero-rules-portrait img {
    box-shadow:
        0 30px 72px rgba(0, 0, 0, 0.76),
        0 0 30px rgba(84, 170, 220, 0.14);
}

.hero-rules-ash .hero-rules-portrait {
    background:
        radial-gradient(circle at 50% 38%,
            rgba(84, 170, 220, 0.17),
            transparent 38%),
        linear-gradient(155deg,
            rgba(8, 16, 23, 0.98),
            rgba(4, 8, 12, 0.98));
}

.hero-rules-ash .hero-rules-portrait:hover img {
    box-shadow:
        0 40px 88px rgba(0, 0, 0, 0.84),
        0 0 42px rgba(84, 170, 220, 0.25);
}

.performance-definition {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.performance-definition article {
    padding: 1rem;
    border-top: 2px solid rgba(105, 179, 220, 0.6);
    background: rgba(63, 126, 164, 0.06);
}

.performance-definition span {
    color: #79b9df;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.performance-definition p {
    margin: 0.55rem 0 0;
    color: rgba(240, 229, 202, 0.68);
    font-size: 0.88rem;
    line-height: 1.55;
}

.instrument-power-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.instrument-power-grid article {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(105, 179, 220, 0.16);
    background: rgba(63, 126, 164, 0.055);
}

.instrument-power-grid img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.instrument-power-grid h4,
.ash-memory-rules h4 {
    margin: 0;
    color: #f0e5ca;
    font-family: Georgia, serif;
}

.instrument-power-grid p,
.ash-memory-rules p,
.ash-memory-note p {
    margin: 0.45rem 0 0;
    color: rgba(240, 229, 202, 0.68);
    line-height: 1.55;
}

.ash-memory-rules {
    padding: 1.25rem;
    border: 1px solid rgba(105, 179, 220, 0.18);
    background:
        radial-gradient(circle at top left,
            rgba(84, 170, 220, 0.12),
            transparent 38%),
        rgba(6, 12, 18, 0.7);
}

.ash-memory-rules header {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.ash-memory-rules header img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.ash-memory-rules ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: rgba(240, 229, 202, 0.68);
    line-height: 1.65;
}

.memory-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(105, 179, 220, 0.16);
}

.memory-rules-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.memory-rules-table th,
.memory-rules-table td {
    padding: 0.9rem;
    vertical-align: top;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(240, 229, 202, 0.7);
    line-height: 1.5;
    text-align: left;
}

.memory-rules-table thead th {
    color: #79b9df;
    background: rgba(63, 126, 164, 0.12);
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.memory-rules-table tbody th {
    width: 120px;
    color: #f0e5ca;
    font-family: Georgia, serif;
    font-weight: 400;
}

.memory-rules-table tr:last-child th,
.memory-rules-table tr:last-child td {
    border-bottom: 0;
}

.memory-rules-table th:last-child,
.memory-rules-table td:last-child {
    border-right: 0;
}

.ash-memory-note {
    padding: 1rem 1.2rem;
    border-left: 2px solid #79b9df;
    background: rgba(63, 126, 164, 0.07);
}

.ash-memory-note strong {
    color: #f0e5ca;
    font-family: Georgia, serif;
    font-weight: 400;
}

.hero-rules-torstein {
    border-color: rgba(101, 184, 222, 0.28);
    background:
        radial-gradient(circle at 18% 30%,
            rgba(61, 157, 205, 0.11),
            transparent 34%),
        rgba(6, 10, 15, 0.9);
}

.hero-rules-torstein .hero-rules-title,
.hero-rules-torstein .hero-orientation span,
.hero-rules-torstein .hero-ability span {
    color: #7bc6e9;
}

.hero-rules-torstein .hero-ability {
    border-left-color: #62b6dc;
    background: rgba(55, 145, 190, 0.1);
}

.torstein-form-stage {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 38%,
            rgba(77, 179, 225, 0.2),
            transparent 36%),
        linear-gradient(155deg,
            rgba(9, 19, 29, 0.98),
            rgba(3, 7, 11, 0.98));
}

.torstein-form-stage::before,
.torstein-form-stage::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.torstein-form-stage::before {
    z-index: -1;
    inset: 11% -30%;
    border: 1px solid rgba(112, 202, 239, 0.13);
    border-radius: 50%;
    box-shadow:
        0 0 70px rgba(76, 173, 218, 0.14),
        inset 0 0 60px rgba(76, 173, 218, 0.08);
    transform: rotate(-17deg);
}

.torstein-form-stage::after {
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 24%;
    background: linear-gradient(to top,
        rgba(5, 9, 13, 0.96),
        transparent);
}

.torstein-form-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(82%, 350px);
    aspect-ratio: 2 / 3;
    margin: 0;
    border: 1px solid rgba(208, 187, 134, 0.52);
    border-radius: 9px;
    background: #05090d;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
    cursor: pointer;
    outline: none;
    transform-origin: 50% 88%;
    transition:
        filter 420ms ease,
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 420ms ease;
}

.torstein-form-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.torstein-form-card figcaption {
    position: absolute;
    z-index: 6;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(208, 187, 134, 0.34);
    background: rgba(3, 7, 11, 0.9);
    color: #eee0ba;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 260ms ease,
        transform 320ms ease;
}

.torstein-form-card-living {
    z-index: 3;
    transform: translate(-64%, -49%) rotate(-6deg) scale(0.9);
}

.torstein-form-card-ethereal {
    z-index: 2;
    filter: brightness(1.02) saturate(0.88);
    transform: translate(-38%, -47%) rotate(6deg) scale(0.94);
}

.torstein-form-card:hover,
.torstein-form-card:focus-visible {
    z-index: 4;
    filter: brightness(1.08) saturate(1);
    box-shadow:
        0 38px 88px rgba(0, 0, 0, 0.84),
        0 0 42px rgba(91, 190, 231, 0.25);
}

.torstein-form-card-living:hover,
.torstein-form-card-living:focus-visible {
    transform: translate(-70%, -52%) rotate(-2deg) scale(1);
}

.torstein-form-card-ethereal:hover,
.torstein-form-card-ethereal:focus-visible {
    transform: translate(-31%, -52%) rotate(2deg) scale(1.04);
}

.torstein-form-card:hover figcaption,
.torstein-form-card:focus-visible figcaption {
    opacity: 1;
    transform: translateY(0);
}

.torstein-essence-rules,
.torstein-oath-rules {
    padding: 1.25rem;
    border: 1px solid rgba(98, 182, 220, 0.2);
    background: rgba(29, 91, 122, 0.065);
}

.torstein-essence-rules > header,
.torstein-oath-rules > header {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.torstein-essence-rules > header > img,
.torstein-oath-rules > header > img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.torstein-essence-rules h4,
.torstein-oath-rules h4,
.torstein-oath-grid h5 {
    margin: 0;
    color: #f0e5ca;
    font-family: Georgia, serif;
    font-weight: 400;
}

.torstein-essence-rules h4,
.torstein-oath-rules h4 {
    font-size: 1.2rem;
}

.torstein-essence-rules p,
.torstein-oath-rules p {
    margin: 0.45rem 0 0;
    color: rgba(240, 229, 202, 0.7);
    line-height: 1.58;
}

.torstein-ethereal-stats {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.torstein-ethereal-stats span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(105, 194, 233, 0.16);
    background: rgba(71, 164, 207, 0.07);
    color: #76bddd;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.torstein-ethereal-stats strong {
    color: #eaf7ff;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.torstein-essence-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    counter-reset: essence-step;
    list-style: none;
}

.torstein-essence-steps li {
    position: relative;
    padding: 1rem 1rem 1rem 3.1rem;
    border: 1px solid rgba(98, 182, 220, 0.13);
    background: rgba(3, 10, 16, 0.48);
    counter-increment: essence-step;
}

.torstein-essence-steps li::before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border: 1px solid rgba(107, 195, 234, 0.42);
    border-radius: 50%;
    color: #8ed5f3;
    content: counter(essence-step);
    font-family: Georgia, serif;
    font-size: 0.78rem;
}

.torstein-essence-steps strong,
.torstein-cleanup-note > strong {
    color: #e9dfc5;
    font-family: Georgia, serif;
    font-weight: 400;
}

.torstein-essence-steps p {
    font-size: 0.87rem;
}

.torstein-cleanup-note {
    margin-top: 0.8rem;
    padding: 0.9rem 1rem;
    border-left: 2px solid #69bee5;
    background: rgba(57, 151, 194, 0.075);
}

.torstein-oath-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.torstein-oath-grid article {
    padding: 0.9rem;
    border: 1px solid rgba(98, 182, 220, 0.14);
    background: rgba(3, 10, 16, 0.46);
    transition:
        border-color 220ms ease,
        background 220ms ease,
        transform 280ms ease;
}

.torstein-oath-grid article:hover {
    border-color: rgba(116, 205, 242, 0.44);
    background: rgba(56, 146, 190, 0.11);
    transform: translateY(-4px);
}

.torstein-oath-grid img {
    float: right;
    width: 50px;
    height: 50px;
    margin: 0 0 0.45rem 0.55rem;
    object-fit: contain;
}

.torstein-oath-grid h5 {
    font-size: 1rem;
}

.torstein-oath-grid p {
    font-size: 0.84rem;
}

@media (max-width: 1120px) {
    .torstein-essence-steps,
    .torstein-oath-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .torstein-form-stage {
        min-height: 650px;
    }

    .torstein-form-card {
        width: min(58%, 330px);
    }
}

@media (max-width: 620px) {
    .torstein-form-stage {
        min-height: 570px;
    }

    .torstein-form-card {
        width: min(72%, 300px);
    }

    .torstein-form-card-living {
        transform: translate(-68%, -49%) rotate(-5deg) scale(0.86);
    }

    .torstein-form-card-ethereal {
        transform: translate(-32%, -47%) rotate(5deg) scale(0.9);
    }

    .torstein-ethereal-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .performance-definition,
    .instrument-power-grid {
        grid-template-columns: 1fr;
    }
}

.hero-difficulty {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(202, 163, 85, 0.16);
    background: rgba(202, 163, 85, 0.045);
}

.hero-difficulty-label {
    color: rgba(240, 229, 202, 0.62);
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-difficulty-stars {
    display: flex;
    gap: 0.25rem;
}

.difficulty-star {
    font-size: 1.2rem;
    line-height: 1;
    text-shadow: 0 0 10px transparent;
}

.difficulty-star-full {
    color: #d7ae54;
    text-shadow:
        0 0 6px rgba(215, 174, 84, 0.55),
        0 0 14px rgba(215, 174, 84, 0.2);
}

.difficulty-star-empty {
    color: transparent;
    -webkit-text-stroke: 1px rgba(215, 174, 84, 0.48);
    text-shadow: none;
}

.hero-power-detail {
    padding: 1.1rem;
    border-left: 2px solid #79519e;
    background: rgba(102, 62, 140, 0.06);
}

.hero-power-detail h4 {
    margin: 0;
    color: #f0e5ca;
    font-family: Georgia, serif;
}

.hero-power-detail p {
    margin: 0.55rem 0 0;
    color: rgba(240, 229, 202, 0.7);
    line-height: 1.6;
}

@media (min-width: 1101px) {
    .rules-page-navigation {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.rules-page-navigation a[hidden],
.rules-content-section[hidden] {
    display: none !important;
}

/* =========================================================
   GLOBAL ICON GLOSSARY
   ========================================================= */

.navigation-glossary {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--site-gold);
    cursor: pointer;
}

.navigation-glossary > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(199, 164, 91, 0.5);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.navigation-glossary small {
    color: var(--site-text-muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.navigation-glossary:hover > span,
.navigation-glossary:focus-visible > span {
    border-color: var(--site-gold);
    box-shadow: 0 0 14px rgba(199, 164, 91, 0.25);
    color: var(--site-gold-light);
}

.rules-page-navigation .rules-glossary-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 62px;
    padding: 12px;
    border: 0;
    border-left: 1px solid rgba(199, 164, 91, 0.28);
    background: rgba(199, 164, 91, 0.08);
    color: var(--site-gold-light);
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rules-page-navigation .rules-glossary-open:hover {
    background: rgba(199, 164, 91, 0.15);
}

.icon-glossary-overlay[hidden] {
    display: none !important;
}

.icon-glossary-is-open {
    overflow: hidden;
}

.icon-glossary-overlay {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(1, 4, 6, 0.92);
    backdrop-filter: blur(9px);
}

.icon-glossary-dialog {
    display: flex;
    flex-direction: column;
    width: min(1240px, 100%);
    height: min(900px, calc(100vh - 40px));
    max-height: none;
    overflow: hidden;
    border: 1px solid rgba(199, 164, 91, 0.55);
    background:
        radial-gradient(circle at 72% 0%, rgba(61, 87, 100, 0.12), transparent 38%),
        #080d11;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.82);
}

.icon-glossary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(199, 164, 91, 0.24);
}

.icon-glossary-header p,
.icon-glossary-detail p {
    margin: 0 0 7px;
    color: var(--site-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.icon-glossary-header h2 {
    margin: 0 0 8px;
    color: var(--site-gold-light);
    font-size: clamp(29px, 3vw, 44px);
    font-weight: 500;
}

.icon-glossary-header > div > span {
    color: var(--site-text-muted);
    font-size: 13px;
}

.icon-glossary-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(199, 164, 91, 0.4);
    background: #080d11;
    color: var(--site-gold-light);
    cursor: pointer;
    font-size: 25px;
}

.icon-glossary-layout {
    display: grid;
    position: relative;
    flex: 1 1 auto;
    grid-template-columns: 190px minmax(0, 1fr) 285px;
    height: auto;
    min-height: 0;
}

.icon-glossary-categories {
    padding: 18px 0;
    overflow-y: auto;
    border-right: 1px solid rgba(199, 164, 91, 0.18);
    scrollbar-color: rgba(199, 164, 91, 0.72) rgba(199, 164, 91, 0.06);
    scrollbar-width: thin;
}

.icon-glossary-categories button {
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: var(--site-text-muted);
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-align: left;
    text-transform: uppercase;
}

.icon-glossary-categories button:hover,
.icon-glossary-categories button.is-active {
    border-left-color: var(--site-gold);
    background: rgba(199, 164, 91, 0.08);
    color: var(--site-gold-light);
}

.icon-glossary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    align-content: start;
    gap: 10px;
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.icon-glossary-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.icon-glossary-scroll-rail {
    position: absolute;
    z-index: 7;
    top: 18px;
    right: 285px;
    bottom: 18px;
    width: 8px;
    border: 1px solid rgba(199, 164, 91, 0.2);
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(3, 8, 11, 0.96),
        rgba(85, 65, 31, 0.34),
        rgba(3, 8, 11, 0.96)
    );
    box-shadow:
        0 0 0 3px rgba(2, 6, 9, 0.72),
        inset 0 0 8px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-5px);
    transition: opacity 180ms ease;
}

.icon-glossary-scroll-rail.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.icon-glossary-scroll-thumb {
    position: absolute;
    top: 0;
    right: 1px;
    left: 1px;
    min-height: 54px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #e3c77f,
        #ad7b30 52%,
        #6e481a
    );
    box-shadow:
        0 0 8px rgba(218, 186, 111, 0.46),
        inset 0 1px rgba(255, 239, 184, 0.72);
    cursor: grab;
    touch-action: none;
}

.icon-glossary-scroll-thumb:active {
    cursor: grabbing;
}

.icon-glossary-categories::-webkit-scrollbar,
.icon-glossary-grid::-webkit-scrollbar,
.icon-glossary-layout::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.icon-glossary-categories::-webkit-scrollbar-track,
.icon-glossary-grid::-webkit-scrollbar-track,
.icon-glossary-layout::-webkit-scrollbar-track {
    border-left: 1px solid rgba(199, 164, 91, 0.1);
    background: linear-gradient(
        180deg,
        rgba(2, 6, 9, 0.72),
        rgba(199, 164, 91, 0.07),
        rgba(2, 6, 9, 0.72)
    );
}

.icon-glossary-categories::-webkit-scrollbar-thumb,
.icon-glossary-grid::-webkit-scrollbar-thumb,
.icon-glossary-layout::-webkit-scrollbar-thumb {
    border: 1px solid rgba(8, 13, 17, 0.82);
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(226, 197, 126, 0.9),
        rgba(142, 105, 43, 0.9)
    );
    background-clip: padding-box;
    box-shadow: 0 0 8px rgba(218, 186, 111, 0.24);
}

.icon-glossary-categories::-webkit-scrollbar-button,
.icon-glossary-grid::-webkit-scrollbar-button,
.icon-glossary-layout::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.icon-glossary-group-title {
    grid-column: 1 / -1;
    position: sticky;
    z-index: 2;
    top: -22px;
    margin: 12px -2px 4px;
    padding: 12px 4px 10px;
    border-bottom: 1px solid rgba(199, 164, 91, 0.3);
    background: linear-gradient(
        180deg,
        #080d11 70%,
        rgba(8, 13, 17, 0.94)
    );
    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.icon-glossary-group-title:first-child {
    margin-top: -12px;
}

.icon-glossary-grid.is-grouped {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    align-content: start;
    padding-top: 22px;
    box-shadow:
        inset 0 14px 18px -20px rgba(218, 186, 111, 0.8),
        inset 0 -14px 18px -20px rgba(218, 186, 111, 0.8);
}

.icon-glossary-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    min-height: 112px;
    padding: 12px 8px;
    border: 1px solid rgba(199, 164, 91, 0.16);
    background: rgba(5, 10, 14, 0.72);
    color: #c8c2b4;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 12px;
    text-align: center;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.icon-glossary-card img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.6));
}

.icon-glossary-card small {
    display: none;
    color: var(--site-text-muted);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.45;
}

.icon-glossary-card:hover,
.icon-glossary-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(218, 186, 111, 0.7);
    background: rgba(199, 164, 91, 0.1);
    color: var(--site-gold-light);
}

.icon-glossary-detail {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 30px 25px;
    border-left: 1px solid rgba(199, 164, 91, 0.18);
    background: rgba(2, 6, 9, 0.72);
    text-align: center;
}

.icon-glossary-detail img {
    width: 132px;
    height: 132px;
    margin-bottom: 24px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
}

.icon-glossary-detail h3 {
    margin: 0 0 15px;
    color: var(--site-gold-light);
    font-size: 25px;
    font-weight: 500;
}

.icon-glossary-detail > span {
    color: var(--site-text-muted);
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .icon-glossary-layout {
        grid-template-columns: 155px minmax(0, 1fr);
    }

    .icon-glossary-detail {
        display: none;
    }

    .icon-glossary-grid {
        grid-template-columns: repeat(3, minmax(82px, 1fr));
    }

    .icon-glossary-scroll-rail {
        right: 4px;
        transform: none;
    }
}

@media (max-width: 650px) {
    .icon-glossary-overlay {
        padding: 0;
    }

    .icon-glossary-dialog {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        border: 0;
    }

    .icon-glossary-header {
        padding: 20px;
    }

    .icon-glossary-layout {
        display: block;
        height: calc(100vh - 126px);
        max-height: calc(100vh - 126px);
        overflow-y: auto;
    }

    .icon-glossary-scroll-rail {
        display: none;
    }

    .icon-glossary-categories {
        display: flex;
        padding: 0;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(199, 164, 91, 0.18);
    }

    .icon-glossary-categories button {
        width: auto;
        min-width: max-content;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }

    .icon-glossary-categories button.is-active {
        border-bottom-color: var(--site-gold);
    }

    .icon-glossary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        padding: 15px;
    }

    .icon-glossary-grid.is-grouped {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 15px;
    }

    .icon-glossary-grid.is-grouped .icon-glossary-group-title {
        top: -15px;
        margin-inline: 0;
        padding-inline: 2px;
    }

    .icon-glossary-card {
        min-height: 104px;
    }

    .icon-glossary-card.is-active {
        grid-column: 1 / -1;
    }

    .icon-glossary-card.is-active small {
        display: block;
    }
}

.status-reference.status-neutral {
    border-top-color: rgba(202, 163, 85, 0.6);
}

.immunity-grid article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.immunity-grid article img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* =========================================================
   USER AUTHENTICATION
   ========================================================= */

.site-navigation.navigation-guest {
    gap: 6px;
}

.navigation-guest > .navigation-glossary {
    position: relative;

    margin-left: 16px;
    padding-left: 17px;

    box-sizing: content-box;
}

.navigation-guest > .navigation-glossary::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;

    width: 1px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(199, 164, 91, 0.36),
            transparent
        );

    content: "";
}

.navigation-guest > .site-audio-controls {
    position: relative;
    z-index: 2;

    width: 122px;
    height: 38px;
    margin-left: 12px;
    padding: 0 11px;

    gap: 9px;

    border-color: rgba(199, 164, 91, 0.28);
    border-radius: 3px;

    background:
        linear-gradient(
            135deg,
            rgba(199, 164, 91, 0.07),
            rgba(7, 11, 14, 0.82)
        );
}

.navigation-guest > .site-audio-controls
> .site-audio-volume {
    width: 76px;
}

.navigation-authentication {
    position: relative;

    margin-left: 8px;
}

.navigation-authentication > .navigation-login {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 14px;

    border-color: rgba(199, 164, 91, 0.62);

    background:
        linear-gradient(
            135deg,
            rgba(199, 164, 91, 0.2),
            rgba(199, 164, 91, 0.06)
        );

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
    list-style: none;
    text-transform: uppercase;
    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        inset 0 0 18px rgba(199, 164, 91, 0.06),
        0 0 14px rgba(0, 0, 0, 0.2);
}

.navigation-authentication
> .navigation-login::-webkit-details-marker {
    display: none;
}

.navigation-authentication > .navigation-login:hover {
    background:
        linear-gradient(
            135deg,
            rgba(199, 164, 91, 0.27),
            rgba(199, 164, 91, 0.09)
        );

    transform: translateY(-1px);
}

.navigation-authentication-menu {
    position: absolute;
    z-index: 120;
    top: calc(100% + 9px);
    right: 0;

    display: grid;

    min-width: 230px;
    padding: 7px;

    gap: 5px;

    border: 1px solid rgba(199, 164, 91, 0.45);

    background: rgba(7, 11, 14, 0.98);

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.navigation-authentication:not([open])
> .navigation-authentication-menu {
    display: none;
}

.navigation-authentication-menu > a {
    display: flex;
    align-items: center;

    min-height: 40px;
    padding: 0 12px;

    gap: 8px;

    border: 1px solid rgba(199, 164, 91, 0.18);

    background: rgba(199, 164, 91, 0.04);
}

.navigation-authentication-menu
> .navigation-login-discord {
    gap: 7px;

    border-color: rgba(88, 101, 242, 0.65);
}

.navigation-authentication-menu
> .navigation-login-discord svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}

.navigation-authentication-menu
> .navigation-login-discord:hover {
    color: #c9ceff;
    border-color: #5865f2;

    background: rgba(88, 101, 242, 0.16);
}

.navigation-guest > .navigation-languages {
    gap: 5px;
    margin-left: 10px;
    padding: 4px 0 4px 10px;

    border-left-color: rgba(199, 164, 91, 0.32);
}

.navigation-guest
.navigation-language-button {
    width: 34px;
    height: 28px;
}

.site-navigation .navigation-login {
    padding: 12px 20px;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold-dark);

    background:
        linear-gradient(135deg,
            rgba(199, 164, 91, 0.16),
            rgba(199, 164, 91, 0.04));

    box-shadow:
        inset 0 0 14px rgba(199, 164, 91, 0.05);
}

.site-navigation .navigation-login:hover {
    border-color: var(--site-gold);

    box-shadow:
        0 0 20px rgba(199, 164, 91, 0.12),
        inset 0 0 18px rgba(199, 164, 91, 0.08);
}

.site-navigation .navigation-login::after,
.site-navigation .navigation-logout::after {
    display: none;
}

.site-navigation .navigation-wallet {
    display: flex;
    align-items: center;

    min-width: 88px;

    gap: 7px;

    color: var(--site-gold-light);

    text-transform: none;
}

.site-navigation .navigation-wallet::after {
    display: none;
}

.navigation-wallet-icon {
    width: 42px;
    height: 30px;

    flex: 0 0 42px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 5px
            rgba(173, 210, 229, 0.22)
        )
        drop-shadow(
            0 0 6px
            rgba(199, 164, 91, 0.12)
        );

    transition:
        filter 180ms ease,
        transform 180ms ease;
}

.navigation-wallet-content {
    display: flex;

    min-width: 0;

    flex-direction: column;
}

.navigation-wallet-content strong {
    color: var(--site-gold-light);

    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.navigation-wallet-content small {
    margin-top: 3px;

    color: rgba(199, 164, 91, 0.72);

    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.site-navigation .navigation-wallet:hover
.navigation-wallet-icon {
    filter:
        drop-shadow(
            0 0 8px
            rgba(173, 210, 229, 0.42)
        )
        drop-shadow(
            0 0 10px
            rgba(199, 164, 91, 0.22)
        );

    transform:
        translateY(-1px)
        scale(1.06);
}

.site-navigation .navigation-wallet:hover
.navigation-wallet-content strong {
    color: #f1d78f;
}

.navigation-user {
    display: flex;
    align-items: center;

    gap: 8px;

    padding-left: 16px;

    border-left: 1px solid var(--site-border);
}

.site-navigation .navigation-user-profile {
    display: flex;
    align-items: center;
    flex-direction: column;

    min-width: 48px;

    gap: 3px;

    text-transform: none;
}

.site-navigation .navigation-user-profile::after {
    display: none;
}

.site-navigation .navigation-user-profile:hover .navigation-user-name {
    color: var(--site-gold-light);
}

.navigation-user-avatar-fallback {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border: 1px solid var(--site-gold-dark);
    border-radius: 50%;

    box-shadow:
        0 0 14px rgba(199, 164, 91, 0.16);
}

.navigation-user-avatar {
    display: block;

    object-fit: cover;
}

.navigation-user-avatar-fallback {
    display: grid;
    place-items: center;

    color: var(--site-gold-light);

    background:
        radial-gradient(circle,
            rgba(199, 164, 91, 0.22),
            rgba(8, 11, 15, 0.96));

    font-family: Georgia, serif;
    font-size: 16px;
}

.navigation-user-name {
    max-width: 72px;

    overflow: hidden;

    color: var(--site-text);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.navigation-user-actions {
    display: flex;
    align-items: center;
    flex-direction: column;

    width: 70px;

    gap: 4px;
}

.site-navigation .navigation-logout {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    color: rgba(199, 164, 91, 0.72);

    border: 1px solid rgba(199, 164, 91, 0.22);
    border-radius: 50%;

    background: rgba(7, 11, 14, 0.7);

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.site-navigation .navigation-logout:hover {
    color: var(--site-gold-light);

    border-color: rgba(199, 164, 91, 0.62);

    background: rgba(199, 164, 91, 0.08);

    box-shadow: 0 0 12px rgba(199, 164, 91, 0.14);
}

.navigation-logout svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.navigation-user-actions .site-audio-controls {
    width: 70px;
    height: 25px;
    padding: 0 6px;

    gap: 5px;
}

.navigation-user-actions .site-audio-toggle {
    width: 16px;
    height: 16px;

    flex-basis: 16px;

    font-size: 13px;
}

.navigation-user-actions .site-audio-volume {
    width: 36px;
}

@media (max-width: 900px) {
    .navigation-user {
        padding-left: 0;

        border-left: 0;
    }

    .navigation-guest > .navigation-glossary {
        margin-left: 0;
        padding-left: 0;
    }

    .navigation-guest > .navigation-glossary::before {
        display: none;
    }

    .navigation-guest > .site-audio-controls,
    .navigation-guest > .navigation-authentication,
    .navigation-guest > .navigation-languages {
        margin-left: 5px;
    }

}

@media (max-width: 560px) {
    .navigation-user {
        justify-content: center;

        width: 100%;
    }

    .navigation-authentication {
        width: 100%;
    }

    .navigation-authentication-menu {
        position: static;

        width: 100%;
        margin-top: 6px;
    }
}

/* =========================================================
   SITE LOGO
   ========================================================= */

.site-logo-image {
    display: block;

    width: auto;
    height: 52px;
    max-width: 280px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 8px rgba(199, 164, 91, 0.22));
}

@media (max-width: 560px) {
    .site-logo-image {
        height: 46px;
        max-width: 260px;
    }
}

.collection-toolbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;

    width: min(1500px, 100%);

    gap: 18px;

    margin: 28px auto 0;
    padding: 22px;

    border: 1px solid rgba(199,
            164,
            91,
            0.2);

    background: rgba(10,
            14,
            18,
            0.82);
}

.collection-search {
    display: grid;
    flex: 1 1 320px;

    min-width: 260px;

    gap: 8px;
}

.collection-search label {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.collection-search input {
    width: 100%;
    height: 44px;

    box-sizing: border-box;
    padding: 0 14px;

    color: var(--site-text);

    border: 1px solid rgba(199, 164, 91, 0.28);
    outline: none;

    background: rgba(5, 8, 11, 0.96);

    font-family: Arial, sans-serif;
    font-size: 12px;
}

.collection-search input::placeholder {
    color: rgba(231, 220, 192, 0.48);
}

.collection-search input:focus {
    border-color: rgba(220, 181, 91, 0.75);
}

.collection-filter {
    display: grid;

    min-width: 190px;

    gap: 8px;
}

.collection-filter label {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.collection-filter select {
    min-width: 190px;
    height: 44px;

    padding: 0 38px 0 14px;

    color: var(--site-text);

    border: 1px solid rgba(199,
            164,
            91,
            0.28);

    background-color: rgba(5,
            8,
            11,
            0.96);

    font-family: Arial, sans-serif;
    font-size: 12px;

    cursor: pointer;
}

.collection-filter select:focus {
    outline: 1px solid var(--site-gold);
    outline-offset: 2px;
}

.collection-reset-filters {
    height: 44px;

    padding: 0 22px;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold-dark);

    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.collection-reset-filters:hover {
    color: #080b0f;

    border-color: var(--site-gold);

    background: var(--site-gold);
}

.collection-card[hidden],
.collection-deck[hidden] {
    display: none;
}

/* =========================================================
   CARD COLLECTION
   ========================================================= */

.collection-page {
    min-height: calc(100vh - var(--site-header-height));

    padding: 72px 48px 100px;
}

.collection-header,
.collection-content {
    width: min(1500px,
            100%);

    margin-right: auto;
    margin-left: auto;
}

.collection-header {
    position: relative;

    padding-bottom: 48px;

    border-bottom: 1px solid var(--site-border);
}

.collection-eyebrow,
.collection-deck-label {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.collection-header h1 {
    margin: 12px 0 0;

    color: var(--site-gold-light);

    font-family: Georgia, serif;
    font-size: clamp(42px,
            5vw,
            72px);
    font-weight: 400;
}

.collection-introduction {
    max-width: 620px;

    margin: 16px 0 0;

    color: var(--site-text-muted);

    line-height: 1.7;
}

.collection-summary {
    position: absolute;

    right: 0;
    bottom: 48px;

    display: flex;
    align-items: baseline;

    gap: 12px;
}

.collection-summary strong {
    color: var(--site-gold-light);

    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 400;
}

.collection-summary span {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.collection-deck {
    padding-top: 64px;
}

.collection-deck-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 28px;
    padding-bottom: 16px;

    border-bottom: 1px solid rgba(199,
            164,
            91,
            0.18);
}

.collection-deck-header h2 {
    margin: 7px 0 0;

    color: var(--site-gold-light);

    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
}

.collection-deck-count {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(10,
            minmax(0, 1fr));

    justify-content: stretch;

    gap: 18px 12px;
}

.collection-card {
    min-width: 0;

    position: relative;

    transition:
        z-index 180ms ease;
}

.collection-card-image-frame:hover {
    z-index: 1;
    overflow: hidden;
}

.collection-card-image-frame {
    position: relative;

    overflow: hidden;

    aspect-ratio: 2 / 3;

    border: 1px solid rgba(199,
            164,
            91,
            0.22);

    background: rgba(8,
            11,
            15,
            0.88);

    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.28);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.collection-card-image-frame:hover {
    border-color: rgba(199, 164, 91, 0.72);
}

.collection-card-image-frame:hover .collection-card-image {
    transform: none;
}

.collection-card-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    transform-origin: center;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.collection-card-preview {
    position: fixed;
    z-index: 10000;

    overflow: hidden;

    aspect-ratio: 2 / 3;

    border: 1px solid rgba(199, 164, 91, 0.82);

    background: #050a0d;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(199, 164, 91, 0.15);

    pointer-events: none;
}

.collection-card-preview[hidden] {
    display: none;
}

.collection-card-preview img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.collection-card-quantity {
    position: absolute;

    right: 10px;
    bottom: 10px;

    display: grid;
    place-items: center;

    min-width: 34px;
    height: 28px;
    padding: 0 8px;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold-dark);

    background: rgba(8,
            11,
            15,
            0.92);

    box-shadow:
        0 0 14px rgba(0,
            0,
            0,
            0.5);

    font-family: Arial, sans-serif;
    font-size: 11px;
}

.collection-card-information {
    padding: 14px 4px 0;
}

.collection-card-information h3 {
    overflow: hidden;

    margin: 0;

    color: var(--site-text);

    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-card-metadata {
    display: flex;
    justify-content: space-between;

    gap: 10px;

    margin-top: 8px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.collection-card[data-rarity="Uncommon"] .collection-card-image-frame {
    border-bottom-color: rgba(68,
            150,
            90,
            0.8);
}

.collection-card[data-rarity="Rare"] .collection-card-image-frame {
    border-bottom-color: rgba(69,
            123,
            190,
            0.85);
}

.collection-card[data-rarity="Epic"] .collection-card-image-frame {
    border-bottom-color: rgba(135,
            75,
            178,
            0.9);
}

.collection-card[data-rarity="Legendary"] .collection-card-image-frame {
    border-bottom-color: rgba(210,
            143,
            48,
            0.95);
}

.collection-empty {
    display: grid;
    place-items: center;

    min-height: 420px;

    text-align: center;
}

.collection-empty-rune {
    color: var(--site-gold);

    font-size: 52px;
}

.collection-empty h2 {
    margin: 20px 0 0;

    color: var(--site-gold-light);

    font-family: Georgia, serif;
    font-weight: 400;
}

.collection-empty p {
    color: var(--site-text-muted);
}

@media (max-width: 1500px) {
    .collection-grid {
        grid-template-columns: repeat(8,
                minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .collection-grid {
        grid-template-columns: repeat(6,
                minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .collection-page {
        padding: 54px 24px 80px;
    }

    .collection-summary {
        position: static;

        margin-top: 26px;
    }

    .collection-grid {
        grid-template-columns: repeat(4,
                minmax(0, 1fr));

        justify-content: stretch;
    }
}

@media (max-width: 560px) {
    .collection-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .collection-grid {
        grid-template-columns: repeat(2,
                minmax(0, 1fr));

        gap: 22px 12px;
    }

    .collection-deck-header {
        align-items: start;
    }

    .collection-card-information h3 {
        font-size: 14px;
    }
}

.collection-hero-grid {
    grid-template-columns: repeat(auto-fill,
            minmax(180px, 220px));

    justify-content: start;
}

@media (hover: none) {
    .collection-card-preview {
        display: none !important;
    }
}

.collection-card[data-rarity="Hero"] .collection-card-image-frame {
    border-bottom-color: rgba(199,
            164,
            91,
            0.9);
}

.quick-play-page {
    min-height: calc(100vh - 90px);
    padding: 54px clamp(24px, 6vw, 120px) 90px;
    background:
        radial-gradient(circle at 50% 0%,
            rgba(195, 152, 69, 0.08),
            transparent 34%),
        #080d11;
}

.quick-play-header {
    width: min(1280px, 100%);
    margin: 0 auto 48px;

    text-align: center;
}

.quick-play-eyebrow {
    margin: 0 0 14px;
    color: #caa653;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.quick-play-header h1 {
    margin: 0;
    color: #efe0b2;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 7vw, 6.4rem);
    font-weight: 500;
    line-height: 0.95;
}

.quick-play-header>p:not(.quick-play-eyebrow) {
    max-width: 620px;
    margin: 26px auto 34px;
    color: #aaa69d;
    font-size: 0.98rem;
    line-height: 1.8;
}

.deck-library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(1400px, 100%);

    gap: 28px;

    margin-right: auto;
    margin-bottom: 34px;
    margin-left: auto;

    text-align: left;
}

.deck-library-heading {
    min-width: 0;
}

.quick-play-header.deck-library-header h1,
.deck-trio-header.deck-library-header h1 {
    margin: 4px 0 8px;

    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.quick-play-header.deck-library-header
    .deck-library-heading>p:last-child,
.deck-trio-header.deck-library-header
    .deck-library-heading>p:last-child {
    max-width: 620px;

    margin: 0;

    color: #aaa69d;

    font-size: 0.86rem;
    line-height: 1.6;
}

.deck-library-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 0 0 auto;

    gap: 12px;
}

.deck-library-tabs {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(145px, 1fr));

    border: 1px solid rgba(202, 166, 83, 0.28);

    background: rgba(5, 9, 12, 0.88);
}

.deck-library-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 16px;

    color: #969188;

    font-family: Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.deck-library-tabs a+a {
    border-left: 1px solid rgba(202, 166, 83, 0.22);
}

.deck-library-tabs a:hover {
    color: #ead9ad;

    background: rgba(202, 166, 83, 0.07);
}

.deck-library-tabs a.is-active {
    color: #0a0d10;

    background:
        linear-gradient(
            135deg,
            #ead391,
            #c9a451
        );

    box-shadow:
        inset 0 0 16px rgba(255, 245, 204, 0.14);
}

.deck-library-create {
    min-width: 150px;
    min-height: 42px;

    padding: 0 16px;

    font-size: 0.62rem;
}

@media (max-width: 980px) {
    .deck-library-header {
        align-items: stretch;
        flex-direction: column;
    }

    .deck-library-header-actions {
        align-items: stretch;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .deck-library-header-actions {
        flex-direction: column;
    }

    .deck-library-tabs {
        grid-template-columns: 1fr;
    }

    .deck-library-tabs a+a {
        border-top: 1px solid rgba(202, 166, 83, 0.22);
        border-left: 0;
    }

    .deck-library-create {
        width: 100%;
    }
}

.quick-play-decks {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.quick-play-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(202, 166, 83, 0.35);
}

.quick-play-section-title span {
    color: #8e8a80;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.quick-play-section-title h2 {
    margin: 8px 0 0;
    color: #e9d9ad;
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
}

.quick-play-section-title>strong {
    color: rgba(202, 166, 83, 0.4);
    font-family: Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 0.8;
}

.saved-deck-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: 22px;
}

.saved-deck-card {
    display: grid;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        minmax(150px, auto);
    align-items: center;

    min-height: 112px;

    gap: 16px;

    padding: 16px 18px;

    border: 1px solid rgba(202, 166, 83, 0.22);

    background:
        linear-gradient(
            100deg,
            rgba(24, 32, 39, 0.96),
            rgba(10, 15, 19, 0.96)
        );
}

.saved-deck-number {
    color: rgba(202, 166, 83, 0.28);

    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.saved-deck-content>p {
    margin: 0 0 4px;

    color: #caa653;

    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.saved-deck-content h3 {
    margin: 0;

    overflow: hidden;

    color: #eee0bb;

    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-deck-information {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 14px;

    margin-top: 8px;

    color: #8f8c84;

    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.saved-deck-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;

    min-width: 150px;

    gap: 7px;
}

.saved-deck-actions form {
    display: flex;

    margin: 0;
}

.saved-deck-actions .site-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;

    padding: 9px 12px;

    font-size: 8px;
    letter-spacing: 0.12em;
}

.saved-deck-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.saved-deck-card.is-defense {
    border-color: rgba(202, 166, 83, 0.58);
    background:
        radial-gradient(
            circle at 78% 50%,
            rgba(202, 166, 83, 0.1),
            transparent 32%
        ),
        linear-gradient(
            100deg,
            rgba(26, 34, 39, 0.98),
            rgba(10, 15, 19, 0.98)
        );
    box-shadow:
        inset 3px 0 0 rgba(202, 166, 83, 0.68),
        0 0 24px rgba(202, 166, 83, 0.05);
}

.saved-deck-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.saved-deck-defense-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #caa653;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.saved-deck-defense-badge>span {
    font-family: Georgia, serif;
    font-size: 1rem;
    animation:
        defense-rune-pulse
        3.2s
        ease-in-out
        infinite;
}

@keyframes defense-rune-pulse {

    0%,
    100% {
        color: #9b7a36;
        text-shadow: 0 0 3px transparent;
    }

    50% {
        color: #ead28e;
        text-shadow: 0 0 10px rgba(202, 166, 83, 0.55);
    }
}

.quick-play-empty {
    display: flex;
    min-height: 380px;
    margin-top: 28px;
    padding: 48px 24px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(202, 166, 83, 0.2);
    background:
        linear-gradient(145deg,
            rgba(20, 27, 33, 0.92),
            rgba(8, 13, 17, 0.96));
    text-align: center;
}

.quick-play-empty-rune {
    display: grid;
    width: 82px;
    height: 82px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid rgba(202, 166, 83, 0.42);
    color: #d2b565;
    font-size: 2.2rem;
    transform: rotate(45deg);
}

.quick-play-empty-rune::first-letter {
    transform: rotate(-45deg);
}

.quick-play-empty p {
    margin: 0 0 8px;
    color: #a98b49;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.quick-play-empty h3 {
    margin: 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
}

.quick-play-empty span {
    max-width: 560px;
    margin: 18px 0 30px;
    color: #96928a;
    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .saved-deck-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .quick-play-page {
        padding: 60px 18px 80px;
    }

    .saved-deck-card {
        grid-template-columns:
            34px
            minmax(0, 1fr);
    }

    .saved-deck-actions {
        grid-column: 1 / -1;
        flex-direction: row;

        width: 100%;
    }

    .saved-deck-actions form,
    .saved-deck-actions .site-button {
        flex: 1;
    }
}

/* =========================================================
   MATCH HISTORY CATEGORIES
   ========================================================= */

.match-history-page {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding:
        48px
        clamp(18px, 3vw, 50px)
        80px;
}

.match-history-header {
    grid-column: 1 / -1;
    margin-bottom: 12px;
}

.match-history-header h1 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.match-history-introduction {
    margin-top: 12px;
}

.match-history-category {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(202, 166, 83, 0.16);
    background: rgba(7, 12, 15, 0.72);
}

.match-history-category.is-defense {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(202, 166, 83, 0.055),
            transparent 34%
        ),
        rgba(7, 12, 15, 0.72);
}

.match-history-category-header {
    display: flex;
    min-height: 58px;
    margin-bottom: 12px;
    padding: 0 2px 12px;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(202, 166, 83, 0.18);
}

.match-history-category-header span {
    color: #967b40;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.match-history-category-header h2 {
    margin: 4px 0 0;
    color: #dfc98f;
    font-family: Georgia, serif;
    font-size: 1.28rem;
    font-weight: 500;
}

.match-history-category-header>strong,
.match-history-category-count>strong {
    color: rgba(202, 166, 83, 0.5);
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 500;
}

.match-history-category-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-history-category-count>span {
    padding: 4px 7px;
    border: 1px solid rgba(202, 166, 83, 0.48);
    background: rgba(202, 166, 83, 0.08);
    color: #d8ba6e;
    font-size: 0.48rem;
}

.match-history-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .showcase-card-torstein,
    .showcase-card-torstein::before,
    .showcase-card-torstein img {
        transition-duration: 1ms;
    }
}

.match-history-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.match-history-category .match-history-entry {
    position: relative;
    display: grid;
    grid-template-columns:
        64px
        minmax(82px, 1fr)
        22px
        minmax(82px, 1fr)
        105px
        74px;
    min-height: 92px;
    gap: 8px;
    padding: 11px;
    align-items: center;
}

.match-history-category .match-history-result {
    gap: 4px;
}

.match-history-category .match-history-result-rune {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
}

.match-history-category .match-history-result strong {
    font-size: 0.48rem;
    letter-spacing: 0.09em;
}

.match-history-category .match-history-player {
    display: grid;
    min-width: 0;
    grid-template-rows:
        54px
        14px
        10px;
    gap: 2px;
    align-items: start;
    justify-items: center;
}

.match-history-category .match-history-heroes {
    height: 54px;
    gap: 3px;
    align-items: start;
}

.match-history-category .match-history-hero-frame {
    width: 38px;
    height: 54px;
}

.match-history-category .match-history-player>span {
    max-width: 105px;
    margin: 0;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-history-category .match-history-player>small {
    min-height: 10px;
    margin: 0;
    font-size: 0.44rem;
    line-height: 10px;
}

.match-history-category .match-history-versus {
    font-size: 0.5rem;
}

.match-history-category .match-history-details {
    min-width: 0;
    gap: 3px;
    font-size: 0.52rem;
}

.match-history-category .match-history-details time {
    overflow: hidden;
    color: #69665f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-history-category .match-history-action {
    justify-self: end;
}

.match-history-category .match-history-review {
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.5rem;
}

.match-history-category-empty {
    display: grid;
    min-height: 100px;
    place-items: center;
    padding: 20px;
    border: 1px solid rgba(202, 166, 83, 0.11);
    background: rgba(8, 13, 17, 0.58);
    color: #77746d;
    font-family: Georgia, serif;
    font-size: 0.76rem;
    font-style: italic;
    text-align: center;
}

.match-history-entry.is-unread {
    border-color: rgba(202, 166, 83, 0.62);
    box-shadow:
        inset 3px 0 0 rgba(202, 166, 83, 0.72),
        0 0 18px rgba(202, 166, 83, 0.05);
}

.match-history-new {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 5px;
    padding: 3px 5px;
    border: 1px solid rgba(202, 166, 83, 0.52);
    background: #15140f;
    color: #d8ba6e;
    font-size: 0.42rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.match-history-empty {
    grid-column: 1 / -1;
}

.navigation-history-link {
    position: relative;
}

.navigation-defense-notification {
    position: absolute;
    top: -11px;
    right: -12px;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    border: 1px solid #e3c36e;
    border-radius: 10px;
    background: #8d2f27;
    box-shadow:
        0 0 10px rgba(194, 68, 55, 0.42);
    color: #fff1c9;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0;
    animation:
        defense-notification-pulse
        2.4s
        ease-in-out
        infinite;
}

@keyframes defense-notification-pulse {

    0%,
    100% {
        box-shadow:
            0 0 6px rgba(194, 68, 55, 0.28);
        transform: scale(1);
    }

    50% {
        box-shadow:
            0 0 14px rgba(225, 92, 70, 0.68);
        transform: scale(1.08);
    }
}

@media (max-width: 1250px) {
    .match-history-page {
        grid-template-columns: 1fr;
    }

    .match-history-header {
        grid-column: 1;
    }
}

@media (max-width: 720px) {
    .match-history-category .match-history-entry {
        grid-template-columns:
            52px
            1fr
            18px
            1fr;
    }

    .match-history-category .match-history-details {
        grid-column: 1 / 4;
    }

    .match-history-category .match-history-action {
        grid-column: 4;
        grid-row: 2;
    }
}


/* =========================================================
   CHALLENGER HALL
   ========================================================= */

.challenger-hall-page {
    min-height: calc(100vh - 90px);
    padding:
        72px
        clamp(24px, 5vw, 92px)
        110px;
    background:
        radial-gradient(
            circle at 50% 12%,
            rgba(202, 166, 83, 0.09),
            transparent 28%
        ),
        linear-gradient(
            115deg,
            rgba(9, 14, 18, 0.98),
            rgba(4, 8, 11, 0.99)
        );
}

.challenger-hall-header {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.challenger-hall-eyebrow {
    margin: 0 0 12px;
    color: #caa653;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.challenger-hall-header h1 {
    margin: 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 500;
    line-height: 1;
}

.challenger-hall-header>p:last-child {
    max-width: 610px;
    margin: 22px auto 0;
    color: #96928a;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
}

.challenger-hall-notice {
    max-width: 760px;
    margin: -30px auto 34px;
    padding: 12px 16px;
    border: 1px solid rgba(189, 113, 107, 0.42);
    background: rgba(87, 34, 32, 0.22);
    color: #d69a94;
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}

.challenger-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );
    gap: 18px;
    max-width: 1500px;
    margin: 0 auto;
}

.challenger-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 560px;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(202, 166, 83, 0.22);
    background:
        linear-gradient(
            160deg,
            rgba(24, 31, 36, 0.98),
            rgba(7, 11, 14, 0.99)
        );
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.challenger-card::before {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border: 1px solid rgba(202, 166, 83, 0.08);
    content: "";
    pointer-events: none;
}

.challenger-card:hover,
.challenger-card:focus-visible {
    border-color: rgba(220, 186, 101, 0.72);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.42),
        0 0 25px rgba(202, 166, 83, 0.09);
    outline: none;
    transform: translateY(-7px);
}

.challenger-card-number {
    position: absolute;
    z-index: 5;
    top: 18px;
    left: 20px;
    color: rgba(234, 217, 173, 0.46);
    font-family: Georgia, serif;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
}

.challenger-hero-frame {
    position: relative;
    display: block;
    height: 335px;
    overflow: hidden;
    background: #05090c;
}

.challenger-hero-frame.is-team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenger-hero-frame.is-team .challenger-hero-image {
    min-width: 0;
    object-position: 50% top;
}

.challenger-hero-frame::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 55%;
    background:
        linear-gradient(
            transparent,
            rgba(7, 11, 14, 0.98)
        );
    content: "";
    pointer-events: none;
}

.challenger-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter:
        brightness(0.68)
        saturate(0.82);
    transition:
        filter 260ms ease,
        transform 500ms ease;
}

.challenger-card:hover .challenger-hero-image,
.challenger-card:focus-visible .challenger-hero-image {
    filter:
        brightness(0.88)
        saturate(1);
    transform: scale(1.035);
}

.challenger-hero-rune {
    position: absolute;
    z-index: 3;
    right: 17px;
    bottom: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(202, 166, 83, 0.38);
    background: rgba(5, 9, 12, 0.82);
    color: #caa653;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.challenger-card-information {
    position: relative;
    z-index: 3;
    display: flex;
    padding: 0 22px 18px;
    flex-direction: column;
}

.challenger-player {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: 1.12rem;
}

.challenger-player>img,
.challenger-player-fallback {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(202, 166, 83, 0.42);
    border-radius: 50%;
    object-fit: cover;
}

.challenger-player-fallback {
    background: rgba(202, 166, 83, 0.1);
    color: #d8ba6e;
    font-size: 0.68rem;
}

.challenger-player strong {
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenger-hero-name {
    margin-top: 14px;
    color: #caa653;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.challenger-defense-deck {
    margin-top: 5px;
    overflow: hidden;
    color: #817e77;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenger-omen {
    position: relative;
    z-index: 3;
    display: flex;
    margin: auto 22px 0;
    padding: 15px 0;
    flex-direction: column;
    border-top: 1px solid rgba(202, 166, 83, 0.13);
}

.challenger-omen small {
    color: #77746d;
    font-family: Georgia, serif;
    font-size: 0.68rem;
    font-style: italic;
}

.challenger-omen strong {
    margin-top: 5px;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.challenger-card.is-favorable .challenger-omen strong {
    color: #9bb78a;
}

.challenger-card.is-even .challenger-omen strong {
    color: #d2b66d;
}

.challenger-card.is-dark .challenger-omen strong {
    color: #bd716b;
}

.challenger-card-action {
    position: relative;
    z-index: 3;
    display: block;
    margin: 0 22px 22px;
    padding: 12px 14px;
    border: 1px solid rgba(202, 166, 83, 0.3);
    color: #caa653;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    transition:
        background 180ms ease,
        color 180ms ease;
}

.challenger-card:hover .challenger-card-action,
.challenger-card:focus-visible .challenger-card-action {
    background: #d7b968;
    color: #11100c;
}

.challenger-hall-empty {
    display: flex;
    max-width: 720px;
    min-height: 380px;
    margin: 0 auto;
    padding: 50px 32px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(202, 166, 83, 0.2);
    background: rgba(10, 15, 19, 0.86);
    text-align: center;
}

.challenger-hall-empty>span {
    color: rgba(202, 166, 83, 0.42);
    font-family: Georgia, serif;
    font-size: 3rem;
}

.challenger-hall-empty>p {
    margin: 20px 0 8px;
    color: #caa653;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.challenger-hall-empty h2 {
    margin: 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
}

.challenger-hall-empty small {
    max-width: 500px;
    margin: 18px 0 28px;
    color: #8e8a82;
    font-size: 0.86rem;
    line-height: 1.7;
}

.challenger-confrontation {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    padding: 28px;
    place-items: center;
}

.challenger-confrontation[hidden] {
    display: none;
}

.challenger-confrontation-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(40, 31, 16, 0.32),
            rgba(0, 0, 0, 0.9) 58%
        );
    cursor: pointer;
}

.challenger-confrontation-panel {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    max-height: calc(100vh - 56px);
    padding:
        42px
        clamp(28px, 5vw, 60px)
        46px;
    overflow-y: auto;
    border: 1px solid rgba(202, 166, 83, 0.58);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(202, 166, 83, 0.1),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            rgba(18, 24, 28, 0.99),
            rgba(6, 10, 13, 0.99)
        );
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.72),
        inset 0 0 45px rgba(202, 166, 83, 0.025);
    animation:
        challenger-panel-arrival
        300ms
        ease-out
        both;
}

.challenger-confrontation-panel::before {
    position: absolute;
    top: 9px;
    right: 9px;
    bottom: 9px;
    left: 9px;
    border: 1px solid rgba(202, 166, 83, 0.08);
    content: "";
    pointer-events: none;
}

.challenger-confrontation-close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 20px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #8c887f;
    cursor: pointer;
    font-size: 1.2rem;
}

.challenger-confrontation-close:hover {
    color: #ead9ad;
}

.challenger-confrontation-eyebrow {
    margin: 0;
    color: #caa653;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
}

.challenger-confrontation-panel h2 {
    margin: 10px 0 34px;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    text-align: center;
}

.challenger-confrontation-versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.challenger-confrontation-side {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.challenger-confrontation-side>span:first-child {
    margin-bottom: 15px;
    color: #77746e;
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.challenger-opponent-heroes,
.challenger-confrontation-rune {
    width: 150px;
    height: 205px;
    border: 1px solid rgba(202, 166, 83, 0.28);
    background: rgba(4, 8, 11, 0.76);
}

.challenger-opponent-heroes {
    display: flex;
    width: min(330px, 100%);
    overflow: hidden;
}

.challenger-opponent-heroes img {
    min-width: 0;
    flex: 1 1 0;
    object-fit: cover;
    object-position: top center;
}

.challenger-confrontation-rune {
    display: grid;
    place-items: center;
    color: rgba(202, 166, 83, 0.62);
    font-family: Georgia, serif;
    font-size: 4rem;
    text-shadow: 0 0 18px rgba(202, 166, 83, 0.2);
}

.challenger-confrontation-side>strong {
    max-width: 220px;
    margin-top: 14px;
    overflow: hidden;
    color: #e1d0a4;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenger-confrontation-side>small {
    max-width: 220px;
    margin-top: 5px;
    overflow: hidden;
    color: #77746e;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenger-confrontation-mark {
    color: rgba(202, 166, 83, 0.5);
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.18em;
}

.challenger-deck-form {
    display: grid;
    max-width: 580px;
    margin: 36px auto 0;
    gap: 13px;
}

.challenger-deck-form label {
    color: #99958c;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.challenger-deck-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(202, 166, 83, 0.28);
    border-radius: 0;
    background: #090e12;
    color: #ddd0ad;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    outline: none;
}

.challenger-deck-form select:focus {
    border-color: rgba(202, 166, 83, 0.7);
    box-shadow: 0 0 16px rgba(202, 166, 83, 0.08);
}

.challenger-selected-omen {
    display: flex;
    margin: 5px 0 8px;
    padding: 12px 0;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(202, 166, 83, 0.12);
    border-bottom: 1px solid rgba(202, 166, 83, 0.12);
}

.challenger-selected-omen span {
    color: #77746e;
    font-family: Georgia, serif;
    font-size: 0.72rem;
    font-style: italic;
}

.challenger-selected-omen strong {
    color: #caa653;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.challenger-no-deck {
    margin-top: 32px;
    text-align: center;
}

.challenger-no-deck p {
    margin-bottom: 24px;
    color: #96928a;
    font-family: Georgia, serif;
    font-style: italic;
}

body.is-choosing-challenger {
    overflow: hidden;
}

@keyframes challenger-panel-arrival {

    from {
        opacity: 0;
        transform:
            translateY(18px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@media (max-width: 760px) {
    .challenger-hall-page {
        padding:
            54px
            18px
            80px;
    }

    .challenger-grid {
        grid-template-columns: 1fr;
    }

    .challenger-card {
        min-height: 520px;
    }

    .challenger-confrontation {
        padding: 12px;
    }

    .challenger-confrontation-panel {
        max-height: calc(100vh - 24px);
        padding:
            42px
            20px
            32px;
    }

    .challenger-confrontation-versus {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .challenger-confrontation-mark {
        transform: rotate(90deg);
    }

    .challenger-opponent-heroes,
    .challenger-confrontation-rune {
        width: 115px;
        height: 155px;
    }

    .challenger-opponent-heroes {
        width: min(270px, 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .challenger-card,
    .challenger-hero-image,
    .challenger-confrontation-panel {
        animation: none;
        transition: none;
    }
}


/* =========================================================
   DECK BUILDER
   ========================================================= */

.deck-builder-page {
    min-height: calc(100vh - 90px);
    padding: 64px clamp(20px, 3vw, 56px);
    background:
        radial-gradient(circle at 50% 0%,
            rgba(187, 145, 62, 0.08),
            transparent 30%),
        #080d11;
}

.deck-builder-introduction {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.deck-builder-introduction>p {
    margin: 0 0 12px;
    color: #c9a557;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.deck-builder-introduction h1 {
    margin: 0;
    color: #eee0b8;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 500;
}

.deck-builder-introduction>span {
    display: block;
    max-width: 580px;
    margin: 22px auto 0;
    color: #99958c;
    font-size: 0.95rem;
    line-height: 1.7;
}

.deck-builder-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,
            minmax(220px, 280px));
    justify-content: center;
    gap: 28px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.deck-builder-hero {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(202, 166, 83, 0.3);
    background: #0c1217;
    color: inherit;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.deck-builder-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(to top,
            rgba(4, 7, 10, 0.98) 0%,
            rgba(4, 7, 10, 0.2) 55%,
            transparent 76%);
}

.deck-builder-hero:hover {
    border-color: rgba(224, 186, 98, 0.85);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-6px);
}

.deck-builder-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-builder-hero-overlay {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 22px 24px;
}

.deck-builder-hero-overlay>span {
    color: #c9a557;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.deck-builder-hero-overlay h2 {
    margin: 7px 0 18px;
    color: #f0e1b9;
    font-family: Georgia, serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.deck-builder-hero-overlay strong {
    color: #c5c0b4;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.deck-builder-no-hero {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 30px;
    border: 1px solid rgba(202, 166, 83, 0.25);
    text-align: center;
}

.deck-builder-no-hero h2 {
    margin-top: 0;
    color: #ebddb7;
    font-family: Georgia, serif;
}

.deck-builder-no-hero p {
    margin-bottom: 28px;
    color: #99958c;
}

.deck-builder-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 460px) 1fr;
    align-items: end;
    gap: 28px;
    width: min(1800px, 100%);
    margin: 0 auto 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(202, 166, 83, 0.3);
}

.deck-builder-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deck-builder-title a {
    width: fit-content;
    color: #8f8a80;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

.deck-builder-title a:hover {
    color: #d6b566;
}

.deck-builder-title>span {
    color: #eadbb3;
    font-family: Georgia, serif;
    font-size: 1.7rem;
}

.deck-name-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deck-name-field>span {
    color: #a98947;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.deck-name-field input,
.deck-card-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(202, 166, 83, 0.28);
    outline: none;
    background: rgba(6, 10, 13, 0.8);
    color: #e7dcc0;
}

.deck-name-field input {
    height: 46px;
    padding: 0 15px;
}

.deck-name-field input:focus,
.deck-card-search input:focus {
    border-color: rgba(220, 181, 91, 0.75);
}

.deck-builder-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.deck-builder-toolbar-actions>span {
    color: #aaa59a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.deck-builder-toolbar-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.deck-builder-workspace {
    display: grid;
    grid-template-columns: 300px minmax(620px, 1fr) 330px;
    gap: 18px;
    width: min(1800px, 100%);
    margin: 0 auto;
    align-items: start;
}

.deck-collection-panel,
.deck-fate-panel {
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 128px);
    overflow: hidden;
    border: 1px solid rgba(202, 166, 83, 0.2);
    background: rgba(12, 18, 23, 0.96);
}

.deck-collection-panel {
    display: flex;
    min-height: 720px;
    flex-direction: column;
}

.deck-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid rgba(202, 166, 83, 0.18);
}

.deck-panel-heading span {
    color: #d6c79f;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.deck-panel-heading strong {
    color: #b4934a;
    font-size: 0.75rem;
}

.deck-card-search {
    padding: 10px 12px 4px;
}

.deck-card-search input {
    height: 34px;
    padding: 0 10px;

    font-size: 0.7rem;
}

.deck-card-filters {
    display: grid;

    padding: 4px 12px;

    gap: 4px;
    overflow: visible;
}

.deck-card-filters[data-filter-group="type"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deck-card-filters[data-filter-group="deck"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deck-card-filters[data-filter-group="rarity"] {
    padding-bottom: 9px;

    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.deck-filter-button {
    min-width: 0;
    width: 100%;
    height: 27px;
    padding: 0 2px;
    overflow: hidden;

    color: #827f78;

    border: 1px solid rgba(202, 166, 83, 0.18);

    background: transparent;

    cursor: pointer;

    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.deck-card-filters[data-filter-group="rarity"] .deck-filter-button {
    font-size: 0.43rem;
    letter-spacing: 0.015em;
}

.deck-filter-button:hover,
.deck-filter-button.is-active {
    border-color: rgba(202, 166, 83, 0.6);
    color: #e1ca8c;
}

.deck-card-library {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 10px 12px 18px;
    overflow-y: auto;
    flex-direction: column;
    gap: 9px;
}

.deck-library-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    min-height: 86px;
    padding: 8px;
    border: 1px solid rgba(202, 166, 83, 0.15);
    background: rgba(6, 10, 13, 0.72);
    cursor: grab;
}

.deck-library-card:active,
.deck-library-card[aria-grabbed="true"] {
    cursor: grabbing;
}

.deck-library-card:hover {
    border-color: rgba(202, 166, 83, 0.48);
    background: rgba(19, 25, 30, 0.92);
}

.deck-library-card-image {
    position: relative;
    width: 60px;
    height: 86px;
    overflow: hidden;
    background: #05080a;
}

.deck-library-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-library-card-quantity {
    position: absolute;
    right: 3px;
    bottom: 3px;
    padding: 3px 5px;
    background: rgba(3, 6, 8, 0.88);
    color: #e4cc8a;
    font-size: 0.55rem;
    font-weight: 700;
}

.deck-library-card-details {
    min-width: 0;
    padding: 4px 2px;
}

.deck-library-card-details>span {
    display: block;
    overflow: hidden;
    color: #847f76;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.deck-library-card-details h3 {
    margin: 6px 0 10px;
    overflow: hidden;
    color: #dcd0b0;
    font-family: Georgia, serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deck-add-card-button {
    padding: 5px 9px;
    border: 1px solid rgba(202, 166, 83, 0.3);
    background: transparent;
    color: #b99c59;
    cursor: pointer;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deck-add-card-button:hover {
    border-color: #c9a557;
    color: #e1ca8c;
}

.deck-chapters-panel {
    min-width: 0;
}

.deck-chapters-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 12px 4px 18px;
    border-bottom: 1px solid rgba(202, 166, 83, 0.2);
}

.deck-chapters-header span {
    color: #a98947;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.deck-chapters-header h1 {
    margin: 5px 0 0;
    color: #eadbb3;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
}

.deck-chapters-header p {
    margin: 0;
    color: #827f77;
    font-size: 0.72rem;
}

.deck-chapter-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deck-chapter {
    border: 1px solid rgba(202, 166, 83, 0.2);
    background:
        linear-gradient(110deg,
            rgba(18, 25, 31, 0.96),
            rgba(9, 14, 18, 0.96));
}

.deck-chapter-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(202, 166, 83, 0.15);
}

.deck-chapter-number {
    color: rgba(202, 166, 83, 0.34);
    font-family: Georgia, serif;
    font-size: 1.8rem;
}

.deck-chapter-header span {
    color: #817d75;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.deck-chapter-header h2 {
    margin: 2px 0 0;
    color: #d8c99f;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
}

.deck-chapter-count {
    color: #a88b4a;
    font-size: 0.65rem;
}

.deck-chapter-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(82px, 1fr));
    gap: 10px;
    padding: 12px;
}

.deck-chapter-slot {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 2 / 3;
    place-items: center;
    overflow: hidden;
    border: 1px dashed rgba(202, 166, 83, 0.2);
    background:
        linear-gradient(145deg,
            rgba(22, 29, 35, 0.72),
            rgba(7, 11, 14, 0.82));
    color: rgba(202, 166, 83, 0.2);
    font-family: Georgia, serif;
    font-size: 1.4rem;
}

.deck-chapter-slot:hover {
    border-color: rgba(202, 166, 83, 0.55);
}

.deck-fate-panel {
    padding: 16px;
    overflow-y: auto;
}

.deck-hero-summary {
    display: grid;
    grid-template-columns: 66px 1fr;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(202, 166, 83, 0.18);
}

.deck-hero-summary img {
    display: block;
    width: 66px;
    height: 98px;
    object-fit: cover;
    border: 1px solid rgba(202, 166, 83, 0.28);
}

.deck-hero-summary span,
.deck-wyrd-section header span,
.deck-fate-section header span,
.deck-validation-section header span {
    color: #8c877d;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.deck-hero-summary h2,
.deck-wyrd-section h2,
.deck-fate-section h2,
.deck-validation-section h2 {
    margin: 5px 0 0;
    color: #dccda4;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
}

.deck-wyrd-section,
.deck-fate-section,
.deck-validation-section {
    padding: 18px 0;
    border-bottom: 1px solid rgba(202, 166, 83, 0.18);
}

.deck-wyrd-section header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deck-wyrd-section header>strong {
    color: #d7b765;
    font-family: Georgia, serif;
    font-size: 2.1rem;
    font-weight: 400;
}

.deck-wyrd-section>p,
.deck-fate-section>p {
    margin: 12px 0;
    color: #817d75;
    font-size: 0.68rem;
    line-height: 1.5;
}

.deck-wyrd-budget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border: 1px solid rgba(202, 166, 83, 0.16);
    background: rgba(4, 8, 10, 0.55);
    color: #969188;
    font-size: 0.66rem;
    text-transform: uppercase;
}

.deck-wyrd-budget strong {
    color: #dfc67f;
    font-size: 1rem;
}

.deck-fate-link {
    margin-top: 12px;
    padding: 11px;
    border: 1px solid rgba(202, 166, 83, 0.16);
    background: rgba(4, 8, 10, 0.5);
}

.deck-fate-link-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    color: #77736c;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.deck-fate-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 7px;
}

.deck-fate-card {
    min-height: 62px;
    padding: 7px;
    border: 1px dashed rgba(202, 166, 83, 0.2);
    background: transparent;
    color: #706d67;
    font-size: 0.55rem;
}

.deck-fate-card>span {
    display: block;
    margin-bottom: 4px;
    color: #a78b4a;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.deck-fate-connection {
    color: #947a40;
}

.deck-validation-section {
    border-bottom: 0;
}

.deck-validation-section ul {
    display: flex;
    margin: 14px 0 0;
    padding: 0;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.deck-validation-section li {
    position: relative;
    padding-left: 16px;
    color: #817d75;
    font-size: 0.65rem;
    line-height: 1.4;
}

.deck-validation-section li::before {
    position: absolute;
    top: 0.52em;
    left: 0;
    width: 5px;
    height: 5px;
    content: "";
    border: 1px solid #806a37;
    transform: rotate(45deg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1250px) {
    .deck-builder-workspace {
        grid-template-columns: 260px minmax(560px, 1fr);
    }

    .deck-fate-panel {
        position: static;
        grid-column: 1 / -1;
        max-height: none;
    }
}


@media (max-width: 900px) {
    .deck-builder-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .deck-builder-toolbar-actions {
        justify-content: space-between;
    }

    .deck-builder-workspace {
        grid-template-columns: 1fr;
    }

    .deck-collection-panel {
        position: static;
        max-height: 520px;
        min-height: 520px;
    }

    .deck-chapter-slots {
        overflow-x: auto;
        grid-template-columns: repeat(5, minmax(105px, 1fr));
    }

    .deck-fate-panel {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .deck-builder-page {
        padding: 42px 12px 70px;
    }

    .deck-builder-hero-grid {
        grid-template-columns: minmax(210px, 280px);
    }

    .deck-builder-toolbar-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

.deck-card-library {
    overflow-x: hidden;
    scrollbar-color:
        rgba(202, 166, 83, 0.45) rgba(5, 9, 12, 0.5);
    scrollbar-width: thin;
}

.deck-fate-panel {
    overflow-x: hidden;
    scrollbar-color:
        rgba(202, 166, 83, 0.45) rgba(5, 9, 12, 0.5);
    scrollbar-width: thin;
}

.deck-card-library::-webkit-scrollbar,
.deck-fate-panel::-webkit-scrollbar {
    width: 6px;
}

.deck-card-library::-webkit-scrollbar-track,
.deck-fate-panel::-webkit-scrollbar-track {
    background: rgba(5, 9, 12, 0.5);
}

.deck-card-library::-webkit-scrollbar-thumb,
.deck-fate-panel::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(202, 166, 83, 0.45);
}

.deck-card-library::-webkit-scrollbar-thumb:hover,
.deck-fate-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 181, 91, 0.75);
}

.deck-chapter-slot.is-drag-over {
    border-color: #d7b765;
    background: rgba(202, 166, 83, 0.1);
    box-shadow: inset 0 0 24px rgba(202, 166, 83, 0.1);
}

.deck-placed-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #070b0e;
    cursor: grab;
}

.deck-placed-card:active {
    cursor: grabbing;
}

.deck-placed-card>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-placed-card::after {
    position: absolute;
    inset: 45% 0 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(to top,
            rgba(2, 5, 7, 0.98),
            transparent);
}

.deck-placed-card-information {
    position: absolute;
    z-index: 2;
    right: 6px;
    bottom: 7px;
    left: 6px;
}

.deck-placed-card-information>strong {
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    color: #f0dfb2;
    font-family: Georgia, serif;
    font-size: clamp(0.58rem, 0.7vw, 0.82rem);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deck-card-wyrd-controls {
    display: grid;
    width: 76px;
    grid-template-columns: 24px 28px 24px;
    align-items: center;
    border: 1px solid rgba(202, 166, 83, 0.42);
    background: rgba(4, 7, 9, 0.9);
}

.deck-card-wyrd-controls button {
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d6b35e;
    cursor: pointer;
}

.deck-card-wyrd-controls span {
    color: #efe0b8;
    font-size: 0.68rem;
    text-align: center;
}

.deck-remove-card-button {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 5px;
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(229, 113, 87, 0.55);
    background: rgba(10, 5, 5, 0.88);
    color: #e89a88;
    cursor: pointer;
    font-size: 1rem;
}

.deck-add-card-button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.deck-card-preview {
    position: fixed;
    z-index: 10000;
    width: 420px;
    height: 630px;
    overflow: hidden;
    border: 1px solid rgba(221, 181, 89, 0.72);
    background: #05080a;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.78),
        0 0 24px rgba(202, 166, 83, 0.12);
    pointer-events: none;
}

.deck-card-preview[hidden] {
    display: none;
}

.deck-card-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deck-chapters-validation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.deck-chapters-validation p {
    max-width: 190px;
    text-align: right;
}

.deck-chapters-validation button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.deck-wyrd-section,
.deck-fate-section {
    transition:
        opacity 180ms ease,
        filter 180ms ease;
}

.deck-wyrd-section.is-locked,
.deck-fate-section.is-locked {
    opacity: 0.36;
    filter: grayscale(0.7);
    pointer-events: none;
}

.deck-chapters-panel.is-validated .deck-chapter {
    border-color: rgba(202, 166, 83, 0.38);
}

.deck-chapters-panel.is-validated .deck-chapter-slot {
    border-style: solid;
}

.deck-chapters-panel.is-validated .deck-placed-card {
    cursor: default;
}

.deck-chapters-panel.is-validated .deck-remove-card-button {
    display: none;
}

.deck-card-wyrd-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.deck-fate-link-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.deck-fate-card {
    cursor: pointer;
}

.deck-fate-card:disabled {
    cursor: not-allowed;
}

.deck-fate-card:not(:disabled):hover {
    border-color: rgba(202, 166, 83, 0.65);
    background: rgba(202, 166, 83, 0.08);
    color: #c8ad6b;
}

.deck-fate-card.is-active {
    border-color: #d7b765;
    background: rgba(202, 166, 83, 0.14);
    box-shadow: inset 0 0 18px rgba(202, 166, 83, 0.08);
}

.deck-fate-card-name {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 0.55rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deck-fate-remove-button {
    padding: 3px 6px;
    border: 1px solid rgba(229, 113, 87, 0.4);
    background: transparent;
    color: #c98778;
    cursor: pointer;
    font-size: 0.48rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deck-fate-remove-button:hover {
    border-color: rgba(229, 113, 87, 0.75);
    color: #eba08e;
}

.deck-placed-card.is-fate-selectable {
    cursor: pointer;
    outline: 2px solid rgba(215, 183, 101, 0.72);
    outline-offset: -2px;
}

.deck-placed-card.is-fate-selectable:hover {
    box-shadow:
        inset 0 0 30px rgba(215, 183, 101, 0.18),
        0 0 18px rgba(215, 183, 101, 0.2);
}

.deck-placed-card.is-fate-unavailable {
    opacity: 0.34;
    filter: grayscale(0.8);
}

.deck-fate-card {
    position: relative;
    min-height: 92px;
    overflow: hidden;
}

.deck-fate-card-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-fate-card::after {
    position: absolute;
    z-index: 1;
    inset: 35% 0 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(to top,
            rgba(3, 6, 8, 0.98),
            rgba(3, 6, 8, 0.12));
}

.deck-fate-card>span,
.deck-fate-card-name {
    position: relative;
    z-index: 2;
}

.deck-fate-card:has(.deck-fate-card-image:not([hidden])) {
    border-style: solid;
    border-color: rgba(202, 166, 83, 0.48);
}

.deck-fate-card:has(.deck-fate-card-image:not([hidden])) .deck-fate-card-name {
    color: #f0dfb2;
    text-shadow: 0 1px 3px #000;
}

.deck-fate-card-image[hidden] {
    display: none;
}

.deck-library-card[hidden] {
    display: none;
}

.deck-library-card {
    transition:
        opacity 160ms ease,
        filter 160ms ease,
        border-color 160ms ease;
}

.deck-library-card.is-unavailable {
    opacity: 0.38;
    filter: grayscale(0.82);
}

.deck-library-card.is-unavailable:hover {
    border-color: rgba(202, 166, 83, 0.2);
}

.deck-library-card.is-unavailable .deck-add-card-button {
    cursor: not-allowed;
    opacity: 0.32;
}

.deck-composition-summary {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    gap: 8px;
    margin-top: -8px;
}

.deck-composition-rule {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(202, 166, 83, 0.14);
    background: rgba(5, 9, 12, 0.58);
    color: #6f6c65;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.deck-composition-rule>span {
    overflow: hidden;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.deck-composition-rule>strong {
    flex: 0 0 auto;
    color: #77736b;
    font-size: 0.62rem;
}

.deck-composition-rule.is-valid {
    border-color: rgba(202, 166, 83, 0.42);
    background: rgba(202, 166, 83, 0.07);
    color: #b99b58;
}

.deck-composition-rule.is-valid>strong {
    color: #dfc67f;
}

.deck-composition-rule.is-maximum {
    border-color: rgba(224, 186, 93, 0.72);
    background: rgba(202, 166, 83, 0.13);
    box-shadow: inset 0 0 14px rgba(202, 166, 83, 0.06);
}

.deck-composition-rule.is-over-limit {
    border-color: rgba(184, 58, 48, 0.72);
    background: rgba(120, 24, 20, 0.15);
    box-shadow: inset 0 0 14px rgba(184, 58, 48, 0.08);
    color: #c9786f;
}

.deck-composition-rule.is-over-limit>strong {
    color: #e69a90;
}

@media (max-width: 1200px) {
    .deck-composition-summary {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }
}

.deck-library-card.is-unavailable {
    position: relative;
}

.deck-library-card.is-unavailable::after {
    position: absolute;
    z-index: 5;
    right: 7px;
    bottom: 7px;
    left: 7px;
    padding: 7px 8px;
    content: attr(data-unavailable-reason);
    border: 1px solid rgba(202, 166, 83, 0.32);
    background: rgba(4, 7, 9, 0.96);
    color: #d7c28d;
    font-size: 0.54rem;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition:
        opacity 140ms ease,
        transform 140ms ease;
}

.deck-library-card.is-unavailable:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.deck-validation-section li {
    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.deck-validation-section li.is-valid {
    color: #d7bd77;
}

.deck-validation-section li.is-valid::before {
    border-color: #d7b765;
    background: rgba(215, 183, 101, 0.62);
    box-shadow: 0 0 7px rgba(215, 183, 101, 0.28);
}

.deck-wyrd-budget button {
    padding: 4px 7px;
    border: 1px solid rgba(202, 166, 83, 0.3);
    background: transparent;
    color: #a98d4d;
    cursor: pointer;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deck-wyrd-budget button:hover:not(:disabled) {
    border-color: rgba(202, 166, 83, 0.66);
    color: #dec47e;
}

.deck-wyrd-budget button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

/* =========================================================
   DECK BUILDER FIXED LAYOUT
   ========================================================= */

.deck-builder-page {
    --deck-page-gap: 6px;
    --deck-toolbar-height: 126px;
    --deck-workspace-gap: 18px;
    --deck-toolbar-top:
        calc(var(--site-header-height) + var(--deck-page-gap));
    --deck-sidebar-top:
        calc(var(--deck-toolbar-top) + var(--deck-toolbar-height) + var(--deck-workspace-gap));

    padding-top: var(--deck-page-gap);
}

.deck-builder-toolbar {
    position: sticky;
    z-index: 80;
    top: var(--deck-toolbar-top);

    height: var(--deck-toolbar-height);
    margin: 0 auto var(--deck-workspace-gap);
    padding: 8px 16px 10px;

    row-gap: 8px;

    border: 1px solid rgba(202, 166, 83, 0.26);
    background: rgba(8, 13, 17, 0.97);

    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.32),
        0 1px 0 rgba(202, 166, 83, 0.08);

    backdrop-filter: blur(12px);
}

.deck-builder-hero-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.deck-builder-hero-identity img {
    display: block;
    width: 38px;
    height: 54px;
    flex: 0 0 auto;
    border: 1px solid rgba(202, 166, 83, 0.38);
    object-fit: cover;
}

.deck-builder-hero-identity span {
    overflow: hidden;
    color: #eadbb3;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 901px) {
    .deck-builder-page {
        min-width: 1180px;
    }

    .deck-builder-workspace {
        grid-template-columns:
            280px minmax(620px, 1fr) 310px;
    }

    .deck-composition-summary {
        grid-template-columns:
            repeat(7, minmax(100px, 1fr));
    }

    .deck-collection-panel,
    .deck-fate-panel {
        position: sticky;
        top: var(--deck-sidebar-top);
    }

    .deck-collection-panel {
        height:
            calc(100vh - var(--deck-sidebar-top) - 16px);
        min-height: 0;
        max-height:
            calc(100vh - var(--deck-sidebar-top) - 16px);
    }

    .deck-fate-panel {
        grid-column: auto;
        max-height: none;
        overflow-x: hidden;
        overflow-y: hidden;
    }
}

@media (max-width: 900px) {
    .deck-builder-page {
        min-width: 0;
    }

    .deck-builder-toolbar {
        position: relative;
        top: auto;
        height: auto;
    }

    .deck-composition-summary {
        grid-template-columns:
            repeat(2, minmax(120px, 1fr));
    }

    .deck-collection-panel,
    .deck-fate-panel {
        position: static;
        top: auto;
    }

    .deck-collection-panel {
        height: 520px;
        min-height: 520px;
        max-height: 520px;
    }

    .deck-fate-panel {
        grid-column: auto;
        max-height: none;
        overflow-y: visible;
    }
}

/* =========================================================
   PLAY MODE PAGE
   ========================================================= */

.play-mode-page {
    min-height: calc(100vh - var(--site-header-height));
    padding:
        54px clamp(24px, 4vw, 72px) 80px;
}

.play-mode-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.play-mode-header p {
    margin: 0;
    color: #a98947;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.play-mode-header h1 {
    margin: 10px 0 12px;
    color: #eadbb3;
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 400;
}

.play-mode-header>span {
    color: #8e8a82;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.play-mode-grid {
    display: grid;
    width: min(1700px, 100%);
    margin: 0 auto;
    grid-template-columns:
        repeat(4, minmax(230px, 1fr));
    gap: 18px;
}

.play-mode-card {
    position: relative;
    display: flex;
    min-height: 540px;
    overflow: hidden;
    padding: 28px;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(202, 166, 83, 0.24);
    background: #080d11;
    isolation: isolate;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.play-mode-background {
    position: absolute;
    z-index: -3;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.01);
    transition:
        opacity 350ms ease,
        filter 350ms ease,
        transform 700ms ease;
}

.play-mode-card::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(to top,
            rgba(4, 7, 9, 0.94) 2%,
            rgba(4, 7, 9, 0.62) 38%,
            rgba(4, 7, 9, 0.08) 76%,
            rgba(4, 7, 9, 0.18));
}

.play-mode-card::after {
    position: absolute;
    z-index: -1;
    inset: 10px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(202, 166, 83, 0.1);
}

.play-mode-card.is-available {
    cursor: pointer;
}

.play-mode-card.is-available:hover {
    border-color: rgba(220, 181, 91, 0.72);
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.42),
        inset 0 0 34px rgba(202, 166, 83, 0.06);
    transform: translateY(-5px);
}

.play-mode-card.is-available:hover .play-mode-background {
    opacity: 0.82;
    transform: scale(1.055);
}

.play-mode-card.is-disabled {
    cursor: not-allowed;
}

.play-mode-card.is-disabled .play-mode-background {
    opacity: 0.27;
    filter: grayscale(0.68);
}

.play-mode-card.is-disabled:hover .play-mode-background {
    opacity: 0.48;
    filter: grayscale(0.42);
    transform: scale(1.025);
}

.play-mode-icon {
    width: fit-content;
    margin-bottom: auto;
    color: rgba(218, 184, 101, 0.72);
    font-family: Georgia, serif;
    font-size: 2.7rem;
    text-shadow: 0 0 18px rgba(202, 166, 83, 0.18);
}

.play-mode-information>span {
    color: #a88b4a;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.play-mode-information h2 {
    margin: 8px 0 10px;
    color: #eadbb3;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    font-weight: 400;
}

.play-mode-information p {
    min-height: 3.8em;
    margin: 0 0 24px;
    color: #aaa59a;
    font-size: 0.72rem;
    line-height: 1.65;
}

.play-mode-card>strong {
    width: fit-content;
    padding-top: 12px;
    border-top: 1px solid rgba(202, 166, 83, 0.26);
    color: #c5a75f;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.play-mode-card.is-disabled>strong {
    color: #66635d;
}

@media (max-width: 1250px) {
    .play-mode-grid {
        grid-template-columns:
            repeat(2, minmax(260px, 1fr));
    }

    .play-mode-card {
        min-height: 500px;
    }
}

@media (max-width: 650px) {
    .play-mode-grid {
        grid-template-columns: 1fr;
    }

    .play-mode-card {
        min-height: 480px;
    }
}

.play-mode-card-trigger {
    position: absolute;
    z-index: 3;
    inset: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.opponent-choice-mode-card.is-choosing .play-mode-card-trigger {
    pointer-events: none;
}

.quick-play-choice-overlay {
    position: absolute;
    z-index: 6;
    inset: 10px;
    display: flex;
    padding: 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(220, 181, 91, 0.5);
    background: rgba(4, 8, 11, 0.9);
    backdrop-filter: blur(8px);
    animation: quick-play-choice-appear 180ms ease;
}

.quick-play-choice-overlay[hidden] {
    display: none;
}

.quick-play-choice-overlay>span {
    color: #a98947;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.quick-play-choice-overlay h3 {
    margin: 9px 0 26px;
    color: #eadbb3;
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 400;
}

.quick-play-choice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(202, 166, 83, 0.3);
    background: rgba(4, 7, 9, 0.72);
    color: #a99b79;
    cursor: pointer;
    font-size: 1.1rem;
}

.quick-play-choice-close:hover {
    border-color: rgba(220, 181, 91, 0.72);
    color: #eadbb3;
}

.quick-play-choice-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-play-choice {
    display: flex;
    min-height: 142px;
    padding: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(202, 166, 83, 0.24);
    background: rgba(11, 17, 22, 0.92);
    color: #8c887e;
}

.quick-play-choice>span {
    margin-bottom: 10px;
    color: #aa8e4b;
    font-family: Georgia, serif;
    font-size: 2rem;
}

.quick-play-choice>strong {
    color: #d8c99f;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
}

.quick-play-choice>small {
    margin-top: 7px;
    color: #77736b;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quick-play-choice.is-available:hover {
    border-color: rgba(220, 181, 91, 0.72);
    background: rgba(202, 166, 83, 0.1);
}

.quick-play-choice.is-disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

@keyframes quick-play-choice-appear {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================
   PLAYER PROFILE
   ========================================================= */

.profile-page {
    width: min(1080px, calc(100% - 48px));
    min-height: calc(100vh - var(--site-header-height));
    margin: 0 auto;
    padding: 72px 0 100px;
}

.profile-header {
    max-width: 680px;
    margin-bottom: 38px;
}

.profile-eyebrow {
    margin: 0;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.profile-header h1 {
    margin: 10px 0 14px;

    color: var(--site-gold-light);

    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
}

.profile-header>p:last-child {
    max-width: 560px;
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.profile-panel {
    display: grid;

    overflow: hidden;

    border: 1px solid var(--site-border);

    background:
        linear-gradient(135deg,
            rgba(199, 164, 91, 0.06),
            transparent 38%),
        var(--site-panel);

    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
}

.profile-identity {
    display: flex;
    align-items: center;

    min-height: 430px;
    padding: 48px;

    flex-direction: column;
    justify-content: center;

    border-right: 1px solid var(--site-border);

    background:
        radial-gradient(circle at 50% 35%,
            rgba(199, 164, 91, 0.12),
            transparent 48%);
}

.profile-avatar-preview {
    display: grid;
    place-items: center;

    width: 172px;
    height: 172px;
    overflow: hidden;

    color: var(--site-gold-light);

    border: 1px solid var(--site-gold);
    border-radius: 50%;

    background: #10161b;

    box-shadow:
        0 0 36px rgba(199, 164, 91, 0.14),
        inset 0 0 24px rgba(199, 164, 91, 0.08);

    font-size: 58px;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

.profile-identity>p {
    margin: 28px 0 8px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.profile-identity h2 {
    margin: 0;

    color: var(--site-gold-light);

    font-size: 28px;
    font-weight: 400;
    text-align: center;
}

.profile-settings {
    display: flex;
    align-items: center;

    min-height: 430px;
    padding: 54px;
}

.profile-form {
    width: 100%;
}

.profile-field {
    display: flex;

    flex-direction: column;
}

.profile-field label {
    margin-bottom: 10px;

    color: var(--site-gold-light);

    font-size: 17px;
}

.profile-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;

    color: var(--site-text);

    border: 1px solid var(--site-border);
    outline: none;

    background: rgba(4, 8, 11, 0.78);

    font-family: Arial, sans-serif;
    font-size: 14px;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.profile-field input:focus {
    border-color: var(--site-gold);

    box-shadow:
        0 0 0 2px rgba(199, 164, 91, 0.08);
}

.profile-field small {
    margin-top: 9px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
}

.profile-message {
    margin: 22px 0 0;
    padding: 12px 14px;

    border: 1px solid;

    font-family: Arial, sans-serif;
    font-size: 12px;
}

.profile-message.is-error {
    color: #d9a19a;

    border-color: rgba(160, 69, 58, 0.55);

    background: rgba(110, 39, 32, 0.14);
}

.profile-message.is-success {
    color: var(--site-gold-light);

    border-color: var(--site-border);

    background: rgba(199, 164, 91, 0.08);
}

.profile-form .site-button {
    margin-top: 30px;
}

@media (max-width: 760px) {
    .profile-page {
        width: min(100% - 28px, 620px);
        padding: 44px 0 70px;
    }

    .profile-panel {
        grid-template-columns: 1fr;
    }

    .profile-identity {
        min-height: 310px;
        padding: 36px 24px;

        border-right: 0;
        border-bottom: 1px solid var(--site-border);
    }

    .profile-avatar-preview {
        width: 138px;
        height: 138px;
    }

    .profile-settings {
        min-height: auto;
        padding: 36px 24px;
    }
}

.profile-avatar-field {
    margin-bottom: 28px;
}

.profile-avatar-field>input {
    position: absolute;

    width: 1px;
    height: 1px;
    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;
}

.profile-avatar-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;
    padding: 12px 16px;

    gap: 18px;

    color: var(--site-text);

    border: 1px dashed var(--site-border);

    background: rgba(4, 8, 11, 0.58);

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease;
}

.profile-avatar-selector:hover {
    border-color: var(--site-gold);

    background: rgba(199, 164, 91, 0.07);
}

.profile-avatar-selector>span {
    flex: 0 0 auto;

    color: var(--site-gold-light);

    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-avatar-selector #profile-avatar-filename {
    margin: 0;

    overflow: hidden;

    color: var(--site-text-muted);

    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-avatar-preview img[hidden],
.profile-avatar-preview span[hidden] {
    display: none;
}

@media (max-width: 520px) {
    .profile-avatar-selector {
        align-items: flex-start;

        flex-direction: column;
    }

    .profile-avatar-selector #profile-avatar-filename {
        width: 100%;

        text-align: left;
    }
}

.profile-actions {
    display: flex;
    align-items: center;

    margin-top: 30px;

    gap: 12px;
}

.profile-actions .site-button {
    min-width: 150px;
    margin-top: 0;
}


@media (max-width: 520px) {
    .profile-actions {
        align-items: stretch;

        flex-direction: column;
    }

    .profile-actions .site-button {
        width: 100%;
    }
}

.profile-referral-panel {
    margin-top: 28px;
    padding: 34px;

    border: 1px solid var(--site-border);

    background:
        linear-gradient(
            135deg,
            rgba(199, 164, 91, .07),
            transparent 44%
        ),
        var(--site-panel);
}

.profile-referral-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.profile-referral-eyebrow,
.referral-eyebrow {
    margin: 0 0 9px;

    color: var(--site-gold);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.profile-referral-header h2 {
    margin: 0 0 10px;

    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
}

.profile-referral-header p:last-child {
    max-width: 660px;
    margin: 0;

    color: var(--site-text-muted);
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 1.65;
}

.profile-referral-header > strong {
    flex: 0 0 auto;
    padding: 12px 15px;

    color: var(--site-gold-light);
    border: 1px solid rgba(199, 164, 91, .34);

    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
}

.profile-referral-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 25px;
    gap: 10px;
}

.profile-referral-link input {
    min-width: 0;
    height: 48px;
    padding: 0 14px;

    color: var(--site-text);
    border: 1px solid var(--site-border);
    outline: none;

    background: rgba(4, 8, 11, .78);
}

.profile-referral-link .site-button {
    min-width: 150px;
}

.profile-referral-milestones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    gap: 12px;
}

.profile-referral-milestones article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
    gap: 14px;

    border: 1px solid rgba(199, 164, 91, .16);
    background: rgba(4, 8, 11, .45);
}

.profile-referral-milestones article > span {
    color: rgba(199, 164, 91, .55);
    font-family: Georgia, serif;
    font-size: 22px;
}

.profile-referral-milestones h3 {
    margin: 0 0 7px;

    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 400;
}

.profile-referral-milestones p {
    margin: 0;

    color: var(--site-text-muted);
    font-size: 11px;
    line-height: 1.55;
}

.profile-referral-list {
    display: grid;
    margin-top: 24px;
    gap: 8px;
}

.profile-referral-list article {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    padding: 13px 15px;
    gap: 12px;

    border: 1px solid rgba(199, 164, 91, .12);
    background: rgba(4, 8, 11, .42);
}

.profile-referral-list strong {
    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-weight: 400;
}

.profile-referral-list span {
    color: #7d776b;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-referral-list span.is-complete {
    color: #bda363;
}

.referral-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--site-header-height));
    padding: 48px 24px;
}

.referral-card {
    width: min(680px, 100%);
    padding: 54px;

    border: 1px solid rgba(199, 164, 91, .34);

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(199, 164, 91, .12),
            transparent 44%
        ),
        var(--site-panel);

    box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
    text-align: center;
}

.referral-rune {
    display: block;
    margin-bottom: 18px;

    color: var(--site-gold);
    font-family: Georgia, serif;
    font-size: 42px;
}

.referral-card h1 {
    margin: 0 0 18px;

    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 400;
}

.referral-card > p:not(.referral-eyebrow) {
    max-width: 520px;
    margin: 0 auto 28px;

    color: var(--site-text-muted);
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.7;
}

.referral-reward-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
    gap: 10px;
}

.referral-reward-summary span {
    padding: 14px;

    color: var(--site-gold-light);
    border: 1px solid rgba(199, 164, 91, .18);

    background: rgba(4, 8, 11, .46);

    font-size: 10px;
    line-height: 1.5;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .profile-referral-panel,
    .referral-card {
        padding: 26px 20px;
    }

    .profile-referral-header,
    .profile-referral-link {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .profile-referral-link .site-button {
        width: 100%;
    }

    .profile-referral-milestones,
    .referral-reward-summary {
        grid-template-columns: 1fr;
    }

    .profile-referral-list article {
        grid-template-columns: 1fr;
    }
}

.navigation-user-avatar-frame {
    display: block;

    width: 34px;
    height: 34px;
    overflow: hidden;

    flex: 0 0 34px;

    border: 1px solid var(--site-gold-dark);
    border-radius: 50%;

    background: #10161b;

    box-shadow:
        0 0 14px rgba(199, 164, 91, 0.16);
}

.navigation-user-avatar-frame .navigation-user-avatar {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    object-fit: cover;
    object-position: center center;

    transform: none;
}


/* =========================================================
   SITE BACKGROUND AUDIO
   ========================================================= */

.site-audio-controls {
    display: flex;
    align-items: center;

    width: 92px;
    height: 34px;
    padding: 0 9px;

    gap: 8px;

    border: 1px solid rgba(199, 164, 91, 0.22);

    background: rgba(7, 11, 14, 0.7);

    transition:
        border-color 160ms ease,
        background 160ms ease;
}

.site-audio-controls:hover,
.site-audio-controls.is-active {
    border-color: rgba(199, 164, 91, 0.55);

    background: rgba(199, 164, 91, 0.06);
}

.site-audio-toggle {
    display: grid;
    place-items: center;

    width: 20px;
    height: 20px;
    padding: 0;

    flex: 0 0 20px;

    color: var(--site-text-muted);

    border: 0;

    background: transparent;

    cursor: pointer;

    font-family: Georgia, serif;
    font-size: 16px;

    transition:
        color 160ms ease,
        text-shadow 160ms ease;
}

.site-audio-controls.is-active .site-audio-toggle {
    color: var(--site-gold-light);

    text-shadow:
        0 0 10px rgba(199, 164, 91, 0.45);
}

.site-audio-controls.is-muted .site-audio-toggle {
    color: #66635d;

    text-shadow: none;
}

.site-audio-volume {
    width: 48px;
    height: 20px;
    margin: 0;
    padding: 0;

    accent-color: var(--site-gold);

    background: transparent;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.site-audio-volume::-webkit-slider-runnable-track {
    height: 3px;

    background: rgba(199, 164, 91, 0.22);
}

.site-audio-volume::-webkit-slider-thumb {
    width: 11px;
    height: 11px;
    margin-top: -4px;

    border: 1px solid var(--site-gold);
    border-radius: 50%;

    background: var(--site-gold-light);

    appearance: none;
    -webkit-appearance: none;
}

.site-audio-volume::-moz-range-track {
    height: 3px;

    background: rgba(199, 164, 91, 0.22);
}

.site-audio-volume::-moz-range-thumb {
    width: 9px;
    height: 9px;

    border: 1px solid var(--site-gold);
    border-radius: 50%;

    background: var(--site-gold-light);
}

@media (max-width: 560px) {
    .site-audio-controls {
        width: 120px;
    }

    .site-audio-volume {
        width: 76px;

        background: transparent;

        appearance: none;
        -webkit-appearance: none;
    }
}

/* =========================================================
   THE NORNS' MARKET
   ========================================================= */

.market-page {
    width: min(1700px, calc(100% - 64px));
    min-height: calc(100vh - var(--site-header-height));
    margin: 0 auto;
    padding: 18px 0 80px;
}

.market-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;
    margin-bottom: 12px;
}

.market-eyebrow,
.loom-heading span {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.market-header h1 {
    margin: 4px 0 6px;

    color: var(--site-gold-light);

    font-size: clamp(32px, 3vw, 46px);
    font-weight: 400;
    line-height: 1;
}

.market-introduction {
    max-width: 620px;
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.market-header-content {
    padding-top: 4px;
}

.market-header-actions {
    display: flex;
    align-items: flex-end;

    gap: 10px;

    flex-direction: column;
}

.market-header-actions .site-tutorial-replay {
    min-height: 28px;
    margin-top: 0;
    padding: 5px 10px;

    font-size: 7px;
}

.market-header-actions
.site-tutorial-replay > span {
    font-size: 13px;
}

.market-wallet {
    display: flex;
    align-items: center;

    min-width: 230px;
    padding: 14px 20px;

    gap: 14px;

    border: 1px solid var(--site-border);

    background:
        radial-gradient(
            circle at 18% 50%,
            rgba(178, 205, 220, 0.09),
            transparent 36%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(199, 164, 91, 0.14),
            transparent 44%
        ),
        var(--site-panel);
}

.market-wallet-icon {
    width: 68px;
    height: 49px;

    flex: 0 0 68px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 5px
            rgba(177, 205, 220, 0.18)
        );
}

.market-wallet-content {
    display: flex;

    min-width: 0;

    flex-direction: column;
}

.market-wallet-content > span {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.market-wallet-content strong {
    margin-top: 3px;

    color: var(--site-gold-light);

    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.market-wallet-content small {
    margin-top: 5px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.market-wallet {
    position: relative;

    overflow: visible;
}

.market-wallet::after {
    position: absolute;
    inset: -1px;

    border: 1px solid transparent;

    box-shadow:
        0 0 0 rgba(218, 179, 87, 0);

    content: "";
    pointer-events: none;
}

.market-wallet.is-receiving-gift::after {
    animation:
        market-wallet-gift-halo
        1100ms ease-out forwards;
}

.market-wallet-sparkles {
    position: absolute;
    inset: 0;

    z-index: 4;

    overflow: visible;

    pointer-events: none;
}

.market-wallet-sparkles span {
    position: absolute;
    top: 50%;
    left: 50%;

    color: #e6c775;

    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1;

    opacity: 0;

    text-shadow:
        0 0 5px rgba(255, 222, 130, 0.95),
        0 0 12px rgba(205, 155, 55, 0.8);

    animation:
        market-wallet-rune-spark
        900ms ease-out
        var(--spark-delay)
        forwards;
}

.market-wallet-gift-pop {
    position: absolute;
    top: 50%;
    right: 18px;

    z-index: 5;

    color: #f2d78e;

    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;

    opacity: 0;

    pointer-events: none;

    text-shadow:
        0 0 8px rgba(243, 201, 99, 0.9),
        0 0 18px rgba(200, 146, 38, 0.7);

    animation:
        market-wallet-gift-pop
        1150ms ease-out forwards;
}

@keyframes market-wallet-gift-halo {
    0% {
        border-color:
            rgba(229, 190, 95, 0);

        box-shadow:
            0 0 0
            rgba(218, 179, 87, 0);
    }

    25% {
        border-color:
            rgba(244, 213, 139, 0.95);

        box-shadow:
            0 0 24px
            rgba(218, 179, 87, 0.72),
            inset 0 0 18px
            rgba(218, 179, 87, 0.18);
    }

    100% {
        border-color:
            rgba(229, 190, 95, 0.18);

        box-shadow:
            0 0 4px
            rgba(218, 179, 87, 0);
    }
}

@keyframes market-wallet-rune-spark {
    0% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            rotate(0deg)
            scale(0.2);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;

        transform:
            translate(
                calc(-50% + var(--spark-x)),
                calc(-50% + var(--spark-y))
            )
            rotate(var(--spark-rotation))
            scale(0);
    }
}

@keyframes market-wallet-gift-pop {
    0% {
        opacity: 0;

        transform:
            translateY(-25%)
            scale(0.65);
    }

    20% {
        opacity: 1;

        transform:
            translateY(-50%)
            scale(1.16);
    }

    45% {
        transform:
            translateY(-50%)
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            translateY(-115%)
            scale(0.94);
    }
}

.market-tabs {
    display: flex;

    border: 1px solid var(--site-border);

    background: rgba(7, 11, 14, 0.72);
}

.market-tab {
    display: flex;
    align-items: center;

    min-width: 230px;
    min-height: 44px;
    padding: 0 24px;

    gap: 11px;

    color: #77736b;

    border: 0;
    border-right: 1px solid var(--site-border);

    background: transparent;

    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.market-tab span {
    color: var(--site-gold-dark);

    font-family: Georgia, serif;
    font-size: 20px;
}

.market-tab:hover,
.market-tab.is-active {
    color: var(--site-gold-light);

    background: rgba(199, 164, 91, 0.08);
}

.market-tab.is-active span {
    color: var(--site-gold);
}

.market-section {
    margin-top: 14px;
}

.market-section[hidden] {
    display: none;
}

.loom-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    padding: 15px 24px;

    gap: 30px;

    border: 1px solid rgba(199, 164, 91, 0.2);

    background: rgba(11, 16, 20, 0.82);
}

.loom-heading h2 {
    margin: 4px 0 0;

    color: var(--site-gold-light);

    font-size: 24px;
    font-weight: 400;
}

.loom-heading > p {
    max-width: 390px;
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.6;
    text-align: right;
}

.loom-workspace {
    display: grid;

    margin-top: 14px;

    gap: 14px;

    grid-template-columns: minmax(0, 1fr) 250px;
}

.loom-thread-grid {
    display: grid;

    gap: 10px;

    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.loom-thread {
    position: relative;

    min-width: 0;
    min-height: 430px;
    padding: 18px 15px;

    overflow: hidden;

    border: 1px solid rgba(199, 164, 91, 0.22);

    background:
        linear-gradient(
            180deg,
            rgba(199, 164, 91, 0.04),
            transparent 35%
        ),
        rgba(9, 14, 18, 0.94);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.loom-thread::before {
    position: absolute;

    top: 68px;
    bottom: 145px;
    left: 50%;

    width: 1px;

    content: "";

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(199, 164, 91, 0.56),
            transparent
        );

    transform: translateX(-50%);
}

.loom-thread:hover {
    border-color: rgba(199, 164, 91, 0.58);

    box-shadow:
        inset 0 0 28px rgba(199, 164, 91, 0.05);
}

.loom-thread > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.loom-thread > header span {
    color: #77736b;

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.loom-thread > header strong {
    color: var(--site-gold);

    font-size: 18px;
    font-weight: 400;
}

.loom-thread-rune {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 64px;
    height: 64px;
    margin: 30px auto;

    color: var(--site-gold-dark);

    border: 1px solid rgba(199, 164, 91, 0.3);
    border-radius: 50%;

    background: #0a0f13;

    box-shadow:
        0 0 22px rgba(199, 164, 91, 0.08);

    font-size: 27px;
}

.loom-field {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 15px;
}

.loom-field > span {
    display: block;

    margin-bottom: 7px;

    color: #aaa397;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.loom-scope-select {
    width: 100%;
    height: 34px;
    padding: 0 9px;

    color: #d8c99f;

    border: 1px solid rgba(199, 164, 91, 0.24);
    outline: none;

    background: #080d11;

    font-family: Arial, sans-serif;
    font-size: 10px;
}

.loom-quality-options {
    display: grid;

    gap: 5px;

    grid-template-columns: repeat(3, 1fr);
}

.loom-quality-button {
    height: 30px;

    color: #918c82;

    border: 1px solid rgba(199, 164, 91, 0.18);

    background: #080d11;

    cursor: pointer;

    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
}

.loom-quality-button:hover,
.loom-quality-button.is-active {
    color: var(--site-gold-light);

    border-color: rgba(199, 164, 91, 0.62);

    background: rgba(199, 164, 91, 0.1);
}

.loom-thread-details {
    position: relative;
    z-index: 2;

    display: flex;

    margin-top: 16px;

    flex-direction: column;
}

.loom-thread-details strong {
    color: var(--site-gold-light);

    font-size: 13px;
    font-weight: 400;
}

.loom-thread-details span {
    margin-top: 5px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.loom-thread-price {
    display: flex;
    align-items: center;

    gap: 5px;
}

.loom-thread-price::before {
    width: 24px;
    height: 17px;

    flex: 0 0 24px;

    content: "";

    background:
        url("../img/icons/hacksilver.png")
        center / contain
        no-repeat;

    filter:
        drop-shadow(
            0 0 3px
            rgba(188, 206, 216, 0.15)
        );
}

.loom-rarity-chances {
    position: relative;
    z-index: 2;

    display: grid;

    margin-top: 14px;

    gap: 3px;

    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.loom-rarity-chances span {
    overflow: hidden;

    color: #989288;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loom-rarity-chances
[data-rarity="Common"] {
    color: #b9b7b0;
}

.loom-rarity-chances
[data-rarity="Uncommon"] {
    color: #789d70;
}

.loom-rarity-chances
[data-rarity="Rare"] {
    color: #668fb2;
}

.loom-rarity-chances
[data-rarity="Epic"] {
    color: #9872ae;
}

.loom-rarity-chances
[data-rarity="Legendary"] {
    color: #be8247;
}

.loom-summary {
    display: flex;
    align-items: center;

    min-height: 430px;
    padding: 28px 22px;

    flex-direction: column;

    border: 1px solid rgba(199, 164, 91, 0.32);

    background:
        radial-gradient(
            circle at 50% 32%,
            rgba(199, 164, 91, 0.14),
            transparent 38%
        ),
        rgba(10, 15, 19, 0.96);

    text-align: center;
}

.loom-summary > span {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.loom-summary-rune {
    display: grid;
    place-items: center;

    width: 86px;
    height: 86px;
    margin: 25px auto 20px;

    color: var(--site-gold);

    border: 1px solid rgba(199, 164, 91, 0.54);
    border-radius: 50%;

    box-shadow:
        0 0 34px rgba(199, 164, 91, 0.13),
        inset 0 0 24px rgba(199, 164, 91, 0.08);

    font-size: 34px;
}

.loom-summary h3 {
    margin: 0;

    color: var(--site-gold-light);

    font-size: 21px;
    font-weight: 400;
}

.loom-summary > p {
    margin: 10px 0 22px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.6;
}

.loom-total {
    display: grid;
    align-items: center;

    width: 100%;
    padding: 12px 10px;

    column-gap: 8px;

    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);

    grid-template-columns: 42px 1fr auto;
    grid-template-rows: auto auto;
    text-align: left;
}

.loom-total-icon {
    width: 42px;
    height: 30px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 4px
            rgba(188, 206, 216, 0.16)
        );

    grid-column: 1;
    grid-row: 1 / 3;
}

.loom-total span {
    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    grid-column: 2;
    grid-row: 1;
}

.loom-total strong {
    color: var(--site-gold-light);

    font-size: 24px;
    font-weight: 400;

    grid-column: 3;
    grid-row: 1 / 3;
}

.loom-total small {
    margin-top: 3px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    grid-column: 2;
    grid-row: 2;
}

.loom-summary .site-button {
    width: 100%;
    margin-top: 20px;
}

.loom-purchase-note {
    margin-top: 9px;

    color: #68655f;

    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.runic-market-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 480px;
    padding: 50px;

    flex-direction: column;

    border: 1px solid var(--site-border);

    background:
        radial-gradient(
            circle,
            rgba(199, 164, 91, 0.1),
            transparent 35%
        ),
        var(--site-panel);

    text-align: center;
}

.runic-market-placeholder > span {
    color: var(--site-gold);

    font-size: 52px;
}

.runic-market-placeholder > p:first-of-type {
    margin: 18px 0 5px;

    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.runic-market-placeholder h2 {
    margin: 8px 0 12px;

    color: var(--site-gold-light);

    font-size: 34px;
    font-weight: 400;
}

.runic-market-placeholder p {
    max-width: 480px;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.7;
}

.runic-market-placeholder strong {
    margin-top: 18px;
    padding: 9px 14px;

    color: #77736b;

    border: 1px solid rgba(199, 164, 91, 0.22);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@media (max-width: 1250px) {
    .loom-workspace {
        grid-template-columns: 1fr;
    }

    .loom-summary {
        min-height: auto;
    }
}

@media (max-width: 1050px) {
    .loom-thread-grid {
        grid-template-columns:
            repeat(2, minmax(230px, 1fr));
    }
}

@media (max-width: 720px) {
    .market-header-actions {
        align-items: stretch;

        width: 100%;
    }

    .market-header-actions
    .site-tutorial-replay {
        align-self: flex-end;
    }

    .market-page {
        width: min(100% - 28px, 620px);
        padding-top: 38px;
    }

    .market-header,
    .loom-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .market-wallet {
        width: 100%;
    }

    .market-tabs {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .market-tab {
        min-width: 0;
        padding: 0 12px;
    }

    .loom-heading > p {
        text-align: left;
    }

    .loom-thread-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   LOOM PROBABILITY TABLE
   ========================================================= */

.loom-odds-panel {
    margin-top: 14px;

    border: 1px solid rgba(199, 164, 91, 0.24);

    background:
        linear-gradient(
            90deg,
            rgba(199, 164, 91, 0.05),
            transparent 28%
        ),
        rgba(9, 14, 18, 0.94);
}

.loom-odds-panel > header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    padding: 18px 22px;

    gap: 30px;

    border-bottom: 1px solid rgba(199, 164, 91, 0.18);
}

.loom-odds-panel > header span {
    color: var(--site-gold);

    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.loom-odds-panel > header h3 {
    margin: 5px 0 0;

    color: var(--site-gold-light);

    font-size: 20px;
    font-weight: 400;
}

.loom-odds-panel > header p {
    max-width: 340px;
    margin: 0;

    color: var(--site-text-muted);

    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 1.5;
    text-align: right;
}

.loom-odds-table-wrapper {
    overflow-x: auto;
}

.loom-odds-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}

.loom-odds-table th,
.loom-odds-table td {
    height: 40px;
    padding: 0 12px;

    border-right: 1px solid rgba(199, 164, 91, 0.12);
    border-bottom: 1px solid rgba(199, 164, 91, 0.12);

    font-family: Arial, sans-serif;
    text-align: center;
}

.loom-odds-table tr:last-child th,
.loom-odds-table tr:last-child td {
    border-bottom: 0;
}

.loom-odds-table th:last-child,
.loom-odds-table td:last-child {
    border-right: 0;
}

.loom-odds-table thead th {
    height: 34px;

    color: #99948a;

    background: rgba(4, 8, 11, 0.54);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.loom-odds-table thead th:first-child {
    width: 170px;

    text-align: left;
}

.loom-odds-table tbody th {
    color: var(--site-text-muted);

    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
}

.loom-odds-table tbody td {
    color: #d2c8af;

    font-size: 12px;
    font-weight: 600;

    transition:
        color 160ms ease,
        background 160ms ease;
}

.loom-odds-table tbody tr:hover td {
    color: var(--site-gold-light);

    background: rgba(199, 164, 91, 0.045);
}

.loom-odds-table
[data-odds-rarity="Common"] th {
    color: #c8c6bf;
}

.loom-odds-table
[data-odds-rarity="Uncommon"] th {
    color: #81aa74;
}

.loom-odds-table
[data-odds-rarity="Rare"] th {
    color: #6d9ec5;
}

.loom-odds-table
[data-odds-rarity="Epic"] th {
    color: #a67ac2;
}

.loom-odds-table
[data-odds-rarity="Legendary"] th {
    color: #d18a45;
}

@media (max-width: 720px) {
    .loom-odds-panel > header {
        align-items: flex-start;

        flex-direction: column;
    }

    .loom-odds-panel > header p {
        text-align: left;
    }

    .loom-odds-table {
        min-width: 650px;
    }
}




/* =========================================
   BOOSTER OPENING
   ========================================= */

body.is-opening-booster {
    overflow: hidden;
}

.booster-opening[hidden] {
    display: none;
}

.booster-opening {
    position: fixed;
    z-index: 1000;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 32px;

    overflow-y: auto;
}

.booster-opening-backdrop {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 44%,
            rgba(126, 96, 45, 0.18),
            transparent 36%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(18, 27, 29, 0.88),
            rgba(2, 5, 7, 0.98) 74%
        );

    backdrop-filter: blur(12px);

    animation:
        booster-backdrop-appear
        500ms ease both;
}

.booster-opening-stage {
    position: relative;
    z-index: 1;

    width: min(1480px, 100%);
    min-height: min(790px, calc(100vh - 64px));

    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    padding: 50px 42px 42px;

    border: 1px solid rgba(199, 164, 91, 0.28);
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            rgba(199, 164, 91, 0.05),
            transparent 24%
        ),
        linear-gradient(
            315deg,
            rgba(199, 164, 91, 0.04),
            transparent 24%
        ),
        rgba(5, 10, 13, 0.94);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.72),
        inset 0 0 80px rgba(199, 164, 91, 0.025);

    overflow: visible;

    animation:
        booster-stage-appear
        650ms cubic-bezier(0.2, 0.75, 0.2, 1)
        both;
}

.booster-opening-stage::before,
.booster-opening-stage::after {
    content: "";

    position: absolute;

    pointer-events: none;
}

.booster-opening-stage::before {
    inset: 12px;

    border: 1px solid rgba(199, 164, 91, 0.09);
    border-radius: 4px;
}

.booster-opening-stage::after {
    width: 720px;
    height: 720px;

    top: 50%;
    left: 50%;

    border: 1px solid rgba(199, 164, 91, 0.08);
    border-radius: 50%;

    box-shadow:
        0 0 90px rgba(199, 164, 91, 0.05),
        inset 0 0 90px rgba(199, 164, 91, 0.035);

    transform: translate(-50%, -50%);

    animation:
        booster-circle-breathe
        4s ease-in-out infinite;
}

.booster-opening-runes {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.booster-opening-runes span {
    position: absolute;

    color: rgba(199, 164, 91, 0.13);

    font-family: Georgia, serif;
    font-size: 96px;

    text-shadow:
        0 0 30px rgba(199, 164, 91, 0.16);

    animation:
        booster-rune-float
        5s ease-in-out infinite;
}

.booster-opening-runes span:nth-child(1) {
    top: 10%;
    left: 8%;
}

.booster-opening-runes span:nth-child(2) {
    top: 17%;
    right: 8%;

    animation-delay: -1.5s;
}

.booster-opening-runes span:nth-child(3) {
    right: 12%;
    bottom: 7%;

    animation-delay: -3s;
}

.booster-opening-header {
    position: relative;
    z-index: 2;

    margin-bottom: 34px;

    text-align: center;
}

.booster-opening-header > span {
    display: block;

    margin-bottom: 8px;

    color: #9b8a68;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.booster-opening-header h2 {
    margin: 0;

    color: var(--site-gold-light);

    font-family: Georgia, serif;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 400;
    letter-spacing: 0.04em;

    text-shadow:
        0 0 28px rgba(199, 164, 91, 0.2);
}

.booster-opening-header p {
    min-height: 20px;

    margin: 12px 0 0;

    color: var(--site-text-muted);

    font-size: 13px;
    letter-spacing: 0.08em;
}

.booster-opening-loader {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 180px;
    height: 180px;
}

.booster-opening-loader[hidden] {
    display: none;
}

.booster-opening-loader::before,
.booster-opening-loader::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(199, 164, 91, 0.36);
    border-radius: 50%;
}

.booster-opening-loader::before {
    width: 150px;
    height: 150px;

    border-top-color: var(--site-gold-light);
    border-bottom-color: transparent;

    animation:
        booster-loader-spin
        2.2s linear infinite;
}

.booster-opening-loader::after {
    width: 112px;
    height: 112px;

    border-right-color: var(--site-gold);
    border-left-color: transparent;

    animation:
        booster-loader-spin-reverse
        1.7s linear infinite;
}

.booster-opening-loader span {
    position: relative;
    z-index: 1;

    width: 7px;
    height: 7px;

    margin: 0 5px;

    border-radius: 50%;

    background: var(--site-gold-light);

    box-shadow:
        0 0 14px rgba(222, 191, 121, 0.7);

    animation:
        booster-loader-pulse
        1.1s ease-in-out infinite;
}

.booster-opening-loader span:nth-child(2) {
    animation-delay: 160ms;
}

.booster-opening-loader span:nth-child(3) {
    animation-delay: 320ms;
}

.booster-opening-cards {
    position: relative;
    z-index: 2;

    width: 100%;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(14px, 1.7vw, 26px);
}

.booster-opening-cards[hidden] {
    display: none;
}

.booster-revealed-card {
    min-width: 0;

    opacity: 0;

    transform:
        translateY(50px)
        scale(0.88);

    animation:
        booster-card-reveal
        720ms cubic-bezier(0.16, 0.8, 0.24, 1)
        forwards;

    animation-delay:
        calc(
            var(--booster-card-index)
            * 140ms
        );
}

.booster-revealed-card-image-frame {
    position: relative;

    width: 100%;
    aspect-ratio: 2 / 3;

    border-radius: 4.8% / 3.4%;

    background: #101416;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.52);

    perspective: 1600px;

    transition:
        transform 260ms ease,
        box-shadow 260ms ease;
}

.booster-revealed-card.is-ready {
    cursor: pointer;
}

.booster-revealed-card.is-ready:hover
.booster-revealed-card-image-frame {
    transform:
        translateY(-10px)
        scale(1.035);
}

.booster-revealed-card:focus {
    outline: none;
}

.booster-revealed-card:focus-visible
.booster-revealed-card-image-frame {
    outline: 2px solid var(--site-gold-light);
    outline-offset: 5px;
}

.booster-card-preview[hidden] {
    display: none;
}

.booster-card-preview {
    position: fixed;
    z-index: 1100;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 30px;

    pointer-events: none;
}

.booster-card-preview::before {
    content: "";

    position: absolute;
    z-index: -1;
    inset: -35px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle,
            rgba(199, 164, 91, 0.18),
            rgba(0, 0, 0, 0.62) 58%,
            transparent 74%
        );

    filter: blur(12px);
}

.booster-card-preview img {
    display: block;

    width: min(510px, calc(100vw - 60px));
    height: auto;

    image-rendering: auto;

    border-radius: 4.8% / 3.4%;

    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.9),
        0 0 38px rgba(199, 164, 91, 0.18);
}

.booster-revealed-card-inner {
    position: absolute;
    inset: 0;

    border-radius: inherit;

    transform-style: preserve-3d;

    transition:
        transform
        900ms
        cubic-bezier(0.18, 0.72, 0.16, 1);
}

.booster-revealed-card.is-revealed
.booster-revealed-card-inner {
    transform: rotateY(180deg);
}

.booster-revealed-card-face {
    position: absolute;
    inset: 0;

    border-radius: inherit;

    overflow: hidden;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.booster-revealed-card-back {
    z-index: 2;

    transform: rotateY(0deg);
}

.booster-revealed-card-front {
    transform: rotateY(180deg);
}

.booster-revealed-card-image {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    object-fit: cover;
}

.booster-revealed-card.is-ready:not(.is-revealed)
.booster-revealed-card-image-frame {
    animation:
        booster-card-awaiting
        2.2s ease-in-out infinite;
}

.booster-revealed-card.is-ready:not(.is-revealed)
.booster-revealed-card-image-frame::after {
    content: "";

    position: absolute;
    z-index: 3;
    inset: -5px;

    border: 1px solid rgba(199, 164, 91, 0.22);
    border-radius: 5.5% / 3.8%;

    box-shadow:
        0 0 22px rgba(199, 164, 91, 0.12);

    opacity: 0.35;

    pointer-events: none;

    animation:
        booster-hidden-card-aura
        2.2s ease-in-out infinite;
}

.booster-revealed-card-rare.is-ready:not(.is-revealed)
.booster-revealed-card-image-frame::after {
    border-color: rgba(87, 157, 216, 0.6);

    box-shadow:
        0 0 30px rgba(72, 137, 192, 0.42);

    animation-duration: 1.7s;
}

.booster-revealed-card-epic.is-ready:not(.is-revealed)
.booster-revealed-card-image-frame::after {
    inset: -8px;

    border-color: rgba(174, 94, 221, 0.72);

    box-shadow:
        0 0 42px rgba(148, 76, 190, 0.58);

    animation-duration: 1.25s;
}

.booster-revealed-card-legendary.is-ready:not(.is-revealed)
.booster-revealed-card-image-frame::after {
    inset: -10px;

    border-color: rgba(235, 145, 54, 0.88);

    box-shadow:
        0 0 52px rgba(218, 126, 42, 0.72);

    animation-duration: 900ms;
}

.booster-revealed-card-common
.booster-revealed-card-image-frame {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.52),
        0 0 22px rgba(206, 205, 199, 0.08);
}

.booster-revealed-card-uncommon
.booster-revealed-card-image-frame {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.52),
        0 0 26px rgba(91, 157, 84, 0.18);
}

.booster-revealed-card-rare
.booster-revealed-card-image-frame {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.52),
        0 0 30px rgba(72, 137, 192, 0.25);
}

.booster-revealed-card-epic
.booster-revealed-card-image-frame {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.52),
        0 0 34px rgba(148, 76, 190, 0.3);
}

.booster-revealed-card-legendary
.booster-revealed-card-image-frame {
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.52),
        0 0 40px rgba(218, 126, 42, 0.38);
}

.booster-revealed-card-new {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;

    padding: 5px 9px;

    border: 1px solid rgba(238, 210, 145, 0.72);
    border-radius: 999px;

    color: #f4dfaa;

    background: rgba(14, 17, 17, 0.9);

    box-shadow:
        0 0 16px rgba(199, 164, 91, 0.24);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.booster-revealed-card-information {
    display: flex;
    align-items: center;
    flex-direction: column;

    padding: 13px 5px 0;

    opacity: 0;

    text-align: center;

    transform: translateY(8px);

    transition:
        opacity 350ms ease 620ms,
        transform 350ms ease 620ms;
}

.booster-revealed-card.is-revealed
.booster-revealed-card-information {
    opacity: 1;

    transform: translateY(0);
}

.booster-revealed-card-rarity {
    margin-bottom: 5px;

    color: #958b77;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.booster-revealed-card-information strong {
    color: #ded7c5;

    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 400;
}

.booster-opening-actions {
    position: relative;
    z-index: 2;

    margin-top: 34px;

    text-align: center;
}

.booster-opening-actions[hidden] {
    display: none;
}

.booster-opening-actions .site-button {
    min-width: 210px;
}

@keyframes booster-backdrop-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes booster-stage-appear {
    from {
        opacity: 0;

        transform:
            translateY(22px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes booster-circle-breathe {
    0%,
    100% {
        opacity: 0.45;

        transform:
            translate(-50%, -50%)
            scale(0.96);
    }

    50% {
        opacity: 0.85;

        transform:
            translate(-50%, -50%)
            scale(1.04);
    }
}

@keyframes booster-rune-float {
    0%,
    100% {
        opacity: 0.45;

        transform:
            translateY(0);
    }

    50% {
        opacity: 0.85;

        transform:
            translateY(-12px);
    }
}

@keyframes booster-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes booster-loader-spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes booster-loader-pulse {
    0%,
    100% {
        opacity: 0.3;

        transform: scale(0.7);
    }

    50% {
        opacity: 1;

        transform: scale(1.15);
    }
}


@keyframes booster-card-awaiting {
    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-5px)
            scale(1.01);
    }
}

@keyframes booster-hidden-card-aura {
    0%,
    100% {
        opacity: 0.25;

        transform: scale(0.99);
    }

    50% {
        opacity: 0.9;

        transform: scale(1.025);
    }
}


@keyframes booster-card-reveal {
    0% {
        opacity: 0;

        filter: brightness(2.2) blur(5px);

        transform:
            translateY(50px)
            scale(0.88);
    }

    55% {
        opacity: 1;

        filter: brightness(1.45) blur(0);

        transform:
            translateY(-8px)
            scale(1.025);
    }

    100% {
        opacity: 1;

        filter: brightness(1) blur(0);

        transform:
            translateY(0)
            scale(1);
    }
}

@media (max-width: 1100px) {
    .booster-opening {
        align-items: start;

        padding: 20px;
    }

    .booster-opening-stage {
        min-height: calc(100vh - 40px);

        padding:
            42px
            28px
            36px;
    }

    .booster-opening-cards {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        max-width: 760px;
    }
}

@media (max-width: 720px) {
    .booster-opening {
        padding: 10px;
    }

    .booster-opening-stage {
        min-height: calc(100vh - 20px);

        padding:
            36px
            18px
            30px;
    }

    .booster-opening-header {
        margin-bottom: 26px;
    }

    .booster-opening-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px 14px;
    }

    .booster-opening-runes span {
        font-size: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booster-opening *,
    .booster-opening *::before,
    .booster-opening *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
    }
}

/* =========================================================
   MATCH HISTORY
   ========================================================= */

.match-history-page {
    width: min(1420px, calc(100% - 48px));
    margin: 0 auto;
    padding: 76px 0 100px;
}

.match-history-header {
    margin-bottom: 42px;

    text-align: center;
}

.match-history-eyebrow {
    margin: 0 0 10px;

    color: var(--site-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.match-history-header h1 {
    margin: 0;

    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.match-history-introduction {
    margin: 14px 0 0;

    color: var(--site-text-muted);
    font-family: Georgia, serif;
    font-size: 16px;
    font-style: italic;
}

.match-history-list {
    display: grid;
    gap: 14px;
}

.match-history-entry {
    position: relative;

    display: grid;
    grid-template-columns:
        118px
        minmax(150px, 1fr)
        50px
        minmax(150px, 1fr)
        minmax(180px, 0.85fr)
        130px;
    align-items: center;
    min-height: 142px;
    padding: 18px 20px;

    overflow: hidden;

    border: 1px solid rgba(199, 164, 91, 0.18);
    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            rgba(15, 20, 23, 0.96),
            rgba(8, 12, 15, 0.94)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 10px 28px rgba(0, 0, 0, 0.24);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.match-history-entry::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background: #8d8270;

    content: "";
}

.match-history-entry.is-victory::before {
    background: #b99445;

    box-shadow: 0 0 18px rgba(185, 148, 69, 0.45);
}

.match-history-entry.is-defeat::before,
.match-history-entry.is-abandoned::before {
    background: #743e3e;

    box-shadow: 0 0 18px rgba(116, 62, 62, 0.36);
}

.match-history-entry.is-draw::before {
    background: #657985;
}

.match-history-entry:hover {
    border-color: rgba(199, 164, 91, 0.38);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 14px 36px rgba(0, 0, 0, 0.34);

    transform: translateY(-2px);
}

.match-history-result {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;

    text-align: center;
}

.match-history-result-rune {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border: 1px solid rgba(199, 164, 91, 0.28);
    border-radius: 50%;

    color: #b8ad96;

    background: rgba(4, 7, 9, 0.65);

    font-family: Georgia, serif;
    font-size: 24px;
}

.match-history-result strong {
    color: #aaa394;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.match-history-entry.is-victory
.match-history-result-rune,
.match-history-entry.is-victory
.match-history-result strong {
    color: #d8b765;
}

.match-history-entry.is-defeat
.match-history-result-rune,
.match-history-entry.is-defeat
.match-history-result strong,
.match-history-entry.is-abandoned
.match-history-result-rune,
.match-history-entry.is-abandoned
.match-history-result strong {
    color: #a86464;
}

.match-history-player {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;

    min-width: 0;

    color: #d0c8b6;
    font-family: Georgia, serif;
    text-align: center;
}

.match-history-player > span {
    max-width: 100%;

    overflow: hidden;

    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-history-player > small {
    color: #77736b;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.match-history-heroes {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.match-history-hero-frame {
    position: relative;

    width: 58px;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    border: 1px solid rgba(199, 164, 91, 0.36);
    border-radius: 3px;

    background: #06090b;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.42),
        inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.match-history-hero-frame img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.match-history-versus {
    color: rgba(199, 164, 91, 0.52);
    font-family: Georgia, serif;
    font-size: 13px;
    text-align: center;
}

.match-history-details {
    display: grid;
    gap: 7px;

    padding-left: 24px;

    border-left: 1px solid rgba(199, 164, 91, 0.13);

    color: #8c887f;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.match-history-details span:first-child {
    color: var(--site-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.match-history-origin {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.match-history-origin span,
.match-history-details .match-history-origin span:first-child {
    padding: 3px 6px;
    border: 1px solid rgba(133, 158, 171, 0.22);
    border-radius: 2px;
    background: rgba(74, 99, 111, 0.08);
    color: #8da0a8;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.match-history-origin span.is-championship,
.match-history-details .match-history-origin span.is-championship:first-child {
    border-color: rgba(199, 164, 91, 0.34);
    background: rgba(199, 164, 91, 0.08);
    color: #d1b66e;
}

.match-history-details time {
    color: #68655f;
    font-size: 9px;
}

.match-history-action {
    display: flex;
    justify-content: flex-end;
}

.match-history-review {
    min-width: 105px;
}

.match-history-replay-expired {
    color: #625f59;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-style: italic;
    text-align: center;
}

.match-history-empty {
    display: flex;
    align-items: center;
    flex-direction: column;

    padding: 80px 30px;

    border: 1px solid rgba(199, 164, 91, 0.18);

    background: rgba(7, 11, 14, 0.82);

    text-align: center;
}

.match-history-empty-rune {
    margin-bottom: 18px;

    color: rgba(199, 164, 91, 0.58);
    font-family: Georgia, serif;
    font-size: 52px;
}

.match-history-empty h2 {
    margin: 0;

    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 400;
}

.match-history-empty p {
    margin: 12px 0 28px;

    color: var(--site-text-muted);
}

@media (max-width: 1100px) {
    .match-history-entry {
        grid-template-columns:
            105px
            minmax(130px, 1fr)
            38px
            minmax(130px, 1fr)
            145px;
    }

    .match-history-action {
        grid-column: 1 / -1;
        justify-content: center;

        padding-top: 14px;

        border-top: 1px solid rgba(199, 164, 91, 0.1);
    }
}

@media (max-width: 760px) {
    .match-history-page {
        width: min(100% - 24px, 560px);
        padding-top: 46px;
    }

    .match-history-entry {
        grid-template-columns: 1fr 32px 1fr;
        gap: 16px;
    }

    .match-history-result {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
    }

    .match-history-details {
        grid-column: 1 / -1;

        padding: 14px 0 0;

        border-top: 1px solid rgba(199, 164, 91, 0.1);
        border-left: 0;

        text-align: center;
    }

    .match-history-hero-frame {
        width: 50px;
    }
}

/* =========================================================
   ONBOARDING WELCOME
   ========================================================= */

.onboarding-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 14900;

    display: grid;
    place-items: center;
    padding: 24px;

    overflow: auto;

    background:
        rgba(2, 5, 7, .94);

    backdrop-filter: blur(8px);
}

.onboarding-welcome {
    position: relative;

    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 42px;

    overflow: auto;

    scrollbar-color:
        rgba(199, 164, 91, .58)
        rgba(4, 8, 10, .72);
    scrollbar-width: thin;

    border: 1px solid rgba(199, 164, 91, .34);
    border-radius: 4px;

    background:
        linear-gradient(
            145deg,
            rgba(13, 20, 24, .99),
            rgba(5, 8, 10, .99)
        );

    box-shadow:
        0 28px 80px rgba(0, 0, 0, .7),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.onboarding-welcome::-webkit-scrollbar {
    width: 8px;
}

.onboarding-welcome::-webkit-scrollbar-track {
    background:
        rgba(4, 8, 10, .72);
}

.onboarding-welcome::-webkit-scrollbar-thumb {
    border: 2px solid rgba(4, 8, 10, .72);
    border-radius: 999px;

    background:
        rgba(199, 164, 91, .58);
}

.onboarding-welcome::-webkit-scrollbar-thumb:hover {
    background:
        rgba(220, 184, 104, .82);
}

.onboarding-welcome::-webkit-scrollbar-button {
    display: none;
}

.onboarding-navigation-stage {
    min-height: 55vh;
}

.onboarding-welcome-light {
    position: absolute;
    top: -220px;
    left: 50%;
    z-index: -1;

    width: 760px;
    height: 620px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(196, 151, 58, .13),
            rgba(44, 72, 73, .05) 42%,
            transparent 72%
        );

    pointer-events: none;

    transform:
        translateX(-50%);
}

.onboarding-welcome-header {
    text-align: center;
}

.onboarding-welcome-rune {
    display: block;
    margin-bottom: 11px;

    color: #c99f4f;
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1;

    text-shadow:
        0 0 22px
        rgba(201, 159, 79, .38);
}

.onboarding-welcome-eyebrow {
    margin: 0;

    color: var(--site-gold);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.onboarding-welcome-header h1 {
    margin: 13px 0 0;

    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    letter-spacing: .025em;
}

.onboarding-welcome-opening {
    margin: 15px auto 0;

    color: #aaa18e;
    font-family: Georgia, serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.65;
}

.onboarding-welcome-message {
    max-width: 760px;
    margin: 35px auto 42px;

    color: var(--site-text-muted);
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 1.75;
    text-align: center;
}

.onboarding-welcome-message p {
    margin: 0 0 13px;
}

.onboarding-hero-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.onboarding-hero {
    position: relative;

    display: grid;
    grid-template-columns:
        138px minmax(0, 1fr);
    align-items: center;
    min-height: 222px;
    padding: 18px;

    overflow: hidden;

    border:
        1px solid
        rgba(199, 164, 91, .2);
    border-radius: 4px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 21, 24, .94),
            rgba(7, 10, 12, .96)
        );

    box-shadow:
        0 15px 36px
        rgba(0, 0, 0, .3),
        inset 0 1px 0
        rgba(255, 255, 255, .025);

    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.onboarding-hero::after {
    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(197, 156, 69, .08),
            transparent 46%
        );

    content: "";
    pointer-events: none;
}

.onboarding-hero:hover {
    border-color:
        rgba(199, 164, 91, .46);

    box-shadow:
        0 20px 46px
        rgba(0, 0, 0, .4),
        inset 0 1px 0
        rgba(255, 255, 255, .04);

    transform:
        translateY(-4px);
}

.onboarding-hero-image-frame {
    position: relative;
    z-index: 1;

    width: 118px;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    border:
        1px solid
        rgba(202, 165, 85, .45);
    border-radius: 3px;

    background: #06090b;

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, .48);
}

.onboarding-hero-image-frame img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.onboarding-hero-content {
    position: relative;
    z-index: 1;
}

.onboarding-hero-content > span {
    color: #8e7748;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.onboarding-hero-content h2 {
    margin: 6px 0 10px;

    color: #d8c28d;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 400;
}

.onboarding-hero-content p {
    margin: 0;

    color: #817c72;
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1.6;
}

.onboarding-welcome-footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 42px;

    text-align: center;
}

.onboarding-welcome-footer p {
    margin: 0 0 17px;

    color: #918775;
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.onboarding-welcome-footer form {
    margin: 0;
}

.onboarding-start-button {
    min-width: 190px;
}

@media (max-width: 1050px) {
    .onboarding-hero-list {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .onboarding-hero {
        grid-template-columns:
            128px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .onboarding-welcome-overlay {
        padding: 12px;
    }

    .onboarding-welcome {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 32px 18px;
    }

    .onboarding-hero {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .onboarding-hero-image-frame {
        width: 130px;
        margin: 0 auto 18px;
    }
}

/* =========================================================
   SITE TUTORIAL
   ========================================================= */

.site-tutorial[hidden] {
    display: none !important;
}

.site-tutorial {
    position: fixed;
    inset: 0;
    z-index: 15000;

    pointer-events: none;
}

.site-tutorial-focus {
    position: fixed;

    border:
        1px solid
        rgba(229, 186, 85, .82);
    border-radius: 5px;

    box-shadow:
        0 0 0 9999px
        rgba(0, 0, 0, .76),
        0 0 18px
        rgba(224, 178, 69, .46),
        inset 0 0 12px
        rgba(224, 178, 69, .12);

    pointer-events: none;

    transition:
        top 260ms ease,
        left 260ms ease,
        width 260ms ease,
        height 260ms ease;
}

.site-tutorial-bubble {
    position: fixed;

    width: min(370px, calc(100vw - 36px));
    padding: 25px 27px 23px;

    border:
        1px solid
        rgba(199, 164, 91, .55);
    border-radius: 4px;

    color: #b9b1a0;

    background:
        linear-gradient(
            145deg,
            rgba(18, 22, 23, .99),
            rgba(7, 10, 12, .99)
        );

    box-shadow:
        0 18px 52px
        rgba(0, 0, 0, .68),
        inset 0 1px 0
        rgba(255, 243, 200, .045);

    font-family: Georgia, serif;
    pointer-events: auto;

    transition:
        top 260ms ease,
        left 260ms ease;
}

.site-tutorial-rune {
    display: block;
    margin-bottom: 7px;

    color: #c89c48;
    font-size: 25px;
    line-height: 1;

    text-shadow:
        0 0 13px
        rgba(200, 156, 72, .4);
}

.site-tutorial-progress {
    position: absolute;
    top: 18px;
    right: 48px;

    color: #69645a;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.site-tutorial-close {
    position: absolute;
    top: 9px;
    right: 11px;

    width: 29px;
    height: 29px;
    padding: 0;

    border: 0;

    color: #746f65;

    background: transparent;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 150ms ease,
        transform 150ms ease;
}

.site-tutorial-close:hover {
    color: #d0aa57;

    transform: scale(1.1);
}

.site-tutorial-bubble h2 {
    margin: 0;

    color: #d8c28e;
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
}

.site-tutorial-text {
    margin: 11px 0 20px;

    color: #918a7d;
    font-size: 13px;
    line-height: 1.65;
}

.site-tutorial-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.site-tutorial-back,
.site-tutorial-next {
    min-width: 94px;
    padding: 9px 13px;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        border-color 150ms ease,
        color 150ms ease,
        background 150ms ease;
}

.site-tutorial-back {
    border:
        1px solid
        rgba(199, 164, 91, .2);

    color: #777269;

    background:
        rgba(255, 255, 255, .015);
}

.site-tutorial-back:hover:not(:disabled) {
    border-color:
        rgba(199, 164, 91, .44);

    color: #c0a869;
}

.site-tutorial-back:disabled {
    opacity: .28;

    cursor: default;
}

.site-tutorial-next {
    border:
        1px solid
        rgba(210, 171, 78, .52);

    color: #d6b66f;

    background:
        rgba(199, 154, 53, .1);
}

.site-tutorial-next:hover {
    border-color:
        rgba(224, 185, 91, .82);

    color: #f0d38c;

    background:
        rgba(199, 154, 53, .18);
}

.site-tutorial-arrow {
    position: absolute;

    width: 16px;
    height: 16px;

    border:
        solid
        rgba(199, 164, 91, .55);

    background: #111516;

    transform: rotate(45deg);
}

.site-tutorial-bubble[data-placement="bottom"]
.site-tutorial-arrow {
    top: -9px;
    left: var(--tutorial-arrow-x);

    border-width: 1px 0 0 1px;
}

.site-tutorial-bubble[data-placement="top"]
.site-tutorial-arrow {
    bottom: -9px;
    left: var(--tutorial-arrow-x);

    border-width: 0 1px 1px 0;
}

.site-tutorial-bubble[data-placement="left"]
.site-tutorial-arrow {
    top: var(--tutorial-arrow-y);
    right: -9px;

    border-width: 1px 1px 0 0;
}

.site-tutorial-bubble[data-placement="right"]
.site-tutorial-arrow {
    top: var(--tutorial-arrow-y);
    left: -9px;

    border-width: 0 0 1px 1px;
}

@media (max-width: 600px) {
    .site-tutorial-bubble {
        padding:
            23px 22px 21px;
    }
}

/* =========================================================
   TUTORIAL REPLAY BUTTON
   ========================================================= */

.site-tutorial-replay {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 8px 12px;

    border:
        1px solid
        rgba(199, 164, 91, .25);
    border-radius: 2px;

    color: #827968;

    background:
        rgba(8, 12, 14, .48);

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease;
}

.site-tutorial-replay > span {
    color: #a9823d;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1;
}

.site-tutorial-replay:hover {
    border-color:
        rgba(211, 172, 78, .6);

    color: #d2b46f;

    background:
        rgba(199, 154, 53, .08);
}

.collection-summary {
    align-items: stretch;
    gap: 22px;
}

.collection-summary-item {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.collection-summary-item
+ .collection-summary-item {
    padding-left: 22px;

    border-left:
        1px solid
        rgba(199, 164, 91, .18);
}

body.is-completing-onboarding {
    overflow: hidden;
}

.onboarding-completion {
    position: fixed;
    inset: 0;

    z-index: 16000;

    display: grid;
    place-items: center;

    padding: 30px;
}

.onboarding-completion-backdrop {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(42, 34, 17, 0.28),
            rgba(2, 4, 5, 0.94) 68%
        );

    backdrop-filter: blur(3px);

    animation:
        onboarding-completion-backdrop
        650ms ease-out forwards;
}

.onboarding-completion-panel {
    position: relative;

    z-index: 1;

    width: min(540px, 100%);
    padding: 48px 48px 42px;

    border:
        1px solid
        rgba(220, 180, 87, 0.66);

    color: #aaa294;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(181, 135, 44, 0.13),
            transparent 44%
        ),
        linear-gradient(
            145deg,
            rgba(18, 22, 23, 0.99),
            rgba(6, 9, 11, 0.99)
        );

    box-shadow:
        0 0 42px
        rgba(190, 143, 47, 0.22),
        0 28px 80px
        rgba(0, 0, 0, 0.78),
        inset 0 1px 0
        rgba(255, 238, 186, 0.08);

    text-align: center;

    animation:
        onboarding-completion-panel
        800ms cubic-bezier(
            0.2,
            0.8,
            0.2,
            1
        ) forwards;
}

.onboarding-completion-mark {
    display: block;

    margin-bottom: 14px;

    color: #d5aa54;
    font-size: 46px;
    line-height: 1;

    text-shadow:
        0 0 14px
        rgba(224, 177, 74, 0.78),
        0 0 34px
        rgba(191, 136, 37, 0.42);

    animation:
        onboarding-completion-mark
        1800ms ease-in-out infinite;
}

.onboarding-completion-panel > small {
    color: #9b7a3a;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.onboarding-completion-panel h2 {
    margin: 12px 0 15px;

    color: #ead49d;

    font-family: Georgia, serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 400;
}

.onboarding-completion-panel p {
    max-width: 410px;

    margin: 0 auto;

    color: #9d9688;
    font-size: 14px;
    line-height: 1.75;
}

.onboarding-completion-gift {
    display: grid;

    width: 210px;

    margin: 28px auto 30px;
    padding: 17px 20px;

    border:
        1px solid
        rgba(213, 170, 79, 0.34);

    background:
        rgba(199, 154, 53, 0.07);

    box-shadow:
        inset 0 0 18px
        rgba(206, 158, 57, 0.07);
}

.onboarding-completion-gift span,
.onboarding-completion-gift small {
    color: #8e7441;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.onboarding-completion-gift strong {
    margin: 5px 0;

    color: #f0d184;
    font-size: 32px;
    font-weight: 400;

    text-shadow:
        0 0 13px
        rgba(224, 174, 66, 0.62);

    animation:
        onboarding-completion-gift
        900ms ease-out 500ms both;
}

.onboarding-completion-runes {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 1px;
    height: 1px;

    pointer-events: none;
}

.onboarding-completion-runes span {
    position: absolute;
    top: 0;
    left: 0;

    color: #d8ad58;
    font-size: 15px;

    opacity: 0;

    text-shadow:
        0 0 8px
        rgba(222, 173, 67, 0.8);

    animation:
        onboarding-completion-rune
        1500ms ease-out
        var(--completion-delay)
        forwards;
}

@keyframes onboarding-completion-backdrop {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes onboarding-completion-panel {
    from {
        opacity: 0;

        transform:
            translateY(24px)
            scale(0.94);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes onboarding-completion-mark {
    0%,
    100% {
        filter:
            brightness(0.9);

        transform: scale(0.97);
    }

    50% {
        filter:
            brightness(1.3);

        transform: scale(1.04);
    }
}

@keyframes onboarding-completion-gift {
    from {
        opacity: 0;

        transform:
            translateY(10px)
            scale(0.7);
    }

    55% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1.12);
    }

    to {
        opacity: 1;

        transform: scale(1);
    }
}

@keyframes onboarding-completion-rune {
    0% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.2);
    }

    22% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;

        transform:
            translate(
                calc(-50% + var(--completion-x)),
                calc(-50% + var(--completion-y))
            )
            rotate(110deg)
            scale(0);
    }
}

@media (max-width: 600px) {
    .onboarding-completion-panel {
        padding:
            40px 24px 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onboarding-completion *,
    .onboarding-completion *::before,
    .onboarding-completion *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
    }
}

.hacksilver-notification-stack {
    position: fixed;
    z-index: 16000;
    top: calc(var(--site-header-height) + 18px);
    right: 18px;

    display: grid;
    width: min(360px, calc(100vw - 30px));
    max-height: calc(100vh - var(--site-header-height) - 36px);
    gap: 10px;

    overflow-y: auto;

    pointer-events: none;
    scrollbar-color: rgba(199, 164, 91, .38) transparent;
    scrollbar-width: thin;
}

.hacksilver-notification {
    position: relative;

    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    align-items: center;
    padding: 14px 12px;
    gap: 11px;

    border: 1px solid rgba(199, 164, 91, .32);
    border-left: 3px solid var(--site-gold);

    background:
        linear-gradient(
            120deg,
            rgba(199, 164, 91, .1),
            transparent 48%
        ),
        rgba(7, 12, 15, .97);

    box-shadow: 0 14px 34px rgba(0, 0, 0, .48);

    pointer-events: auto;

    animation:
        hacksilver-notification-in
        320ms ease both;
}

.hacksilver-notification.is-closing {
    pointer-events: none;

    animation:
        hacksilver-notification-out
        260ms ease both;
}

.hacksilver-notification > img {
    display: block;
    width: 46px;
    height: 36px;

    object-fit: contain;

    filter: drop-shadow(
        0 0 8px rgba(199, 164, 91, .22)
    );
}

.hacksilver-notification-content {
    min-width: 0;
}

.hacksilver-notification-content > span {
    display: block;
    margin-bottom: 3px;

    color: #9c8654;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hacksilver-notification-content > strong {
    display: block;

    color: var(--site-gold-light);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 400;
}

.hacksilver-notification-content > p {
    margin: 4px 0 0;

    color: var(--site-text-muted);
    font-family: Georgia, serif;
    font-size: 11px;
    line-height: 1.45;
}

.hacksilver-notification > button {
    align-self: start;
    width: 24px;
    height: 24px;
    padding: 0;

    color: #776e5d;
    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 17px;
    line-height: 1;
}

.hacksilver-notification > button:hover {
    color: var(--site-gold-light);
}

@keyframes hacksilver-notification-in {
    from {
        opacity: 0;

        transform: translateX(24px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }
}

@keyframes hacksilver-notification-out {
    from {
        opacity: 1;

        transform: translateX(0);
    }

    to {
        opacity: 0;

        transform: translateX(24px);
    }
}

@media (max-width: 600px) {
    .hacksilver-notification-stack {
        top: calc(var(--site-header-height) + 10px);
        right: 10px;
    }
}

.passive-reward-overlay {
    position: fixed;
    z-index: 5000;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at center,
            rgba(42, 35, 21, 0.2),
            rgba(2, 5, 7, 0.94) 64%
        );

    backdrop-filter: blur(5px);

    animation:
        passive-reward-overlay-in
        420ms ease-out both;
}

.passive-reward-overlay.is-closing {
    pointer-events: none;

    animation:
        passive-reward-overlay-out
        400ms ease-in both;
}

.passive-reward-panel {
    position: relative;

    width: min(480px, 100%);

    overflow: hidden;

    padding:
        44px 52px 40px;

    border: 1px solid
        rgba(194, 151, 62, 0.65);

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 25, 0.99),
            rgba(7, 11, 13, 0.99)
        );

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(190, 145, 52, 0.1),
        inset 0 0 42px rgba(206, 166, 76, 0.035);

    text-align: center;

    animation:
        passive-reward-panel-in
        600ms cubic-bezier(
            0.16,
            1,
            0.3,
            1
        ) both;
}

.passive-reward-panel::before,
.passive-reward-panel::after {
    content: "";

    position: absolute;
    left: 50%;

    width: 170px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(220, 178, 82, 0.8),
            transparent
        );

    transform: translateX(-50%);
}

.passive-reward-panel::before {
    top: 20px;
}

.passive-reward-panel::after {
    bottom: 20px;
}

.passive-reward-rune {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    margin:
        0 auto
        18px;

    border: 1px solid
        rgba(205, 160, 66, 0.58);

    border-radius: 50%;

    color: #d5ad55;

    font-size: 22px;

    box-shadow:
        0 0 22px rgba(210, 168, 73, 0.16),
        inset 0 0 16px rgba(210, 168, 73, 0.08);

    animation:
        passive-reward-rune-pulse
        2.8s ease-in-out infinite;
}

.passive-reward-eyebrow {
    margin:
        0 0
        10px;

    color: #b99242;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.24em;

    text-transform: uppercase;
}

.passive-reward-panel h2 {
    margin:
        0 0
        16px;

    color: #ead49a;

    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.passive-reward-message {
    max-width: 370px;

    margin:
        0 auto
        26px;

    color: #aaa79e;

    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.65;
}

.passive-reward-spoils {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    width: fit-content;

    margin:
        0 auto
        12px;

    padding:
        10px 24px;

    border-top: 1px solid
        rgba(181, 140, 56, 0.26);

    border-bottom: 1px solid
        rgba(181, 140, 56, 0.26);

    background:
        radial-gradient(
            circle,
            rgba(199, 158, 67, 0.1),
            transparent 72%
        );
}

.passive-reward-spoils img {
    width: 72px;
    height: 52px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 10px
            rgba(216, 180, 101, 0.24)
        );
}

.passive-reward-spoils div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.passive-reward-spoils strong {
    color: #f0d489;

    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.passive-reward-spoils span {
    margin-top: 5px;

    color: #a98339;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}

.passive-reward-summary {
    margin:
        0 0
        26px;

    color: #77756d;

    font-size: 10px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.passive-reward-claim {
    min-width: 190px;

    padding:
        14px 24px;

    border: 1px solid #a98235;

    background:
        linear-gradient(
            135deg,
            #d9ba70,
            #b88e3f
        );

    color: #15130e;

    cursor: pointer;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    transition:
        filter 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.passive-reward-claim:hover {
    filter: brightness(1.12);

    transform: translateY(-2px);

    box-shadow:
        0 8px 24px
        rgba(195, 150, 57, 0.2);
}

.passive-reward-claim:disabled {
    cursor: wait;

    opacity: 0.55;
}

@keyframes passive-reward-overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes passive-reward-overlay-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes passive-reward-panel-in {
    from {
        opacity: 0;

        transform:
            translateY(24px)
            scale(0.94);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes passive-reward-rune-pulse {
    0%,
    100% {
        filter: brightness(0.9);

        transform: scale(0.97);
    }

    50% {
        filter: brightness(1.25);

        transform: scale(1.05);
    }
}

@media (max-width: 600px) {
    .passive-reward-panel {
        padding:
            38px 24px 34px;
    }

    .passive-reward-panel h2 {
        font-size: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .passive-reward-overlay,
    .passive-reward-panel,
    .passive-reward-rune {
        animation-duration: 1ms !important;
    }
}

.navigation-languages {
    display: inline-flex;
    align-items: center;

    gap: 6px;
    margin: 0 0 0 8px;
    padding-left: 12px;

    border-left: 1px solid rgba(199, 164, 91, 0.24);
}

.navigation-languages form {
    display: flex;
    margin: 0;
}

.navigation-language-button {
    position: relative;

    display: grid;
    width: 36px;
    height: 29px;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(199, 164, 91, 0.2);
    border-radius: 4px;

    background: rgba(7, 12, 16, 0.68);

    cursor: pointer;

    transition:
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease,
        transform 160ms ease;
}

.navigation-language-button:hover {
    border-color: rgba(199, 164, 91, 0.58);

    background: rgba(199, 164, 91, 0.07);

    filter: brightness(1.08);
    transform: translateY(-1px);
}

.navigation-language-button.is-active {
    border-color: rgba(222, 186, 98, 0.88);

    background:
        linear-gradient(
            135deg,
            rgba(199, 164, 91, 0.2),
            rgba(199, 164, 91, 0.06)
        );

    box-shadow:
        0 0 11px rgba(199, 164, 91, 0.2),
        inset 0 0 9px rgba(199, 164, 91, 0.08);
}

.navigation-language-button.is-active::after {
    position: absolute;
    top: 2px;
    right: 2px;

    width: 4px;
    height: 4px;

    border: 1px solid #201706;
    border-radius: 50%;

    background: #efd174;

    box-shadow: 0 0 5px rgba(239, 209, 116, 0.9);

    content: "";
}

.navigation-language-flag {
    display: block;
    width: 24px;
    height: 16px;

    border: 1px solid rgba(232, 223, 199, 0.2);

    object-fit: cover;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   PLAYER STATISTICS
   ========================================================= */

.match-history-page {
    padding-top: 24px;
}

.match-history-header {
    display: flex;
    min-height: 92px;
    margin-bottom: 18px;
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(199, 164, 91, 0.18);
    background:
        linear-gradient(
            110deg,
            rgba(16, 22, 26, 0.94),
            rgba(6, 10, 13, 0.96)
        );
    text-align: left;
}

.match-history-header-copy {
    min-width: 0;
}

.match-history-header h1 {
    margin: 2px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.05;
}

.match-history-eyebrow {
    margin: 0;
    font-size: 0.56rem;
}

.match-history-introduction {
    margin: 6px 0 0;
    font-size: 0.76rem;
    line-height: 1.4;
}

.match-history-statistics-button {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    border-color: rgba(105, 177, 209, 0.44);
    color: #a9d8ea;
    font-size: 0.58rem;
}

.player-statistics-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 70px;
}

.player-statistics-trigger {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition:
        color 160ms ease,
        text-shadow 160ms ease;
}

.player-statistics-trigger:hover,
.player-statistics-trigger:focus-visible {
    color: #ecd88f;
    text-shadow: 0 0 12px rgba(216, 178, 79, 0.22);
}

.challenger-player.player-statistics-trigger {
    width: fit-content;
    max-width: 100%;
    border-radius: 18px;
}

.challenger-player.player-statistics-trigger:hover,
.challenger-player.player-statistics-trigger:focus-visible {
    outline: none;
}

.challenger-player.player-statistics-trigger:hover > img,
.challenger-player.player-statistics-trigger:hover
.challenger-player-fallback,
.challenger-player.player-statistics-trigger:focus-visible > img,
.challenger-player.player-statistics-trigger:focus-visible
.challenger-player-fallback {
    border-color: rgba(236, 216, 143, 0.95);
    box-shadow: 0 0 14px rgba(216, 178, 79, 0.24);
}

.player-statistics-header {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 0.7fr);
    align-items: center;
    gap: 28px;
    padding: 20px;
    border: 1px solid rgba(199, 164, 91, 0.24);
    background:
        linear-gradient(
            115deg,
            rgba(16, 23, 28, 0.96),
            rgba(6, 10, 14, 0.98)
        );
}

.player-statistics-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.player-statistics-identity > img,
.player-statistics-identity > span {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    place-items: center;
    border: 1px solid rgba(199, 164, 91, 0.5);
    border-radius: 50%;
    background: #10242d;
    color: #ead9ad;
    object-fit: cover;
    font-family: Georgia, serif;
    font-size: 1.6rem;
}

.player-statistics-identity p,
.player-statistics-summary > p {
    margin: 0 0 5px;
    color: #caa653;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.player-statistics-identity h1 {
    margin: 0;
    overflow: hidden;
    color: #f0e3c1;
    font-family: Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-statistics-overall {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.player-statistics-overall article {
    display: grid;
    min-height: 68px;
    place-content: center;
    border: 1px solid rgba(199, 164, 91, 0.18);
    background: rgba(3, 8, 11, 0.58);
    text-align: center;
}

.player-statistics-overall strong {
    color: #ead28d;
    font-family: Georgia, serif;
    font-size: 1.3rem;
}

.player-statistics-overall span {
    margin-top: 4px;
    color: #8e8a81;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.player-statistics-visual {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.75fr)
        minmax(260px, 1fr);
    align-items: center;
    gap: 36px;
    margin-top: 16px;
    padding: 20px 30px;
    border: 1px solid rgba(105, 177, 209, 0.16);
    background:
        radial-gradient(
            circle at 24% 50%,
            rgba(54, 129, 161, 0.13),
            transparent 34%
        ),
        rgba(5, 10, 14, 0.88);
}

.player-statistics-radar {
    position: relative;
    width: min(320px, 100%);
    margin: 0 auto;
}

.player-statistics-radar svg {
    display: block;
    width: 100%;
    overflow: visible;
}

.player-statistics-radar-grid {
    fill: rgba(105, 177, 209, 0.025);
    stroke: rgba(105, 177, 209, 0.2);
    stroke-width: 1;
}

.player-statistics-radar-axis {
    stroke: rgba(199, 164, 91, 0.2);
    stroke-width: 1;
}

.player-statistics-radar-value {
    fill: rgba(76, 167, 205, 0.25);
    stroke: #78c4e3;
    stroke-width: 2;
    filter: drop-shadow(
        0 0 8px rgba(87, 183, 221, 0.34)
    );
}

.player-statistics-radar-point {
    fill: #e4c871;
    stroke: #081116;
    stroke-width: 2;
}

.player-statistics-radar-label {
    fill: #d9c47f;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-anchor: middle;
    dominant-baseline: middle;
}

.player-statistics-radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 74px;
    height: 74px;
    place-content: center;
    border: 1px solid rgba(199, 164, 91, 0.38);
    border-radius: 50%;
    background: rgba(5, 10, 14, 0.92);
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.42);
    text-align: center;
    transform: translate(-50%, -50%);
}

.player-statistics-radar-center strong {
    color: #ead28d;
    font-family: Georgia, serif;
    font-size: 1rem;
}

.player-statistics-radar-center span {
    margin-top: 2px;
    color: #858178;
    font-size: 0.42rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-statistics-summary h2 {
    margin: 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 500;
}

.player-statistics-summary > span {
    display: block;
    max-width: 520px;
    margin-top: 10px;
    color: #99958c;
    font-family: Georgia, serif;
    font-size: 0.82rem;
    line-height: 1.6;
}

.player-statistics-modes {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.player-statistics-mode {
    padding: 14px;
    border: 1px solid rgba(199, 164, 91, 0.18);
    background: rgba(7, 12, 15, 0.82);
}

.player-statistics-mode header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(199, 164, 91, 0.14);
}

.player-statistics-mode header small {
    color: #8dbed2;
    font-family: Georgia, serif;
    font-size: 0.72rem;
}

.player-statistics-mode h2 {
    margin: 0;
    color: #d8ccb0;
    font-family: Georgia, serif;
    font-size: 0.84rem;
    font-weight: 500;
}

.player-statistics-mode header strong {
    color: #e1c671;
    font-size: 0.8rem;
}

.player-statistics-mode > div {
    display: flex;
    min-height: 26px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #a5a097;
    font-size: 0.68rem;
}

.player-statistics-mode > div strong {
    color: #c5bfae;
}

.player-statistics-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(1, 4, 6, 0.88);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity 180ms ease;
}

.player-statistics-overlay[hidden] {
    display: none;
}

.player-statistics-overlay.is-open {
    opacity: 1;
}

.player-statistics-dialog {
    width: min(1240px, 96vw);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid rgba(199, 164, 91, 0.42);
    background: #070c0f;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
    transform: translateY(10px) scale(0.985);
    transition: transform 180ms ease;
    scrollbar-color:
        rgba(199, 164, 91, 0.58)
        rgba(4, 8, 11, 0.92);
    scrollbar-width: thin;
}

.player-statistics-overlay.is-open
.player-statistics-dialog {
    transform: translateY(0) scale(1);
}

.player-statistics-dialog-header {
    position: sticky;
    z-index: 4;
    top: 0;
    display: flex;
    min-height: 62px;
    padding: 10px 14px 10px 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(199, 164, 91, 0.2);
    background: rgba(7, 12, 15, 0.97);
}

.player-statistics-dialog-header p {
    margin: 0 0 2px;
    color: #caa653;
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.player-statistics-dialog-header h2 {
    margin: 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
}

.player-statistics-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(199, 164, 91, 0.34);
    background: transparent;
    color: #e4cf91;
    cursor: pointer;
    font-size: 1.1rem;
}

.player-statistics-close:hover {
    border-color: rgba(232, 207, 137, 0.78);
    background: rgba(199, 164, 91, 0.1);
}

.player-statistics-dialog-content
.player-statistics-page {
    width: auto;
    padding: 18px;
}

.player-statistics-loading,
.player-statistics-error {
    display: grid;
    min-height: 300px;
    margin: 0;
    place-items: center;
    color: #aaa397;
    font-family: Georgia, serif;
    font-size: 0.9rem;
}

.player-statistics-error {
    color: #b86d67;
}

.has-player-statistics-open {
    overflow: hidden;
}

@media (max-width: 1050px) {
    .player-statistics-modes {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .match-history-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .match-history-statistics-button {
        align-self: flex-start;
    }

    .player-statistics-header,
    .player-statistics-visual {
        grid-template-columns: 1fr;
    }

    .player-statistics-overall {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .player-statistics-modes {
        grid-template-columns: 1fr;
    }

    .player-statistics-overlay {
        padding: 8px;
    }

    .player-statistics-dialog {
        width: 100%;
        max-height: 96vh;
    }
}

/* Player statistics layout correction */

.player-statistics-visual {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 350px;
    margin-top: 16px;
    padding: 8px 20px;
    place-items: center;
}

.player-statistics-radar {
    width: min(390px, 100%);
    margin: 0 auto;
}

.player-statistics-modes {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    align-items: start;
}

.player-statistics-mode {
    min-height: 0;
}

.player-statistics-mode header {
    min-height: 32px;
}

.player-statistics-dialog-content
.player-statistics-visual {
    min-height: 310px;
}

.player-statistics-dialog-content
.player-statistics-radar {
    width: min(350px, 100%);
}

@media (max-width: 1050px) {
    .player-statistics-modes {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .player-statistics-visual {
        min-height: 280px;
        padding: 4px;
    }

    .player-statistics-radar {
        width: min(300px, 100%);
    }

    .player-statistics-modes {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MATCH HISTORY TOPBAR
   ========================================================= */

.match-history-topbar {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, 1fr);
    gap: 14px;
}

.match-history-topbar .match-history-header {
    grid-column: auto;
    min-height: 104px;
    margin: 0;
}

.match-history-championship-access {
    display: flex;
    min-width: 0;
    min-height: 104px;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(199, 164, 91, 0.24);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(199, 164, 91, 0.1),
            transparent 44%
        ),
        rgba(7, 12, 15, 0.92);
}

.match-history-championship-access > div {
    min-width: 0;
}

.match-history-championship-access p {
    margin: 0 0 4px;
    color: #caa653;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.match-history-championship-access h2 {
    margin: 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.match-history-championship-access span {
    display: block;
    max-width: 340px;
    margin-top: 5px;
    color: #8f8b83;
    font-family: Georgia, serif;
    font-size: 0.68rem;
    line-height: 1.4;
}

.match-history-championship-button {
    flex: 0 0 auto;
    padding: 0.65rem 0.8rem;
    border-color: rgba(199, 164, 91, 0.44);
    color: #dfc77d;
    font-size: 0.52rem;
    text-align: center;
}

.match-history-championship-button:hover {
    border-color: rgba(232, 207, 137, 0.76);
    background: rgba(199, 164, 91, 0.12);
    color: #f0d98d;
}

@media (max-width: 1050px) {
    .match-history-topbar {
        grid-template-columns: 1fr;
    }

    .match-history-championship-access {
        min-height: 88px;
    }
}

@media (max-width: 620px) {
    .match-history-championship-access {
        align-items: stretch;
        flex-direction: column;
    }

    .match-history-championship-button {
        align-self: flex-start;
    }
}

.daily-market-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 1rem 2rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.daily-market-heading h2 {
    margin: 0.2rem 0 0;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 500;
}

.daily-market-heading > p {
    margin: 0;
    color: rgba(232, 223, 200, 0.7);
    line-height: 1.5;
}

.daily-market-heading > small {
    grid-column: 1 / -1;
    color: #c9a553;
}

.daily-market-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.65rem;
}

.daily-market-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(199, 164, 91, 0.25);
    background: rgba(6, 11, 15, 0.94);
    transition:
        border-color 160ms ease,
        transform 160ms ease;
}

.daily-market-card:hover {
    border-color: rgba(199, 164, 91, 0.65);
    transform: translateY(-2px);
}

.daily-market-card-image {
    position: relative;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    background: #020507;
}

.daily-market-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.daily-market-card-thumbnail:focus {
    outline: 2px solid #d5b45f;
    outline-offset: -2px;
}

.daily-market-card-image span {
    position: absolute;
    right: 0.3rem;
    bottom: 0.3rem;
    padding: 0.18rem 0.3rem;
    border: 1px solid rgba(234, 217, 173, 0.35);
    background: rgba(3, 7, 10, 0.9);
    color: #ead9ad;
    font-size: 0.48rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}

.daily-market-card-content {
    display: grid;
    gap: 0.35rem;
    padding: 0.5rem;
}

.daily-market-card-content > small:first-child {
    overflow: hidden;
    color: #c9a553;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.daily-market-card-content h3 {
    overflow: hidden;
    min-height: 2.2em;
    margin: 0;
    color: #e8dfc8;
    font-family: Georgia, serif;
    font-size: 0.78rem;
    line-height: 1.1;
}

.daily-market-purchase-button {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(199, 164, 91, 0.65);
    background: rgba(156, 112, 28, 0.2);
    color: #efd786;
    cursor: pointer;
    font-family: inherit;
    transition:
        background 150ms ease,
        border-color 150ms ease;
}

.daily-market-purchase-button:hover:not(:disabled) {
    border-color: #e5c56e;
    background: rgba(179, 132, 38, 0.38);
}

.daily-market-purchase-button img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.daily-market-purchase-button strong {
    font-size: 0.78rem;
}

.daily-market-purchase-button:disabled {
    border-color: rgba(107, 151, 122, 0.4);
    background: rgba(39, 90, 58, 0.18);
    color: #83b696;
    cursor: default;
}

.daily-market-card-feedback {
    min-height: 0;
    color: #83bfd7;
    font-size: 0.58rem;
    line-height: 1.2;
}

.daily-market-card-feedback:empty {
    display: none;
}

.daily-market-card.is-purchased {
    opacity: 0.62;
}

.daily-market-card.is-purchased:hover {
    transform: none;
}

.daily-market-card.rarity-uncommon {
    border-color: rgba(82, 164, 105, 0.4);
}

.daily-market-card.rarity-rare {
    border-color: rgba(70, 139, 203, 0.5);
}

.daily-market-card.rarity-epic {
    border-color: rgba(143, 88, 190, 0.55);
}

.daily-market-card.rarity-legendary {
    border-color: rgba(218, 137, 55, 0.65);
}

.daily-market-card-preview {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.52);
    pointer-events: none;
}

.daily-market-card-preview[hidden] {
    display: none;
}

.daily-market-card-preview img {
    width: auto;
    max-width: min(390px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    border: 1px solid rgba(226, 193, 105, 0.75);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.9),
        0 0 28px rgba(202, 166, 83, 0.2);
}

@media (max-width: 1400px) {
    .daily-market-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .daily-market-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .daily-market-heading {
        grid-template-columns: 1fr;
    }

    .daily-market-heading > small {
        grid-column: auto;
    }

    .daily-market-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .daily-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.daily-market-card-image {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
}

.daily-market-card-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

body.deck-trio-conflict-is-open {
    overflow: hidden;
}

.deck-trio-conflict-overlay {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 180ms ease;
}

.deck-trio-conflict-overlay.is-open {
    opacity: 1;
}

.deck-trio-conflict-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    cursor: default;
}

.deck-trio-conflict-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(202, 166, 83, 0.48);
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 28, 0.99),
            rgba(5, 10, 14, 0.99)
        );
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.82),
        0 0 32px rgba(202, 166, 83, 0.08);
    transform: translateY(14px) scale(0.985);
    transition: transform 180ms ease;
}

.deck-trio-conflict-overlay.is-open
.deck-trio-conflict-dialog {
    transform: translateY(0) scale(1);
}

.deck-trio-conflict-dialog h2 {
    margin: 0.25rem 0 0.75rem;
    color: #ead9ad;
    font-family: Georgia, serif;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 500;
}

.deck-trio-conflict-introduction,
.deck-trio-conflict-help {
    margin: 0;
    color: rgba(232, 223, 200, 0.72);
    line-height: 1.55;
}

.deck-trio-conflict-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.deck-trio-conflict-list article {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(202, 166, 83, 0.25);
    background: rgba(2, 7, 10, 0.68);
}

.deck-trio-conflict-list h3 {
    margin: 0 0 0.6rem;
    color: #d8bd72;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
}

.deck-trio-conflict-list ul {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding-left: 1.15rem;
}

.deck-trio-conflict-list li {
    color: rgba(232, 223, 200, 0.82);
    font-size: 0.88rem;
    line-height: 1.45;
}

.deck-trio-conflict-help {
    margin-bottom: 1.25rem;
    color: #87bed2;
    font-size: 0.82rem;
}

.deck-trio-conflict-close {
    min-width: 150px;
}

@media (max-width: 600px) {
    .deck-trio-conflict-dialog {
        padding: 1.15rem;
    }

    .deck-trio-conflict-close {
        width: 100%;
    }
}

@media (min-width: 901px) {
    .deck-chapter-list {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px;
    }

    .deck-chapter {
        min-width: 0;
    }

    .deck-chapter-header {
        min-height: 48px;
        gap: 9px;
        padding: 8px 10px;
    }

    .deck-chapter-number {
        font-size: 1.35rem;
    }

    .deck-chapter-header span {
        font-size: 0.45rem;
    }

    .deck-chapter-header h2 {
        font-size: 0.82rem;
    }

    .deck-chapter-count {
        font-size: 0.58rem;
    }

    .deck-chapter-slots {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }

    .deck-chapter-slot {
        min-width: 0;
        aspect-ratio: 2 / 3;
    }

    .deck-placed-card-information {
        right: 3px;
        bottom: 4px;
        left: 3px;
    }

    .deck-placed-card-information > strong {
        margin-bottom: 3px;
        font-size: clamp(
            0.48rem,
            0.58vw,
            0.68rem
        );
    }

    .deck-card-wyrd-controls {
        width: 100%;
        grid-template-columns:
            20px minmax(18px, 1fr) 20px;
    }

    .deck-card-wyrd-controls button {
        height: 21px;
        font-size: 0.68rem;
    }

    .deck-card-wyrd-controls span {
        font-size: 0.58rem;
    }

    .deck-remove-card-button {
        top: 3px;
        right: 3px;
        width: 20px;
        height: 20px;
        font-size: 0.78rem;
    }
}

@media (min-width: 901px) and (max-width: 1450px) {
    .deck-placed-card-information > strong {
        display: none;
    }

    .deck-card-wyrd-controls {
        grid-template-columns:
            18px minmax(16px, 1fr) 18px;
    }
}

/* ========================================================= */
/* RUNES OF WYRD CUSTOM CURSORS                              */
/* ========================================================= */

html,
body,
body * {
    cursor:
        url("../img/cursors/wyrd-default.svg") 2 2,
        default;
}

a[href],
button:not(:disabled),
select,
summary,
label[for],
input[type="button"],
input[type="checkbox"],
input[type="radio"],
input[type="reset"],
input[type="submit"],
input[type="range"],
[role="button"] {
    cursor:
        url("../img/cursors/wyrd-pointer.svg") 8 1,
        pointer !important;
}

.deck-library-card[draggable="true"],
.deck-library-card[draggable="true"] *,
.deck-placed-card[draggable="true"],
.deck-placed-card[draggable="true"] * {
    cursor:
        url("../img/cursors/wyrd-grab.svg") 11 10,
        grab !important;
}

.deck-library-card[draggable="true"]:active,
.deck-library-card[draggable="true"]:active *,
.deck-library-card[draggable="true"][aria-grabbed="true"],
.deck-library-card[draggable="true"][aria-grabbed="true"] *,
.deck-placed-card[draggable="true"]:active,
.deck-placed-card[draggable="true"]:active * {
    cursor:
        url("../img/cursors/wyrd-grabbing.svg") 11 10,
        grabbing !important;
}

.deck-library-card[draggable="true"] button:not(:disabled),
.deck-placed-card[draggable="true"] button:not(:disabled) {
    cursor:
        url("../img/cursors/wyrd-pointer.svg") 9 1,
        pointer !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
[contenteditable="true"] {
    cursor:
        url("../img/cursors/wyrd-text.svg") 11 11,
        text !important;
}

button:disabled,
[aria-disabled="true"] {
    cursor: not-allowed !important;
}

/* ========================================================= */
/* DISCORD                                                   */
/* ========================================================= */

.site-navigation .navigation-discord {
    display: flex;

    width: 38px;
    min-width: 38px;
    min-height: 38px;

    padding: 0;

    align-items: center;
    justify-content: center;

    color: var(--site-text-muted);
}

.site-navigation .navigation-discord svg {
    display: block;

    width: 21px;
    height: 21px;

    fill: currentColor;
}

.site-navigation .navigation-discord:hover {
    color: #5865f2;

    filter:
        drop-shadow(
            0 0 8px
            rgba(88, 101, 242, 0.55)
        );
}

.site-navigation .navigation-discord,
.site-navigation .navigation-discord *,
.site-navigation .navigation-login-discord,
.site-navigation .navigation-login-discord * {
    cursor:
        url("../img/cursors/wyrd-pointer.svg") 8 1,
        pointer !important;
}

/* ========================================================= */
/* CHAMPIONSHIP POINTER                                      */
/* ========================================================= */

#championship-mode-link,
#championship-mode-link * {
    cursor:
        url("../img/cursors/wyrd-pointer.svg") 8 1,
        pointer !important;
}
.story-book-is-open {
    overflow: hidden;
}

.story-book-dialog {
    width: min(1380px, calc(100vw - 48px));
    max-width: none;
    height: min(850px, calc(100vh - 48px));
    max-height: none;
    padding: 0;
    border: 0;
    overflow: visible;

    background: transparent;
    color: #251b12;
}

.story-book-dialog::backdrop {
    background: rgba(2, 4, 7, 0.9);
    backdrop-filter: blur(9px);
}

.story-book-shell,
.story-book {
    width: 100%;
    height: 100%;
}

.story-book-shell {
    position: relative;

    filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.72));
}

.story-book {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border: 10px solid #2b190d;
    border-radius: 16px 22px 22px 16px;
    overflow: hidden;

    background: #c9b283;
    box-shadow:
        inset 0 0 0 2px rgba(207, 169, 91, 0.5),
        inset 0 0 45px rgba(38, 19, 7, 0.55);
}

.story-book::after {
    content: "";
    position: absolute;
    z-index: 4;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 34px;
    transform: translateX(-50%);

    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(30, 15, 7, 0),
        rgba(30, 15, 7, 0.48),
        rgba(255, 237, 193, 0.15),
        rgba(30, 15, 7, 0)
    );
}

.story-book-close {
    position: absolute;
    z-index: 8;
    top: -18px;
    right: -18px;

    width: 46px;
    height: 46px;
    border: 1px solid #b48b42;
    border-radius: 50%;

    cursor: pointer;
    background: #17100b;
    color: #dfc480;

    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.story-book-illustration {
    position: relative;
    min-width: 0;
    overflow: hidden;

    background: #100c09;
}

.story-book-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-book-image-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top, rgba(6, 3, 2, 0.9), transparent 55%),
        radial-gradient(circle at center, transparent 45%, rgba(5, 2, 1, 0.58));
}

.story-book-heading {
    position: absolute;
    z-index: 2;
    right: 52px;
    bottom: 48px;
    left: 52px;

    color: #ead6a4;
    text-align: center;
    text-shadow: 0 3px 12px #000;
}

.story-book-heading span {
    color: #c8a65c;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.story-book-heading h2 {
    margin: 12px 0 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.8rem);
    font-weight: 500;
}

.story-book-page {
    position: relative;
    min-width: 0;
    overflow: hidden;

    background:
        linear-gradient(90deg, rgba(74, 42, 16, 0.16), transparent 10%),
        repeating-linear-gradient(
            0deg,
            rgba(94, 59, 23, 0.025) 0,
            rgba(94, 59, 23, 0.025) 1px,
            transparent 1px,
            transparent 4px
        ),
        #d8c59a;
    transform-origin: left center;
}

.story-book-page-inner {
    height: calc(100% - 70px);
    padding: clamp(32px, 4vh, 54px) clamp(34px, 4vw, 62px) 18px;
    overflow: hidden;
    scrollbar-color: rgba(92, 57, 23, 0.45) transparent;
}

.story-book-rune {
    margin-bottom: 12px;

    color: #7a4a21;
    font-size: 24px;
    text-align: center;
}

.story-book-copy {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.9rem, 0.96vw, 1.02rem);
    line-height: 1.58;
}

.story-book-copy p {
    margin: 0 0 0.78em;
}

.story-book-copy p:first-child::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;

    color: #713f1c;
    font-size: 3.5em;
    line-height: 0.78;
}

.story-book-loading {
    color: rgba(46, 29, 15, 0.65);
    text-align: center;
}

.story-book-page.is-locked-page .story-book-rune {
    visibility: hidden;
}

.story-book-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 470px;
    padding: 20px;

    text-align: center;
}

.story-book-locked-symbol {
    display: grid;
    place-items: center;

    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    border: 1px solid rgba(103, 61, 24, 0.42);
    border-radius: 50%;

    color: #70401c;
    font-size: 2rem;

    box-shadow:
        inset 0 0 18px rgba(73, 41, 17, 0.16),
        0 0 0 8px rgba(102, 62, 25, 0.06);
}

.story-book-locked-eyebrow {
    margin: 0 0 10px;

    color: #795027;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.story-book-locked h3 {
    margin: 0 0 20px;

    color: #4e2d16;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 2.5vw, 2.5rem);
    font-weight: 500;
}

.story-book-locked > p:not(.story-book-locked-eyebrow) {
    max-width: 440px;
    margin: 0 0 12px;
}

.story-book-locked-help {
    color: rgba(65, 39, 19, 0.68);
    font-style: italic;
}

.story-book-copy .story-book-locked p:first-child::first-letter {
    float: none;
    margin: 0;

    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.story-book-controls {
    position: absolute;
    right: 38px;
    bottom: 0;
    left: 38px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;

    height: 70px;
    border-top: 1px solid rgba(83, 48, 18, 0.22);
}

.story-book-controls button {
    border: 0;

    cursor: pointer;
    background: transparent;
    color: #553418;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-book-controls button:first-child {
    text-align: left;
}

.story-book-controls button:last-child {
    text-align: right;
}

.story-book-controls button:disabled {
    cursor: default;
    opacity: 0.25;
}

.story-book-controls > span {
    color: rgba(67, 41, 20, 0.62);
    font-family: Georgia, serif;
    font-size: 0.82rem;
}

.story-book-page.is-turning-next {
    animation: story-book-turn-next 420ms ease-out;
}

.story-book-page.is-turning-previous {
    animation: story-book-turn-previous 420ms ease-out;
}

@keyframes story-book-turn-next {
    0% {
        opacity: 0.45;
        transform: perspective(1400px) rotateY(-7deg);
    }

    100% {
        opacity: 1;
        transform: perspective(1400px) rotateY(0);
    }
}

@keyframes story-book-turn-previous {
    0% {
        opacity: 0.45;
        transform: perspective(1400px) rotateY(7deg);
    }

    100% {
        opacity: 1;
        transform: perspective(1400px) rotateY(0);
    }
}

@media (max-width: 800px) {
    .story-book-dialog {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
    }

    .story-book {
        display: block;
        overflow-y: auto;
        border-width: 6px;
    }

    .story-book::after {
        display: none;
    }

    .story-book-illustration {
        height: 34%;
        min-height: 220px;
    }

    .story-book-heading {
        right: 24px;
        bottom: 22px;
        left: 24px;
    }

    .story-book-heading h2 {
        font-size: 2rem;
    }

    .story-book-page {
        min-height: 66%;
        overflow: visible;
    }

    .story-book-page-inner {
        height: auto;
        min-height: calc(100% - 62px);
        padding: 28px 22px 82px;
        overflow: visible;
    }

    .story-book-controls {
        position: absolute;
        right: 20px;
        left: 20px;
        height: 62px;
    }

    .story-book-close {
        top: 8px;
        right: 8px;
    }
}

@media (min-width: 801px) and (max-height: 680px) {
    .story-book-page-inner {
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-book-page.is-turning-next,
    .story-book-page.is-turning-previous {
        animation: none;
    }
}
