:root {
    --ar-bg: #030506;
    --ar-bg-2: #0a0e10;
    --ar-panel: rgba(8, 13, 17, 0.84);
    --ar-panel-solid: #071015;
    --ar-panel-2: rgba(14, 24, 30, 0.86);
    --ar-text: #f4fbff;
    --ar-muted: #9eb0bb;
    --ar-muted-2: #6f838f;
    --ar-border: rgba(130, 238, 255, 0.20);
    --ar-border-strong: rgba(0, 234, 255, 0.48);
    --ar-accent: #00eaff;
    --ar-accent-2: #8efaff;
    --ar-accent-soft: rgba(0, 234, 255, 0.16);
    --ar-fire: #ff7a1a;
    --ar-danger: #ff314f;
    --ar-container: 1340px;
    --ar-radius: 22px;
    --ar-header-height: 176px;
    --ar-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

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

html {
    min-height: 100%;
    background: var(--ar-bg);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% 4%, rgba(0, 234, 255, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 10%, rgba(255, 122, 26, 0.10), transparent 32rem),
        linear-gradient(180deg, #0c1012 0%, #030506 45%, #020303 100%);
    color: var(--ar-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.28;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 70%, transparent);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button,
input,
textarea,
select {
    font: inherit;
}

.screen-reader-text,
.ar-skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ar-skip-link:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ar-accent);
    color: #001016;
    font-weight: 950;
}

.ar-container {
    width: min(calc(100% - 42px), var(--ar-container));
    margin-inline: auto;
}

.ar-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--ar-header-height);
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(8, 12, 14, 0.94), rgba(17, 22, 25, 0.90)),
        rgba(12, 15, 17, 0.92);
    border-bottom: 1px solid rgba(0, 234, 255, 0.18);
    backdrop-filter: blur(18px);
}

.admin-bar .ar-site-header {
    top: 32px;
}

.ar-header-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.ar-header-backdrop::before,
.ar-header-backdrop::after {
    content: "";
    position: absolute;
    width: 38vw;
    height: 2px;
    bottom: 0;
    background: linear-gradient(90deg, transparent, var(--ar-accent), transparent);
    opacity: 0.95;
}

.ar-header-backdrop::before {
    left: 0;
}

.ar-header-backdrop::after {
    right: 0;
}

.ar-header-inner {
    min-height: var(--ar-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 18px;
}

.ar-brand {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 34px);
    min-width: 0;
}

.ar-brand-mark {
    position: relative;
    width: clamp(84px, 10vw, 136px);
    height: clamp(84px, 10vw, 136px);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
}

.ar-brand-mark::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(0, 234, 255, 0.24);
    box-shadow:
        0 0 34px rgba(0, 234, 255, 0.12),
        inset 0 0 24px rgba(0, 234, 255, 0.10);
}

.ar-brand-mark img,
.ar-brand-mark .custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(0, 234, 255, 0.18));
}

.ar-brand-copy {
    display: grid;
    gap: 3px;
}

.ar-brand-copy strong {
    display: block;
    color: #fff;
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 950;
    text-shadow: 0 0 24px rgba(0, 234, 255, 0.14);
}

.ar-brand-copy small {
    color: var(--ar-text);
    font-size: clamp(0.98rem, 1.4vw, 1.24rem);
    opacity: 0.92;
}

.ar-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.ar-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ar-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #f7fbff;
    font-weight: 900;
    letter-spacing: -0.02em;
    transition: color 160ms ease, text-shadow 160ms ease;
}

.ar-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--ar-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.ar-menu li:first-child > a,
.ar-menu a:hover,
.ar-menu a:focus {
    color: var(--ar-accent);
    text-shadow: 0 0 18px rgba(0, 234, 255, 0.18);
}

.ar-menu a:hover::after,
.ar-menu a:focus::after {
    transform: scaleX(1);
}

.ar-language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ar-flag-link {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02)),
        rgba(0,0,0,.28);
    border: 1px solid rgba(0, 234, 255, 0.26);
    box-shadow: inset 0 0 18px rgba(0,0,0,.48);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ar-flag-link:hover,
.ar-flag-link:focus {
    transform: translateY(-2px);
    border-color: rgba(0, 234, 255, 0.76);
    box-shadow: 0 0 28px rgba(0, 234, 255, 0.18), inset 0 0 18px rgba(0,0,0,.48);
}

.ar-flag-link img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.ar-flag-link span {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    color: var(--ar-muted);
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.ar-menu-toggle {
    display: none;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(0, 234, 255, 0.30);
    border-radius: 16px;
    background: rgba(0, 234, 255, 0.06);
    color: var(--ar-text);
    cursor: pointer;
}

.ar-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background: currentColor;
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.45);
}

.ar-menu-toggle em {
    display: none;
}

.ar-site-main {
    min-height: 54vh;
}

.ar-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(720px, calc(100vh - var(--ar-header-height)), 940px);
    display: grid;
    align-items: stretch;
    overflow: hidden;
    background-image: var(--ar-hero-image);
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--ar-accent);
}

.ar-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 160px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--ar-bg));
    z-index: -1;
}

.ar-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 73% 45%, rgba(0, 234, 255, 0.10), transparent 22rem),
        linear-gradient(90deg, rgba(3,5,6,0.98), rgba(3,5,6,0.58) 52%, rgba(3,5,6,0.82)),
        linear-gradient(180deg, rgba(3,5,6,0.14), rgba(3,5,6,0.92));
}

.ar-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) 360px;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding-block: clamp(44px, 7vw, 96px);
}

.ar-hero-console {
    position: relative;
}

.ar-hero-console::before {
    content: "";
    position: absolute;
    inset: -34px -18px;
    background: url("../img/hud-frame.png") center / 100% 100% no-repeat;
    opacity: 0.80;
    pointer-events: none;
    filter: drop-shadow(0 0 24px rgba(0, 234, 255, 0.18));
}

