:root {
    --ro-ink: #263043;
    --ro-ink-soft: #556274;
    --ro-night: #18223a;
    --ro-night-2: #26314c;
    --ro-parchment: #fff9ea;
    --ro-paper: #fffdf6;
    --ro-gold: #d9aa49;
    --ro-gold-soft: #f3d892;
    --ro-ruby: #b7484f;
    --ro-ruby-dark: #8f3038;
    --ro-sky: #4a9bd8;
    --ro-emerald: #4b9a76;
    --ro-border: rgba(141, 104, 55, 0.28);
    --ro-shadow: 0 18px 45px rgba(38, 48, 67, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ro-ink);
    background:
        linear-gradient(180deg, rgba(226, 240, 255, 0.72) 0%, rgba(255, 249, 234, 0.92) 36%, rgba(246, 238, 215, 0.95) 100%),
        repeating-linear-gradient(90deg, rgba(141, 104, 55, 0.045) 0 1px, transparent 1px 42px),
        #fff9ea !important;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(74, 155, 216, 0.12), transparent 36%),
        linear-gradient(250deg, rgba(217, 170, 73, 0.16), transparent 40%);
    mix-blend-mode: multiply;
    z-index: -1;
}

h1,
h2,
h3,
h4,
.font-cinzel {
    letter-spacing: 0 !important;
}

#scroll-progress {
    background: linear-gradient(90deg, var(--ro-sky), var(--ro-gold), var(--ro-ruby)) !important;
    height: 5px !important;
}

.navbar-theme {
    background:
        linear-gradient(180deg, rgba(24, 34, 58, 0.96), rgba(28, 28, 38, 0.92)) !important;
    border-bottom: 1px solid rgba(243, 216, 146, 0.55) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24) !important;
    backdrop-filter: blur(10px);
}

.navbar-theme a[href$="/index.php"] img {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.navbar-theme a,
.navbar-theme button {
    letter-spacing: 0;
}

.navbar-theme a:hover,
.navbar-theme button:hover {
    color: #ffffff !important;
}

#guide-dropdown-menu {
    background: rgba(255, 253, 246, 0.98) !important;
    border: 1px solid rgba(217, 170, 73, 0.35);
    border-radius: 8px !important;
    box-shadow: var(--ro-shadow);
}

.ro-home-hero {
    isolation: isolate;
    background-position: center top !important;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(24, 34, 58, 0.08) 0%, rgba(24, 34, 58, 0.03) 44%, rgba(24, 34, 58, 0.78) 100%),
        linear-gradient(90deg, rgba(24, 34, 58, 0.34), transparent 30%, transparent 70%, rgba(24, 34, 58, 0.3)) !important;
}

.ro-home-hero h1 {
    max-width: 980px;
    margin-inline: auto;
    font-size: 2.65rem !important;
    line-height: 1.08 !important;
    text-wrap: balance;
}

.ro-home-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.ro-hero-actions {
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.48);
}

.ro-hero-tagline {
    font-weight: 700;
}

.page-header {
    position: relative;
    min-height: 340px;
    background-image: url("../images/hero-editor-ro-classes.png");
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(141, 104, 55, 0.38);
    overflow: hidden;
}

.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--ro-sky), var(--ro-gold), var(--ro-ruby), var(--ro-emerald));
    opacity: 0.88;
}

.page-header-overlay {
    background:
        linear-gradient(180deg, rgba(24, 34, 58, 0.25), rgba(24, 34, 58, 0.68)),
        linear-gradient(90deg, rgba(24, 34, 58, 0.52), rgba(24, 34, 58, 0.12), rgba(24, 34, 58, 0.42)) !important;
}

.page-header h1 {
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.52);
    text-wrap: balance;
}

.section-container,
.content-card,
.news-card,
.news-box-card,
.class-card,
.guild-card {
    border: 1px solid var(--ro-border) !important;
    border-radius: 8px !important;
    box-shadow: var(--ro-shadow) !important;
}

.section-container,
.content-card {
    background:
        linear-gradient(180deg, rgba(255, 253, 246, 0.95), rgba(255, 249, 234, 0.9)) !important;
    position: relative;
}

.section-container::before,
.content-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
}

