:root {
    --ink: #090806;
    --ink-soft: #100e0b;
    --panel: rgba(17, 14, 11, .96);
    --panel-raised: rgba(24, 19, 14, .96);
    --cream: #eee5d7;
    --muted: #9d9285;
    --gold: #d7a750;
    --gold-light: #f0cf8a;
    --gold-deep: #8b5720;
    --rust: #9f321e;
    --rust-light: #cf5635;
    --line: rgba(215, 167, 80, .22);
    --line-strong: rgba(215, 167, 80, .46);
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
    --display: "Cinzel", Georgia, serif;
    --body: "Manrope", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 0 !important;
    margin: 0 !important;
    color: var(--cream);
    background:
        radial-gradient(circle at 50% 0, rgba(137, 69, 26, .1), transparent 34rem),
        #080705 !important;
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .32;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000);
}

a { color: inherit; text-decoration: none; transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell { min-height: 100vh; overflow: hidden; }
.site-header { position: relative; }

.site-nav-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 20;
    display: grid;
    width: min(1320px, calc(100% - 48px));
    min-height: 84px;
    padding: 0 4px;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid rgba(224, 186, 112, .18);
    transform: translateX(-50%);
}

.site-nav-wrap::before {
    content: "";
    position: absolute;
    inset: 0 -100vw;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 5, 4, .92), rgba(7, 6, 5, .64) 72%, transparent);
    backdrop-filter: blur(5px);
}

.site-brand { display: flex; width: 174px; align-items: center; }
.site-brand img { display: block; width: 100%; height: 58px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.7)); }

.site-navigation { display: flex; min-width: 0; align-items: stretch; justify-content: center; gap: 2px; }
.site-navigation a {
    position: relative;
    display: flex;
    height: 84px;
    padding: 0 16px;
    align-items: center;
    color: #b9ad9e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.site-navigation a::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform .2s ease;
}
.site-navigation a:hover,
.site-navigation a.active { color: var(--gold-light); }
.site-navigation a:hover::after,
.site-navigation a.active::after { transform: scaleX(1); }