.ar-hero-frame {
    position: relative;
    z-index: 1;
    max-width: 790px;
    padding: clamp(30px, 5.4vw, 64px);
    background:
        linear-gradient(135deg, rgba(0,234,255,.10), transparent 35%),
        rgba(3, 7, 10, 0.78);
    border: 1px solid rgba(0, 234, 255, 0.22);
    box-shadow: var(--ar-shadow);
    backdrop-filter: blur(10px);
}

.ar-eyebrow {
    margin: 0 0 12px;
    color: var(--ar-accent);
    font-size: 0.80rem;
    font-weight: 950;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.ar-hero h1,
.ar-section-head h2,
.ar-page-hero h1 {
    margin: 0;
    color: #fff;
    font-weight: 950;
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.ar-hero h1 {
    max-width: 760px;
    font-size: clamp(3.4rem, 9vw, 8.2rem);
    text-shadow:
        0 0 36px rgba(0, 234, 255, 0.12),
        0 10px 50px rgba(0,0,0,.62);
}

.ar-hero-text {
    max-width: 690px;
    margin: 26px 0 0;
    color: var(--ar-muted);
    font-size: clamp(1.03rem, 1.45vw, 1.24rem);
}

.ar-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.ar-button,
.ar-search-submit,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 234, 255, 0.35);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)),
        rgba(0, 234, 255, 0.07);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ar-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.18), transparent);
    transform: translateX(-120%);
    transition: transform 300ms ease;
}

.ar-button:hover,
.ar-button:focus,
.ar-search-submit:hover,
.ar-search-submit:focus {
    transform: translateY(-2px);
    border-color: rgba(0, 234, 255, 0.80);
    box-shadow: 0 0 32px rgba(0, 234, 255, 0.16), inset 0 0 0 1px rgba(255,255,255,.05);
}

.ar-button:hover::before,
.ar-button:focus::before {
    transform: translateX(120%);
}

.ar-button-primary {
    background:
        linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.03)),
        var(--ar-accent);
    color: #001017;
    border-color: var(--ar-accent);
}

.ar-button-ghost {
    background: rgba(0, 0, 0, 0.24);
}

.ar-hero-status {
    position: relative;
    min-height: 520px;
    display: grid;
    align-content: end;
    gap: 22px;
    padding: 30px;
    border: 1px solid rgba(0, 234, 255, 0.22);
    border-radius: var(--ar-radius);
    background:
        linear-gradient(180deg, transparent, rgba(3,5,6,.86)),
        rgba(3,7,10,.42);
    box-shadow: var(--ar-shadow);
    backdrop-filter: blur(8px);
}

.ar-hero-status::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(0, 234, 255, 0.14);
    border-radius: calc(var(--ar-radius) - 8px);
    pointer-events: none;
}

.ar-status-logo {
    width: 210px;
    margin-inline: auto;
    filter: drop-shadow(0 0 28px rgba(0,234,255,.20));
}

.ar-status-lines {
    display: grid;
    gap: 10px;
}

.ar-status-lines span {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 234, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    color: var(--ar-muted);
    font-size: 0.92rem;
}

.ar-status-lines b {
    color: var(--ar-accent);
    letter-spacing: 0.1em;
}

.ar-router-section,
.ar-showcase-section,
.ar-modules-section,
.ar-devlog-section,
.ar-page-content-section,
.ar-listing-section,
.ar-widget-section {
    padding-block: clamp(58px, 8vw, 112px);
}

.ar-section-head {
    max-width: 880px;
    margin-bottom: 30px;
}

.ar-section-head-center {
    margin-inline: auto;
    text-align: center;
}

.ar-section-head h2 {
    font-size: clamp(2.3rem, 5.4vw, 5.3rem);
}

.ar-section-head p:not(.ar-eyebrow) {
    max-width: 760px;
    color: var(--ar-muted);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.ar-section-head-center p:not(.ar-eyebrow) {
    margin-inline: auto;
}

.ar-router-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ar-router-card,
.ar-post-card > a,
.ar-module-card,
.ar-empty-panel,
.ar-content-panel,
.ar-content-hud {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(0,234,255,.07), rgba(255,255,255,.018)),
        var(--ar-panel);
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
}

.ar-router-card::before,
.ar-post-card > a::before,
.ar-module-card::before,
.ar-empty-panel::before,
.ar-content-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, transparent 0, rgba(0,234,255,.25) 50%, transparent 100%) top / 100% 1px no-repeat,
        linear-gradient(180deg, transparent 0, rgba(0,234,255,.20) 50%, transparent 100%) left / 1px 100% no-repeat;
    opacity: 0.76;
}

.ar-router-card {
    min-height: 230px;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: clamp(20px, 2vw, 28px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ar-router-card:nth-child(1),
.ar-router-card:nth-child(2) {
    grid-column: span 3;
}

.ar-router-card:hover,
.ar-router-card:focus,
.ar-post-card > a:hover,
.ar-post-card > a:focus,
.ar-module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 234, 255, 0.62);
    box-shadow: 0 26px 90px rgba(0, 234, 255, 0.10), 0 18px 70px rgba(0,0,0,.45);
}

.ar-card-corner {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 234, 255, 0.14);
    color: var(--ar-accent);
    border: 1px solid rgba(0, 234, 255, 0.20);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ar-router-card strong,
.ar-post-card strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.ar-router-card small,
.ar-post-card small {
    position: relative;
    z-index: 1;
    color: var(--ar-muted);
    font-size: 0.98rem;
}

.ar-card-cz::after,
.ar-card-en::after,
.ar-card-ue5::after,
.ar-card-sandbox::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 250px;
    height: 250px;
    opacity: 0.11;
    background: url("../img/logo-lion-round.png") center / contain no-repeat;
    transform: rotate(-12deg);
}

.ar-card-cz::after {
    background-image: url("../img/flag-cze.png");
}

.ar-card-en::after {
    background-image: url("../img/flag-usa.png");
}

.ar-card-sandbox::after {
    background-image: url("../img/frame-square.png");
    opacity: 0.19;
}

.ar-showcase-section {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,122,26,.05), transparent),
        rgba(255,255,255,.01);
}

.ar-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr);
    align-items: center;
    gap: clamp(32px, 6vw, 90px);
}

