/* MOJAN WAR site: dark stone and gold */
:root {
    --bg: #17181b;
    --bg-2: #202226;
    --panel: rgba(24, 25, 29, .88);
    --line: rgba(214, 177, 104, .38);
    --line-soft: rgba(239, 230, 210, .14);
    --gold: #d6b168;
    --gold-hi: #f0d491;
    --ink: #efe7d6;
    --muted: #b4aa96;
    --green: #3b8f37;
    --green-hi: #4fae49;
    --red: #e0735a;
    --display: 'Cinzel', 'Cairo', serif;
    --body: 'Cairo', Tahoma, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; }
a { color: var(--gold); }
button { font: inherit; }
[hidden] { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
    padding: 10px 22px; background: linear-gradient(180deg, #2b2c30, #1d1e22); border-bottom: 1px solid rgba(0, 0, 0, .6); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 8px; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); }
.icon-btn svg, .hero-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(0, 0, 0, .25); color: var(--ink); cursor: pointer; font-weight: 600; }
.lang-btn .globe { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.brand { justify-self: center; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .04em;
    background: linear-gradient(180deg, var(--gold-hi), #b8893c); -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.top-actions { display: flex; gap: 10px; }
.outline-btn { min-height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; }
.outline-btn:hover { border-color: var(--gold); background: rgba(214, 177, 104, .08); }
.outline-btn.gold { border-color: var(--gold); color: var(--gold-hi); }

.side-menu { position: fixed; top: 64px; inset-inline-start: 12px; z-index: 40; display: flex; flex-direction: column; min-width: 220px; padding: 8px;
    background: #222327; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.side-menu a { padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.side-menu a:hover { background: rgba(214, 177, 104, .1); color: var(--gold-hi); }

/* hero slider */
.hero { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; background: #0e0f12; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: 62% center; opacity: 0; transition: opacity .9s ease; }
.hero-slide.on { opacity: 1; }
/* shade under the title (the side the text sits on) and fade into the page */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 11, 14, .82) 0%, rgba(10, 11, 14, .45) 34%, rgba(10, 11, 14, 0) 58%),
                linear-gradient(0deg, var(--bg) 0%, rgba(23, 24, 27, 0) 26%); }
/* the warrior stands right of centre in every picture: the title stays in the open space on the left in both languages */
.hero-text { position: absolute; z-index: 2; top: 15%; left: 7%; max-width: 520px; }
.hero-text h1 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7.5vw, 104px); line-height: 1; letter-spacing: .02em;
    color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
[dir=rtl] .hero-text h1 { font-family: 'Cairo', sans-serif; font-weight: 700; letter-spacing: 0; }
.hero-text p { margin: 0; font-size: 17px; color: #e9e2d2; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.hero-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 11, 14, .45); color: var(--gold-hi); cursor: pointer; }
.hero-arrow:hover { background: rgba(10, 11, 14, .7); border-color: var(--gold); }
.hero-arrow.prev { inset-inline-start: 22px; }
.hero-arrow.next { inset-inline-end: 22px; }
[dir=rtl] .hero-arrow svg { transform: scaleX(-1); }
.hero-dots { position: absolute; z-index: 3; bottom: 112px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .3); cursor: pointer; }
.hero-dots button[aria-selected=true] { background: var(--gold); }
.play-btn { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); min-width: 300px; min-height: 66px; padding: 0 40px;
    font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: .04em; color: #fff; cursor: pointer;
    border: 3px solid #b9893a; border-radius: 6px; background: linear-gradient(180deg, #5fbf52, #2f7f2a 60%, #24661f);
    box-shadow: 0 0 0 2px #3a2a10, 0 8px 22px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 2px 2px rgba(0, 0, 0, .45); }
[dir=rtl] .play-btn { font-family: 'Cairo', sans-serif; }
.play-btn:hover { filter: brightness(1.08); }

/* blocks */
.block { max-width: 1200px; margin: 0 auto; padding: 46px 20px; }
.block + .block { border-top: 1px solid var(--line-soft); }
.block-title { margin: 0 0 26px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
[dir=rtl] .block-title { font-family: 'Cairo', sans-serif; font-weight: 700; letter-spacing: 0; }
.muted { color: var(--muted); text-align: center; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 440px)); justify-content: center; gap: 18px; }
.server { position: relative; overflow: hidden; padding: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #24262b, #1b1c20); }
.server > :not(.server-art) { margin-inline: 22px; }
.server-art { height: 150px; margin: 0 0 16px; background: center 30% / cover no-repeat; border-bottom: 1px solid var(--line); position: relative; }
.server-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #1f2125 0%, rgba(31, 33, 37, 0) 60%); }
.server-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.server-head h3 { margin: 0; font-size: 20px; letter-spacing: .02em; }
.server .sub { color: var(--muted); margin: 0 22px 14px; }
.badge { display: inline-block; padding: 1px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--green); }
.badge.closed { background: #6a5d4a; }
.server dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 22px 16px; }
.server dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.server dd { margin: 0; font-weight: 700; font-size: 17px; }
.server .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tribe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tribe-card { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 3 / 4; padding: 0; cursor: pointer;
    background: #111 center / cover no-repeat; color: #fff; text-align: start; }
.tribe-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 14, .92) 0%, rgba(10, 11, 14, 0) 55%); }
.tribe-card span { position: absolute; z-index: 1; bottom: 14px; inset-inline-start: 16px; font-family: var(--display); font-size: 22px; font-weight: 800; }
[dir=rtl] .tribe-card span { font-family: 'Cairo', sans-serif; }
.tribe-card:hover { border-color: var(--gold); }