.site-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; margin-right: 2px; align-items: center; gap: 4px; color: #5f574e; font-size: 9px; font-weight: 800; }
.language-switch button { padding: 4px 2px; color: #7f7569; border: 0; background: none; cursor: pointer; }
.language-switch button.active,
.language-switch button:hover { color: var(--gold-light); }

.nav-login,
.nav-register {
    display: inline-flex;
    min-width: 94px;
    height: 38px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.nav-login { color: #d8c9b5; background: rgba(0,0,0,.28); }
.nav-login:hover { color: var(--gold-light); border-color: var(--line-strong); }
.nav-register { color: #fff0df; border-color: #a5442b; background: linear-gradient(135deg, #9d321f, #651b13); box-shadow: 0 8px 25px rgba(126, 31, 19, .24); }
.nav-register:hover { color: #fff; border-color: var(--rust-light); background: linear-gradient(135deg, #b94329, #7b2519); }

.mobile-menu-button { display: none; border: 0; background: transparent; cursor: pointer; }
.mobile-menu-button > span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px 0; background: var(--gold-light); }

.hero {
    position: relative;
    display: flex;
    min-height: 680px;
    padding: 122px max(32px, calc((100% - 1320px) / 2)) 130px;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5,4,3,.94) 0%, rgba(6,5,4,.76) 31%, rgba(6,5,4,.18) 67%, rgba(5,4,3,.35) 100%),
        linear-gradient(180deg, rgba(0,0,0,.22), transparent 58%, #080705 100%),
        url("../img/grymuar2026/hero-grymuar-2026.png") center center / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    background: radial-gradient(circle at 77% 57%, rgba(213, 120, 37, .45), transparent 24rem);
    mix-blend-mode: screen;
}
.hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -90px 100px #080705, inset 0 0 120px rgba(0,0,0,.46);
}

.hero-inner { position: relative; z-index: 2; width: min(650px, 54vw); padding-top: 18px; }
.hero-kicker {
    margin: 0 0 10px;
    color: #c39248;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .21em;
    text-transform: uppercase;
}
.hero-logo {
    display: block;
    width: min(520px, 88%);
    height: 168px;
    margin: -18px 0 -6px -8px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 16px 28px rgba(0,0,0,.75));
}
.hero h1 {
    max-width: 640px;
    margin: 0 0 13px;
    color: #f3eadc;
    font: 700 clamp(28px, 3vw, 46px)/1.14 var(--display);
    letter-spacing: -.025em;
    text-shadow: 0 7px 28px rgba(0,0,0,.8);
}
.hero-copy { max-width: 570px; margin: 0; color: #b9aea0; font-size: 14px; line-height: 1.75; }
.hero-buttons { display: flex; margin-top: 30px; align-items: center; gap: 12px; }

.button,
.btn,
.btn-login,
input[type="submit"].btn {
    display: inline-flex !important;
    min-width: 150px !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    border-radius: 0 !important;
    font: 900 10px/1 var(--body) !important;
    letter-spacing: .075em;
    text-transform: uppercase;
    cursor: pointer;
}
.button-gold,
.btn,
.btn-login,
input[type="submit"].btn {
    color: #1b1107 !important;
    border: 1px solid #e0b560 !important;
    background: linear-gradient(135deg, #edcd87, #b77b2c) !important;
    box-shadow: 0 10px 30px rgba(183, 115, 35, .21);
}
.button-gold:hover,
.btn:hover,
.btn-login:hover { color: #100904 !important; filter: brightness(1.08); transform: translateY(-1px); }
.button-ghost { color: #eadfcf !important; border: 1px solid rgba(230, 197, 135, .34) !important; background: rgba(10,8,6,.55) !important; backdrop-filter: blur(8px); }
.button-ghost:hover { color: var(--gold-light) !important; border-color: rgba(230, 197, 135, .66) !important; background: rgba(23,17,12,.75) !important; }
.button-block { width: 100% !important; }

.server-status {
    position: absolute;
    right: max(32px, calc((100% - 1320px) / 2));
    bottom: 58px;
    z-index: 3;
    display: grid;
    min-width: 455px;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    background: rgba(8,7,5,.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.server-status > div {
    display: grid;
    min-height: 84px;
    padding: 15px 18px;
    grid-template-columns: 18px 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    column-gap: 8px;
    border-right: 1px solid var(--line);
}
.server-status > div:last-child { border-right: 0; }
.server-status i,
.server-status .status-dot { grid-row: 1 / 3; color: #aa7132; text-align: center; }
.server-status .status-dot { width: 7px; height: 7px; margin: auto; border-radius: 50%; background: #6fc35f; box-shadow: 0 0 12px #4fa947; }
.server-status strong { color: var(--gold-light); font: 700 20px/1 var(--display); }
.server-status small { color: #7f756a; font-size: 8px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }

.hero-compact { min-height: 390px; padding-bottom: 72px; background-position: center 45%; }
.hero-compact .hero-inner { padding-top: 70px; }
.hero-compact .hero-logo { width: 330px; height: 105px; margin-bottom: -10px; }
.hero-compact .hero-kicker { margin-bottom: 0; }
.hero-compact .server-status { bottom: 34px; }

.ornament-line {
    position: relative;
    z-index: 5;
    height: 5px;
    margin-top: -3px;
    background: linear-gradient(90deg, transparent, #67321d 22%, #b7742f 50%, #67321d 78%, transparent);
    box-shadow: 0 0 24px rgba(194, 109, 39, .2);
}
.ornament-line span { position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border: 1px solid #c18b43; background: #140d08; transform: translate(-50%,-50%) rotate(45deg); }

.site-main {
    display: grid;
    width: min(1240px, calc(100% - 48px));
    margin: 58px auto 86px;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}
.site-content { min-width: 0; }
.site-sidebar { display: grid; gap: 18px; }

.feature-intro { display: grid; margin-bottom: 28px; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(13,11,9,.86); box-shadow: var(--shadow); }
.feature-intro article { position: relative; display: grid; min-height: 132px; padding: 26px 23px; grid-template-columns: 42px 1fr; align-items: start; gap: 14px; overflow: hidden; border-right: 1px solid var(--line); }
.feature-intro article:last-child { border-right: 0; }
.feature-intro article::after { content: ""; position: absolute; right: -35px; bottom: -54px; width: 120px; height: 120px; border: 1px solid rgba(215,167,80,.08); transform: rotate(45deg); }
.feature-intro i { padding-top: 4px; color: #b17a38; font-size: 24px; text-align: center; }
.feature-intro strong { display: block; margin-bottom: 6px; color: #e9ddca; font: 700 13px/1.35 var(--display); }
.feature-intro p { margin: 0; color: #867c71; font-size: 10px; line-height: 1.6; }
.feature-number { position: absolute; top: 8px; right: 12px; color: rgba(220,179,104,.1); font: 700 34px/1 var(--display); }

.home-section,
.content {
    position: relative;
    width: 100% !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    background: rgba(13,11,9,.94) !important;
    box-shadow: var(--shadow);
}
.content-bg,
.content-bg-bottom { width: 100% !important; min-height: 0 !important; padding: 0 !important; background: none !important; }
.shadow { display: none !important; }

.section-heading,
.content h2,
.inner-content h3 {
    display: flex;
    min-height: 84px;
    margin: 0 !important;
    padding: 18px 22px !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #eadfce !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    background:
        radial-gradient(circle at 85% 0, rgba(172,91,28,.15), transparent 42%),
        linear-gradient(90deg, rgba(192,131,48,.1), transparent) !important;
    font: 700 20px/1.25 var(--display) !important;
}
.section-heading small { display: block; margin-bottom: 4px; color: #9e7138; font-size: 8px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2 { min-height: 0; padding: 0 !important; border: 0 !important; background: none !important; font-size: 22px !important; }
.section-link { color: #ad9a7f; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-link:hover { color: var(--gold-light); }

.hero-slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform .55s cubic-bezier(.25,.8,.25,1); }
.slider-slide { position: relative; flex: 0 0 100%; min-height: 330px; overflow: hidden; background: #080706; }
.slider-slide a { display: block; height: 100%; }
.slider-slide img { display: block; width: 100%; height: 330px; object-fit: cover; opacity: .82; }
.slider-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7,5,4,.75), transparent 60%), linear-gradient(0deg, rgba(7,5,4,.88), transparent 45%); }
.slide-caption { position: absolute; left: 26px; bottom: 25px; z-index: 2; }
.slide-caption small { display: block; color: #be8643; font-size: 8px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.slide-caption strong { color: #f0e6d6; font: 700 22px/1.3 var(--display); }
.slider-controls { display: flex; align-items: center; gap: 10px; }
.slider-controls button { display: grid; width: 32px; height: 32px; place-items: center; color: #a89578; border: 1px solid var(--line); background: rgba(0,0,0,.23); cursor: pointer; }
.slider-controls button:hover { color: var(--gold-light); border-color: var(--line-strong); }
.slider-controls span { color: #746b61; font-size: 9px; }
.slider-controls b { color: var(--gold); }
.slider-dots { position: absolute; right: 20px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.slider-dots button { width: 18px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.25); cursor: pointer; }
.slider-dots button.active { width: 32px; background: var(--gold); }

.news-list { padding: 20px; }
.news-card { display: grid; min-height: 218px; margin-bottom: 18px; grid-template-columns: 290px minmax(0,1fr); overflow: hidden; border: 1px solid rgba(211,160,77,.18); background: linear-gradient(120deg, rgba(55,31,16,.13), transparent 45%), rgba(8,7,6,.72); transition: border-color .2s ease, transform .2s ease; }
.news-card:last-child { margin-bottom: 0; }
.news-card:hover { border-color: rgba(220,171,86,.4); transform: translateY(-2px); }
.news-image { position: relative; display: block; min-height: 218px; overflow: hidden; }
.news-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(10,8,7,.55)), linear-gradient(0deg, rgba(5,4,3,.72), transparent 58%); }
.news-image img { width: 100%; height: 100%; min-height: 218px; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-image img { transform: scale(1.035); }
.news-image > span { position: absolute; left: 15px; bottom: 14px; z-index: 2; padding: 5px 8px; color: #f1d9aa; border: 1px solid rgba(220,167,79,.35); background: rgba(36,19,10,.78); font-size: 7px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.news-image-placeholder img { opacity: .45; }
.news-body { display: flex; padding: 25px 25px 22px; flex-direction: column; align-items: flex-start; }
.news-body time { color: #776f66; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-body time i { margin-right: 5px; color: #a56c30; }
.news-body h3 { margin: 7px 0 10px; font: 700 18px/1.35 var(--display); }
.news-body h3 a { color: #eadfce; }
.news-body h3 a:hover { color: var(--gold-light); }
.news-body p { margin: 0 0 15px; color: #9e9488; font-size: 11px; line-height: 1.7; }
.news-more { margin-top: auto; color: #c69850; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.news-more i { margin-left: 6px; transition: transform .2s ease; }
.news-more:hover { color: var(--gold-light); }
.news-more:hover i { transform: translateX(3px); }

.empty-state { padding: 65px 25px; color: #81776c; text-align: center; }
.empty-state > i { color: #a16b30; font-size: 32px; }
.empty-state h3 { margin: 15px 0 5px; color: #ddd0bd; font: 700 17px var(--display); }
.empty-state p { margin: 0; font-size: 11px; }

.side-panel { overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.panel-heading { display: flex; min-height: 64px; padding: 0 18px; align-items: center; justify-content: space-between; color: #e5d7c3; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(184,116,38,.13), transparent); font: 700 14px var(--display); }
.panel-heading i { color: #a97032; font-size: 18px; }

.sidebar-login { padding: 18px; }
.sidebar-login label { display: block; margin: 0 0 5px; color: #897f73; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-login input[type="text"],
.sidebar-login input[type="password"] {
    width: 100% !important;
    height: 40px !important;
    margin: 0 0 12px !important;
    padding: 0 11px !important;
    color: #e1d6c7 !important;
    border: 1px solid rgba(206,158,79,.2) !important;
    border-radius: 0 !important;
    outline: 0;
    background: rgba(0,0,0,.26) !important;
    box-shadow: inset 0 4px 14px rgba(0,0,0,.15);
}
.sidebar-login input:focus { border-color: rgba(225,180,98,.56) !important; }
.recaptcha-compact { width: 290px; height: 62px; overflow: hidden; transform: scale(.81); transform-origin: left top; }
.login-help { display: flex; margin-top: 11px; justify-content: space-between; gap: 12px; }
.login-help a { color: #7f756a; font-size: 8px; }
.login-help a:hover { color: var(--gold-light); }

.account-welcome { padding: 18px; border-bottom: 1px solid var(--line); }
.account-welcome small { display: block; color: #81786d; font-size: 8px; text-transform: uppercase; }
.account-welcome strong { display: block; color: var(--gold-light); font: 700 18px var(--display); }
.account-welcome span { color: #a29a8e; font-size: 10px; }
.account-links { padding: 10px; }
.account-links a,
.account-links button { display: flex; width: 100%; padding: 9px 10px; align-items: center; gap: 10px; color: #9a9084; border: 0; border-bottom: 1px solid rgba(255,255,255,.035); background: none; font-size: 10px; text-align: left; cursor: pointer; }
.account-links a:hover,
.account-links button:hover { color: var(--gold-light); background: rgba(205,148,59,.06); }
.account-links i { width: 14px; color: #a56b2f; text-align: center; }

.side-download { display: grid; min-height: 90px; padding: 16px 18px; grid-template-columns: 36px 1fr 16px; align-items: center; gap: 13px; color: #eee0ca; border: 1px solid rgba(181,69,41,.72); background: radial-gradient(circle at 15% 0, rgba(211,91,47,.24), transparent 55%), linear-gradient(135deg, #43150f, #1a0d09); box-shadow: 0 14px 38px rgba(75,20,11,.24); }
.side-download > i:first-child { color: #e16e45; font-size: 25px; }
.side-download > i:last-child { color: #8e5941; }
.side-download small,
.side-download strong { display: block; }
.side-download small { color: #a77562; font-size: 7px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.side-download strong { font: 700 15px var(--display); }
.side-download:hover { color: #fff1df; border-color: var(--rust-light); transform: translateY(-2px); }

.ranking-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ranking-tabs button { height: 39px; color: #7e7468; border: 0; border-right: 1px solid var(--line); background: rgba(0,0,0,.18); font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.ranking-tabs button:last-child { border-right: 0; }
.ranking-tabs button.active { color: var(--gold-light); background: rgba(181,118,42,.09); box-shadow: inset 0 -2px var(--gold-deep); }
.ranking-list { display: none; padding: 10px; }
.ranking-list.active { display: block; }
.ranking-row { display: grid; min-height: 39px; padding: 7px 8px; grid-template-columns: 22px 19px minmax(0,1fr) auto; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.04); color: #a79d90; font-size: 9px; }
.ranking-row:first-child { background: linear-gradient(90deg, rgba(196,137,53,.12), transparent); }
.ranking-row b { color: #b9833e; font: 700 11px var(--display); }
.ranking-row img { width: 18px; height: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,.12); }
.ranking-row span { overflow: hidden; color: #cfc3b2; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row em { color: #7b7167; font-size: 8px; font-style: normal; }
.ranking-row.is-empty { grid-template-columns: 22px 1fr auto; }
.ranking-more { display: flex; min-height: 40px; padding: 0 8px; align-items: center; justify-content: space-between; color: #a87b42; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ranking-more:hover { color: var(--gold-light); }

.community-strip { display: grid; width: min(1240px, calc(100% - 48px)); margin: 0 auto 70px; padding-top: 42px; grid-template-columns: 330px 1fr; gap: 44px; border-top: 1px solid var(--line); }
.community-heading small { color: #956832; font-size: 8px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.community-heading h2 { margin: 8px 0 0; color: #e9ddca; font: 700 26px/1.25 var(--display); }
.community-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.community-links a { display: grid; min-height: 82px; padding: 15px 17px; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 12px; border: 1px solid var(--line); background: rgba(14,12,9,.72); }
.community-links a > i:first-child { color: #b67c37; font-size: 24px; text-align: center; }
.community-links a > i:last-child { color: #685d50; }
.community-links strong,
.community-links small { display: block; }
.community-links strong { color: #ddd1bf; font: 700 13px var(--display); }
.community-links small { margin-top: 3px; color: #746b61; font-size: 8px; }
.community-links a:hover { border-color: var(--line-strong); background: rgba(34,25,17,.72); transform: translateY(-2px); }

.site-footer { display: flex !important; width: 100% !important; min-height: 180px !important; margin: 0 !important; padding: 40px max(28px, calc((100% - 1240px)/2)) !important; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line) !important; background: #060504 !important; }
.footer-brand img { width: 160px; height: 54px; object-fit: contain; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.site-footer nav a { color: #776f65; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--gold-light); }
.site-footer p { margin: 0; color: #4f4943; font-size: 8px; }

/* Shared legacy view cleanup */
.inner-content,
.scrollable-box-inner { padding: 22px !important; }
.inner-content p,
.inner-content li,
.news-full-content,
.news-full-content p { color: #b4aa9d !important; font-size: 11px !important; line-height: 1.75 !important; }
.inner-content a { color: var(--gold) !important; }
.inner-content img,
.news-full-content img { height: auto !important; }
.boxes-top,
.boxes-middle,
.boxes-bottom,
.header-wrapper,
.container-wrapper > .container { background: none !important; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    max-width: 100%;
    color: #ddd3c4 !important;
    border: 1px solid rgba(205,157,78,.25) !important;
    border-radius: 0 !important;
    outline: none;
    background: rgba(4,4,3,.4) !important;
}
input:focus,
select:focus,
textarea:focus { border-color: rgba(226,181,99,.62) !important; box-shadow: 0 0 0 2px rgba(204,144,54,.07); }

.table-bordered { width: 100% !important; min-width: 560px; border: 1px solid var(--line) !important; border-collapse: collapse !important; background: #0c0a08 !important; }
.table-bordered th { padding: 12px !important; color: #dfbf7b !important; border: 1px solid var(--line) !important; background: rgba(177,111,34,.14) !important; font-size: 9px; text-transform: uppercase; }
.table-bordered td { padding: 11px !important; color: #afa597 !important; border: 1px solid rgba(209,160,79,.11) !important; background: rgba(255,255,255,.012) !important; font-size: 10px; }
.table-bordered tr:hover td { color: #e3d8c8 !important; background: rgba(201,142,52,.055) !important; }

.pagination { display: flex !important; margin: 22px !important; padding: 0 !important; justify-content: center; gap: 5px; background: none !important; }
.pagination a,
.pagination span { display: grid; width: 34px; height: 34px; place-items: center; color: #867c70; border: 1px solid var(--line); background: rgba(0,0,0,.2); font-size: 9px; }
.pagination a:hover,
.pagination a.active { color: #1b1107; border-color: var(--gold); background: var(--gold); }

.site-modal { position: fixed; inset: 0; z-index: 9999; display: none; padding: 22px; align-items: center; justify-content: center; background: rgba(0,0,0,.9); backdrop-filter: blur(8px); }
.site-modal.is-open { display: flex; }
.site-modal-card { width: min(430px,100%); padding: 32px; color: #a99f92; border: 1px solid var(--line-strong); background: #110e0b; box-shadow: 0 30px 100px #000; text-align: center; }
.site-modal-card h2 { margin: 10px 0; color: #eadfce; font: 700 22px var(--display); }
.site-modal-card p { font-size: 11px; }
.modal-icon { color: var(--gold); font-size: 28px; }
.modal-icon.error { color: #cf5b43; }
.modal-icon.success { color: #69b66c; }
.modal-notice,
.modal-data { margin: 15px 0; padding: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.24); }
.modal-data small,
.modal-data strong { display: block; }
.modal-data strong { color: var(--gold-light); font-size: 18px; }
.modal-data.pin strong { letter-spacing: .35em; }
.modal-captcha { display: flex; margin: 15px 0; justify-content: center; }

/* Standalone presentation */
/* Full rankings */
.ranking-page { display: grid; gap: 18px; }
.ranking-hero-panel { position: relative; display: grid; min-height: 170px; padding: 28px 30px; overflow: hidden; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 22px; border: 1px solid var(--line); background: radial-gradient(circle at 82% 20%, rgba(183,91,28,.21), transparent 31%), linear-gradient(115deg, rgba(33,20,12,.97), rgba(9,7,5,.97)), url('../img/grymuar2026/hero-grymuar-2026.png') 78% 58%/cover; box-shadow: var(--shadow); }
.ranking-hero-panel::before { content: ""; position: absolute; inset: 0; opacity: .42; background: linear-gradient(90deg, rgba(5,4,3,.2), rgba(5,4,3,.8)), repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,.012) 79px); pointer-events: none; }
.ranking-hero-panel > * { position: relative; z-index: 1; }
.ranking-hero-panel small { color: #cf9850; font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.ranking-hero-panel small i { margin-right: 7px; }
.ranking-hero-panel h1 { margin: 8px 0 7px; color: #f2e3cc; font: 700 clamp(23px,3vw,34px)/1.08 var(--display); }
.ranking-hero-panel p { max-width: 520px; margin: 0; color: #9a8c7b; font-size: 10px; }
.ranking-navigation { display: flex; align-items: center; gap: 6px; }
.ranking-navigation a { display: inline-flex; min-height: 38px; padding: 0 13px; align-items: center; gap: 7px; color: #948572; border: 1px solid rgba(174,115,47,.24); background: rgba(5,4,3,.55); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ranking-navigation a:hover,
.ranking-navigation a.active { color: #21150b; border-color: #e0af64; background: linear-gradient(#f2cf88,#b9772c); box-shadow: 0 6px 22px rgba(177,99,31,.2); }
.ranking-podium { display: grid; padding: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(25,17,11,.91), rgba(8,6,4,.94)); box-shadow: var(--shadow); }
.podium-card { position: relative; display: grid; min-height: 96px; padding: 16px 12px 13px 56px; grid-template-columns: 34px minmax(0,1fr) auto; grid-template-rows: 1fr auto; align-items: center; gap: 4px 9px; border: 1px solid rgba(178,117,48,.18); background: linear-gradient(135deg, rgba(89,51,21,.26), rgba(10,8,6,.75)); }
.podium-card::after { content: ""; position: absolute; right: 8px; bottom: 0; left: 8px; height: 1px; background: linear-gradient(90deg, transparent, rgba(224,169,86,.5), transparent); }
.podium-card > img { width: 32px; height: 22px; object-fit: cover; border: 1px solid rgba(238,191,108,.42); box-shadow: 0 4px 12px #000; }
.podium-position { position: absolute; top: 50%; left: 14px; display: grid; width: 31px; height: 31px; place-items: center; color: #f7d38d; border: 1px solid #876029; border-radius: 50%; background: #17100a; font: 800 13px/1 var(--display); transform: translateY(-50%); }
.podium-rank-1 { min-height: 112px; border-color: rgba(229,177,83,.52); background: radial-gradient(circle at 50% 0, rgba(214,147,51,.2), transparent 58%), linear-gradient(135deg, rgba(104,61,23,.38), rgba(10,8,6,.78)); }
.podium-rank-1 .podium-position { color: #2c1a09; border-color: #f0ca74; background: linear-gradient(#f8d991,#bd792a); box-shadow: 0 0 20px rgba(235,178,74,.22); }
.podium-rank-2 { order: -1; }
.podium-rank-2 .podium-position { color: #e4ded3; border-color: #a99d8d; }
.podium-rank-3 .podium-position { color: #e5a879; border-color: #9e6039; }
.podium-card div { min-width: 0; }
.podium-card div small { display: block; color: #756a5e; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.podium-card div strong { display: block; overflow: hidden; color: #f0e2cf; font: 700 12px/1.35 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.podium-card em { color: #d9a75e; font-size: 8px; font-style: normal; font-weight: 800; }
.podium-time { grid-column: 2 / -1; color: #8f8171; font-size: 8px; }
.podium-time i { margin-right: 5px; color: #c4863e; }
.ranking-board { overflow: hidden; border: 1px solid var(--line); background: rgba(9,7,5,.95); box-shadow: var(--shadow); }
.ranking-board-head { display: flex; min-height: 90px; padding: 18px 22px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 0, rgba(153,69,24,.13), transparent 42%), linear-gradient(90deg, rgba(79,47,22,.2), transparent); }
.ranking-board-head small { color: #887866; font-size: 7px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ranking-board-head h2 { margin: 4px 0 0; color: #e9d8bd; font: 700 20px/1.1 var(--display); }
.ranking-search { display: grid; width: min(330px,100%); height: 40px; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; border: 1px solid rgba(174,115,47,.28); background: #070604; }
.ranking-search > i { color: #8e673a; text-align: center; }
.ranking-search input { width: 100%; height: 38px; padding: 0 8px 0 0; color: #ddd0bd; border: 0; outline: 0; background: transparent; font-size: 9px; }
.ranking-search input::placeholder { color: #62594f; }
.ranking-search button { height: 40px; margin: -1px; padding: 0 16px; color: #281809; border: 1px solid #db9d4f; background: linear-gradient(#efc678,#b87328); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ranking-table-wrap { overflow-x: auto; }
.ranking-table { width: 100%; min-width: 690px; border: 0; border-collapse: collapse; color: #9f9283; background: transparent; table-layout: auto; }
.ranking-table th { height: 42px; padding: 0 12px; color: #b69361; border: 0; border-bottom: 1px solid rgba(171,112,45,.3); background: #130e09; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.ranking-table th:first-child,
.ranking-table td:first-child { width: 48px; text-align: center; }
.ranking-table td { height: 55px; padding: 8px 12px; border: 0; border-bottom: 1px solid rgba(169,113,50,.1); background: transparent; font-size: 9px; vertical-align: middle; }
.ranking-table tbody tr { transition: background .18s ease, transform .18s ease; }
.ranking-table tbody tr:nth-child(even) { background: rgba(255,244,221,.018); }
.ranking-table tbody tr:hover { background: rgba(185,113,42,.08); }
.ranking-table tbody tr.is-top-1 { background: linear-gradient(90deg, rgba(197,126,42,.13), transparent 72%); }
.ranking-table tbody tr.is-top-2 { background: linear-gradient(90deg, rgba(160,151,138,.075), transparent 72%); }
.ranking-table tbody tr.is-top-3 { background: linear-gradient(90deg, rgba(160,82,43,.07), transparent 72%); }
.rank-position { display: inline-grid; width: 27px; height: 27px; place-items: center; color: #8d7961; border: 1px solid rgba(163,109,47,.18); border-radius: 50%; background: #0d0a07; font: 700 9px/1 var(--display); }
.is-top-1 .rank-position { color: #2d1a08; border-color: #e8bd6b; background: linear-gradient(#f4d48c,#bd7829); }
.is-top-2 .rank-position { color: #1f1d1a; border-color: #c8bfb1; background: linear-gradient(#ded8ce,#918a81); }
.is-top-3 .rank-position { color: #28170f; border-color: #c78155; background: linear-gradient(#dca276,#8d5234); }
.rank-identity { min-width: 115px; }
.rank-identity strong { display: block; color: #e8d9c5; font: 700 10px/1.3 var(--display); }
.rank-identity small { display: block; margin-top: 2px; color: #6f655a; font-size: 7px; }
.empire-pill { display: inline-flex; min-width: 86px; padding: 4px 7px 4px 4px; align-items: center; gap: 6px; color: #afa08d; border: 1px solid rgba(176,117,50,.18); background: rgba(0,0,0,.25); font-size: 8px; }
.empire-pill img { width: 25px; height: 16px; object-fit: cover; box-shadow: 0 2px 7px #000; }
.empire-1 { border-color: rgba(197,70,57,.25); }
.empire-2 { border-color: rgba(218,190,67,.25); }
.empire-3 { border-color: rgba(61,93,194,.27); }
.level-pill { display: inline-grid; min-width: 30px; height: 27px; padding: 0 7px; place-items: center; color: #eac57c; border: 1px solid rgba(198,139,60,.22); background: rgba(91,53,20,.17); font-weight: 800; }
.playtime-value { display: inline-flex; min-width: 82px; align-items: center; gap: 6px; color: #c5b7a3; white-space: nowrap; }
.playtime-value i { color: #b87a35; }
.playtime-value.is-highlighted { color: #edc77d; font-weight: 800; }
.exp-value,
.points-value { color: #958572; font-variant-numeric: tabular-nums; white-space: nowrap; }
.points-value { color: #d7ab65; font-weight: 800; }
.guild-leader { display: inline-flex; align-items: center; gap: 6px; color: #a99a87; white-space: nowrap; }
.guild-leader i { color: #86633d; }
.ranking-empty { display: grid; min-height: 160px; place-items: center; align-content: center; gap: 6px; color: #71675c; text-align: center; }
.ranking-empty i { color: #a36b32; font-size: 22px; }
.ranking-empty strong { color: #c9b79f; font-family: var(--display); }
.ranking-empty span { font-size: 8px; }
.ranking-pagination { display: grid; min-height: 66px; padding: 12px 20px; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); background: #0c0906; }
.ranking-pagination a { display: inline-flex; width: max-content; min-height: 34px; padding: 0 12px; align-items: center; gap: 7px; color: #a8957c; border: 1px solid rgba(171,112,45,.24); background: #120d09; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ranking-pagination a:last-child { justify-self: end; }
.ranking-pagination a:hover { color: #241609; border-color: #dfaa5c; background: linear-gradient(#edc77e,#b8762b); }
.ranking-pagination strong { color: #d9c5a8; font: 700 10px/1 var(--display); }
.ranking-pagination strong small { color: #766a5c; font-family: var(--body); font-weight: 500; }

/* Presentation */
.presentation-page { position: relative; min-height: 100vh; padding-bottom: 85px; overflow: hidden; color: var(--cream); background: #050403; }
.presentation-background { position: fixed; inset: 0; z-index: 0; }
.presentation-background video { width: 100%; height: 100%; object-fit: cover; opacity: .23; }
.presentation-background::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 28%, rgba(113,55,21,.14), transparent 33rem), linear-gradient(180deg, rgba(4,3,2,.52), #050403 94%); }
.presentation-nav { position: relative; z-index: 5; display: flex; width: min(1180px,calc(100% - 40px)); min-height: 76px; margin: 0 auto; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.presentation-nav img { width: 170px; height: 56px; object-fit: contain; }
.presentation-nav-actions { display: flex; align-items: center; gap: 12px; }
.presentation-nav-actions a,
.presentation-nav-actions button { display: inline-flex; min-height: 36px; padding: 0 13px; align-items: center; gap: 7px; color: #aa9c89; border: 1px solid var(--line); background: rgba(0,0,0,.24); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.presentation-nav-actions a:hover,
.presentation-nav-actions button:hover { color: var(--gold-light); border-color: var(--line-strong); }
.presentation-hero { position: relative; z-index: 2; width: min(980px,calc(100% - 40px)); margin: 74px auto 52px; text-align: center; }
.presentation-hero img { width: min(520px,80vw); height: 170px; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0,0,0,.7)); }
.presentation-hero small { display: block; margin-top: -12px; color: #a97538; font-size: 9px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.presentation-hero h1 { margin: 12px 0 9px; color: #f0e5d5; font: 700 clamp(25px,4vw,42px)/1.2 var(--display); }
.presentation-hero p { max-width: 620px; margin: 0 auto; color: #8f8578; font-size: 11px; }
.presentation-index { display: flex; margin-top: 28px; flex-wrap: wrap; justify-content: center; gap: 7px; }
.presentation-index a { padding: 7px 11px; color: #918474; border: 1px solid var(--line); background: rgba(0,0,0,.2); font-size: 8px; }
.presentation-index a:hover { color: var(--gold-light); border-color: var(--line-strong); }
.presentation-content { position: relative; z-index: 2; width: min(1100px,calc(100% - 40px)); margin: 0 auto; }
.presentation-section { margin: 0 0 24px; overflow: hidden; scroll-margin-top: 20px; border: 1px solid var(--line); background: rgba(13,10,8,.86); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.presentation-section-header { position: relative; display: flex; min-height: 75px; margin: 0; padding: 0 24px; align-items: center; color: #e6d8c3; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 0, rgba(165,75,25,.17), transparent 42%), linear-gradient(90deg, rgba(190,127,42,.11), transparent); font: 700 18px/1.3 var(--display); }
.presentation-section-header::before { content: ""; width: 3px; height: 24px; margin-right: 13px; background: linear-gradient(#e7bd6e,#8d4f1e); box-shadow: 0 0 13px rgba(216,155,63,.22); }
.presentation-section-body { padding: 30px 34px 34px; color: #b6ac9f; font-size: 12px; line-height: 1.8; }
.presentation-section-body h1,
.presentation-section-body h2,
.presentation-section-body h3,
.presentation-section-body h4 { color: #ead8b8; font-family: var(--display); text-align: center; }
.presentation-section-body strong { color: var(--gold-light); }
.presentation-section-body a { color: var(--gold); text-decoration: underline; }
.presentation-section-body img { max-width: 100% !important; height: auto !important; border: 0 !important; }
.presentation-gallery { display: flex; margin-top: 22px; flex-wrap: wrap; justify-content: center; gap: 16px; }
.presentation-image { flex: 0 1 620px; width: 620px; max-width: 100%; text-align: center; }
.presentation-image.size-small { flex-basis: 280px; width: 280px; }
.presentation-image.size-medium { flex-basis: 440px; width: 440px; }
.presentation-image.size-xlarge { flex-basis: 820px; width: 820px; }
.presentation-image.size-full { flex-basis: 100%; width: 100%; }
.presentation-image img { display: block; width: 100%; height: auto; cursor: zoom-in; transition: filter .2s ease, transform .2s ease; }
.presentation-image img:hover { filter: brightness(1.08); transform: translateY(-2px); }
.presentation-caption { margin-top: 7px; color: #776d61; font-size: 9px; }
.presentation-empty { padding: 70px 25px; color: #81766b; text-align: center; }

.presentation-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.95); }
.presentation-lightbox.active { display: flex; }
.presentation-lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; box-shadow: 0 20px 90px #000; }
.lightbox-close,
.lightbox-prev,
.lightbox-next { position: absolute; display: grid; place-items: center; color: var(--gold-light); border: 1px solid var(--line-strong); background: rgba(13,10,8,.82); cursor: pointer; }
.lightbox-close { top: 18px; right: 20px; width: 40px; height: 40px; }
.lightbox-prev,
.lightbox-next { top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: 22px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-meta { position: absolute; bottom: 20px; left: 50%; color: #a9977d; font-size: 9px; text-align: center; transform: translateX(-50%); }

@media (max-width: 1120px) {
    .site-nav-wrap { grid-template-columns: 160px 1fr auto; gap: 14px; }
    .site-navigation a { padding: 0 9px; font-size: 9px; }
    .nav-login { display: none; }
    .hero-inner { width: 62vw; }
    .server-status { min-width: 410px; }
    .site-main { grid-template-columns: minmax(0,1fr) 300px; }
    .news-card { grid-template-columns: 230px minmax(0,1fr); }
}

@media (max-width: 900px) {
    .site-nav-wrap { position: absolute; display: grid; min-height: 72px; grid-template-columns: 150px 1fr 40px; }
    .site-brand { width: 145px; }
    .site-brand img { height: 50px; }
    .mobile-menu-button { display: block; grid-column: 3; justify-self: end; }
    .site-navigation { position: absolute; top: 72px; right: 0; left: 0; display: none; padding: 8px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); background: rgba(8,7,5,.98); box-shadow: var(--shadow); }
    .site-navigation.open { display: flex; }
    .site-navigation a { height: 43px; padding: 0 12px; }
    .site-navigation a::after { right: auto; left: 0; width: 2px; height: 100%; background: var(--gold); transform: scaleY(0); }
    .site-navigation a.active::after { transform: scaleY(1); }
    .site-actions { grid-column: 2; grid-row: 1; justify-self: end; }
    .hero { min-height: 650px; background-position: 64% center; }
    .hero-inner { width: min(640px,74vw); }
    .server-status { right: 24px; left: 24px; bottom: 32px; min-width: 0; }
    .site-main { grid-template-columns: 1fr; }
    .site-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ranking-panel { grid-column: 2; grid-row: 1 / span 2; }
    .community-strip { grid-template-columns: 1fr; gap: 22px; }
    .site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 680px) {
    .site-nav-wrap { width: calc(100% - 28px); grid-template-columns: 128px 1fr 34px; }
    .site-brand { width: 124px; }
    .site-actions .nav-register { min-width: 82px; height: 34px; padding: 0 10px; }
    .language-switch { display: none; }
    .hero { min-height: 640px; padding: 108px 20px 176px; align-items: flex-start; background-position: 69% center; }
    .hero::after { content: ""; position: absolute; inset: 0; background: rgba(5,4,3,.25); }
    .hero-inner { z-index: 3; width: 100%; padding-top: 34px; text-align: center; }
    .hero-kicker { font-size: 7px; letter-spacing: .15em; }
    .hero-logo { width: 92%; height: 130px; margin: -12px auto -2px; object-position: center; }
    .hero h1 { font-size: 28px; }
    .hero-copy { font-size: 11px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .button { width: 100%; }
    .server-status { z-index: 4; grid-template-columns: 1fr; }
    .server-status > div { min-height: 48px; padding: 8px 14px; grid-template-columns: 20px 55px 1fr; grid-template-rows: 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
    .server-status > div:last-child { border-bottom: 0; }
    .server-status i,
    .server-status .status-dot { grid-row: 1; }
    .server-status strong { font-size: 15px; }
    .hero-compact { min-height: 445px; padding-bottom: 150px; }
    .hero-compact .hero-inner { padding-top: 45px; }
    .hero-compact .server-status { bottom: 25px; }
    .site-main,
    .community-strip { width: calc(100% - 28px); margin-top: 34px; }
    .feature-intro { grid-template-columns: 1fr; }
    .feature-intro article { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-intro article:last-child { border-bottom: 0; }
    .section-heading { min-height: 74px; padding: 15px !important; }
    .section-heading h2 { font-size: 18px !important; }
    .slider-slide,
    .slider-slide img { min-height: 250px; height: 250px; }
    .slider-controls { display: none; }
    .news-list { padding: 12px; }
    .news-card { grid-template-columns: 1fr; }
    .news-image { min-height: 190px; height: 190px; }
    .news-image img { min-height: 190px; }
    .news-body { padding: 20px 17px; }
    .site-sidebar { grid-template-columns: 1fr; }
    .ranking-panel { grid-column: auto; grid-row: auto; }
    .community-links { grid-template-columns: 1fr; }
    .site-footer nav { gap: 13px; }
    .presentation-nav { min-height: 68px; }
    .presentation-nav img { width: 130px; }
    .presentation-nav-actions button { display: none; }
    .presentation-hero { margin-top: 48px; }
    .presentation-hero img { height: 120px; }
    .presentation-section-body { padding: 22px 16px 26px; }
    .presentation-image,
    .presentation-image.size-small,
    .presentation-image.size-medium,
    .presentation-image.size-large,
    .presentation-image.size-xlarge,
    .presentation-image.size-full { flex-basis: 100%; width: 100%; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Presentation 2026 — classic Metin2 book layout */
html { scroll-behavior: smooth; }
[data-lang] { display: none !important; }
html[data-site-language="pl"] [data-lang="pl"],
html[data-site-language="en"] [data-lang="en"] { display: revert !important; }
.presentation-page { min-height: 100vh; padding: 0; overflow: visible; color: #2f251c; background: #070503; }
.presentation-stage { position: relative; display: grid; min-height: 100vh; grid-template-columns: clamp(245px,22vw,360px) minmax(600px,1fr) clamp(270px,23vw,410px); align-items: stretch; }
.presentation-sidebar { position: sticky; top: 0; z-index: 6; display: flex; height: 100vh; padding: 38px 36px 30px; overflow: hidden; flex-direction: column; border-right: 1px solid rgba(208,148,66,.38); background: linear-gradient(rgba(15,8,4,.86),rgba(17,8,4,.92)), url('../img/grymuar2026/hero-grymuar-2026.png') 45% center/cover; box-shadow: 16px 0 40px rgba(0,0,0,.48); }
.presentation-sidebar::before { content: ""; position: absolute; inset: 0; opacity: .46; background: radial-gradient(circle at 50% 25%, rgba(165,78,24,.24), transparent 42%), repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,.012) 9px); pointer-events: none; }
.presentation-sidebar > * { position: relative; z-index: 1; }
.presentation-brand { display: block; width: 100%; margin: 0 auto 25px; text-align: center; }
.presentation-brand img { width: min(250px,100%); height: 94px; object-fit: contain; filter: drop-shadow(0 10px 16px #000); }
.presentation-mobile-menu { display: none; }
.presentation-menu { position: relative; display: grid; min-height: 0; padding: 29px 18px; overflow-y: auto; align-content: start; gap: 8px; border: 1px solid rgba(194,131,55,.32); background: rgba(5,3,2,.72); box-shadow: inset 0 0 38px rgba(0,0,0,.75), 0 12px 32px rgba(0,0,0,.34); scrollbar-width: thin; scrollbar-color: #a2672b #120b06; }
.presentation-menu::before,
.presentation-menu::after { content: "◆"; position: absolute; left: 50%; color: #bc7c38; font-size: 11px; transform: translateX(-50%); }
.presentation-menu::before { top: 7px; }
.presentation-menu::after { bottom: 7px; }
.presentation-menu a { display: flex; min-height: 34px; padding: 7px 12px; align-items: center; justify-content: center; color: #251a10; border: 1px solid #8e5e2d; background: linear-gradient(180deg,#f2ddae,#c69a5d 60%,#a86a2f); box-shadow: inset 0 1px #fff4cf, 0 3px 8px rgba(0,0,0,.55); font-size: 9px; font-weight: 800; line-height: 1.2; text-align: center; text-shadow: 0 1px rgba(255,255,255,.45); }
.presentation-menu a:hover,
.presentation-menu a.active { color: #140d08; border-color: #f0c975; background: linear-gradient(180deg,#fff1c6,#e1b96f 58%,#bc7832); box-shadow: 0 0 17px rgba(222,158,64,.23), inset 0 1px #fffbe3; transform: translateX(2px); }
.presentation-community { margin-top: auto; padding-top: 22px; color: #e6c987; text-align: center; }
.presentation-community p { margin: 0 0 10px; font-size: 9px; font-weight: 700; line-height: 1.45; }
.presentation-community a { display: inline-grid; width: 33px; height: 33px; margin: 0 3px; place-items: center; color: #1d1208; border: 1px solid #e8bd6a; border-radius: 8px; background: linear-gradient(#f0d48f,#b67830); box-shadow: 0 5px 12px rgba(0,0,0,.36); }
.presentation-paper { position: relative; z-index: 2; min-width: 0; padding: 24px clamp(34px,5vw,88px) 70px; overflow: hidden; color: #403328; background-color: #eadcb9; background-image: radial-gradient(circle at 15% 13%,rgba(255,255,255,.42),transparent 24%), radial-gradient(circle at 80% 48%,rgba(128,84,40,.09),transparent 35%), repeating-linear-gradient(0deg,rgba(75,50,27,.025) 0 1px,transparent 1px 5px), linear-gradient(90deg,rgba(103,63,28,.16),transparent 5%,transparent 94%,rgba(103,63,28,.17)); box-shadow: inset 18px 0 30px rgba(82,45,18,.14), inset -18px 0 30px rgba(82,45,18,.14); }
.presentation-paper::before { content: ""; position: absolute; inset: 0; opacity: .42; pointer-events: none; background: radial-gradient(ellipse at top, transparent 48%, rgba(105,67,31,.14) 100%); mix-blend-mode: multiply; }
.presentation-paper > * { position: relative; z-index: 1; }
.presentation-intro { min-height: 405px; padding: 56px 0 64px; text-align: center; }
.presentation-intro small { display: block; color: #7b4b25; font-size: 9px; font-weight: 900; letter-spacing: .23em; text-transform: uppercase; }
.presentation-intro h1 { margin: 16px 0 18px; color: #3a291c; font: 800 clamp(28px,3.5vw,48px)/1.1 var(--display); text-shadow: 0 1px #fff5d7; }
.presentation-intro p { max-width: 730px; margin: 0 auto; color: #564538; font-size: clamp(11px,1.05vw,15px); font-weight: 500; line-height: 1.85; }
.presentation-intro-seal { position: relative; width: 92px; height: 92px; margin: 40px auto 0; }
.presentation-intro-seal::before,
.presentation-intro-seal::after { content: ""; position: absolute; top: 50%; width: 135px; height: 1px; background: linear-gradient(90deg,transparent,#a87037); }
.presentation-intro-seal::before { right: 92%; }
.presentation-intro-seal::after { left: 92%; transform: scaleX(-1); }
.presentation-intro-seal img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(80,42,15,.28)); }
.presentation-section { margin: 0 0 58px; overflow: visible; scroll-margin-top: 24px; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.presentation-section-ribbon { position: relative; display: flex; width: min(430px,86%); min-height: 60px; margin: 0 auto 30px; padding: 12px 72px; align-items: center; justify-content: center; color: #f0c767; border: 1px solid #5d321b; background: linear-gradient(180deg,rgba(17,12,9,.97),rgba(31,14,10,.98)); box-shadow: 0 8px 18px rgba(75,36,16,.25), inset 0 0 18px rgba(177,69,25,.11); font: 700 14px/1.25 var(--display); text-align: center; text-transform: uppercase; }
.presentation-section-ribbon::before,
.presentation-section-ribbon::after { content: "◆"; position: absolute; top: 50%; display: grid; width: 50px; height: 50px; place-items: center; color: #de9f48; border: 1px solid #6d3f22; background: #120c08; transform: translateY(-50%) rotate(45deg); box-shadow: 0 5px 12px rgba(0,0,0,.32); }
.presentation-section-ribbon::before { left: -25px; }
.presentation-section-ribbon::after { right: -25px; }
.presentation-section-body { padding: 32px clamp(24px,3vw,46px) 38px; color: #a98d72; border: 1px solid rgba(139,79,34,.48); border-radius: 12px; background: radial-gradient(circle at 85% 0,rgba(114,43,24,.29),transparent 38%), linear-gradient(135deg,#15100d,#080706 78%); box-shadow: 0 16px 30px rgba(77,41,18,.22), inset 0 1px rgba(255,226,173,.06); font-size: 12px; line-height: 1.85; }
.presentation-section-body h1,
.presentation-section-body h2,
.presentation-section-body h3,
.presentation-section-body h4 { color: #f0e0c7; font-family: var(--display); text-align: center; }
.presentation-section-body p { margin: 0 0 1.1em; }
.presentation-section-body strong { color: #e7ba6b; }
.presentation-section-body a { color: #df9d46; text-decoration: underline; }
.presentation-section-body img { max-width: 100% !important; height: auto !important; border: 0 !important; }
.presentation-gallery { display: flex; margin-top: 26px; flex-wrap: wrap; justify-content: center; gap: 18px; }
.presentation-image { flex: 0 1 620px; width: 620px; max-width: 100%; margin: 0; text-align: center; }
.presentation-image.size-small { flex-basis: 260px; width: 260px; }
.presentation-image.size-medium { flex-basis: 400px; width: 400px; }
.presentation-image.size-xlarge { flex-basis: 760px; width: 760px; }
.presentation-image.size-full { flex-basis: 100%; width: 100%; }
.presentation-image img { display: block; width: 100%; height: auto; border: 1px solid rgba(215,164,90,.3) !important; border-radius: 4px; cursor: zoom-in; box-shadow: 0 10px 26px rgba(0,0,0,.5); transition: filter .2s ease, transform .2s ease; }
.presentation-image img:hover { filter: brightness(1.08); transform: translateY(-3px); }
.presentation-caption { margin-top: 9px; color: #846f5a; font-size: 9px; }
.presentation-empty { padding: 80px 30px; color: #5f4b3a; text-align: center; }
.presentation-paper-footer { display: grid; margin-top: 80px; place-items: center; color: #654b35; }
.presentation-paper-footer img { width: 66px; height: 66px; object-fit: contain; }
.presentation-paper-footer strong { margin-top: 7px; color: #55371f; font: 800 15px var(--display); letter-spacing: .12em; }
.presentation-paper-footer span { font-size: 9px; }
.presentation-character-panel { position: sticky; top: 0; z-index: 3; height: 100vh; overflow: hidden; border-left: 1px solid rgba(197,133,57,.28); background: linear-gradient(180deg,rgba(7,8,8,.28),rgba(8,4,2,.88)), url('../img/grymuar2026/hero-grymuar-2026.png') 67% center/cover; box-shadow: -14px 0 35px rgba(0,0,0,.38); }
.presentation-character-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 37%,transparent 20%,rgba(0,0,0,.67) 82%), linear-gradient(90deg,rgba(8,4,2,.34),transparent 35%); }
.presentation-character-panel > img { position: absolute; z-index: 2; right: -15%; bottom: -4%; width: 126%; height: 94%; object-fit: contain; object-position: bottom center; filter: drop-shadow(-16px 20px 22px rgba(0,0,0,.82)); }
.presentation-character-glow { position: absolute; z-index: 1; top: 16%; right: 3%; width: 95%; height: 55%; border-radius: 50%; background: radial-gradient(circle,rgba(62,102,68,.22),transparent 68%); filter: blur(10px); }
.presentation-character-caption { position: absolute; z-index: 3; right: 20px; bottom: 24px; left: 20px; color: #d9b768; text-align: center; text-shadow: 0 3px 8px #000; }
.presentation-character-caption small,
.presentation-character-caption strong { display: block; }
.presentation-character-caption small { font: 800 11px var(--display); letter-spacing: .25em; }
.presentation-character-caption strong { margin-top: 4px; color: #e9dcc2; font: 700 13px/1.3 var(--display); }
.presentation-actions { position: fixed; z-index: 20; top: 20px; right: 20px; display: flex; align-items: center; gap: 7px; }
.presentation-actions > a,
.presentation-actions > button { display: grid; width: 38px; height: 38px; place-items: center; color: #efce85; border: 1px solid rgba(213,153,67,.55); border-radius: 50%; background: rgba(13,8,5,.86); box-shadow: 0 5px 15px rgba(0,0,0,.45); cursor: pointer; }
.presentation-language { display: flex; height: 38px; padding: 0 11px; border: 1px solid rgba(213,153,67,.55); border-radius: 19px; background: rgba(13,8,5,.86); box-shadow: 0 5px 15px rgba(0,0,0,.45); }
.presentation-language button { font-size: 9px; }
.presentation-lightbox { z-index: 9999; }

@media (max-width: 1280px) {
    .presentation-stage { grid-template-columns: 250px minmax(560px,1fr); }
    .presentation-character-panel { display: none; }
    .presentation-sidebar { padding-right: 24px; padding-left: 24px; }
    .presentation-paper { padding-right: clamp(30px,6vw,76px); padding-left: clamp(30px,6vw,76px); }
}

@media (max-width: 900px) {
    .ranking-hero-panel { grid-template-columns: 1fr; align-items: start; }
    .ranking-navigation { flex-wrap: wrap; }
    .ranking-podium { grid-template-columns: 1fr; align-items: stretch; }
    .podium-card,
    .podium-rank-1 { min-height: 96px; }
    .podium-rank-1 { order: -3; }
    .podium-rank-2 { order: -2; }
    .ranking-board-head { align-items: stretch; flex-direction: column; }
    .ranking-search { width: 100%; }

    .presentation-stage { display: block; }
    .presentation-sidebar { position: sticky; top: 0; display: grid; width: 100%; height: auto; min-height: 76px; padding: 10px 16px; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid rgba(208,148,66,.38); }
    .presentation-brand { width: 145px; margin: 0; }
    .presentation-brand img { width: 145px; height: 54px; }
    .presentation-mobile-menu { display: inline-flex; min-height: 38px; padding: 0 12px; align-items: center; justify-self: end; gap: 7px; color: #e2bd73; border: 1px solid #895a2d; background: rgba(8,5,3,.72); font-size: 9px; font-weight: 800; text-transform: uppercase; }
    .presentation-menu { position: absolute; top: 76px; right: 0; left: 0; display: none; max-height: calc(100vh - 76px); padding: 22px; grid-template-columns: repeat(2,minmax(0,1fr)); border-right: 0; border-left: 0; background: rgba(9,5,3,.98); }
    .presentation-menu.open { display: grid; }
    .presentation-community { display: none; }
    .presentation-paper { padding: 22px clamp(20px,6vw,56px) 60px; }
    .presentation-intro { min-height: 360px; padding-top: 68px; }
    .presentation-actions { top: 19px; right: 12px; }
    .presentation-language { display: flex; }
    .presentation-actions > a { display: none; }
}

@media (max-width: 600px) {
    .ranking-hero-panel { padding: 23px 18px; }
    .ranking-navigation a { flex: 1 1 120px; justify-content: center; }
    .ranking-pagination { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ranking-pagination strong { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .ranking-pagination a { grid-row: 2; }
    .presentation-sidebar { grid-template-columns: 120px 1fr auto; min-height: 68px; padding: 7px 10px; }
    .presentation-brand,
    .presentation-brand img { width: 116px; height: 48px; }
    .presentation-mobile-menu { width: 38px; padding: 0; }
    .presentation-mobile-menu span { display: none; }
    .presentation-menu { top: 68px; grid-template-columns: 1fr; }
    .presentation-actions { top: 15px; right: 58px; }
    .presentation-actions > button { display: none; }
    .presentation-paper { padding: 16px 14px 48px; }
    .presentation-intro { min-height: 330px; padding: 58px 12px 50px; }
    .presentation-intro-seal::before,
    .presentation-intro-seal::after { width: 70px; }
    .presentation-section { margin-bottom: 44px; }
    .presentation-section-ribbon { width: calc(100% - 42px); padding-right: 42px; padding-left: 42px; font-size: 11px; }
    .presentation-section-ribbon::before,
    .presentation-section-ribbon::after { width: 40px; height: 40px; }
    .presentation-section-ribbon::before { left: -20px; }
    .presentation-section-ribbon::after { right: -20px; }
    .presentation-section-body { padding: 24px 16px 28px; }
    .presentation-image,
    .presentation-image.size-small,
    .presentation-image.size-medium,
    .presentation-image.size-large,
    .presentation-image.size-xlarge,
    .presentation-image.size-full { flex-basis: 100%; width: 100%; }
}

/* CKEditor image rows: character portraits and kingdom flags */
.presentation-description p:has(> img) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0;
}
.presentation-section-body .presentation-description p > img {
    display: inline-block !important;
    flex: 0 0 auto;
    width: auto;
    max-width: 100% !important;
    height: auto !important;
    margin: 6px !important;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .presentation-description p:has(> img) { gap: 6px; }
    .presentation-section-body .presentation-description p > img { margin: 3px !important; }
}