.ar-showcase-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 5.4vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.ar-showcase-copy p:not(.ar-eyebrow) {
    color: var(--ar-muted);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.ar-mini-stats {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.ar-mini-stats span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    width: min(100%, 420px);
    border: 1px solid rgba(0,234,255,.18);
    border-radius: 14px;
    background: rgba(0,0,0,.22);
    color: var(--ar-muted);
}

.ar-mini-stats b {
    color: var(--ar-accent);
    letter-spacing: 0.12em;
}

.ar-showcase-art {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.ar-showcase-art::before {
    content: "";
    position: absolute;
    inset: 12% 1% 8% 0;
    background: url("../img/ui-bar-basic.png") center / contain no-repeat;
    opacity: 0.40;
    filter: drop-shadow(0 0 36px rgba(0,234,255,.20));
}

.ar-capsule {
    position: relative;
    z-index: 2;
    width: min(100%, 720px);
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0,0,0,.56);
}

.ar-poster {
    position: absolute;
    right: -10px;
    bottom: -28px;
    z-index: 3;
    width: clamp(170px, 22vw, 270px);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,.62);
    border: 1px solid rgba(255,255,255,.10);
}

.ar-modules-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0,234,255,.03), rgba(0,0,0,.10)),
        #040708;
}

.ar-modules-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background: url("../img/story-nuclear.jpg") center / cover no-repeat;
    filter: saturate(0.70) contrast(1.05);
}

.ar-modules-section > .ar-container {
    position: relative;
    z-index: 1;
}

.ar-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ar-module-card {
    min-height: 230px;
    padding: 24px;
}

.ar-module-card span {
    display: inline-flex;
    margin-bottom: 30px;
    color: var(--ar-accent);
    font-weight: 950;
    letter-spacing: 0.2em;
}

.ar-module-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.ar-module-card p {
    margin: 0;
    color: var(--ar-muted);
}

.ar-tech-bar {
    margin: 38px auto 0;
    max-width: 980px;
    opacity: 0.62;
    filter: drop-shadow(0 0 28px rgba(0,234,255,.32));
}

.ar-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ar-post-card {
    margin: 0;
}

.ar-post-card > a {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px;
}

.ar-post-thumb {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.24;
}

.ar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ar-empty-panel,
.ar-content-panel,
.ar-content-hud {
    padding: clamp(24px, 4vw, 52px);
}

.ar-empty-panel {
    grid-column: 1 / -1;
}

.ar-empty-panel h2,
.ar-empty-panel h3,
.ar-content-panel h1,
.ar-content-panel h2,
.ar-content-panel h3 {
    margin-top: 0;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.ar-empty-panel p,
.ar-content-panel p,
.ar-content-panel li {
    color: var(--ar-muted);
}

.ar-content-panel a {
    color: var(--ar-accent);
    font-weight: 900;
}

.ar-featured-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.08);
}

.ar-readable {
    width: min(calc(100% - 42px), 980px);
}

.ar-page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(72px, 10vw, 150px);
    background:
        linear-gradient(90deg, rgba(0, 234, 255, 0.13), transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.08)),
        #081014;
    border-bottom: 2px solid rgba(0, 234, 255, 0.65);
}

.ar-page-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    top: 50%;
    width: 420px;
    height: 420px;
    transform: translateY(-50%);
    opacity: 0.09;
    background: url("../img/logo-lion-round.png") center / contain no-repeat;
}

.ar-page-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.7rem, 7vw, 6.6rem);
}

.ar-archive-description {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: var(--ar-muted);
}

.ar-listing-section {
    min-height: 420px;
}

.ar-page-links,
.ar-pagination,
.ar-post-nav {
    margin-top: 28px;
}

.ar-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ar-pagination a,
.ar-pagination span,
.ar-post-nav a {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,234,255,.22);
    background: rgba(0,0,0,.18);
    color: var(--ar-text);
    font-weight: 850;
}

.ar-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ar-post-nav div:last-child {
    text-align: right;
}

.ar-search-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin-top: 24px;
}

.ar-search-form label {
    flex: 1;
}

.ar-search-field {
    width: 100%;
    min-height: 50px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid rgba(0,234,255,.26);
    background: rgba(0,0,0,.24);
    color: var(--ar-text);
    outline: none;
}

.ar-search-field:focus {
    border-color: rgba(0,234,255,.80);
    box-shadow: 0 0 0 3px rgba(0,234,255,.12);
}

.ar-comments {
    margin-top: 28px;
}

.ar-comment-list {
    color: var(--ar-muted);
}

.ar-site-footer {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0,234,255,.06), transparent),
        #020304;
    border-top: 2px solid rgba(0, 234, 255, 0.72);
}

.ar-footer-glow {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(100%, 1100px);
    height: 1px;
    transform: translateX(-50%);
    box-shadow: 0 0 42px 12px rgba(0,234,255,.34);
}

.ar-footer-grid {
    min-height: 160px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    padding-block: 34px;
}

.ar-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ar-footer-brand img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
}

.ar-footer-brand strong,
.ar-footer-brand small {
    display: block;
}

.ar-footer-brand strong {
    color: #fff;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.ar-footer-brand small,
.ar-footer-copy p,
.ar-footer-links a {
    color: var(--ar-muted);
}

.ar-footer-copy {
    text-align: center;
}

.ar-footer-copy p {
    margin: 0;
}

.ar-footer-links,
.ar-footer-menu {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ar-footer-links a,
.ar-footer-menu a {
    color: var(--ar-muted);
    font-weight: 850;
}

.ar-footer-links a:hover,
.ar-footer-menu a:hover {
    color: var(--ar-accent);
}

.ar-footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-bottom: 34px;
}

.ar-footer-title,
.ar-widget-title {
    color: #fff;
}

/* WordPress / WooCommerce baseline */
.wp-caption,
.gallery-caption,
.bypostauthor {
    max-width: 100%;
}

.alignwide {
    max-width: min(100%, 1180px);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(0,234,255,.18);
    border-radius: 18px;
    padding: 14px;
}

.woocommerce div.product .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #fff;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    color: var(--ar-accent);
    font-weight: 950;
}

