/* MU Mythology site — dark fantasy theme, no external assets or fonts. */

:root {
    --bg: #0a090b;
    --bg-2: #131010;
    --line: rgba(216, 180, 100, 0.22);
    --line-soft: rgba(255, 255, 255, 0.07);
    --gold: #d8b464;
    --gold-bright: #f4dda4;
    --gold-deep: #8d6a24;
    --crimson: #9c2b26;
    --text: #ece5d8;
    --muted: #a49a89;
    --radius: 14px;
    --wrap: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* very light film grain over everything: keeps the flat dark areas from looking empty */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--gold-bright);
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 40px, var(--wrap));
    margin: 0 auto;
}

.kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.muted {
    color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(10, 9, 11, 0.92), rgba(10, 9, 11, 0.62));
    border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    flex: 0 0 auto;
}

.logo__mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: #1a1206;
    background: radial-gradient(circle at 30% 25%, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
    box-shadow: 0 0 0 1px rgba(244, 221, 164, 0.45), 0 6px 18px rgba(216, 180, 100, 0.25);
}

.logo__text {
    font-family: Georgia, serif;
    font-size: 19px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.logo__text span {
    display: block;
    font-family: "Segoe UI", sans-serif;
    font-size: 10px;
    letter-spacing: 0.34em;
    color: var(--muted);
    margin-top: 2px;
}

.site-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav a {
    color: var(--text);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

.header-cta {
    margin-left: 8px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    padding: 8px 12px;
    cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--gold {
    color: #1b1305;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #b8933f);
    box-shadow: 0 12px 30px rgba(216, 180, 100, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--gold:hover {
    color: #1b1305;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(216, 180, 100, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn--ghost {
    color: var(--gold-bright);
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--line);
}

.btn--ghost:hover {
    color: var(--gold-bright);
    background: rgba(216, 180, 100, 0.1);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 12px;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: progress;
    transform: none;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 84px;
    text-align: center;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: -20% -10% auto;
    height: 150%;
    z-index: -1;
    background:
        radial-gradient(760px 420px at 50% 8%, rgba(216, 180, 100, 0.20), transparent 65%),
        radial-gradient(700px 480px at 12% 78%, rgba(156, 43, 38, 0.24), transparent 68%),
        radial-gradient(760px 420px at 88% 72%, rgba(52, 70, 108, 0.22), transparent 70%),
        linear-gradient(180deg, #0a090b 0%, #151110 55%, #0a090b 100%);
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 45%, transparent 40%, rgba(6, 5, 6, 0.85) 100%);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(216, 180, 100, 0.06);
}

.hero__badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fcf6f;
    box-shadow: 0 0 10px #6fcf6f;
}

.hero h1 {
    margin: 26px 0 14px;
    font-size: clamp(40px, 7.4vw, 86px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff6df 10%, var(--gold) 55%, #9c7a2f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 660px;
    margin: 0 auto 34px;
    font-size: 18px;
    color: #cfc6b6;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__meta {
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__meta b {
    display: block;
    font-family: Georgia, serif;
    font-size: 28px;
    letter-spacing: 0;
    color: var(--gold-bright);
    margin-bottom: 4px;
}

/* ---------- sections ---------- */

.section {
    padding: 78px 0;
    position: relative;
}

.section--tight {
    padding: 54px 0;
}

.section--panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section__head {
    max-width: 720px;
    margin-bottom: 40px;
}

.section__head--center {
    margin: 0 auto 44px;
    text-align: center;
}

.section h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    letter-spacing: 0.04em;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin: 0 auto 26px;
    color: var(--gold);
    opacity: 0.75;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    width: 90px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after {
    background: linear-gradient(270deg, transparent, var(--gold));
}

.grid {
    display: grid;
    gap: 22px;
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 180, 100, 0.42);
    background: rgba(216, 180, 100, 0.05);
}

.card h3 {
    font-size: 19px;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card--stat {
    text-align: center;
}

.card--stat b {
    display: block;
    font-family: Georgia, serif;
    font-size: 40px;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 8px;
}

.card--stat span {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.list-check {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--gold);
    box-shadow: 0 0 10px rgba(216, 180, 100, 0.6);
}

/* ---------- news ---------- */

.news {
    display: grid;
    gap: 18px;
}

.news-item {
    padding: 24px 26px;
    border: 1px solid var(--line-soft);
    border-left: 3px solid rgba(216, 180, 100, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.news-item:hover {
    border-left-color: var(--gold);
    background: rgba(216, 180, 100, 0.04);
}

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.news-item__tag {
    padding: 2px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    font-size: 11px;
}

.news-item h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.news-item p:last-child {
    margin-bottom: 0;
}

.news-empty {
    color: var(--muted);
    font-style: italic;
}

/* ---------- download ---------- */

.download-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(520px 260px at 12% 0%, rgba(216, 180, 100, 0.14), transparent 70%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.download-panel h2 {
    margin-bottom: 12px;
}

.download-file {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 18px 0 24px;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.download-file b {
    color: var(--gold-bright);
    font-weight: 600;
}

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 46px;
    margin-bottom: 18px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--gold-bright);
    border: 1px solid var(--line);
    background: rgba(216, 180, 100, 0.08);
}

.steps b {
    display: block;
    color: var(--text);
}

.spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.spec th,
.spec td {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}

.spec th {
    width: 190px;
    color: var(--muted);
    font-weight: 400;
}

/* ---------- forms ---------- */

.form-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(216, 180, 100, 0.14);
}

.field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.field--check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
}

.field--check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.form-actions {
    margin-top: 24px;
}

.form-actions .btn {
    width: 100%;
}

.form-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.form-message.is-visible {
    display: block;
}

.form-message--error {
    border: 1px solid rgba(199, 78, 68, 0.55);
    background: rgba(156, 43, 38, 0.16);
    color: #f3c9c5;
}

.form-message--ok {
    border: 1px solid rgba(110, 190, 120, 0.5);
    background: rgba(60, 140, 80, 0.16);
    color: #cdeccd;
}

.note {
    max-width: 560px;
    margin: 22px auto 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* ---------- rating (rating.html) ---------- */

.rating-totals {
    margin-bottom: 26px;
}

.rating-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.rating-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.22);
}

.rating-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-tab {
    padding: 9px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.rating-tab:hover {
    color: var(--gold-bright);
    border-color: var(--line);
}

.rating-tab[aria-selected="true"] {
    color: #1b1305;
    border-color: transparent;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #b8933f);
}

.rating-search {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.rating-search input {
    width: 200px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: 14px/1.4 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.rating-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(216, 180, 100, 0.14);
}

.rating-table-wrap {
    overflow-x: auto;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.rating-table th {
    padding: 12px 16px;
    text-align: left;
    font: 600 11px/1.4 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

.rating-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.rating-table tbody tr:last-child td {
    border-bottom: 0;
}

.rating-table tbody tr:hover {
    background: rgba(216, 180, 100, 0.05);
}

.rating-table .is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rating-rank {
    width: 58px;
    font-family: Georgia, serif;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.rating-table tr.is-podium .rating-rank {
    color: var(--gold-bright);
}

.rating-name {
    font-family: Georgia, serif;
    font-size: 17px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.rating-class {
    color: var(--muted);
    font-size: 14px;
}

.rating-level {
    color: var(--gold-bright);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rating-master {
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.rating-empty,
.rating-error {
    margin: 0;
    padding: 26px 20px;
    color: var(--muted);
    font-style: italic;
}

.rating-error {
    color: #f3c9c5;
    font-style: normal;
}

.rating-foot {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.rating-foot__hint {
    opacity: 0.8;
}

/* ---------- footer ---------- */

.site-footer {
    padding: 40px 0 46px;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
    font-size: 14px;
    color: var(--muted);
}

.site-footer__inner {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--gold);
}

.site-footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
    .grid--4,
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-panel {
        grid-template-columns: 1fr;
        padding: 28px;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px;
        background: rgba(10, 9, 11, 0.97);
        border-bottom: 1px solid var(--line-soft);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding: 72px 0 60px;
    }

    .hero__meta {
        gap: 26px;
    }

    .section {
        padding: 56px 0;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .form-card,
    .news-item {
        padding: 22px 18px;
    }
}

@media (max-width: 760px) {
    .rating-hide-sm {
        display: none;
    }

    .rating-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .rating-totals .card {
        padding: 18px 12px;
    }

    .rating-totals .card--stat b {
        font-size: 30px;
    }

    .rating-toolbar {
        padding: 14px 16px;
    }

    .rating-search {
        width: 100%;
    }

    .rating-search input {
        width: 100%;
    }

    .rating-table th,
    .rating-table td {
        padding: 10px 12px;
    }

    .rating-name {
        font-size: 16px;
    }
}