/* inner pages */
.page-hero { padding: 54px 20px 26px; text-align: center; background: radial-gradient(900px 300px at 50% 0%, #34404f 0%, rgba(23, 24, 27, 0) 70%); }
.page-hero h1 { margin: 0; font-family: var(--display); font-size: 40px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
[dir=rtl] .page-hero h1 { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
.panel { max-width: 1060px; margin: 0 auto 50px; padding: 28px; border: 1px solid var(--line); outline: 1px solid rgba(214, 177, 104, .14); outline-offset: 5px; background: var(--panel); }
.panel-title { margin: 30px 0 16px; font-size: 18px; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.topic { display: flex; flex-direction: column; gap: 4px; padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, .2); color: var(--ink); cursor: pointer; }
.topic b { color: var(--gold-hi); font-size: 18px; }
.topic span { color: var(--muted); font-size: 13px; }
.topic:hover, .topic[aria-checked=true] { border-color: var(--gold); background: rgba(214, 177, 104, .08); }

/* forms and dialogs */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.narrow { max-width: 640px; margin: 0 auto; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 8px 14px; border-radius: 6px; border: 1px solid #4a4436; background: #121316; color: var(--ink); font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 177, 104, .2); }
.form input[aria-invalid=true], .form select[aria-invalid=true], .form textarea[aria-invalid=true] { border-color: var(--red); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.form-msg { margin: 0; min-height: 1.4em; color: var(--red); font-weight: 600; }
.form-msg.ok { color: #7fd17a; }
.solid-btn { min-height: 48px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 6px; background: linear-gradient(180deg, #e2c27f, #b88d42); color: #1a1408; font-weight: 700; font-size: 16px; cursor: pointer; }
.solid-btn.green { border: 2px solid #b9893a; background: linear-gradient(180deg, #5fbf52, #2f7f2a); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.solid-btn:disabled { opacity: .6; cursor: wait; }
.link-btn { padding: 0; border: 0; background: none; color: var(--gold-hi); font-weight: 700; cursor: pointer; text-decoration: underline; }
.switch { margin: 0; text-align: center; color: var(--muted); }
.modal { width: min(500px, calc(100vw - 32px)); padding: 26px; border: 2px solid #9c7a3c; border-radius: 6px; color: var(--ink);
    background: linear-gradient(180deg, #2a2b30, #1c1d21); box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 20px 60px rgba(0, 0, 0, .7); }
.modal::backdrop { background: rgba(5, 6, 8, .72); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
[dir=rtl] .modal-head h2 { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
.close-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, .3); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

.footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 26px 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
    .topbar { grid-template-columns: auto 1fr auto; padding: 8px 12px; }
    .lang-btn { display: none; }
    .brand span { font-size: 22px; }
    .top-actions .outline-btn:not(.gold) { display: none; }
    .hero-text { top: 9%; left: 6%; right: 6%; }
    .hero-arrow { width: 44px; height: 44px; }
    .play-btn { min-width: 220px; font-size: 22px; min-height: 56px; }
    .hero-slide { background-position: 70% center; }
}