/* Tablet */
@media (max-width: 1120px) {
    :root {
        --ar-header-height: 126px;
    }

    .ar-header-inner {
        min-height: 126px;
    }

    .ar-menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .ar-header-actions {
        position: fixed;
        left: 18px;
        right: 18px;
        top: calc(var(--ar-header-height) + 16px);
        z-index: 200;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
        background:
            linear-gradient(145deg, rgba(0,234,255,.08), rgba(255,255,255,.02)),
            rgba(3, 7, 10, 0.97);
        border: 1px solid rgba(0,234,255,.32);
        border-radius: 22px;
        box-shadow: 0 36px 100px rgba(0,0,0,.66);
        backdrop-filter: blur(18px);
    }

    .admin-bar .ar-header-actions {
        top: calc(var(--ar-header-height) + 48px);
    }

    body.ar-menu-open .ar-header-actions {
        display: flex;
    }

    .ar-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .ar-menu a {
        min-height: 48px;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .ar-language-switch {
        justify-content: flex-start;
        padding-top: 8px;
    }

    .ar-hero-layout {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .ar-hero-status {
        min-height: auto;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .ar-status-logo {
        width: 120px;
    }

    .ar-router-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ar-router-card,
    .ar-router-card:nth-child(1),
    .ar-router-card:nth-child(2) {
        grid-column: auto;
    }

    .ar-showcase-grid {
        grid-template-columns: 1fr;
    }

    .ar-showcase-art {
        min-height: 420px;
    }

    .ar-module-grid,
    .ar-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ar-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ar-footer-brand,
    .ar-footer-links,
    .ar-footer-menu {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 680px) {
    :root {
        --ar-header-height: 96px;
        --ar-radius: 18px;
    }

    body {
        font-size: 15px;
    }

    .admin-bar .ar-site-header {
        top: 0;
    }

    .ar-container {
        width: min(calc(100% - 28px), var(--ar-container));
    }

    .ar-header-inner {
        min-height: var(--ar-header-height);
        gap: 12px;
        padding-block: 12px;
    }

    .ar-brand {
        gap: 12px;
    }

    .ar-brand-mark {
        width: 58px;
        height: 58px;
    }

    .ar-brand-mark::before {
        inset: -4px;
    }

    .ar-brand-copy strong {
        font-size: clamp(1.24rem, 7vw, 1.58rem);
        max-width: 210px;
    }

    .ar-brand-copy small {
        font-size: 0.82rem;
    }

    .ar-menu-toggle {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .ar-header-actions {
        left: 12px;
        right: 12px;
        top: calc(var(--ar-header-height) + 10px);
        max-height: calc(100vh - var(--ar-header-height) - 24px);
        overflow: auto;
    }

    .admin-bar .ar-header-actions {
        top: calc(var(--ar-header-height) + 10px);
    }

    .ar-flag-link {
        width: 48px;
        height: 48px;
    }

    .ar-flag-link img {
        width: 34px;
        height: 34px;
    }

    .ar-hero {
        min-height: auto;
        background-position: 52% center;
    }

    .ar-hero-layout {
        padding-block: 34px 70px;
        gap: 22px;
    }

    .ar-hero-console::before {
        inset: -20px -10px;
        opacity: 0.52;
    }

    .ar-hero-frame {
        padding: 24px;
        border-radius: 18px;
    }

    .ar-hero h1 {
        font-size: clamp(2.85rem, 17vw, 4.6rem);
        line-height: 0.92;
    }

    .ar-hero-text {
        margin-top: 18px;
        font-size: 1rem;
    }

    .ar-hero-actions {
        flex-direction: column;
        margin-top: 24px;
    }

    .ar-button,
    .ar-search-submit {
        width: 100%;
    }

    .ar-hero-status {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .ar-status-logo {
        width: 112px;
    }

    .ar-status-lines span {
        flex-direction: column;
        gap: 2px;
    }

    .ar-router-section,
    .ar-showcase-section,
    .ar-modules-section,
    .ar-devlog-section,
    .ar-page-content-section,
    .ar-listing-section,
    .ar-widget-section {
        padding-block: 54px;
    }

    .ar-section-head {
        margin-bottom: 22px;
    }

    .ar-section-head h2,
    .ar-showcase-copy h2 {
        font-size: clamp(2.15rem, 12vw, 3.6rem);
    }

    .ar-router-grid,
    .ar-module-grid,
    .ar-post-grid,
    .ar-footer-widgets {
        grid-template-columns: 1fr;
    }

    .ar-router-card {
        min-height: 178px;
    }

    .ar-showcase-art {
        min-height: 330px;
        place-items: start center;
    }

    .ar-showcase-art::before {
        inset: 12% -10% 0;
    }

    .ar-capsule {
        width: 100%;
        border-radius: 14px;
    }

    .ar-poster {
        width: 150px;
        right: 2px;
        bottom: 0;
        border-radius: 12px;
    }

    .ar-module-card {
        min-height: 190px;
    }

    .ar-post-card > a {
        min-height: 240px;
    }

    .ar-page-hero {
        padding-block: 58px;
    }

    .ar-page-hero h1 {
        font-size: clamp(2.25rem, 13vw, 4rem);
    }

    .ar-content-panel,
    .ar-empty-panel,
    .ar-content-hud {
        padding: 22px;
    }

    .ar-search-form {
        flex-direction: column;
    }

    .ar-post-nav {
        grid-template-columns: 1fr;
    }

    .ar-post-nav div:last-child {
        text-align: left;
    }

    .ar-footer-brand {
        flex-direction: column;
    }
}


/* ===== Adversity Republic v0.3.0 fixes and expanded sections ===== */

/* Prevent the broken nested-custom-logo layout and horizontal page drift. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ar-site-header,
.ar-site-main,
.ar-site-footer,
.ar-hero,
.ar-router-section,
.ar-showcase-section,
.ar-factions-section,
.ar-economy-section,
.ar-modules-section,
.ar-devlog-section,
.ar-community-section {
    max-width: 100vw;
    overflow-x: clip;
}

/* Header: balanced desktop height, logo is inside the circle, never next to it. */
:root {
    --ar-header-height: 148px;
}

.ar-header-inner {
    min-height: var(--ar-header-height);
}

.ar-brand {
    flex: 1 1 auto;
}

.ar-brand-mark {
    width: clamp(74px, 7.8vw, 112px);
    height: clamp(74px, 7.8vw, 112px);
    overflow: visible;
}

.ar-brand-mark .ar-logo-img,
.ar-brand-mark img,
.ar-brand-mark .custom-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.ar-brand-mark a,
.ar-brand-mark .custom-logo-link {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.ar-brand-copy strong {
    font-size: clamp(1.55rem, 2.35vw, 2.18rem);
}

.ar-brand-copy small {
    font-size: clamp(0.92rem, 1.18vw, 1.14rem);
}

.ar-header-actions {
    flex: 0 0 auto;
}

.ar-menu {
    gap: clamp(14px, 1.6vw, 22px);
}

.ar-menu a {
    font-size: clamp(0.92rem, 1.05vw, 1rem);
}

.ar-flag-link {
    width: 48px;
    height: 48px;
}

.ar-flag-link img {
    width: 34px;
    height: 34px;
}

/* Hero: less oversized text, better first screen balance. */
.ar-hero {
    min-height: clamp(620px, calc(100vh - var(--ar-header-height)), 820px);
}

.ar-hero-layout {
    grid-template-columns: minmax(0, 0.96fr) minmax(280px, 340px);
    gap: clamp(24px, 4vw, 58px);
    padding-block: clamp(34px, 5.5vw, 70px);
}

.ar-hero-frame {
    max-width: 760px;
    padding: clamp(28px, 4.5vw, 52px);
}

.ar-hero h1 {
    font-size: clamp(3rem, 6.8vw, 6.15rem);
    line-height: 0.95;
}

.ar-hero-text {
    max-width: 620px;
    margin-top: 20px;
    font-size: clamp(0.98rem, 1.2vw, 1.12rem);
}

.ar-hero-status {
    min-height: 420px;
}

.ar-status-logo {
    width: clamp(130px, 16vw, 190px);
}

/* Better section sizing. */
.ar-section-head h2,
.ar-showcase-copy h2 {
    font-size: clamp(2rem, 4.4vw, 4.55rem);
    line-height: 0.98;
}

.ar-router-card strong,
.ar-post-card strong {
    font-size: clamp(1.22rem, 1.55vw, 1.62rem);
}

.ar-router-card {
    min-height: 205px;
}

.ar-module-card {
    min-height: 205px;
}

/* New faction section. */
.ar-factions-section {
    position: relative;
    padding-block: clamp(58px, 8vw, 112px);
    background:
        radial-gradient(circle at 50% 0%, rgba(0,234,255,.10), transparent 34rem),
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.10));
}

.ar-faction-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.ar-faction-card {
    position: relative;
    min-height: 215px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 14px;
    padding: 18px 14px;
    overflow: hidden;
    border: 1px solid rgba(0,234,255,.18);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(0,234,255,.07), rgba(255,255,255,.018)),
        rgba(5, 10, 13, .76);
    box-shadow: 0 18px 70px rgba(0,0,0,.35);
    text-align: center;
    transition: transform 180ms ease, border-color 180ms ease;
}

.ar-faction-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,234,255,.08), transparent 50%);
    opacity: .65;
}

.ar-faction-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,234,255,.56);
}