.content-card .content-card {
    box-shadow: 0 8px 20px rgba(38, 48, 67, 0.08) !important;
}

.btn,
.btn-submit,
.action-button-v2 {
    border-radius: 8px !important;
    letter-spacing: 0 !important;
}

.btn-primary,
.btn-submit,
.action-button-v2.primary {
    background: linear-gradient(180deg, #c9565e, var(--ro-ruby-dark)) !important;
    border-color: rgba(116, 39, 47, 0.8) !important;
    box-shadow: inset 0 -3px 0 rgba(81, 25, 31, 0.42), 0 10px 22px rgba(183, 72, 79, 0.24) !important;
}

.btn-primary:hover,
.btn-submit:hover:not(:disabled),
.action-button-v2.primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-secondary,
.action-button-v2 {
    color: var(--ro-ink) !important;
    background: linear-gradient(180deg, #ffffff, #fff2d0) !important;
    border-color: rgba(217, 170, 73, 0.5) !important;
}

.btn-blue {
    background: linear-gradient(180deg, #4aa8e8, #276ca8) !important;
    border-color: rgba(24, 82, 132, 0.9) !important;
    box-shadow: inset 0 -3px 0 rgba(18, 64, 102, 0.42), 0 10px 22px rgba(74, 155, 216, 0.22) !important;
}

.action-button-v2 {
    min-height: 68px;
    box-shadow: 0 8px 18px rgba(38, 48, 67, 0.08) !important;
}

.action-button-v2:hover,
.news-card:hover,
.news-box-card:hover {
    transform: translateY(-3px);
}

.swiper {
    background:
        linear-gradient(180deg, rgba(24, 34, 58, 0.94), rgba(38, 49, 76, 0.94)) !important;
    border: 1px solid rgba(217, 170, 73, 0.48) !important;
    box-shadow: var(--ro-shadow) !important;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(24, 34, 58, 0.68) !important;
    border: 1px solid rgba(243, 216, 146, 0.55);
}

.news-card,
.news-box-card {
    background: rgba(255, 253, 246, 0.92) !important;
}

.news-card img,
.news-box-card img {
    border: 1px solid rgba(141, 104, 55, 0.18);
}

.custom-tab {
    color: var(--ro-ink-soft) !important;
}

.custom-tab.active {
    border-color: var(--ro-sky) !important;
    color: var(--ro-night) !important;
}

.form-input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="url"],
select,
textarea {
    background: rgba(255, 253, 246, 0.94) !important;
    border-color: rgba(141, 104, 55, 0.28) !important;
    color: var(--ro-ink) !important;
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ro-sky) !important;
    box-shadow: 0 0 0 3px rgba(74, 155, 216, 0.16);
}

.bordered-radio label {
    border-color: rgba(141, 104, 55, 0.3) !important;
}

.bordered-radio input[type="radio"]:checked + label {
    background: rgba(74, 155, 216, 0.12) !important;
    border-color: var(--ro-sky) !important;
}

.slider {
    background-color: #97a3b8 !important;
}

input:checked + .slider {
    background-color: var(--ro-emerald) !important;
}

#captcha-container {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(141, 104, 55, 0.28) !important;
}

.item-slot {
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.86), rgba(246, 238, 215, 0.86)) !important;
    border: 1px solid rgba(141, 104, 55, 0.32) !important;
}

footer {
    background:
        linear-gradient(180deg, rgba(38, 49, 76, 1), rgba(24, 34, 58, 1)) !important;
    color: rgba(255, 249, 234, 0.68) !important;
    border-top: 1px solid rgba(243, 216, 146, 0.58) !important;
}

@media (min-width: 768px) {
    .ro-home-hero h1 {
        font-size: 4.5rem !important;
    }
}

@media (max-width: 767px) {
    .navbar-theme a[href$="/index.php"] img {
        max-height: 64px;
    }

    .ro-home-hero {
        min-height: 660px !important;
        align-items: flex-end !important;
    }

    .ro-home-hero h1 {
        font-size: 2.35rem !important;
    }

    .ro-home-hero .btn {
        width: 100%;
    }

    .ro-home-hero .mt-8 {
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-header {
        min-height: 280px;
    }

    .section-container,
    .content-card {
        padding: 1.25rem !important;
    }
}