.ar-faction-card img {
    position: relative;
    z-index: 1;
    width: min(100%, 118px);
    filter: drop-shadow(0 0 20px rgba(255,255,255,.10));
}

.ar-faction-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 4px;
    color: #fff;
    font-size: .98rem;
    line-height: 1.1;
}

.ar-faction-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ar-muted);
    font-size: .78rem;
    line-height: 1.35;
}

/* Economy / coin section. */
.ar-economy-section {
    position: relative;
    padding-block: clamp(58px, 8vw, 112px);
    background:
        linear-gradient(90deg, rgba(0,234,255,.04), rgba(255,122,26,.07)),
        #050708;
}

.ar-economy-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background: url("../img/ar-crest-background.jpg") center / cover no-repeat;
    filter: saturate(.8) contrast(1.05);
}

.ar-economy-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.ar-coin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ar-coin-card {
    position: relative;
    min-height: 310px;
    display: grid;
    align-content: end;
    justify-items: center;
    padding: 22px;
    border: 1px solid rgba(0,234,255,.18);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.24)),
        rgba(5, 10, 13, .82);
    text-align: center;
    box-shadow: 0 18px 70px rgba(0,0,0,.42);
}

.ar-coin-card img {
    width: min(100%, 160px);
    margin-bottom: 18px;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.45));
}

.ar-coin-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.08rem;
}

.ar-coin-card p {
    margin: 0;
    color: var(--ar-muted);
    font-size: .88rem;
}

/* Community section. */
.ar-community-section {
    padding-block: clamp(54px, 7vw, 94px);
}

.ar-community-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid rgba(0,234,255,.22);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(0,234,255,.08), rgba(255,255,255,.018)),
        rgba(5, 10, 13, .80);
    box-shadow: 0 18px 70px rgba(0,0,0,.36);
    overflow: hidden;
}

.ar-community-panel::after {
    content: "";
    position: absolute;
    right: -110px;
    top: -120px;
    width: 360px;
    height: 360px;
    background: url("../img/logo-lion-round.png") center / contain no-repeat;
    opacity: .08;
}

.ar-community-panel h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.06em;
}

.ar-community-panel p:not(.ar-eyebrow) {
    max-width: 680px;
    color: var(--ar-muted);
}

.ar-community-socials,
.ar-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ar-community-socials {
    position: relative;
    z-index: 1;
}

.ar-community-socials a {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--ar-muted);
    font-size: .84rem;
    font-weight: 900;
}

.ar-community-socials img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    transition: transform 180ms ease, filter 180ms ease;
}

.ar-community-socials a:hover img,
.ar-community-socials a:focus img {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 24px rgba(0,234,255,.22));
}

.ar-social-links {
    margin-left: 6px;
}

.ar-social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.ar-social-links img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* Animation prepared by JS. */
.ar-router-card,
.ar-module-card,
.ar-post-card > a {
    opacity: .96;
}

.ar-router-card.ar-in-view,
.ar-module-card.ar-in-view,
.ar-post-card > a.ar-in-view {
    opacity: 1;
}

/* Tablet v0.3 */
@media (max-width: 1120px) {
    :root {
        --ar-header-height: 112px;
    }

    .ar-header-inner {
        min-height: var(--ar-header-height);
    }

    .ar-header-actions {
        top: calc(var(--ar-header-height) + 12px);
    }

    .admin-bar .ar-header-actions {
        top: calc(var(--ar-header-height) + 44px);
    }

    .ar-hero-layout {
        grid-template-columns: 1fr;
    }

    .ar-hero-status {
        display: none;
    }

    .ar-faction-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ar-economy-grid {
        grid-template-columns: 1fr;
    }

    .ar-community-panel {
        grid-template-columns: 1fr;
    }
}

/* Mobile v0.3 */
@media (max-width: 680px) {
    :root {
        --ar-header-height: 82px;
    }

    .ar-site-header {
        position: sticky;
    }

    .ar-header-inner {
        min-height: var(--ar-header-height);
        padding-block: 10px;
    }

    .ar-brand {
        min-width: 0;
        gap: 10px;
    }

    .ar-brand-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .ar-brand-mark::before {
        inset: -3px;
        opacity: .65;
    }

    .ar-brand-copy {
        min-width: 0;
    }

    .ar-brand-copy strong {
        max-width: 190px;
        font-size: clamp(1.05rem, 5.9vw, 1.34rem);
        line-height: 1;
        white-space: normal;
    }

    .ar-brand-copy small {
        max-width: 190px;
        font-size: .76rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ar-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .ar-header-actions {
        left: 10px;
        right: 10px;
        top: calc(var(--ar-header-height) + 8px);
        max-width: calc(100vw - 20px);
        padding: 18px;
    }

    .ar-language-switch {
        gap: 12px;
    }

    .ar-flag-link {
        width: 46px;
        height: 46px;
    }

    .ar-flag-link img {
        width: 32px;
        height: 32px;
    }

    .ar-flag-link span {
        bottom: -14px;
    }

    .ar-hero {
        min-height: auto;
        background-position: center top;
    }

    .ar-hero-layout {
        padding-block: 28px 56px;
    }

    .ar-hero-console {
        width: 100%;
    }

    .ar-hero-console::before {
        display: none;
    }

    .ar-hero-frame {
        width: 100%;
        padding: 22px;
        border-radius: 18px;
        background:
            linear-gradient(135deg, rgba(0,234,255,.10), transparent 35%),
            rgba(3, 7, 10, 0.84);
    }

    .ar-eyebrow {
        font-size: .68rem;
        letter-spacing: .16em;
    }

    .ar-hero h1 {
        font-size: clamp(2.35rem, 13.5vw, 3.85rem);
        line-height: .96;
        letter-spacing: -.07em;
    }

    .ar-hero-text {
        max-width: 100%;
        font-size: .96rem;
        line-height: 1.55;
    }

    .ar-section-head h2,
    .ar-showcase-copy h2,
    .ar-community-panel h2 {
        font-size: clamp(1.95rem, 10.5vw, 3.05rem);
        line-height: 1;
    }

    .ar-router-card {
        min-height: 158px;
        padding: 20px;
    }

    .ar-router-card small {
        font-size: .9rem;
    }

    .ar-faction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ar-faction-card {
        min-height: 188px;
        padding: 16px 10px;
    }

    .ar-faction-card img {
        width: min(100%, 94px);
    }

    .ar-faction-card h3 {
        font-size: .9rem;
    }

    .ar-faction-card p {
        display: none;
    }

    .ar-coin-grid {
        grid-template-columns: 1fr;
    }

    .ar-coin-card {
        min-height: 230px;
    }

    .ar-coin-card img {
        width: 132px;
    }

    .ar-community-socials {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ar-community-socials img {
        width: 62px;
        height: 62px;
    }

    .ar-footer-links {
        flex-direction: column;
        align-items: center;
    }

    .ar-social-links {
        margin-left: 0;
    }
}

@media (max-width: 380px) {
    .ar-brand-copy strong {
        max-width: 150px;
        font-size: 1.02rem;
    }

    .ar-brand-copy small {
        max-width: 150px;
    }

    .ar-faction-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Adversity Republic v0.4.0 Customizer sizing controls ===== */

:root {
    --ar-header-height: var(--ar-header-height-desktop, 132px);
}

.ar-site-header {
    min-height: var(--ar-header-height);
}

.ar-header-inner {
    min-height: var(--ar-header-height);
}

.ar-brand-mark {
    width: var(--ar-logo-size-desktop, 86px) !important;
    height: var(--ar-logo-size-desktop, 86px) !important;
    flex-basis: var(--ar-logo-size-desktop, 86px) !important;
    overflow: hidden;
}

.ar-brand-mark .ar-logo-img,
.ar-brand-mark img,
.ar-brand-mark .custom-logo {
    transform: scale(var(--ar-logo-zoom, 1.35));
    transform-origin: center;
}

.ar-brand-copy strong {
    font-size: clamp(1.25rem, 2.25vw, var(--ar-site-title-size, 34px)) !important;
}

.ar-hero h1 {
    font-size: clamp(2.8rem, 6.4vw, var(--ar-hero-title-size, 96px)) !important;
}

@media (max-width: 1120px) {
    :root {
        --ar-header-height: var(--ar-header-height-mobile, 82px);
    }
}

@media (max-width: 680px) {
    :root {
        --ar-header-height: var(--ar-header-height-mobile, 82px);
    }

    .ar-site-header,
    .ar-header-inner {
        min-height: var(--ar-header-height);
    }

    .ar-brand-mark {
        width: var(--ar-logo-size-mobile, 50px) !important;
        height: var(--ar-logo-size-mobile, 50px) !important;
        flex-basis: var(--ar-logo-size-mobile, 50px) !important;
    }

    .ar-brand-copy strong {
        font-size: clamp(1rem, 5.6vw, var(--ar-site-title-mobile-size, 22px)) !important;
    }

    .ar-hero h1 {
        font-size: clamp(2.25rem, 12vw, var(--ar-hero-title-mobile-size, 56px)) !important;
    }

    .ar-header-actions {
        top: calc(var(--ar-header-height) + 8px);
    }
}


/* ===== Adversity Republic v0.5.0 countdown and small polish ===== */

.ar-button-primary,
.ar-hero-actions .ar-button-primary,
.ar-404-actions .ar-button-primary {
    color: #031118 !important;
    text-shadow: none !important;
    font-weight: 950;
}

.ar-button-primary:hover,
.ar-button-primary:focus {
    color: #04131b !important;
}

.ar-404-section {
    padding-top: clamp(48px, 6vw, 88px);
}

.ar-404-panel {
    background:
        linear-gradient(135deg, rgba(0,234,255,.10), rgba(255,255,255,.02)),
        rgba(3, 8, 12, .84);
}

.ar-404-actions {
    gap: 16px;
    flex-wrap: wrap;
}

.ar-release-section {
    position: relative;
    padding-block: clamp(52px, 7vw, 96px);
    background:
        radial-gradient(circle at 12% 24%, rgba(0,234,255,.10), transparent 26rem),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08));
}

.ar-release-panel {
    position: relative;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(0,234,255,.18);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(0,234,255,.06), rgba(255,255,255,.015)),
        rgba(5,10,13,.78);
    overflow: hidden;
    box-shadow: 0 18px 70px rgba(0,0,0,.34);
}

.ar-release-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 18%, rgba(0,234,255,.10), transparent 15rem);
    pointer-events: none;
}

.ar-release-copy {
    position: relative;
    z-index: 1;
}

.ar-release-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.06em;
}

.ar-release-copy > p:not(.ar-eyebrow) {
    max-width: 720px;
    color: var(--ar-muted);
    margin-top: 12px;
}

.ar-release-number-wrap {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.ar-release-number {
    font-size: clamp(3.6rem, 10vw, 8rem);
    line-height: .9;
    letter-spacing: -.09em;
    font-weight: 1000;
    color: #fff;
    text-shadow: 0 0 30px rgba(0,234,255,.12);
}

.ar-release-label {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 900;
    color: var(--ar-accent);
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 14px;
}

.ar-release-visual {
    position: relative;
    margin-top: 8px;
    padding-top: 12px;
}

.ar-release-frame {
    width: min(100%, 1320px);
    height: clamp(82px, 10vw, 118px);
    background: url("../img/countdown-frame.png") center / contain no-repeat;
    opacity: .9;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(0,234,255,.10));
}

.ar-release-track {
    position: relative;
    width: min(100%, 1080px);
    height: 12px;
    margin-left: clamp(16px, 4vw, 54px);
    margin-top: -44px;
    margin-bottom: 18px;
    background: rgba(4, 11, 15, .86);
    border: 1px solid rgba(0,234,255,.18);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 24px rgba(0,0,0,.48);
}

.ar-release-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--ar-release-progress, 62%);
    background: linear-gradient(90deg, rgba(0,234,255,.92), rgba(120,235,255,.82));
    box-shadow: 0 0 18px rgba(0,234,255,.42);
}

.ar-release-glow {
    position: absolute;
    top: 0;
    left: max(calc(var(--ar-release-progress, 62%) - 4px), 0px);
    width: 8px;
    height: 100%;
    background: rgba(255,255,255,.9);
    box-shadow: 0 0 18px rgba(255,255,255,.85);
}

.ar-release-meta {
    width: min(100%, 1080px);
    margin-left: clamp(16px, 4vw, 54px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ar-muted);
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

@media (max-width: 680px) {
    .ar-release-panel {
        padding: 20px 18px 24px;
        border-radius: 20px;
    }

    .ar-release-copy h2 {
        font-size: clamp(1.9rem, 10vw, 3rem);
    }

    .ar-release-number-wrap {
        gap: 8px;
        margin-bottom: 16px;
    }

    .ar-release-label {
        margin-bottom: 8px;
        letter-spacing: .12em;
        font-size: .88rem;
    }

    .ar-release-frame {
        height: 62px;
        background-size: cover;
        border-radius: 14px;
        opacity: .65;
    }

    .ar-release-track {
        width: calc(100% - 10px);
        margin-left: 5px;
        margin-top: -25px;
        height: 10px;
    }

    .ar-release-meta {
        width: calc(100% - 10px);
        margin-left: 5px;
        font-size: .74rem;
        letter-spacing: .08em;
    }
}


/* ===== Adversity Republic v0.6.0 live countdown redesign ===== */

.ar-release-section {
    padding-block: clamp(56px, 7vw, 104px);
    background:
        radial-gradient(circle at 12% 18%, rgba(0,234,255,.10), transparent 24rem),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.10));
}

.ar-release-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: stretch;
    padding: clamp(26px, 4vw, 48px);
    border-radius: 28px;
    border: 1px solid rgba(0,234,255,.18);
    background:
        linear-gradient(145deg, rgba(0,234,255,.06), rgba(255,255,255,.018)),
        rgba(5,10,13,.82);
    box-shadow: 0 18px 70px rgba(0,0,0,.34);
}

.ar-release-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 4.2rem);
    line-height: .96;
    letter-spacing: -.06em;
}

.ar-release-copy > p:not(.ar-eyebrow) {
    max-width: 760px;
    color: var(--ar-muted);
    font-size: clamp(.98rem, 1.22vw, 1.08rem);
    margin-top: 14px;
}

.ar-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.ar-countdown-item {
    position: relative;
    padding: 18px 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0,234,255,.18);
    background:
        linear-gradient(180deg, rgba(0,234,255,.06), rgba(255,255,255,.015)),
        rgba(4,10,14,.82);
    text-align: center;
    overflow: hidden;
}

.ar-countdown-item::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,234,255,.90), transparent);
    opacity: .95;
}

.ar-countdown-value {
    display: block;
    color: #fff;
    font-weight: 1000;
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: .92;
    letter-spacing: -.07em;
    text-shadow: 0 0 16px rgba(0,234,255,.10);
}

.ar-countdown-label {
    display: block;
    margin-top: 10px;
    color: var(--ar-accent);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ar-release-stage {
    display: flex;
    align-items: stretch;
}

.ar-release-stage-card {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 26px;
    border: 1px solid rgba(0,234,255,.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(0,234,255,.12), transparent 14rem),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.16)),
        rgba(4,10,14,.88);
    overflow: hidden;
}

.ar-release-stage-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,234,255,.16), transparent 70%);
    filter: blur(12px);
    pointer-events: none;
}

.ar-release-badge {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 260px;
}

.ar-release-badge img {
    width: min(100%, 290px);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}

.ar-release-stage-meta {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.ar-release-stage-meta span {
    color: var(--ar-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 900;
}

.ar-release-stage-meta strong {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.ar-release-progress {
    position: relative;
    z-index: 1;
    height: 16px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.22)),
        rgba(2,7,10,.96);
    border: 1px solid rgba(0,234,255,.16);
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,.45);
}

.ar-release-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--ar-release-progress, 62%);
    background:
        linear-gradient(90deg, rgba(0,234,255,.96), rgba(108,238,255,.86) 45%, rgba(255,255,255,.96));
    box-shadow: 0 0 18px rgba(0,234,255,.42);
}

.ar-release-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 24px;
    height: 100%;
    background: rgba(255,255,255,.88);
    filter: blur(3px);
}

.ar-release-stage-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ar-muted);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .ar-release-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .ar-release-panel {
        padding: 20px 18px 22px;
        border-radius: 20px;
        gap: 18px;
    }

    .ar-countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .ar-countdown-item {
        border-radius: 16px;
        padding: 16px 10px 14px;
    }

    .ar-countdown-value {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .ar-countdown-label {
        margin-top: 8px;
        font-size: .68rem;
        letter-spacing: .12em;
    }

    .ar-release-stage-card {
        border-radius: 18px;
        padding: 18px 16px 18px;
        gap: 16px;
    }

    .ar-release-badge {
        min-height: 180px;
    }

    .ar-release-badge img {
        width: min(100%, 220px);
    }

    .ar-release-stage-meta strong {
        font-size: 2rem;
    }

    .ar-release-stage-foot {
        flex-direction: column;
        align-items: flex-start;
        font-size: .72rem;
    }
}


/* ===== Adversity Republic v0.7.0 editable universal homepage ===== */
.ar-hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: saturate(.8) contrast(1.08) brightness(.62);
}

.ar-trailer-section,
.ar-bilingual-section,
.ar-story-section,
.ar-steam-section {
    padding-block: clamp(56px, 7vw, 104px);
}

.ar-trailer-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
    gap: clamp(28px, 5vw, 74px);
    align-items: center;
}

.ar-trailer-shell {
    position: relative;
    min-height: 340px;
    border-radius: 28px;
    border: 1px solid rgba(0,234,255,.22);
    background: rgba(5,10,13,.84);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.42);
}

.ar-trailer-placeholder,
.ar-trailer-video,
.ar-trailer-embed,
.ar-trailer-embed iframe {
    width: 100%;
    min-height: 340px;
    aspect-ratio: 16 / 9;
}

.ar-trailer-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 30px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.82)),
        var(--ar-trailer-poster) center / cover no-repeat;
    color: #fff;
}

.ar-play-core {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ar-accent);
    color: #001017;
    font-weight: 1000;
    box-shadow: 0 0 40px rgba(0,234,255,.30);
}

.ar-trailer-placeholder p {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 950;
}

.ar-trailer-placeholder small {
    max-width: 520px;
    color: var(--ar-muted);
}

.ar-language-panels,
.ar-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ar-language-panel,
.ar-story-card,
.ar-steam-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(0,234,255,.20);
    background:
        linear-gradient(145deg, rgba(0,234,255,.07), rgba(255,255,255,.018)),
        rgba(5,10,13,.80);
    box-shadow: 0 18px 70px rgba(0,0,0,.34);
}

.ar-language-panel,
.ar-story-card {
    min-height: 250px;
    padding: clamp(24px, 4vw, 42px);
}

.ar-language-panel h3,
.ar-story-card h3,
.ar-steam-panel h2 {
    margin: 16px 0 12px;
    color: #fff;
    font-size: clamp(1.55rem, 2.7vw, 2.6rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.ar-language-panel p,
.ar-story-card p,
.ar-steam-panel p {
    color: var(--ar-muted);
}

.ar-story-grid {
    grid-template-columns: .8fr 1fr 1fr;
    align-items: stretch;
}

.ar-story-grid .ar-section-head {
    margin: 0;
}

.ar-steam-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(24px, 4vw, 46px);
}

.ar-steam-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.ar-footer-language .ar-language-switch {
    justify-content: flex-end;
}

.ar-footer-language .ar-flag-link {
    width: 46px;
    height: 46px;
}

.ar-footer-language .ar-flag-link img {
    width: 32px;
    height: 32px;
}

.ar-footer-language .ar-flag-link span {
    bottom: -14px;
}

.ar-footer-sandbox {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(0,234,255,.20);
    background: rgba(0,234,255,.06);
}

@media (max-width: 980px) {
    .ar-trailer-grid,
    .ar-steam-panel,
    .ar-story-grid {
        grid-template-columns: 1fr;
    }

    .ar-steam-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .ar-trailer-section,
    .ar-bilingual-section,
    .ar-story-section,
    .ar-steam-section {
        padding-block: 50px;
    }

    .ar-trailer-shell,
    .ar-trailer-placeholder,
    .ar-trailer-video,
    .ar-trailer-embed,
    .ar-trailer-embed iframe {
        min-height: 220px;
    }

    .ar-language-panels {
        grid-template-columns: 1fr;
    }

    .ar-language-panel,
    .ar-story-card {
        min-height: 190px;
        padding: 22px;
    }

    .ar-steam-actions .ar-button {
        width: 100%;
    }

    .ar-footer-language .ar-language-switch {
        justify-content: center;
    }
}
